qse  0.5.4
qsedatadeglitcherui.cpp
Go to the documentation of this file.
1 #include "qsedatadeglitcherui.h"
2 #include "qsedatadeglitcher.h"
3 #include "qsegraphcontroller.h"
4 
6 (QseDataDeglitcher* deglitcher, QWidget* parent)
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 };
34 
36 {
37  if (editorValidate()) {
38  editorApply();
39 
40  patternApply -> setEnabled(false);
41  patternCancel-> setEnabled(false);
42  }
43 }
44 
46 {
47  editorCancel();
48 
49  patternApply -> setEnabled(false);
50  patternCancel-> setEnabled(false);
51 }
QseRegExpParameter m_DetectorPattern
QseDataDeglitcher * m_Deglitcher
QseDataDeglitcherUI(QseDataDeglitcher *deglitcher, QWidget *parent=0)
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