#include "config_cache.hpp"
#include "gui/widgets/grid.hpp"
#include "gui/widgets/label.hpp"
#include <boost/test/unit_test.hpp>
#include <functional>
#include <sstream>
Go to the source code of this file.
Macros | |
#define | GETTEXT_DOMAIN "wesnoth-lib" |
Functions | |
static void | print (std::stringstream &sstr, const std::string &queue, const std::string &id) |
template<gui2::event::ui_event E> | |
void | connect_queue (std::stringstream &sstr, gui2::widget &widget) |
static void | connect_signals (std::stringstream &sstr, gui2::widget &widget) |
static void | add_widget (gui2::grid &grid, std::unique_ptr< gui2::widget > widget, const std::string &id, const unsigned row, const unsigned column) |
static std::string | set_event_order () |
static void | validate_draw (std::stringstream &sstr) |
static void | validate_right_button_down (std::stringstream &sstr) |
BOOST_AUTO_TEST_CASE (test_fire_event) | |
#define GETTEXT_DOMAIN "wesnoth-lib" |
Definition at line 17 of file fire_event.cpp.
|
static |
Definition at line 78 of file fire_event.cpp.
References gui2::grid::HORIZONTAL_GROW_SEND_TO_CLIENT, gui2::grid::set_child(), and gui2::grid::VERTICAL_GROW_SEND_TO_CLIENT.
Referenced by BOOST_AUTO_TEST_CASE().
BOOST_AUTO_TEST_CASE | ( | test_fire_event | ) |
Definition at line 118 of file fire_event.cpp.
References game_config::config_cache::add_define(), add_widget(), game_config::config_cache::clear_defines(), connect_signals(), gui2::event::DRAW, gui2::event::dispatcher::fire(), game_config::config_cache::instance(), gui2::event::RIGHT_BUTTON_DOWN, gui2::widget::set_id(), validate_draw(), and validate_right_button_down().
void connect_queue | ( | std::stringstream & | sstr, |
gui2::widget & | widget | ||
) |
Definition at line 38 of file fire_event.cpp.
References gui2::event::dispatcher::back_child, gui2::event::dispatcher::back_post_child, gui2::event::dispatcher::back_pre_child, gui2::event::dispatcher::connect_signal(), gui2::widget::id(), and print().
|
static |
Definition at line 55 of file fire_event.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 30 of file fire_event.cpp.
Referenced by connect_queue(), events::console_handler::do_controller(), events::console_handler::do_debug(), events::console_handler::do_droid(), events::console_handler::do_nodebug(), events::console_handler::do_set_alias(), events::console_handler::do_toggle_whiteboard(), and events::console_handler::do_unsafe_lua().
|
static |
Definition at line 95 of file fire_event.cpp.
Referenced by validate_draw(), and validate_right_button_down().
|
static |
Definition at line 108 of file fire_event.cpp.
References set_event_order().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 113 of file fire_event.cpp.
References set_event_order().
Referenced by BOOST_AUTO_TEST_CASE().