CProgressManagerGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtgui_CProgressManagerGuiComp_included
2 #define iqtgui_CProgressManagerGuiComp_included
3 
4 
5 // ACF includes
7 
9 
10 #include <GeneratedFiles/iqtgui/ui_CProgressManagerGuiComp.h>
11 
12 
13 namespace iqtgui
14 {
15 
16 
18  public iqtgui::TDesignerGuiCompBase<Ui::CProgressManagerGuiComp>,
20 {
21  Q_OBJECT
22 
23 public:
26 
27  I_BEGIN_COMPONENT(CProgressManagerGuiComp);
28  I_REGISTER_INTERFACE(IProgressManager);
29  I_ASSIGN(m_showCancelAttrPtr, "ShowCancel", "If true, cancel button will be visible", true, true);
30  I_ASSIGN(m_automaticHideAttrPtr, "AutomaticHide", "If true, progress bar will be automatically hidden", true, false);
31  I_ASSIGN(m_descriptionAttrPtr, "Description", "Description text show left to progress bar", false, "Progress");
32  I_END_COMPONENT;
33 
35 
36 protected:
38  void UpdateProgressBar();
39 
40  // reimplemented (ibase::CDelegatedProgressManager)
41  void OnCancelable(bool cancelState);
42 
43  // reimplemented (ibase::IProgressManager)
44  virtual int BeginProgressSession(
45  const QByteArray& progressId,
46  const QString& description,
47  bool isCancelable);
48  virtual bool IsCanceled(int sessionId) const;
49 
50  // reimplemented (istd::IChangeable)
51  virtual void OnEndChanges(const ChangeSet& changeSet);
52 
53  // reimplemented (iqtgui::CGuiComponentBase)
54  virtual void OnGuiCreated();
55 
56 protected Q_SLOTS:
58 
59 private:
60  I_ATTR(bool, m_showCancelAttrPtr);
61  I_ATTR(bool, m_automaticHideAttrPtr);
62  I_TEXTATTR(m_descriptionAttrPtr);
63 
64  bool m_isCanceled;
65 
66  bool m_isCancelable;
67 };
68 
69 
70 } // namespace iqtgui
71 
72 
73 #endif // !iqtgui_CProgressManagerGuiComp_included
74 
75 
Base class for all Qt GUI components, which use the Qt designer's UI.
virtual int BeginProgressSession(const QByteArray &progressId, const QString &description, bool isCancelable)
Begin progress report session.
void OnCancelable(bool cancelState)
Called when state of cancel operation has changed.
virtual void OnGuiCreated()
Called just after GUI is initialized.
virtual bool IsCanceled(int sessionId) const
Check if this processing operation should be canceled.
ibase::CDelegatedProgressManager BaseClass2
Progress manager delegating cumulated progress result to another manager.
Set of change flags (its IDs).
Definition: IChangeable.h:30
iqtgui::TDesignerGuiCompBase< Ui::CProgressManagerGuiComp > BaseClass
virtual void OnEndChanges(const ChangeSet &changeSet)
Callback function for end change event.

© 2007-2017 Witold Gantzke and Kirill Lepskiy