Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py

changeset 3230
2beb981f3b6d
parent 3196
cfc025de587c
child 3484
645c12de6b0c
equal deleted inserted replaced
3229:c8bbf88ae439 3230:2beb981f3b6d
182 Private slot to select the output file. 182 Private slot to select the output file.
183 183
184 It displays a file selection dialog to 184 It displays a file selection dialog to
185 select the file the api is written to. 185 select the file the api is written to.
186 """ 186 """
187 startFile = Utilities.fromNativeSeparators(self.outputFileEdit.text())
188 if not startFile:
189 startFile = self.project.getProjectName() + ".api"
187 filename = E5FileDialog.getSaveFileName( 190 filename = E5FileDialog.getSaveFileName(
188 self, 191 self,
189 self.tr("Select output file"), 192 self.tr("Select output file"),
190 self.outputFileEdit.text(), 193 startFile,
191 self.tr("API files (*.api);;All files (*)")) 194 self.tr("API files (*.api);;All files (*)"))
192 195
193 if filename: 196 if filename:
194 # make it relative, if it is in a subdirectory of the project path 197 # make it relative, if it is in a subdirectory of the project path
195 fn = Utilities.toNativeSeparators(filename) 198 fn = Utilities.toNativeSeparators(filename)
210 Private slot to select a directory to be ignored. 213 Private slot to select a directory to be ignored.
211 214
212 It displays a directory selection dialog to 215 It displays a directory selection dialog to
213 select a directory to be ignored. 216 select a directory to be ignored.
214 """ 217 """
215 startDir = self.ignoreDirEdit.text() 218 startDir = Utilities.fromNativeSeparators(self.ignoreDirEdit.text())
216 if not startDir: 219 if not startDir:
217 startDir = self.ppath 220 startDir = self.ppath
218 directory = E5FileDialog.getExistingDirectory( 221 directory = E5FileDialog.getExistingDirectory(
219 self, 222 self,
220 self.tr("Select directory to exclude"), 223 self.tr("Select directory to exclude"),

eric ide

mercurial