A find and replace widget. More...
#include <textfind.h>
Public Slots | |
void | show () |
void | showMore () |
void | showFull () |
Signals | |
void | findNext () |
void | findPrev () |
void | replace () |
void | replaceAll () |
void | searchStringChanged (const QString &searchString) |
Public Member Functions | |
TextFind (QWidget *parent=0) | |
~TextFind () | |
bool | getCaseSensitivity () |
bool | getWholeWord () |
QString | getSearchString () |
QString | getReplaceString () |
void | setFound (bool found) |
A find and replace widget.
The TextFind widget proviedes a GUI to search and replace text. The replace part is hiden per default and can be shown when needed. It provides the options choosen by the user and emittes signal when certain actions are triggered.
This widget has no search or replace capabilities. It just provides a GUI.
TextFind::TextFind | ( | QWidget * | parent = 0 |
) |
TextFind::~TextFind | ( | ) |
The destructor.
Destroys the object.
void TextFind::findNext | ( | ) | [signal] |
The find next action was triggered.
void TextFind::findPrev | ( | ) | [signal] |
The find previous action was triggered.
bool TextFind::getCaseSensitivity | ( | ) |
Find out if the match case option is selected.
QString TextFind::getReplaceString | ( | ) |
Get the string entered in the replace lineedit.
QString TextFind::getSearchString | ( | ) |
Get the string entered in the search lineedit.
bool TextFind::getWholeWord | ( | ) |
Find out if the match whole word option is selected.
void TextFind::replace | ( | ) | [signal] |
The replace action was triggered.
void TextFind::replaceAll | ( | ) | [signal] |
The replace all action was triggered.
void TextFind::searchStringChanged | ( | const QString & | searchString | ) | [signal] |
This signal is emitted when the searchstring is changed.
searchString | The changed searchString. |
void TextFind::setFound | ( | bool | found | ) |
This function will color the edit field of the TextFind to indicate if a searchstring was found.
found | Should indicate if a searchstring was found. |
void TextFind::show | ( | ) | [slot] |
Show the TextFind widget.
void TextFind::showFull | ( | ) | [slot] |
Show the full TextFind widget including the replace parts.
void TextFind::showMore | ( | ) | [slot] |
Toggle the visibility of the replace parts.