4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to enter the data for a rebase session. |
7 Module implementing a dialog to enter the data for a rebase session. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSlot |
12 from PyQt4.QtCore import pyqtSlot |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox |
12 |
14 |
13 from .Ui_HgRebaseDialog import Ui_HgRebaseDialog |
15 from .Ui_HgRebaseDialog import Ui_HgRebaseDialog |
24 @param tagsList list of tags (list of strings) |
26 @param tagsList list of tags (list of strings) |
25 @param branchesList list of branches (list of strings) |
27 @param branchesList list of branches (list of strings) |
26 @param bookmarksList list of bookmarks (list of strings) |
28 @param bookmarksList list of bookmarks (list of strings) |
27 @param parent reference to the parent widget (QWidget) |
29 @param parent reference to the parent widget (QWidget) |
28 """ |
30 """ |
29 super().__init__(parent) |
31 super(HgRebaseDialog, self).__init__(parent) |
30 self.setupUi(self) |
32 self.setupUi(self) |
31 |
33 |
32 self.tag1Combo.addItems(sorted(tagsList)) |
34 self.tag1Combo.addItems(sorted(tagsList)) |
33 self.tag2Combo.addItems(sorted(tagsList)) |
35 self.tag2Combo.addItems(sorted(tagsList)) |
34 self.branch1Combo.addItems(["default"] + sorted(branchesList)) |
36 self.branch1Combo.addItems(["default"] + sorted(branchesList)) |