v2.0.0
Loading...
Searching...
No Matches
modalityselectionview.h
Go to the documentation of this file.
1//=============================================================================================================
21
22#ifndef MODALITYSELECTIONVIEW_H
23#define MODALITYSELECTIONVIEW_H
24
25//=============================================================================================================
26// INCLUDES
27//=============================================================================================================
28
29#include "../disp_global.h"
30#include "abstractview.h"
31
32#include <fiff/fiff_ch_info.h>
33
34//=============================================================================================================
35// QT INCLUDES
36//=============================================================================================================
37
38#include <QMap>
39
40//=============================================================================================================
41// EIGEN INCLUDES
42//=============================================================================================================
43
44//=============================================================================================================
45// FORWARD DECLARATIONS
46//=============================================================================================================
47
48class QCheckBox;
49
50//=============================================================================================================
51// DEFINE NAMESPACE DISPLIB
52//=============================================================================================================
53
54namespace DISPLIB
55{
56
57//=============================================================================================================
58// DISPLIB FORWARD DECLARATIONS
59//=============================================================================================================
60
61//=============================================================================================================
70{
71 Q_OBJECT
72
73public:
74 typedef QSharedPointer<ModalitySelectionView> SPtr;
75 typedef QSharedPointer<const ModalitySelectionView> ConstSPtr;
76
77 //=========================================================================================================
86 ModalitySelectionView(const QList<FIFFLIB::FiffChInfo>& lChannelList,
87 const QString& sSettingsPath = "",
88 QWidget* parent = 0,
89 Qt::WindowFlags f = Qt::Widget);
90
91 //=========================================================================================================
96
97 //=========================================================================================================
103 void setModalityMap(const QMap<QString, bool>& modalityMap);
104
105 //=========================================================================================================
111 QMap<QString, bool> getModalityMap();
112
113 //=========================================================================================================
117 void saveSettings();
118
119 //=========================================================================================================
123 void loadSettings();
124
125 //=========================================================================================================
129 void clearView();
130
131protected:
132 //=========================================================================================================
138 void updateGuiMode(GuiMode mode);
139
140 //=========================================================================================================
147
148 //=========================================================================================================
152 void redrawGUI();
153
154 //=========================================================================================================
160 void onUpdateModalityCheckbox(Qt::CheckState state);
161
162 QMap<QString, bool> m_modalityMap;
163 QList<QCheckBox*> m_qListModalityCheckBox;
164
165 QStringList m_lChannelTypeList;
166
168
169signals:
170 //=========================================================================================================
174 void modalitiesChanged(const QMap<QString, bool>& modalityMap);
175};
176} // NAMESPACE
177
178#endif // MODALITYSELECTIONVIEW_H
FIFF channel descriptor record (FIFF_CH_INFO): per-channel logical/scanner numbers,...
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
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