v2.0.0
Loading...
Searching...
No Matches
artifactsettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef ARTIFACTSETTINGSVIEW_H
24#define ARTIFACTSETTINGSVIEW_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
46class QCheckBox;
47class QDoubleSpinBox;
48class QSpinBox;
49class QGridLayout;
50
51namespace Ui {
52 class AverageSettingsViewWidget;
53}
54
55namespace FIFFLIB {
56 class FiffEvokedSet;
57 class FiffChInfo;
58}
59
60//=============================================================================================================
61// DEFINE NAMESPACE DISPLIB
62//=============================================================================================================
63
64namespace DISPLIB
65{
66
67//=============================================================================================================
68// DISPLIB FORWARD DECLARATIONS
69//=============================================================================================================
70
71//=============================================================================================================
80{
81 Q_OBJECT
82
83public:
84 typedef QSharedPointer<ArtifactSettingsView> SPtr;
85 typedef QSharedPointer<ArtifactSettingsView> ConstSPtr;
86
87 explicit ArtifactSettingsView(const QString& sSettingsPath = "",
88 const QList<FIFFLIB::FiffChInfo>& fiffChInfoList = QList<FIFFLIB::FiffChInfo>(),
89 QWidget *parent = Q_NULLPTR);
90
91 //=========================================================================================================
96
97 void setChInfo(const QList<FIFFLIB::FiffChInfo>& fiffChInfoList);
98
99 QMap<QString,double> getThresholdMap();
100
101 void setThresholdMap(const QMap<QString,double>& mapThresholds);
102
104
105 //=========================================================================================================
109 void saveSettings();
110
111 //=========================================================================================================
115 void loadSettings();
116
117 //=========================================================================================================
121 void clearView();
122
123protected:
124 //=========================================================================================================
130 void updateGuiMode(GuiMode mode);
131
132 //=========================================================================================================
139
140 //=========================================================================================================
144 void redrawGUI();
145
147
148 QMap<QString,QDoubleSpinBox*> m_mapChThresholdsDoubleSpinBoxes;
149 QMap<QString,QSpinBox*> m_mapChThresholdsSpinBoxes;
150
151 QMap<QString,double> m_mapThresholdsFirst;
152 QMap<QString,int> m_mapThresholdsSecond;
153 QMap<QString,double> m_mapThresholds;
154
155 QList<FIFFLIB::FiffChInfo> m_fiffChInfoList;
156
158
159 QPointer<QCheckBox> m_pArtifactRejectionCheckBox;
160
161signals:
162 void changeArtifactThreshold(const QMap<QString,double>& mapThresholds);
163};
164} // NAMESPACE
165
166#endif // ARTIFACTSETTINGSVIEW_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)
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
Per-channel FIFF descriptor: identifiers, kind, calibration, coil type, channel-frame coil position a...