diff options
| author | Stijn Buys <ingar@osirion.org> | 2010-10-03 19:57:17 +0000 | 
|---|---|---|
| committer | Stijn Buys <ingar@osirion.org> | 2010-10-03 19:57:17 +0000 | 
| commit | 75906b43ecb9a04fdab365bd8b1a00fbdbc66918 (patch) | |
| tree | 1a065487f09c694d93612b4f99489b878b0f8a95 /src/ui/iconbutton.h | |
| parent | 25af16fac3127523d532d4b4797eec7947ed5a72 (diff) | |
ui updates, removed impulse and jumpgte g_devel conditions, jumpdrive crash bugfix
Diffstat (limited to 'src/ui/iconbutton.h')
| -rw-r--r-- | src/ui/iconbutton.h | 24 | 
1 files changed, 8 insertions, 16 deletions
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;  };  }  | 
