From 69eed715f80c24c2435c82bb9fa1954697bf3af0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 4 Sep 2011 17:54:51 +0000 Subject: Moved main menu infrastructure into client namespace, removed ui::Container and ui::Menu classes. --- src/client/buttonmenu.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/client/buttonmenu.h') diff --git a/src/client/buttonmenu.h b/src/client/buttonmenu.h index 2c3dd87..fbd7797 100644 --- a/src/client/buttonmenu.h +++ b/src/client/buttonmenu.h @@ -28,6 +28,11 @@ public: /// add a button with a command ui::Button *add_button(char const *text = 0, char const *command = 0); + + /// set compact mode + inline void set_compact(const bool compact = true) { + buttonmenu_compact = compact; + } protected: /// remove container children @@ -36,11 +41,10 @@ protected: /// resize event virtual void resize(); - /// keypress event - virtual bool on_keypress(const int key, const unsigned int modifier); - private: ui::Window *buttonmenu_container; + + bool buttonmenu_compact; }; } -- cgit v1.2.3