eric7/Preferences/ConfigurationDialog.py

branch
eric7
changeset 8876
2001accf55b3
parent 8875
67c3ea933787
child 8881
54e42bc2437a
equal deleted inserted replaced
8875:67c3ea933787 8876:2001accf55b3
378 }) 378 })
379 379
380 self.configItems.update( 380 self.configItems.update(
381 ericApp().getObject("PluginManager").getPluginConfigData()) 381 ericApp().getObject("PluginManager").getPluginConfigData())
382 382
383 # TODO: add mode for Mini Editor (?)
384
383 elif displayMode == ConfigurationMode.WEBBROWSERMODE: 385 elif displayMode == ConfigurationMode.WEBBROWSERMODE:
384 self.configItems = { 386 self.configItems = {
385 # key : [display string, pixmap name, dialog module name or 387 # key : [display string, pixmap name, dialog module name or
386 # page creation function, parent key, 388 # page creation function, parent key,
387 # reference to configuration page (must always be last)] 389 # reference to configuration page (must always be last)]
388 # The dialog module must have the module function 'create' to 390 # The dialog module must have the module function 'create' to
389 # create the configuration page. This must have the method 391 # create the configuration page. This must have the method
390 # 'save' to save the settings. 392 # 'save' to save the settings.
391 "interfacePage": 393 "interfacePage":
392 [self.tr("Interface"), "preferences-interface", 394 [self.tr("Interface"), "preferences-interface",
393 "WebBrowserInterfacePage", None, None], 395 "InterfaceLightPage", None, None],
394 "networkPage": 396 "networkPage":
395 [self.tr("Network"), "preferences-network", 397 [self.tr("Network"), "preferences-network",
396 "NetworkPage", None, None], 398 "NetworkPage", None, None],
397 "printerPage": 399 "printerPage":
398 [self.tr("Printer"), "preferences-printer", 400 [self.tr("Printer"), "preferences-printer",
444 # The dialog module must have the module function 'create' to 446 # The dialog module must have the module function 'create' to
445 # create the configuration page. This must have the method 447 # create the configuration page. This must have the method
446 # 'save' to save the settings. 448 # 'save' to save the settings.
447 "interfacePage": 449 "interfacePage":
448 [self.tr("Interface"), "preferences-interface", 450 [self.tr("Interface"), "preferences-interface",
449 "WebBrowserInterfacePage", None, None], 451 "InterfaceLightPage", None, None],
450 "hexEditorPage": 452 "hexEditorPage":
451 [self.tr("Hex Editor"), "hexEditor", 453 [self.tr("Hex Editor"), "hexEditor",
452 "HexEditorPage", None, None], 454 "HexEditorPage", None, None],
453 } 455 }
454
455 # TODO: add mode for Mini Editor
456 456
457 else: 457 else:
458 # display mode for generic use 458 # display mode for generic use
459 self.configItems = { 459 self.configItems = {
460 # key : [display string, pixmap name, dialog module name or 460 # key : [display string, pixmap name, dialog module name or
463 # The dialog module must have the module function 'create' to 463 # The dialog module must have the module function 'create' to
464 # create the configuration page. This must have the method 464 # create the configuration page. This must have the method
465 # 'save' to save the settings. 465 # 'save' to save the settings.
466 "interfacePage": 466 "interfacePage":
467 [self.tr("Interface"), "preferences-interface", 467 [self.tr("Interface"), "preferences-interface",
468 "WebBrowserInterfacePage", None, None], 468 "InterfaceLightPage", None, None],
469 } 469 }
470 470
471 # generate the list entries 471 # generate the list entries
472 self.__expandedEntries = [] 472 self.__expandedEntries = []
473 for key in sorted(self.configItems.keys()): 473 for key in sorted(self.configItems.keys()):

eric ide

mercurial