Changeset 8796 for code/branches/output/src/libraries/core/GUIManager.cc
- Timestamp:
- Jul 30, 2011, 12:54:55 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/core/GUIManager.cc
r8788 r8796 33 33 #include <memory> 34 34 #include <boost/bind.hpp> 35 #include <boost/preprocessor/stringize.hpp> 35 36 #include <OgreRenderQueue.h> 36 37 #include <OgreRenderWindow.h> … … 101 102 void logEvent(const CEGUI::String& message, CEGUI::LoggingLevel level = CEGUI::Standard) 102 103 { 103 int orxonoxLevel = CEGUI::Standard;104 OutputLevel orxonoxLevel = level::debug_output; 104 105 switch (level) 105 106 { 106 case CEGUI::Errors: orxonoxLevel = 1; break;107 case CEGUI::Warnings: orxonoxLevel = 2; break;108 case CEGUI::Standard: orxonoxLevel = 4; break;109 case CEGUI::Informative: orxonoxLevel = 5; break;110 case CEGUI::Insane: orxonoxLevel = 6; break;107 case CEGUI::Errors: orxonoxLevel = level::internal_error; break; 108 case CEGUI::Warnings: orxonoxLevel = level::internal_warning; break; 109 case CEGUI::Standard: orxonoxLevel = level::internal_status; break; 110 case CEGUI::Informative: orxonoxLevel = level::internal_info; break; 111 case CEGUI::Insane: orxonoxLevel = level::verbose; break; 111 112 default: OrxAssert(false, "CEGUI log level out of range, inspect immediately!"); 112 113 } 113 OutputHandler::getOutStream(orxonoxLevel) 114 << "CEGUI: " << message << std::endl; 114 115 #pragma message(__FILE__ "("BOOST_PP_STRINGIZE(__LINE__)") : Warning: TODO: use correct level (and remove boost include)") 116 orxout(debug_output, context::cegui) << "CEGUI (level: " << level << "): " << message << endl; 115 117 116 118 CEGUI::DefaultLogger::logEvent(message, level); … … 263 265 264 266 this->oldCEGUI_ = false; 265 267 266 268 // Note: No SceneManager specified yet 267 269 #ifdef ORXONOX_OLD_CEGUI … … 300 302 std::auto_ptr<CEGUILogger> ceguiLogger(new CEGUILogger()); 301 303 ceguiLogger->setLogFilename(PathConfig::getLogPathString() + "cegui.log"); 302 // Set the log level according to ours (translate by subtracting 1) 303 ceguiLogger->setLoggingLevel( 304 static_cast<LoggingLevel>(OutputHandler::getInstance().getSoftDebugLevel("logFile") - 1)); 304 #pragma message(__FILE__ "("BOOST_PP_STRINGIZE(__LINE__)") : Warning: TODO: inspect this (and remove boost include)") 305 // // Set the log level according to ours (translate by subtracting 1) 306 // ceguiLogger->setLoggingLevel( 307 // static_cast<LoggingLevel>(OutputHandler::getInstance().getSoftDebugLevel("logFile") - 1)); 305 308 this->ceguiLogger_ = ceguiLogger.release(); 306 309
Note: See TracChangeset
for help on using the changeset viewer.