ScummVM API documentation
diarypages.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 STARK_UI_MENU_DIARY_PAGES_H
23 #define STARK_UI_MENU_DIARY_PAGES_H
24 
25 #include "engines/stark/ui/menu/locationscreen.h"
26 
27 namespace Stark {
28 
33 public:
34  DiaryPagesScreen(Gfx::Driver *gfx, Cursor *cursor);
35  virtual ~DiaryPagesScreen();
36 
37  // StaticLocationScreen API
38  void open() override;
39  void close() override;
40 
41 private:
42  enum WidgetIndex {
43  kWidgetBack = 3,
44  kWidgetNext = 4
45  };
46 
47  uint _page;
48 
49  void backHandler();
50 
51  void prevPageHandler() { changePage(_page - 1); }
52  void nextPageHandler() { changePage(_page + 1); }
53  void changePage(uint page);
54 };
55 
60 public:
61  DiaryWidget(uint diaryIndex);
62  ~DiaryWidget() {}
63 };
64 
65 } // End of namespace Stark
66 
67 #endif // STARK_UI_MENU_DIARY_PAGES_H
Definition: locationscreen.h:92
Definition: diarypages.h:59
void close() override
Definition: diarypages.h:32
Definition: driver.h:44
Definition: cursor.h:45
Definition: locationscreen.h:46
Definition: console.h:27
void open() override