The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Typedefs | Functions | Variables
wmi_pager.cpp File Reference
#include "wmi_pager.hpp"
#include "global.hpp"
#include "config.hpp"
#include "game_events/menu_item.hpp"
#include "game_events/wmi_container.hpp"
#include "game_preferences.hpp"
#include "gettext.hpp"
#include <algorithm>
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
#include <cassert>
#include <iterator>
#include <string>
#include <vector>
Include dependency graph for wmi_pager.cpp:

Go to the source code of this file.

Typedefs

typedef boost::shared_ptr
< const
game_events::wml_menu_item
wmi_ptr
 
typedef std::pair< wmi_ptr,
std::string
wmi_pair
 
typedef std::vector< wmi_pair >
::iterator 
wmi_it
 

Functions

static void add_next_page_item (std::vector< boost::shared_ptr< const game_events::wml_menu_item > > &items, std::vector< std::string > &descriptions)
 
static void add_prev_page_item (std::vector< boost::shared_ptr< const game_events::wml_menu_item > > &items, std::vector< std::string > &descriptions)
 
static wmi_ptr select_first (const wmi_pair &p)
 
static std::string select_second (const wmi_pair &p)
 

Variables

static const char * next_id = "__wml_items_next_page"
 
static const char * prev_id = "__wml_items_prev_page"
 

Typedef Documentation

typedef std::vector<wmi_pair>::iterator wmi_it

Definition at line 72 of file wmi_pager.cpp.

typedef std::pair<wmi_ptr, std::string> wmi_pair

Definition at line 71 of file wmi_pager.cpp.

Definition at line 70 of file wmi_pager.cpp.

Function Documentation

static void add_next_page_item ( std::vector< boost::shared_ptr< const game_events::wml_menu_item > > &  items,
std::vector< std::string > &  descriptions 
)
static

Definition at line 38 of file wmi_pager.cpp.

References _(), mp_ui_alerts::items, and next_id.

Referenced by wmi_pager::get_items().

static void add_prev_page_item ( std::vector< boost::shared_ptr< const game_events::wml_menu_item > > &  items,
std::vector< std::string > &  descriptions 
)
static

Definition at line 48 of file wmi_pager.cpp.

References _(), mp_ui_alerts::items, and prev_id.

Referenced by wmi_pager::get_items().

static wmi_ptr select_first ( const wmi_pair p)
static

Definition at line 74 of file wmi_pager.cpp.

Referenced by wmi_pager::get_items().

static std::string select_second ( const wmi_pair p)
static

Definition at line 79 of file wmi_pager.cpp.

Referenced by wmi_pager::get_items().

Variable Documentation

const char* next_id = "__wml_items_next_page"
static

Definition at line 35 of file wmi_pager.cpp.

Referenced by add_next_page_item(), and wmi_pager::capture().

const char* prev_id = "__wml_items_prev_page"
static

Definition at line 36 of file wmi_pager.cpp.

Referenced by add_prev_page_item(), and wmi_pager::capture().