#include <loadinglistener.hpp>
virtual void Loading::Listener::increaseProgress |
( |
size_t |
increase = 1 | ) |
|
|
inlinevirtual |
virtual void Loading::Listener::loadingOff |
( |
| ) |
|
|
inlinevirtual |
virtual void Loading::Listener::loadingOn |
( |
| ) |
|
|
inlinevirtual |
Start a loading sequence. Must call loadingOff() when done.
- Note
- To get the loading screen to actually update, you must call setProgress / increaseProgress periodically.
-
It is best to use the ScopedLoad object instead of using loadingOn()/loadingOff() directly, so that the loading is exception safe.
Reimplemented in MWGui::LoadingScreen.
virtual void Loading::Listener::setLabel |
( |
const std::string & |
label, |
|
|
bool |
important = false |
|
) |
| |
|
inlinevirtual |
Set a text label to show on the loading screen.
- Parameters
-
label | The label |
important | Is the label considered important to show? |
- Note
- "non-important" labels may not show on screen if the loading process went so fast that the implementation decided not to show a loading screen at all. "important" labels will show in a separate message-box if the loading screen was not shown.
Reimplemented in MWGui::LoadingScreen.
virtual void Loading::Listener::setProgress |
( |
size_t |
value | ) |
|
|
inlinevirtual |
virtual void Loading::Listener::setProgressRange |
( |
size_t |
range | ) |
|
|
inlinevirtual |
Set the total range of progress (e.g. the number of objects to load).
Reimplemented in MWGui::LoadingScreen.
The documentation for this class was generated from the following file: