Preferences/ConfigurationPages/EditorStylesPage.py

changeset 2262
2371836c3c45
parent 2261
f4bb5648fc29
child 2302
f29e9405c851
diff -r f4bb5648fc29 -r 2371836c3c45 Preferences/ConfigurationPages/EditorStylesPage.py
--- a/Preferences/ConfigurationPages/EditorStylesPage.py	Mon Dec 10 20:15:52 2012 +0100
+++ b/Preferences/ConfigurationPages/EditorStylesPage.py	Tue Dec 11 19:32:52 2012 +0100
@@ -13,7 +13,6 @@
 
 from QScintilla.QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION
 
-
 from .ConfigurationPageBase import ConfigurationPageBase
 from .Ui_EditorStylesPage import Ui_EditorStylesPage
 
@@ -49,13 +48,20 @@
         ]
         
         self.wrapModeComboBox.addItem(self.trUtf8("Disabled"),
+            QsciScintilla.WrapNone)
+        self.wrapModeComboBox.addItem(self.trUtf8("Word Boundary"),
+            QsciScintilla.WrapWord)
+        self.wrapModeComboBox.addItem(self.trUtf8("Character Boundary"),
+            QsciScintilla.WrapCharacter)
+        self.wrapVisualComboBox.addItem(self.trUtf8("No Indicator"),
             QsciScintilla.WrapFlagNone)
-        self.wrapModeComboBox.addItem(self.trUtf8("Show Flag by Text"),
+        self.wrapVisualComboBox.addItem(self.trUtf8("Indicator by Text"),
             QsciScintilla.WrapFlagByText)
-        self.wrapModeComboBox.addItem(self.trUtf8("Show Flag by Margin"),
+        self.wrapVisualComboBox.addItem(self.trUtf8("Indicator by Margin"),
             QsciScintilla.WrapFlagByBorder)
         if QSCINTILLA_VERSION() >= 0x020700:
-            self.wrapModeComboBox.addItem(self.trUtf8("Show Flag in Linenumber Margin"),
+            self.wrapVisualComboBox.addItem(
+                self.trUtf8("Indicator in Line Number Margin"),
                 QsciScintilla.WrapFlagInMargin)
         
         # set initial values
@@ -128,6 +134,8 @@
         self.eolCheckBox.setChecked(Preferences.getEditor("ShowEOL"))
         self.wrapModeComboBox.setCurrentIndex(self.wrapModeComboBox.findData(
             Preferences.getEditor("WrapLongLinesMode")))
+        self.wrapVisualComboBox.setCurrentIndex(self.wrapVisualComboBox.findData(
+            Preferences.getEditor("WrapVisualFlag")))
         
         self.edgeModeCombo.setCurrentIndex(
             self.edgeModes.index(Preferences.getEditor("EdgeMode")))
@@ -224,6 +232,8 @@
             self.eolCheckBox.isChecked())
         Preferences.setEditor("WrapLongLinesMode",
             self.wrapModeComboBox.itemData(self.wrapModeComboBox.currentIndex()))
+        Preferences.setEditor("WrapVisualFlag",
+            self.wrapVisualComboBox.itemData(self.wrapVisualComboBox.currentIndex()))
         Preferences.setEditor("EdgeMode",
             self.edgeModes[self.edgeModeCombo.currentIndex()])
         Preferences.setEditor("EdgeColumn",

eric ide

mercurial