Preferences/ConfigurationPages/EditorStylesPage.py

branch
Py2 comp.
changeset 3080
6c0a430b19df
parent 3057
10516539f238
parent 3067
8fd7ae10de2b
child 3145
a9de05d4a22f
equal deleted inserted replaced
3079:0233bbe9a9c4 3080:6c0a430b19df
63 self.trUtf8("Indicator by Margin"), QsciScintilla.WrapFlagByBorder) 63 self.trUtf8("Indicator by Margin"), QsciScintilla.WrapFlagByBorder)
64 if QSCINTILLA_VERSION() >= 0x020700: 64 if QSCINTILLA_VERSION() >= 0x020700:
65 self.wrapVisualComboBox.addItem( 65 self.wrapVisualComboBox.addItem(
66 self.trUtf8("Indicator in Line Number Margin"), 66 self.trUtf8("Indicator in Line Number Margin"),
67 QsciScintilla.WrapFlagInMargin) 67 QsciScintilla.WrapFlagInMargin)
68
69 if QSCINTILLA_VERSION() < 0x020800:
70 self.caretlineAlwaysVisibleCheckBox.hide()
68 71
69 # set initial values 72 # set initial values
70 try: 73 try:
71 self.foldingStyleComboBox.setCurrentIndex( 74 self.foldingStyleComboBox.setCurrentIndex(
72 self.foldStyles.index(Preferences.getEditor("FoldingStyle"))) 75 self.foldStyles.index(Preferences.getEditor("FoldingStyle")))
87 self.unifiedMarginsCheckBox.setChecked( 90 self.unifiedMarginsCheckBox.setChecked(
88 Preferences.getEditor("UnifiedMargins")) 91 Preferences.getEditor("UnifiedMargins"))
89 92
90 self.caretlineVisibleCheckBox.setChecked( 93 self.caretlineVisibleCheckBox.setChecked(
91 Preferences.getEditor("CaretLineVisible")) 94 Preferences.getEditor("CaretLineVisible"))
95 self.caretlineAlwaysVisibleCheckBox.setChecked(
96 Preferences.getEditor("CaretLineAlwaysVisible"))
92 self.caretWidthSpinBox.setValue( 97 self.caretWidthSpinBox.setValue(
93 Preferences.getEditor("CaretWidth")) 98 Preferences.getEditor("CaretWidth"))
94 self.colourizeSelTextCheckBox.setChecked( 99 self.colourizeSelTextCheckBox.setChecked(
95 Preferences.getEditor("ColourizeSelText")) 100 Preferences.getEditor("ColourizeSelText"))
96 self.customSelColourCheckBox.setChecked( 101 self.customSelColourCheckBox.setChecked(
233 "UnifiedMargins", self.unifiedMarginsCheckBox.isChecked()) 238 "UnifiedMargins", self.unifiedMarginsCheckBox.isChecked())
234 239
235 Preferences.setEditor( 240 Preferences.setEditor(
236 "CaretLineVisible", self.caretlineVisibleCheckBox.isChecked()) 241 "CaretLineVisible", self.caretlineVisibleCheckBox.isChecked())
237 Preferences.setEditor( 242 Preferences.setEditor(
243 "CaretLineAlwaysVisible",
244 self.caretlineAlwaysVisibleCheckBox.isChecked())
245 Preferences.setEditor(
238 "ColourizeSelText", self.colourizeSelTextCheckBox.isChecked()) 246 "ColourizeSelText", self.colourizeSelTextCheckBox.isChecked())
239 Preferences.setEditor( 247 Preferences.setEditor(
240 "CustomSelectionColours", self.customSelColourCheckBox.isChecked()) 248 "CustomSelectionColours", self.customSelColourCheckBox.isChecked())
241 Preferences.setEditor( 249 Preferences.setEditor(
242 "ExtendSelectionToEol", self.extentSelEolCheckBox.isChecked()) 250 "ExtendSelectionToEol", self.extentSelEolCheckBox.isChecked())

eric ide

mercurial