13 |
13 |
14 from .ConfigurationPageBase import ConfigurationPageBase |
14 from .ConfigurationPageBase import ConfigurationPageBase |
15 from .Ui_ViewmanagerPage import Ui_ViewmanagerPage |
15 from .Ui_ViewmanagerPage import Ui_ViewmanagerPage |
16 |
16 |
17 import Preferences |
17 import Preferences |
|
18 |
18 |
19 |
19 class ViewmanagerPage(ConfigurationPageBase, Ui_ViewmanagerPage): |
20 class ViewmanagerPage(ConfigurationPageBase, Ui_ViewmanagerPage): |
20 """ |
21 """ |
21 Class implementing the Viewmanager configuration page. |
22 Class implementing the Viewmanager configuration page. |
22 """ |
23 """ |
60 Preferences.setViewManager(vm) |
61 Preferences.setViewManager(vm) |
61 Preferences.setUI("TabViewManagerFilenameLength", |
62 Preferences.setUI("TabViewManagerFilenameLength", |
62 self.filenameLengthSpinBox.value()) |
63 self.filenameLengthSpinBox.value()) |
63 Preferences.setUI("TabViewManagerFilenameOnly", |
64 Preferences.setUI("TabViewManagerFilenameOnly", |
64 self.filenameOnlyCheckBox.isChecked()) |
65 self.filenameOnlyCheckBox.isChecked()) |
65 Preferences.setUI("RecentNumber", |
66 Preferences.setUI("RecentNumber", |
66 self.recentFilesSpinBox.value()) |
67 self.recentFilesSpinBox.value()) |
67 |
68 |
68 @pyqtSlot(int) |
69 @pyqtSlot(int) |
69 def on_windowComboBox_activated(self, index): |
70 def on_windowComboBox_activated(self, index): |
70 """ |
71 """ |
77 pixmap = self.pluginManager.getPluginPreviewPixmap("viewmanager", workspace) |
78 pixmap = self.pluginManager.getPluginPreviewPixmap("viewmanager", workspace) |
78 |
79 |
79 self.previewPixmap.setPixmap(pixmap) |
80 self.previewPixmap.setPixmap(pixmap) |
80 self.tabViewGroupBox.setEnabled(workspace == "tabview") |
81 self.tabViewGroupBox.setEnabled(workspace == "tabview") |
81 |
82 |
|
83 |
82 def create(dlg): |
84 def create(dlg): |
83 """ |
85 """ |
84 Module function to create the configuration page. |
86 Module function to create the configuration page. |
85 |
87 |
86 @param dlg reference to the configuration dialog |
88 @param dlg reference to the configuration dialog |