47 "AddressAreaWidth")) |
47 "AddressAreaWidth")) |
48 self.asciiAreaCheckBox.setChecked(Preferences.getHexEditor( |
48 self.asciiAreaCheckBox.setChecked(Preferences.getHexEditor( |
49 "ShowAsciiArea")) |
49 "ShowAsciiArea")) |
50 self.highlightingCheckBox.setChecked(Preferences.getHexEditor( |
50 self.highlightingCheckBox.setChecked(Preferences.getHexEditor( |
51 "HighlightChanges")) |
51 "HighlightChanges")) |
|
52 self.recentFilesSpinBox.setValue(Preferences.getHexEditor( |
|
53 "RecentNumber")) |
52 |
54 |
53 # font |
55 # font |
54 self.monospacedFont = Preferences.getHexEditor("Font") |
56 self.monospacedFont = Preferences.getHexEditor("Font") |
55 self.monospacedFontSample.setFont(self.monospacedFont) |
57 self.monospacedFontSample.setFont(self.monospacedFont) |
56 |
58 |
90 "ShowAsciiArea", self.asciiAreaCheckBox.isChecked()) |
92 "ShowAsciiArea", self.asciiAreaCheckBox.isChecked()) |
91 Preferences.setHexEditor( |
93 Preferences.setHexEditor( |
92 "HighlightChanges", self.highlightingCheckBox.isChecked()) |
94 "HighlightChanges", self.highlightingCheckBox.isChecked()) |
93 Preferences.setHexEditor( |
95 Preferences.setHexEditor( |
94 "Font", self.monospacedFont) |
96 "Font", self.monospacedFont) |
|
97 Preferences.setHexEditor( |
|
98 "RecentNumber", self.recentFilesSpinBox.value()) |
95 |
99 |
96 # colours |
100 # colours |
97 self.saveColours(Preferences.setHexEditor) |
101 self.saveColours(Preferences.setHexEditor) |
98 |
102 |
99 @pyqtSlot() |
103 @pyqtSlot() |