Files
GDevelop/IDE/ConsoleManager.h
T
Florian Rival 8844642ae0 Updated copyrights.
Added doxygen files.
Cleaned some files.
2014-06-26 00:20:36 +02:00

54 lines
1.1 KiB
C++

/*
* Game Develop IDE
* Copyright 2008-2014 Florian Rival (Florian.Rival@gmail.com). All rights reserved.
* This project is released under the GNU General Public License.
*/
#ifndef CONSOLEMANAGER_H
#define CONSOLEMANAGER_H
class ConsoleFrame;
/**
* \brief Manage Game Develop IDE console.
*
* Class managing the GD console, allowing to display it by a simple function call.
* Best when created at program start and killed when program exits.
*/
class ConsoleManager
{
public:
void ShowConsole();
static ConsoleManager *Get()
{
if ( !_singleton )
{
_singleton = new ConsoleManager;
}
return ( static_cast<ConsoleManager*>( _singleton ) );
}
static void DestroySingleton()
{
if ( 0 != _singleton )
{
delete _singleton;
_singleton = 0;
}
}
private:
ConsoleManager();
virtual ~ConsoleManager();
ConsoleFrame * console;
static ConsoleManager *_singleton;
};
#endif // CONSOLEMANAGER_H