MultiProject/AddProjectDialog.py

changeset 945
8cd4d08fa9f6
parent 882
34b86be88bf0
child 1112
8a7d1b9d18db
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
15 15
16 from .Ui_AddProjectDialog import Ui_AddProjectDialog 16 from .Ui_AddProjectDialog import Ui_AddProjectDialog
17 17
18 import Utilities 18 import Utilities
19 19
20
20 class AddProjectDialog(QDialog, Ui_AddProjectDialog): 21 class AddProjectDialog(QDialog, Ui_AddProjectDialog):
21 """ 22 """
22 Class implementing the add project dialog. 23 Class implementing the add project dialog.
23 """ 24 """
24 def __init__(self, parent = None, startdir = None, project = None): 25 def __init__(self, parent=None, startdir=None, project=None):
25 """ 26 """
26 Constructor 27 Constructor
27 28
28 @param parent parent widget of this dialog (QWidget) 29 @param parent parent widget of this dialog (QWidget)
29 @param startdir start directory for the selection dialog (string) 30 @param startdir start directory for the selection dialog (string)
69 70
70 def getData(self): 71 def getData(self):
71 """ 72 """
72 Public slot to retrieve the dialogs data. 73 Public slot to retrieve the dialogs data.
73 74
74 @return tuple of four values (string, string, boolean, string) giving the 75 @return tuple of four values (string, string, boolean, string) giving the
75 project name, the name of the project file, a flag telling, whether 76 project name, the name of the project file, a flag telling, whether
76 the project shall be the master project and a short description 77 the project shall be the master project and a short description
77 for the project 78 for the project
78 """ 79 """
79 return (self.nameEdit.text(), self.filenameEdit.text(), 80 return (self.nameEdit.text(), self.filenameEdit.text(),
80 self.masterCheckBox.isChecked(), 81 self.masterCheckBox.isChecked(),
81 self.descriptionEdit.toPlainText()) 82 self.descriptionEdit.toPlainText())
82 83
83 @pyqtSlot(str) 84 @pyqtSlot(str)
84 def on_nameEdit_textChanged(self, p0): 85 def on_nameEdit_textChanged(self, p0):
85 """ 86 """

eric ide

mercurial