4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to enter the data for a new dialog class file. |
7 Module implementing a dialog to enter the data for a new dialog class file. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 import os |
12 import os |
11 |
13 |
12 from PyQt4.QtCore import QDir, pyqtSlot |
14 from PyQt4.QtCore import QDir, pyqtSlot |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox |
15 from PyQt4.QtGui import QDialog, QDialogButtonBox |
29 @param defaultClassName proposed name for the new class (string) |
31 @param defaultClassName proposed name for the new class (string) |
30 @param defaultFile proposed name for the source file (string) |
32 @param defaultFile proposed name for the source file (string) |
31 @param defaultPath default path for the new file (string) |
33 @param defaultPath default path for the new file (string) |
32 @param parent parent widget if the dialog (QWidget) |
34 @param parent parent widget if the dialog (QWidget) |
33 """ |
35 """ |
34 super().__init__(parent) |
36 super(NewDialogClassDialog, self).__init__(parent) |
35 self.setupUi(self) |
37 self.setupUi(self) |
36 |
38 |
37 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
39 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
38 self.okButton.setEnabled(False) |
40 self.okButton.setEnabled(False) |
39 |
41 |