QScintilla/QsciScintillaCompat.py

changeset 6843
5e1afd1577b9
parent 6841
43af1e698c9d
child 6891
93f82da09f22
equal deleted inserted replaced
6842:c83dcb7c6147 6843:5e1afd1577b9
1755 """ 1755 """
1756 for line in folds: 1756 for line in folds:
1757 self.foldLine(line) 1757 self.foldLine(line)
1758 1758
1759 ######################################################################### 1759 #########################################################################
1760 # method below implement a compatibility variant for the findFirst() 1760 ## Method below implements a compatibility variant for the findFirst()
1761 # extended with version 2.11 1761 ## extended with version 2.11.
1762 ######################################################################### 1762 #########################################################################
1763 1763
1764 def findFirst(self, expression, regexp, caseSensitive, word, wrap, 1764 def findFirst(self, expression, regexp, caseSensitive, word, wrap,
1765 forward=True, line=-1, index=-1, show=True, posix=False, 1765 forward=True, line=-1, index=-1, show=True, posix=False,
1766 cxx11=False): 1766 cxx11=False):
1802 return super(QsciScintillaCompat, self).findFirst( 1802 return super(QsciScintillaCompat, self).findFirst(
1803 expression, regexp, caseSensitive, word, wrap, 1803 expression, regexp, caseSensitive, word, wrap,
1804 forward=forward, line=line, index=index, show=show, 1804 forward=forward, line=line, index=index, show=show,
1805 posix=posix) 1805 posix=posix)
1806 1806
1807 #########################################################################
1808 ## Methods below are missing from QScintilla.
1809 #########################################################################
1810
1811 if "setWrapStartIndent" not in QsciScintilla.__dict__:
1812 def setWrapStartIndent(self, indent):
1813 """
1814 Public method to set a the amount of characters wrapped sublines
1815 shall be indented.
1816
1817 @param indent amount of characters to indent
1818 @type int
1819 """
1820 self.SendScintilla(QsciScintilla.SCI_SETWRAPSTARTINDENT, indent)
1821
1807 ## ######################################################################### 1822 ## #########################################################################
1808 ## # methods below have been added to QScintilla starting with version 2.x 1823 ## ## Methods below have been added to QScintilla starting with version 2.x.
1809 ## ######################################################################### 1824 ## #########################################################################
1810 ## 1825 ##
1811 ## if "newMethod" not in QsciScintilla.__dict__: 1826 ## if "newMethod" not in QsciScintilla.__dict__:
1812 ## def newMethod(self, param): 1827 ## def newMethod(self, param):
1813 ## """ 1828 ## """

eric ide

mercurial