ACF $AcfVersion:0$
CProgressDialog.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtWidgets/QProgressDialog>
7
8// ACF includes
10
11
12namespace iqtgui
13{
14
15
16class CProgressDialog: public QProgressDialog, public ibase::CCumulatedProgressManagerBase
17{
18 Q_OBJECT
19
20public:
21 typedef QProgressDialog BaseClass;
22
23 CProgressDialog(const QString& title, const QString& defaultText, QWidget* parentWidget = NULL);
24
25protected:
26 // reimplemented (ibase::CCumulatedProgressManagerBase)
27 virtual void OnProgressChanged(double cumulatedValue) override;
28 virtual void OnTasksChanged() override;
29
30Q_SIGNALS:
31 void TaskTextChanged(const QString& text);
32 void ProgressChanged(int progress);
33
34private:
35 QString m_lastTaskText;
36 int m_lastProgressValue;
37};
38
39
40} // namespace iqtgui
41
42
Progress manager delegating cumulated progress result to another manager.
QProgressDialog BaseClass
virtual void OnProgressChanged(double cumulatedValue) override
virtual void OnTasksChanged() override
void ProgressChanged(int progress)
CProgressDialog(const QString &title, const QString &defaultText, QWidget *parentWidget=NULL)
void TaskTextChanged(const QString &text)
#define NULL
Definition istd.h:74
Standard GUI specific interfaces and components based on Qt.