UI/LogView.py

changeset 2965
d133c7edd88a
parent 2409
df3820f08247
child 3012
d177226027e2
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
180 self.__mainWindow.showFind(txt) 180 self.__mainWindow.showFind(txt)
181 181
182 def searchNext(self, txt, caseSensitive, wholeWord): 182 def searchNext(self, txt, caseSensitive, wholeWord):
183 """ 183 """
184 Public method to search the next occurrence of the given text. 184 Public method to search the next occurrence of the given text.
185
186 @param txt text to search for (string)
187 @param caseSensitive flag indicating case sensitivity (boolean)
188 @param wholeWord flag indicating a search for the whole word (boolean)
185 """ 189 """
186 self.__lastSearch = (txt, caseSensitive, wholeWord) 190 self.__lastSearch = (txt, caseSensitive, wholeWord)
187 flags = QTextDocument.FindFlags() 191 flags = QTextDocument.FindFlags()
188 if caseSensitive: 192 if caseSensitive:
189 flags |= QTextDocument.FindCaseSensitively 193 flags |= QTextDocument.FindCaseSensitively
193 self.searchStringFound.emit(ok) 197 self.searchStringFound.emit(ok)
194 198
195 def searchPrev(self, txt, caseSensitive, wholeWord): 199 def searchPrev(self, txt, caseSensitive, wholeWord):
196 """ 200 """
197 Public method to search the previous occurrence of the given text. 201 Public method to search the previous occurrence of the given text.
202
203 @param txt text to search for (string)
204 @param caseSensitive flag indicating case sensitivity (boolean)
205 @param wholeWord flag indicating a search for the whole word (boolean)
198 """ 206 """
199 self.__lastSearch = (txt, caseSensitive, wholeWord) 207 self.__lastSearch = (txt, caseSensitive, wholeWord)
200 flags = QTextDocument.FindFlags(QTextDocument.FindBackward) 208 flags = QTextDocument.FindFlags(QTextDocument.FindBackward)
201 if caseSensitive: 209 if caseSensitive:
202 flags |= QTextDocument.FindCaseSensitively 210 flags |= QTextDocument.FindCaseSensitively

eric ide

mercurial