From 89b3bde1cfeb9fa3c7097555a86c6436da848a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Thu, 20 Apr 2017 19:19:00 +0200 Subject: Gray out diskstreaming "Apply" button if the value didn't change. Also add a new texture for that. --- plugingui/button_base.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugingui/button_base.h') diff --git a/plugingui/button_base.h b/plugingui/button_base.h index a21a084..c872d9b 100644 --- a/plugingui/button_base.h +++ b/plugingui/button_base.h @@ -47,6 +47,9 @@ public: void setText(const std::string& text); + void setEnabled(bool enabled); + bool isEnabled() const; + Notifier<> clickNotifier; protected: @@ -58,6 +61,7 @@ protected: virtual void mouseLeaveEvent() override; virtual void mouseEnterEvent() override; + bool enabled{true}; bool in_button{false}; enum class State { -- cgit v1.2.3