50 class ScalingViewWidget;
110 typedef QSharedPointer<ScalingView>
SPtr;
121 Qt::WindowFlags f = Qt::Widget,
122 const QStringList& lChannelsToShow = QStringList() <<
"all");
142 void setScaleMap(
const QMap<qint32, float> &qMapChScaling);
186 void processScalingChange();
192 void showLinkControl();
200 void updateMAGScale(
double dScale);
208 void updateGRADScale(
double dScale);
216 void updateMAGtoGRADlink(
double dScale);
224 void updateEEGScale(
double dScale);
232 void updateEOGScale(
double dScale);
240 void updateEMGScale(
double dScale);
248 void updateECGScale(
double dScale);
256 void updateMISCScale(
double dScale);
264 void updateSTIMScale(
double dScale);
272 void updateGuiMode(
GuiMode mode)
override;
286 void createScaleControls();
292 void drawScalingGUI();
298 void linkMagToGrad();
304 void linkGradToMag();
310 void createLinkMagGradCheckBox();
318 void keyReleaseEvent(QKeyEvent* event)
override;
326 void keyPressEvent(QKeyEvent* event)
override;
328 QMap<qint32, float> m_qMapChScaling;
329 QMap<qint32, QPointer<ScaleControl> > m_qMapScaleControls;
331 QString m_sSettingsPath;
333 QStringList m_lChannelTypesToShow;
335 Ui::ScalingViewWidget* m_pUi;
336 bool m_bLinkMAGtoGRAD;
337 bool m_bIsShiftKeyPressed;
338 bool m_bManagingSpinBoxChange;
339 bool m_bManagingSliderChange;
340 bool m_bManagingLinkMagToGrad;
341 QPointer<QCheckBox> m_pCheckBox;
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
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