25 #include <boost/dynamic_bitset.hpp>
31 class selectable_item;
86 virtual const std::string&
window_id()
const override;
111 template<
void(addon_manager::*fptr)(const addon_info& addon)>
117 execute_action_on_selected_addon<&addon_manager::install_addon>();
123 execute_action_on_selected_addon<&addon_manager::uninstall_addon>();
129 execute_action_on_selected_addon<&addon_manager::update_addon>();
135 execute_action_on_selected_addon<&addon_manager::publish_addon>();
141 execute_action_on_selected_addon<&addon_manager::delete_addon>();
147 execute_action_on_selected_addon<&addon_manager::execute_default_action>();
Add-ons (campaignd) client class.
A config object defines a single node in a WML file, with access to child nodes.
std::function< bool(const addon_info &, const addon_info &)> addon_sort_func
Shows the list of addons on the server available for installation.
void uninstall_addon(const addon_info &addon)
void on_order_changed(unsigned int sort_column, sort_order::type order)
static const std::vector< std::pair< ADDON_STATUS_FILTER, std::string > > status_filter_types_
boost::dynamic_bitset get_lang_filter_visibility() const
virtual const std::string & window_id() const override
The ID of the window to build.
boost::dynamic_bitset get_status_filter_visibility() const
void update_selected_addon()
void execute_default_action(const addon_info &addon)
Called when the player double-clicks an add-on.
std::vector< std::pair< int, std::string > > language_filter_types_
void execute_default_action_on_selected_addon()
boost::dynamic_bitset get_name_filter_visibility() const
void toggle_details(button &btn, stacked_widget &stk)
void reload_list_and_reselect_item(const std::string id)
void delete_addon(const addon_info &addon)
Performs all backend and UI actions for taking down the specified add-on.
addon_manager(addons_client &client)
config cfg_
Config which contains the list with the campaigns.
boost::dynamic_bitset get_type_filter_visibility() const
void install_selected_addon()
void delete_selected_addon()
void execute_action_on_selected_addon()
addons_tracking_list tracking_info_
static const std::vector< addon_order > all_orders_
void uninstall_selected_addon()
boost::dynamic_bitset get_tag_filter_visibility() const
void publish_selected_addon()
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
static const std::vector< std::pair< ADDON_TYPE, std::string > > type_filter_types_
bool get_need_wml_cache_refresh() const
void install_addon(const addon_info &addon)
void update_addon(const addon_info &addon)
std::vector< selectable_item * > orders_
bool need_wml_cache_refresh_
void publish_addon(const addon_info &addon)
Performs all backend and UI actions for publishing the specified add-on.
void on_selected_version_change()
Abstract base class for all modal dialogs.
A label displays a text, the text can be wrapped but no scrollbars are provided.
base class of top level items, the only item which needs to store the final canvases to draw on.
Networked add-ons (campaignd) client interface.
std::map< std::string, addon_info > addons_list
Various uncategorised dialogs.
std::map< std::string, addon_tracking_info > addons_tracking_list
addon_list::addon_sort_func sort_func_desc
addon_list::addon_sort_func sort_func_asc
std::string as_preference
The value used in the preferences file.
addon_order(std::string label_, std::string as_preference_, int column, addon_list::addon_sort_func sort_func_asc_, addon_list::addon_sort_func sort_func_desc_)