v2.0.0
Loading...
Searching...
No Matches
fiffrawviewsettings.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef FIFFRAWVIEWSETTINGS_H
24#define FIFFRAWVIEWSETTINGS_H
25
26//=============================================================================================================
27// INCLUDES
28//=============================================================================================================
29
30#include "../disp_global.h"
31#include "abstractview.h"
32
33//=============================================================================================================
34// QT INCLUDES
35//=============================================================================================================
36
37#include <QStringList>
38
39#include <memory>
40
41//=============================================================================================================
42// EIGEN INCLUDES
43//=============================================================================================================
44
45//=============================================================================================================
46// FORWARD DECLARATIONS
47//=============================================================================================================
48
49namespace Ui
50{
51class FiffRawViewSettingsWidget;
52}
53
54//=============================================================================================================
55// DEFINE NAMESPACE DISPLIB
56//=============================================================================================================
57
58namespace DISPLIB
59{
60
61//=============================================================================================================
62// DISPLIB FORWARD DECLARATIONS
63//=============================================================================================================
64
65//=============================================================================================================
75{
76 Q_OBJECT
77
78public:
79 typedef QSharedPointer<FiffRawViewSettings> SPtr;
80 typedef QSharedPointer<const FiffRawViewSettings> ConstSPtr;
81
82 //=========================================================================================================
90 FiffRawViewSettings(const QString& sSettingsPath = "",
91 QWidget* parent = 0,
92 Qt::WindowFlags f = Qt::Widget);
93
94 //=========================================================================================================
99
100 //=========================================================================================================
107 void setWidgetList(const QStringList& lVisibleWidgets = QStringList());
108
109 //=========================================================================================================
115 void setWindowSize(int windowSize);
116
117 //=========================================================================================================
123 void setZoom(double zoomFactor);
124
125 //=========================================================================================================
132
133 //=========================================================================================================
139 void setDistanceTimeSpacer(int value);
140
141 //=========================================================================================================
147 void setBackgroundColor(const QColor& backgroundColor);
148
149 //=========================================================================================================
155 void setSignalColor(const QColor& signalColor);
156
157 //=========================================================================================================
163 const QColor& getSignalColor();
164
165 //=========================================================================================================
171 const QColor& getBackgroundColor();
172
173 //=========================================================================================================
179 double getZoom();
180
181 //=========================================================================================================
187 int getWindowSize();
188
189 //=========================================================================================================
193 void saveSettings();
194
195 //=========================================================================================================
199 void loadSettings();
200
201 //=========================================================================================================
205 void clearView();
206
207protected:
208 //=========================================================================================================
214 void updateGuiMode(GuiMode mode);
215
216 //=========================================================================================================
223
224 //=========================================================================================================
230 void onTimeWindowChanged(int value);
231
232 //=========================================================================================================
238 void onZoomChanged(double value);
239
240 //=========================================================================================================
246 void onDistanceTimeSpacerChanged(qint32 value);
247
248 //=========================================================================================================
253
254 //=========================================================================================================
258 void onMakeScreenshot();
259
260 std::unique_ptr<Ui::FiffRawViewSettingsWidget> m_pUi;
261
265
266signals:
267 //=========================================================================================================
271 void timeWindowChanged(int value);
272
273 //=========================================================================================================
277 void zoomChanged(double value);
278
279 //=========================================================================================================
284
285 //=========================================================================================================
289 void signalColorChanged(const QColor& signalColor);
290
291 //=========================================================================================================
295 void backgroundColorChanged(const QColor& backgroundColor);
296
297 //=========================================================================================================
303 void makeScreenshot(const QString& imageType);
304};
305} // NAMESPACE
306
307#endif // FIFFRAWVIEWSETTINGS_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
std::unique_ptr< Ui::FiffRawViewSettingsWidget > m_pUi
void updateProcessingMode(ProcessingMode mode)
void backgroundColorChanged(const QColor &backgroundColor)
void makeScreenshot(const QString &imageType)
void setBackgroundColor(const QColor &backgroundColor)
FiffRawViewSettings(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void distanceTimeSpacerChanged(int value)
void timeWindowChanged(int value)
void setSignalColor(const QColor &signalColor)
void setWidgetList(const QStringList &lVisibleWidgets=QStringList())
void onDistanceTimeSpacerChanged(qint32 value)
QSharedPointer< const FiffRawViewSettings > ConstSPtr
QSharedPointer< FiffRawViewSettings > SPtr
void zoomChanged(double value)
void signalColorChanged(const QColor &signalColor)