ACF $AcfVersion:0$
CProgressManagerGuiComp.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// ACF includes
8
9#include <GeneratedFiles/iqtgui/ui_CProgressManagerGuiComp.h>
10
11
12namespace iqtgui
13{
14
15
17 public iqtgui::TDesignerGuiCompBase<Ui::CProgressManagerGuiComp>,
19{
20 Q_OBJECT
21
22public:
25
26 I_BEGIN_COMPONENT(CProgressManagerGuiComp);
27 I_REGISTER_INTERFACE(IProgressManager);
28 I_ASSIGN(m_showCancelAttrPtr, "ShowCancel", "If true, cancel button will be visible", true, true);
29 I_ASSIGN(m_automaticHideAttrPtr, "AutomaticHide", "If true, progress bar will be automatically hidden", true, false);
30 I_ASSIGN(m_descriptionAttrPtr, "Description", "Description text show left to progress bar", false, "Progress");
31 I_END_COMPONENT;
32
33protected:
34 // reimplemented (ibase::CCumulatedProgressManagerBase)
35 virtual void OnProgressChanged(double cumulatedValue) override;
36 virtual void OnTasksChanged() override;
37
38 // reimplemented (iqtgui::CGuiComponentBase)
39 virtual void OnGuiCreated() override;
40
41protected Q_SLOTS:
43
44private:
45 I_ATTR(bool, m_showCancelAttrPtr);
46 I_ATTR(bool, m_automaticHideAttrPtr);
47 I_TEXTATTR(m_descriptionAttrPtr);
48};
49
50
51} // namespace iqtgui
52
53
54
55
Progress manager delegating cumulated progress result to another manager.
virtual void OnTasksChanged() override
virtual void OnProgressChanged(double cumulatedValue) override
virtual void OnGuiCreated() override
Called just after GUI is initialized.
iqtgui::TDesignerGuiCompBase< Ui::CProgressManagerGuiComp > BaseClass
ibase::CCumulatedProgressManagerBase BaseClass2
Base class for all Qt GUI components, which use the Qt designer's UI.
#define I_TEXTATTR(member)
Declare translatable text attribute member.
Standard GUI specific interfaces and components based on Qt.