MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
fiffrawviewsettings.h
Go to the documentation of this file.
1//=============================================================================================================
35#ifndef FIFFRAWVIEWSETTINGS_H
36#define FIFFRAWVIEWSETTINGS_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../disp_global.h"
43#include "abstractview.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QStringList>
50
51//=============================================================================================================
52// EIGEN INCLUDES
53//=============================================================================================================
54
55//=============================================================================================================
56// FORWARD DECLARATIONS
57//=============================================================================================================
58
59namespace Ui {
60 class FiffRawViewSettingsWidget;
61}
62
63//=============================================================================================================
64// DEFINE NAMESPACE DISPLIB
65//=============================================================================================================
66
67namespace DISPLIB
68{
69
70//=============================================================================================================
71// DISPLIB FORWARD DECLARATIONS
72//=============================================================================================================
73
74//=============================================================================================================
81{
82 Q_OBJECT
83
84public:
85 typedef QSharedPointer<FiffRawViewSettings> SPtr;
86 typedef QSharedPointer<const FiffRawViewSettings> ConstSPtr;
88 //=========================================================================================================
94 FiffRawViewSettings(const QString& sSettingsPath = "",
95 QWidget *parent = 0,
96 Qt::WindowFlags f = Qt::Widget);
97
98 //=========================================================================================================
103
104 //=========================================================================================================
111 void setWidgetList(const QStringList &lVisibleWidgets = QStringList());
112
113 //=========================================================================================================
119 void setWindowSize(int windowSize);
120
121 //=========================================================================================================
127 void setZoom(double zoomFactor);
128
129 //=========================================================================================================
135 int getDistanceTimeSpacer();
136
137 //=========================================================================================================
143 void setDistanceTimeSpacer(int value);
144
145 //=========================================================================================================
151 void setBackgroundColor(const QColor& backgroundColor);
152
153 //=========================================================================================================
159 void setSignalColor(const QColor& signalColor);
160
161 //=========================================================================================================
167 const QColor& getSignalColor();
168
169 //=========================================================================================================
175 const QColor& getBackgroundColor();
176
177 //=========================================================================================================
183 double getZoom();
184
185 //=========================================================================================================
191 int getWindowSize();
192
193 //=========================================================================================================
197 void saveSettings();
198
199 //=========================================================================================================
203 void loadSettings();
204
205 //=========================================================================================================
209 void clearView();
210
211protected:
212 //=========================================================================================================
218 void updateGuiMode(GuiMode mode);
219
220 //=========================================================================================================
226 void updateProcessingMode(ProcessingMode mode);
227
228 //=========================================================================================================
232 void onTimeWindowChanged(int value);
233
234 //=========================================================================================================
238 void onZoomChanged(double value);
239
240 //=========================================================================================================
246 void onDistanceTimeSpacerChanged(qint32 value);
247
248 //=========================================================================================================
252 void onViewColorButtonClicked();
253
254 //=========================================================================================================
258 void onMakeScreenshot();
259
260 Ui::FiffRawViewSettingsWidget* m_pUi;
261
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
#define DISPSHARED_EXPORT
Definition disp_global.h:55
The AbstractView class provides the base calss for all Disp viewers.
The FiffRawViewSettings class provides a view to select different channel data view dependent setting...
void backgroundColorChanged(const QColor &backgroundColor)
void makeScreenshot(const QString &imageType)
void distanceTimeSpacerChanged(int value)
void timeWindowChanged(int value)
QSharedPointer< const FiffRawViewSettings > ConstSPtr
QSharedPointer< FiffRawViewSettings > SPtr
void zoomChanged(double value)
void signalColorChanged(const QColor &signalColor)
AbstractView class declaration.