Routines for showing the help-dialog. More...
#include "help/help.hpp"
#include "config.hpp"
#include "events.hpp"
#include "font/constants.hpp"
#include "preferences/preferences.hpp"
#include "game_config_manager.hpp"
#include "gettext.hpp"
#include "gui/dialogs/help_browser.hpp"
#include "gui/widgets/settings.hpp"
#include "help/help_impl.hpp"
#include "key.hpp"
#include "log.hpp"
#include "terrain/terrain.hpp"
#include "units/unit.hpp"
#include "units/types.hpp"
#include "video.hpp"
#include "widgets/button.hpp"
#include <cassert>
#include <algorithm>
#include <vector>
Go to the source code of this file.
Namespaces | |
help | |
Macros | |
#define | GETTEXT_DOMAIN "wesnoth-help" |
#define | WRN_DP LOG_STREAM(warn, log_display) |
#define | ERR_HELP LOG_STREAM(err, log_help) |
Functions | |
void | help::show_with_toplevel (const section &toplevel, const std::string &show_topic="") |
Open a help dialog using a specified toplevel. More... | |
void | help::show_unit_description (const unit &u) |
void | help::show_terrain_description (const terrain_type &t) |
void | help::show_unit_description (const unit_type &t) |
std::unique_ptr< help_manager > | help::ensure_cache_lifecycle () |
Helper function for any of the show_help functions to control the cache's lifecycle; can also be used by any other caller that wants to ensure the cache is reused over multiple show_help calls. More... | |
void | help::show_help (const std::string &show_topic) |
Open the help browser, show topic with id show_topic. More... | |
void | help::show_unit_help (const std::string &show_topic, bool has_variations, bool hidden) |
Open the help browser, show unit with id unit_id. More... | |
void | help::show_terrain_help (const std::string &show_topic, bool hidden) |
Open the help browser, show terrain with id terrain_id. More... | |
void | help::show_variation_help (const std::string &unit, const std::string &variation, bool hidden) |
Open the help browser, show the variation of the unit matching. More... | |
void | help::init_help () |
Variables | |
static lg::log_domain | log_display ("display") |
static lg::log_domain | log_help ("help") |
Routines for showing the help-dialog.
Definition in file help.cpp.
#define ERR_HELP LOG_STREAM(err, log_help) |
#define WRN_DP LOG_STREAM(warn, log_display) |
|
static |
|
static |