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//=============================================================================================================
40// EIGEN INCLUDES
41//=============================================================================================================
42
43//=============================================================================================================
44// FORWARD DECLARATIONS
45//=============================================================================================================
46
47namespace Ui
48{
49class FiffRawViewSettingsWidget;
50}
51
52//=============================================================================================================
53// DEFINE NAMESPACE DISPLIB
54//=============================================================================================================
55
56namespace DISPLIB
57{
58
59//=============================================================================================================
60// DISPLIB FORWARD DECLARATIONS
61//=============================================================================================================
62
63//=============================================================================================================
73{
74 Q_OBJECT
75
76public:
77 typedef QSharedPointer<FiffRawViewSettings> SPtr;
78 typedef QSharedPointer<const FiffRawViewSettings> ConstSPtr;
79
80 //=========================================================================================================
88 FiffRawViewSettings(const QString& sSettingsPath = "",
89 QWidget* parent = 0,
90 Qt::WindowFlags f = Qt::Widget);
91
92 //=========================================================================================================
97
98 //=========================================================================================================
105 void setWidgetList(const QStringList& lVisibleWidgets = QStringList());
106
107 //=========================================================================================================
113 void setWindowSize(int windowSize);
114
115 //=========================================================================================================
121 void setZoom(double zoomFactor);
122
123 //=========================================================================================================
130
131 //=========================================================================================================
137 void setDistanceTimeSpacer(int value);
138
139 //=========================================================================================================
145 void setBackgroundColor(const QColor& backgroundColor);
146
147 //=========================================================================================================
153 void setSignalColor(const QColor& signalColor);
154
155 //=========================================================================================================
161 const QColor& getSignalColor();
162
163 //=========================================================================================================
169 const QColor& getBackgroundColor();
170
171 //=========================================================================================================
177 double getZoom();
178
179 //=========================================================================================================
185 int getWindowSize();
186
187 //=========================================================================================================
191 void saveSettings();
192
193 //=========================================================================================================
197 void loadSettings();
198
199 //=========================================================================================================
203 void clearView();
204
205protected:
206 //=========================================================================================================
212 void updateGuiMode(GuiMode mode);
213
214 //=========================================================================================================
221
222 //=========================================================================================================
228 void onTimeWindowChanged(int value);
229
230 //=========================================================================================================
236 void onZoomChanged(double value);
237
238 //=========================================================================================================
244 void onDistanceTimeSpacerChanged(qint32 value);
245
246 //=========================================================================================================
251
252 //=========================================================================================================
256 void onMakeScreenshot();
257
258 Ui::FiffRawViewSettingsWidget* m_pUi;
259
263
264signals:
265 //=========================================================================================================
269 void timeWindowChanged(int value);
270
271 //=========================================================================================================
275 void zoomChanged(double value);
276
277 //=========================================================================================================
282
283 //=========================================================================================================
287 void signalColorChanged(const QColor& signalColor);
288
289 //=========================================================================================================
293 void backgroundColorChanged(const QColor& backgroundColor);
294
295 //=========================================================================================================
301 void makeScreenshot(const QString& imageType);
302};
303} // NAMESPACE
304
305#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)
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)
Ui::FiffRawViewSettingsWidget * m_pUi
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)