src/eric7/Preferences/__init__.py

branch
eric7
changeset 9514
2b104ad132a4
parent 9498
d48061567354
child 9522
f46abb15aab2
--- a/src/eric7/Preferences/__init__.py	Wed Nov 16 10:10:06 2022 +0100
+++ b/src/eric7/Preferences/__init__.py	Wed Nov 16 10:53:40 2022 +0100
@@ -51,6 +51,8 @@
 from eric7.EricWidgets import EricFileDialog
 from eric7.EricWidgets.EricApplication import ericApp
 from eric7.EricWidgets.EricIconBar import EricIconBar
+
+# TODO: eliminate ProjectBrowserFlags
 from eric7.Project.ProjectBrowserFlags import (
     AllBrowsersFlag,
     FormsBrowserFlag,
@@ -771,6 +773,8 @@
     }
 
     # defaults for the project browser flags settings
+    # TODO: change this to 'projectBrowserTypesDefaults
+    #       all without 'interfaces' and 'protocols'
     projectBrowserFlagsDefaults = {
         "PyQt5": (
             SourcesBrowserFlag
@@ -2651,6 +2655,7 @@
         Prefs.settings.setValue("Project/" + key, value)
 
 
+# TODO: change this to use the type names
 def getProjectBrowserFlags(key):
     """
     Module function to retrieve the various project browser flags settings.
@@ -2676,25 +2681,6 @@
     Prefs.settings.setValue("Project/BrowserFlags/" + key, value)
 
 
-def setProjectBrowserFlagsDefault(key, value):
-    """
-    Module function to store the various project browser flags settings.
-
-    @param key the key of the setting to be set
-    @param value the value to be set
-    """
-    Prefs.projectBrowserFlagsDefaults[key] = value
-
-
-def removeProjectBrowserFlags(key):
-    """
-    Module function to remove a project browser flags setting.
-
-    @param key the key of the setting to be removed
-    """
-    Prefs.settings.remove("Project/BrowserFlags/" + key)
-
-
 def getProjectBrowserColour(key):
     """
     Module function to retrieve the various project browser colours.

eric ide

mercurial