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

The CompensatorView class provides a view to select the compensators. More...

#include <compensatorview.h>

Public Types

typedef QSharedPointer< CompensatorViewSPtr
 
typedef QSharedPointer< const CompensatorViewConstSPtr
 
- 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 compClicked (const QString &text)
 
void compSelectionChanged (int to)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 CompensatorView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
 ~CompensatorView ()
 
QList< FIFFLIB::FiffCtfCompgetCompensators () const
 
int getLastTo () const
 
void setCompensators (const QList< FIFFLIB::FiffCtfComp > &comps)
 
void saveSettings ()
 
void loadSettings ()
 
void updateGuiMode (GuiMode mode)
 
void updateProcessingMode (ProcessingMode mode)
 
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 redrawGUI ()
 
void onCheckCompStatusChanged ()
 

Protected Attributes

QList< QCheckBox * > m_qListCompCheckBox
 
QList< FIFFLIB::FiffCtfCompm_pComps
 
QString m_sSettingsPath
 
int m_iLastTo
 
QMap< int, bool > m_mapCompActive
 
- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The CompensatorView class provides a view to select the compensators.

DECLARE CLASS CompensatorView

Definition at line 82 of file compensatorview.h.

Inheritance diagram for DISPLIB::CompensatorView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for CompensatorView.

Definition at line 88 of file compensatorview.h.

◆ SPtr

Shared pointer type for CompensatorView.

Definition at line 87 of file compensatorview.h.

Constructor & Destructor Documentation

◆ CompensatorView()

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

Constructs a CompensatorView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 68 of file compensatorview.cpp.

◆ ~CompensatorView()

CompensatorView::~CompensatorView ( )

Destroys the CompensatorView.

Definition at line 85 of file compensatorview.cpp.

Member Function Documentation

◆ clearView()

void CompensatorView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 247 of file compensatorview.cpp.

◆ compClicked

void DISPLIB::CompensatorView::compClicked ( const QString &  text)
signal

Signal mapper signal for compensator changes.

◆ compSelectionChanged

void DISPLIB::CompensatorView::compSelectionChanged ( int  to)
signal

Emit this signal whenever the user changes the compensator.

◆ getCompensators()

QList< FIFFLIB::FiffCtfComp > CompensatorView::getCompensators ( ) const

Get the current compensators

Returns
The current compensators.

Definition at line 92 of file compensatorview.cpp.

◆ getLastTo()

int CompensatorView::getLastTo ( ) const

Get the last value of comp.to

Returns
The last value of comp.to.

Definition at line 179 of file compensatorview.cpp.

◆ loadSettings()

void CompensatorView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 135 of file compensatorview.cpp.

◆ onCheckCompStatusChanged()

void CompensatorView::onCheckCompStatusChanged ( )
protected

Slot called when the compensator check state changes

Definition at line 217 of file compensatorview.cpp.

◆ redrawGUI()

void CompensatorView::redrawGUI ( )
protected

Redraw the selection.

Definition at line 186 of file compensatorview.cpp.

◆ saveSettings()

void CompensatorView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 114 of file compensatorview.cpp.

◆ setCompensators()

void CompensatorView::setCompensators ( const QList< FIFFLIB::FiffCtfComp > &  comps)

Set the current compensators

Parameters
[in]compsThe new compensators.

Definition at line 99 of file compensatorview.cpp.

◆ updateGuiMode()

void CompensatorView::updateGuiMode ( GuiMode  mode)
virtual

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 155 of file compensatorview.cpp.

◆ updateProcessingMode()

void CompensatorView::updateProcessingMode ( ProcessingMode  mode)
virtual

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 167 of file compensatorview.cpp.

Member Data Documentation

◆ m_pComps

QList<FIFFLIB::FiffCtfComp> DISPLIB::CompensatorView::m_pComps
protected

The current compensators.

Definition at line 179 of file compensatorview.h.

◆ m_qListCompCheckBox

QList<QCheckBox*> DISPLIB::CompensatorView::m_qListCompCheckBox
protected

List of compensator CheckBox.

Definition at line 177 of file compensatorview.h.

◆ m_sSettingsPath

QString DISPLIB::CompensatorView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 181 of file compensatorview.h.


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