From 338fd4697642dac417be53d21cfc537a30f74f3c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 18 May 2015 23:57:08 -0400 Subject: SHERLOCK: Cleanup of Journal::handleEvents --- engines/sherlock/journal.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines/sherlock/journal.h') diff --git a/engines/sherlock/journal.h b/engines/sherlock/journal.h index 026579bac2..54bc9457cf 100644 --- a/engines/sherlock/journal.h +++ b/engines/sherlock/journal.h @@ -25,6 +25,7 @@ #include "common/scummsys.h" #include "common/array.h" +#include "common/rect.h" #include "common/serializer.h" #include "common/str-array.h" #include "common/stream.h" @@ -34,6 +35,12 @@ namespace Sherlock { #define JOURNAL_MAX_WIDTH 230 #define JOURNAL_MAX_CHARS 80 +enum JournalButton { + BTN_NONE, BTN_EXIT, BTN_BACK10, BTN_UP, BTN_DOWN, BTN_AHEAD110, BTN_SEARCH, + BTN_FIRST_PAGE, BTN_LAST_PAGE, BTN_PRINT_TEXT +}; + + struct JournalEntry { int _converseNum; bool _replyOnly; @@ -71,6 +78,8 @@ private: int getSearchString(bool printError); void drawJournalFrame(); + + JournalButton getHighlightedButton(const Common::Point &pt); public: Journal(SherlockEngine *vm); -- cgit v1.2.3