qse  0.5.4
qseregexpparametereditor.h
Go to the documentation of this file.
1 #ifndef QSEREGEXPPARAMETEREDITOR_H
2 #define QSEREGEXPPARAMETEREDITOR_H
3 
4 #include "qseparametereditor.h"
5 
7 class QLineEdit;
8 class QCheckBox;
9 class QPushButton;
10 #include <QColor>
11 
13 {
14  Q_OBJECT;
15 
16 public:
18  (QseOperatorEditor* ed, QseRegExpParameter* param, QObject* parent=0);
19 
20  void setEditors(QLineEdit* pattern,
21  QCheckBox* useRegExp,
22  QPushButton* apply,
23  QPushButton* cancel,
24  QPushButton* excepts=NULL,
25  QColor fg = Qt::black,
26  QColor bg = Qt::white);
27 
28  virtual bool editorValidate();
29  virtual void editorApply();
30  virtual void editorCancel();
31 
32 private:
33  void setColors(QWidget *w, QColor fg, QColor bg);
34 
35 protected:
37  QLineEdit* m_PatternEdit;
38  QCheckBox* m_UseRegExp;
39 };
40 
41 #endif
QseRegExpParameter * m_RegExpParameter
void setColors(QWidget *w, QColor fg, QColor bg)
void setEditors(QLineEdit *pattern, QCheckBox *useRegExp, QPushButton *apply, QPushButton *cancel, QPushButton *excepts=NULL, QColor fg=Qt::black, QColor bg=Qt::white)
QseRegExpParameterEditor(QseOperatorEditor *ed, QseRegExpParameter *param, QObject *parent=0)