qse  0.5.4
qseparametereditor.cpp
Go to the documentation of this file.
1 #include "qseparametereditor.h"
2 #include "qseparameter.h"
3 #include "qseoperatoreditor.h"
4 #include <QPushButton>
5 
7 (QseOperatorEditor* ed, QseParameter* param, QObject* parent)
8  : QObject(parent),
9  m_OperatorEditor(ed),
10  m_Parameter(param),
11  m_ApplyButton(NULL),
12  m_CancelButton(NULL)
13 {
14  ed->addEditor(this);
15 }
16 
18 (QPushButton* apply, QPushButton* cancel)
19 {
20  m_ApplyButton = apply;
21  m_CancelButton = cancel;
22 }
23 
25 {
26  m_ApplyButton -> setEnabled(true);
27  m_CancelButton -> setEnabled(true);
28 }
29 
30 
QPushButton * m_ApplyButton
QPushButton * m_CancelButton
void setEditors(QPushButton *apply, QPushButton *cancel)
QseParameterEditor(QseOperatorEditor *ed, QseParameter *param, QObject *parent=0)
void addEditor(QseParameterEditor *editor)