Mon, 09 Jul 2018 19:09:19 +0200
Preferences, InterfacePage: introduced configuration options to make the activation of the code documentation viewer, the cooperation widget and the IRC widget optional.
--- 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]))