diff --git a/eeschema/lib_shape.cpp b/eeschema/lib_shape.cpp index beb0870fa6..dec84a686b 100644 --- a/eeschema/lib_shape.cpp +++ b/eeschema/lib_shape.cpp @@ -494,6 +494,7 @@ BITMAPS LIB_SHAPE::GetMenuImage() const case SHAPE_T::CIRCLE: return BITMAPS::add_circle; case SHAPE_T::RECTANGLE: return BITMAPS::add_rectangle; case SHAPE_T::POLY: return BITMAPS::add_graphical_segments; + case SHAPE_T::BEZIER: return BITMAPS::add_bezier; default: UNIMPLEMENTED_FOR( SHAPE_T_asString() ); diff --git a/eeschema/sch_shape.cpp b/eeschema/sch_shape.cpp index 8f97f69310..105c5c47ba 100644 --- a/eeschema/sch_shape.cpp +++ b/eeschema/sch_shape.cpp @@ -470,6 +470,7 @@ BITMAPS SCH_SHAPE::GetMenuImage() const case SHAPE_T::CIRCLE: return BITMAPS::add_circle; case SHAPE_T::RECTANGLE: return BITMAPS::add_rectangle; case SHAPE_T::POLY: return BITMAPS::add_graphical_segments; + case SHAPE_T::BEZIER: return BITMAPS::add_bezier; default: UNIMPLEMENTED_FOR( SHAPE_T_asString() ); diff --git a/include/bitmaps/bitmaps_list.h b/include/bitmaps/bitmaps_list.h index b306020a8b..642433e460 100644 --- a/include/bitmaps/bitmaps_list.h +++ b/include/bitmaps/bitmaps_list.h @@ -41,6 +41,7 @@ enum class BITMAPS : unsigned int about, add_aligned_dimension, add_arc, + add_bezier, add_board, add_bus, add_bus2bus, diff --git a/resources/bitmaps_png/CMakeLists.txt b/resources/bitmaps_png/CMakeLists.txt index 0a95c47283..4a89b048c2 100644 --- a/resources/bitmaps_png/CMakeLists.txt +++ b/resources/bitmaps_png/CMakeLists.txt @@ -158,6 +158,7 @@ set( BMAPS_MID about add_aligned_dimension add_arc + add_bezier add_board add_bus2bus add_bus diff --git a/resources/bitmaps_png/png/add_bezier_16.png b/resources/bitmaps_png/png/add_bezier_16.png new file mode 100644 index 0000000000..04600e72cb Binary files /dev/null and b/resources/bitmaps_png/png/add_bezier_16.png differ diff --git a/resources/bitmaps_png/png/add_bezier_24.png b/resources/bitmaps_png/png/add_bezier_24.png new file mode 100644 index 0000000000..4b5d18dc77 Binary files /dev/null and b/resources/bitmaps_png/png/add_bezier_24.png differ diff --git a/resources/bitmaps_png/png/add_bezier_32.png b/resources/bitmaps_png/png/add_bezier_32.png new file mode 100644 index 0000000000..104a401d0b Binary files /dev/null and b/resources/bitmaps_png/png/add_bezier_32.png differ diff --git a/resources/bitmaps_png/png/add_bezier_48.png b/resources/bitmaps_png/png/add_bezier_48.png new file mode 100644 index 0000000000..a6bd05aa37 Binary files /dev/null and b/resources/bitmaps_png/png/add_bezier_48.png differ diff --git a/resources/bitmaps_png/png/add_bezier_64.png b/resources/bitmaps_png/png/add_bezier_64.png new file mode 100644 index 0000000000..60fb8533c4 Binary files /dev/null and b/resources/bitmaps_png/png/add_bezier_64.png differ diff --git a/resources/bitmaps_png/png/add_bezier_dark_16.png b/resources/bitmaps_png/png/add_bezier_dark_16.png new file mode 100644 index 0000000000..efc7866acd Binary files /dev/null and b/resources/bitmaps_png/png/add_bezier_dark_16.png differ diff --git a/resources/bitmaps_png/png/add_bezier_dark_24.png b/resources/bitmaps_png/png/add_bezier_dark_24.png new file mode 100644 index 0000000000..80ca264e21 Binary files /dev/null and b/resources/bitmaps_png/png/add_bezier_dark_24.png differ diff --git a/resources/bitmaps_png/png/add_bezier_dark_32.png b/resources/bitmaps_png/png/add_bezier_dark_32.png new file mode 100644 index 0000000000..08fb7707ff Binary files /dev/null and b/resources/bitmaps_png/png/add_bezier_dark_32.png differ diff --git a/resources/bitmaps_png/png/add_bezier_dark_48.png b/resources/bitmaps_png/png/add_bezier_dark_48.png new file mode 100644 index 0000000000..527aae1808 Binary files /dev/null and b/resources/bitmaps_png/png/add_bezier_dark_48.png differ diff --git a/resources/bitmaps_png/png/add_bezier_dark_64.png b/resources/bitmaps_png/png/add_bezier_dark_64.png new file mode 100644 index 0000000000..8ff80f597d Binary files /dev/null and b/resources/bitmaps_png/png/add_bezier_dark_64.png differ diff --git a/resources/bitmaps_png/sources/dark/add_bezier.svg b/resources/bitmaps_png/sources/dark/add_bezier.svg new file mode 100644 index 0000000000..f037990c44 --- /dev/null +++ b/resources/bitmaps_png/sources/dark/add_bezier.svg @@ -0,0 +1,131 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + id="Слой_1" + data-name="Слой 1" + viewBox="0 0 24 24" + version="1.1" + sodipodi:docname="add_bezier.svg" + inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" + 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" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="3156" + inkscape:window-height="1669" + id="namedview30" + showgrid="true" + inkscape:zoom="31.34512" + inkscape:cx="-0.82947522" + inkscape:cy="15.074117" + inkscape:window-x="0" + inkscape:window-y="38" + inkscape:window-maximized="0" + inkscape:document-rotation="0" + inkscape:current-layer="Слой_1" + inkscape:showpageshadow="2" + inkscape:pagecheckerboard="0" + inkscape:deskcolor="#d1d1d1"> + <inkscape:grid + type="xygrid" + id="grid_kicad" + spacingx="0.5" + spacingy="0.5" + color="#9999ff" + opacity="0.13" + empspacing="2" /> + </sodipodi:namedview> + <metadata + id="metadata43"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <cc:license + rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title>add_line</dc:title> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Reproduction" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Distribution" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Notice" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Attribution" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#ShareAlike" /> + </cc:License> + </rdf:RDF> + </metadata> + <defs + id="defs342"> + <style + id="style340">.cls-1{fill:none;stroke:#1a81c4;stroke-linecap:round;stroke-linejoin:round;}</style> + </defs> + <title + id="title344">add_line</title> + <path + id="line346" + style="fill:none;fill-opacity:1;stroke:#42b8eb;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 18,3 c 0,0 2.5,8.5 -6.5,8.5 C 2.5,11.5 6,21 6,21" + class="cls-1" + sodipodi:nodetypes="csc" /> + <ellipse + style="fill:#ffffff;fill-opacity:1;stroke:#42b8eb;stroke-width:1;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" + id="path4797" + cx="18" + cy="3" + rx="1.5" + ry="1.4999999" /> + <circle + style="fill:#ffffff;stroke:#42b8eb;stroke-width:1;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" + id="path1792" + cx="6" + cy="21" + r="1.5" /> + <path + style="fill:none;stroke:#42b8eb;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 21,11.5 H 3" + id="path1857" /> + <rect + style="fill:#42b8eb;fill-opacity:1;stroke:#42b8eb;stroke-width:1;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" + id="rect2118" + width="2" + height="2" + x="19.5" + y="10.5" + ry="0" /> + <rect + style="fill:#42b8eb;stroke:#42b8eb;stroke-width:1;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1;fill-opacity:1" + id="rect2118-3" + width="2" + height="2" + x="1.5" + y="10.5" + ry="0" /> + <ellipse + style="fill:#ffffff;fill-opacity:1;stroke:#42b8eb;stroke-width:1;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" + id="path4797-6" + cx="11.5" + cy="11.5" + rx="1.5" + ry="1.4999999" /> +</svg> diff --git a/resources/bitmaps_png/sources/light/add_bezier.svg b/resources/bitmaps_png/sources/light/add_bezier.svg new file mode 100644 index 0000000000..be437e2a2d --- /dev/null +++ b/resources/bitmaps_png/sources/light/add_bezier.svg @@ -0,0 +1,131 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + id="Слой_1" + data-name="Слой 1" + viewBox="0 0 24 24" + version="1.1" + sodipodi:docname="add_bezier.svg" + inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" + 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" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="3156" + inkscape:window-height="1669" + id="namedview30" + showgrid="true" + inkscape:zoom="31.34512" + inkscape:cx="-0.82947522" + inkscape:cy="15.074117" + inkscape:window-x="0" + inkscape:window-y="38" + inkscape:window-maximized="0" + inkscape:document-rotation="0" + inkscape:current-layer="Слой_1" + inkscape:showpageshadow="2" + inkscape:pagecheckerboard="0" + inkscape:deskcolor="#d1d1d1"> + <inkscape:grid + type="xygrid" + id="grid_kicad" + spacingx="0.5" + spacingy="0.5" + color="#9999ff" + opacity="0.13" + empspacing="2" /> + </sodipodi:namedview> + <metadata + id="metadata43"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <cc:license + rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title>add_line</dc:title> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Reproduction" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Distribution" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Notice" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#Attribution" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> + <cc:requires + rdf:resource="http://creativecommons.org/ns#ShareAlike" /> + </cc:License> + </rdf:RDF> + </metadata> + <defs + id="defs342"> + <style + id="style340">.cls-1{fill:none;stroke:#1a81c4;stroke-linecap:round;stroke-linejoin:round;}</style> + </defs> + <title + id="title344">add_line</title> + <path + id="line346" + style="fill:none;fill-opacity:1;stroke:#1a81c4;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 18,3 c 0,0 2.5,8.5 -6.5,8.5 C 2.5,11.5 6,21 6,21" + class="cls-1" + sodipodi:nodetypes="csc" /> + <ellipse + style="fill:#ffffff;fill-opacity:1;stroke:#1a81c4;stroke-width:1;stroke-linecap:round;stroke-dasharray:none" + id="path4797" + cx="18" + cy="3" + rx="1.5" + ry="1.4999999" /> + <circle + style="fill:#ffffff;stroke:#1a81c4;stroke-width:1;stroke-linecap:round;stroke-dasharray:none" + id="path1792" + cx="6" + cy="21" + r="1.5" /> + <path + style="fill:none;stroke:#1a81c4;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 21,11.5 H 3" + id="path1857" /> + <rect + style="fill:#1a81c4;fill-opacity:1;stroke:#1a81c4;stroke-width:1;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" + id="rect2118" + width="2" + height="2" + x="19.5" + y="10.5" + ry="0" /> + <rect + style="fill:#1a81c4;stroke:#1a81c4;stroke-width:1;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1;fill-opacity:1" + id="rect2118-3" + width="2" + height="2" + x="1.5" + y="10.5" + ry="0" /> + <ellipse + style="fill:#ffffff;fill-opacity:1;stroke:#1a81c4;stroke-width:1;stroke-linecap:round;stroke-dasharray:none" + id="path4797-6" + cx="11.5" + cy="11.5" + rx="1.5" + ry="1.4999999" /> +</svg>