MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The SpectrumSettingsView class provides settings for the spectrum estimation. More...
#include <spectrumsettingsview.h>
Public Types | |
typedef QSharedPointer< SpectrumSettingsView > | SPtr |
typedef QSharedPointer< const SpectrumSettingsView > | 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 | settingsChanged () |
Signals inherited from DISPLIB::AbstractView | |
void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
Public Member Functions | |
SpectrumSettingsView (const QString &sSettingsPath="", QWidget *parent=Q_NULLPTR, Qt::WindowFlags f=Qt::Widget) | |
~SpectrumSettingsView () | |
void | updateValue (qint32 value) |
void | saveSettings () |
void | loadSettings () |
void | setBoundaries (float fSFreq, float fLowerBound, float fUpperBound) |
float | getLowerBound () |
float | getUpperBound () |
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) |
Protected Attributes | |
QPointer< QSlider > | m_pSliderLowerBound |
QPointer< QSlider > | m_pSliderUpperBound |
Protected Attributes inherited from DISPLIB::AbstractView | |
bool | m_bResearchModeIsActive |
bool | m_bOfflineModeIsActive |
QString | m_sSettingsPath |
The SpectrumSettingsView class provides settings for the spectrum estimation.
DECLARE CLASS SpectrumSettingsView
Definition at line 75 of file spectrumsettingsview.h.
typedef QSharedPointer<const SpectrumSettingsView> DISPLIB::SpectrumSettingsView::ConstSPtr |
Const shared pointer type for SpectrumSettingsView.
Definition at line 81 of file spectrumsettingsview.h.
typedef QSharedPointer<SpectrumSettingsView> DISPLIB::SpectrumSettingsView::SPtr |
Shared pointer type for SpectrumSettingsView.
Definition at line 80 of file spectrumsettingsview.h.
SpectrumSettingsView::SpectrumSettingsView | ( | const QString & | sSettingsPath = "" , |
QWidget * | parent = Q_NULLPTR , |
||
Qt::WindowFlags | f = Qt::Widget |
||
) |
Constructs a SpectrumSettingsView which is a child of parent.
[in] | parent | parent of widget. |
Definition at line 65 of file spectrumsettingsview.cpp.
SpectrumSettingsView::~SpectrumSettingsView | ( | ) |
Destroys the SpectrumSettingsView.
Definition at line 102 of file spectrumsettingsview.cpp.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 200 of file spectrumsettingsview.cpp.
float SpectrumSettingsView::getLowerBound | ( | ) |
Returns the lower bound
Definition at line 162 of file spectrumsettingsview.cpp.
float SpectrumSettingsView::getUpperBound | ( | ) |
Returns the upper bound
Definition at line 169 of file spectrumsettingsview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 135 of file spectrumsettingsview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 123 of file spectrumsettingsview.cpp.
void SpectrumSettingsView::setBoundaries | ( | float | fSFreq, |
float | fLowerBound, | ||
float | fUpperBound | ||
) |
Sets the sampling frequency as well as boundaries and configure the GUI elements accordingly
[in] | fSFreq | The sampling frequency. |
[in] | fLowerBound | The lower bound of the spectrum. |
[in] | fUpperBound | The upper bound of the spectrum. |
Definition at line 147 of file spectrumsettingsview.cpp.
|
signal |
Emitted whenever the settings changed and are ready to be retreived.
|
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 176 of file spectrumsettingsview.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 188 of file spectrumsettingsview.cpp.
void SpectrumSettingsView::updateValue | ( | qint32 | value | ) |
Update slider value
[in] | value | slider value. |
Definition at line 109 of file spectrumsettingsview.cpp.
|
protected |
Lower bound frequency.
Definition at line 170 of file spectrumsettingsview.h.
|
protected |
Upper bound frequency.
Definition at line 171 of file spectrumsettingsview.h.