39 currentVm = Preferences.getViewManager() |
39 currentVm = Preferences.getViewManager() |
40 |
40 |
41 keys = sorted(self.viewmanagers.keys()) |
41 keys = sorted(self.viewmanagers.keys()) |
42 for key in keys: |
42 for key in keys: |
43 self.windowComboBox.addItem( |
43 self.windowComboBox.addItem( |
44 self.trUtf8(self.viewmanagers[key]), key) |
44 self.tr(self.viewmanagers[key]), key) |
45 currentIndex = self.windowComboBox.findText( |
45 currentIndex = self.windowComboBox.findText( |
46 self.trUtf8(self.viewmanagers[currentVm])) |
46 self.tr(self.viewmanagers[currentVm])) |
47 self.windowComboBox.setCurrentIndex(currentIndex) |
47 self.windowComboBox.setCurrentIndex(currentIndex) |
48 self.on_windowComboBox_activated(currentIndex) |
48 self.on_windowComboBox_activated(currentIndex) |
49 |
49 |
50 self.tabViewGroupBox.setTitle( |
50 self.tabViewGroupBox.setTitle( |
51 self.trUtf8(self.viewmanagers["tabview"])) |
51 self.tr(self.viewmanagers["tabview"])) |
52 |
52 |
53 self.filenameLengthSpinBox.setValue( |
53 self.filenameLengthSpinBox.setValue( |
54 Preferences.getUI("TabViewManagerFilenameLength")) |
54 Preferences.getUI("TabViewManagerFilenameLength")) |
55 self.filenameOnlyCheckBox.setChecked( |
55 self.filenameOnlyCheckBox.setChecked( |
56 Preferences.getUI("TabViewManagerFilenameOnly")) |
56 Preferences.getUI("TabViewManagerFilenameOnly")) |