Preferences/ConfigurationPages/ViewmanagerPage.py

changeset 3025
67064c71df21
parent 3010
befeff46ec0f
child 3058
0a02c433f52d
child 3160
209a07d7e401
equal deleted inserted replaced
3024:17c01303a239 3025:67064c71df21
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 """

eric ide

mercurial