Preferences/ConfigurationPages/EditorHighlightingStylesPage.py

changeset 564
b3d966393ba9
parent 537
72b32daeb8d6
child 593
32c9b36eec53
equal deleted inserted replaced
563:e35d2cda9a74 564:b3d966393ba9
287 """ 287 """
288 Private method used to set the eolfill for all styles of a selected lexer. 288 Private method used to set the eolfill for all styles of a selected lexer.
289 """ 289 """
290 on = self.trUtf8("Enabled") 290 on = self.trUtf8("Enabled")
291 off = self.trUtf8("Disabled") 291 off = self.trUtf8("Disabled")
292 selection, ok = QInputDialog.getItem(\ 292 selection, ok = QInputDialog.getItem(
293 self, 293 self,
294 self.trUtf8("Fill to end of line"), 294 self.trUtf8("Fill to end of line"),
295 self.trUtf8("Select fill to end of line for all styles"), 295 self.trUtf8("Select fill to end of line for all styles"),
296 [on, off], 296 [on, off],
297 0, False) 297 0, False)
366 """ 366 """
367 Private method to export the styles of the given lexers. 367 Private method to export the styles of the given lexers.
368 368
369 @param lexers list of lexer objects for which to export the styles 369 @param lexers list of lexer objects for which to export the styles
370 """ 370 """
371 fn, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ 371 fn, selectedFilter = QFileDialog.getSaveFileNameAndFilter(
372 self, 372 self,
373 self.trUtf8("Export Highlighting Styles"), 373 self.trUtf8("Export Highlighting Styles"),
374 "", 374 "",
375 self.trUtf8("Highlighting styles file (*.e4h)"), 375 self.trUtf8("Highlighting styles file (*.e4h)"),
376 "", 376 "",
401 """ 401 """
402 Private method to import the styles of the given lexers. 402 Private method to import the styles of the given lexers.
403 403
404 @param lexers dictionary of lexer objects for which to import the styles 404 @param lexers dictionary of lexer objects for which to import the styles
405 """ 405 """
406 fn = QFileDialog.getOpenFileName(\ 406 fn = QFileDialog.getOpenFileName(
407 self, 407 self,
408 self.trUtf8("Import Highlighting Styles"), 408 self.trUtf8("Import Highlighting Styles"),
409 "", 409 "",
410 self.trUtf8("Highlighting styles file (*.e4h)")) 410 self.trUtf8("Highlighting styles file (*.e4h)"))
411 411

eric ide

mercurial