MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISPLIB::ModalitySelectionView Class Reference

The ModalitySelectionView class provides a view to select between different modalities. More...

#include <modalityselectionview.h>

Public Types

typedef QSharedPointer< ModalitySelectionViewSPtr
 
typedef QSharedPointer< const ModalitySelectionViewConstSPtr
 
- Public Types inherited from DISPLIB::AbstractView
enum  StyleMode { Default, Dark }
 
enum  GuiMode { Clinical, Research }
 
enum  ProcessingMode { RealTime, Offline }
 
typedef QSharedPointer< AbstractViewSPtr
 
typedef QSharedPointer< const AbstractViewConstSPtr
 

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
 

Detailed Description

The ModalitySelectionView class provides a view to select between different modalities.

DECLARE CLASS ModalitySelectionView

Definition at line 81 of file modalityselectionview.h.

Inheritance diagram for DISPLIB::ModalitySelectionView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for ModalitySelectionView.

Definition at line 87 of file modalityselectionview.h.

◆ SPtr

Shared pointer type for ModalitySelectionView.

Definition at line 86 of file modalityselectionview.h.

Constructor & Destructor Documentation

◆ ModalitySelectionView()

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.

Parameters
[in]parentparent of widget.

Definition at line 66 of file modalityselectionview.cpp.

◆ ~ModalitySelectionView()

ModalitySelectionView::~ModalitySelectionView ( )

Destroys the ModalitySelectionView.

Definition at line 105 of file modalityselectionview.cpp.

Member Function Documentation

◆ clearView()

void ModalitySelectionView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 265 of file modalityselectionview.cpp.

◆ getModalityMap()

QMap< QString, bool > ModalitySelectionView::getModalityMap ( )

Get the activation of the already created modality check boxes.

Returns
The current modality map.

Definition at line 112 of file modalityselectionview.cpp.

◆ loadSettings()

void ModalitySelectionView::loadSettings ( )
virtual

Loads and inits all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 149 of file modalityselectionview.cpp.

◆ modalitiesChanged

void DISPLIB::ModalitySelectionView::modalitiesChanged ( const QMap< QString, bool > &  modalityMap)
signal

Emit this signal whenever the user changed the modality.

◆ onUpdateModalityCheckbox()

void ModalitySelectionView::onUpdateModalityCheckbox ( qint32  state)
protected

Slot called when modality check boxes were changed

Definition at line 250 of file modalityselectionview.cpp.

◆ redrawGUI()

void ModalitySelectionView::redrawGUI ( )
protected

Redraw the GUI.

Definition at line 211 of file modalityselectionview.cpp.

◆ saveSettings()

void ModalitySelectionView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 119 of file modalityselectionview.cpp.

◆ setModalityMap()

void ModalitySelectionView::setModalityMap ( const QMap< QString, bool > &  modalityMap)

Set the modality checkboxes.

Parameters
[in]modalityMapThe modality map.

Definition at line 202 of file modalityselectionview.cpp.

◆ updateGuiMode()

void ModalitySelectionView::updateGuiMode ( GuiMode  mode)
protectedvirtual

Update the views GUI based on the set GuiMode (Clinical=0, Research=1).

Parameters
[in]modeThe new mode (Clinical=0, Research=1).

Implements DISPLIB::AbstractView.

Definition at line 178 of file modalityselectionview.cpp.

◆ updateProcessingMode()

void ModalitySelectionView::updateProcessingMode ( ProcessingMode  mode)
protectedvirtual

Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).

Parameters
[in]modeThe new mode (RealTime=0, Offline=1).

Implements DISPLIB::AbstractView.

Definition at line 190 of file modalityselectionview.cpp.

Member Data Documentation

◆ m_lChannelTypeList

QStringList DISPLIB::ModalitySelectionView::m_lChannelTypeList
protected

Channel type list.

Definition at line 172 of file modalityselectionview.h.

◆ m_modalityMap

QMap<QString, bool> DISPLIB::ModalitySelectionView::m_modalityMap
protected

Map of different modalities.

Definition at line 169 of file modalityselectionview.h.

◆ m_qListModalityCheckBox

QList<QCheckBox*> DISPLIB::ModalitySelectionView::m_qListModalityCheckBox
protected

List of modality checkboxes.

Definition at line 170 of file modalityselectionview.h.

◆ m_sSettingsPath

QString DISPLIB::ModalitySelectionView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 174 of file modalityselectionview.h.


The documentation for this class was generated from the following files: