25 #ifndef ENGINES_AURORA_LOADPROGRESS_H 26 #define ENGINES_AURORA_LOADPROGRESS_H 28 #include <boost/noncopyable.hpp> 94 #endif // ENGINES_AURORA_LOADPROGRESS_H A class holding an UTF-8 string.
LoadProgress(size_t steps)
Create a load progress display.
double _currentAmount
The accumulated amount.
static Common::UString createProgressbarUpper(size_t length)
size_t _steps
The number of total steps.
size_t _currentStep
The current step we're on.
A simple scoped smart pointer template.
static Common::UString createProgressbarLower(size_t length)
Common::ScopedPtr< Graphics::Aurora::Text > _progressbar
The actual progress bar.
uint32 _startTime
The timestamp the first step happened.
Common::ScopedPtr< Graphics::Aurora::Text > _barUpper
The upper border of the progress bar.
static Common::UString createProgressbar(size_t length, double filled)
Common::ScopedPtr< Graphics::Aurora::Text > _percent
The text containing the current percentage of done-ness.
void step(const Common::UString &description)
Take a step in advancing the progress.
Common::ScopedPtr< Graphics::Aurora::Text > _barLower
The lower border of the progress bar.
Common::ScopedPtr< Graphics::Aurora::Text > _description
The text containing the description of the current step.
static const int kBarLength
The length of the progress bar in characters.
double _stepAmount
The amount to step each time.