QScintilla/QsciScintillaCompat.py

changeset 3067
8fd7ae10de2b
parent 3039
8dd0165d805d
child 3069
8a9579bbf583
diff -r 2e7054d62218 -r 8fd7ae10de2b QScintilla/QsciScintillaCompat.py
--- a/QScintilla/QsciScintillaCompat.py	Wed Nov 06 19:44:42 2013 +0100
+++ b/QScintilla/QsciScintillaCompat.py	Fri Nov 08 19:22:12 2013 +0100
@@ -669,6 +669,31 @@
         """
         self.SendScintilla(QsciScintilla.SCI_SETCARETPERIOD, time // 2)
     
+    def getCaretLineAlwaysVisible(self):
+        """
+        Public method to determine, if the caret line is visible even if
+        the editor doesn't have the focus.
+        """
+        try:
+            return self.SendScintilla(
+                QsciScintilla.SCI_GETCARETLINEVISIBLEALWAYS)
+        except AttributeError:
+            return False
+    
+    def setCaretLineAlwaysVisible(self, alwaysVisible):
+        """
+        Public method to set the caret line visible even if the editor doesn't
+        have the focus.
+        
+        @param alwaysVisible flag indicating that the caret line shall be
+            visible even if the editor doesn't have the focus (boolean)
+        """
+        try:
+            self.SendScintilla(
+                QsciScintilla.SCI_SETCARETLINEVISIBLEALWAYS, alwaysVisible)
+        except AttributeError:
+            pass
+    
     ###########################################################################
     # methods to perform searches in target range
     ###########################################################################

eric ide

mercurial