62 class ScalingViewWidget;
119 typedef QSharedPointer<ScalingView>
SPtr;
130 Qt::WindowFlags f = Qt::Widget,
131 const QStringList& lChannelsToShow = QStringList() <<
"all");
151 void setScaleMap(
const QMap<qint32, float> &qMapChScaling);
195 void processScalingChange();
201 void showLinkControl();
209 void updateMAGScale(
double dScale);
217 void updateGRADScale(
double dScale);
225 void updateMAGtoGRADlink(
double dScale);
233 void updateEEGScale(
double dScale);
241 void updateEOGScale(
double dScale);
249 void updateEMGScale(
double dScale);
257 void updateECGScale(
double dScale);
265 void updateMISCScale(
double dScale);
273 void updateSTIMScale(
double dScale);
281 void updateGuiMode(
GuiMode mode)
override;
295 void createScaleControls();
301 void drawScalingGUI();
307 void linkMagToGrad();
313 void linkGradToMag();
319 void createLinkMagGradCheckBox();
327 void keyReleaseEvent(QKeyEvent* event)
override;
335 void keyPressEvent(QKeyEvent* event)
override;
337 QMap<qint32, float> m_qMapChScaling;
338 QMap<qint32, QPointer<ScaleControl> > m_qMapScaleControls;
340 QString m_sSettingsPath;
342 QStringList m_lChannelTypesToShow;
344 Ui::ScalingViewWidget* m_pUi;
345 bool m_bLinkMAGtoGRAD;
346 bool m_bIsShiftKeyPressed;
347 bool m_bManagingSpinBoxChange;
348 bool m_bManagingSliderChange;
349 bool m_bManagingLinkMagToGrad;
350 QPointer<QCheckBox> m_pCheckBox;
Declaration of the AbstractView Class.
disp library export/import macros.
#define DISPSHARED_EXPORT
2-D display widgets and visualisation helpers (charts, topography, colour maps).
float getScalingValue(const QMap< qint32, float > &qMapChScaling, int iChannelKind, int iChannelUnit)
float getDefaultScalingValue(int iChannelKind, int iChannelUnit)
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
The ScaleControl class packs together a QLabel, a DoubleSpinbox and a Slider with the necessary facil...
void scalingChanged(const QMap< qint32, float > &scalingMap)
void saveSettings() override
void setMagGradLink(Qt::CheckState l)
void loadSettings() override
QSharedPointer< const ScalingView > ConstSPtr
void clearView() override
QSharedPointer< ScalingView > SPtr
ScalingView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget, const QStringList &lChannelsToShow=QStringList()<< "all")
void setScaleMap(const QMap< qint32, float > &qMapChScaling)
QMap< qint32, float > getScaleMap() const