QseRegExpParameterEditor Class Reference

#include <qseregexpparametereditor.h>

Inheritance diagram for QseRegExpParameterEditor:

Inheritance graph
[legend]
Collaboration diagram for QseRegExpParameterEditor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 QseRegExpParameterEditor (QseOperatorEditor *ed, QseRegExpParameter *param, QObject *parent=0)
void setEditors (QLineEdit *pattern, QCheckBox *useRegExp, QPushButton *apply, QPushButton *cancel)
virtual bool editorValidate ()
virtual void editorApply ()
virtual void editorCancel ()

Protected Attributes

QseRegExpParameterm_RegExpParameter
QLineEdit * m_PatternEdit
QCheckBoxm_UseRegExp


Detailed Description

Definition at line 11 of file qseregexpparametereditor.h.


Constructor & Destructor Documentation

QseRegExpParameterEditor::QseRegExpParameterEditor ( QseOperatorEditor ed,
QseRegExpParameter param,
QObject parent = 0 
)

Definition at line 8 of file qseregexpparametereditor.cpp.

00009   : QseParameterEditor(ed, param, parent),
00010     m_RegExpParameter(param),
00011     m_PatternEdit(NULL),
00012     m_UseRegExp(NULL)
00013 {
00014 }


Member Function Documentation

void QseRegExpParameterEditor::setEditors ( QLineEdit *  pattern,
QCheckBox useRegExp,
QPushButton *  apply,
QPushButton *  cancel 
)

Definition at line 17 of file qseregexpparametereditor.cpp.

References QseParameterEditor::setEditors().

Referenced by QseDataDeglitcherUI::QseDataDeglitcherUI(), QseEdgeAlignerUI::QseEdgeAlignerUI(), QseNormalizerUI::QseNormalizerUI(), and QseScanAveragerUI::QseScanAveragerUI().

00018 {
00019   QseParameterEditor::setEditors(apply, cancel);
00020 
00021   m_PatternEdit = pattern;
00022   m_UseRegExp = useRegExp;
00023 
00024   connect(m_PatternEdit, SIGNAL(textChanged(const QString&)), this, SLOT(editorChanged()));
00025   connect(m_UseRegExp, SIGNAL(toggled(bool)), this, SLOT(editorChanged()));
00026 
00027   editorCancel();
00028 }

Here is the call graph for this function:

bool QseRegExpParameterEditor::editorValidate (  )  [virtual]

Implements QseParameterEditor.

Definition at line 30 of file qseregexpparametereditor.cpp.

00031 {
00032   printf("Need QseRegExpParameterEditor::editorValidate\n");
00033 
00034   return true;
00035 }

void QseRegExpParameterEditor::editorApply (  )  [virtual]

Implements QseParameterEditor.

Definition at line 37 of file qseregexpparametereditor.cpp.

References QseParameterEditor::m_Parameter, m_PatternEdit, m_UseRegExp, QseParameter::setValue(), and QseParameter::value().

00038 {
00039   QRegExp r = m_Parameter->value().toRegExp();
00040 
00041   r.setPattern(m_PatternEdit->text());
00042   r.setPatternSyntax(m_UseRegExp->isChecked() ? QRegExp::RegExp : QRegExp::Wildcard);
00043 
00044   m_Parameter->setValue(r);
00045 }

Here is the call graph for this function:

void QseRegExpParameterEditor::editorCancel (  )  [virtual]

Implements QseParameterEditor.

Definition at line 47 of file qseregexpparametereditor.cpp.

References QseParameterEditor::m_Parameter, m_PatternEdit, m_UseRegExp, and QseParameter::value().

00048 {
00049   QRegExp r = m_Parameter->value().toRegExp();
00050 
00051   m_PatternEdit -> setText(r.pattern());
00052   m_UseRegExp -> setChecked(r.patternSyntax()==QRegExp::RegExp);
00053 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 29 of file qseregexpparametereditor.h.

Definition at line 30 of file qseregexpparametereditor.h.

Referenced by editorApply(), and editorCancel().

Definition at line 31 of file qseregexpparametereditor.h.

Referenced by editorApply(), and editorCancel().


The documentation for this class was generated from the following files:

Generated on Fri May 2 16:26:42 2008 for QSE by  doxygen 1.5.5