From 2faabf98b52360fbe78d4117b49792842eb9e6d3 Mon Sep 17 00:00:00 2001 From: "jean.chalard" Date: Mon, 15 Feb 2010 18:14:24 +0000 Subject: [PATCH] J : * Little progress on the interface for key bindings. * This seems to still be stable so I commit while I'm at it. --- projects/mtg/include/WGui.h | 4 ++++ projects/mtg/src/WGui.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/projects/mtg/include/WGui.h b/projects/mtg/include/WGui.h index 826737bbb..c74046051 100644 --- a/projects/mtg/include/WGui.h +++ b/projects/mtg/include/WGui.h @@ -487,6 +487,10 @@ struct WLFiltersSort{ class WGuiKeyBinder : public WGuiList { public: WGuiKeyBinder(string name); + virtual bool isModal(); + virtual bool CheckUserInput(JButton); + protected: + bool modal; }; #endif diff --git a/projects/mtg/src/WGui.cpp b/projects/mtg/src/WGui.cpp index 6b5081194..e4ad2c1bd 100644 --- a/projects/mtg/src/WGui.cpp +++ b/projects/mtg/src/WGui.cpp @@ -1732,14 +1732,14 @@ string WGuiFilterItem::getCode(){ return mCode; } -WGuiKeyBinder::WGuiKeyBinder(string name) : WGuiList(name) +WGuiKeyBinder::WGuiKeyBinder(string name) : WGuiList(name), modal(false) { JGE* j = JGE::GetInstance(); JGE::keybindings_it start = j->KeyBindings_begin(), end = j->KeyBindings_end(); u32 y = 40; for (JGE::keybindings_it it = start; it != end; ++it) - { - Add(NEW OptionKey(it->first, it->second)); - } + Add(NEW OptionKey(it->first, it->second)); } +bool WGuiKeyBinder::isModal() { return modal; } +bool WGuiKeyBinder::CheckUserInput(JButton key) { return false; }