diff -r 74a7c9c7d424 -r b0bbe8bda1f2 eric7/Preferences/ConfigurationDialog.py --- a/eric7/Preferences/ConfigurationDialog.py Fri Dec 31 17:19:19 2021 +0100 +++ b/eric7/Preferences/ConfigurationDialog.py Fri Dec 31 17:22:45 2021 +0100 @@ -69,6 +69,7 @@ TRAYSTARTERMODE = 1 HEXEDITORMODE = 2 WEBBROWSERMODE = 3 + EDITORMODE = 4 class ConfigurationWidget(QWidget): @@ -381,6 +382,67 @@ ericApp().getObject("PluginManager").getPluginConfigData()) # TODO: add mode for Mini Editor (?) + elif displayMode == ConfigurationMode.EDITORMODE: + self.configItems = { + # key : [display string, pixmap name, dialog module name or + # page creation function, parent key, + # reference to configuration page (must always be last)] + # The dialog module must have the module function 'create' to + # create the configuration page. This must have the method + # 'save' to save the settings. + "iconsPage": + [self.tr("Icons"), "preferences-icons", + "IconsPage", None, None], + "interfacePage": + [self.tr("Interface"), "preferences-interface", + "InterfaceLightPage", None, None], + "printerPage": + [self.tr("Printer"), "preferences-printer", + "PrinterPage", None, None], + + "0editorPage": + [self.tr("Editor"), "preferences-editor", + None, None, None], + "editorGeneralPage": + [self.tr("General"), "preferences-general", + "EditorGeneralPage", "0editorPage", None], + "editorFilePage": + [self.tr("Filehandling"), + "preferences-filehandling", + "EditorFilePage", "0editorPage", None], + "editorSearchPage": + [self.tr("Searching"), "preferences-search", + "EditorSearchPage", "0editorPage", None], + "editorSpellCheckingPage": + [self.tr("Spell checking"), + "preferences-spellchecking", + "EditorSpellCheckingPage", "0editorPage", None], + "editorStylesPage": + [self.tr("Style"), "preferences-styles", + "EditorStylesPage", "0editorPage", None], + "editorTypingPage": + [self.tr("Typing"), "preferences-typing", + "EditorTypingPage", "0editorPage", None], + + "1editorLexerPage": + [self.tr("Highlighters"), + "preferences-highlighting-styles", + None, "0editorPage", None], + "editorHighlightersPage": + [self.tr("Filetype Associations"), + "preferences-highlighter-association", + "EditorHighlightersPage", "1editorLexerPage", None], + "editorHighlightingStylesPage": + [self.tr("Styles"), + "preferences-highlighting-styles", + "EditorHighlightingStylesPage", "1editorLexerPage", None], + "editorKeywordsPage": + [self.tr("Keywords"), "preferences-keywords", + "EditorKeywordsPage", "1editorLexerPage", None], + "editorPropertiesPage": + [self.tr("Properties"), "preferences-properties", + "EditorPropertiesPage", "1editorLexerPage", None], + } elif displayMode == ConfigurationMode.WEBBROWSERMODE: self.configItems = { @@ -390,6 +452,9 @@ # The dialog module must have the module function 'create' to # create the configuration page. This must have the method # 'save' to save the settings. + "iconsPage": + [self.tr("Icons"), "preferences-icons", + "IconsPage", None, None], "interfacePage": [self.tr("Interface"), "preferences-interface", "InterfaceLightPage", None, None], @@ -446,6 +511,9 @@ # The dialog module must have the module function 'create' to # create the configuration page. This must have the method # 'save' to save the settings. + "iconsPage": + [self.tr("Icons"), "preferences-icons", + "IconsPage", None, None], "interfacePage": [self.tr("Interface"), "preferences-interface", "InterfaceLightPage", None, None], @@ -463,6 +531,9 @@ # The dialog module must have the module function 'create' to # create the configuration page. This must have the method # 'save' to save the settings. + "iconsPage": + [self.tr("Icons"), "preferences-icons", + "IconsPage", None, None], "interfacePage": [self.tr("Interface"), "preferences-interface", "InterfaceLightPage", None, None],