diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/debugger.cpp | 6 | ||||
-rw-r--r-- | common/debugger.h | 10 |
2 files changed, 9 insertions, 7 deletions
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<T>::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<T>::DCmd_Register(const char *cmdname, DebugProc pointer) { // Console handler #if USE_CONSOLE template <class T> -bool Debugger<T>::debuggerInputCallback(ConsoleDialog *console, const char *input, void *refCon) { +bool Debugger<T>::debuggerInputCallback(GUI::ConsoleDialog *console, const char *input, void *refCon) { Debugger *debugger = (Debugger *)refCon; return debugger->RunCommand(input); @@ -347,7 +347,7 @@ bool Debugger<T>::debuggerInputCallback(ConsoleDialog *console, const char *inpu template <class T> -bool Debugger<T>::debuggerCompletionCallback(ConsoleDialog *console, const char *input, char*& completion, void *refCon) { +bool Debugger<T>::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 }; |