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

The TfSettingsView class provides a view to control settings for time frequency analysis. More...

#include <tfsettingsview.h>

Public Types

typedef QSharedPointer< TfSettingsViewSPtr
 
typedef QSharedPointer< const TfSettingsViewConstSPtr
 
- 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 numberTrialRowChanged (int iNumberTrial, int iNumberRow)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 TfSettingsView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
 ~TfSettingsView ()
 
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 onNumberTrialRowChanged ()
 

Protected Attributes

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

Detailed Description

The TfSettingsView class provides a view to control settings for time frequency analysis.

DECLARE CLASS TfSettingsView

Definition at line 78 of file tfsettingsview.h.

Inheritance diagram for DISPLIB::TfSettingsView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const TfSettingsView> DISPLIB::TfSettingsView::ConstSPtr

Const shared pointer type for TfSettingsView.

Definition at line 84 of file tfsettingsview.h.

◆ SPtr

Shared pointer type for TfSettingsView.

Definition at line 83 of file tfsettingsview.h.

Constructor & Destructor Documentation

◆ TfSettingsView()

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

Constructs a TfSettingsView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 63 of file tfsettingsview.cpp.

◆ ~TfSettingsView()

TfSettingsView::~TfSettingsView ( )

Destroys the TfSettingsView.

Definition at line 87 of file tfsettingsview.cpp.

Member Function Documentation

◆ clearView()

void TfSettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 150 of file tfsettingsview.cpp.

◆ loadSettings()

void TfSettingsView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 107 of file tfsettingsview.cpp.

◆ numberTrialRowChanged

void DISPLIB::TfSettingsView::numberTrialRowChanged ( int  iNumberTrial,
int  iNumberRow 
)
signal

Emit signal whenever trial number changed.

Parameters
[in]iNumberTrialThe new trial number.
[in]iNumberRowThe new row number.

◆ onNumberTrialRowChanged()

void TfSettingsView::onNumberTrialRowChanged ( )
protected

Slot called when the trial or row number changed.

Definition at line 142 of file tfsettingsview.cpp.

◆ saveSettings()

void TfSettingsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 96 of file tfsettingsview.cpp.

◆ updateGuiMode()

void TfSettingsView::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 118 of file tfsettingsview.cpp.

◆ updateProcessingMode()

void TfSettingsView::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 130 of file tfsettingsview.cpp.

Member Data Documentation

◆ m_sSettingsPath

QString DISPLIB::TfSettingsView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 145 of file tfsettingsview.h.


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