Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-09-04 17:54:51 +0000
committerStijn Buys <ingar@osirion.org>2011-09-04 17:54:51 +0000
commit69eed715f80c24c2435c82bb9fa1954697bf3af0 (patch)
treea21aa14d2ecfa86b94d3b122c2c972d758425782 /src/client/buttonmenu.h
parentedd5dfcd15198f5d5d277835fdf75108eb67472d (diff)
Moved main menu infrastructure into client namespace,
removed ui::Container and ui::Menu classes.
Diffstat (limited to 'src/client/buttonmenu.h')
-rw-r--r--src/client/buttonmenu.h10
1 files changed, 7 insertions, 3 deletions
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;
};
}