ImagingTools Core SDK
CGeneralEventFactoryComp.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtGui/QPixmap>
7
8// ImtCore includes
9#include <imtloggui/CEventFactoryCompBase.h>
10
11
12namespace imtloggui
13{
14
15
16class CGeneralEventFactoryComp: public CEventFactoryCompBase
17{
18public:
19 typedef CEventFactoryCompBase BaseClass;
20
21 I_BEGIN_COMPONENT(CGeneralEventFactoryComp)
22 I_ASSIGN(m_iconSizeAttrPtr, "IconSize", "Size of icons", true, 24);
23 I_END_COMPONENT
24
25 // reimplemented (imtloggui::IEventItemFactory)
26 virtual IEventItem* CreateInstance(const ilog::IMessageConsumer::MessagePtr& messagePtr) const override;
27
28private:
29 I_ATTR(int, m_iconSizeAttrPtr);
30
31private:
32 mutable QPixmap m_noneIcon;
33 mutable QPixmap m_okIcon;
34 mutable QPixmap m_warningIcon;
35 mutable QPixmap m_errorIcon;
36 mutable QPixmap m_invalidIcon;
37};
38
39
40} // namespace imtloggui
41
42