1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef M4_GUI_HOTKEYS_H
#define M4_GUI_HOTKEYS_H
#include "m4/m4_types.h"
#include "m4/gui/gui_dialog.h"
namespace M4 {
enum CursorChange {
CURSCHANGE_NONE, CURSCHANGE_NEXT, CURSCHANGE_PREVIOUS, CURSCHANGE_TOGGLE
};
struct Hotkeys {
private:
static Dialog *_teleportDialog;
static Dialog *_changeGlobalDialog;
static int _globalToChange;
private:
static void exit_program(void *, void *);
static void adv_hyperwalk_to_final_destination(void *a, void *b);
static void saveScreenshot(void *, void *);
static void debug_memory_next_column(void *, void *);
static void debug_memory_prev_column(void *, void *);
static void debug_memory_last_column(void *, void *);
static void player_step_up(void *, void *);
static void player_step_down(void *, void *);
static void player_step_left(void *, void *);
static void player_step_right(void *, void *);
static void player_jump_up(void *, void *);
static void player_jump_down(void *, void *);
static void player_jump_left(void *, void *);
static void player_jump_right(void *, void *);
static void player_step(int xDelta, int yDelta);
static void term_next_mode(void *, void *);
static void camera_step_left(void *, void *);
static void camera_step_right(void *, void *);
static void camera_jump_left(void *, void *);
static void camera_jump_right(void *, void *);
static void toggle_inv_visible(void *, void *);
static void toggle_commands_allowed(void *, void *);
static void debug_memory_dumpcore_to_disk(void *, void *);
static void dbg_mem_set_search(void *, void *);
static void toggleInfoDialog(void *, void *);
static void other_cheat_with_inventory_objects(void *, void *); // was O
static void debug_memory_toggle(void *, void *);
static void dbg_pal_toggle(void *, void *);
static void f_io_report(void *, void *);
static void scale_editor_toggle(void *, void *);
static void teleport(void *, void *);
static void teleportOk(void *, void *);
static void teleportCancel(void *, void *);
static void changeGlobal(void *, void *);
static void changeGlobalCancel(void *, void *);
static void changeGlobalChange(void *, void *);
static void changeGlobalDoChange(void *, void *);
static void paint_walk_codes(void *, void *);
static void pal_override(void *a = nullptr, void *b = nullptr);
protected:
virtual void adv_enable_system_hot_keys();
public:
Hotkeys();
virtual ~Hotkeys() {}
virtual void add_hot_keys();
void disable_hot_keys();
static void saveGame(void *, void *);
static void loadGame(void *, void *);
virtual void toggle_through_cursors(CursorChange cursChange = CURSCHANGE_NEXT) = 0;
};
} // End of namespace M4
#endif
|