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::AverageSelectionView Class Reference

The AverageSelectionView class provides a view to activate and choose colors for different averages. More...

#include <averageselectionview.h>

Public Types

typedef QSharedPointer< AverageSelectionViewSPtr
 
typedef QSharedPointer< const AverageSelectionViewConstSPtr
 
- 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 newAverageColorMap (const QSharedPointer< QMap< QString, QColor > > qMapAverageColor)
 
void newAverageActivationMap (const QSharedPointer< QMap< QString, bool > > qMapAverageActivation)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 AverageSelectionView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
 ~AverageSelectionView ()
 
QSharedPointer< QMap< QString, QColor > > getAverageColor () const
 
QSharedPointer< QMap< QString, bool > > getAverageActivation () const
 
void setAverageColor (const QSharedPointer< QMap< QString, QColor > > qMapAverageColor)
 
void setAverageActivation (const QSharedPointer< QMap< QString, bool > > qMapAverageActivation)
 
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 onAverageSelectionColorChanged ()
 

Protected Attributes

int m_iMaxNumAverages
 
QSharedPointer< QMap< QString, QColor > > m_qMapAverageColor
 
QSharedPointer< QMap< QString, bool > > m_qMapAverageActivation
 
- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The AverageSelectionView class provides a view to activate and choose colors for different averages.

DECLARE CLASS AverageSelectionView

Definition at line 76 of file averageselectionview.h.

Inheritance diagram for DISPLIB::AverageSelectionView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for AverageSelectionView.

Definition at line 82 of file averageselectionview.h.

◆ SPtr

Shared pointer type for AverageSelectionView.

Definition at line 81 of file averageselectionview.h.

Constructor & Destructor Documentation

◆ AverageSelectionView()

AverageSelectionView::AverageSelectionView ( const QString &  sSettingsPath = "",
QWidget *  parent = 0,
Qt::WindowFlags  f = Qt::Widget 
)

Constructs a AverageSelectionView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 74 of file averageselectionview.cpp.

◆ ~AverageSelectionView()

AverageSelectionView::~AverageSelectionView ( )

Destroys the AverageSelectionView.

Definition at line 93 of file averageselectionview.cpp.

Member Function Documentation

◆ clearView()

void AverageSelectionView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 296 of file averageselectionview.cpp.

◆ getAverageActivation()

QSharedPointer< QMap< QString, bool > > AverageSelectionView::getAverageActivation ( ) const

Get the current average activations

Returns
Pointer to the current average activations.

Definition at line 107 of file averageselectionview.cpp.

◆ getAverageColor()

QSharedPointer< QMap< QString, QColor > > AverageSelectionView::getAverageColor ( ) const

Get the current average colors

Returns
Pointer to the current average colors.

Definition at line 100 of file averageselectionview.cpp.

◆ loadSettings()

void AverageSelectionView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 157 of file averageselectionview.cpp.

◆ newAverageActivationMap

void DISPLIB::AverageSelectionView::newAverageActivationMap ( const QSharedPointer< QMap< QString, bool > >  qMapAverageActivation)
signal

Emmited when new average activation is available

Parameters
[in]qMapAverageActivationthe average activation map.

◆ newAverageColorMap

void DISPLIB::AverageSelectionView::newAverageColorMap ( const QSharedPointer< QMap< QString, QColor > >  qMapAverageColor)
signal

Emmited when new average color is available

Parameters
[in]qMapAverageColorthe average color map.

◆ onAverageSelectionColorChanged()

void AverageSelectionView::onAverageSelectionColorChanged ( )
protected

Call this slot whenever the average selection or color changed.

Definition at line 260 of file averageselectionview.cpp.

◆ redrawGUI()

void AverageSelectionView::redrawGUI ( )
protected

Redraw the GUI.

Definition at line 206 of file averageselectionview.cpp.

◆ saveSettings()

void AverageSelectionView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 130 of file averageselectionview.cpp.

◆ setAverageActivation()

void AverageSelectionView::setAverageActivation ( const QSharedPointer< QMap< QString, bool > >  qMapAverageActivation)

Set the average activations

Parameters
[in]qMapAverageActivationPointer to the new average activations.

Definition at line 122 of file averageselectionview.cpp.

◆ setAverageColor()

void AverageSelectionView::setAverageColor ( const QSharedPointer< QMap< QString, QColor > >  qMapAverageColor)

Set the average colors

Parameters
[in]qMapAverageColorPointer to the new average colors.

Definition at line 114 of file averageselectionview.cpp.

◆ updateGuiMode()

void AverageSelectionView::updateGuiMode ( GuiMode  mode)
protectedvirtual

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

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

Implements DISPLIB::AbstractView.

Definition at line 182 of file averageselectionview.cpp.

◆ updateProcessingMode()

void AverageSelectionView::updateProcessingMode ( ProcessingMode  mode)
protectedvirtual

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

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

Implements DISPLIB::AbstractView.

Definition at line 194 of file averageselectionview.cpp.

Member Data Documentation

◆ m_qMapAverageActivation

QSharedPointer<QMap<QString, bool> > DISPLIB::AverageSelectionView::m_qMapAverageActivation
protected

Average activation status.

Definition at line 182 of file averageselectionview.h.

◆ m_qMapAverageColor

QSharedPointer<QMap<QString, QColor> > DISPLIB::AverageSelectionView::m_qMapAverageColor
protected

Average colors.

Definition at line 181 of file averageselectionview.h.


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