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 class FiffRawViewSettingsWidget;
49}
50
51//=============================================================================================================
52// DEFINE NAMESPACE DISPLIB
53//=============================================================================================================
54
55namespace DISPLIB
56{
57
58//=============================================================================================================
59// DISPLIB FORWARD DECLARATIONS
60//=============================================================================================================
61
62//=============================================================================================================
72{
73 Q_OBJECT
74
75public:
76 typedef QSharedPointer<FiffRawViewSettings> SPtr;
77 typedef QSharedPointer<const FiffRawViewSettings> ConstSPtr;
78
79 //=========================================================================================================
85 FiffRawViewSettings(const QString& sSettingsPath = "",
86 QWidget *parent = 0,
87 Qt::WindowFlags f = Qt::Widget);
88
89 //=========================================================================================================
94
95 //=========================================================================================================
102 void setWidgetList(const QStringList &lVisibleWidgets = QStringList());
103
104 //=========================================================================================================
110 void setWindowSize(int windowSize);
111
112 //=========================================================================================================
118 void setZoom(double zoomFactor);
119
120 //=========================================================================================================
127
128 //=========================================================================================================
134 void setDistanceTimeSpacer(int value);
135
136 //=========================================================================================================
142 void setBackgroundColor(const QColor& backgroundColor);
143
144 //=========================================================================================================
150 void setSignalColor(const QColor& signalColor);
151
152 //=========================================================================================================
158 const QColor& getSignalColor();
159
160 //=========================================================================================================
166 const QColor& getBackgroundColor();
167
168 //=========================================================================================================
174 double getZoom();
175
176 //=========================================================================================================
182 int getWindowSize();
183
184 //=========================================================================================================
188 void saveSettings();
189
190 //=========================================================================================================
194 void loadSettings();
195
196 //=========================================================================================================
200 void clearView();
201
202protected:
203 //=========================================================================================================
209 void updateGuiMode(GuiMode mode);
210
211 //=========================================================================================================
218
219 //=========================================================================================================
223 void onTimeWindowChanged(int value);
224
225 //=========================================================================================================
229 void onZoomChanged(double value);
230
231 //=========================================================================================================
237 void onDistanceTimeSpacerChanged(qint32 value);
238
239 //=========================================================================================================
244
245 //=========================================================================================================
249 void onMakeScreenshot();
250
251 Ui::FiffRawViewSettingsWidget* m_pUi;
252
256
257signals:
258 //=========================================================================================================
262 void timeWindowChanged(int value);
263
264 //=========================================================================================================
268 void zoomChanged(double value);
269
270 //=========================================================================================================
275
276 //=========================================================================================================
280 void signalColorChanged(const QColor& signalColor);
281
282 //=========================================================================================================
286 void backgroundColorChanged(const QColor& backgroundColor);
287
288 //=========================================================================================================
294 void makeScreenshot(const QString& imageType);
295};
296} // NAMESPACE
297
298#endif // FIFFRAWVIEWSETTINGS_H
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
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)