ICF 3.1.1.10
Technical documentation of ICF Libraries
CStatusGuiComp.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_CStatusGuiComp_included
7#define iqtgui_CStatusGuiComp_included
8
9
10// Qt includes
11#include <QtCore/QtGlobal>
12#include <QtWidgets/QLabel>
13
14// ICF includes
19
20
21namespace istdgui
22{
23
24
27 istdgui::TGuiComponentBase<QLabel>,
28 imod::TSingleModelObserverBase<istd::IInformationProvider> >
29{
30public:
34
35 I_BEGIN_COMPONENT(CStatusGuiComp);
36 I_ASSIGN(m_iconSizeAttrPtr, "IconSize", "Size of status icon", true, 64);
37 I_END_COMPONENT;
38
39protected:
40 // reimplemented (istdgui::TGuiObserverWrap)
41 void UpdateGui(const istd::IChangeable::ChangeSet& changeSet) override;
42
43 // reimplemented (istdgui::CGuiComponentBase)
44 void OnGuiCreated() override;
45
46private:
47 I_ATTR(int, m_iconSizeAttrPtr);
48};
49
50
51} // namespace istdgui
52
53
54#endif // !iqtgui_CStatusGuiComp_included
55
Basic implementation for a single model observer with binding to concrete data object interface.
Set of change flags (its IDs).
Definition IChangeable.h:38
istdgui::TGuiObserverWrap< istdgui::TGuiComponentBase< QLabel >, imod::TSingleModelObserverBase< istd::IInformationProvider > > BaseClass
void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
Do update of the GUI to reflect the state of model.
void OnGuiCreated() override
Called just after GUI is initialized.
Base class for all Qt GUI componentes.
Join functionality of istdgui::IGuiObject interface and imod::IObserver.
Standard GUI specific interfaces and components based on Qt.

© Witold Gantzke and Kirill Lepskiy