* Explicitly reset progress bar. */
| 47 | * Explicitly reset progress bar. |
| 48 | */ |
| 49 | void ProgressBar::Reset() |
| 50 | { |
| 51 | if (!m_Implementations.empty()) |
| 52 | { |
| 53 | ProgressBarImplementationsListIterator iter; |
| 54 | for (iter = m_Implementations.begin(); iter != m_Implementations.end(); iter++) |
| 55 | { |
| 56 | // set steps to do for all ProgressBarImplementations |
| 57 | if ((*iter) != nullptr) |
| 58 | { |
| 59 | (*iter)->Reset(); |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Adds steps to totalSteps. |