gSAFE
1.3.8
|
#include <dconsole.h>
Inherits QWidget.
Public Member Functions | |
HDebugConsole (QWidget *parent) | |
~HDebugConsole (void) | |
void | add_text (QString s, int type) |
HConsolePanel * | consoleObject (void) |
void | setCommandExecution (bool enabled=true) |
Static Public Member Functions | |
static void | debug_sql (QString s) |
static void | debug_txt (QString s) |
static void | popup (QString title, QString str) |
Static Public Attributes | |
static HDebugConsole * | myself = NULL |
Protected Member Functions | |
void | closeEvent (QCloseEvent *e) |
HDebugConsole is a debug/info console with a limited sql console and internal command line functionality.
An example to start console, and send some debug message:
The HDebugConsole grabs the Qt's qDebug messages so you can see the Qt system messages/warnngs/errors
The following messages are goes to the HDebugConsole (when opened):
You can easely use this console in your project by adding dconsole.h and dconsole.cpp to your project file.
If you don't need the Sql functionality, so you would like to drop the QtSql dependency define the DCONSOLE_NO_SQL macro in your project file:
Current available commands (Console "help" command output):
Definition at line 175 of file dconsole.h.
HDebugConsole::HDebugConsole | ( | QWidget * | parent | ) |
Creates a HDebugConsole. Don't create directly. Use the dconsole() global function instead
Definition at line 173 of file dconsole.cpp.
HDebugConsole::~HDebugConsole | ( | void | ) |
Destructor
Definition at line 296 of file dconsole.cpp.
void HDebugConsole::add_text | ( | QString | s, |
int | type | ||
) |
Write a text to the console. Don't use it directly. Use the sdebug() and sqldebug() instead
Definition at line 341 of file dconsole.cpp.
HConsolePanel * HDebugConsole::consoleObject | ( | void | ) |
Returns the console panel object
Definition at line 330 of file dconsole.cpp.
|
static |
Write an sql text to the console
Definition at line 375 of file dconsole.cpp.
|
static |
Write a normal text to the console
Definition at line 382 of file dconsole.cpp.
|
static |
Popups a warning text
Definition at line 335 of file dconsole.cpp.
void HDebugConsole::setCommandExecution | ( | bool | enabled = true | ) |
You can disable the command excution if this function called with FALSE.
enabled | FALSE:The user can't execute any command. TRUE(Default state):The console execute the user's commands. |
Definition at line 309 of file dconsole.cpp.
|
static |
The one pointer of the only one HDebugConsole
Definition at line 181 of file dconsole.h.