Create and display a progress dialog (return nullptr if Services not installed) ! This function makes a "generic" progress dialog, for the case when time to completion cannot be estimated, but some indication of progress is still given */
| 322 | given |
| 323 | */ |
| 324 | inline std::unique_ptr<GenericProgressDialog> MakeGenericProgress( |
| 325 | const WindowPlacement &placement, |
| 326 | const TranslatableString &title, const TranslatableString &message, int style = (ProgressAppModal | ProgressShowElapsedTime | ProgressSmooth)) |
| 327 | { |
| 328 | if (auto p = Get()) |
| 329 | return p->DoMakeGenericProgress(placement, title, message, style); |
| 330 | else |
| 331 | return nullptr; |
| 332 | } |
| 333 | |
| 334 | /*! |
| 335 | * @brief Helper for the update of a task's progress bar when this task is made |
no test coverage detected