v2.0.0
Loading...
Searching...
No Matches
averagingsettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef AVERAGINGSETTINGSVIEW_H
24#define AVERAGINGSETTINGSVIEW_H
25
26//=============================================================================================================
27// INCLUDES
28//=============================================================================================================
29
30#include "../disp_global.h"
31#include "abstractview.h"
32
33#include <fiff/fiff_ch_info.h>
34
35//=============================================================================================================
36// QT INCLUDES
37//=============================================================================================================
38
39#include <QPointer>
40#include <QMap>
41
42//=============================================================================================================
43// FORWARD DECLARATIONS
44//=============================================================================================================
45
46namespace Ui {
47 class AverageSettingsViewWidget;
48}
49
50namespace FIFFLIB {
51 class FiffEvokedSet;
52 class FiffChInfo;
53}
54
55//=============================================================================================================
56// DEFINE NAMESPACE DISPLIB
57//=============================================================================================================
58
59namespace DISPLIB
60{
61
62//=============================================================================================================
63// DISPLIB FORWARD DECLARATIONS
64//=============================================================================================================
65
66//=============================================================================================================
76{
77 Q_OBJECT
78
79public:
80 typedef QSharedPointer<AveragingSettingsView> SPtr;
81 typedef QSharedPointer<AveragingSettingsView> ConstSPtr;
82
83 explicit AveragingSettingsView(const QString& sSettingsPath = "",
84 const QMap<QString, int>& mapStimChsIndexNames = QMap<QString, int>(),
85 QWidget *parent = Q_NULLPTR);
86
87 //=========================================================================================================
92
93 void setStimChannels(const QMap<QString, int> &mapStimChsIndexNames);
94
95 QString getCurrentStimCh();
96
98
99 int getNumAverages();
100
102
104
105 int getStimChannelIdx();
106
107 int getPreStimMSeconds();
108
110
111 QString getCurrentSelectGroup();
112
113 void setDetectedEpochs(const FIFFLIB::FiffEvokedSet& evokedSet);
114
116
117 void clearSelectionGroup();
118
119 //=========================================================================================================
123 void saveSettings();
124
125 //=========================================================================================================
129 void loadSettings();
130
131 //=========================================================================================================
137 void updateGuiMode(GuiMode mode);
138
139 //=========================================================================================================
146
147 //=========================================================================================================
151 void clearView();
152
153protected:
154 //=========================================================================================================
158 void redrawGUI();
159
160 void onChangePreStim();
161 void onChangePostStim();
163 void onChangeBaselineTo();
164 void onChangeNumAverages();
165 void onChangeStimChannel();
166 void onChangeGroupSelect(int iIndex);
167
168 Ui::AverageSettingsViewWidget* m_pUi;
169
171
172 QMap<QString,int> m_mapStimChsIndexNames;
173
180
181signals:
182 void changePreStim(qint32 value);
183 void changePostStim(qint32 value);
184 void changeBaselineFrom(qint32 value);
185 void changeBaselineTo(qint32 value);
186 void changeNumAverages(qint32 value);
187 void changeStimChannel(const QString& sStimName);
188 void changeBaselineActive(bool state);
189 void resetAverage(bool state);
190 void changeAverageMode(qint32 index);
191 void calculateAverage(bool state);
192 void changeDropActive(bool state);
193 void setAutoCompute(bool state);
194};
195} // NAMESPACE
196
197#endif // AVERAGINGSETTINGSVIEW_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
FIFF channel descriptor record (FIFF_CH_INFO): per-channel logical/scanner numbers,...
FIFF file I/O, in-memory data structures and high-level readers/writers.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void changeDropActive(bool state)
QMap< QString, int > m_mapStimChsIndexNames
void changePreStim(qint32 value)
QSharedPointer< AveragingSettingsView > SPtr
void changeAverageMode(qint32 index)
void changeBaselineFrom(qint32 value)
Ui::AverageSettingsViewWidget * m_pUi
void changeBaselineTo(qint32 value)
void calculateAverage(bool state)
void setDetectedEpochs(const FIFFLIB::FiffEvokedSet &evokedSet)
QSharedPointer< AveragingSettingsView > ConstSPtr
void changePostStim(qint32 value)
void changeNumAverages(qint32 value)
void setAutoCompute(bool state)
void changeStimChannel(const QString &sStimName)
AveragingSettingsView(const QString &sSettingsPath="", const QMap< QString, int > &mapStimChsIndexNames=QMap< QString, int >(), QWidget *parent=nullptr)
void setStimChannels(const QMap< QString, int > &mapStimChsIndexNames)
void onChangeGroupSelect(int iIndex)
void changeBaselineActive(bool state)
void updateProcessingMode(ProcessingMode mode)
Per-channel FIFF descriptor: identifiers, kind, calibration, coil type, channel-frame coil position a...