ACF $AcfVersion:0$
CLine2dParamsGuiComp.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/CLine2d.h>
7
8#include <iview/CLineShape.h>
9
11#include <GeneratedFiles/iqt2d/ui_CLine2dParamsGuiComp.h>
12
13
14namespace iqt2d
15{
16
17
20 Ui::CLine2dParamsGuiComp,
21 iview::CLineShape,
22 i2d::CLine2d>
23{
24 Q_OBJECT
25
26public:
28 Ui::CLine2dParamsGuiComp,
31
32 I_BEGIN_COMPONENT(CLine2dParamsGuiComp);
33 I_ASSIGN(m_displayArrowAttrPtr, "DisplayArrow", "If enabled arrow will be displayed instead of line", true, false);
34 I_END_COMPONENT;
35
36protected:
37 // reimplemented (iqt2d::TShapeParamsGuiCompBase)
39
40 // reimplemented (iqtgui::TGuiObserverWrap)
41 virtual void UpdateModel() const override;
42 virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet) override;
43
44 // reimplemented (iqtgui::CGuiComponentBase)
45 virtual void OnGuiCreated() override;
46 virtual void OnGuiDestroyed() override;
47 virtual void OnGuiRetranslate() override;
48
49protected Q_SLOTS:
50 void OnParamsChanged(double value);
51
52private:
53 I_ATTR(bool, m_displayArrowAttrPtr);
54};
55
56
57} // namespace iqt2d
58
59
Definition of a line in 2D-space.
Definition CLine2d.h:25
iqt2d::TShapeParamsGuiCompBase< Ui::CLine2dParamsGuiComp, iview::CLineShape, i2d::CLine2d > BaseClass
virtual void OnGuiCreated() override
virtual void OnGuiRetranslate() override
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
void OnParamsChanged(double value)
virtual iview::CInteractiveShapeBase * CreateShapeInstance() const override
virtual void OnGuiDestroyed() override
virtual void UpdateModel() const override
Set of change flags (its IDs).
Definition IChangeable.h:36
This package contains Qt based implementations for 2D graphic objects.