aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/journal.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-18 23:57:08 -0400
committerPaul Gilbert2015-05-18 23:57:08 -0400
commit338fd4697642dac417be53d21cfc537a30f74f3c (patch)
tree789b05107d3eb4d071f2e0401ea1065957f72e98 /engines/sherlock/journal.h
parent7c3ac25ac153a2934ee94c8aa83b72843bd56351 (diff)
downloadscummvm-rg350-338fd4697642dac417be53d21cfc537a30f74f3c.tar.gz
scummvm-rg350-338fd4697642dac417be53d21cfc537a30f74f3c.tar.bz2
scummvm-rg350-338fd4697642dac417be53d21cfc537a30f74f3c.zip
SHERLOCK: Cleanup of Journal::handleEvents
Diffstat (limited to 'engines/sherlock/journal.h')
-rw-r--r--engines/sherlock/journal.h9
1 files changed, 9 insertions, 0 deletions
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);