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

The AveragingSettingsView class provides a averaging settings view. More...

#include <averagingsettingsview.h>

Public Types

typedef QSharedPointer< AveragingSettingsViewSPtr
 
typedef QSharedPointer< AveragingSettingsViewConstSPtr
 
- 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 changePreStim (qint32 value)
 
void changePostStim (qint32 value)
 
void changeBaselineFrom (qint32 value)
 
void changeBaselineTo (qint32 value)
 
void changeNumAverages (qint32 value)
 
void changeStimChannel (const QString &sStimName)
 
void changeBaselineActive (bool state)
 
void resetAverage (bool state)
 
void changeAverageMode (qint32 index)
 
void calculateAverage (bool state)
 
void changeDropActive (bool state)
 
void setAutoCompute (bool state)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 AveragingSettingsView (const QString &sSettingsPath="", const QMap< QString, int > &mapStimChsIndexNames=QMap< QString, int >(), QWidget *parent=Q_NULLPTR)
 
 ~AveragingSettingsView ()
 
void setStimChannels (const QMap< QString, int > &mapStimChsIndexNames)
 
QString getCurrentStimCh ()
 
bool getDoBaselineCorrection ()
 
int getNumAverages ()
 
int getBaselineFromSeconds ()
 
int getBaselineToSeconds ()
 
int getStimChannelIdx ()
 
int getPreStimMSeconds ()
 
int getPostStimMSeconds ()
 
QString getCurrentSelectGroup ()
 
void setDetectedEpochs (const FIFFLIB::FiffEvokedSet &evokedSet)
 
bool getAutoComputeStatus ()
 
void clearSelectionGroup ()
 
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 onChangePreStim ()
 
void onChangePostStim ()
 
void onChangeBaselineFrom ()
 
void onChangeBaselineTo ()
 
void onChangeNumAverages ()
 
void onChangeStimChannel ()
 
void onChangeGroupSelect (int iIndex)
 

Protected Attributes

Ui::AverageSettingsViewWidget * m_pUi
 
QString m_sCurrentStimChan
 
QMap< QString, int > m_mapStimChsIndexNames
 
int m_iNumAverages
 
int m_iPreStimSeconds
 
int m_iPostStimSeconds
 
int m_iBaselineFromSeconds
 
int m_iBaselineToSeconds
 
bool m_bDoBaselineCorrection
 
- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The AveragingSettingsView class provides a averaging settings view.

DECLARE CLASS AveragingSettingsView

Definition at line 84 of file averagingsettingsview.h.

Inheritance diagram for DISPLIB::AveragingSettingsView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for AveragingAdjustmentWidget.

Definition at line 90 of file averagingsettingsview.h.

◆ SPtr

Shared pointer type for AveragingAdjustmentWidget.

Definition at line 89 of file averagingsettingsview.h.

Constructor & Destructor Documentation

◆ ~AveragingSettingsView()

AveragingSettingsView::~AveragingSettingsView ( )

Destroys the AveragingSettingsView.

Definition at line 86 of file averagingsettingsview.cpp.

Member Function Documentation

◆ clearView()

void AveragingSettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 446 of file averagingsettingsview.cpp.

◆ loadSettings()

void AveragingSettingsView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 298 of file averagingsettingsview.cpp.

◆ redrawGUI()

void AveragingSettingsView::redrawGUI ( )
protected

Redraw the GUI.

Definition at line 172 of file averagingsettingsview.cpp.

◆ saveSettings()

void AveragingSettingsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 278 of file averagingsettingsview.cpp.

◆ updateGuiMode()

void AveragingSettingsView::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 327 of file averagingsettingsview.cpp.

◆ updateProcessingMode()

void AveragingSettingsView::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 339 of file averagingsettingsview.cpp.

Member Data Documentation

◆ m_pUi

Ui::AverageSettingsViewWidget* DISPLIB::AveragingSettingsView::m_pUi
protected

Holds the user interface for the AverageSettingsViewWidget.

Definition at line 177 of file averagingsettingsview.h.


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