17 class TextEditorWidget;
TextSearcher(QObject *parent=0)
Definition: textsearcher.cpp:21
bool isReverse() const
Checks the reverse mode.
Definition: textsearcher.cpp:99
bool selectPrev(TextRangeSet *selection)
Selects the previous item based on the given caret position in the selection.
Definition: textsearcher.cpp:206
void setSearchTerm(const QString &term)
Sets the current search term.
Definition: textsearcher.cpp:46
TextRange findNextRange(TextRangeSet *selection)
Finds the next matching textrange This method does not alter the textrange selection. It only returns the range of the next match.
Definition: textsearcher.cpp:116
virtual ~TextSearcher()
destroys the textsearcher
Definition: textsearcher.cpp:33
void setDirty()
Marks the regexp as dirty (and deletes it)
Definition: textsearcher.cpp:352
bool isWrapAroundEnabled() const
Should the search wrap around the contents of the document.
Definition: textsearcher.cpp:84
Definition: textsearcher.h:30
RegExp * createRegExp()
Creates a regular expression for the current selected options.
Definition: textsearcher.cpp:361
bool isCaseSensitive() const
Returns the case sensitivity of the textsearcher.
Definition: textsearcher.cpp:69
void setReverse(bool on)
Sets the search reverse mode.
Definition: textsearcher.cpp:106
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
A class for matching QStrings with the Oniguruma API We need this Regular Expression library to be ab...
Definition: regexp.h:36
bool selectNext(TextRangeSet *selection)
Selects the next item that matches the given critaria (Adds an extra selection range ) ...
Definition: textsearcher.cpp:186
void selectUnderExpand(TextEditorWidget *widget, bool selectAllTexts)
A smart selection: when there's no selection the current word is used and selected. The next word will be selected, if all is specified all words are selected.
Definition: textsearcher.cpp:315
void setWrapAround(bool on)
For changing the wrap around mode of the TextSearcher.
Definition: textsearcher.cpp:91
void setCaseSensitive(bool sensitive)
sets the case sensitivity of the search operation
Definition: textsearcher.cpp:76
bool selectAll(TextRangeSet *selection)
Select all matching items in the document.
Definition: textsearcher.cpp:218
Definition: textsearcher.h:29
The basic textrange class. A simple class of textrange with a simple vector implementation.
Definition: textrange.h:198
SyntaxType syntax() const
Returns the syntax type of the current search operation.
Definition: textsearcher.cpp:53
QString searchTerm() const
Returns the current active searchterm.
Definition: textsearcher.cpp:39
This is the general edbee widget This core functionality of this widget is divided in several seperat...
Definition: texteditorwidget.h:32
The text searcher is a class to remember the current search operation It remembers the current search...
Definition: textsearcher.h:23
bool findPrev(TextRangeSet *selection)
Finds the previous item based on the given caret position in the selection.
Definition: textsearcher.cpp:173
bool findNext(TextRangeSet *selection)
Finds the next item based on the given caret position in the selection.
Definition: textsearcher.cpp:158
A single text region A region constists of an anchor and a caret: The anchor defines the 'start' of t...
Definition: textrange.h:29
void setSyntax(SyntaxType syntax)
Sets the syntax mode of the searcher syntax the SyntaxType to use (SyntaxPlainString, SyntaxRegExp)
Definition: textsearcher.cpp:61
SyntaxType
Definition: textsearcher.h:28