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

The SpharaSettingsView class provides a view to select the SPHARA settings. More...

#include <spharasettingsview.h>

Public Types

typedef QSharedPointer< SpharaSettingsViewSPtr
 
typedef QSharedPointer< const SpharaSettingsViewConstSPtr
 
- 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 spharaActivationChanged (bool state)
 
void spharaOptionsChanged (const QString &sSytemType, int nBaseFctsFirst, int nBaseFctsSecond)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 SpharaSettingsView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
 ~SpharaSettingsView ()
 
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 onSpharaButtonClicked (bool state)
 
void onSpharaOptionsChanged ()
 

Protected Attributes

Ui::SpharaSettingsViewWidget * m_pUi
 
- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The SpharaSettingsView class provides a view to select the SPHARA settings.

DECLARE CLASS SpharaSettingsView

Definition at line 78 of file spharasettingsview.h.

Inheritance diagram for DISPLIB::SpharaSettingsView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for SpharaSettingsView.

Definition at line 84 of file spharasettingsview.h.

◆ SPtr

Shared pointer type for SpharaSettingsView.

Definition at line 83 of file spharasettingsview.h.

Constructor & Destructor Documentation

◆ SpharaSettingsView()

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

Constructs a SpharaSettingsView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 63 of file spharasettingsview.cpp.

◆ ~SpharaSettingsView()

SpharaSettingsView::~SpharaSettingsView ( )

Destroys the SpharaSettingsView.

Definition at line 94 of file spharasettingsview.cpp.

Member Function Documentation

◆ clearView()

void SpharaSettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 196 of file spharasettingsview.cpp.

◆ loadSettings()

void SpharaSettingsView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 114 of file spharasettingsview.cpp.

◆ onSpharaButtonClicked()

void SpharaSettingsView::onSpharaButtonClicked ( bool  state)
protected

Slot called when the sphara tool was toggled

Definition at line 150 of file spharasettingsview.cpp.

◆ onSpharaOptionsChanged()

void SpharaSettingsView::onSpharaOptionsChanged ( )
protected

Slot called when the user changes the sphara options

Definition at line 157 of file spharasettingsview.cpp.

◆ saveSettings()

void SpharaSettingsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 102 of file spharasettingsview.cpp.

◆ spharaActivationChanged

void DISPLIB::SpharaSettingsView::spharaActivationChanged ( bool  state)
signal

Emit this signal whenever the user toggled the SPHARA operator.

◆ spharaOptionsChanged

void DISPLIB::SpharaSettingsView::spharaOptionsChanged ( const QString &  sSytemType,
int  nBaseFctsFirst,
int  nBaseFctsSecond 
)
signal

Emit this signal whenever the user changes the SPHARA operator.

◆ updateGuiMode()

void SpharaSettingsView::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 126 of file spharasettingsview.cpp.

◆ updateProcessingMode()

void SpharaSettingsView::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 138 of file spharasettingsview.cpp.


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