280 |
280 |
281 self.__textEdit = MiniScintilla(self) |
281 self.__textEdit = MiniScintilla(self) |
282 self.__textEdit.clearSearchIndicators = self.clearSearchIndicators |
282 self.__textEdit.clearSearchIndicators = self.clearSearchIndicators |
283 self.__textEdit.setSearchIndicator = self.setSearchIndicator |
283 self.__textEdit.setSearchIndicator = self.setSearchIndicator |
284 self.__textEdit.highlightSearchSelection = self.highlightSearchSelection |
284 self.__textEdit.highlightSearchSelection = self.highlightSearchSelection |
|
285 self.__textEdit.getSearchSelectionHighlight = self.getSearchSelectionHighlight |
285 self.__textEdit.clearSearchSelectionHighlight = ( |
286 self.__textEdit.clearSearchSelectionHighlight = ( |
286 self.clearSearchSelectionHighlight |
287 self.clearSearchSelectionHighlight |
287 ) |
288 ) |
288 self.__textEdit.setUtf8(True) |
289 self.__textEdit.setUtf8(True) |
289 |
290 |
4213 @type int |
4214 @type int |
4214 """ |
4215 """ |
4215 self.__textEdit.setIndicator( |
4216 self.__textEdit.setIndicator( |
4216 self.searchSelectionIndicator, startLine, startIndex, endLine, endIndex |
4217 self.searchSelectionIndicator, startLine, startIndex, endLine, endIndex |
4217 ) |
4218 ) |
|
4219 |
|
4220 def getSearchSelectionHighlight(self): |
|
4221 """ |
|
4222 Public method to get the start and end of the selection highlight. |
|
4223 |
|
4224 @return tuple containing the start line and index and the end line and index |
|
4225 @rtype tuple of (int, int, int, int) |
|
4226 """ |
|
4227 return self.__textEdit.getIndicator(self.searchSelectionIndicator) |
4218 |
4228 |
4219 def clearSearchSelectionHighlight(self): |
4229 def clearSearchSelectionHighlight(self): |
4220 """ |
4230 """ |
4221 Public method to clear all highlights. |
4231 Public method to clear all highlights. |
4222 """ |
4232 """ |