turned NewGui into a singleton, and made OSystem a pseudo-singleton; added Widget::findWidget (preparing to add support for nested widgets, for the tab widget)

svn-id: r11045
This commit is contained in:
Max Horn 2003-11-02 02:18:16 +00:00
parent f2c4bbbdbf
commit b27a871f87
46 changed files with 182 additions and 233 deletions

View file

@ -33,7 +33,7 @@ extern void force_keyboard(bool);
namespace Common {
template <class T>
Debugger<T>::Debugger(NewGui *gui) {
Debugger<T>::Debugger() {
_frame_countdown = 0;
_dvar_count = 0;
_dcmd_count = 0;
@ -41,7 +41,7 @@ Debugger<T>::Debugger(NewGui *gui) {
_isAttached = false;
_errStr = NULL;
_firstTime = true;
_debuggerDialog = new ConsoleDialog(gui, 1.0, 0.67F);
_debuggerDialog = new ConsoleDialog(1.0, 0.67F);
_debuggerDialog->setInputCallback(debuggerInputCallback, this);
_debuggerDialog->setCompletionCallback(debuggerCompletionCallback, this);
}