ACF $AcfVersion:0$
CFreeWidgetGuiComp.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/QMainWindow>
9#else
10#include <QtGui/QMainWindow>
11#endif
12
13
14// ACF includes
16
17#include <iqtgui/IGuiObject.h>
18
19
20namespace iqtgui
21{
22
23
25{
26public:
28
29 I_BEGIN_COMPONENT(CFreeWidgetGuiComp);
30 I_ASSIGN(m_slaveGuiCompPtr, "SlaveGui", "Slave GUI for this window", true, "SlaveGui");
31 I_ASSIGN(m_titleAttrPtr, "Title", "Specify the window title ", true, "Free Window");
32 I_END_COMPONENT;
33
34protected:
35 // reimplemented (icomp::CComponentBase)
36 virtual void OnComponentCreated() override;
37 virtual void OnComponentDestroyed() override;
38
39 I_REF(iqtgui::IGuiObject, m_slaveGuiCompPtr);
40 I_TEXTATTR(m_titleAttrPtr);
41
43};
44
45
46} // namespace iqtgui
47
48
49
Base class for component implementation.
I_TEXTATTR(m_titleAttrPtr)
icomp::CComponentBase BaseClass
virtual void OnComponentCreated() override
virtual void OnComponentDestroyed() override
istd::TDelPtr< QMainWindow > m_mainWindowPtr
Common interface for GUI objects used in ACF component context.
Definition IGuiObject.h:133
Pointer wrapper providing automatic deleting pointed object during destruction.
Definition TDelPtr.h:21
Standard GUI specific interfaces and components based on Qt.