diff --git a/src/app/tools/drawTools/vtoolshoulderpoint.cpp b/src/app/tools/drawTools/vtoolshoulderpoint.cpp index 0d6cb2a2c..a4b9d3f95 100644 --- a/src/app/tools/drawTools/vtoolshoulderpoint.cpp +++ b/src/app/tools/drawTools/vtoolshoulderpoint.cpp @@ -313,3 +313,40 @@ void VToolShoulderPoint::SaveOptions(QDomElement &tag, QSharedPointer doc->SetAttribute(tag, AttrP2Line, p2Line); doc->SetAttribute(tag, AttrPShoulder, pShoulder); } + +//--------------------------------------------------------------------------------------------------------------------- +quint32 VToolShoulderPoint::getPShoulder() const +{ + return pShoulder; +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolShoulderPoint::setPShoulder(const quint32 &value) +{ + if (value != NULL_ID) + { + pShoulder = value; + + QSharedPointer obj = VAbstractTool::data.GetGObject(id); + SaveOption(obj); + } +} + +//--------------------------------------------------------------------------------------------------------------------- +quint32 VToolShoulderPoint::getP2Line() const +{ + return p2Line; +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolShoulderPoint::setP2Line(const quint32 &value) +{ + if (value != NULL_ID) + { + p2Line = value; + + QSharedPointer obj = VAbstractTool::data.GetGObject(id); + SaveOption(obj); + } +} + diff --git a/src/app/tools/drawTools/vtoolshoulderpoint.h b/src/app/tools/drawTools/vtoolshoulderpoint.h index 8c8b30a1d..e8d8c63be 100644 --- a/src/app/tools/drawTools/vtoolshoulderpoint.h +++ b/src/app/tools/drawTools/vtoolshoulderpoint.h @@ -53,6 +53,13 @@ public: static const QString ToolType; virtual int type() const {return Type;} enum { Type = UserType + static_cast(Tool::ShoulderPoint) }; + + quint32 getP2Line() const; + void setP2Line(const quint32 &value); + + quint32 getPShoulder() const; + void setPShoulder(const quint32 &value); + public slots: virtual void FullUpdateFromFile(); virtual void SetFactor(qreal factor);