57 |
57 |
58 def save(self): |
58 def save(self): |
59 """ |
59 """ |
60 Public slot to save the Viewmanager configuration. |
60 Public slot to save the Viewmanager configuration. |
61 """ |
61 """ |
62 vm = \ |
62 vm = self.windowComboBox.itemData( |
63 self.windowComboBox.itemData(self.windowComboBox.currentIndex()) |
63 self.windowComboBox.currentIndex()) |
64 Preferences.setViewManager(vm) |
64 Preferences.setViewManager(vm) |
65 Preferences.setUI("TabViewManagerFilenameLength", |
65 Preferences.setUI( |
|
66 "TabViewManagerFilenameLength", |
66 self.filenameLengthSpinBox.value()) |
67 self.filenameLengthSpinBox.value()) |
67 Preferences.setUI("TabViewManagerFilenameOnly", |
68 Preferences.setUI( |
|
69 "TabViewManagerFilenameOnly", |
68 self.filenameOnlyCheckBox.isChecked()) |
70 self.filenameOnlyCheckBox.isChecked()) |
69 Preferences.setUI("RecentNumber", |
71 Preferences.setUI( |
|
72 "RecentNumber", |
70 self.recentFilesSpinBox.value()) |
73 self.recentFilesSpinBox.value()) |
71 |
74 |
72 @pyqtSlot(int) |
75 @pyqtSlot(int) |
73 def on_windowComboBox_activated(self, index): |
76 def on_windowComboBox_activated(self, index): |
74 """ |
77 """ |