The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
hotkey
hotkey_manager.cpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2003 - 2016 by David White <
[email protected]
>
3
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY.
11
12
See the COPYING file for more details.
13
*/
14
15
#include "
hotkey_manager.hpp
"
16
17
#include "
hotkey/hotkey_item.hpp
"
18
#include "
hotkey/hotkey_command.hpp
"
19
20
21
namespace
hotkey
{
22
23
manager::manager
()
24
{
25
init
();
26
}
27
28
void
manager::init
()
29
{
30
init_hotkey_commands
();
31
}
32
33
void
manager::wipe
()
34
{
35
clear_hotkey_commands
();
36
clear_hotkeys
();
37
delete_all_wml_hotkeys
();
38
}
39
40
manager::~manager
()
41
{
42
wipe
();
43
}
44
45
46
}
hotkey::clear_hotkeys
void clear_hotkeys(const std::string &command)
Unset the command bindings for all hotkeys matching the command.
Definition:
hotkey_item.cpp:375
hotkey::clear_hotkey_commands
void clear_hotkey_commands()
Definition:
hotkey_command.cpp:502
hotkey
Keyboard shortcuts for game actions.
Definition:
controller_base.hpp:54
hotkey::init_hotkey_commands
void init_hotkey_commands()
Definition:
hotkey_command.cpp:488
hotkey::manager::manager
manager()
Definition:
hotkey_manager.cpp:23
hotkey::manager::init
static void init()
Definition:
hotkey_manager.cpp:28
hotkey_manager.hpp
hotkey::manager::wipe
static void wipe()
Definition:
hotkey_manager.cpp:33
hotkey::manager::~manager
~manager()
Definition:
hotkey_manager.cpp:40
hotkey_command.hpp
hotkey::delete_all_wml_hotkeys
void delete_all_wml_hotkeys()
deletes all wml hotkeys, should be called after a game has ended
Definition:
hotkey_command.cpp:464
hotkey_item.hpp
Generated by
1.8.8