The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
help
help_button.hpp
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
#ifndef HELP_BUTTON_HPP
16
#define HELP_BUTTON_HPP
17
#include "
global.hpp
"
18
#include "
hotkey/command_executor.hpp
"
19
#include "
construct_dialog.hpp
"
20
21
class
config
;
22
class
CVideo
;
23
24
namespace
help
{
25
26
class
help_button
:
public
gui::dialog_button
,
public
hotkey::command_executor
{
27
public
:
28
help_button
(
CVideo
&
video
,
const
std::string
&help_topic);
29
~help_button
();
30
int
action
(
gui::dialog_process_info
&
info
);
31
std::string
topic
()
const
{
return
topic_
; }
32
void
join
();
33
void
leave
();
34
CVideo
&
get_video
()
override
{
return
video_
; }
35
private
:
36
void
show_help
();
37
bool
can_execute_command
(
const
hotkey::hotkey_command
& command,
int
/*index*/
=-1)
const
;
38
39
CVideo
&
video_
;
40
const
std::string
topic_
;
41
hotkey::basic_handler
*
help_hand_
;
42
};
43
44
}
// end namespace help
45
46
#endif
help::help_button::show_help
void show_help()
Definition:
help_button.cpp:43
help::help_button::~help_button
~help_button()
Definition:
help_button.cpp:31
help::help_button::join
void join()
Definition:
help_button.cpp:54
help::help_button::help_button
help_button(CVideo &video, const std::string &help_topic)
Definition:
help_button.cpp:27
lg::info
logger & info()
Definition:
log.cpp:91
CVideo
Definition:
video.hpp:58
help::help_button
Definition:
help_button.hpp:26
gui::widget::video
CVideo & video() const
Definition:
widget.hpp:83
help::help_button::get_video
CVideo & get_video() override
Definition:
help_button.hpp:34
hotkey::hotkey_command
Stores all information related to functions that can be bound to hotkeys.
Definition:
hotkey_command.hpp:195
construct_dialog.hpp
hotkey::command_executor
Definition:
command_executor.hpp:31
help::help_button::help_hand_
hotkey::basic_handler * help_hand_
Definition:
help_button.hpp:41
gui::dialog_button
Definition:
construct_dialog.hpp:151
gui::dialog_process_info
Definition:
construct_dialog.hpp:27
help::help_button::topic_
const std::string topic_
Definition:
help_button.hpp:40
help::help_button::action
int action(gui::dialog_process_info &info)
Definition:
help_button.cpp:35
hotkey::basic_handler
Definition:
command_executor.hpp:173
help::help_button::can_execute_command
bool can_execute_command(const hotkey::hotkey_command &command, int=-1) const
Definition:
help_button.cpp:48
global.hpp
help::help_button::leave
void leave()
Definition:
help_button.cpp:62
help::help_button::video_
CVideo & video_
Definition:
help_button.hpp:39
help
Definition:
help.cpp:57
config
A config object defines a single node in a WML file, with access to child nodes.
Definition:
config.hpp:83
string
GLsizei const GLcharARB ** string
Definition:
glew.h:4503
help::help_button::topic
std::string topic() const
Definition:
help_button.hpp:31
command_executor.hpp
Generated by
1.8.8