MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The FiffRawViewSettings class provides a view to select different channel data view dependent settings. More...
#include <fiffrawviewsettings.h>
Public Types | |
typedef QSharedPointer< FiffRawViewSettings > | SPtr |
typedef QSharedPointer< const FiffRawViewSettings > | 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 | timeWindowChanged (int value) |
void | zoomChanged (double value) |
void | distanceTimeSpacerChanged (int value) |
void | signalColorChanged (const QColor &signalColor) |
void | backgroundColorChanged (const QColor &backgroundColor) |
void | makeScreenshot (const QString &imageType) |
Signals inherited from DISPLIB::AbstractView | |
void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
Public Member Functions | |
FiffRawViewSettings (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
~FiffRawViewSettings () | |
void | setWidgetList (const QStringList &lVisibleWidgets=QStringList()) |
void | setWindowSize (int windowSize) |
void | setZoom (double zoomFactor) |
int | getDistanceTimeSpacer () |
void | setDistanceTimeSpacer (int value) |
void | setBackgroundColor (const QColor &backgroundColor) |
void | setSignalColor (const QColor &signalColor) |
const QColor & | getSignalColor () |
const QColor & | getBackgroundColor () |
double | getZoom () |
int | getWindowSize () |
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 | onTimeWindowChanged (int value) |
void | onZoomChanged (double value) |
void | onDistanceTimeSpacerChanged (qint32 value) |
void | onViewColorButtonClicked () |
void | onMakeScreenshot () |
Protected Attributes | |
Ui::FiffRawViewSettingsWidget * | m_pUi |
QColor | m_colCurrentSignalColor |
QColor | m_colCurrentBackgroundColor |
QString | m_sSettingsPath |
Protected Attributes inherited from DISPLIB::AbstractView | |
bool | m_bResearchModeIsActive |
bool | m_bOfflineModeIsActive |
QString | m_sSettingsPath |
The FiffRawViewSettings class provides a view to select different channel data view dependent settings.
DECLARE CLASS FiffRawViewSettings
Definition at line 80 of file fiffrawviewsettings.h.
typedef QSharedPointer<const FiffRawViewSettings> DISPLIB::FiffRawViewSettings::ConstSPtr |
Const shared pointer type for FiffRawViewSettings.
Definition at line 86 of file fiffrawviewsettings.h.
typedef QSharedPointer<FiffRawViewSettings> DISPLIB::FiffRawViewSettings::SPtr |
Shared pointer type for FiffRawViewSettings.
Definition at line 85 of file fiffrawviewsettings.h.
FiffRawViewSettings::FiffRawViewSettings | ( | const QString & | sSettingsPath = "" , |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = Qt::Widget |
||
) |
Constructs a FiffRawViewSettings which is a child of parent.
[in] | parent | parent of widget. |
Definition at line 65 of file fiffrawviewsettings.cpp.
FiffRawViewSettings::~FiffRawViewSettings | ( | ) |
Destroys the FiffRawViewSettings.
Definition at line 84 of file fiffrawviewsettings.cpp.
|
signal |
Emit this signal whenever the user changed the background color.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 380 of file fiffrawviewsettings.cpp.
|
signal |
Emit this signal whenever the user changed the time spacer distance.
const QColor & FiffRawViewSettings::getBackgroundColor | ( | ) |
Returns the current background color.
Definition at line 206 of file fiffrawviewsettings.cpp.
int FiffRawViewSettings::getDistanceTimeSpacer | ( | ) |
Get current distance time spacer.
Definition at line 167 of file fiffrawviewsettings.cpp.
const QColor & FiffRawViewSettings::getSignalColor | ( | ) |
Returns the current signal color.
Definition at line 199 of file fiffrawviewsettings.cpp.
int FiffRawViewSettings::getWindowSize | ( | ) |
Returns the current window size.
Definition at line 220 of file fiffrawviewsettings.cpp.
double FiffRawViewSettings::getZoom | ( | ) |
Returns the current zoom.
Definition at line 213 of file fiffrawviewsettings.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 244 of file fiffrawviewsettings.cpp.
|
signal |
Emit this signal whenever the user wants to make a screenshot.
[out] | imageType | The current image type: png, svg. |
|
protected |
Slot called when time spacer distance changes
[in] | value | for time spacer distance. |
Definition at line 292 of file fiffrawviewsettings.cpp.
|
protected |
Call this slot whenever you want to make a screenshot of the butterfly or layout view.
Definition at line 373 of file fiffrawviewsettings.cpp.
|
protected |
Slot called when time window size changes
Definition at line 355 of file fiffrawviewsettings.cpp.
|
protected |
Slot called when the user changes the signal or background color.
Definition at line 319 of file fiffrawviewsettings.cpp.
|
protected |
Slot called when zoome changes
Definition at line 364 of file fiffrawviewsettings.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 227 of file fiffrawviewsettings.cpp.
void FiffRawViewSettings::setBackgroundColor | ( | const QColor & | backgroundColor | ) |
Set current background color.
[in] | backgroundColor | The new background color. |
Definition at line 181 of file fiffrawviewsettings.cpp.
void FiffRawViewSettings::setDistanceTimeSpacer | ( | int | value | ) |
Set current distance time spacer combo box.
[in] | value | the new value of the combo box. |
Definition at line 174 of file fiffrawviewsettings.cpp.
void FiffRawViewSettings::setSignalColor | ( | const QColor & | signalColor | ) |
Set current signal color.
[in] | signalColor | The new signal color. |
Definition at line 190 of file fiffrawviewsettings.cpp.
void FiffRawViewSettings::setWidgetList | ( | const QStringList & | lVisibleWidgets = QStringList() | ) |
Init the view.
[in] | lVisibleWidgets | The widgets to be visible: numberChannels, windowSize, distanceSpacers,. backgroundcolor, signalColor, screenshot |
Definition at line 92 of file fiffrawviewsettings.cpp.
void FiffRawViewSettings::setWindowSize | ( | int | windowSize | ) |
Sets the values of the windowSize spin box
[in] | windowSize | new window size value. |
Definition at line 153 of file fiffrawviewsettings.cpp.
void FiffRawViewSettings::setZoom | ( | double | zoomFactor | ) |
Sets the values of the zoomFactor spin box
[in] | zoomFactor | new zoomFactor value. |
Definition at line 160 of file fiffrawviewsettings.cpp.
|
signal |
Emit this signal whenever the user changed the signal color.
|
signal |
Emit this signal whenever the user changes the window size.
|
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 268 of file fiffrawviewsettings.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 280 of file fiffrawviewsettings.cpp.
|
signal |
Emit this signal whenever the user changes the row height (zoom) of the channels.
|
protected |
Current color of the background.
Definition at line 263 of file fiffrawviewsettings.h.
|
protected |
Current color of the signal.
Definition at line 262 of file fiffrawviewsettings.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 264 of file fiffrawviewsettings.h.