#include <boost/test/unit_test.hpp>#include "config_cache.hpp"#include "gui/auxiliary/iterator/walker.hpp"#include "gui/widgets/label.hpp"#include "gui/widgets/grid.hpp"#include <iostream>#include <typeinfo>
Go to the source code of this file.
Defines | |
| #define | GETTEXT_DOMAIN "wesnoth-lib" |
Functions | |
| static void | add_widget (gui2::tgrid &grid, gui2::twidget *widget, const std::string &id, const unsigned row, const unsigned column) |
| template<class T > | |
| static void | test_control () |
| static void | test_grid () |
| BOOST_AUTO_TEST_CASE (test_gui2_visitor) | |
| #define GETTEXT_DOMAIN "wesnoth-lib" |
Definition at line 16 of file visitor.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 28 of file visitor.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 test_grid().


| BOOST_AUTO_TEST_CASE | ( | test_gui2_visitor | ) |
Definition at line 154 of file visitor.cpp.
References game_config::config_cache::add_define(), gui2::cache, game_config::config_cache::clear_defines(), game_config::config_cache::instance(), test_control(), and test_grid().

| static void test_control | ( | ) | [static] |
Definition at line 84 of file visitor.cpp.
Referenced by BOOST_AUTO_TEST_CASE().

| static void test_grid | ( | ) | [static] |
Definition at line 91 of file visitor.cpp.
References add_widget(), gui2::iterator::twalker_::child, gui2::tgrid::create_walker(), and preferences::grid().
Referenced by BOOST_AUTO_TEST_CASE().


| Generated by doxygen 1.7.1 on Fri May 25 2012 01:10:35 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |