MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The ConnectivitySettingsView class provides a view to control settings for estiamting functional connectivity. More...
#include <connectivitysettingsview.h>
Public Types | |
typedef QSharedPointer< ConnectivitySettingsView > | SPtr |
typedef QSharedPointer< const ConnectivitySettingsView > | 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 | 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 |
The ConnectivitySettingsView class provides a view to control settings for estiamting functional connectivity.
DECLARE CLASS ConnectivitySettingsView
Definition at line 78 of file connectivitysettingsview.h.
typedef QSharedPointer<const ConnectivitySettingsView> DISPLIB::ConnectivitySettingsView::ConstSPtr |
Const shared pointer type for ConnectivitySettingsView.
Definition at line 84 of file connectivitysettingsview.h.
typedef QSharedPointer<ConnectivitySettingsView> DISPLIB::ConnectivitySettingsView::SPtr |
Shared pointer type for ConnectivitySettingsView.
Definition at line 83 of file connectivitysettingsview.h.
ConnectivitySettingsView::ConnectivitySettingsView | ( | const QString & | sSettingsPath = "" , |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = Qt::Widget |
||
) |
Constructs a ConnectivitySettingsView which is a child of parent.
[in] | parent | parent of widget. |
Definition at line 63 of file connectivitysettingsview.cpp.
ConnectivitySettingsView::~ConnectivitySettingsView | ( | ) |
Destroys the ConnectivitySettingsView.
Definition at line 108 of file connectivitysettingsview.cpp.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 286 of file connectivitysettingsview.cpp.
|
signal |
Emit signal whenever the connectivity metric changed.
[in] | sMetric | The new metric. |
|
signal |
Emit signal whenever the frequency band changed.
[in] | fFreqLow | The new lower frequency band. |
[in] | fFreqHigh | The new higher frequency band. |
QString ConnectivitySettingsView::getConnectivityMetric | ( | ) |
Get the current connectivity metric.
Definition at line 135 of file connectivitysettingsview.cpp.
double ConnectivitySettingsView::getLowerFreq | ( | ) |
Get the current lower frequency range.
Definition at line 163 of file connectivitysettingsview.cpp.
int ConnectivitySettingsView::getNumberTrials | ( | ) |
Get the current number of trials.
Definition at line 149 of file connectivitysettingsview.cpp.
QString ConnectivitySettingsView::getTriggerType | ( | ) |
Get the current trigger type.
Definition at line 156 of file connectivitysettingsview.cpp.
double ConnectivitySettingsView::getUpperFreq | ( | ) |
Get the current upper frequency range.
Definition at line 170 of file connectivitysettingsview.cpp.
QString ConnectivitySettingsView::getWindowType | ( | ) |
Get the current window type.
Definition at line 142 of file connectivitysettingsview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 195 of file connectivitysettingsview.cpp.
|
signal |
Emit signal whenever the number of trials changed.
[in] | iNumberTrials | The new number of trials. |
|
protected |
Slot called when the frequency band changed.
Definition at line 276 of file connectivitysettingsview.cpp.
|
protected |
Slot called when the metric changed.
[in] | sMetric | The new metric. |
Definition at line 238 of file connectivitysettingsview.cpp.
|
protected |
Slot called when the number of trials changed.
Definition at line 254 of file connectivitysettingsview.cpp.
|
protected |
Slot called when the trigger type changed.
[in] | sTriggerType | The new trigger type. |
Definition at line 268 of file connectivitysettingsview.cpp.
|
protected |
Slot called when the window type changed.
[in] | sWindowType | The new window type. |
Definition at line 246 of file connectivitysettingsview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 177 of file connectivitysettingsview.cpp.
void ConnectivitySettingsView::setNumberTrials | ( | int | iNumberTrials | ) |
Sets the new number of trials.
[in] | iNumberTrials | The new number of trials. |
Definition at line 128 of file connectivitysettingsview.cpp.
void ConnectivitySettingsView::setTriggerTypes | ( | const QStringList & | lTriggerTypes | ) |
Destroys the ConnectivitySettingsView.
[in] | lTriggerTypes | The new trigger types. |
Definition at line 117 of file connectivitysettingsview.cpp.
|
signal |
Emit signal whenever the trigger type changed.
[in] | sTriggerType | The new trigger type. |
|
protectedvirtual |
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 214 of file connectivitysettingsview.cpp.
|
protectedvirtual |
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 226 of file connectivitysettingsview.cpp.
|
signal |
Emit signal whenever the window type changed.
[in] | windowType | The new window type. |
|
protected |
The number of trials are stored to check whether the number of trials actually changed.
Definition at line 240 of file connectivitysettingsview.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 239 of file connectivitysettingsview.h.