Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py

changeset 3190
a9a94491c4fd
parent 3186
a05eff845522
child 3230
2beb981f3b6d
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
48 48
49 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) 49 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
50 50
51 self.__initializeDefaults() 51 self.__initializeDefaults()
52 52
53 self.sampleText = self.trUtf8( 53 self.sampleText = self.tr(
54 '''<?xml version="1.0" encoding="utf-8"?>''' 54 '''<?xml version="1.0" encoding="utf-8"?>'''
55 '''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"''' 55 '''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'''
56 '''"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">''' 56 '''"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'''
57 '''<html><head>''' 57 '''<html><head>'''
58 '''<title></title>''' 58 '''<title></title>'''
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 directory = E5FileDialog.getExistingDirectory( 296 directory = E5FileDialog.getExistingDirectory(
297 self, 297 self,
298 self.trUtf8("Select output directory"), 298 self.tr("Select output directory"),
299 self.outputDirEdit.text(), 299 self.outputDirEdit.text(),
300 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) 300 E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
301 301
302 if directory: 302 if directory:
303 # make it relative, if it is a subdirectory of the project path 303 # make it relative, if it is a subdirectory of the project path
318 startDir = self.ignoreDirEdit.text() 318 startDir = self.ignoreDirEdit.text()
319 if not startDir: 319 if not startDir:
320 startDir = self.ppath 320 startDir = self.ppath
321 directory = E5FileDialog.getExistingDirectory( 321 directory = E5FileDialog.getExistingDirectory(
322 self, 322 self,
323 self.trUtf8("Select directory to exclude"), 323 self.tr("Select directory to exclude"),
324 startDir, 324 startDir,
325 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) 325 E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
326 326
327 if directory: 327 if directory:
328 # make it relative, if it is a subdirectory of the project path 328 # make it relative, if it is a subdirectory of the project path
358 """ 358 """
359 Private slot to select a css style sheet. 359 Private slot to select a css style sheet.
360 """ 360 """
361 cssFile = E5FileDialog.getOpenFileName( 361 cssFile = E5FileDialog.getOpenFileName(
362 self, 362 self,
363 self.trUtf8("Select CSS style sheet"), 363 self.tr("Select CSS style sheet"),
364 getConfig('ericCSSDir'), 364 getConfig('ericCSSDir'),
365 self.trUtf8("Style sheet (*.css);;All files (*)")) 365 self.tr("Style sheet (*.css);;All files (*)"))
366 366
367 if cssFile: 367 if cssFile:
368 # make it relative, if it is in a subdirectory of the project path 368 # make it relative, if it is in a subdirectory of the project path
369 cf = Utilities.toNativeSeparators(cssFile) 369 cf = Utilities.toNativeSeparators(cssFile)
370 cf = self.project.getRelativePath(cf) 370 cf = self.project.getRelativePath(cf)
507 It displays a directory selection dialog to 507 It displays a directory selection dialog to
508 select the directory the QtHelp files are written to. 508 select the directory the QtHelp files are written to.
509 """ 509 """
510 directory = E5FileDialog.getExistingDirectory( 510 directory = E5FileDialog.getExistingDirectory(
511 self, 511 self,
512 self.trUtf8("Select output directory for QtHelp files"), 512 self.tr("Select output directory for QtHelp files"),
513 self.qtHelpDirEdit.text(), 513 self.qtHelpDirEdit.text(),
514 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) 514 E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
515 515
516 if directory: 516 if directory:
517 # make it relative, if it is a subdirectory of the project path 517 # make it relative, if it is a subdirectory of the project path

eric ide

mercurial