ACF $AcfVersion:0$
CPolylineParamsGuiComp.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/CPolyline.h>
9
10
11namespace iqt2d
12{
13
14
15class CPolylineParamsGuiComp: public TPolygonBasedParamsGuiComp<iview::CPolylineShape, i2d::CPolyline>
16{
17 Q_OBJECT
18
19public:
21
22 I_BEGIN_COMPONENT(CPolylineParamsGuiComp);
23 I_ASSIGN(m_showOrientationAttrPtr, "ShowOrientation", "Show orientation on display console", true, false);
24 I_END_COMPONENT;
25
27
28protected:
29 // reimplemented (iqt2d::TShapeParamsGuiCompBase)
30 virtual bool PopulateActions(QWidget& host, imod::IModel* modelPtr) override;
32
33 // reimplemented (iqtgui::CGuiComponentBase)
34 virtual void OnGuiRetranslate() override;
35
36protected Q_SLOTS:
38
43
44 // reimplemented (iqt2d::TShapeParamsGuiCompBase)
45 virtual void OnActionTriggered(QAction* actionPtr) override;
46
47private:
48 I_ATTR(bool, m_showOrientationAttrPtr);
49
50 QAction m_openCloseAction;
51};
52
53
54} // namespace iqt2d
55
Common interface for model objects, that supports Model/Observer design pattern.
Definition IModel.h:25
virtual iview::CInteractiveShapeBase * CreateShapeInstance() const override
Simple creation of shape instance.
virtual bool PopulateActions(QWidget &host, imod::IModel *modelPtr) override
virtual void OnGuiRetranslate() override
TPolygonBasedParamsGuiComp< iview::CPolylineShape, i2d::CPolyline > BaseClass
virtual void OnActionTriggered(QAction *actionPtr) override
This package contains Qt based implementations for 2D graphic objects.