diff options
Diffstat (limited to 'src/widget/wraterange.h')
-rw-r--r-- | src/widget/wraterange.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/widget/wraterange.h b/src/widget/wraterange.h new file mode 100644 index 0000000000..43c5c3a84e --- /dev/null +++ b/src/widget/wraterange.h @@ -0,0 +1,34 @@ +#pragma once + +#include "widget/wnumber.h" + +class ControlProxy; + +enum class VerticalPosition { + Top, + Bottom +}; + +enum class DisplayType { + Default, + Prefix, + Range +}; + +class WRateRange : public WNumber { + Q_OBJECT + public: + explicit WRateRange(const QString& group, QWidget* parent = nullptr); + void setup(const QDomNode& node, const SkinContext& context) override; + + private slots: + void slotRateDirChanged(double dir); + void setValue(double range) override; + + private: + ControlProxy* m_pRateRangeControl; + ControlProxy* m_pRateDirControl; + VerticalPosition m_nodePosition; + DisplayType m_nodeDisplay; + QString m_nodeText; +}; |