#include "config_cache.hpp"#include "gui/widgets/grid.hpp"#include "gui/widgets/label.hpp"#include <boost/test/unit_test.hpp>#include <boost/bind.hpp>#include <sstream>
Go to the source code of this file.
Defines | |
| #define | GETTEXT_DOMAIN "wesnoth-lib" |
Functions | |
| static void | print (std::stringstream &sstr, const std::string &queue, const std::string &id) |
| template<gui2::event::tevent E> | |
| void | connect_queue (std::stringstream &sstr, gui2::twidget &widget) |
| static void | connect_signals (std::stringstream &sstr, gui2::twidget &widget) |
| static void | add_widget (gui2::tgrid &grid, gui2::twidget *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 void add_widget | ( | gui2::tgrid & | grid, | |
| gui2::twidget * | widget, | |||
| const std::string & | id, | |||
| const unsigned | row, | |||
| const unsigned | column | |||
| ) | [static] |
Definition at line 78 of file fire_event.cpp.
References gui2::tgrid::HORIZONTAL_GROW_SEND_TO_CLIENT, gui2::tgrid::set_child(), gui2::twidget::set_id(), and gui2::tgrid::VERTICAL_GROW_SEND_TO_CLIENT.
Referenced by BOOST_AUTO_TEST_CASE().


| BOOST_AUTO_TEST_CASE | ( | test_fire_event | ) |
Definition at line 117 of file fire_event.cpp.
References game_config::config_cache::add_define(), add_widget(), gui2::cache, game_config::config_cache::clear_defines(), connect_signals(), gui2::event::DRAW, gui2::event::tdispatcher::fire(), preferences::grid(), game_config::config_cache::instance(), gui2::event::RIGHT_BUTTON_DOWN, gui2::twidget::set_id(), validate_draw(), and validate_right_button_down().

| void connect_queue | ( | std::stringstream & | sstr, | |
| gui2::twidget & | widget | |||
| ) |
Definition at line 38 of file fire_event.cpp.
References gui2::event::tdispatcher::back_child, gui2::event::tdispatcher::back_post_child, gui2::event::tdispatcher::back_pre_child, gui2::event::tdispatcher::connect_signal(), gui2::twidget::id(), and print().

| static void connect_signals | ( | std::stringstream & | sstr, | |
| gui2::twidget & | widget | |||
| ) | [static] |
Definition at line 55 of file fire_event.cpp.
Referenced by BOOST_AUTO_TEST_CASE().

| static void print | ( | std::stringstream & | sstr, | |
| const std::string & | queue, | |||
| const std::string & | id | |||
| ) | [static] |
Definition at line 30 of file fire_event.cpp.
Referenced by connect_queue().

| static std::string set_event_order | ( | ) | [static] |
Definition at line 95 of file fire_event.cpp.
Referenced by validate_draw(), and validate_right_button_down().

| static void validate_draw | ( | std::stringstream & | sstr | ) | [static] |
Definition at line 107 of file fire_event.cpp.
References set_event_order().
Referenced by BOOST_AUTO_TEST_CASE().


| static void validate_right_button_down | ( | std::stringstream & | sstr | ) | [static] |
Definition at line 112 of file fire_event.cpp.
References set_event_order().
Referenced by BOOST_AUTO_TEST_CASE().


| Generated by doxygen 1.7.1 on Thu May 24 2012 01:11:37 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |