src/eric7/Plugins/VcsPlugins/vcsGit/GitBundleDialog.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9971
773ad1f1ed22
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
20 20
21 def __init__(self, tagsList, branchesList, parent=None): 21 def __init__(self, tagsList, branchesList, parent=None):
22 """ 22 """
23 Constructor 23 Constructor
24 24
25 @param tagsList list of tags (list of strings) 25 @param tagsList list of tags
26 @param branchesList list of branches (list of strings) 26 @type list of str
27 @param parent parent widget (QWidget) 27 @param branchesList list of branches
28 @type list of str
29 @param parent parent widget
30 @type QWidget
28 """ 31 """
29 super().__init__(parent) 32 super().__init__(parent)
30 self.setupUi(self) 33 self.setupUi(self)
31 34
32 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False) 35 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False)
51 @pyqtSlot(bool) 54 @pyqtSlot(bool)
52 def on_revisionsButton_toggled(self, checked): 55 def on_revisionsButton_toggled(self, checked):
53 """ 56 """
54 Private slot to handle changes of the revisions select button. 57 Private slot to handle changes of the revisions select button.
55 58
56 @param checked state of the button (boolean) 59 @param checked state of the button
60 @type bool
57 """ 61 """
58 self.__updateOK() 62 self.__updateOK()
59 63
60 @pyqtSlot(bool) 64 @pyqtSlot(bool)
61 def on_tagButton_toggled(self, checked): 65 def on_tagButton_toggled(self, checked):
62 """ 66 """
63 Private slot to handle changes of the Tag select button. 67 Private slot to handle changes of the Tag select button.
64 68
65 @param checked state of the button (boolean) 69 @param checked state of the button
70 @type bool
66 """ 71 """
67 self.__updateOK() 72 self.__updateOK()
68 73
69 @pyqtSlot(bool) 74 @pyqtSlot(bool)
70 def on_branchButton_toggled(self, checked): 75 def on_branchButton_toggled(self, checked):
71 """ 76 """
72 Private slot to handle changes of the Branch select button. 77 Private slot to handle changes of the Branch select button.
73 78
74 @param checked state of the button (boolean) 79 @param checked state of the button
80 @type bool
75 """ 81 """
76 self.__updateOK() 82 self.__updateOK()
77 83
78 @pyqtSlot(str) 84 @pyqtSlot(str)
79 def on_revisionsEdit_textChanged(self, txt): 85 def on_revisionsEdit_textChanged(self, txt):
80 """ 86 """
81 Private slot to handle changes of the Revisions edit. 87 Private slot to handle changes of the Revisions edit.
82 88
83 @param txt text of the line edit (string) 89 @param txt text of the line edit
90 @type str
84 """ 91 """
85 self.__updateOK() 92 self.__updateOK()
86 93
87 @pyqtSlot(str) 94 @pyqtSlot(str)
88 def on_tagCombo_editTextChanged(self, txt): 95 def on_tagCombo_editTextChanged(self, txt):
89 """ 96 """
90 Private slot to handle changes of the Tag combo. 97 Private slot to handle changes of the Tag combo.
91 98
92 @param txt text of the combo (string) 99 @param txt text of the combo
100 @type str
93 """ 101 """
94 self.__updateOK() 102 self.__updateOK()
95 103
96 @pyqtSlot(str) 104 @pyqtSlot(str)
97 def on_branchCombo_editTextChanged(self, txt): 105 def on_branchCombo_editTextChanged(self, txt):
98 """ 106 """
99 Private slot to handle changes of the Branch combo. 107 Private slot to handle changes of the Branch combo.
100 108
101 @param txt text of the combo (string) 109 @param txt text of the combo
110 @type str
102 """ 111 """
103 self.__updateOK() 112 self.__updateOK()
104 113
105 def getData(self): 114 def getData(self):
106 """ 115 """
107 Public method to retrieve the bundle data. 116 Public method to retrieve the bundle data.
108 117
109 @return list of revision expressions (list of strings) 118 @return list of revision expressions
119 @rtype list of str
110 """ 120 """
111 if self.revisionsButton.isChecked(): 121 if self.revisionsButton.isChecked():
112 revs = self.revisionsEdit.text().strip().split() 122 revs = self.revisionsEdit.text().strip().split()
113 elif self.tagButton.isChecked(): 123 elif self.tagButton.isChecked():
114 revs = [self.tagCombo.currentText()] 124 revs = [self.tagCombo.currentText()]

eric ide

mercurial