ScummVM API documentation
settings.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_SETTINGS_H
23 #define SHERLOCK_SETTINGS_H
24 
25 #include "common/scummsys.h"
26 
27 namespace Sherlock {
28 
29 class SherlockEngine;
30 
31 namespace Scalpel {
32 
33 class Settings {
34 private:
35  SherlockEngine *_vm;
36 
37  Settings(SherlockEngine *vm) : _vm(vm) {
38  _hotkeyExit = 0;
39  _hotkeyMusic = 0;
40  _hotkeyPortraits = 0;
41  _hotkeyNewFontStyle = 0;
42  _hotkeySoundEffects = 0;
43  _hotkeyWindows = 0;
44  _hotkeyAutoHelp = 0;
45  _hotkeyVoices = 0;
46  _hotkeyFade = 0;
47 
48  memset(_hotkeysIndexed, 0, sizeof(_hotkeysIndexed));
49  }
50 
51  byte _hotkeyExit;
52  byte _hotkeyMusic;
53  byte _hotkeyPortraits;
54  byte _hotkeyNewFontStyle;
55  byte _hotkeySoundEffects;
56  byte _hotkeyWindows;
57  byte _hotkeyAutoHelp;
58  byte _hotkeyVoices;
59  byte _hotkeyFade;
60 
61  byte _hotkeysIndexed[12];
62 
66  void drawInterface(bool flag);
67 
71  int drawButtons(const Common::Point &pt, int key);
72 
73  Common::Rect getButtonRect(int num) const;
74  Common::Point getButtonTextPoint(int num) const;
75  void makeButtonNum(int num, const Common::String &s);
76  void makeButtonNumDisabled(int num, const Common::String &s);
77  bool doesButtonExist(int num) const;
78 
79 public:
86  static void show(SherlockEngine *vm);
87 };
88 
89 } // End of namespace Scalpel
90 
91 } // End of namespace Sherlock
92 
93 #endif
Definition: str.h:59
Definition: animation.h:29
Definition: rect.h:144
Definition: sherlock.h:76
Definition: settings.h:33
Definition: rect.h:45
static void show(SherlockEngine *vm)