AsyncProgressDialog
ProgressWidgetFactory.h
1 #pragma once
2 
3 #include <QString>
4 
5 namespace APD
6 {
7 
8 class ProgressWidget;
9 
10 enum class AdditionalWidget
11 {
12  NoWidget = 0x00,
13  Estimate = 0x01,
14  Label = 0x02,
15  Output = 0x04,
16 };
17 Q_DECLARE_FLAGS(AdditionalWidgets, AdditionalWidget)
18 Q_DECLARE_OPERATORS_FOR_FLAGS(AdditionalWidgets)
19 
21 {
22 public:
23  static ProgressWidget* createProgressBar(const QString& label, AdditionalWidgets additionalWidgets = AdditionalWidget::NoWidget);
24  static ProgressWidget* createProgressBar(AdditionalWidgets additionalWidgets = AdditionalWidget::NoWidget);
25  static ProgressWidget* createVelocityBar(const QString& units, AdditionalWidgets additionalWidgets = AdditionalWidget::NoWidget);
26  static ProgressWidget* createVelocityBar(AdditionalWidgets additionalWidgets = AdditionalWidget::NoWidget);
27 };
28 
29 }
A convenience class which contains factory methods for creating progress and velocity bars.
Definition: ProgressWidgetFactory.h:20
Base class for all widgets capable of displaying progress for a TaskThread.
Definition: ProgressWidget.h:10