16 #ifndef GSAFE_DCONSOLE__HEADER_
17 #define GSAFE_DCONSOLE__HEADER_
22 #ifndef COMPILED_WITH_QT4X
24 #endif //COMPILED_WITH_QT4X
29 #ifndef DCONSOLE_NO_SQL
34 #endif // DCONSOLE_NO_SQL
73 #ifndef GSAFE_DISABLE_DEBUG
75 #define DCONSOLE_TYPE_TEXT 0
76 #define DCONSOLE_TYPE_MESSAGE 1
77 #define DCONSOLE_TYPE_SQL 2
78 #define DCONSOLE_TYPE_RESULT 3
79 #define DCONSOLE_TYPE_CMD 4
80 #define DCONSOLE_TYPE_QTDEBUG 5
82 #ifndef COMPILED_WITH_QT4X
83 void dconsoleMessageHandler(QtMsgType type,
const QMessageLogContext &context,
const QString &msg);
85 void dconsoleMessageHandler(QtMsgType type,
const char *msg);
91 class HDebugConsolePrivate;
191 #ifndef DCONSOLE_NO_SQL
194 #endif // DCONSOLE_NO_SQL
198 static void popup(QString title,QString str);
207 void closeEvent(QCloseEvent *e);
210 int execCommand(QString query);
211 int tabPressed(QString query);
217 class HDebugConsolePrivate *p;
221 class HConsolePanelPrivate;
273 void addText(QString t,
char type = 0);
283 QString
lineBySerial(
int serial,
bool withWraps =
false,
bool onDisplay =
true);
304 void setColor(QString section,QColor color);
323 void cursorLeft(
int charCount = 1,
bool inSelection =
false);
325 void cursorRight(
int charCount = 1,
bool inSelection =
false);
370 void biggerFontSize(
void);
371 void smallerFontSize(
void);
372 void normalFontSize(
void);
375 void paintEvent(QPaintEvent *e);
376 void resizeEvent(QResizeEvent *e);
377 void keyPressEvent(QKeyEvent *e);
379 void mousePressEvent(QMouseEvent *e);
380 void mouseMoveEvent(QMouseEvent *e);
381 void mouseReleaseEvent(QMouseEvent *e);
382 void mouseDoubleClickEvent(QMouseEvent *e);
383 void wheelEvent(QWheelEvent *e);
384 bool event(QEvent *e);
395 class HConsolePanelPrivate *p;
398 #endif //GSAFE_DISABLE_DEBUG
void commandEntered(QString commandText)
static HDebugConsole * myself
void deleteCmdLineSelection(void)
static void popup(QString title, QString str)
void deleteFromCursor(bool forwardDel=false)
HConsolePanel * consoleObject(void)
void unregister_dconsole_command(QString command)
void setCommandLineCharacterEcho(bool disable=false)
QString commandLineText(void)
void setMarginText(QString margin)
void dconsole_close(void)
void pasteToCommandLine(void)
void cursorLeft(int charCount=1, bool inSelection=false)
void addTextToCursor(QString text)
void setTextTypeColor(char type, QColor color)
void scrollUp(int lineCount=1)
void setTabStop(int count)
HDebugConsole(QWidget *parent)
void setCursorPosition(int c)
void clearSelection(void)
void setPromptString(QString prm)
HConsolePanel(QWidget *parent)
QString promptString(void)
void setCommandLineText(QString t, bool disableupdate=false)
void resetCommandLine(void)
void add_text(QString s, int type)
QString selectedText(void)
virtual QString donsole_command_interpreter(QString commandString)=0
void setColor(QString section, QColor color)
void register_dconsole_command(QString command, HDConsoleCommandHolder *interpreter, QString descr)
void addNormalText(QString text)
void setFontSize(int point)
void cursorRight(int charCount=1, bool inSelection=false)
void tabPressed(QString commandText)
void scrollDown(int lineCount=1)
void dconsole_popup(QString t, QString txt)
static void debug_txt(QString s)
void setCommandExecution(bool enabled=true)
void scrollToSerial(int serial)
void addText(QString t, char type=0)
static void debug_sql(QString s)
QString lineBySerial(int serial, bool withWraps=false, bool onDisplay=true)
void clear_dconsole_commands()