00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef REGEXCHECKDIALOG_H
00020 #define REGEXCHECKDIALOG_H
00021
00022
00023 #include <QWidget>
00024 #include <QGridLayout>
00025 #include <QLabel>
00026 #include <QFont>
00027 #include <QPalette>
00028 #include <QRegExp>
00029
00030
00031 #include <klocale.h>
00032 #include <klineedit.h>
00033 #include <KMessageBox>
00034
00035
00036 #include <KDialog>
00037
00041 class RegexCheckDialog : public KDialog {
00042
00043 Q_OBJECT
00044
00045 public:
00046
00051 RegexCheckDialog( QWidget* parent );
00052
00057 QString getRegex();
00058
00064 void setRegex( QString regex );
00065
00066 private:
00067
00071 KLineEdit* txtRegEx;
00072
00076 KLineEdit* txtTestString;
00077
00081 QLabel* txtResult;
00082
00083 private slots:
00084
00091 void slotButtonClicked( int button );
00092
00099 void checkRegex();
00100
00101 private:
00102
00108 void writeBlack( QString text );
00109
00115 void writeGreen( QString text );
00116
00122 void writeRed( QString text );
00123
00124 };
00125
00126 #endif // REGEXCHECKDIALOG_H