The Battle for Wesnoth  1.19.4+dev
Classes | Namespaces | Macros | Functions | Variables
window.cpp File Reference

Implementation of window.hpp. More...

#include "gui/widgets/window_private.hpp"
#include "config.hpp"
#include "draw.hpp"
#include "events.hpp"
#include "formula/callable.hpp"
#include "formula/string_utils.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "wml_exception.hpp"
#include "gui/auxiliary/typed_formula.hpp"
#include "gui/core/event/distributor.hpp"
#include "gui/core/event/handler.hpp"
#include "gui/core/event/message.hpp"
#include "gui/core/log.hpp"
#include "gui/core/layout_exception.hpp"
#include "sdl/point.hpp"
#include "gui/core/window_builder.hpp"
#include "gui/dialogs/tooltip.hpp"
#include "gui/widgets/button.hpp"
#include "gui/widgets/container_base.hpp"
#include "gui/widgets/text_box_base.hpp"
#include "gui/core/register_widget.hpp"
#include "gui/widgets/grid.hpp"
#include "gui/widgets/helper.hpp"
#include "gui/widgets/panel.hpp"
#include "gui/widgets/settings.hpp"
#include "gui/widgets/widget.hpp"
#include "gui/widgets/window.hpp"
#include "sdl/rect.hpp"
#include "sdl/texture.hpp"
#include "formula/variant.hpp"
#include "video.hpp"
#include "sdl/userevent.hpp"
#include "sdl/input.hpp"
#include <functional>
#include <algorithm>
Include dependency graph for window.cpp:

Go to the source code of this file.

Classes

class  gui2::implementation::builder_window
 

Namespaces

 gui2
 Generic file dialog.
 
 gui2::implementation
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define ERR_GUI   LOG_STREAM(err, log_gui)
 
#define LOG_SCOPE_HEADER   get_control_type() + " [" + id() + "] " + __func__
 
#define LOG_HEADER   LOG_SCOPE_HEADER + ':'
 
#define LOG_IMPL_SCOPE_HEADER    window.get_control_type() + " [" + window.id() + "] " + __func__
 
#define LOG_IMPL_HEADER   LOG_IMPL_SCOPE_HEADER + ':'
 
#define DBG_DP   LOG_STREAM(debug, log_display)
 
#define LOG_DP   LOG_STREAM(info, log_display)
 
#define WRN_DP   LOG_STREAM(warn, log_display)
 

Functions

static bool gui2::is_active (const widget *wgt)
 

Variables

static lg::log_domain log_gui ("gui/layout")
 
static lg::log_domain log_display ("display")
 

Detailed Description

Implementation of window.hpp.

Definition in file window.cpp.

Macro Definition Documentation

◆ DBG_DP

#define DBG_DP   LOG_STREAM(debug, log_display)

Definition at line 79 of file window.cpp.

◆ ERR_GUI

#define ERR_GUI   LOG_STREAM(err, log_gui)

Definition at line 69 of file window.cpp.

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 21 of file window.cpp.

◆ LOG_DP

#define LOG_DP   LOG_STREAM(info, log_display)

Definition at line 80 of file window.cpp.

◆ LOG_HEADER

#define LOG_HEADER   LOG_SCOPE_HEADER + ':'

Definition at line 72 of file window.cpp.

◆ LOG_IMPL_HEADER

#define LOG_IMPL_HEADER   LOG_IMPL_SCOPE_HEADER + ':'

Definition at line 76 of file window.cpp.

◆ LOG_IMPL_SCOPE_HEADER

#define LOG_IMPL_SCOPE_HEADER    window.get_control_type() + " [" + window.id() + "] " + __func__

Definition at line 74 of file window.cpp.

◆ LOG_SCOPE_HEADER

#define LOG_SCOPE_HEADER   get_control_type() + " [" + id() + "] " + __func__

Definition at line 71 of file window.cpp.

◆ WRN_DP

#define WRN_DP   LOG_STREAM(warn, log_display)

Definition at line 81 of file window.cpp.

Variable Documentation

◆ log_display

lg::log_domain log_display("display") ( "display"  )
static

◆ log_gui

lg::log_domain log_gui("gui/layout") ( "gui/layout"  )
static

◆ windows_

std::map<unsigned, window*> windows_
private

Definition at line 191 of file window.cpp.