v2.0.0
Loading...
Searching...
No Matches
averagingsettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
35
36#ifndef AVERAGINGSETTINGSVIEW_H
37#define AVERAGINGSETTINGSVIEW_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../disp_global.h"
44#include "abstractview.h"
45
46#include <fiff/fiff_ch_info.h>
47
48//=============================================================================================================
49// QT INCLUDES
50//=============================================================================================================
51
52#include <QPointer>
53#include <QMap>
54
55//=============================================================================================================
56// FORWARD DECLARATIONS
57//=============================================================================================================
58
59namespace Ui {
60 class AverageSettingsViewWidget;
61}
62
63namespace FIFFLIB {
64 class FiffEvokedSet;
65 class FiffChInfo;
66}
67
68//=============================================================================================================
69// DEFINE NAMESPACE DISPLIB
70//=============================================================================================================
71
72namespace DISPLIB
73{
74
75//=============================================================================================================
76// DISPLIB FORWARD DECLARATIONS
77//=============================================================================================================
78
85{
86 Q_OBJECT
87
88public:
89 typedef QSharedPointer<AveragingSettingsView> SPtr;
90 typedef QSharedPointer<AveragingSettingsView> ConstSPtr;
91
92 explicit AveragingSettingsView(const QString& sSettingsPath = "",
93 const QMap<QString, int>& mapStimChsIndexNames = QMap<QString, int>(),
94 QWidget *parent = Q_NULLPTR);
95
96 //=========================================================================================================
101
102 void setStimChannels(const QMap<QString, int> &mapStimChsIndexNames);
103
104 QString getCurrentStimCh();
105
107
108 int getNumAverages();
109
111
113
114 int getStimChannelIdx();
115
116 int getPreStimMSeconds();
117
119
121
122 void setDetectedEpochs(const FIFFLIB::FiffEvokedSet& evokedSet);
123
125
127
128 //=========================================================================================================
132 void saveSettings();
133
134 //=========================================================================================================
138 void loadSettings();
139
140 //=========================================================================================================
146 void updateGuiMode(GuiMode mode);
147
148 //=========================================================================================================
155
156 //=========================================================================================================
160 void clearView();
161
162protected:
163 //=========================================================================================================
167 void redrawGUI();
168
169 void onChangePreStim();
170 void onChangePostStim();
172 void onChangeBaselineTo();
173 void onChangeNumAverages();
174 void onChangeStimChannel();
175 void onChangeGroupSelect(int iIndex);
176
177 Ui::AverageSettingsViewWidget* m_pUi;
178
180
181 QMap<QString,int> m_mapStimChsIndexNames;
182
189
190signals:
191 void changePreStim(qint32 value);
192 void changePostStim(qint32 value);
193 void changeBaselineFrom(qint32 value);
194 void changeBaselineTo(qint32 value);
195 void changeNumAverages(qint32 value);
196 void changeStimChannel(const QString& sStimName);
197 void changeBaselineActive(bool state);
198 void resetAverage(bool state);
199 void changeAverageMode(qint32 index);
200 void calculateAverage(bool state);
201 void changeDropActive(bool state);
202 void setAutoCompute(bool state);
203};
204} // NAMESPACE
205
206#endif // AVERAGINGSETTINGSVIEW_H
Declaration of the AbstractView Class.
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
FiffChInfo class declaration.
FIFF file I/O and data structures (raw, epochs, evoked, covariance, forward).
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)
Channel info descriptor.