1595 Public method to search the next occurrence of the given text. |
1595 Public method to search the next occurrence of the given text. |
1596 |
1596 |
1597 @param txt text to search for (string) |
1597 @param txt text to search for (string) |
1598 @param caseSensitive flag indicating to perform a case sensitive |
1598 @param caseSensitive flag indicating to perform a case sensitive |
1599 search (boolean) |
1599 search (boolean) |
1600 @param wholeWord flag indicating to search for whole words |
1600 @param wholeWord flag indicating to search for whole words |
1601 only (boolean) |
1601 only (boolean) |
1602 """ |
1602 """ |
1603 self.__lastSearch = (txt, caseSensitive, wholeWord) |
1603 self.__lastSearch = (txt, caseSensitive, wholeWord) |
1604 ok = self.findFirst(txt, False, caseSensitive, wholeWord, False, forward=True) |
1604 ok = self.findFirst(txt, False, caseSensitive, wholeWord, False, forward=True) |
1605 self.searchStringFound.emit(ok) |
1605 self.searchStringFound.emit(ok) |
1616 Public method to search the previous occurrence of the given text. |
1616 Public method to search the previous occurrence of the given text. |
1617 |
1617 |
1618 @param txt text to search for (string) |
1618 @param txt text to search for (string) |
1619 @param caseSensitive flag indicating to perform a case sensitive |
1619 @param caseSensitive flag indicating to perform a case sensitive |
1620 search (boolean) |
1620 search (boolean) |
1621 @param wholeWord flag indicating to search for whole words |
1621 @param wholeWord flag indicating to search for whole words |
1622 only (boolean) |
1622 only (boolean) |
1623 """ |
1623 """ |
1624 self.__lastSearch = (txt, caseSensitive, wholeWord) |
1624 self.__lastSearch = (txt, caseSensitive, wholeWord) |
1625 if self.hasSelectedText(): |
1625 if self.hasSelectedText(): |
1626 line, index = self.getSelection()[:2] |
1626 line, index = self.getSelection()[:2] |