src/eric7/Preferences/ConfigurationPages/EditorPropertiesPage.py

branch
eric7
changeset 10135
36839e2c6945
parent 9653
e67609152c5e
child 10373
093dcebe5ecb
--- 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.

eric ide

mercurial