Defines | Functions

tests/gui/iterator.cpp File Reference

#include <boost/test/unit_test.hpp>
#include "config_cache.hpp"
#include "gui/auxiliary/iterator/iterator.hpp"
#include "gui/widgets/label.hpp"
#include "gui/widgets/grid.hpp"
#include <iostream>
#include <sstream>
#include <typeinfo>
Include dependency graph for iterator.cpp:

Go to the source code of this file.

Defines

#define GETTEXT_DOMAIN   "wesnoth-lib"

Functions

static std::string top_down_t_t_t_result ()
static std::string bottom_up_t_t_t_result ()
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_iterator)

Define Documentation

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 16 of file iterator.cpp.


Function Documentation

static void add_widget ( gui2::tgrid grid,
gui2::twidget widget,
const std::string &  id,
const unsigned  row,
const unsigned  column 
) [static]

Definition at line 107 of file iterator.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().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOST_AUTO_TEST_CASE ( test_gui2_iterator   ) 
static std::string bottom_up_t_t_t_result (  )  [static]

Definition at line 75 of file iterator.cpp.

Referenced by test_grid().

Here is the caller graph for this function:

template<class T >
static void test_control (  )  [static]

Definition at line 171 of file iterator.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

static void test_grid (  )  [static]

Definition at line 178 of file iterator.cpp.

References add_widget(), bottom_up_t_t_t_result(), preferences::grid(), and top_down_t_t_t_result().

Referenced by BOOST_AUTO_TEST_CASE().

Here is the call graph for this function:

Here is the caller graph for this function:

static std::string top_down_t_t_t_result (  )  [static]

Definition at line 42 of file iterator.cpp.

Referenced by test_grid().

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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