53class ScalingViewWidget;
113 typedef QSharedPointer<ScalingView>
SPtr;
127 Qt::WindowFlags f = Qt::Widget,
128 const QStringList& lChannelsToShow = QStringList() <<
"all");
150 void setScaleMap(
const QMap<qint32, float>& qMapChScaling);
193 void processScalingChange();
199 void showLinkControl();
207 void updateMAGScale(
double dScale);
215 void updateGRADScale(
double dScale);
223 void updateMAGtoGRADlink(
double dScale);
231 void updateEEGScale(
double dScale);
239 void updateEOGScale(
double dScale);
247 void updateEMGScale(
double dScale);
255 void updateECGScale(
double dScale);
263 void updateMISCScale(
double dScale);
271 void updateSTIMScale(
double dScale);
279 void updateGuiMode(
GuiMode mode)
override;
293 void createScaleControls();
299 void drawScalingGUI();
305 void linkMagToGrad();
311 void linkGradToMag();
317 void createLinkMagGradCheckBox();
325 void keyReleaseEvent(QKeyEvent* event)
override;
333 void keyPressEvent(QKeyEvent* event)
override;
335 QMap<qint32, float> m_qMapChScaling;
336 QMap<qint32, QPointer<ScaleControl>> m_qMapScaleControls;
338 QString m_sSettingsPath;
340 QStringList m_lChannelTypesToShow;
342 std::unique_ptr<Ui::ScalingViewWidget> m_pUi;
343 bool m_bLinkMAGtoGRAD;
344 bool m_bIsShiftKeyPressed;
345 bool m_bManagingSpinBoxChange;
346 bool m_bManagingSliderChange;
347 bool m_bManagingLinkMagToGrad;
348 QPointer<QCheckBox> m_pCheckBox;
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
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)
Composite slider + spinbox widget for picking a (possibly logarithmic) scale value.
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