Preferences/ConfigurationPages/EditorStylesPage.py

changeset 6842
c83dcb7c6147
parent 6648
c09e6c6006eb
child 6843
5e1afd1577b9
--- a/Preferences/ConfigurationPages/EditorStylesPage.py	Tue Mar 05 19:00:06 2019 +0100
+++ b/Preferences/ConfigurationPages/EditorStylesPage.py	Tue Mar 05 19:50:32 2019 +0100
@@ -72,6 +72,18 @@
                 self.tr("Indicator in Line Number Margin"),
                 QsciScintilla.WrapFlagInMargin)
         
+        self.wrapIndentComboBox.addItem(
+            self.tr("Fixed Amount"), QsciScintilla.WrapIndentFixed)
+        self.wrapIndentComboBox.addItem(
+            self.tr("Aligned to First Line"), QsciScintilla.WrapIndentSame)
+        self.wrapIndentComboBox.addItem(
+            self.tr("Aligned to First Line plus One"),
+            QsciScintilla.WrapIndentIndented)
+        if QSCINTILLA_VERSION() >= 0x020B00:
+            self.wrapIndentComboBox.addItem(
+                self.tr("Aligned to First Line plus Two"),
+                QsciScintilla.WrapIndentDeeplyIndented)
+        
         if QSCINTILLA_VERSION() < 0x020800:
             self.caretlineAlwaysVisibleCheckBox.hide()
         
@@ -155,6 +167,9 @@
         self.wrapVisualComboBox.setCurrentIndex(
             self.wrapVisualComboBox.findData(
                 Preferences.getEditor("WrapVisualFlag")))
+        self.wrapIndentComboBox.setCurrentIndex(
+            self.wrapIndentComboBox.findData(
+                Preferences.getEditor("WrapIndentMode")))
         
         self.edgeModeCombo.setCurrentIndex(
             self.edgeModes.index(Preferences.getEditor("EdgeMode")))
@@ -321,6 +336,9 @@
             "WrapVisualFlag", self.wrapVisualComboBox.itemData(
                 self.wrapVisualComboBox.currentIndex()))
         Preferences.setEditor(
+            "WrapIndentMode", self.wrapIndentComboBox.itemData(
+                self.wrapIndentComboBox.currentIndex()))
+        Preferences.setEditor(
             "EdgeMode", self.edgeModes[self.edgeModeCombo.currentIndex()])
         Preferences.setEditor(
             "EdgeColumn", self.edgeLineColumnSlider.value())

eric ide

mercurial