diff options
| author | André Nusser <andre.nusser@googlemail.com> | 2017-04-20 19:19:00 +0200 | 
|---|---|---|
| committer | André Nusser <andre.nusser@googlemail.com> | 2017-04-20 19:19:00 +0200 | 
| commit | 89b3bde1cfeb9fa3c7097555a86c6436da848a97 (patch) | |
| tree | 4e69ab33bcf3699fc28d358933ccda0d6cc70b73 /plugingui/button_base.h | |
| parent | c15331fa4b98ba58b2b500c79088d43ed31a4b4e (diff) | |
Gray out diskstreaming "Apply" button if the value didn't change.
Also add a new texture for that.
Diffstat (limited to 'plugingui/button_base.h')
| -rw-r--r-- | plugingui/button_base.h | 4 | 
1 files changed, 4 insertions, 0 deletions
| 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 { | 
