Preferences, InterfacePage: introduced configuration options to make the activation of the code documentation viewer, the cooperation widget and the IRC widget optional.

Mon, 09 Jul 2018 19:09:19 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 09 Jul 2018 19:09:19 +0200
changeset 6420
4dd44f42a24f
parent 6419
5d47e741245a
child 6421
ef33cbc7cc8c

Preferences, InterfacePage: introduced configuration options to make the activation of the code documentation viewer, the cooperation widget and the IRC widget optional.

Preferences/ConfigurationPages/InterfacePage.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationPages/InterfacePage.ui file | annotate | diff | comparison | revisions
Preferences/__init__.py file | annotate | diff | comparison | revisions
--- a/Preferences/ConfigurationPages/InterfacePage.py	Mon Jul 09 19:06:01 2018 +0200
+++ b/Preferences/ConfigurationPages/InterfacePage.py	Mon Jul 09 19:09:19 2018 +0200
@@ -91,6 +91,13 @@
             index = 0   # default for bad values
         self.layoutComboBox.setCurrentIndex(index)
         
+        self.codeDocumentationViewerCheckBox.setChecked(
+            Preferences.getUI("ShowCodeDocumentationViewer"))
+        self.cooperationCheckBox.setChecked(
+            Preferences.getUI("ShowCooperation"))
+        self.ircCheckBox.setChecked(
+            Preferences.getUI("ShowIrc"))
+        
         self.tabsGroupBox.setEnabled(True)
         self.tabsCloseButtonCheckBox.setChecked(
             Preferences.getUI("SingleCloseButton"))
@@ -166,6 +173,16 @@
         Preferences.setUI("LayoutType", layoutType)
         
         Preferences.setUI(
+            "ShowCodeDocumentationViewer",
+            self.codeDocumentationViewerCheckBox.isChecked())
+        Preferences.setUI(
+            "ShowCooperation",
+            self.cooperationCheckBox.isChecked())
+        Preferences.setUI(
+            "ShowIrc",
+            self.ircCheckBox.isChecked())
+        
+        Preferences.setUI(
             "SingleCloseButton",
             self.tabsCloseButtonCheckBox.isChecked())
         
--- a/Preferences/ConfigurationPages/InterfacePage.ui	Mon Jul 09 19:06:01 2018 +0200
+++ b/Preferences/ConfigurationPages/InterfacePage.ui	Mon Jul 09 19:09:19 2018 +0200
@@ -456,6 +456,45 @@
     </layout>
    </item>
    <item>
+    <widget class="QGroupBox" name="groupBox_3">
+     <property name="title">
+      <string>Integrated Tools Activation</string>
+     </property>
+     <layout class="QGridLayout" name="gridLayout_4">
+      <item row="0" column="0">
+       <widget class="QCheckBox" name="codeDocumentationViewerCheckBox">
+        <property name="toolTip">
+         <string>Select to activate the Code Documentation Viewer</string>
+        </property>
+        <property name="text">
+         <string>Code Documentation Viewer</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="1">
+       <widget class="QCheckBox" name="cooperationCheckBox">
+        <property name="toolTip">
+         <string>Select to activate the Cooperation widget</string>
+        </property>
+        <property name="text">
+         <string>Cooperation</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="0">
+       <widget class="QCheckBox" name="ircCheckBox">
+        <property name="toolTip">
+         <string>Select to activate the IRC widget</string>
+        </property>
+        <property name="text">
+         <string>IRC</string>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
     <widget class="QGroupBox" name="tabsGroupBox">
      <property name="title">
       <string>Tabs</string>
@@ -522,6 +561,9 @@
   <tabstop>delaySpinBox</tabstop>
   <tabstop>languageComboBox</tabstop>
   <tabstop>layoutComboBox</tabstop>
+  <tabstop>codeDocumentationViewerCheckBox</tabstop>
+  <tabstop>cooperationCheckBox</tabstop>
+  <tabstop>ircCheckBox</tabstop>
   <tabstop>tabsCloseButtonCheckBox</tabstop>
   <tabstop>resetLayoutButton</tabstop>
  </tabstops>
--- a/Preferences/__init__.py	Mon Jul 09 19:06:01 2018 +0200
+++ b/Preferences/__init__.py	Mon Jul 09 19:09:19 2018 +0200
@@ -167,6 +167,9 @@
         "ShowFilePreview": True,
         "ShowFilePreviewJS": True,
         "ShowFilePreviewSSI": True,
+        "ShowCodeDocumentationViewer": True,
+        "ShowCooperation": True,
+        "ShowIrc": True,
         "ViewProfiles2": {
             "edit": [
                 # saved state main window with toolbox windows (0)
@@ -1961,6 +1964,7 @@
                "LayoutShellEmbedded", "LayoutFileBrowserEmbedded",
                "CheckErrorLog", "NotificationsEnabled", "DynamicOnlineCheck",
                "OpenCrashSessionOnStartup", "CrashSessionEnabled",
+               "ShowCodeDocumentationViewer", "ShowCooperation", "ShowIrc",
                "UseNativeMenuBar"]:
         return toBool(prefClass.settings.value(
             "UI/" + key, prefClass.uiDefaults[key]))

eric ide

mercurial