qse
0.5.4
Main Page
Related Pages
Classes
Files
File List
File Members
qse
qseoperatoreditor.cpp
Go to the documentation of this file.
1
#include "
qseoperatoreditor.h
"
2
#include "
qseoperator.h
"
3
#include "
qseparametereditor.h
"
4
5
#include <stdio.h>
6
7
QseOperatorEditor::QseOperatorEditor
(
QseOperator
* oper, QWidget* parent)
8
: QWidget(parent),
9
m_Operator(oper)
10
{
11
}
12
13
void
QseOperatorEditor::addEditor
(
QseParameterEditor
* editor)
14
{
15
// printf("QseOperatorEditor::addEditor\n");
16
17
m_Editors
.append(editor);
18
}
19
20
bool
QseOperatorEditor::editorValidate
()
21
{
22
bool
ok =
true
;
23
24
QseParameterEditor
* ed;
25
26
foreach
(ed,
m_Editors
) {
27
if
(!ed->
editorValidate
()) {
28
ok =
false
;
29
}
30
}
31
32
return
ok;
33
}
34
35
void
QseOperatorEditor::editorApply
()
36
{
37
QseParameterEditor
* ed;
38
39
foreach
(ed,
m_Editors
) {
40
// printf("Editor %p apply\n", ed);
41
ed->
editorApply
();
42
}
43
}
44
45
void
QseOperatorEditor::editorCancel
()
46
{
47
QseParameterEditor
* ed;
48
49
foreach
(ed,
m_Editors
) {
50
// printf("Editor %p cancel\n", ed);
51
ed->
editorCancel
();
52
}
53
}
54
QseOperator
Definition:
qseoperator.h:9
qseparametereditor.h
QseParameterEditor::editorApply
virtual void editorApply()=0
QseOperatorEditor::editorValidate
bool editorValidate()
Definition:
qseoperatoreditor.cpp:20
QseParameterEditor
Definition:
qseparametereditor.h:10
QseOperatorEditor::editorApply
void editorApply()
Definition:
qseoperatoreditor.cpp:35
qseoperator.h
QseParameterEditor::editorValidate
virtual bool editorValidate()=0
QseOperatorEditor::editorCancel
void editorCancel()
Definition:
qseoperatoreditor.cpp:45
QseOperatorEditor::m_Editors
QList< QseParameterEditor * > m_Editors
Definition:
qseoperatoreditor.h:24
qseoperatoreditor.h
QseParameterEditor::editorCancel
virtual void editorCancel()=0
QseOperatorEditor::QseOperatorEditor
QseOperatorEditor(QseOperator *oper, QWidget *parent=0)
Definition:
qseoperatoreditor.cpp:7
QseOperatorEditor::addEditor
void addEditor(QseParameterEditor *editor)
Definition:
qseoperatoreditor.cpp:13
Generated by
1.8.6