Changeset 6367 for code/branches/presentation2/src
- Timestamp:
- Dec 16, 2009, 10:19:32 PM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/GUIManager.cc
r6303 r6367 40 40 #include <CEGUIResourceProvider.h> 41 41 #include <CEGUISystem.h> 42 #include <CEGUIWindow.h> 42 43 #include <ogreceguirenderer/OgreCEGUIRenderer.h> 43 44 … … 347 348 } 348 349 } 350 351 void GUIManager::subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function) 352 { 353 window->subscribeScriptedEvent(event, function); 354 } 349 355 } -
code/branches/presentation2/src/libraries/core/GUIManager.h
r6303 r6367 84 84 { std::map<std::string, PlayerInfo*>::const_iterator it = this->players_.find(guiname); return (it != this->players_.end()) ? it->second : 0; } 85 85 86 // TODO: Temporary hack because the tolua exported CEGUI method does not seem to work 87 static void subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function); //tolua_export 88 86 89 private: 87 90 GUIManager(const GUIManager& instance); //!< private and undefined copy c'tor (this is a singleton class) -
code/branches/presentation2/src/libraries/core/input/KeyBinderManager.cc
r6311 r6367 28 28 29 29 #include "KeyBinderManager.h" 30 31 #include <CEGUIWindow.h>32 30 33 31 #include "util/Debug.h" … … 103 101 { 104 102 this->currentBinder_->setBinding("", binding, true); 105 }106 107 void KeyBinderManager::subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function)108 {109 window->subscribeScriptedEvent(event, function);110 103 } 111 104 -
code/branches/presentation2/src/libraries/core/input/KeyBinderManager.h
r6311 r6367 35 35 #include <string> 36 36 #include <boost/shared_ptr.hpp> 37 #include <CEGUIForwardRefs.h>38 37 39 38 #include "util/Singleton.h" … … 82 81 void setToDefault() 83 82 { this->setCurrent(this->defaultFilename_); } 84 85 void subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function); //tolua_export86 83 87 84 //! Returns a pointer to a KeyBinder (creates it if not yet loaded)
Note: See TracChangeset
for help on using the changeset viewer.