diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-18 21:06:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-19 09:53:55 +0200 |
commit | cc7cb945846e5b476de917bb90976a4fca175ad1 (patch) | |
tree | d50e5a6bb05f1f4dfa0c4b85360ea21e13cd8452 /include/vcl/weld.hxx | |
parent | 8c9c1b852ce0ebc6bd19437e9e583ef4226cf685 (diff) |
weld CompressGraphicsDialog
Change-Id: I593e6f0fe2e002c75ecd367a38dda96e7e6552f9
Reviewed-on: https://gerrit.libreoffice.org/53125
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/weld.hxx')
-rw-r--r-- | include/vcl/weld.hxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 4e0d91ac9b0f..116e7c182f07 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -389,6 +389,20 @@ class VCL_DLLPUBLIC RadioButton : virtual public ToggleButton { }; +class VCL_DLLPUBLIC Scale : virtual public Widget +{ +protected: + Link<Scale&, void> m_aValueChangedHdl; + Link<Scale&, void> m_aOutputHdl; + + void signal_value_changed() { m_aValueChangedHdl.Call(*this); } + +public: + virtual void set_value(int value) = 0; + virtual int get_value() const = 0; + void connect_value_changed(const Link<Scale&, void>& rLink) { m_aValueChangedHdl = rLink; } +}; + class VCL_DLLPUBLIC Entry : virtual public Widget { private: @@ -724,6 +738,7 @@ public: virtual TextView* weld_text_view(const OString& id, bool bTakeOwnership = false) = 0; virtual Expander* weld_expander(const OString& id, bool bTakeOwnership = false) = 0; virtual Entry* weld_entry(const OString& id, bool bTakeOwnership = false) = 0; + virtual Scale* weld_scale(const OString& id, bool bTakeOwnership = false) = 0; virtual DrawingArea* weld_drawing_area(const OString& id, const a11yref& rA11yImpl = nullptr, FactoryFunction pUITestFactoryFunction = nullptr, void* pUserData = nullptr, bool bTakeOwnership = false) |