18#ifndef HEADER_ADDONS_PACK_HPP
19#define HEADER_ADDONS_PACK_HPP
21#include "guiengine/widgets.hpp"
22#include "guiengine/modaldialog.hpp"
23#include "utils/cpp2011.hpp"
45 virtual GUIEngine::EventPropagation
processEvent(
const std::string& event_source) OVERRIDE;
47 virtual
void init() OVERRIDE;
50 static
void install(const std::
string& name);
51 static
void uninstall(const std::
string& name,
bool force_remove_skin = false);
52 static
void uninstallByName(const std::
string& name,
bool force_clear = false);
Definition: addons_pack.cpp:46
Definition: addons_pack.hpp:31
void onUpdate(float delta) OVERRIDE
Override to be notified of updates.
Definition: addons_pack.cpp:199
virtual GUIEngine::EventPropagation processEvent(const std::string &event_source) OVERRIDE
Returns whether to block event propagation (usually, you will want to block events you processed)
Definition: addons_pack.cpp:172
void stopDownload()
This function is called when the user click on 'Back', 'Cancel' or press escape.
Definition: addons_pack.cpp:240
std::shared_ptr< AddonsPackRequest > m_download_request
A pointer to the download request, which gives access to the progress of a download.
Definition: addons_pack.hpp:41
virtual void init() OVERRIDE
Optional callback invoked after widgets have been add()ed.
Definition: addons_pack.cpp:159
virtual bool onEscapePressed() OVERRIDE
Override to change what happens on escape pressed.
Definition: addons_pack.cpp:165
virtual void beforeAddingWidgets() OVERRIDE
Optional callback invoked very early, before widgets have been added (contrast with init(),...
Definition: addons_pack.cpp:153
Abstract base class representing a modal dialog.
Definition: modaldialog.hpp:56