28 class selectable_item;
68 virtual const std::string&
window_id()
const override;
93 template<
void(addon_manager::*fptr)(const addon_info& addon)>
99 execute_action_on_selected_addon<&addon_manager::install_addon>();
105 execute_action_on_selected_addon<&addon_manager::uninstall_addon>();
111 execute_action_on_selected_addon<&addon_manager::update_addon>();
117 execute_action_on_selected_addon<&addon_manager::publish_addon>();
123 execute_action_on_selected_addon<&addon_manager::delete_addon>();
129 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
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_
virtual void pre_show() override
Actions to be taken before showing the window.
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()
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.
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_)