ICF 3.0.5.47
Technical documentation of ICF Libraries
CIconProviderComp.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_CIconProviderComp_included
7#define iqtgui_CIconProviderComp_included
8
9
10// ICF includes
13
14
15namespace istdgui
16{
17
18
20{
21public:
23
24 I_BEGIN_COMPONENT(CIconProviderComp);
25 I_REGISTER_INTERFACE(istdgui::IIconProvider);
26 I_ASSIGN_MULTI_0(m_iconFilesAttrPtr, "IconFiles", "Names of the icon files", true);
27 I_ASSIGN(m_iconPathAttrPtr, "IconsPath", "Path to the icon files", true, ".");
28 I_END_COMPONENT;
29
30 // reimplemented (istdgui::IIconProvider)
31 int GetIconCount() const override;
32 QIcon GetIcon(int index) const override;
33
34private:
35 I_MULTIATTR(QString, m_iconFilesAttrPtr);
36 I_ATTR(QString, m_iconPathAttrPtr);
37};
38
39
40} // namespace istdgui
41
42
43#endif // !iqtgui_CIconProviderComp_included
44
Base class for component implementation.
icomp::CComponentBase BaseClass
QIcon GetIcon(int index) const override
Gets icon with the index iconIndex from collection.
int GetIconCount() const override
Gets the number of icons in the collection.
This interface provides acces to an icon.
Standard GUI specific interfaces and components based on Qt.

© Witold Gantzke and Kirill Lepskiy