QScintilla/QsciScintillaCompat.py

changeset 6031
ccab25598d90
parent 5603
4f2dd0850803
child 6038
b9d2063e610e
equal deleted inserted replaced
6030:63d1c50b637d 6031:ccab25598d90
1321 self.SendScintilla(QsciScintilla.SCI_MARKERSETFORE, 1321 self.SendScintilla(QsciScintilla.SCI_MARKERSETFORE,
1322 QsciScintilla.SC_MARKNUM_FOLDEREND, foreColor) 1322 QsciScintilla.SC_MARKNUM_FOLDEREND, foreColor)
1323 self.SendScintilla(QsciScintilla.SCI_MARKERSETBACK, 1323 self.SendScintilla(QsciScintilla.SCI_MARKERSETBACK,
1324 QsciScintilla.SC_MARKNUM_FOLDEREND, backColor) 1324 QsciScintilla.SC_MARKNUM_FOLDEREND, backColor)
1325 1325
1326 def getVisibleLineFromDocLine(self, docLine):
1327 """
1328 Public method to convert a document line number to a visible line
1329 number (i.e. respect folded lines and annotations).
1330
1331 @param docLine document line number to be converted
1332 @type int
1333 @return visible line number
1334 @rtype int
1335 """
1336 return self.SendScintilla(QsciScintilla.SCI_VISIBLEFROMDOCLINE,
1337 docLine)
1338
1339 def getDocLineFromVisibleLine(self, displayLine):
1340 """
1341 Public method to convert a visible line number to a document line
1342 number (i.e. respect folded lines and annotations).
1343
1344 @param displayLine display line number to be converted
1345 @type int
1346 @return document line number
1347 @rtype int
1348 """
1349 return self.SendScintilla(QsciScintilla.SCI_DOCLINEFROMVISIBLE,
1350 displayLine)
1351
1326 ########################################################################### 1352 ###########################################################################
1327 ## interface methods to the standard keyboard command set 1353 ## interface methods to the standard keyboard command set
1328 ########################################################################### 1354 ###########################################################################
1329 1355
1330 def clearKeys(self): 1356 def clearKeys(self):

eric ide

mercurial