The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions
window_builder.cpp File Reference
#include "gui/core/window_builder.hpp"
#include "asserts.hpp"
#include "gettext.hpp"
#include "gui/core/log.hpp"
#include "gui/core/window_builder/helper.hpp"
#include "gui/core/window_builder/instance.hpp"
#include "gui/widgets/button.hpp"
#include "gui/widgets/combobox.hpp"
#include "gui/widgets/drawing.hpp"
#include "gui/widgets/horizontal_scrollbar.hpp"
#include "gui/widgets/image.hpp"
#include "gui/widgets/label.hpp"
#include "gui/widgets/matrix.hpp"
#include "gui/widgets/minimap.hpp"
#include "gui/widgets/pane.hpp"
#include "gui/widgets/password_box.hpp"
#include "gui/widgets/repeating_button.hpp"
#include "gui/widgets/scroll_label.hpp"
#include "gui/widgets/scrollbar_panel.hpp"
#include "gui/widgets/settings.hpp"
#include "gui/widgets/slider.hpp"
#include "gui/widgets/stacked_widget.hpp"
#include "gui/widgets/toggle_button.hpp"
#include "gui/widgets/unit_preview_pane.hpp"
#include "gui/widgets/vertical_scrollbar.hpp"
#include "gui/widgets/viewport.hpp"
#include "gui/widgets/window.hpp"
#include "formula/string_utils.hpp"
#include "wml_exception.hpp"
#include "utils/functional.hpp"
Include dependency graph for window_builder.cpp:

Go to the source code of this file.

Namespaces

 gui2
 A class inherited from ttext_box that displays its input as stars.
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define TRY(name)
 

Functions

static std::map< std::string,
std::function
< tbuilder_widget_ptr(config)> > & 
gui2::builder_widget_lookup ()
 
twindow * gui2::build (CVideo &video, const twindow_builder::tresolution *res)
 Builds a window. More...
 
twindow * gui2::build (CVideo &video, const std::string &type)
 Builds a window. More...
 
void gui2::register_builder_widget (const std::string &id, std::function< tbuilder_widget_ptr(config)> functor)
 Registers a widget to be build. More...
 
tbuilder_widget_ptr gui2::create_builder_widget (const config &cfg)
 Create a widget builder. More...
 

Macro Definition Documentation

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file window_builder.cpp.

#define TRY (   name)
Value:
do { \
if(const config& c = cfg.child(#name)) { \
tbuilder_widget_ptr p = new implementation::tbuilder_##name(c); \
assert(false); \
} \
} while(0)
const GLfloat * c
Definition: glew.h:12741
GLfloat GLfloat p
Definition: glew.h:12766
GLuint const GLchar * name
Definition: glew.h:1782
boost::intrusive_ptr< tbuilder_widget > tbuilder_widget_ptr
config & child(const std::string &key, int n=0)
Returns the nth child with the given key, or a reference to an invalid config if there is none...
Definition: config.cpp:658
CALLABLE_WRAPPER_INPUT_END if(key=="terrain")
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:83

Referenced by gui2::create_builder_widget().