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