From 7e3684dba968d2129caf4deff344c4f099640a68 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 6 Jan 2015 21:49:29 +0000 Subject: Fixed @goto and @dock buttons. --- src/client/targeticonbutton.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/client/targeticonbutton.h') diff --git a/src/client/targeticonbutton.h b/src/client/targeticonbutton.h index 9907f95..cb6a147 100644 --- a/src/client/targeticonbutton.h +++ b/src/client/targeticonbutton.h @@ -19,12 +19,16 @@ public: /// special icon button that sends target '@' commands. TargetIconButton(Widget *parent, const char *icon, const char *command, unsigned int flags = 0); - /// called when the widget receives a key press - virtual bool on_keypress(const int key, const unsigned int modifier); - protected: - /// update enabled/disabled state and draw the IconButton + /** + * @brief draw event handler + * */ virtual void draw(); + + /** + * @brief mouse button press event handler + * */ + virtual bool on_mousepress(const unsigned int button); private: unsigned int entity_flags; -- cgit v1.2.3