51class ScalingViewWidget;
111 typedef QSharedPointer<ScalingView>
SPtr;
125 Qt::WindowFlags f = Qt::Widget,
126 const QStringList& lChannelsToShow = QStringList() <<
"all");
148 void setScaleMap(
const QMap<qint32, float>& qMapChScaling);
191 void processScalingChange();
197 void showLinkControl();
205 void updateMAGScale(
double dScale);
213 void updateGRADScale(
double dScale);
221 void updateMAGtoGRADlink(
double dScale);
229 void updateEEGScale(
double dScale);
237 void updateEOGScale(
double dScale);
245 void updateEMGScale(
double dScale);
253 void updateECGScale(
double dScale);
261 void updateMISCScale(
double dScale);
269 void updateSTIMScale(
double dScale);
277 void updateGuiMode(
GuiMode mode)
override;
291 void createScaleControls();
297 void drawScalingGUI();
303 void linkMagToGrad();
309 void linkGradToMag();
315 void createLinkMagGradCheckBox();
323 void keyReleaseEvent(QKeyEvent* event)
override;
331 void keyPressEvent(QKeyEvent* event)
override;
333 QMap<qint32, float> m_qMapChScaling;
334 QMap<qint32, QPointer<ScaleControl>> m_qMapScaleControls;
336 QString m_sSettingsPath;
338 QStringList m_lChannelTypesToShow;
340 Ui::ScalingViewWidget* m_pUi;
341 bool m_bLinkMAGtoGRAD;
342 bool m_bIsShiftKeyPressed;
343 bool m_bManagingSpinBoxChange;
344 bool m_bManagingSliderChange;
345 bool m_bManagingLinkMagToGrad;
346 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