qse  0.5.4
Public Member Functions | Private Slots | Private Attributes | List of all members
QseDataDeglitcherUI Class Reference

#include <qsedatadeglitcherui.h>

Inheritance diagram for QseDataDeglitcherUI:
Inheritance graph

Public Member Functions

 QseDataDeglitcherUI (QseDataDeglitcher *deglitcher, QWidget *parent=0)
 
- Public Member Functions inherited from QseEXAFSOperatorUI
 QseEXAFSOperatorUI (QseEXAFSOperator *oper, QWidget *parent=0)
 
- Public Member Functions inherited from QseOperatorEditor
 QseOperatorEditor (QseOperator *oper, QWidget *parent=0)
 
void addEditor (QseParameterEditor *editor)
 

Private Slots

void dialogApply ()
 
void dialogCancel ()
 

Private Attributes

QseDataDeglitcherm_Deglitcher
 
QseRegExpParameterEditor m_EnergyPatternEditor
 
QseRegExpParameterEditor m_DetectorPatternEditor
 
QseRegExpParameterEditor m_NormalizationPatternEditor
 
QseRegExpParameterEditor m_SecondsPatternEditor
 

Additional Inherited Members

- Public Slots inherited from QseOperatorEditor
bool editorValidate ()
 
void editorApply ()
 
void editorCancel ()
 
- Protected Attributes inherited from QseOperatorEditor
QseOperatorm_Operator
 
QList< QseParameterEditor * > m_Editors
 

Detailed Description

Definition at line 10 of file qsedatadeglitcherui.h.

Constructor & Destructor Documentation

QseDataDeglitcherUI::QseDataDeglitcherUI ( QseDataDeglitcher deglitcher,
QWidget *  parent = 0 
)

Definition at line 6 of file qsedatadeglitcherui.cpp.

References dialogApply(), dialogCancel(), m_Deglitcher, m_DetectorPatternEditor, m_EnergyPatternEditor, m_NormalizationPatternEditor, m_SecondsPatternEditor, and QseRegExpParameterEditor::setEditors().

7  : QseEXAFSOperatorUI(deglitcher, parent),
8  m_Deglitcher(deglitcher),
13 {
14  setupUi(this);
15 
17  (energyPatternEdit,energyRegexp,patternApply,patternCancel);
19  (detectorPatternEdit,detectorRegexp,patternApply,patternCancel);
21  (normalizationPatternEdit,normalizationRegexp,patternApply,patternCancel);
23  (secondsPatternEdit,secondsRegexp,patternApply,patternCancel);
24 
25  connect(patternApply, SIGNAL(clicked()), this, SLOT(dialogApply()));
26  connect(patternCancel, SIGNAL(clicked()), this, SLOT(dialogCancel()));
27 
28  QGridLayout *layout = new QGridLayout;
29 
30  layout->addWidget(new QseGraphController(m_Deglitcher -> m_OutputData, NULL), 0, 0);
31 
32  m_GraphHolder->setLayout(layout);
33 };
QseRegExpParameter m_DetectorPattern
QseDataDeglitcher * m_Deglitcher
QseRegExpParameter m_SecondsPattern
void setEditors(QLineEdit *pattern, QCheckBox *useRegExp, QPushButton *apply, QPushButton *cancel, QPushButton *excepts=NULL, QColor fg=Qt::black, QColor bg=Qt::white)
QseRegExpParameterEditor m_EnergyPatternEditor
QseRegExpParameter m_EnergyPattern
QseRegExpParameterEditor m_DetectorPatternEditor
QseEXAFSOperatorUI(QseEXAFSOperator *oper, QWidget *parent=0)
QseRegExpParameter m_NormalizationPattern
QseRegExpParameterEditor m_NormalizationPatternEditor
QseRegExpParameterEditor m_SecondsPatternEditor

Member Function Documentation

void QseDataDeglitcherUI::dialogApply ( )
privateslot

Definition at line 35 of file qsedatadeglitcherui.cpp.

References QseOperatorEditor::editorApply(), and QseOperatorEditor::editorValidate().

Referenced by QseDataDeglitcherUI().

36 {
37  if (editorValidate()) {
38  editorApply();
39 
40  patternApply -> setEnabled(false);
41  patternCancel-> setEnabled(false);
42  }
43 }
void QseDataDeglitcherUI::dialogCancel ( )
privateslot

Definition at line 45 of file qsedatadeglitcherui.cpp.

References QseOperatorEditor::editorCancel().

Referenced by QseDataDeglitcherUI().

46 {
47  editorCancel();
48 
49  patternApply -> setEnabled(false);
50  patternCancel-> setEnabled(false);
51 }

Member Data Documentation

QseDataDeglitcher* QseDataDeglitcherUI::m_Deglitcher
private

Definition at line 22 of file qsedatadeglitcherui.h.

Referenced by QseDataDeglitcherUI().

QseRegExpParameterEditor QseDataDeglitcherUI::m_DetectorPatternEditor
private

Definition at line 25 of file qsedatadeglitcherui.h.

Referenced by QseDataDeglitcherUI().

QseRegExpParameterEditor QseDataDeglitcherUI::m_EnergyPatternEditor
private

Definition at line 24 of file qsedatadeglitcherui.h.

Referenced by QseDataDeglitcherUI().

QseRegExpParameterEditor QseDataDeglitcherUI::m_NormalizationPatternEditor
private

Definition at line 26 of file qsedatadeglitcherui.h.

Referenced by QseDataDeglitcherUI().

QseRegExpParameterEditor QseDataDeglitcherUI::m_SecondsPatternEditor
private

Definition at line 27 of file qsedatadeglitcherui.h.

Referenced by QseDataDeglitcherUI().


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