MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The CompensatorView class provides a view to select the compensators. More...
#include <compensatorview.h>
Public Types | |
typedef QSharedPointer< CompensatorView > | SPtr |
typedef QSharedPointer< const CompensatorView > | 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 | 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::FiffCtfComp > | getCompensators () 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::FiffCtfComp > | m_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 |
The CompensatorView class provides a view to select the compensators.
DECLARE CLASS CompensatorView
Definition at line 82 of file compensatorview.h.
typedef QSharedPointer<const CompensatorView> DISPLIB::CompensatorView::ConstSPtr |
Const shared pointer type for CompensatorView.
Definition at line 88 of file compensatorview.h.
typedef QSharedPointer<CompensatorView> DISPLIB::CompensatorView::SPtr |
Shared pointer type for CompensatorView.
Definition at line 87 of file compensatorview.h.
CompensatorView::CompensatorView | ( | const QString & | sSettingsPath = "" , |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = Qt::Widget |
||
) |
Constructs a CompensatorView which is a child of parent.
[in] | parent | parent of widget. |
Definition at line 68 of file compensatorview.cpp.
CompensatorView::~CompensatorView | ( | ) |
Destroys the CompensatorView.
Definition at line 85 of file compensatorview.cpp.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 247 of file compensatorview.cpp.
|
signal |
Signal mapper signal for compensator changes.
|
signal |
Emit this signal whenever the user changes the compensator.
QList< FIFFLIB::FiffCtfComp > CompensatorView::getCompensators | ( | ) | const |
Get the current compensators
Definition at line 92 of file compensatorview.cpp.
int CompensatorView::getLastTo | ( | ) | const |
Get the last value of comp.to
Definition at line 179 of file compensatorview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 135 of file compensatorview.cpp.
|
protected |
Slot called when the compensator check state changes
Definition at line 217 of file compensatorview.cpp.
|
protected |
Redraw the selection.
Definition at line 186 of file compensatorview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 114 of file compensatorview.cpp.
void CompensatorView::setCompensators | ( | const QList< FIFFLIB::FiffCtfComp > & | comps | ) |
Set the current compensators
[in] | comps | The new compensators. |
Definition at line 99 of file compensatorview.cpp.
|
virtual |
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 155 of file compensatorview.cpp.
|
virtual |
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 167 of file compensatorview.cpp.
|
protected |
The current compensators.
Definition at line 179 of file compensatorview.h.
|
protected |
List of compensator CheckBox.
Definition at line 177 of file compensatorview.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 181 of file compensatorview.h.