ScummVM API documentation
tattoo_journal.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef SHERLOCK_TATTOO_JOURNAL_H
23 #define SHERLOCK_TATTOO_JOURNAL_H
24 
25 #include "sherlock/journal.h"
26 #include "sherlock/image_file.h"
27 
28 namespace Sherlock {
29 
30 namespace Tattoo {
31 
32 enum JournalHighlight {
33  JH_NONE = -1, JH_CLOSE = 0, JH_SEARCH = 1, JH_SAVE = 2,
34  JH_SCROLL_LEFT = 3, JH_PAGE_LEFT = 4, JH_PAGE_RIGHT = 5, JH_SCROLL_RIGHT = 6, JH_THUMBNAIL = 7
35 };
36 
37 class TattooJournal : public Journal {
38 private:
39  ImageFile *_journalImages;
40  int _selector, _oldSelector;
41  bool _wait;
42  bool _exitJournal;
43  uint32 _scrollingTimer;
44  int _savedIndex, _savedSub, _savedPage;
45 
49  void loadLocations();
50 
55  void drawControls(int mode);
56 
60  void highlightJournalControls(bool slamIt);
61 
65  void highlightSearchControls(bool slamIt);
66 
67  void drawScrollBar();
68 
72  void handleKeyboardEvents();
73 
77  void handleButtons();
78 
82  void disableControls();
83 
87  int getFindName(bool printError);
88 
92  void saveJournal();
93 
97  void showSavedDialog();
98 public:
100  ~TattooJournal() override {}
101 
105  void show();
106 public:
110  void drawFrame() override;
111 
116  void record(int converseNum, int statementNum, bool replyOnly = false) override;
117 };
118 
119 } // End of namespace Tattoo
120 
121 } // End of namespace Sherlock
122 
123 #endif
Definition: animation.h:29
Definition: tattoo_journal.h:37
void record(int converseNum, int statementNum, bool replyOnly=false) override
Definition: sherlock.h:76
Definition: journal.h:50
Definition: image_file.h:78