ICF 3.0.5.47
Technical documentation of ICF Libraries
CProgressDialog.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// Qt includes
10#include <QtWidgets/QProgressDialog>
11
12// ICF includes
14
15
16namespace istdgui
17{
18
19
20class CProgressDialog: public QProgressDialog, virtual public iproc::IProgressManager
21{
22public:
23 typedef QProgressDialog BaseClass;
24
25 CProgressDialog(QWidget* parentWidget = nullptr);
26
27 // reimplemented (iproc::IProgressManager)
29 const QByteArray& progressId,
30 const QString& description,
31 bool isCancelable) override;
32 void EndProgressSession(int sessionId) override;
33 void OnProgress(int sessionId, double currentProgress) override;
34 bool IsCanceled(int sessionId) const override;
35};
36
37
38} // namespace istdgui
39
40
Consume information about progress of some process.
bool IsCanceled(int sessionId) const override
Check if this processing operation should be canceled.
virtual int BeginProgressSession(const QByteArray &progressId, const QString &description, bool isCancelable) override
Begin progress report session.
CProgressDialog(QWidget *parentWidget=nullptr)
void OnProgress(int sessionId, double currentProgress) override
Callback function for a progress event.
void EndProgressSession(int sessionId) override
Close progress report session.
Standard GUI specific interfaces and components based on Qt.

© Witold Gantzke and Kirill Lepskiy