RegexCheckDialog Class Reference

This is a small dialog to edit and check a regular expression. More...

#include <regexcheckdialog.h>

List of all members.

Public Member Functions

 RegexCheckDialog (QWidget *parent)
QString getRegex ()
void setRegex (QString regex)

Private Slots

void slotButtonClicked (int button)
 Activated when a button is clicked.
void checkRegex ()
 Checkes the regex.

Private Member Functions

void writeBlack (QString text)
 Writes a black colored text into the result field.
void writeGreen (QString text)
 Writes a green colored text into the result field.
void writeRed (QString text)
 Writes a red colored text into the result field.

Private Attributes

KLineEdit * txtRegEx
 Edit line to enter the regular expression.
KLineEdit * txtTestString
 Edit line to enter a test string.
QLabel * txtResult
 In this line we show the result of the regex check.

Detailed Description

This is a small dialog to edit and check a regular expression.

Definition at line 41 of file regexcheckdialog.h.


Constructor & Destructor Documentation

RegexCheckDialog::RegexCheckDialog ( QWidget *  parent  ) 

Constructor

Parameters:
parent parent widget

Definition at line 21 of file regexcheckdialog.cpp.


Member Function Documentation

void RegexCheckDialog::checkRegex (  )  [private, slot]

Checkes the regex.

This methode gets the regex and the test phrases and test whether the regex matches the phrase. Writes the result into txtResult.

Definition at line 73 of file regexcheckdialog.cpp.

QString RegexCheckDialog::getRegex (  ) 

Returns the entered regex

Returns:
the entered regex

Definition at line 144 of file regexcheckdialog.cpp.

void RegexCheckDialog::setRegex ( QString  regex  ) 

Sets the regex into the edit line

Parameters:
regex the regex

Definition at line 149 of file regexcheckdialog.cpp.

void RegexCheckDialog::slotButtonClicked ( int  button  )  [private, slot]

Activated when a button is clicked.

Overrides KDialog::slotButtonClicked(int)

Parameters:
button clicked button (see KDialog::ButtonCode)

Definition at line 59 of file regexcheckdialog.cpp.

void RegexCheckDialog::writeBlack ( QString  text  )  [private]

Writes a black colored text into the result field.

Parameters:
text text to write

Definition at line 107 of file regexcheckdialog.cpp.

void RegexCheckDialog::writeGreen ( QString  text  )  [private]

Writes a green colored text into the result field.

Parameters:
text text to write

Definition at line 120 of file regexcheckdialog.cpp.

void RegexCheckDialog::writeRed ( QString  text  )  [private]

Writes a red colored text into the result field.

Parameters:
text text to write

Definition at line 132 of file regexcheckdialog.cpp.


Member Data Documentation

KLineEdit* RegexCheckDialog::txtRegEx [private]

Edit line to enter the regular expression.

Definition at line 71 of file regexcheckdialog.h.

QLabel* RegexCheckDialog::txtResult [private]

In this line we show the result of the regex check.

Definition at line 81 of file regexcheckdialog.h.

KLineEdit* RegexCheckDialog::txtTestString [private]

Edit line to enter a test string.

Definition at line 76 of file regexcheckdialog.h.


The documentation for this class was generated from the following files:
Generated on Sun Mar 13 15:27:10 2011 for KShowmail by  doxygen 1.6.3