|
ACF $AcfVersion:0$
|
Progress dialog that displays progress of subtasks. More...
#include <CSubtaskProgressDialog.h>
Public Types | |
| typedef QDialog | BaseClass |
Public Types inherited from ibase::CCumulatedProgressManagerBase | |
| enum class | TaskStatus { Created , Running , Finished } |
Signals | |
| void | OverallProgressChanged (int progress) |
| Signal emitted when overall progress changes. | |
| void | SubtasksUpdated () |
| Signal emitted when subtask list or progress changes. | |
Public Member Functions | |
| CSubtaskProgressDialog (const QString &title, const QString &defaultText, QWidget *parentWidget=nullptr) | |
| Create a subtask progress dialog. | |
| virtual | ~CSubtaskProgressDialog () |
Public Member Functions inherited from ibase::CCumulatedProgressManagerBase | |
| CCumulatedProgressManagerBase (const TaskInfo &defaultTaskInfo={"", ""}) | |
| Create cumulated progress manager. | |
| virtual | ~CCumulatedProgressManagerBase () |
| void | SetDefaultTaskInfo (const TaskInfo &defaultTaskInfo) |
| Set information of the default task. | |
| double | GetCumulatedProgress () const |
| Get final progress beeing result of all task progress. | |
| std::vector< TaskProgressInfo > | GetProcessedTasks (bool preferSorted=false, int maxCount=-1) const |
| Get list of current processed tasks. | |
| bool | IsCancelable () const |
| virtual bool | IsCanceled () const |
| void | SetCanceled (bool state=true) |
| virtual void | ResetProgressManager () override |
| Reset progress manager and make it possible to reuse it. | |
| std::unique_ptr< IProgressManager > | CreateSubtaskManager (const QByteArray &taskId, const QString &taskDescription, double weight=1.0) override |
| Create progress manager for the subtask. | |
| virtual std::unique_ptr< IProgressLogger > | StartProgressLogger (bool isCancelable=false, const QString &description={}) override |
| Create progress logger. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Protected Member Functions | |
| virtual void | OnProgressChanged (double cumulatedValue) override |
| virtual void | OnTasksChanged () override |
Protected Member Functions inherited from ibase::CCumulatedProgressManagerBase | |
| virtual void | OpenTask (TaskBase *taskPtr, const TaskInfo &taskInfo, double weight, bool isCancelable) |
| virtual void | CloseTask (TaskBase *taskPtr) |
| virtual void | ReportTaskProgress (TaskBase *taskPtr, double progress, TaskStatus taskStatus) |
| void | TryUpdateCumulatedProgress () |
Progress dialog that displays progress of subtasks.
This dialog extends QDialog and implements ibase::CCumulatedProgressManagerBase to show both overall progress and individual subtask progress with status indicators.
Features:
Usage example:
Definition at line 50 of file CSubtaskProgressDialog.h.
| typedef QDialog iqtgui::CSubtaskProgressDialog::BaseClass |
Definition at line 55 of file CSubtaskProgressDialog.h.
| iqtgui::CSubtaskProgressDialog::CSubtaskProgressDialog | ( | const QString & | title, |
| const QString & | defaultText, | ||
| QWidget * | parentWidget = nullptr |
||
| ) |
Create a subtask progress dialog.
| title | Dialog window title |
| defaultText | Default text shown when no tasks are active |
| parentWidget | Parent widget (optional) |
|
virtual |
|
overrideprotectedvirtual |
Reimplemented from ibase::CCumulatedProgressManagerBase.
|
overrideprotectedvirtual |
Reimplemented from ibase::CCumulatedProgressManagerBase.
|
signal |
Signal emitted when overall progress changes.
Used for thread-safe GUI updates via queued connection.
|
signal |
Signal emitted when subtask list or progress changes.
Used for thread-safe GUI updates via queued connection.