mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 02:25:52 -04:00
1c45dfc95d
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
52 lines
1003 B
C++
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
|