QseEnumParameterEditor Class Reference

#include <qseenumparametereditor.h>

Inheritance diagram for QseEnumParameterEditor:

Inheritance graph
[legend]
Collaboration diagram for QseEnumParameterEditor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 QseEnumParameterEditor (QseOperatorEditor *ed, QseEnumParameter *param, QObject *parent=0)
void setEditors (QComboBox *combo, QPushButton *apply, QPushButton *cancel)
virtual bool editorValidate ()
virtual void editorApply ()
virtual void editorCancel ()

Protected Attributes

QseEnumParameterm_EnumParameter
QComboBox * m_ComboBox


Detailed Description

Definition at line 10 of file qseenumparametereditor.h.


Constructor & Destructor Documentation

QseEnumParameterEditor::QseEnumParameterEditor ( QseOperatorEditor ed,
QseEnumParameter param,
QObject parent = 0 
)

Definition at line 8 of file qseenumparametereditor.cpp.

00009   : QseParameterEditor(ed, param, parent),
00010     m_EnumParameter(param),
00011     m_ComboBox(NULL)
00012 {
00013 }


Member Function Documentation

void QseEnumParameterEditor::setEditors ( QComboBox *  combo,
QPushButton *  apply,
QPushButton *  cancel 
)

Definition at line 16 of file qseenumparametereditor.cpp.

References QseParameterEditor::setEditors().

Referenced by QseNormalizerUI::QseNormalizerUI().

00017 {
00018   QseParameterEditor::setEditors(apply, cancel);
00019 
00020   m_ComboBox = combo;
00021 
00022   m_ComboBox -> clear();
00023   m_ComboBox -> addItems(m_EnumParameter -> values());
00024 
00025   connect(m_ComboBox, SIGNAL(currentIndexChanged(int)),
00026     this, SLOT(editorChanged()));
00027 
00028   editorCancel();
00029 }

Here is the call graph for this function:

bool QseEnumParameterEditor::editorValidate (  )  [virtual]

Implements QseParameterEditor.

Definition at line 31 of file qseenumparametereditor.cpp.

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

void QseEnumParameterEditor::editorApply (  )  [virtual]

Implements QseParameterEditor.

Definition at line 38 of file qseenumparametereditor.cpp.

References m_ComboBox, and QseParameterEditor::m_Parameter.

00039 {
00040   m_Parameter -> setValue(m_ComboBox -> currentIndex());
00041 }

void QseEnumParameterEditor::editorCancel (  )  [virtual]

Implements QseParameterEditor.

Definition at line 43 of file qseenumparametereditor.cpp.

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

00044 {
00045   m_ComboBox -> setCurrentIndex(m_Parameter->value().toInt());
00046 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 27 of file qseenumparametereditor.h.

QComboBox* QseEnumParameterEditor::m_ComboBox [protected]

Definition at line 28 of file qseenumparametereditor.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