From: <es...@us...> - 2010-09-14 19:29:15
|
Revision: 2971 http://ogreaddons.svn.sourceforge.net/ogreaddons/?rev=2971&view=rev Author: esuvs Date: 2010-09-14 19:29:09 +0000 (Tue, 14 Sep 2010) Log Message: ----------- Exposed getLogByName function to application. Modified Paths: -------------- trunk/QtOgreFramework/QtOgre/include/Application.h trunk/QtOgreFramework/QtOgre/source/Application.cpp Modified: trunk/QtOgreFramework/QtOgre/include/Application.h =================================================================== --- trunk/QtOgreFramework/QtOgre/include/Application.h 2010-09-13 19:37:48 UTC (rev 2970) +++ trunk/QtOgreFramework/QtOgre/include/Application.h 2010-09-14 19:29:09 UTC (rev 2971) @@ -88,6 +88,8 @@ //@{ ///Creates a new log with a given name. Log* createLog(const QString& name); + ///Get the log with the specified name. + Log* getLogByName(const QString& name); ///Adds a new page to the settings dialog void addSettingsWidget(const QString& title, AbstractSettingsWidget* settingsWidget); //@} Modified: trunk/QtOgreFramework/QtOgre/source/Application.cpp =================================================================== --- trunk/QtOgreFramework/QtOgre/source/Application.cpp 2010-09-13 19:37:48 UTC (rev 2970) +++ trunk/QtOgreFramework/QtOgre/source/Application.cpp 2010-09-14 19:29:09 UTC (rev 2971) @@ -428,9 +428,16 @@ //////////////////////////////////////////////////////////////////////////////// Log* Application::createLog(const QString& name) { + //Forward the request to the LogManager. return mLogManager->createLog(name); } + Log* Application::getLogByName(const QString& name) + { + //Forward the request to the LogManager. + return mLogManager->getLogByName(name); + } + void Application::hideLogManager(void) { mLogManager->setVisible(false); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |