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