v2.0.0
Loading...
Searching...
No Matches
modalityselectionview.h
Go to the documentation of this file.
1//=============================================================================================================
35
36#ifndef MODALITYSELECTIONVIEW_H
37#define MODALITYSELECTIONVIEW_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../disp_global.h"
44#include "abstractview.h"
45
46#include <fiff/fiff_ch_info.h>
47
48//=============================================================================================================
49// QT INCLUDES
50//=============================================================================================================
51
52#include <QMap>
53
54//=============================================================================================================
55// EIGEN INCLUDES
56//=============================================================================================================
57
58//=============================================================================================================
59// FORWARD DECLARATIONS
60//=============================================================================================================
61
62class QCheckBox;
63
64//=============================================================================================================
65// DEFINE NAMESPACE DISPLIB
66//=============================================================================================================
67
68namespace DISPLIB
69{
70
71//=============================================================================================================
72// DISPLIB FORWARD DECLARATIONS
73//=============================================================================================================
74
75//=============================================================================================================
82{
83 Q_OBJECT
84
85public:
86 typedef QSharedPointer<ModalitySelectionView> SPtr;
87 typedef QSharedPointer<const ModalitySelectionView> ConstSPtr;
88
89 //=========================================================================================================
95 ModalitySelectionView(const QList<FIFFLIB::FiffChInfo> &lChannelList,
96 const QString& sSettingsPath = "",
97 QWidget *parent = 0,
98 Qt::WindowFlags f = Qt::Widget);
99
100 //=========================================================================================================
105
106 //=========================================================================================================
112 void setModalityMap(const QMap<QString, bool>& modalityMap);
113
114 //=========================================================================================================
120 QMap<QString, bool> getModalityMap();
121
122 //=========================================================================================================
126 void saveSettings();
127
128 //=========================================================================================================
132 void loadSettings();
133
134 //=========================================================================================================
138 void clearView();
139
140protected:
141 //=========================================================================================================
147 void updateGuiMode(GuiMode mode);
148
149 //=========================================================================================================
156
157 //=========================================================================================================
161 void redrawGUI();
162
163 //=========================================================================================================
167 void onUpdateModalityCheckbox(Qt::CheckState state);
168
169 QMap<QString, bool> m_modalityMap;
170 QList<QCheckBox*> m_qListModalityCheckBox;
171
172 QStringList m_lChannelTypeList;
173
175
176signals:
177 //=========================================================================================================
181 void modalitiesChanged(const QMap<QString, bool>& modalityMap);
182};
183} // NAMESPACE
184
185#endif // MODALITYSELECTIONVIEW_H
Declaration of the AbstractView Class.
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
FiffChInfo class declaration.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
QSharedPointer< ModalitySelectionView > SPtr
QSharedPointer< const ModalitySelectionView > ConstSPtr
ModalitySelectionView(const QList< FIFFLIB::FiffChInfo > &lChannelList, const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void setModalityMap(const QMap< QString, bool > &modalityMap)
void modalitiesChanged(const QMap< QString, bool > &modalityMap)
void updateProcessingMode(ProcessingMode mode)
void onUpdateModalityCheckbox(Qt::CheckState state)
QList< QCheckBox * > m_qListModalityCheckBox