Restore missing MW shape icon

This commit is contained in:
Seth Hillbrand 2020-10-19 14:28:27 -07:00
parent c79d6391dd
commit c9d14700a7
4 changed files with 111 additions and 1 deletions

View File

@ -312,6 +312,7 @@ set( BMAPS_MID
move_relative
mw_add_gap
mw_add_line
mw_add_shape
mw_add_stub_arc
mw_add_stub
mw_toolbar

View File

@ -0,0 +1,34 @@
/* Do not modify this file, it was automatically generated by the
* PNG2cpp CMake script, using a *.png file as input.
*/
#include <bitmaps_png/bitmaps_list.h>
static const unsigned char png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
0x00, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x1a, 0x08, 0x06, 0x00, 0x00, 0x00, 0xa9, 0x4a, 0x4c,
0xce, 0x00, 0x00, 0x01, 0x15, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0x63, 0x60, 0x18, 0x05, 0x38,
0xc0, 0x69, 0x75, 0x75, 0xeb, 0x93, 0xea, 0xea, 0x6f, 0x4f, 0x69, 0x68, 0x24, 0xd0, 0xd4, 0xa2,
0x93, 0x1a, 0x1a, 0x5b, 0x80, 0x16, 0xfd, 0x07, 0xe2, 0xd7, 0x67, 0x8c, 0x8d, 0xb9, 0x28, 0x32,
0xec, 0x3f, 0x03, 0x03, 0x23, 0xd0, 0xa0, 0x1d, 0x40, 0x7c, 0x13, 0x68, 0xb0, 0x1a, 0x4c, 0xfc,
0x84, 0x8a, 0x8a, 0x0c, 0x50, 0xec, 0x0f, 0xd4, 0xa2, 0xff, 0x27, 0xd4, 0xd5, 0x9b, 0x40, 0xe2,
0x67, 0xb4, 0xb5, 0xe5, 0x80, 0xec, 0x15, 0xe4, 0xb8, 0xda, 0x1d, 0x66, 0x18, 0x10, 0xdf, 0x3f,
0xa2, 0xae, 0x2e, 0x05, 0x15, 0x6f, 0x40, 0x12, 0x87, 0x60, 0x35, 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00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
};
const BITMAP_OPAQUE mw_add_shape_xpm[1] = {{ png, sizeof( png ), "mw_add_shape_xpm" }};
//EOF

View File

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="26"
width="26"
version="1.1"
viewBox="0 0 26 26"
id="svg2"
inkscape:version="0.48.3.1 r9886"
sodipodi:docname="mw_add_shape.svg">
<metadata
id="metadata100">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1301"
inkscape:window-height="744"
id="namedview98"
showgrid="true"
inkscape:zoom="22.961538"
inkscape:cx="13.576918"
inkscape:cy="13.827654"
inkscape:window-x="65"
inkscape:window-y="24"
inkscape:window-maximized="1"
inkscape:current-layer="svg2"
showguides="true"
inkscape:guide-bbox="true">
<inkscape:grid
type="xygrid"
id="grid3020"
empspacing="2"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true"
spacingx="0.5px"
spacingy="0.5px" />
</sodipodi:namedview>
<defs
id="defs4" />
<path
style="fill:#c92727;fill-opacity:1;stroke:none"
d="M 1,9.5 C 1,9.5 2.8750654,9.6234924 4,9 5.1249346,8.3765076 5,6.5 6.5,6.5 8,6.5 8.5,8 10,8 11.5,8 11.5,4 13,4 14.5,4 15,6.5 16.5,6.5 18,6.5 18,2 19.5,2 21,2 20.80743,4.4037152 22,5 23.19257,5.5962848 25,4 25,4 l 0,9 -24,0 z"
id="rect5278"
inkscape:connector-curvature="0"
sodipodi:nodetypes="czzzzzzzcccc" />
<path
sodipodi:nodetypes="czzzzzzzcccc"
inkscape:connector-curvature="0"
id="path3134"
d="m 1,16.5 c 0,0 1.8750654,-0.123492 3,0.5 1.1249346,0.623492 1,2.5 2.5,2.5 1.5,0 2,-1.5 3.5,-1.5 1.5,0 1.5,4 3,4 1.5,0 2,-2.5 3.5,-2.5 1.5,0 1.5,4.5 3,4.5 1.5,0 1.30743,-2.403715 2.5,-3 1.19257,-0.596285 3,1 3,1 l 0,-9 -24,0 z"
style="fill:#c92727;fill-opacity:1;stroke:none" />
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -458,7 +458,7 @@ TOOL_ACTION PCB_ACTIONS::microwaveCreateStubArc( "pcbnew.MicrowaveTool.createStu
TOOL_ACTION PCB_ACTIONS::microwaveCreateFunctionShape( "pcbnew.MicrowaveTool.createFunctionShape",
AS_GLOBAL, 0, "",
_( "Add Microwave Polygonal Shape" ), _( "Create a microwave polygonal shape from a list of vertices" ),
mw_add_gap_xpm, AF_ACTIVATE, (void*) MICROWAVE_FOOTPRINT_SHAPE::FUNCTION_SHAPE );
mw_add_shape_xpm, AF_ACTIVATE, (void*) MICROWAVE_FOOTPRINT_SHAPE::FUNCTION_SHAPE );
TOOL_ACTION PCB_ACTIONS::microwaveCreateLine( "pcbnew.MicrowaveTool.createLine",
AS_GLOBAL, 0, "",