ACF $AcfVersion:0$
CStatusGuiComp.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// 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
19
20
21namespace iqtgui
22{
23
24
27 iqtgui::TGuiObserverWrap<
28 iqtgui::TGuiComponentBase<QLabel>,
29 imod::TSingleModelObserverBase<istd::IInformationProvider> > >
30{
31public:
36
37 I_BEGIN_COMPONENT(CStatusGuiComp);
38 I_ASSIGN(m_iconSizeAttrPtr, "IconSize", "Size of status icon", true, 64);
39 I_END_COMPONENT;
40
41protected:
42 // reimplemented (iqtgui::TGuiObserverWrap)
43 virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet) override;
44
45 // reimplemented (iqtgui::CGuiComponentBase)
46 virtual void OnGuiCreated() override;
47
48private:
49 I_ATTR(int, m_iconSizeAttrPtr);
50};
51
52
53} // namespace iqtgui
54
55
Basic implementation for a single model observer with binding to concrete data object interface.
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
Do update of the GUI to reflect the state of model.
virtual void OnGuiCreated() override
Called just after GUI is initialized.
iqtgui::StateIconWrapper< iqtgui::TGuiObserverWrap< iqtgui::TGuiComponentBase< QLabel >, imod::TSingleModelObserverBase< istd::IInformationProvider > > > BaseClass
Base class for all Qt GUI componentes.
Join functionality of iqtgui::IGuiObject interface and imod::IObserver.
Set of change flags (its IDs).
Definition IChangeable.h:36
Standard GUI specific interfaces and components based on Qt.