24#include <boost/dynamic_bitset.hpp>
84 virtual const std::string&
window_id()
const override;
A config object defines a single node in a WML file, with access to child nodes.
void toggle_sorting_selection(CAMPAIGN_ORDER order)
RNG_MODE rng_mode_
whether the player checked the "Deterministic" checkbox.
CAMPAIGN_ORDER current_sorting_
const std::string & get_difficulty() const
void difficulty_selected()
Called when the difficulty selection changes.
static std::string get_selected_rng_option(const menu_button &rng_menu)
Returns the random_mode for the given RNG menu's selected option.
static void select_rng_option(menu_button &rng_menu, const std::string &random_mode)
Selects the given RNG menu's option for the given random_mode.
int choice_
The chosen campaign.
std::vector< std::string > mod_ids_
static const int OPEN_ADDON_MANAGER
RNG_MODE
RNG mode selection values.
boost::dynamic_bitset mod_states_
std::string current_difficulty_
virtual void pre_show() override
Actions to be taken before showing the window.
void sort_campaigns(CAMPAIGN_ORDER order, bool ascending)
bool currently_sorted_asc_
static bool set_difficulty_list(menu_button &diff_menu, const config &campaign, const std::string &selected="")
Fills the given difficulty menu with options from the given campaign.
virtual void post_show() override
Actions to be taken after the window has been shown.
ng::create_engine & engine_
void add_campaign_to_tree(const config &campaign)
void filter_text_changed(const std::string &text)
virtual const std::string & window_id() const override
The ID of the window to build.
void campaign_selected()
Called when an item in the left-hand pane (the tree view) is selected.
RNG_MODE get_rng_mode() const
std::vector< std::string > last_search_words_
std::vector< std::string > page_ids_
Abstract base class for all modal dialogs.