27 |
27 |
28 def __init__(self, tagsList, branchesList, formatsList, parent=None): |
28 def __init__(self, tagsList, branchesList, formatsList, parent=None): |
29 """ |
29 """ |
30 Constructor |
30 Constructor |
31 |
31 |
32 @param tagsList list of tags (list of strings) |
32 @param tagsList list of tags |
33 @param branchesList list of branches (list of strings) |
33 @type list of str |
34 @param formatsList list of archive formats (list of strings) |
34 @param branchesList list of branches |
35 @param parent reference to the parent widget (QWidget) |
35 @type list of str |
|
36 @param formatsList list of archive formats |
|
37 @type list of str |
|
38 @param parent reference to the parent widget |
|
39 @type QWidget |
36 """ |
40 """ |
37 super().__init__(parent) |
41 super().__init__(parent) |
38 self.setupUi(self) |
42 self.setupUi(self) |
39 |
43 |
40 self.fileButton.setIcon(EricPixmapCache.getIcon("open")) |
44 self.fileButton.setIcon(EricPixmapCache.getIcon("open")) |
96 @pyqtSlot(bool) |
101 @pyqtSlot(bool) |
97 def on_revButton_toggled(self, checked): |
102 def on_revButton_toggled(self, checked): |
98 """ |
103 """ |
99 Private slot to handle changes of the rev select button. |
104 Private slot to handle changes of the rev select button. |
100 |
105 |
101 @param checked state of the button (boolean) |
106 @param checked state of the button |
|
107 @type bool |
102 """ |
108 """ |
103 self.__updateOK() |
109 self.__updateOK() |
104 |
110 |
105 @pyqtSlot(str) |
111 @pyqtSlot(str) |
106 def on_revEdit_textChanged(self, txt): |
112 def on_revEdit_textChanged(self, txt): |
107 """ |
113 """ |
108 Private slot to handle changes of the rev edit. |
114 Private slot to handle changes of the rev edit. |
109 |
115 |
110 @param txt text of the edit (string) |
116 @param txt text of the edit |
|
117 @type str |
111 """ |
118 """ |
112 self.__updateOK() |
119 self.__updateOK() |
113 |
120 |
114 @pyqtSlot(bool) |
121 @pyqtSlot(bool) |
115 def on_tagButton_toggled(self, checked): |
122 def on_tagButton_toggled(self, checked): |
116 """ |
123 """ |
117 Private slot to handle changes of the Tag select button. |
124 Private slot to handle changes of the Tag select button. |
118 |
125 |
119 @param checked state of the button (boolean) |
126 @param checked state of the button |
|
127 @type bool |
120 """ |
128 """ |
121 self.__updateOK() |
129 self.__updateOK() |
122 |
130 |
123 @pyqtSlot(str) |
131 @pyqtSlot(str) |
124 def on_tagCombo_editTextChanged(self, txt): |
132 def on_tagCombo_editTextChanged(self, txt): |
125 """ |
133 """ |
126 Private slot to handle changes of the Tag combo. |
134 Private slot to handle changes of the Tag combo. |
127 |
135 |
128 @param txt text of the combo (string) |
136 @param txt text of the combo |
|
137 @type str |
129 """ |
138 """ |
130 self.__updateOK() |
139 self.__updateOK() |
131 |
140 |
132 @pyqtSlot(bool) |
141 @pyqtSlot(bool) |
133 def on_branchButton_toggled(self, checked): |
142 def on_branchButton_toggled(self, checked): |
134 """ |
143 """ |
135 Private slot to handle changes of the Branch select button. |
144 Private slot to handle changes of the Branch select button. |
136 |
145 |
137 @param checked state of the button (boolean) |
146 @param checked state of the button |
|
147 @type bool |
138 """ |
148 """ |
139 self.__updateOK() |
149 self.__updateOK() |
140 |
150 |
141 @pyqtSlot(str) |
151 @pyqtSlot(str) |
142 def on_branchCombo_editTextChanged(self, txt): |
152 def on_branchCombo_editTextChanged(self, txt): |
143 """ |
153 """ |
144 Private slot to handle changes of the Branch combo. |
154 Private slot to handle changes of the Branch combo. |
145 |
155 |
146 @param txt text of the combo (string) |
156 @param txt text of the combo |
|
157 @type str |
147 """ |
158 """ |
148 self.__updateOK() |
159 self.__updateOK() |
149 |
160 |
150 def getData(self): |
161 def getData(self): |
151 """ |
162 """ |
152 Public method to retrieve the entered data. |
163 Public method to retrieve the entered data. |
153 |
164 |
154 @return tuple of selected revision (string), archive format (string), |
165 @return tuple of selected revision, archive format, archive file and prefix |
155 archive file (string) and prefix (string) |
166 @rtype tuple of (str, str, str, str) |
156 """ |
167 """ |
157 if self.revButton.isChecked(): |
168 if self.revButton.isChecked(): |
158 rev = self.revEdit.text() |
169 rev = self.revEdit.text() |
159 elif self.tagButton.isChecked(): |
170 elif self.tagButton.isChecked(): |
160 rev = self.tagCombo.currentText() |
171 rev = self.tagCombo.currentText() |