36 def __init__(self, vcs, parent=None): |
36 def __init__(self, vcs, parent=None): |
37 """ |
37 """ |
38 Constructor |
38 Constructor |
39 |
39 |
40 @param vcs reference to the vcs object |
40 @param vcs reference to the vcs object |
41 @param parent parent widget (QWidget) |
41 @type Subversion |
|
42 @param parent parent widget |
|
43 @type QWidget |
42 """ |
44 """ |
43 super().__init__(parent) |
45 super().__init__(parent) |
44 self.setupUi(self) |
46 self.setupUi(self) |
45 SvnDialogMixin.__init__(self) |
47 SvnDialogMixin.__init__(self) |
46 |
48 |
83 |
85 |
84 def __generateItem(self, path, propName, propValue): |
86 def __generateItem(self, path, propName, propValue): |
85 """ |
87 """ |
86 Private method to generate a properties item in the properties list. |
88 Private method to generate a properties item in the properties list. |
87 |
89 |
88 @param path file/directory name the property applies to (string) |
90 @param path file/directory name the property applies to |
89 @param propName name of the property (string) |
91 @type str |
90 @param propValue value of the property (string) |
92 @param propName name of the property |
|
93 @type str |
|
94 @param propValue value of the property |
|
95 @type str |
91 """ |
96 """ |
92 QTreeWidgetItem(self.propsList, [path, propName, propValue]) |
97 QTreeWidgetItem(self.propsList, [path, propName, propValue]) |
93 |
98 |
94 def start(self, fn, recursive=False): |
99 def start(self, fn, recursive=False): |
95 """ |
100 """ |
96 Public slot to start the svn status command. |
101 Public slot to start the svn status command. |
97 |
102 |
98 @param fn filename(s) (string or list of strings) |
103 @param fn filename(s) |
|
104 @type str or list of str |
99 @param recursive flag indicating a recursive list is requested |
105 @param recursive flag indicating a recursive list is requested |
|
106 @type bool |
100 """ |
107 """ |
101 self.errorGroup.hide() |
108 self.errorGroup.hide() |
102 |
109 |
103 self.propsList.clear() |
110 self.propsList.clear() |
104 |
111 |
160 |
167 |
161 def on_buttonBox_clicked(self, button): |
168 def on_buttonBox_clicked(self, button): |
162 """ |
169 """ |
163 Private slot called by a button of the button box clicked. |
170 Private slot called by a button of the button box clicked. |
164 |
171 |
165 @param button button that was clicked (QAbstractButton) |
172 @param button button that was clicked |
|
173 @type QAbstractButton |
166 """ |
174 """ |
167 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): |
175 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): |
168 self.close() |
176 self.close() |
169 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
177 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
170 self.__finish() |
178 self.__finish() |
180 |
188 |
181 def __showError(self, msg): |
189 def __showError(self, msg): |
182 """ |
190 """ |
183 Private slot to show an error message. |
191 Private slot to show an error message. |
184 |
192 |
185 @param msg error message to show (string) |
193 @param msg error message to show |
|
194 @type str |
186 """ |
195 """ |
187 self.errorGroup.show() |
196 self.errorGroup.show() |
188 self.errors.insertPlainText(msg) |
197 self.errors.insertPlainText(msg) |
189 self.errors.ensureCursorVisible() |
198 self.errors.ensureCursorVisible() |