#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>
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" |
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.
typedef boost::shared_ptr<const game_events::wml_menu_item> wmi_ptr |
Definition at line 70 of file wmi_pager.cpp.
|
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 |
Definition at line 48 of file wmi_pager.cpp.
References _(), mp_ui_alerts::items, and prev_id.
Referenced by wmi_pager::get_items().
Definition at line 74 of file wmi_pager.cpp.
Referenced by wmi_pager::get_items().
|
static |
Definition at line 79 of file wmi_pager.cpp.
Referenced by wmi_pager::get_items().
|
static |
Definition at line 35 of file wmi_pager.cpp.
Referenced by add_next_page_item(), and wmi_pager::capture().
|
static |
Definition at line 36 of file wmi_pager.cpp.
Referenced by add_prev_page_item(), and wmi_pager::capture().