89 index = 1 |
89 index = 1 |
90 else: |
90 else: |
91 index = 0 # default for bad values |
91 index = 0 # default for bad values |
92 self.layoutComboBox.setCurrentIndex(index) |
92 self.layoutComboBox.setCurrentIndex(index) |
93 |
93 |
|
94 self.codeDocumentationViewerCheckBox.setChecked( |
|
95 Preferences.getUI("ShowCodeDocumentationViewer")) |
|
96 self.cooperationCheckBox.setChecked( |
|
97 Preferences.getUI("ShowCooperation")) |
|
98 self.ircCheckBox.setChecked( |
|
99 Preferences.getUI("ShowIrc")) |
|
100 |
94 self.tabsGroupBox.setEnabled(True) |
101 self.tabsGroupBox.setEnabled(True) |
95 self.tabsCloseButtonCheckBox.setChecked( |
102 self.tabsCloseButtonCheckBox.setChecked( |
96 Preferences.getUI("SingleCloseButton")) |
103 Preferences.getUI("SingleCloseButton")) |
97 |
104 |
98 self.delaySpinBox.setValue(Preferences.getUI("SidebarDelay")) |
105 self.delaySpinBox.setValue(Preferences.getUI("SidebarDelay")) |
162 elif self.layoutComboBox.currentIndex() == 1: |
169 elif self.layoutComboBox.currentIndex() == 1: |
163 layoutType = "Toolboxes" |
170 layoutType = "Toolboxes" |
164 else: |
171 else: |
165 layoutType = "Sidebars" # just in case |
172 layoutType = "Sidebars" # just in case |
166 Preferences.setUI("LayoutType", layoutType) |
173 Preferences.setUI("LayoutType", layoutType) |
|
174 |
|
175 Preferences.setUI( |
|
176 "ShowCodeDocumentationViewer", |
|
177 self.codeDocumentationViewerCheckBox.isChecked()) |
|
178 Preferences.setUI( |
|
179 "ShowCooperation", |
|
180 self.cooperationCheckBox.isChecked()) |
|
181 Preferences.setUI( |
|
182 "ShowIrc", |
|
183 self.ircCheckBox.isChecked()) |
167 |
184 |
168 Preferences.setUI( |
185 Preferences.setUI( |
169 "SingleCloseButton", |
186 "SingleCloseButton", |
170 self.tabsCloseButtonCheckBox.isChecked()) |
187 self.tabsCloseButtonCheckBox.isChecked()) |
171 |
188 |