src/eric7/Preferences/__init__.py

branch
eric7
changeset 11227
023943c77c42
parent 11217
856628e8a303
child 11236
75c26fe1d1c7
diff -r 84cbcddd7d10 -r 023943c77c42 src/eric7/Preferences/__init__.py
--- a/src/eric7/Preferences/__init__.py	Fri Apr 18 16:56:34 2025 +0200
+++ b/src/eric7/Preferences/__init__.py	Fri Apr 18 17:25:18 2025 +0200
@@ -166,7 +166,6 @@
         "ShowPyPIPackageManager": True,  # right side
         "ShowCondaPackageManager": True,  # right side
         "ShowCooperation": True,  # right side
-        "ShowIrc": True,  # right side
         "ShowMicroPython": True,  # right side
         "ShowInternalHelpViewer": True,  # right side
         "ShowNumbersViewer": True,  # bottom side
@@ -1478,53 +1477,6 @@
     # if true, revert layouts to factory defaults
     resetLayout = False
 
-    # defaults for IRC
-    ircDefaults = {
-        "ShowTimestamps": True,
-        "TimestampIncludeDate": False,
-        "TimeFormat": "hh:mm",
-        "DateFormat": "yyyy-MM-dd",
-        "NetworkMessageColour": "#000055",
-        "ServerMessageColour": "#91640A",
-        "ErrorMessageColour": "#FF0000",
-        "TimestampColour": "#709070",
-        "HyperlinkColour": "#0000FF",
-        "ChannelMessageColour": "#000000",
-        "OwnNickColour": "#000000",
-        "NickColour": "#18B33C",
-        "JoinChannelColour": "#72D672",
-        "LeaveChannelColour": "#B00000",
-        "ChannelInfoColour": "#9E54B3",
-        "EnableIrcColours": True,
-        "IrcColor0": "#FFFF00",
-        "IrcColor1": "#000000",
-        "IrcColor2": "#000080",
-        "IrcColor3": "#008000",
-        "IrcColor4": "#FF0000",
-        "IrcColor5": "#A52A2A",
-        "IrcColor6": "#800080",
-        "IrcColor7": "#FF8000",
-        "IrcColor8": "#808000",
-        "IrcColor9": "#00FF00",
-        "IrcColor10": "#008080",
-        "IrcColor11": "#00FFFF",
-        "IrcColor12": "#0000FF",
-        "IrcColor13": "#FFC0CB",
-        "IrcColor14": "#A0A0A0",
-        "IrcColor15": "#C0C0C0",
-        "ShowNotifications": True,
-        "NotifyJoinPart": True,
-        "NotifyMessage": False,
-        "NotifyNick": False,
-        "AutoUserInfoLookup": True,
-        "AutoUserInfoMax": 200,
-        "AutoUserInfoInterval": 90,
-        "MarkPositionWhenHidden": True,
-        "MarkerLineForegroundColour": "#000000",  # Black on
-        "MarkerLineBackgroundColour": "#ffff00",  # Yellow
-        "AskOnShutdown": True,
-    }
-
     # defaults for Hex Editor
     hexEditorDefaults = {
         "HexEditorState": QByteArray(),
@@ -2202,7 +2154,6 @@
         "ShowPyPIPackageManager",
         "ShowCondaPackageManager",
         "ShowCooperation",
-        "ShowIrc",
         "ShowTemplateViewer",
         "ShowFileBrowser",
         "ShowSymbolsViewer",
@@ -3794,48 +3745,6 @@
     Prefs.settings.setValue("TrayStarter/" + key, value)
 
 
-def getIrc(key):
-    """
-    Module function to retrieve the IRC related settings.
-
-    @param key the key of the value to get
-    @type str
-    @return the requested user setting
-    @rtype Any
-    """
-    if key in [
-        "TimestampIncludeDate",
-        "ShowTimestamps",
-        "ShowNotifications",
-        "NotifyJoinPart",
-        "NotifyMessage",
-        "NotifyNick",
-        "EnableIrcColours",
-        "AutoUserInfoLookup",
-        "MarkPositionWhenHidden",
-        "AskOnShutdown",
-    ]:
-        return EricUtilities.toBool(
-            Prefs.settings.value("IRC/" + key, Prefs.ircDefaults[key])
-        )
-    elif key in ["AutoUserInfoMax", "AutoUserInfoInterval"]:
-        return int(Prefs.settings.value("IRC/" + key, Prefs.ircDefaults[key]))
-    else:
-        return Prefs.settings.value("IRC/" + key, Prefs.ircDefaults[key])
-
-
-def setIrc(key, value):
-    """
-    Module function to store the IRC related settings.
-
-    @param key the key of the setting to be set
-    @type str
-    @param value the value to be set
-    @type Any
-    """
-    Prefs.settings.setValue("IRC/" + key, value)
-
-
 def getHexEditor(key):
     """
     Module function to retrieve the Hex Editor related settings.

eric ide

mercurial