The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Functions | Variables
dialogs.cpp File Reference

Various dialogs: advance_unit, show_objectives, save+load game. More...

#include "global.hpp"
#include "actions/attack.hpp"
#include "actions/undo.hpp"
#include "dialogs.hpp"
#include "format_time_summary.hpp"
#include "game_display.hpp"
#include "game_preferences.hpp"
#include "gui/dialogs/game_delete.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/widgets/window.hpp"
#include "gettext.hpp"
#include "help/help.hpp"
#include "help/help_button.hpp"
#include "language.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "map/exception.hpp"
#include "marked-up_text.hpp"
#include "menu_events.hpp"
#include "mouse_handler_base.hpp"
#include "minimap.hpp"
#include "recall_list_manager.hpp"
#include "replay.hpp"
#include "replay_helper.hpp"
#include "resources.hpp"
#include "savegame.hpp"
#include "save_index.hpp"
#include "strftime.hpp"
#include "synced_context.hpp"
#include "terrain/type_data.hpp"
#include "units/unit.hpp"
#include "units/animation.hpp"
#include "units/helper.hpp"
#include "units/types.hpp"
#include "wml_separators.hpp"
#include "widgets/progressbar.hpp"
#include "wml_exception.hpp"
#include "formula/string_utils.hpp"
#include "gui/dialogs/game_save.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "gui/dialogs/network_transmission.hpp"
#include "ai/lua/aspect_advancements.hpp"
#include "wesnothd_connection.hpp"
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
#include <clocale>
Include dependency graph for dialogs.cpp:

Go to the source code of this file.

Classes

struct  dialogs::read_wesnothd_connection_data
 
struct  dialogs::connect_wesnothd_connection_data
 

Namespaces

 dialogs
 Various uncategorised dialogs.
 

Macros

#define LOG_NG   LOG_STREAM(info, log_engine)
 
#define ERR_NG   LOG_STREAM(err, log_engine)
 
#define LOG_DP   LOG_STREAM(info, log_display)
 
#define ERR_G   LOG_STREAM(err, lg::general)
 
#define ERR_CF   LOG_STREAM(err, log_config)
 

Functions

int dialogs::advance_unit_dialog (const map_location &loc)
 Lets the user to select a unit advancement. More...
 
bool dialogs::animate_unit_advancement (const map_location &loc, size_t choice, const bool &fire_event=true, const bool animate=true)
 Actually levels a unit up. More...
 
void dialogs::show_unit_list (display &gui)
 
void dialogs::show_objectives (const std::string &scenarioname, const std::string &objectives)
 
int dialogs::recruit_dialog (display &disp, std::vector< const unit_type * > &units, const std::vector< std::string > &items, int side, const std::string &title_suffix)
 
int dialogs::recall_dialog (display &disp, const boost::shared_ptr< std::vector< unit_const_ptr > > &units, int side, const std::string &title_suffix, const int team_recall_cost)
 
static void dialogs::network_transmission_dialog (CVideo &video, gui2::tnetwork_transmission::connection_data &conn, const std::string &msg1, const std::string &msg2)
 
bool dialogs::network_receive_dialog (CVideo &video, const std::string &msg, config &cfg, twesnothd_connection &wesnothd_connection)
 
std::unique_ptr
< twesnothd_connection
dialogs::network_connect_dialog (CVideo &video, const std::string &msg, const std::string &hostname, int port)
 

Variables

static lg::log_domain log_engine ("engine")
 
static lg::log_domain log_display ("display")
 
static lg::log_domain log_config ("config")
 

Detailed Description

Various dialogs: advance_unit, show_objectives, save+load game.

Definition in file dialogs.cpp.

Macro Definition Documentation

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 83 of file dialogs.cpp.

#define ERR_G   LOG_STREAM(err, lg::general)

Definition at line 80 of file dialogs.cpp.

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 75 of file dialogs.cpp.

#define LOG_DP   LOG_STREAM(info, log_display)

Definition at line 78 of file dialogs.cpp.

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 74 of file dialogs.cpp.

Variable Documentation

display& disp_

Definition at line 98 of file dialogs.cpp.

Definition at line 99 of file dialogs.cpp.

lg::log_domain log_config("config")
static
lg::log_domain log_display("display")
static
lg::log_domain log_engine("engine")
static
boost::shared_ptr<std::vector<unit_const_ptr > > units_