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-08-28 18:19:48 +0000
committerStijn Buys <ingar@osirion.org>2011-08-28 18:19:48 +0000
commit5afce7d29a2d852446b58b4410c43d7bf2063b11 (patch)
tree9a8f6652d5c65e5ccac0abdeac9dfc2f7aa1b3b0 /src/client/entitymenu.h
parent3b75614be6d9f6e84a1b5818c5827dbc0ab5d516 (diff)
Added client::ButtonMenu base class, refactored client::EntityMenu as a ButtonMenu child.
Diffstat (limited to 'src/client/entitymenu.h')
-rw-r--r--src/client/entitymenu.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/client/entitymenu.h b/src/client/entitymenu.h
index 0285879..5bea94e 100644
--- a/src/client/entitymenu.h
+++ b/src/client/entitymenu.h
@@ -8,15 +8,13 @@
#define __INCLUDED_CLIENT_ENTITYMENU_H__
#include "core/entity.h"
-#include "ui/container.h"
-#include "ui/label.h"
-#include "ui/window.h"
+#include "client/buttonmenu.h"
namespace client
{
/// entity menu
-class EntityMenu : public ui::Window
+class EntityMenu : public ButtonMenu
{
public:
/// create a new menu
@@ -40,18 +38,11 @@ public:
/// generate a menu from menu descriptions
void generate(core::Entity *entity, const char *menulabel);
- /// clear the current menu
- void clear();
-
protected:
- /// resize event
- virtual void resize();
-
/// keypress event handler
virtual bool on_keypress(const int key, const unsigned int modifier);
private:
- ui::Container *menu_container;
core::Entity *menu_generated_entity;
std::string menu_generated_menu;
};