MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The ModalitySelectionView class provides a view to select between different modalities. More...
#include <modalityselectionview.h>
Public Types | |
typedef QSharedPointer< ModalitySelectionView > | SPtr |
typedef QSharedPointer< const ModalitySelectionView > | ConstSPtr |
Public Types inherited from DISPLIB::AbstractView | |
enum | StyleMode { Default, Dark } |
enum | GuiMode { Clinical, Research } |
enum | ProcessingMode { RealTime, Offline } |
typedef QSharedPointer< AbstractView > | SPtr |
typedef QSharedPointer< const AbstractView > | ConstSPtr |
Signals | |
void | modalitiesChanged (const QMap< QString, bool > &modalityMap) |
Signals inherited from DISPLIB::AbstractView | |
void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
Public Member Functions | |
ModalitySelectionView (const QList< FIFFLIB::FiffChInfo > &lChannelList, const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
~ModalitySelectionView () | |
void | setModalityMap (const QMap< QString, bool > &modalityMap) |
QMap< QString, bool > | getModalityMap () |
void | saveSettings () |
void | loadSettings () |
void | clearView () |
Public Member Functions inherited from DISPLIB::AbstractView | |
AbstractView (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
virtual void | setGuiMode (GuiMode mode) |
virtual void | setProcessingMode (ProcessingMode mode) |
Protected Member Functions | |
void | updateGuiMode (GuiMode mode) |
void | updateProcessingMode (ProcessingMode mode) |
void | redrawGUI () |
void | onUpdateModalityCheckbox (qint32 state) |
Protected Attributes | |
QMap< QString, bool > | m_modalityMap |
QList< QCheckBox * > | m_qListModalityCheckBox |
QStringList | m_lChannelTypeList |
QString | m_sSettingsPath |
Protected Attributes inherited from DISPLIB::AbstractView | |
bool | m_bResearchModeIsActive |
bool | m_bOfflineModeIsActive |
QString | m_sSettingsPath |
The ModalitySelectionView class provides a view to select between different modalities.
DECLARE CLASS ModalitySelectionView
Definition at line 81 of file modalityselectionview.h.
typedef QSharedPointer<const ModalitySelectionView> DISPLIB::ModalitySelectionView::ConstSPtr |
Const shared pointer type for ModalitySelectionView.
Definition at line 87 of file modalityselectionview.h.
typedef QSharedPointer<ModalitySelectionView> DISPLIB::ModalitySelectionView::SPtr |
Shared pointer type for ModalitySelectionView.
Definition at line 86 of file modalityselectionview.h.
ModalitySelectionView::ModalitySelectionView | ( | const QList< FIFFLIB::FiffChInfo > & | lChannelList, |
const QString & | sSettingsPath = "" , |
||
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = Qt::Widget |
||
) |
Constructs a ModalitySelectionView which is a child of parent.
[in] | parent | parent of widget. |
Definition at line 66 of file modalityselectionview.cpp.
ModalitySelectionView::~ModalitySelectionView | ( | ) |
Destroys the ModalitySelectionView.
Definition at line 105 of file modalityselectionview.cpp.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 265 of file modalityselectionview.cpp.
QMap< QString, bool > ModalitySelectionView::getModalityMap | ( | ) |
Get the activation of the already created modality check boxes.
Definition at line 112 of file modalityselectionview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 149 of file modalityselectionview.cpp.
|
signal |
Emit this signal whenever the user changed the modality.
|
protected |
Slot called when modality check boxes were changed
Definition at line 250 of file modalityselectionview.cpp.
|
protected |
Redraw the GUI.
Definition at line 211 of file modalityselectionview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 119 of file modalityselectionview.cpp.
void ModalitySelectionView::setModalityMap | ( | const QMap< QString, bool > & | modalityMap | ) |
Set the modality checkboxes.
[in] | modalityMap | The modality map. |
Definition at line 202 of file modalityselectionview.cpp.
|
protectedvirtual |
Update the views GUI based on the set GuiMode (Clinical=0, Research=1).
[in] | mode | The new mode (Clinical=0, Research=1). |
Implements DISPLIB::AbstractView.
Definition at line 178 of file modalityselectionview.cpp.
|
protectedvirtual |
Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).
[in] | mode | The new mode (RealTime=0, Offline=1). |
Implements DISPLIB::AbstractView.
Definition at line 190 of file modalityselectionview.cpp.
|
protected |
Channel type list.
Definition at line 172 of file modalityselectionview.h.
|
protected |
Map of different modalities.
Definition at line 169 of file modalityselectionview.h.
|
protected |
List of modality checkboxes.
Definition at line 170 of file modalityselectionview.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 174 of file modalityselectionview.h.