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

The ConnectivitySettingsView class provides a view to control settings for estiamting functional connectivity. More...

#include <connectivitysettingsview.h>

Public Types

typedef QSharedPointer< ConnectivitySettingsViewSPtr
 
typedef QSharedPointer< const ConnectivitySettingsViewConstSPtr
 
- 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 connectivityMetricChanged (const QString &sMetric)
 
void windowTypeChanged (const QString &windowType)
 
void numberTrialsChanged (int iNumberTrials)
 
void triggerTypeChanged (const QString &sTriggerType)
 
void freqBandChanged (float fFreqLow, float fFreqHigh)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 ConnectivitySettingsView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
 ~ConnectivitySettingsView ()
 
void setTriggerTypes (const QStringList &lTriggerTypes)
 
void setNumberTrials (int iNumberTrials)
 
QString getConnectivityMetric ()
 
QString getWindowType ()
 
int getNumberTrials ()
 
QString getTriggerType ()
 
double getLowerFreq ()
 
double getUpperFreq ()
 
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 onMetricChanged (const QString &sMetric)
 
void onWindowTypeChanged (const QString &sWindowType)
 
void onNumberTrialsChanged ()
 
void onTriggerTypeChanged (const QString &sTriggerType)
 
void onFrequencyBandChanged ()
 

Protected Attributes

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

Detailed Description

The ConnectivitySettingsView class provides a view to control settings for estiamting functional connectivity.

DECLARE CLASS ConnectivitySettingsView

Definition at line 78 of file connectivitysettingsview.h.

Inheritance diagram for DISPLIB::ConnectivitySettingsView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for ConnectivitySettingsView.

Definition at line 84 of file connectivitysettingsview.h.

◆ SPtr

Shared pointer type for ConnectivitySettingsView.

Definition at line 83 of file connectivitysettingsview.h.

Constructor & Destructor Documentation

◆ ConnectivitySettingsView()

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

Constructs a ConnectivitySettingsView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 63 of file connectivitysettingsview.cpp.

◆ ~ConnectivitySettingsView()

ConnectivitySettingsView::~ConnectivitySettingsView ( )

Destroys the ConnectivitySettingsView.

Definition at line 108 of file connectivitysettingsview.cpp.

Member Function Documentation

◆ clearView()

void ConnectivitySettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 286 of file connectivitysettingsview.cpp.

◆ connectivityMetricChanged

void DISPLIB::ConnectivitySettingsView::connectivityMetricChanged ( const QString &  sMetric)
signal

Emit signal whenever the connectivity metric changed.

Parameters
[in]sMetricThe new metric.

◆ freqBandChanged

void DISPLIB::ConnectivitySettingsView::freqBandChanged ( float  fFreqLow,
float  fFreqHigh 
)
signal

Emit signal whenever the frequency band changed.

Parameters
[in]fFreqLowThe new lower frequency band.
[in]fFreqHighThe new higher frequency band.

◆ getConnectivityMetric()

QString ConnectivitySettingsView::getConnectivityMetric ( )

Get the current connectivity metric.

Returns
The current connectivity metric.

Definition at line 135 of file connectivitysettingsview.cpp.

◆ getLowerFreq()

double ConnectivitySettingsView::getLowerFreq ( )

Get the current lower frequency range.

Returns
The current lower frequency range.

Definition at line 163 of file connectivitysettingsview.cpp.

◆ getNumberTrials()

int ConnectivitySettingsView::getNumberTrials ( )

Get the current number of trials.

Returns
The current number of trials.

Definition at line 149 of file connectivitysettingsview.cpp.

◆ getTriggerType()

QString ConnectivitySettingsView::getTriggerType ( )

Get the current trigger type.

Returns
The current trigger type.

Definition at line 156 of file connectivitysettingsview.cpp.

◆ getUpperFreq()

double ConnectivitySettingsView::getUpperFreq ( )

Get the current upper frequency range.

Returns
The current upper frequency range.

Definition at line 170 of file connectivitysettingsview.cpp.

◆ getWindowType()

QString ConnectivitySettingsView::getWindowType ( )

Get the current window type.

Returns
The current window type.

Definition at line 142 of file connectivitysettingsview.cpp.

◆ loadSettings()

void ConnectivitySettingsView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 195 of file connectivitysettingsview.cpp.

◆ numberTrialsChanged

void DISPLIB::ConnectivitySettingsView::numberTrialsChanged ( int  iNumberTrials)
signal

Emit signal whenever the number of trials changed.

Parameters
[in]iNumberTrialsThe new number of trials.

◆ onFrequencyBandChanged()

void ConnectivitySettingsView::onFrequencyBandChanged ( )
protected

Slot called when the frequency band changed.

Definition at line 276 of file connectivitysettingsview.cpp.

◆ onMetricChanged()

void ConnectivitySettingsView::onMetricChanged ( const QString &  sMetric)
protected

Slot called when the metric changed.

Parameters
[in]sMetricThe new metric.

Definition at line 238 of file connectivitysettingsview.cpp.

◆ onNumberTrialsChanged()

void ConnectivitySettingsView::onNumberTrialsChanged ( )
protected

Slot called when the number of trials changed.

Definition at line 254 of file connectivitysettingsview.cpp.

◆ onTriggerTypeChanged()

void ConnectivitySettingsView::onTriggerTypeChanged ( const QString &  sTriggerType)
protected

Slot called when the trigger type changed.

Parameters
[in]sTriggerTypeThe new trigger type.

Definition at line 268 of file connectivitysettingsview.cpp.

◆ onWindowTypeChanged()

void ConnectivitySettingsView::onWindowTypeChanged ( const QString &  sWindowType)
protected

Slot called when the window type changed.

Parameters
[in]sWindowTypeThe new window type.

Definition at line 246 of file connectivitysettingsview.cpp.

◆ saveSettings()

void ConnectivitySettingsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 177 of file connectivitysettingsview.cpp.

◆ setNumberTrials()

void ConnectivitySettingsView::setNumberTrials ( int  iNumberTrials)

Sets the new number of trials.

Parameters
[in]iNumberTrialsThe new number of trials.

Definition at line 128 of file connectivitysettingsview.cpp.

◆ setTriggerTypes()

void ConnectivitySettingsView::setTriggerTypes ( const QStringList &  lTriggerTypes)

Destroys the ConnectivitySettingsView.

Parameters
[in]lTriggerTypesThe new trigger types.

Definition at line 117 of file connectivitysettingsview.cpp.

◆ triggerTypeChanged

void DISPLIB::ConnectivitySettingsView::triggerTypeChanged ( const QString &  sTriggerType)
signal

Emit signal whenever the trigger type changed.

Parameters
[in]sTriggerTypeThe new trigger type.

◆ updateGuiMode()

void ConnectivitySettingsView::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 214 of file connectivitysettingsview.cpp.

◆ updateProcessingMode()

void ConnectivitySettingsView::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 226 of file connectivitysettingsview.cpp.

◆ windowTypeChanged

void DISPLIB::ConnectivitySettingsView::windowTypeChanged ( const QString &  windowType)
signal

Emit signal whenever the window type changed.

Parameters
[in]windowTypeThe new window type.

Member Data Documentation

◆ m_iNumberTrials

int DISPLIB::ConnectivitySettingsView::m_iNumberTrials
protected

The number of trials are stored to check whether the number of trials actually changed.

Definition at line 240 of file connectivitysettingsview.h.

◆ m_sSettingsPath

QString DISPLIB::ConnectivitySettingsView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 239 of file connectivitysettingsview.h.


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