CStatusGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtgui_CStatusGuiComp_included
2 #define iqtgui_CStatusGuiComp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QtGlobal>
7 #if QT_VERSION >= 0x050000
8 #include <QtWidgets/QLabel>
9 #else
10 #include <QtGui/QLabel>
11 #endif
12 
13 // ACF includes
18 
19 
20 namespace iqtgui
21 {
22 
23 
26  iqtgui::TGuiComponentBase<QLabel>,
27  imod::TSingleModelObserverBase<istd::IInformationProvider> >
28 {
29 public:
33 
34  I_BEGIN_COMPONENT(CStatusGuiComp);
35  I_ASSIGN(m_iconSizeAttrPtr, "IconSize", "Size of status icon", true, 64);
36  I_END_COMPONENT;
37 
38 protected:
39  // reimplemented (iqtgui::TGuiObserverWrap)
40  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
41 
42  // reimplemented (iqtgui::CGuiComponentBase)
43  virtual void OnGuiCreated();
44 
45 private:
46  I_ATTR(int, m_iconSizeAttrPtr);
47 };
48 
49 
50 } // namespace iqtgui
51 
52 
53 #endif // !iqtgui_CStatusGuiComp_included
54 
Join functionality of iqtgui::IGuiObject interface and imod::IObserver.
virtual void OnGuiCreated()
Called just after GUI is initialized.
Set of change flags (its IDs).
Definition: IChangeable.h:30
iqtgui::TGuiObserverWrap< iqtgui::TGuiComponentBase< QLabel >, imod::TSingleModelObserverBase< istd::IInformationProvider > > BaseClass
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)
Do update of the GUI to reflect the state of model.

© 2007-2017 Witold Gantzke and Kirill Lepskiy