Offset DSH : Add pointer SVG. Some remove unecessary member initialization

This commit is contained in:
Paddle
2023-11-03 18:23:04 +01:00
committed by abdullahtahiriyo
parent 5fc39a5add
commit b72da63139
3 changed files with 55 additions and 8 deletions

View File

@@ -103,8 +103,6 @@ public:
ConstructionMethod constrMethod = ConstructionMethod::Arc)
: DrawSketchHandlerOffsetBase(constrMethod)
, listOfGeoIds(listOfGeoIds)
, endpoint(Base::Vector2d(0., 0.))
, pointOnSourceWire(Base::Vector2d(0., 0.))
, deleteOriginal(false)
, offsetLengthSet(false)
, offsetConstraint(false)
@@ -144,12 +142,7 @@ private:
QString getCrosshairCursorSVGName() const override
{
if (constructionMethod() == DrawSketchHandlerOffset::ConstructionMethod::Arc) {
return QString::fromLatin1("Sketcher_OffsetArc");
}
else { // constructionMethod == DrawSketchHandlerOffset::ConstructionMethod::Intersection
return QString::fromLatin1("Sketcher_OffsetIntersection");
}
return QString::fromLatin1("Sketcher_Pointer_Create_Offset");
}
std::unique_ptr<QWidget> createWidget() const override

View File

@@ -223,6 +223,7 @@
<file>icons/pointers/Sketcher_Pointer_Create_Line_Polar.svg</file>
<file>icons/pointers/Sketcher_Pointer_Create_Lineset.svg</file>
<file>icons/pointers/Sketcher_Pointer_Create_Point.svg</file>
<file>icons/pointers/Sketcher_Pointer_Create_Offset.svg</file>
<file>icons/pointers/Sketcher_Pointer_Extension.svg</file>
<file>icons/pointers/Sketcher_Pointer_External.svg</file>
<file>icons/pointers/Sketcher_Pointer_InsertKnot.svg</file>

View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
height="64"
width="64"
id="svg12"
sodipodi:docname="Sketcher_Pointer_Create_Offset.svg"
inkscape:version="1.1-beta1 (77e7b44db3, 2021-03-28)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview10"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
objecttolerance="10.0"
gridtolerance="10.0"
guidetolerance="10.0"
inkscape:pageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="5.8828125"
inkscape:cx="-9.9442231"
inkscape:cy="11.89907"
inkscape:window-width="3840"
inkscape:window-height="1570"
inkscape:window-x="-9"
inkscape:window-y="-9"
inkscape:window-maximized="1"
inkscape:current-layer="svg12" />
<defs
id="defs16" />
<g
id="crosshair"
style="stroke:#ffffff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:miter">
<path
d="m16,3v9m0,8v9m-13-13h9m8,0h9"
id="path9" />
</g>
<path
style="fill:none;stroke:#cc0000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 22.8175,31.560582 v 0 l 8.843331,-8.843331 27.059021,0.04742 0.3373,21.868645 c -2.25038,9.717698 -7.938768,15.488953 -18.813784,15.306541"
id="path1100"
sodipodi:nodetypes="cccccc" />
<path
style="fill:none;stroke:#cc0000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 32.777079,38.277607 3.672903,-3.374103 10.355488,0.05743 0.290172,7.67342 c -1.13068,5.838586 -5.310987,6.59446 -8.253762,6.86739"
id="path2061"
sodipodi:nodetypes="ccccc" />
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB