4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to enter the data to rename a patch. |
7 Module implementing a dialog to enter the data to rename a patch. |
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_HgQueuesRenamePatchDialog import Ui_HgQueuesRenamePatchDialog |
15 from .Ui_HgQueuesRenamePatchDialog import Ui_HgQueuesRenamePatchDialog |
23 |
25 |
24 @param currentPatch name of the current patch (string) |
26 @param currentPatch name of the current patch (string) |
25 @param patchesList list of patches to select from (list of strings) |
27 @param patchesList list of patches to select from (list of strings) |
26 @param parent reference to the parent widget (QWidget) |
28 @param parent reference to the parent widget (QWidget) |
27 """ |
29 """ |
28 super().__init__(parent) |
30 super(HgQueuesRenamePatchDialog, self).__init__(parent) |
29 self.setupUi(self) |
31 self.setupUi(self) |
30 |
32 |
31 self.currentButton.setText( |
33 self.currentButton.setText( |
32 self.trUtf8("Current Patch ({0})").format(currentPatch)) |
34 self.trUtf8("Current Patch ({0})").format(currentPatch)) |
33 self.nameCombo.addItems([""] + patchesList) |
35 self.nameCombo.addItems([""] + patchesList) |