1092 Public method to search the next occurrence of the given text. |
1092 Public method to search the next occurrence of the given text. |
1093 |
1093 |
1094 @param txt text to search for (string) |
1094 @param txt text to search for (string) |
1095 @param caseSensitive flag indicating to perform a case sensitive |
1095 @param caseSensitive flag indicating to perform a case sensitive |
1096 search (boolean) |
1096 search (boolean) |
1097 @param wholeWord flag indicating to search for whole words |
1097 @param wholeWord flag indicating to search for whole words |
1098 only (boolean) |
1098 only (boolean) |
1099 """ |
1099 """ |
1100 self.__lastSearch = (txt, caseSensitive, wholeWord) |
1100 self.__lastSearch = (txt, caseSensitive, wholeWord) |
1101 ok = self.findFirst(txt, False, caseSensitive, wholeWord, False, forward=True) |
1101 ok = self.findFirst(txt, False, caseSensitive, wholeWord, False, forward=True) |
1102 self.searchStringFound.emit(ok) |
1102 self.searchStringFound.emit(ok) |
1113 Public method to search the previous occurrence of the given text. |
1113 Public method to search the previous occurrence of the given text. |
1114 |
1114 |
1115 @param txt text to search for (string) |
1115 @param txt text to search for (string) |
1116 @param caseSensitive flag indicating to perform a case sensitive |
1116 @param caseSensitive flag indicating to perform a case sensitive |
1117 search (boolean) |
1117 search (boolean) |
1118 @param wholeWord flag indicating to search for whole words |
1118 @param wholeWord flag indicating to search for whole words |
1119 only (boolean) |
1119 only (boolean) |
1120 """ |
1120 """ |
1121 self.__lastSearch = (txt, caseSensitive, wholeWord) |
1121 self.__lastSearch = (txt, caseSensitive, wholeWord) |
1122 if self.hasSelectedText(): |
1122 if self.hasSelectedText(): |
1123 line, index = self.getSelection()[:2] |
1123 line, index = self.getSelection()[:2] |