The Battle for Wesnoth  1.15.0+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 "cursor.hpp"
#include "events.hpp"
#include "floating_label.hpp"
#include "formula/callable.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "gui/auxiliary/typed_formula.hpp"
#include "gui/auxiliary/find_widget.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/title_screen.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 "preferences/general.hpp"
#include "preferences/display.hpp"
#include "sdl/rect.hpp"
#include "sdl/surface.hpp"
#include "formula/variant.hpp"
#include "video.hpp"
#include "wml_exception.hpp"
#include "sdl/userevent.hpp"
#include "utils/functional.hpp"
#include <algorithm>
#include <iterator>
#include <stdexcept>
Include dependency graph for window.cpp:

Go to the source code of this file.

Classes

class  gui2::implementation::builder_window
 

Namespaces

 wfl
 
 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 + ':'
 

Functions

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

Variables

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

Detailed Description

Implementation of window.hpp.

Definition in file window.cpp.

Macro Definition Documentation

◆ ERR_GUI

#define ERR_GUI   LOG_STREAM(err, log_gui)

Definition at line 74 of file window.cpp.

Referenced by gui2::window::add_linked_widget().

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 20 of file window.cpp.

◆ LOG_HEADER

#define LOG_HEADER   LOG_SCOPE_HEADER + ':'

◆ LOG_IMPL_HEADER

#define LOG_IMPL_HEADER   LOG_IMPL_SCOPE_HEADER + ':'

Definition at line 81 of file window.cpp.

Referenced by gui2::window_implementation::layout().

◆ LOG_IMPL_SCOPE_HEADER

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

Definition at line 79 of file window.cpp.

Referenced by gui2::window_implementation::layout().

◆ LOG_SCOPE_HEADER

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

Definition at line 76 of file window.cpp.

Referenced by gui2::window::layout(), and gui2::window::show().

Variable Documentation

◆ log_gui

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

◆ windows_

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

Definition at line 212 of file window.cpp.