15 from E5Gui.E5Completers import E5DirCompleter |
15 from E5Gui.E5Completers import E5DirCompleter |
16 from E5Gui import E5FileDialog |
16 from E5Gui import E5FileDialog |
17 |
17 |
18 from .Ui_NewDialogClassDialog import Ui_NewDialogClassDialog |
18 from .Ui_NewDialogClassDialog import Ui_NewDialogClassDialog |
19 |
19 |
|
20 import UI.PixmapCache |
|
21 |
20 |
22 |
21 class NewDialogClassDialog(QDialog, Ui_NewDialogClassDialog): |
23 class NewDialogClassDialog(QDialog, Ui_NewDialogClassDialog): |
22 """ |
24 """ |
23 Class implementing a dialog to ente the data for a new dialog class file. |
25 Class implementing a dialog to ente the data for a new dialog class file. |
24 """ |
26 """ |
32 @param defaultPath default path for the new file (string) |
34 @param defaultPath default path for the new file (string) |
33 @param parent parent widget if the dialog (QWidget) |
35 @param parent parent widget if the dialog (QWidget) |
34 """ |
36 """ |
35 super().__init__(parent) |
37 super().__init__(parent) |
36 self.setupUi(self) |
38 self.setupUi(self) |
|
39 |
|
40 self.pathButton.setIcon(UI.PixmapCache.getIcon("open.png")) |
37 |
41 |
38 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
42 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
39 self.okButton.setEnabled(False) |
43 self.okButton.setEnabled(False) |
40 |
44 |
41 self.pathnameCompleter = E5DirCompleter(self.pathnameEdit) |
45 self.pathnameCompleter = E5DirCompleter(self.pathnameEdit) |