summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-19 12:17:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-19 18:09:35 +0200
commit5070c0095433e5169dd4a34b1c6a6469726c197c (patch)
tree77fe9e57e0807482c7b9294546f9d0c47d5b31ce /include
parent3a5a81e74308c03b2cf774cccb78f3a102d5be72 (diff)
make a LabelType enum distinct from MessageType
Change-Id: Ib548cf9f97eb356dfe8f612c177dc29883e9128a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100993 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/weld.hxx9
1 files changed, 8 insertions, 1 deletions
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;
};