Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py

changeset 3230
2beb981f3b6d
parent 3190
a9a94491c4fd
child 3484
645c12de6b0c
equal deleted inserted replaced
3229:c8bbf88ae439 3230:2beb981f3b6d
291 Private slot to select the output directory. 291 Private slot to select the output directory.
292 292
293 It displays a directory selection dialog to 293 It displays a directory selection dialog to
294 select the directory the documentations is written to. 294 select the directory the documentations is written to.
295 """ 295 """
296 startDir = Utilities.fromNativeSeparators(self.outputDirEdit.text())
297 if not startDir:
298 startDir = Utilities.fromNativeSeparators(self.ppath)
296 directory = E5FileDialog.getExistingDirectory( 299 directory = E5FileDialog.getExistingDirectory(
297 self, 300 self,
298 self.tr("Select output directory"), 301 self.tr("Select output directory"),
299 self.outputDirEdit.text(), 302 startDir,
300 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) 303 E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
301 304
302 if directory: 305 if directory:
303 # make it relative, if it is a subdirectory of the project path 306 # make it relative, if it is a subdirectory of the project path
304 dn = Utilities.toNativeSeparators(directory) 307 dn = Utilities.toNativeSeparators(directory)
313 Private slot to select a directory to be ignored. 316 Private slot to select a directory to be ignored.
314 317
315 It displays a directory selection dialog to 318 It displays a directory selection dialog to
316 select a directory to be ignored. 319 select a directory to be ignored.
317 """ 320 """
318 startDir = self.ignoreDirEdit.text() 321 startDir = Utilities.fromNativeSeparators(self.ignoreDirEdit.text())
319 if not startDir: 322 if not startDir:
320 startDir = self.ppath 323 startDir = self.ppath
321 directory = E5FileDialog.getExistingDirectory( 324 directory = E5FileDialog.getExistingDirectory(
322 self, 325 self,
323 self.tr("Select directory to exclude"), 326 self.tr("Select directory to exclude"),

eric ide

mercurial