diff options
author | Max Horn | 2002-12-14 14:31:44 +0000 |
---|---|---|
committer | Max Horn | 2002-12-14 14:31:44 +0000 |
commit | b9b8045e1fa7a1f26574637e835bd842246908aa (patch) | |
tree | 39cd17bf239e79aba5cd412deb91cd496dc71cd2 /scumm/dialogs.cpp | |
parent | 96131f865ca4df12615cf01b547b93209d242899 (diff) | |
download | scummvm-rg350-b9b8045e1fa7a1f26574637e835bd842246908aa.tar.gz scummvm-rg350-b9b8045e1fa7a1f26574637e835bd842246908aa.tar.bz2 scummvm-rg350-b9b8045e1fa7a1f26574637e835bd842246908aa.zip |
moved the console code to gui/console.cpp; make it actually printout something. Note that this is WORK IN PROGRESS! I know it is incomplete, no need to tell me that
svn-id: r5952
Diffstat (limited to 'scumm/dialogs.cpp')
-rw-r--r-- | scumm/dialogs.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index 16b8cc21ba..c115295ca1 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -670,52 +670,6 @@ PauseDialog::PauseDialog(NewGui *gui, Scumm *scumm) { } -#pragma mark - - -DebuggerDialog::DebuggerDialog(NewGui *gui, Scumm *scumm, int width, int height) - : ScummDialog(gui, scumm, 0, 0, width, height) -{ - draw(); -} - -void DebuggerDialog::drawDialog() -{ - //int history_len = cmd_history.size(); - - // Draw box and border - _gui->blendRect(_x, _y, _w, _h, _gui->_bgcolor); - /*_gui->line(_x, _y, _x, _h, _gui->_color); - _gui->line(_w, _y, _w, _y, _gui->_color); - _gui->line(_x, _h, _w, _h, _gui->_shadowcolor);*/ - - _gui->addDirtyRect(_x, _y, _w, _h); - - // Draw items - // ... history_len - ((_h / kLineHeight) * _page) -} - -void DebuggerDialog::handleKeyDown(uint16 ascii, int keycode, int modifiers) { - if ((ascii == '~') || (keycode == 27)) { // Total abort on tilde or escape - close(); - return; - } else if (ascii == '\r' || ascii == '\n') { // Run command on enter/newline - // TODO: Add some kind of pop() method to StringList, - // so we can remove old obsolete entries and not waste memory - cmd_history.push_back(cmd_current); - // _scumm.debugger.parseCommand(cmd_current, (void*)this.printCallback); - cmd_current.clear(); - draw(); - } else if (keycode == 8) { // Backspace - cmd_current.deleteLastChar(); - draw(); - } else if ((keycode >= 31) && (keycode <= 122)) { // Printable ASCII, add to string - cmd_current+=(char)ascii; - draw(); - } else { - debug(2, "Unhandled keycode from DebuggerDialog: %d\n", keycode); - } -} - #ifdef _WIN32_WCE #pragma mark - |