81 self.brRightButton.setChecked(True) |
81 self.brRightButton.setChecked(True) |
82 else: |
82 else: |
83 self.brTopButton.setChecked(True) |
83 self.brTopButton.setChecked(True) |
84 |
84 |
85 layout = Preferences.getUILayout() |
85 layout = Preferences.getUILayout() |
86 if layout[0] == "DockWindows": |
86 if layout[0] == "Sidebars": |
87 index = 0 |
87 index = 0 |
88 elif layout[0] == "FloatingWindows": |
88 elif layout[0] == "Toolboxes": |
89 index = 1 |
89 index = 1 |
90 elif layout[0] == "Toolboxes": |
90 else: |
91 index = 2 |
91 index = 0 # default for bad values |
92 elif layout[0] == "Sidebars": |
|
93 index = 3 |
|
94 else: |
|
95 index = 3 # default for bad values |
|
96 self.layoutComboBox.setCurrentIndex(index) |
92 self.layoutComboBox.setCurrentIndex(index) |
97 if layout[1] == 0: |
93 if layout[1] == 0: |
98 self.separateShellButton.setChecked(True) |
94 self.separateShellButton.setChecked(True) |
99 else: |
95 else: |
100 self.debugEmbeddedShellButton.setChecked(True) |
96 self.debugEmbeddedShellButton.setChecked(True) |
176 elif self.debugEmbeddedFileBrowserButton.isChecked(): |
172 elif self.debugEmbeddedFileBrowserButton.isChecked(): |
177 layout3 = 1 |
173 layout3 = 1 |
178 else: |
174 else: |
179 layout3 = 2 |
175 layout3 = 2 |
180 if self.layoutComboBox.currentIndex() == 0: |
176 if self.layoutComboBox.currentIndex() == 0: |
181 layout1 = "DockWindows" |
177 layout1 = "Sidebars" |
182 elif self.layoutComboBox.currentIndex() == 1: |
178 elif self.layoutComboBox.currentIndex() == 1: |
183 layout1 = "FloatingWindows" |
|
184 elif self.layoutComboBox.currentIndex() == 2: |
|
185 layout1 = "Toolboxes" |
179 layout1 = "Toolboxes" |
186 elif self.layoutComboBox.currentIndex() == 3: |
|
187 layout1 = "Sidebars" |
|
188 else: |
180 else: |
189 layout1 = "Sidebars" # just in case |
181 layout1 = "Sidebars" # just in case |
190 layout = (layout1, layout2, layout3) |
182 layout = (layout1, layout2, layout3) |
191 Preferences.setUILayout(layout) |
183 Preferences.setUILayout(layout) |
192 |
184 |