Display-style settings panel for the FIFF raw browser (zoom, colours, distance, scope). 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 |
Display-style settings panel for the FIFF raw browser (zoom, colours, distance, scope).
Bundles the visible time window, signal / background / trigger colours and the distance-to-axis spinbox with an embedded ApplyToView so the user controls whether changes affect selected / visible / all channels.
Definition at line 71 of file fiffrawviewsettings.h.

| typedef QSharedPointer<const FiffRawViewSettings> DISPLIB::FiffRawViewSettings::ConstSPtr |
Const shared pointer type for FiffRawViewSettings.
Definition at line 77 of file fiffrawviewsettings.h.
| typedef QSharedPointer<FiffRawViewSettings> DISPLIB::FiffRawViewSettings::SPtr |
Shared pointer type for FiffRawViewSettings.
Definition at line 76 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 45 of file fiffrawviewsettings.cpp.
| FiffRawViewSettings::~FiffRawViewSettings | ( | ) |
Destroys the FiffRawViewSettings.
Definition at line 64 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 360 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 186 of file fiffrawviewsettings.cpp.
| int FiffRawViewSettings::getDistanceTimeSpacer | ( | ) |
Get current distance time spacer.
Definition at line 147 of file fiffrawviewsettings.cpp.
| const QColor & FiffRawViewSettings::getSignalColor | ( | ) |
Returns the current signal color.
Definition at line 179 of file fiffrawviewsettings.cpp.
| int FiffRawViewSettings::getWindowSize | ( | ) |
Returns the current window size.
Definition at line 200 of file fiffrawviewsettings.cpp.
| double FiffRawViewSettings::getZoom | ( | ) |
Returns the current zoom.
Definition at line 193 of file fiffrawviewsettings.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 224 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 272 of file fiffrawviewsettings.cpp.
|
protected |
Call this slot whenever you want to make a screenshot of the butterfly or layout view.
Definition at line 353 of file fiffrawviewsettings.cpp.
|
protected |
Slot called when time window size changes
Definition at line 335 of file fiffrawviewsettings.cpp.
|
protected |
Slot called when the user changes the signal or background color.
Definition at line 299 of file fiffrawviewsettings.cpp.
|
protected |
Slot called when zoome changes
Definition at line 344 of file fiffrawviewsettings.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 207 of file fiffrawviewsettings.cpp.
| void FiffRawViewSettings::setBackgroundColor | ( | const QColor & | backgroundColor | ) |
Set current background color.
| [in] | backgroundColor | The new background color. |
Definition at line 161 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 154 of file fiffrawviewsettings.cpp.
| void FiffRawViewSettings::setSignalColor | ( | const QColor & | signalColor | ) |
Set current signal color.
| [in] | signalColor | The new signal color. |
Definition at line 170 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 72 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 133 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 140 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 248 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 260 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 254 of file fiffrawviewsettings.h.
|
protected |
Current color of the signal.
Definition at line 253 of file fiffrawviewsettings.h.
|
protected |
Definition at line 251 of file fiffrawviewsettings.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 255 of file fiffrawviewsettings.h.