36 #ifndef AVERAGINGSETTINGSVIEW_H
37 #define AVERAGINGSETTINGSVIEW_H
43 #include "../disp_global.h"
60 class AverageSettingsViewWidget;
89 typedef QSharedPointer<AveragingSettingsView>
SPtr;
90 typedef QSharedPointer<AveragingSettingsView>
ConstSPtr;
93 const QMap<QString, int>& mapStimChsIndexNames = QMap<QString, int>(),
94 QWidget *parent = Q_NULLPTR);
102 void setStimChannels(
const QMap<QString, int> &mapStimChsIndexNames);
104 QString getCurrentStimCh();
106 bool getDoBaselineCorrection();
108 int getNumAverages();
110 int getBaselineFromSeconds();
112 int getBaselineToSeconds();
114 int getStimChannelIdx();
116 int getPreStimMSeconds();
118 int getPostStimMSeconds();
120 QString getCurrentSelectGroup();
124 bool getAutoComputeStatus();
126 void clearSelectionGroup();
146 void updateGuiMode(GuiMode mode);
154 void updateProcessingMode(ProcessingMode mode);
169 void onChangePreStim();
170 void onChangePostStim();
171 void onChangeBaselineFrom();
172 void onChangeBaselineTo();
173 void onChangeNumAverages();
174 void onChangeStimChannel();
175 void onChangeGroupSelect(
int iIndex);
177 Ui::AverageSettingsViewWidget*
m_pUi;
179 QString m_sCurrentStimChan;
181 QMap<QString,int> m_mapStimChsIndexNames;
184 int m_iPreStimSeconds;
185 int m_iPostStimSeconds;
186 int m_iBaselineFromSeconds;
187 int m_iBaselineToSeconds;
188 bool m_bDoBaselineCorrection;
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);
206 #endif // AVERAGINGSETTINGSVIEW_H