Changeset 8669
- Timestamp:
- May 29, 2011, 10:56:57 PM (13 years ago)
- Location:
- code/branches/unity_build/src/libraries/core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/unity_build/src/libraries/core/GUIManager.cc
r8439 r8669 646 646 } 647 647 648 /** Helper method to get the developer's mode without having to export Core.h. 649 @see Core::inDevMode 650 */ 651 /*static*/ bool GUIManager::inDevMode() 652 { 653 return Core::getInstance().inDevMode(); 654 } 655 648 656 /** 649 657 @brief Callback of window event listener, called if the window is resized. Sets the display size of CEGUI. -
code/branches/unity_build/src/libraries/core/GUIManager.h
r8423 r8669 39 39 40 40 #include <map> 41 #include <set>42 41 #include <string> 43 42 #include <CEGUIForwardRefs.h> … … 50 49 #include "util/Singleton.h" 51 50 #include "input/InputHandler.h" 52 #include "Core.h"53 51 #include "OrxonoxClass.h" 54 52 #include "WindowEventListener.h" … … 104 102 void setBackgroundImage(const std::string& image); 105 103 106 /** 107 @brief Helper method to get the developer's mode without having to export Core.h. 108 @see Core::inDevMode 109 */ 110 static bool inDevMode(void) { return Core::getInstance().inDevMode(); } // tolua_export 104 static bool inDevMode(void); // tolua_export 111 105 112 106 //! Creates a new InputState to be used with a GUI Sheet -
code/branches/unity_build/src/libraries/core/command/Shell.cc
r8524 r8669 34 34 #include "Shell.h" 35 35 36 #include "util/Math.h" 36 37 #include "util/OutputHandler.h" 37 38 #include "util/StringUtils.h" … … 41 42 #include "core/ConfigValueIncludes.h" 42 43 #include "core/PathConfig.h" 44 #include "core/input/InputBuffer.h" 43 45 #include "CommandExecutor.h" 44 46 #include "ConsoleCommand.h" … … 237 239 } 238 240 241 /// Returns the current position of the cursor in the input buffer. 242 unsigned int Shell::getCursorPosition() const 243 { 244 return this->inputBuffer_->getCursorPosition(); 245 } 246 247 /// Returns the current content of the input buffer (the text which was entered by the user) 248 const std::string& Shell::getInput() const 249 { 250 return this->inputBuffer_->get(); 251 } 252 239 253 /** 240 254 @brief Sends output to the internal output buffer. -
code/branches/unity_build/src/libraries/core/command/Shell.h
r8524 r8669 51 51 #include "core/Core.h" 52 52 #include "core/OrxonoxClass.h" 53 #include "core/input/InputBuffer.h"54 53 55 54 namespace orxonox … … 120 119 121 120 void setCursorPosition(unsigned int cursor); 122 /// Returns the current position of the cursor in the input buffer. 123 inline unsigned int getCursorPosition() const 124 { return this->inputBuffer_->getCursorPosition(); } 125 126 /// Returns the current content of the input buffer (the text which was entered by the user) 127 inline const std::string& getInput() const 128 { return this->inputBuffer_->get(); } 121 unsigned int getCursorPosition() const; 122 123 const std::string& getInput() const; 129 124 130 125 typedef std::list<std::pair<std::string, LineType> > LineList;
Note: See TracChangeset
for help on using the changeset viewer.