TextFind Class Reference

A find and replace widget. More...

#include <textfind.h>

List of all members.

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)

Detailed Description

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.

Authors:
Manuel Unglaub, Yves Adler

Constructor & Destructor Documentation

TextFind::TextFind ( QWidget *  parent = 0  ) 

The constructor.

Constructs the TextFind which is a child of parent.

Parameters:
parent The parent of this TextFind.
TextFind::~TextFind (  ) 

The destructor.

Destroys the object.


Member Function Documentation

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.

Returns:
True if the match case option is selected.
QString TextFind::getReplaceString (  ) 

Get the string entered in the replace lineedit.

Returns:
The entered replacestring.
QString TextFind::getSearchString (  ) 

Get the string entered in the search lineedit.

Returns:
The entered searchstring.
bool TextFind::getWholeWord (  ) 

Find out if the match whole word option is selected.

Returns:
True 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.

Parameters:
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.

Parameters:
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.


The documentation for this class was generated from the following files:
Generated on Fri May 14 19:12:53 2010 for Silence by  doxygen 1.6.3