diff -r 08ca9b336a43 -r 36839e2c6945 src/eric7/Preferences/ConfigurationPages/EditorPropertiesPage.py --- a/src/eric7/Preferences/ConfigurationPages/EditorPropertiesPage.py Tue Jul 25 13:14:27 2023 +0200 +++ b/src/eric7/Preferences/ConfigurationPages/EditorPropertiesPage.py Tue Jul 25 16:41:52 2023 +0200 @@ -289,6 +289,37 @@ Preferences.getEditor("YAMLFoldComment") ) + def setMode(self, displayMode): + """ + Public method to perform mode dependent setups. + + @param displayMode mode of the configuration dialog + @type ConfigurationMode + """ + from ..ConfigurationDialog import ConfigurationMode + + if displayMode in (ConfigurationMode.SHELLMODE,): + self.bashGroup.hide() + self.cppGroup.hide() + self.cmakeGroup.hide() + self.coffeeScriptGroup.hide() + self.cssGroup.hide() + self.dGroup.hide() + self.gettextGroup.hide() + self.htmlGroup.hide() + self.jsonGroup.hide() + self.pascalGroup.hide() + self.perlGroup.hide() + self.postscriptGroup.hide() + self.povrayGroup.hide() + self.propertiesGroup.hide() + self.rubyGroup.hide() + self.sqlGroup.hide() + self.tclGroup.hide() + self.texGroup.hide() + self.vhdlGroup.hide() + self.yamlGroup.hide() + def save(self): """ Public slot to save the Editor Properties (1) configuration.