From 75906b43ecb9a04fdab365bd8b1a00fbdbc66918 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 3 Oct 2010 19:57:17 +0000 Subject: ui updates, removed impulse and jumpgte g_devel conditions, jumpdrive crash bugfix --- src/ui/iconbutton.h | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'src/ui/iconbutton.h') diff --git a/src/ui/iconbutton.h b/src/ui/iconbutton.h index 37d1c7b..c9a7c5b 100644 --- a/src/ui/iconbutton.h +++ b/src/ui/iconbutton.h @@ -28,22 +28,11 @@ public: return iconbutton_icon; } - /// enabled or disabled - inline const bool enabled() const { - return iconbutton_enabled; + /// highlight state + inline const bool highlight() const { + return iconbutton_highlight; } - - /// enabled or disabled - inline const bool disabled() const { - return !iconbutton_enabled; - } - - /// enable or disable the button - void enable(bool enabled = true); - - /// enable or disable the button - void disable(bool disabled = true); - + /// set the command this button will execute void set_command(const std::string &command); @@ -56,6 +45,9 @@ public: /// set the icon texture void set_icon(const char *icon); + /// set the highlight state + void set_highlight(const bool highlight); + /// print button description virtual void print(const size_t indent) const; @@ -78,7 +70,7 @@ protected: private: std::string iconbutton_command; std::string iconbutton_icon; - bool iconbutton_enabled; + bool iconbutton_highlight; }; } -- cgit v1.2.3