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

#include <qseedgealignerui.h>

Inheritance diagram for QseEdgeAlignerUI:
Inheritance graph

Public Member Functions

 QseEdgeAlignerUI (QseEdgeAligner *edgeAligner, 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

QseEdgeAlignerm_EdgeAligner
 
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 qseedgealignerui.h.

Constructor & Destructor Documentation

QseEdgeAlignerUI::QseEdgeAlignerUI ( QseEdgeAligner edgeAligner,
QWidget *  parent = 0 
)

Definition at line 6 of file qseedgealignerui.cpp.

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

7  : QseEXAFSOperatorUI(edgeAligner, parent),
8  m_EdgeAligner(edgeAligner),
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
31  (new QseGraphController(m_EdgeAligner -> m_OutputData, NULL), 0, 0);
32 
33  m_GraphHolder->setLayout(layout);
34 };
QseRegExpParameter m_DetectorPattern
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_NormalizationPatternEditor
QseEdgeAligner * m_EdgeAligner
QseRegExpParameter m_EnergyPattern
QseEXAFSOperatorUI(QseEXAFSOperator *oper, QWidget *parent=0)
QseRegExpParameterEditor m_DetectorPatternEditor
QseRegExpParameter m_NormalizationPattern
QseRegExpParameterEditor m_EnergyPatternEditor
QseRegExpParameterEditor m_SecondsPatternEditor

Member Function Documentation

void QseEdgeAlignerUI::dialogApply ( )
privateslot

Definition at line 36 of file qseedgealignerui.cpp.

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

Referenced by QseEdgeAlignerUI().

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

Definition at line 46 of file qseedgealignerui.cpp.

References QseOperatorEditor::editorCancel().

Referenced by QseEdgeAlignerUI().

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

Member Data Documentation

QseRegExpParameterEditor QseEdgeAlignerUI::m_DetectorPatternEditor
private

Definition at line 25 of file qseedgealignerui.h.

Referenced by QseEdgeAlignerUI().

QseEdgeAligner* QseEdgeAlignerUI::m_EdgeAligner
private

Definition at line 22 of file qseedgealignerui.h.

Referenced by QseEdgeAlignerUI().

QseRegExpParameterEditor QseEdgeAlignerUI::m_EnergyPatternEditor
private

Definition at line 24 of file qseedgealignerui.h.

Referenced by QseEdgeAlignerUI().

QseRegExpParameterEditor QseEdgeAlignerUI::m_NormalizationPatternEditor
private

Definition at line 26 of file qseedgealignerui.h.

Referenced by QseEdgeAlignerUI().

QseRegExpParameterEditor QseEdgeAlignerUI::m_SecondsPatternEditor
private

Definition at line 27 of file qseedgealignerui.h.

Referenced by QseEdgeAlignerUI().


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