ACF $AcfVersion:0$
CRectangleParamsGuiComp.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// ACF includes
6#include <i2d/CRectangle.h>
10#include <GeneratedFiles/iqt2d/ui_CRectangleParamsGuiComp.h>
11
12
13namespace iqt2d
14{
15
16
19 Ui::CRectangleParamsGuiComp,
20 iview::CRectangleShape,
21 i2d::CRectangle>
22{
23 Q_OBJECT
24
25public:
27 Ui::CRectangleParamsGuiComp,
30
31 I_BEGIN_COMPONENT(CRectangleParamsGuiComp);
32 I_ASSIGN(m_centerScreenPointProviderCompPtr, "CenterScreenPointProvider", "Provides center screen point (i2d::CPosition2d)", false, "CenterScreenPointProvider");
33 I_ASSIGN(m_showSpacerAttr, "ShowSpacer", "Show spacer", true, false);
34 I_END_COMPONENT;
35
36protected:
37 // reimplemented (iqtgui::TGuiObserverWrap)
38 virtual void OnGuiModelAttached() override;
39 virtual void OnGuiModelDetached() override;
40 virtual void UpdateModel() const override;
41 virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet) override;
42
43 // reimplemented (iqtgui::CGuiComponentBase)
44 virtual void OnGuiRetranslate() override;
45 virtual void OnGuiCreated() override;
46
47protected Q_SLOTS:
48 void OnParamsChanged(double value);
50
51private:
52 I_REF(i2d::IObject2dProvider, m_centerScreenPointProviderCompPtr);
53 I_ATTR(bool, m_showSpacerAttr);
54};
55
56
57} // namespace iqt2d
58
59
Definition of rectangle area orthogonal to axis of coordination system.
Definition CRectangle.h:27
Common interface for a provider, which delivers a 2D-object.
void OnParamsChanged(double value)
virtual void OnGuiRetranslate() override
virtual void OnGuiCreated() override
virtual void OnGuiModelAttached() override
iqt2d::TShapeParamsGuiCompBase< Ui::CRectangleParamsGuiComp, iview::CRectangleShape, i2d::CRectangle > BaseClass
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
virtual void UpdateModel() const override
virtual void OnGuiModelDetached() override
void on_MoveToCenterButton_clicked(bool=false)
Set of change flags (its IDs).
Definition IChangeable.h:36
Interactive shape object for iview::CSearchArea.
This package contains Qt based implementations for 2D graphic objects.