MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
compensatorview.h
Go to the documentation of this file.
1//=============================================================================================================
35#ifndef COMPENSATORVIEW_H
36#define COMPENSATORVIEW_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../disp_global.h"
43#include "abstractview.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QMap>
50
51//=============================================================================================================
52// EIGEN INCLUDES
53//=============================================================================================================
54
55//=============================================================================================================
56// FORWARD DECLARATIONS
57//=============================================================================================================
58
59class QCheckBox;
60
61namespace FIFFLIB {
62 class FiffCtfComp;
63}
64
65//=============================================================================================================
66// DEFINE NAMESPACE DISPLIB
67//=============================================================================================================
68
69namespace DISPLIB
70{
71
72//=============================================================================================================
73// DISPLIB FORWARD DECLARATIONS
74//=============================================================================================================
75
76//=============================================================================================================
83{
84 Q_OBJECT
85
86public:
87 typedef QSharedPointer<CompensatorView> SPtr;
88 typedef QSharedPointer<const CompensatorView> ConstSPtr;
90 //=========================================================================================================
96 CompensatorView(const QString& sSettingsPath = "",
97 QWidget *parent = 0,
98 Qt::WindowFlags f = Qt::Widget);
99
100 //=========================================================================================================
105
106 //=========================================================================================================
112 QList<FIFFLIB::FiffCtfComp> getCompensators() const;
113
114 //=========================================================================================================
120 int getLastTo() const;
121
122 //=========================================================================================================
128 void setCompensators(const QList<FIFFLIB::FiffCtfComp>& comps);
129
130 //=========================================================================================================
134 void saveSettings();
135
136 //=========================================================================================================
140 void loadSettings();
141
142 //=========================================================================================================
148 void updateGuiMode(GuiMode mode);
149
150 //=========================================================================================================
156 void updateProcessingMode(ProcessingMode mode);
157
158 //=========================================================================================================
162 void clearView();
163
164protected:
165 //=========================================================================================================
169 void redrawGUI();
170
171 //=========================================================================================================
175 void onCheckCompStatusChanged();
176
177 QList<QCheckBox*> m_qListCompCheckBox;
179 QList<FIFFLIB::FiffCtfComp> m_pComps;
183 int m_iLastTo;
184
185 QMap<int,bool> m_mapCompActive;
186
187signals:
188 //=========================================================================================================
192 void compClicked(const QString& text);
193
194 //=========================================================================================================
199};
200} // NAMESPACE
201
202#endif // COMPENSATORVIEW_H
#define DISPSHARED_EXPORT
Definition disp_global.h:55
The AbstractView class provides the base calss for all Disp viewers.
The CompensatorView class provides a view to select the compensators.
QSharedPointer< const CompensatorView > ConstSPtr
QList< FIFFLIB::FiffCtfComp > m_pComps
void compSelectionChanged(int to)
void compClicked(const QString &text)
QList< QCheckBox * > m_qListCompCheckBox
QSharedPointer< CompensatorView > SPtr
AbstractView class declaration.