qse  0.5.4
Public Slots | Public Member Functions | Protected Attributes | List of all members
QseOperatorEditor Class Reference

#include <qseoperatoreditor.h>

Inheritance diagram for QseOperatorEditor:
Inheritance graph

Public Slots

bool editorValidate ()
 
void editorApply ()
 
void editorCancel ()
 

Public Member Functions

 QseOperatorEditor (QseOperator *oper, QWidget *parent=0)
 
void addEditor (QseParameterEditor *editor)
 

Protected Attributes

QseOperatorm_Operator
 
QList< QseParameterEditor * > m_Editors
 

Detailed Description

Definition at line 9 of file qseoperatoreditor.h.

Constructor & Destructor Documentation

QseOperatorEditor::QseOperatorEditor ( QseOperator oper,
QWidget *  parent = 0 
)

Definition at line 7 of file qseoperatoreditor.cpp.

8  : QWidget(parent),
9  m_Operator(oper)
10 {
11 }
QseOperator * m_Operator

Member Function Documentation

void QseOperatorEditor::addEditor ( QseParameterEditor editor)

Definition at line 13 of file qseoperatoreditor.cpp.

References m_Editors.

Referenced by QseParameterEditor::QseParameterEditor().

14 {
15 // printf("QseOperatorEditor::addEditor\n");
16 
17  m_Editors.append(editor);
18 }
QList< QseParameterEditor * > m_Editors
void QseOperatorEditor::editorApply ( )
slot

Definition at line 35 of file qseoperatoreditor.cpp.

References QseParameterEditor::editorApply(), and m_Editors.

Referenced by QseDataDeglitcherUI::dialogApply(), QseEdgeAlignerUI::dialogApply(), QseScanAveragerUI::dialogApply(), and QseNormalizerUI::dialogApply().

36 {
38 
39  foreach(ed, m_Editors) {
40 // printf("Editor %p apply\n", ed);
41  ed->editorApply();
42  }
43 }
virtual void editorApply()=0
QList< QseParameterEditor * > m_Editors
void QseOperatorEditor::editorCancel ( )
slot

Definition at line 45 of file qseoperatoreditor.cpp.

References QseParameterEditor::editorCancel(), and m_Editors.

Referenced by QseDataDeglitcherUI::dialogCancel(), QseEdgeAlignerUI::dialogCancel(), QseScanAveragerUI::dialogCancel(), and QseNormalizerUI::dialogCancel().

46 {
48 
49  foreach(ed, m_Editors) {
50 // printf("Editor %p cancel\n", ed);
51  ed->editorCancel();
52  }
53 }
QList< QseParameterEditor * > m_Editors
virtual void editorCancel()=0
bool QseOperatorEditor::editorValidate ( )
slot

Definition at line 20 of file qseoperatoreditor.cpp.

References QseParameterEditor::editorValidate(), and m_Editors.

Referenced by QseDataDeglitcherUI::dialogApply(), QseEdgeAlignerUI::dialogApply(), QseScanAveragerUI::dialogApply(), and QseNormalizerUI::dialogApply().

21 {
22  bool ok = true;
23 
25 
26  foreach(ed, m_Editors) {
27  if(!ed->editorValidate()) {
28  ok = false;
29  }
30  }
31 
32  return ok;
33 }
virtual bool editorValidate()=0
QList< QseParameterEditor * > m_Editors

Member Data Documentation

QList<QseParameterEditor*> QseOperatorEditor::m_Editors
protected

Definition at line 24 of file qseoperatoreditor.h.

Referenced by addEditor(), editorApply(), editorCancel(), and editorValidate().

QseOperator* QseOperatorEditor::m_Operator
protected

Definition at line 23 of file qseoperatoreditor.h.


The documentation for this class was generated from the following files: