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 //=========================================================================================================
83 ModalitySelectionView(const QList<FIFFLIB::FiffChInfo> &lChannelList,
84 const QString& sSettingsPath = "",
85 QWidget *parent = 0,
86 Qt::WindowFlags f = Qt::Widget);
87
88 //=========================================================================================================
93
94 //=========================================================================================================
100 void setModalityMap(const QMap<QString, bool>& modalityMap);
101
102 //=========================================================================================================
108 QMap<QString, bool> getModalityMap();
109
110 //=========================================================================================================
114 void saveSettings();
115
116 //=========================================================================================================
120 void loadSettings();
121
122 //=========================================================================================================
126 void clearView();
127
128protected:
129 //=========================================================================================================
135 void updateGuiMode(GuiMode mode);
136
137 //=========================================================================================================
144
145 //=========================================================================================================
149 void redrawGUI();
150
151 //=========================================================================================================
155 void onUpdateModalityCheckbox(Qt::CheckState state);
156
157 QMap<QString, bool> m_modalityMap;
158 QList<QCheckBox*> m_qListModalityCheckBox;
159
160 QStringList m_lChannelTypeList;
161
163
164signals:
165 //=========================================================================================================
169 void modalitiesChanged(const QMap<QString, bool>& modalityMap);
170};
171} // NAMESPACE
172
173#endif // MODALITYSELECTIONVIEW_H
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
FIFF channel descriptor record (FIFF_CH_INFO): per-channel logical/scanner numbers,...
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