1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Separate plOperationProgress titles and statuses.

Now we render titles above the progress bar and the status below (in the
same color as the progress bar!). Also, introduce a new info field that is
guaranteed to be right justified.
This commit is contained in:
2013-11-24 17:42:37 -05:00
parent 7da0467609
commit 275f15087c
3 changed files with 46 additions and 69 deletions

View File

@ -76,6 +76,7 @@ class plOperationProgress
float fValue, fMax;
plString fTitle;
plString fStatusText;
plString fInfoText;
uint32_t fContext;
double fStartTime;
@ -113,6 +114,7 @@ class plOperationProgress
float GetProgress() const { return fValue; }
plString GetTitle() const { return fTitle; }
plString GetStatusText() const { return fStatusText; }
plString GetInfoText() const { return fInfoText; }
uint32_t GetContext() const { return fContext; }
uint32_t GetElapsedSecs() { return fElapsedSecs; }
uint32_t GetRemainingSecs() { return fRemainingSecs; }
@ -127,7 +129,10 @@ class plOperationProgress
// Set the length
void SetLength( float length );
/** Sets the progress bar's status text */
/** Sets the progress bar's right justified info text */
void SetInfoText(const plString& info) { fInfoText = info; }
/** Sets the progress bar's left justified status text */
void SetStatusText(const plString& status) { fStatusText = status; }
/** Sets the progress bar's title */