61 self.trUtf8("Indicator by Margin"), QsciScintilla.WrapFlagByBorder) |
61 self.trUtf8("Indicator by Margin"), QsciScintilla.WrapFlagByBorder) |
62 if QSCINTILLA_VERSION() >= 0x020700: |
62 if QSCINTILLA_VERSION() >= 0x020700: |
63 self.wrapVisualComboBox.addItem( |
63 self.wrapVisualComboBox.addItem( |
64 self.trUtf8("Indicator in Line Number Margin"), |
64 self.trUtf8("Indicator in Line Number Margin"), |
65 QsciScintilla.WrapFlagInMargin) |
65 QsciScintilla.WrapFlagInMargin) |
|
66 |
|
67 if QSCINTILLA_VERSION() < 0x020800: |
|
68 self.caretlineAlwaysVisibleCheckBox.hide() |
66 |
69 |
67 # set initial values |
70 # set initial values |
68 try: |
71 try: |
69 self.foldingStyleComboBox.setCurrentIndex( |
72 self.foldingStyleComboBox.setCurrentIndex( |
70 self.foldStyles.index(Preferences.getEditor("FoldingStyle"))) |
73 self.foldStyles.index(Preferences.getEditor("FoldingStyle"))) |
85 self.unifiedMarginsCheckBox.setChecked( |
88 self.unifiedMarginsCheckBox.setChecked( |
86 Preferences.getEditor("UnifiedMargins")) |
89 Preferences.getEditor("UnifiedMargins")) |
87 |
90 |
88 self.caretlineVisibleCheckBox.setChecked( |
91 self.caretlineVisibleCheckBox.setChecked( |
89 Preferences.getEditor("CaretLineVisible")) |
92 Preferences.getEditor("CaretLineVisible")) |
|
93 self.caretlineAlwaysVisibleCheckBox.setChecked( |
|
94 Preferences.getEditor("CaretLineAlwaysVisible")) |
90 self.caretWidthSpinBox.setValue( |
95 self.caretWidthSpinBox.setValue( |
91 Preferences.getEditor("CaretWidth")) |
96 Preferences.getEditor("CaretWidth")) |
92 self.colourizeSelTextCheckBox.setChecked( |
97 self.colourizeSelTextCheckBox.setChecked( |
93 Preferences.getEditor("ColourizeSelText")) |
98 Preferences.getEditor("ColourizeSelText")) |
94 self.customSelColourCheckBox.setChecked( |
99 self.customSelColourCheckBox.setChecked( |
231 "UnifiedMargins", self.unifiedMarginsCheckBox.isChecked()) |
236 "UnifiedMargins", self.unifiedMarginsCheckBox.isChecked()) |
232 |
237 |
233 Preferences.setEditor( |
238 Preferences.setEditor( |
234 "CaretLineVisible", self.caretlineVisibleCheckBox.isChecked()) |
239 "CaretLineVisible", self.caretlineVisibleCheckBox.isChecked()) |
235 Preferences.setEditor( |
240 Preferences.setEditor( |
|
241 "CaretLineAlwaysVisible", |
|
242 self.caretlineAlwaysVisibleCheckBox.isChecked()) |
|
243 Preferences.setEditor( |
236 "ColourizeSelText", self.colourizeSelTextCheckBox.isChecked()) |
244 "ColourizeSelText", self.colourizeSelTextCheckBox.isChecked()) |
237 Preferences.setEditor( |
245 Preferences.setEditor( |
238 "CustomSelectionColours", self.customSelColourCheckBox.isChecked()) |
246 "CustomSelectionColours", self.customSelColourCheckBox.isChecked()) |
239 Preferences.setEditor( |
247 Preferences.setEditor( |
240 "ExtendSelectionToEol", self.extentSelEolCheckBox.isChecked()) |
248 "ExtendSelectionToEol", self.extentSelEolCheckBox.isChecked()) |