MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
modalityselectionview.h
Go to the documentation of this file.
1//=============================================================================================================
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;
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 //=========================================================================================================
155 void updateProcessingMode(ProcessingMode mode);
156
157 //=========================================================================================================
161 void redrawGUI();
162
163 //=========================================================================================================
167 void onUpdateModalityCheckbox(qint32 state);
168
169 QMap<QString, bool> m_modalityMap;
170 QList<QCheckBox*> m_qListModalityCheckBox;
172 QStringList m_lChannelTypeList;
176signals:
177 //=========================================================================================================
181 void modalitiesChanged(const QMap<QString, bool>& modalityMap);
182};
183} // NAMESPACE
184
185#endif // MODALITYSELECTIONVIEW_H
#define DISPSHARED_EXPORT
Definition disp_global.h:55
FiffChInfo class declaration.
The AbstractView class provides the base calss for all Disp viewers.
The ModalitySelectionView class provides a view to select between different modalities.
QSharedPointer< ModalitySelectionView > SPtr
QSharedPointer< const ModalitySelectionView > ConstSPtr
void modalitiesChanged(const QMap< QString, bool > &modalityMap)
QList< QCheckBox * > m_qListModalityCheckBox
AbstractView class declaration.