Project/AddFileDialog.py

changeset 2995
63d874899b8b
parent 2478
c4d8d795d356
child 3038
7fe9a53280bd
child 3057
10516539f238
equal deleted inserted replaced
2994:5ae1349b8fb4 2995:63d874899b8b
44 44
45 self.targetDirEdit.setText(pro.ppath) 45 self.targetDirEdit.setText(pro.ppath)
46 self.filter = filter 46 self.filter = filter
47 self.ppath = pro.ppath 47 self.ppath = pro.ppath
48 self.startdir = startdir 48 self.startdir = startdir
49 self.filetypes = pro.pdata["FILETYPES"] # save a reference to the filetypes dict 49 self.filetypes = pro.pdata["FILETYPES"]
50 # save a reference to the filetypes dict
50 51
51 if self.filter is not None: 52 if self.filter is not None:
52 self.sourcecodeCheckBox.hide() 53 self.sourcecodeCheckBox.hide()
53 54
54 @pyqtSlot() 55 @pyqtSlot()
176 177
177 def getData(self): 178 def getData(self):
178 """ 179 """
179 Public slot to retrieve the dialogs data. 180 Public slot to retrieve the dialogs data.
180 181
181 @return tuple of three values (list of string, string, boolean) giving the 182 @return tuple of three values (list of string, string, boolean)
182 source files, the target directory and a flag telling, whether 183 giving the source files, the target directory and a flag
183 the files shall be added as source code 184 telling, whether the files shall be added as source code
184 """ 185 """
185 return ( 186 return (
186 [Utilities.toNativeSeparators(f) for f in 187 [Utilities.toNativeSeparators(f) for f in
187 self.sourceFileEdit.text().split(os.pathsep)], 188 self.sourceFileEdit.text().split(os.pathsep)],
188 Utilities.toNativeSeparators(self.targetDirEdit.text()), 189 Utilities.toNativeSeparators(self.targetDirEdit.text()),

eric ide

mercurial