The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions | Variables
lua_gui2.cpp File Reference
#include "lua_gui2.hpp"
#include "gui/auxiliary/old_markup.hpp"
#include "gui/core/canvas.hpp"
#include "gui/core/window_builder.hpp"
#include "gui/dialogs/gamestate_inspector.hpp"
#include "gui/dialogs/lua_interpreter.hpp"
#include "gui/dialogs/wml_message.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "gui/widgets/clickable.hpp"
#include "gui/widgets/control.hpp"
#include "gui/widgets/multi_page.hpp"
#include "gui/widgets/progress_bar.hpp"
#include "gui/widgets/selectable.hpp"
#include "gui/widgets/slider.hpp"
#include "gui/widgets/text_box.hpp"
#include "gui/widgets/tree_view.hpp"
#include "gui/widgets/tree_view_node.hpp"
#include "gui/widgets/widget.hpp"
#include "gui/widgets/window.hpp"
#include "gui/widgets/listbox.hpp"
#include "config.hpp"
#include "log.hpp"
#include "scripting/lua_api.hpp"
#include "scripting/lua_common.hpp"
#include "scripting/lua_types.hpp"
#include "serialization/string_utils.hpp"
#include "tstring.hpp"
#include "utils/functional.hpp"
#include <map>
#include <utility>
#include <vector>
#include "lua/lauxlib.h"
#include "lua/lua.h"
Include dependency graph for lua_gui2.cpp:

Go to the source code of this file.

Namespaces

 lua_gui2
 

Macros

#define ERR_LUA   LOG_STREAM(err, log_scripting_lua)
 

Functions

static gui2::twidgetfind_widget (lua_State *L, int i, bool readonly)
 
int lua_gui2::show_dialog (lua_State *L, CVideo &video)
 Displays a window. More...
 
int lua_gui2::show_message_dialog (lua_State *L, CVideo &video)
 Displays a message window. More...
 
int lua_gui2::show_popup_dialog (lua_State *L, CVideo &video)
 Displays a popup message. More...
 
int lua_gui2::intf_set_dialog_value (lua_State *L)
 Sets the value of a widget on the current dialog. More...
 
int lua_gui2::intf_get_dialog_value (lua_State *L)
 Gets the value of a widget on the current dialog. More...
 
int lua_gui2::intf_remove_dialog_item (lua_State *L)
 Removes an entry from a list. More...
 
int lua_gui2::intf_set_dialog_callback (lua_State *L)
 Sets a callback on a widget of the current dialog. More...
 
int lua_gui2::intf_set_dialog_markup (lua_State *L)
 Enables/disables Pango markup on the label of a widget of the current dialog. More...
 
int lua_gui2::intf_set_dialog_canvas (lua_State *L)
 Sets a canvas on a widget of the current dialog. More...
 
int lua_gui2::intf_set_dialog_focus (lua_State *L)
 Sets a widget to have the focus. More...
 
int lua_gui2::intf_set_dialog_active (lua_State *L)
 Sets a widget's state to active or inactive. More...
 
int lua_gui2::intf_set_dialog_visible (lua_State *L)
 Sets the visiblity of a widget in the current dialog. More...
 
int lua_gui2::show_lua_console (lua_State *, CVideo &video, lua_kernel_base *lk)
 
int lua_gui2::show_gamestate_inspector (CVideo &video, const vconfig &cfg)
 
int lua_gui2::intf_add_dialog_tree_node (lua_State *L)
 Sets a widget's state to active or inactive. More...
 

Variables

static lg::log_domain log_scripting_lua ("scripting/lua")
 
static const char * dlgclbkKey = "dialog callback"
 

Macro Definition Documentation

#define ERR_LUA   LOG_STREAM(err, log_scripting_lua)

Definition at line 62 of file lua_gui2.cpp.

Referenced by lua_gui2::show_message_dialog().

Function Documentation

static gui2::twidget* find_widget ( lua_State L,
int  i,
bool  readonly 
)
static

Variable Documentation

const char* dlgclbkKey = "dialog callback"
static

Definition at line 64 of file lua_gui2.cpp.

Referenced by lua_gui2::intf_set_dialog_callback().

lg::log_domain log_scripting_lua("scripting/lua")
static