ICF 3.1.1.10
Technical documentation of ICF Libraries
CFreeWidgetGuiComp.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_CFreeWidgetGuiComp_included
7#define iqtgui_CFreeWidgetGuiComp_included
8
9
10// Qt includes
11#include <QtCore/QtGlobal>
12#include <QtWidgets/QMainWindow>
13
14
15// ICF includes
17
18#include <istdgui/IGuiObject.h>
19
20
21namespace istdgui
22{
23
24
26{
27public:
29
30 I_BEGIN_COMPONENT(CFreeWidgetGuiComp);
31 I_ASSIGN(m_slaveGuiCompPtr, "SlaveGui", "Slave GUI for this window", true, "SlaveGui");
32 I_ASSIGN(m_titleAttrPtr, "Title", "Specify the window title ", true, "Free Window");
33 I_END_COMPONENT;
34
35protected:
36 // reimplemented (icomp::CComponentBase)
37 void OnComponentCreated() override;
38 void OnComponentDestroyed() override;
39
40 I_REF(istdgui::IGuiObject, m_slaveGuiCompPtr);
41 I_TEXTATTR(m_titleAttrPtr);
42
43 std::unique_ptr<QMainWindow> m_mainWindowPtr;
44};
45
46
47} // namespace istdgui
48
49
50#endif // !iqtgui_CFreeWidgetGuiComp_included
51
Base class for component implementation.
icomp::CComponentBase BaseClass
void OnComponentDestroyed() override
std::unique_ptr< QMainWindow > m_mainWindowPtr
void OnComponentCreated() override
Common interface for GUI objects using in component context.
Definition IGuiObject.h:27
Standard GUI specific interfaces and components based on Qt.

© Witold Gantzke and Kirill Lepskiy