Project/NewDialogClassDialog.py

changeset 945
8cd4d08fa9f6
parent 928
41f8bd4b1ed7
child 1112
8a7d1b9d18db
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
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
20 class NewDialogClassDialog(QDialog, Ui_NewDialogClassDialog): 21 class NewDialogClassDialog(QDialog, Ui_NewDialogClassDialog):
21 """ 22 """
22 Class implementing a dialog to ente the data for a new dialog class file. 23 Class implementing a dialog to ente the data for a new dialog class file.
23 """ 24 """
24 def __init__(self, defaultClassName, defaultFile, defaultPath, parent = None): 25 def __init__(self, defaultClassName, defaultFile, defaultPath, parent=None):
25 """ 26 """
26 Constructor 27 Constructor
27 28
28 @param defaultClassName proposed name for the new class (string) 29 @param defaultClassName proposed name for the new class (string)
29 @param defaultFile proposed name for the source file (string) 30 @param defaultFile proposed name for the source file (string)
58 """ 59 """
59 Private slot to set the enable state of theok button. 60 Private slot to set the enable state of theok button.
60 """ 61 """
61 self.okButton.setEnabled( 62 self.okButton.setEnabled(
62 self.classnameEdit.text() != "" and \ 63 self.classnameEdit.text() != "" and \
63 self.filenameEdit.text() != "" and \ 64 self.filenameEdit.text() != "" and \
64 self.pathnameEdit.text() != "") 65 self.pathnameEdit.text() != "")
65 66
66 def on_classnameEdit_textChanged(self, text): 67 def on_classnameEdit_textChanged(self, text):
67 """ 68 """
68 Private slot called, when thext of the classname edit has changed. 69 Private slot called, when thext of the classname edit has changed.
69 70

eric ide

mercurial