7 Module implementing the Restructure dialog. |
7 Module implementing the Restructure dialog. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 from PyQt5.QtCore import pyqtSlot |
12 from PyQt4.QtCore import pyqtSlot |
13 from PyQt5.QtWidgets import QDialogButtonBox, QAbstractButton |
13 from PyQt4.QtGui import QDialogButtonBox, QAbstractButton |
14 |
14 |
15 from Ui_RestructureDialog import Ui_RestructureDialog |
15 from Ui_RestructureDialog import Ui_RestructureDialog |
16 from RefactoringDialogBase import RefactoringDialogBase |
16 from RefactoringDialogBase import RefactoringDialogBase |
17 |
17 |
18 |
18 |
35 self.setupUi(self) |
35 self.setupUi(self) |
36 |
36 |
37 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
37 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
38 self.__okButton.setEnabled(False) |
38 self.__okButton.setEnabled(False) |
39 self.__previewButton = self.buttonBox.addButton( |
39 self.__previewButton = self.buttonBox.addButton( |
40 self.tr("Preview"), QDialogButtonBox.ActionRole) |
40 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) |
41 self.__previewButton.setDefault(True) |
41 self.__previewButton.setDefault(True) |
42 |
42 |
43 self.__loadData() |
43 self.__loadData() |
44 |
44 |
45 def __updateUI(self): |
45 def __updateUI(self): |