The Battle for Wesnoth  1.19.6+dev
Macros | Functions
fire_event.cpp File Reference
#include "config_cache.hpp"
#include "gui/widgets/grid.hpp"
#include "gui/widgets/label.hpp"
#include <boost/test/unit_test.hpp>
#include <functional>
#include <sstream>
Include dependency graph for fire_event.cpp:

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)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 17 of file fire_event.cpp.

Function Documentation

◆ add_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

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( test_fire_event  )

◆ connect_queue()

template<gui2::event::ui_event E>
void connect_queue ( std::stringstream &  sstr,
gui2::widget widget 
)

◆ connect_signals()

static void connect_signals ( std::stringstream &  sstr,
gui2::widget widget 
)
static
Todo:
Add the rest of the events.

Definition at line 55 of file fire_event.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ print()

static void print ( std::stringstream &  sstr,
const std::string &  queue,
const std::string &  id 
)
static

◆ set_event_order()

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().

◆ validate_draw()

static void validate_draw ( std::stringstream &  sstr)
static
Todo:
Add the rest of the events.

Definition at line 108 of file fire_event.cpp.

References set_event_order().

Referenced by BOOST_AUTO_TEST_CASE().

◆ validate_right_button_down()

static void validate_right_button_down ( std::stringstream &  sstr)
static

Definition at line 113 of file fire_event.cpp.

References set_event_order().

Referenced by BOOST_AUTO_TEST_CASE().