v2.0.0
Loading...
Searching...
No Matches
artifactsettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef ARTIFACTSETTINGSVIEW_H
36#define ARTIFACTSETTINGSVIEW_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../disp_global.h"
43#include "abstractview.h"
44
45#include <fiff/fiff_ch_info.h>
46
47//=============================================================================================================
48// QT INCLUDES
49//=============================================================================================================
50
51#include <QPointer>
52#include <QMap>
53
54//=============================================================================================================
55// FORWARD DECLARATIONS
56//=============================================================================================================
57
58class QCheckBox;
59class QDoubleSpinBox;
60class QSpinBox;
61class QGridLayout;
62
63namespace Ui {
64 class AverageSettingsViewWidget;
65}
66
67namespace FIFFLIB {
68 class FiffEvokedSet;
69 class FiffChInfo;
70}
71
72//=============================================================================================================
73// DEFINE NAMESPACE DISPLIB
74//=============================================================================================================
75
76namespace DISPLIB
77{
78
79//=============================================================================================================
80// DISPLIB FORWARD DECLARATIONS
81//=============================================================================================================
82
89{
90 Q_OBJECT
91
92public:
93 typedef QSharedPointer<ArtifactSettingsView> SPtr;
94 typedef QSharedPointer<ArtifactSettingsView> ConstSPtr;
95
96 explicit ArtifactSettingsView(const QString& sSettingsPath = "",
97 const QList<FIFFLIB::FiffChInfo>& fiffChInfoList = QList<FIFFLIB::FiffChInfo>(),
98 QWidget *parent = Q_NULLPTR);
99
100 //=========================================================================================================
105
106 void setChInfo(const QList<FIFFLIB::FiffChInfo>& fiffChInfoList);
107
108 QMap<QString,double> getThresholdMap();
109
110 void setThresholdMap(const QMap<QString,double>& mapThresholds);
111
113
114 //=========================================================================================================
118 void saveSettings();
119
120 //=========================================================================================================
124 void loadSettings();
125
126 //=========================================================================================================
130 void clearView();
131
132protected:
133 //=========================================================================================================
139 void updateGuiMode(GuiMode mode);
140
141 //=========================================================================================================
148
149 //=========================================================================================================
153 void redrawGUI();
154
156
157 QMap<QString,QDoubleSpinBox*> m_mapChThresholdsDoubleSpinBoxes;
158 QMap<QString,QSpinBox*> m_mapChThresholdsSpinBoxes;
159
160 QMap<QString,double> m_mapThresholdsFirst;
161 QMap<QString,int> m_mapThresholdsSecond;
162 QMap<QString,double> m_mapThresholds;
163
164 QList<FIFFLIB::FiffChInfo> m_fiffChInfoList;
165
167
168 QPointer<QCheckBox> m_pArtifactRejectionCheckBox;
169
170signals:
171 void changeArtifactThreshold(const QMap<QString,double>& mapThresholds);
172};
173} // NAMESPACE
174
175#endif // ARTIFACTSETTINGSVIEW_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)
QMap< QString, QDoubleSpinBox * > m_mapChThresholdsDoubleSpinBoxes
QList< FIFFLIB::FiffChInfo > m_fiffChInfoList
QMap< QString, double > getThresholdMap()
QMap< QString, double > m_mapThresholds
void changeArtifactThreshold(const QMap< QString, double > &mapThresholds)
QMap< QString, int > m_mapThresholdsSecond
QMap< QString, QSpinBox * > m_mapChThresholdsSpinBoxes
QSharedPointer< ArtifactSettingsView > ConstSPtr
QMap< QString, double > m_mapThresholdsFirst
ArtifactSettingsView(const QString &sSettingsPath="", const QList< FIFFLIB::FiffChInfo > &fiffChInfoList=QList< FIFFLIB::FiffChInfo >(), QWidget *parent=nullptr)
void setThresholdMap(const QMap< QString, double > &mapThresholds)
void setChInfo(const QList< FIFFLIB::FiffChInfo > &fiffChInfoList)
QSharedPointer< ArtifactSettingsView > SPtr
void updateProcessingMode(ProcessingMode mode)
QPointer< QCheckBox > m_pArtifactRejectionCheckBox
Channel info descriptor.