QseStringParameterEditor Class Reference

#include <qsestringparametereditor.h>

Inheritance diagram for QseStringParameterEditor:

Inheritance graph
[legend]
Collaboration diagram for QseStringParameterEditor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 QseStringParameterEditor (QseOperatorEditor *ed, QseStringParameter *param, QObject *parent=0)
void setEditors (QLineEdit *value, QPushButton *apply, QPushButton *cancel)
virtual bool editorValidate ()
virtual void editorApply ()
virtual void editorCancel ()

Protected Attributes

QseStringParameterm_StringParameter
QLineEdit * m_LineEdit


Detailed Description

Definition at line 9 of file qsestringparametereditor.h.


Constructor & Destructor Documentation

QseStringParameterEditor::QseStringParameterEditor ( QseOperatorEditor ed,
QseStringParameter param,
QObject parent = 0 
)

Definition at line 7 of file qsestringparametereditor.cpp.

00008   : QseParameterEditor(ed, param, parent),
00009     m_StringParameter(param),
00010     m_LineEdit(NULL)
00011 {
00012 }


Member Function Documentation

void QseStringParameterEditor::setEditors ( QLineEdit *  value,
QPushButton *  apply,
QPushButton *  cancel 
)

Definition at line 15 of file qsestringparametereditor.cpp.

References QseParameterEditor::setEditors().

Referenced by QseNormalizerUI::QseNormalizerUI().

00016 {
00017   QseParameterEditor::setEditors(apply, cancel);
00018   m_LineEdit = value;
00019 
00020   connect(m_LineEdit, SIGNAL(textChanged(const QString&)),
00021     this, SLOT(editorChanged()));
00022 
00023   editorCancel();
00024 }

Here is the call graph for this function:

bool QseStringParameterEditor::editorValidate (  )  [virtual]

Implements QseParameterEditor.

Definition at line 26 of file qsestringparametereditor.cpp.

00027 {
00028   return true;
00029 }

void QseStringParameterEditor::editorApply (  )  [virtual]

Implements QseParameterEditor.

Definition at line 31 of file qsestringparametereditor.cpp.

References m_LineEdit, QseParameterEditor::m_Parameter, and QseParameter::setValue().

00032 {
00033   QString s = m_LineEdit -> text();
00034 
00035   m_Parameter->setValue(s);
00036 }

Here is the call graph for this function:

void QseStringParameterEditor::editorCancel (  )  [virtual]

Implements QseParameterEditor.

Definition at line 38 of file qsestringparametereditor.cpp.

References m_LineEdit, QseParameterEditor::m_Parameter, and QseParameter::value().

00039 {
00040   m_LineEdit->setText(m_Parameter->value().toString());
00041 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 26 of file qsestringparametereditor.h.

QLineEdit* QseStringParameterEditor::m_LineEdit [protected]

Definition at line 27 of file qsestringparametereditor.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