00001 #ifndef QSEPARAMETEREDITOR_H 00002 #define QSEPARAMETEREDITOR_H 00003 00004 #include <QObject> 00005 00006 class QseParameter; 00007 class QseOperatorEditor; 00008 class QPushButton; 00009 00010 class QseParameterEditor : public QObject 00011 { 00012 Q_OBJECT; 00013 00014 public: 00015 QseParameterEditor 00016 (QseOperatorEditor* ed, QseParameter* param, QObject* parent=0); 00017 00018 void setEditors(QPushButton* apply, 00019 QPushButton* cancel); 00020 00021 virtual bool editorValidate() = 0; 00022 virtual void editorApply() = 0; 00023 virtual void editorCancel() = 0; 00024 00025 protected slots: 00026 void editorChanged(); 00027 00028 protected: 00029 QseOperatorEditor* m_OperatorEditor; 00030 QseParameter* m_Parameter; 00031 QPushButton* m_ApplyButton; 00032 QPushButton* m_CancelButton; 00033 }; 00034 00035 #endif
1.5.6