Preferences/ConfigurationPages/EditorStylesPage.py

changeset 6842
c83dcb7c6147
parent 6648
c09e6c6006eb
child 6843
5e1afd1577b9
equal deleted inserted replaced
6841:43af1e698c9d 6842:c83dcb7c6147
69 self.tr("Indicator by Margin"), QsciScintilla.WrapFlagByBorder) 69 self.tr("Indicator by Margin"), QsciScintilla.WrapFlagByBorder)
70 if QSCINTILLA_VERSION() >= 0x020700: 70 if QSCINTILLA_VERSION() >= 0x020700:
71 self.wrapVisualComboBox.addItem( 71 self.wrapVisualComboBox.addItem(
72 self.tr("Indicator in Line Number Margin"), 72 self.tr("Indicator in Line Number Margin"),
73 QsciScintilla.WrapFlagInMargin) 73 QsciScintilla.WrapFlagInMargin)
74
75 self.wrapIndentComboBox.addItem(
76 self.tr("Fixed Amount"), QsciScintilla.WrapIndentFixed)
77 self.wrapIndentComboBox.addItem(
78 self.tr("Aligned to First Line"), QsciScintilla.WrapIndentSame)
79 self.wrapIndentComboBox.addItem(
80 self.tr("Aligned to First Line plus One"),
81 QsciScintilla.WrapIndentIndented)
82 if QSCINTILLA_VERSION() >= 0x020B00:
83 self.wrapIndentComboBox.addItem(
84 self.tr("Aligned to First Line plus Two"),
85 QsciScintilla.WrapIndentDeeplyIndented)
74 86
75 if QSCINTILLA_VERSION() < 0x020800: 87 if QSCINTILLA_VERSION() < 0x020800:
76 self.caretlineAlwaysVisibleCheckBox.hide() 88 self.caretlineAlwaysVisibleCheckBox.hide()
77 89
78 # set initial values 90 # set initial values
153 self.wrapModeComboBox.setCurrentIndex(self.wrapModeComboBox.findData( 165 self.wrapModeComboBox.setCurrentIndex(self.wrapModeComboBox.findData(
154 Preferences.getEditor("WrapLongLinesMode"))) 166 Preferences.getEditor("WrapLongLinesMode")))
155 self.wrapVisualComboBox.setCurrentIndex( 167 self.wrapVisualComboBox.setCurrentIndex(
156 self.wrapVisualComboBox.findData( 168 self.wrapVisualComboBox.findData(
157 Preferences.getEditor("WrapVisualFlag"))) 169 Preferences.getEditor("WrapVisualFlag")))
170 self.wrapIndentComboBox.setCurrentIndex(
171 self.wrapIndentComboBox.findData(
172 Preferences.getEditor("WrapIndentMode")))
158 173
159 self.edgeModeCombo.setCurrentIndex( 174 self.edgeModeCombo.setCurrentIndex(
160 self.edgeModes.index(Preferences.getEditor("EdgeMode"))) 175 self.edgeModes.index(Preferences.getEditor("EdgeMode")))
161 self.edgeLineColumnSlider.setValue( 176 self.edgeLineColumnSlider.setValue(
162 Preferences.getEditor("EdgeColumn")) 177 Preferences.getEditor("EdgeColumn"))
319 self.wrapModeComboBox.currentIndex())) 334 self.wrapModeComboBox.currentIndex()))
320 Preferences.setEditor( 335 Preferences.setEditor(
321 "WrapVisualFlag", self.wrapVisualComboBox.itemData( 336 "WrapVisualFlag", self.wrapVisualComboBox.itemData(
322 self.wrapVisualComboBox.currentIndex())) 337 self.wrapVisualComboBox.currentIndex()))
323 Preferences.setEditor( 338 Preferences.setEditor(
339 "WrapIndentMode", self.wrapIndentComboBox.itemData(
340 self.wrapIndentComboBox.currentIndex()))
341 Preferences.setEditor(
324 "EdgeMode", self.edgeModes[self.edgeModeCombo.currentIndex()]) 342 "EdgeMode", self.edgeModes[self.edgeModeCombo.currentIndex()])
325 Preferences.setEditor( 343 Preferences.setEditor(
326 "EdgeColumn", self.edgeLineColumnSlider.value()) 344 "EdgeColumn", self.edgeLineColumnSlider.value())
327 345
328 Preferences.setEditor( 346 Preferences.setEditor(

eric ide

mercurial