#include <qseenumparametereditor.h>


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 | |
| QseEnumParameter * | m_EnumParameter |
| QComboBox * | m_ComboBox |
Definition at line 10 of file qseenumparametereditor.h.
| 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 }
| 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 }

| 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 }

QseEnumParameter* QseEnumParameterEditor::m_EnumParameter [protected] |
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().
1.5.5