Files
GDevelop/IDE/ConsoleManager.h
T
Florian 1c45dfc95d Updated copyright.
Adapted to changes made to MainEditorCommand in GDL.
Using InfoBar to display some messages in SceneCanvas.

git-svn-id: svn://localhost@620 8062f311-0dae-4547-b526-b8ab9ac864a5
2011-12-31 12:33:32 +00:00

52 lines
1003 B
C++

/** \file
* Game Develop
* 2008-2012 Florian Rival (Florian.Rival@gmail.com)
*/
#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 *GetInstance()
{
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