From 22c22d1e81b25c103100b6c8347b154f16dafc5e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 10 Nov 2003 23:40:48 +0000 Subject: added namespace GUI svn-id: r11255 --- common/debugger.cpp | 6 +++--- common/debugger.h | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'common') diff --git a/common/debugger.cpp b/common/debugger.cpp index f47fee07f8..0d6c5027dc 100644 --- a/common/debugger.cpp +++ b/common/debugger.cpp @@ -41,7 +41,7 @@ Debugger::Debugger() { _isAttached = false; _errStr = NULL; _firstTime = true; - _debuggerDialog = new ConsoleDialog(1.0, 0.67F); + _debuggerDialog = new GUI::ConsoleDialog(1.0, 0.67F); _debuggerDialog->setInputCallback(debuggerInputCallback, this); _debuggerDialog->setCompletionCallback(debuggerCompletionCallback, this); } @@ -339,7 +339,7 @@ void Debugger::DCmd_Register(const char *cmdname, DebugProc pointer) { // Console handler #if USE_CONSOLE template -bool Debugger::debuggerInputCallback(ConsoleDialog *console, const char *input, void *refCon) { +bool Debugger::debuggerInputCallback(GUI::ConsoleDialog *console, const char *input, void *refCon) { Debugger *debugger = (Debugger *)refCon; return debugger->RunCommand(input); @@ -347,7 +347,7 @@ bool Debugger::debuggerInputCallback(ConsoleDialog *console, const char *inpu template -bool Debugger::debuggerCompletionCallback(ConsoleDialog *console, const char *input, char*& completion, void *refCon) { +bool Debugger::debuggerCompletionCallback(GUI::ConsoleDialog *console, const char *input, char*& completion, void *refCon) { Debugger *debugger = (Debugger *)refCon; return debugger->TabComplete(input, completion); diff --git a/common/debugger.h b/common/debugger.h index 7946e5940d..1da3ad7319 100644 --- a/common/debugger.h +++ b/common/debugger.h @@ -21,7 +21,9 @@ #ifndef COMMON_DEBUGGER_H #define COMMON_DEBUGGER_H -class ConsoleDialog; +namespace GUI { + class ConsoleDialog; +}; namespace Common { @@ -71,7 +73,7 @@ private: bool _isAttached; char *_errStr; bool _firstTime; - ConsoleDialog *_debuggerDialog; + GUI::ConsoleDialog *_debuggerDialog; protected: void detach(); @@ -87,8 +89,8 @@ protected: void DCmd_Register(const char *cmdname, DebugProc pointer); #if USE_CONSOLE - static bool debuggerInputCallback(ConsoleDialog *console, const char *input, void *refCon); - static bool debuggerCompletionCallback(ConsoleDialog *console, const char *input, char*& completion, void *refCon); + static bool debuggerInputCallback(GUI::ConsoleDialog *console, const char *input, void *refCon); + static bool debuggerCompletionCallback(GUI::ConsoleDialog *console, const char *input, char*& completion, void *refCon); #endif }; -- cgit v1.2.3