MultiProject/AddProjectDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2791
a9577f248f04
parent 2992
dbdf27746da5
child 3060
5883ce99ee12
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
66 self.trUtf8("Add Project"), 66 self.trUtf8("Add Project"),
67 startdir, 67 startdir,
68 self.trUtf8("Project Files (*.e4p)")) 68 self.trUtf8("Project Files (*.e4p)"))
69 69
70 if projectFile: 70 if projectFile:
71 self.filenameEdit.setText(Utilities.toNativeSeparators(projectFile)) 71 self.filenameEdit.setText(
72 Utilities.toNativeSeparators(projectFile))
72 73
73 def getData(self): 74 def getData(self):
74 """ 75 """
75 Public slot to retrieve the dialogs data. 76 Public slot to retrieve the dialogs data.
76 77
77 @return tuple of four values (string, string, boolean, string) giving the 78 @return tuple of four values (string, string, boolean, string) giving
78 project name, the name of the project file, a flag telling, whether 79 the project name, the name of the project file, a flag telling,
79 the project shall be the main project and a short description 80 whether the project shall be the main project and a short
80 for the project 81 description for the project
81 """ 82 """
82 return (self.nameEdit.text(), self.filenameEdit.text(), 83 return (self.nameEdit.text(), self.filenameEdit.text(),
83 self.masterCheckBox.isChecked(), 84 self.masterCheckBox.isChecked(),
84 self.descriptionEdit.toPlainText()) 85 self.descriptionEdit.toPlainText())
85 86
86 @pyqtSlot(str) 87 @pyqtSlot(str)
87 def on_nameEdit_textChanged(self, p0): 88 def on_nameEdit_textChanged(self, txt):
88 """ 89 """
89 Private slot called when the project name has changed. 90 Private slot called when the project name has changed.
91
92 @param txt text of the edit (string)
90 """ 93 """
91 self.__updateUi() 94 self.__updateUi()
92 95
93 @pyqtSlot(str) 96 @pyqtSlot(str)
94 def on_filenameEdit_textChanged(self, p0): 97 def on_filenameEdit_textChanged(self, txt):
95 """ 98 """
96 Private slot called when the project filename has changed. 99 Private slot called when the project filename has changed.
100
101 @param txt text of the edit (string)
97 """ 102 """
98 self.__updateUi() 103 self.__updateUi()
99 104
100 def __updateUi(self): 105 def __updateUi(self):
101 """ 106 """

eric ide

mercurial