4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing the subversion repository browser dialog. |
7 Module implementing the subversion repository browser dialog. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 import pysvn |
12 import pysvn |
11 |
13 |
12 from PyQt4.QtCore import QMutexLocker, Qt, pyqtSlot |
14 from PyQt4.QtCore import QMutexLocker, Qt, pyqtSlot |
13 from PyQt4.QtGui import QCursor, QHeaderView, QDialog, QApplication, QDialogButtonBox, \ |
15 from PyQt4.QtGui import QCursor, QHeaderView, QDialog, QApplication, QDialogButtonBox, \ |
33 |
35 |
34 @param vcs reference to the vcs object |
36 @param vcs reference to the vcs object |
35 @param mode mode of the dialog (string, "browse" or "select") |
37 @param mode mode of the dialog (string, "browse" or "select") |
36 @param parent parent widget (QWidget) |
38 @param parent parent widget (QWidget) |
37 """ |
39 """ |
38 super().__init__(parent) |
40 super(SvnRepoBrowserDialog, self).__init__(parent) |
39 self.setupUi(self) |
41 self.setupUi(self) |
40 SvnDialogMixin.__init__(self) |
42 SvnDialogMixin.__init__(self) |
41 |
43 |
42 self.repoTree.headerItem().setText(self.repoTree.columnCount(), "") |
44 self.repoTree.headerItem().setText(self.repoTree.columnCount(), "") |
43 self.repoTree.header().setSortIndicator(0, Qt.AscendingOrder) |
45 self.repoTree.header().setSortIndicator(0, Qt.AscendingOrder) |
276 Public slot called when the dialog is accepted. |
278 Public slot called when the dialog is accepted. |
277 """ |
279 """ |
278 if self.focusWidget() == self.urlCombo: |
280 if self.focusWidget() == self.urlCombo: |
279 return |
281 return |
280 |
282 |
281 super().accept() |
283 super(SvnRepoBrowserDialog, self).accept() |
282 |
284 |
283 def getSelectedUrl(self): |
285 def getSelectedUrl(self): |
284 """ |
286 """ |
285 Public method to retrieve the selected repository URL. |
287 Public method to retrieve the selected repository URL. |
286 |
288 |