From 5070c0095433e5169dd4a34b1c6a6469726c197c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 19 Aug 2020 12:17:37 +0100 Subject: make a LabelType enum distinct from MessageType MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib548cf9f97eb356dfe8f612c177dc29883e9128a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100993 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- include/vcl/weld.hxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index cd56690f0575..bafc571d2c80 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -1909,13 +1909,20 @@ public: weld::SpinButton& get_widget() { return *m_xSpinButton; } }; +enum class LabelType +{ + Normal, + Warning, + Error, +}; + class VCL_DLLPUBLIC Label : virtual public Widget { public: virtual void set_label(const OUString& rText) = 0; virtual OUString get_label() const = 0; virtual void set_mnemonic_widget(Widget* pTarget) = 0; - virtual void set_message_type(EntryMessageType eType) = 0; + virtual void set_label_type(LabelType eType) = 0; // font size is in points, not pixels, e.g. see Window::[G]etPointFont virtual void set_font(const vcl::Font& rFont) = 0; }; -- cgit