MNE-CPP  beta 1.0
ecgsetupwidget.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef ECGSETUPWIDGET_H
37 #define ECGSETUPWIDGET_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 
46 //*************************************************************************************************************
47 //=============================================================================================================
48 // QT INCLUDES
49 //=============================================================================================================
50 
51 #include <QtWidgets>
52 #include "../ui_ecgsetup.h"
53 
54 
55 //*************************************************************************************************************
56 //=============================================================================================================
57 // DEFINE NAMESPACE ECGSimulatorPlugin
58 //=============================================================================================================
59 
60 namespace ECGSimulatorPlugin
61 {
62 
63 
64 //*************************************************************************************************************
65 //=============================================================================================================
66 // FORWARD DECLARATIONS
67 //=============================================================================================================
68 
69 class ECGSimulator;
70 
71 
72 //=============================================================================================================
78 class ECGSetupWidget : public QWidget
79 {
80  Q_OBJECT
81 
82 public:
83 
84  //=========================================================================================================
91  ECGSetupWidget(ECGSimulator* simulator, QWidget *parent = 0);
92 
93  //=========================================================================================================
99 
100  //=========================================================================================================
105  void initSamplingFactors();
106 
107  //=========================================================================================================
113 
114  //=========================================================================================================
119  void initChannelStates();
120 
121 private:
122 
123  //=========================================================================================================
128  void setSamplingRate(double value);
129 
130  //=========================================================================================================
135  void setDownsamplingRate(int value);
136 
137  //=========================================================================================================
142  void setEnabledChannel_I(bool state);
143 
144  //=========================================================================================================
149  void setEnabledChannel_II(bool state);
150 
151  //=========================================================================================================
156  void setEnabledChannel_III(bool state);
157 
158  //=========================================================================================================
163  void setVisibleChannel_I(bool state);
164 
165  //=========================================================================================================
170  void setVisibleChannel_II(bool state);
171 
172  //=========================================================================================================
177  void setVisibleChannel_III(bool state);
178 
179  //=========================================================================================================
184  void setFileOfChannel_I(qint32);
185 
186  //=========================================================================================================
191  void setFileOfChannel_II(qint32);
192 
193  //=========================================================================================================
198  void setFileOfChannel_III(qint32);
199 
200  //=========================================================================================================
205  void showAboutDialog();
206 
207 
208  ECGSimulator* m_pECGSimulator;
210  Ui::ECGSetupClass ui;
211 };
212 
213 } // NAMESPACE
214 
215 #endif // ECGSETUPWIDGET_H
ECGSetupWidget(ECGSimulator *simulator, QWidget *parent=0)
The ECGSimulator class provides a ECG simulator.
Definition: ecgsimulator.h:97
The ECGSetupWidget class provides the ECG configuration window.