64 self.trUtf8("Add Project"), |
64 self.trUtf8("Add Project"), |
65 startdir, |
65 startdir, |
66 self.trUtf8("Project Files (*.e4p)")) |
66 self.trUtf8("Project Files (*.e4p)")) |
67 |
67 |
68 if projectFile: |
68 if projectFile: |
69 self.filenameEdit.setText(Utilities.toNativeSeparators(projectFile)) |
69 self.filenameEdit.setText( |
|
70 Utilities.toNativeSeparators(projectFile)) |
70 |
71 |
71 def getData(self): |
72 def getData(self): |
72 """ |
73 """ |
73 Public slot to retrieve the dialogs data. |
74 Public slot to retrieve the dialogs data. |
74 |
75 |
75 @return tuple of four values (string, string, boolean, string) giving the |
76 @return tuple of four values (string, string, boolean, string) giving |
76 project name, the name of the project file, a flag telling, whether |
77 the project name, the name of the project file, a flag telling, |
77 the project shall be the main project and a short description |
78 whether the project shall be the main project and a short |
78 for the project |
79 description for the project |
79 """ |
80 """ |
80 return (self.nameEdit.text(), self.filenameEdit.text(), |
81 return (self.nameEdit.text(), self.filenameEdit.text(), |
81 self.masterCheckBox.isChecked(), |
82 self.masterCheckBox.isChecked(), |
82 self.descriptionEdit.toPlainText()) |
83 self.descriptionEdit.toPlainText()) |
83 |
84 |