6#include <QtCore/QObject>
9#include <icomp/CComponentBase.h>
10#include <imod/IModel.h>
11#include <iqtgui/IGuiObject.h>
14#include <imtgui/IClientAreaProvider.h>
21class CStandardClientAreaProviderComp:
23 public icomp::CComponentBase,
24 virtual public IClientAreaProvider
28 typedef icomp::CComponentBase BaseClass;
30 I_BEGIN_COMPONENT(CStandardClientAreaProviderComp);
31 I_REGISTER_INTERFACE(IClientAreaProvider);
32 I_ASSIGN(m_anchorAttrPtr,
"AnchorCorner",
"Anchor corner. see Qt::Corner\n0 - TopLeftCorner\n1 - TopRightCorner\n2 - BottomLeftCorner\n3 - BottomRightCorner",
true, 3);
33 I_ASSIGN(m_clientGuiCompPtr,
"GuiObject",
"GuiObject to get client area",
false,
"");
36 CStandardClientAreaProviderComp();
39 virtual QPoint GetAnchor()
const override;
40 virtual QSize GetSize()
const override;
43 virtual void OnComponentCreated()
override;
47 virtual bool eventFilter(QObject* watched, QEvent* event)
override;
51 void SetRect(
const QRect& rect);
52 void SetCorner(Qt::Corner corner);
55 I_ATTR(
int, m_anchorAttrPtr);
56 I_REF(iqtgui::IGuiObject, m_clientGuiCompPtr);