qse  0.5.4
qseedgealignerui.cpp
Go to the documentation of this file.
1 #include "qseedgealignerui.h"
2 #include "qseedgealigner.h"
3 #include "qsegraphcontroller.h"
4 
6 (QseEdgeAligner* edgeAligner, QWidget* parent)
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 };
35 
37 {
38  if (editorValidate()) {
39  editorApply();
40 
41  patternApply -> setEnabled(false);
42  patternCancel-> setEnabled(false);
43  }
44 }
45 
47 {
48  editorCancel();
49 
50  patternApply -> setEnabled(false);
51  patternCancel-> setEnabled(false);
52 }
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
QseEdgeAlignerUI(QseEdgeAligner *edgeAligner, QWidget *parent=0)
QseRegExpParameterEditor m_SecondsPatternEditor