diff options
author | Max Horn | 2002-12-14 20:04:46 +0000 |
---|---|---|
committer | Max Horn | 2002-12-14 20:04:46 +0000 |
commit | 534b4c4be4aa3c07f6e991ef25f36551aff0ff96 (patch) | |
tree | fd2c97f7ddbf0efdcb57fd00de93ddca4740e68e /gui/console.h | |
parent | c5294a352865810dad2f1116216b782d854df7fd (diff) | |
download | scummvm-rg350-534b4c4be4aa3c07f6e991ef25f36551aff0ff96.tar.gz scummvm-rg350-534b4c4be4aa3c07f6e991ef25f36551aff0ff96.tar.bz2 scummvm-rg350-534b4c4be4aa3c07f6e991ef25f36551aff0ff96.zip |
added a scrollbar to console
svn-id: r5964
Diffstat (limited to 'gui/console.h')
-rw-r--r-- | gui/console.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/console.h b/gui/console.h index ab8b748db6..01d0705661 100644 --- a/gui/console.h +++ b/gui/console.h @@ -33,6 +33,8 @@ enum { kCharWidth = 8 }; +class ScrollBarWidget; + class ConsoleDialog : public Dialog { typedef ScummVM::String String; protected: @@ -51,6 +53,8 @@ protected: bool _caretVisible; uint32 _caretTime; + + ScrollBarWidget *_scrollBar; public: ConsoleDialog(NewGui *gui); @@ -61,8 +65,9 @@ public: void drawDialog(); void handleTickle(); + void handleMouseWheel(int x, int y, int direction); void handleKeyDown(uint16 ascii, int keycode, int modifiers); -// void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); + void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); int printf(const char *format, ...); int vprintf(const char *format, va_list argptr); @@ -73,6 +78,7 @@ protected: void drawCaret(bool erase); void print(const char *str); void nextLine(); + void updateScrollBar(); }; #endif |