ICF 3.1.1.10
Technical documentation of ICF Libraries
CProgressManagerGuiComp.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#ifndef iqtgui_CProgressManagerGuiComp_included
7#define iqtgui_CProgressManagerGuiComp_included
8
9
10// ICF includes
13
14#include <GeneratedFiles/istdgui/ui_CProgressManagerGuiComp.h>
15
16
17namespace istdgui
18{
19
20
22 public istdgui::TDesignerGuiCompBase<Ui::CProgressManagerGuiComp>,
24{
25 Q_OBJECT
26
27public:
30
31 I_BEGIN_COMPONENT(CProgressManagerGuiComp);
32 I_REGISTER_INTERFACE(IProgressManager);
33 I_ASSIGN(m_showCancelAttrPtr, "ShowCancel", "If true, cancel button will be visible", true, true);
34 I_ASSIGN(m_automaticHideAttrPtr, "AutomaticHide", "If true, progress bar will be automatically hidden", true, false);
35 I_ASSIGN(m_descriptionAttrPtr, "Description", "Description text show left to progress bar", false, "Progress");
36 I_END_COMPONENT;
37
39
40protected:
43
44 // reimplemented (iproc::CDelegatedProgressManager)
45 void OnCancelable(bool cancelState) override;
46
47 // reimplemented (iproc::IProgressManager)
49 const QByteArray& progressId,
50 const QString& description,
51 bool isCancelable) override;
52 bool IsCanceled(int sessionId) const override;
53
54 // reimplemented (istd::IChangeable)
55 void OnEndChanges(const ChangeSet& changeSet) override;
56
57 // reimplemented (istdgui::CGuiComponentBase)
58 void OnGuiCreated() override;
59
60protected Q_SLOTS:
62
63private:
64 I_ATTR(bool, m_showCancelAttrPtr);
65 I_ATTR(bool, m_automaticHideAttrPtr);
66 I_TEXTATTR(m_descriptionAttrPtr);
67
68 bool m_isCanceled;
69
70 bool m_isCancelable;
71};
72
73
74} // namespace istdgui
75
76
77#endif // !iqtgui_CProgressManagerGuiComp_included
78
79
Progress manager delegating cumulated progress result to another manager.
Set of change flags (its IDs).
Definition IChangeable.h:38
bool IsCanceled(int sessionId) const override
Check if this processing operation should be canceled.
void OnGuiCreated() override
Called just after GUI is initialized.
void OnCancelable(bool cancelState) override
Called when state of cancel operation has changed.
void OnEndChanges(const ChangeSet &changeSet) override
Callback function for end change event.
iproc::CDelegatedProgressManager BaseClass2
virtual int BeginProgressSession(const QByteArray &progressId, const QString &description, bool isCancelable) override
Begin progress report session.
istdgui::TDesignerGuiCompBase< Ui::CProgressManagerGuiComp > BaseClass
Base class for all Qt GUI components, which use the Qt designer's UI.
Standard GUI specific interfaces and components based on Qt.

© Witold Gantzke and Kirill Lepskiy