Pcbnew: remove dead macro code.

This commit is contained in:
Wayne Stambaugh 2016-04-18 11:03:59 -04:00
parent 6120472d60
commit 46ff5a2580
14 changed files with 13 additions and 1202 deletions

View File

@ -2,7 +2,7 @@
# This program source code file is part of KICAD, a free EDA CAD application.
#
# Copyright (C) 2011 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
# Copyright (C) 2011 Kicad Developers, see change_log.txt for contributors#.
# Copyright (C) 2011-2016 Kicad Developers, see change_log.txt for contributors#.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@ -345,7 +345,6 @@ set( BMAPS_MID
load_module_lib
local_ratsnest
locked
macros_record
mirepcb
mirror_h
mirror_v

View File

@ -1,74 +0,0 @@
/* Do not modify this file, it was automatically generated by the
* PNG2cpp CMake script, using a *.png file as input.
*/
#include <bitmaps.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, 0x03, 0x90, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xed, 0x96, 0xcb, 0x8b, 0x1d,
0x55, 0x10, 0xc6, 0x7f, 0x75, 0xce, 0xe9, 0xfb, 0xe8, 0x79, 0x65, 0x9e, 0x92, 0x31, 0x28, 0x46,
0x27, 0x51, 0x51, 0x0c, 0xf1, 0x01, 0x21, 0x9a, 0xe8, 0x42, 0x31, 0xf9, 0x07, 0x34, 0x06, 0x22,
0xba, 0x8a, 0xb8, 0x70, 0xe9, 0xda, 0x95, 0x10, 0xb2, 0x13, 0x71, 0x29, 0xba, 0x70, 0x21, 0x6e,
0xdc, 0x29, 0xba, 0x31, 0x20, 0xf1, 0x31, 0xa0, 0x62, 0x40, 0x12, 0xc7, 0x99, 0x38, 0x01, 0x13,
0x47, 0x31, 0xf3, 0xc8, 0xdc, 0xb9, 0x77, 0xba, 0x4f, 0x95, 0x8b, 0xee, 0xfb, 0x9a, 0xeb, 0x52,
0x66, 0x95, 0xde, 0xf4, 0x57, 0xb7, 0xbb, 0xcf, 0x57, 0x5f, 0x55, 0x9d, 0xef, 0x5c, 0x31, 0x33,
0x76, 0xe3, 0x72, 0xec, 0xd2, 0xb5, 0x6b, 0x44, 0xa1, 0x37, 0x10, 0x91, 0x39, 0x60, 0xf2, 0x7f,
0x5a, 0x7b, 0xc5, 0xcc, 0x16, 0x07, 0x88, 0xc6, 0xc6, 0xc6, 0xce, 0x3c, 0x75, 0xfc, 0xd8, 0xbb,
0x23, 0xa3, 0x23, 0x75, 0x11, 0x41, 0x04, 0x8a, 0xbb, 0x80, 0x19, 0xed, 0x56, 0x9a, 0x19, 0x6a,
0x86, 0xa9, 0x62, 0x06, 0x66, 0x4a, 0xd4, 0x22, 0x56, 0x33, 0x34, 0x46, 0xd4, 0x8c, 0xf5, 0xb5,
0xf5, 0xad, 0x10, 0xc2, 0x2b, 0x79, 0x9e, 0x7f, 0xd2, 0x47, 0x34, 0x3d, 0x33, 0xfd, 0xe6, 0xd4,
0xcc, 0xf4, 0x70, 0x96, 0xe5, 0x48, 0x21, 0xaf, 0xad, 0x13, 0xb5, 0x88, 0xaa, 0x12, 0xa3, 0x12,
0x63, 0x24, 0x6a, 0x24, 0x46, 0x45, 0x63, 0x2c, 0x63, 0x25, 0xe6, 0x91, 0x5c, 0x15, 0xcb, 0x23,
0x79, 0x9e, 0x93, 0x54, 0x2a, 0xc3, 0x93, 0x93, 0x93, 0x6f, 0x01, 0xfd, 0x44, 0xa6, 0x96, 0xff,
0xae, 0x0f, 0x23, 0xe9, 0x68, 0xa1, 0xa2, 0x43, 0x53, 0xa8, 0x80, 0xb6, 0x24, 0x30, 0x0c, 0xcc,
0xca, 0x5c, 0xac, 0xf3, 0x28, 0x94, 0x61, 0x82, 0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0x4b, 0x6c, 0x25,
0xd6, 0xf2, 0x77, 0xeb, 0xc1, 0xda, 0xf7, 0xbe, 0x68, 0x86, 0x47, 0xd1, 0xbc, 0x35, 0x22, 0x22,
0x53, 0xbd, 0x8a, 0x52, 0x4c, 0x92, 0xa1, 0xaa, 0xa7, 0x5e, 0x91, 0x01, 0x7b, 0x71, 0x3b, 0xe2,
0x02, 0x4b, 0x77, 0x53, 0xf7, 0x8c, 0x7f, 0x7b, 0x03, 0x3b, 0xe7, 0x80, 0x98, 0x00, 0x69, 0xd7,
0x70, 0xcd, 0x96, 0xf7, 0x1f, 0x7d, 0xf9, 0xed, 0x2f, 0xf3, 0x07, 0x5f, 0x12, 0xc3, 0x39, 0x29,
0xa7, 0xd1, 0xb5, 0x17, 0x90, 0x8e, 0x7b, 0x4b, 0xc9, 0x28, 0x7d, 0x27, 0x66, 0xfb, 0x55, 0x29,
0xcf, 0x2c, 0x31, 0x15, 0x89, 0x2b, 0x4b, 0x97, 0x3e, 0x32, 0xb3, 0xe5, 0xbe, 0x61, 0xb8, 0xfd,
0xe7, 0xe4, 0x36, 0xd1, 0xbf, 0x70, 0x51, 0x80, 0xee, 0x5f, 0x46, 0xf4, 0x81, 0x00, 0x00, 0x00,
0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
};
const BITMAP_OPAQUE macros_record_xpm[1] = {{ png, sizeof( png ), "macros_record_xpm" }};
//EOF

View File

@ -1,713 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="48"
id="svg2"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:version="0.48.1 "
sodipodi:docname="macros_record.svg"
sodipodi:version="0.32"
version="1.0"
width="48">
<metadata
id="metadata3">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:title>Lapo Calamandrei</dc:title>
<dc:description />
<dc:subject>
<rdf:Bag>
<rdf:li>cassette</rdf:li>
<rdf:li>media</rdf:li>
<rdf:li>tape</rdf:li>
<rdf:li>backup</rdf:li>
<rdf:li>dds</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:publisher>
<cc:Agent
rdf:about="http://www.openclipart.org/">
<dc:title>Open Clip Art Library, Source: GNOME Icon Theme, Source: GNOME Icon Theme, Source: GNOME Icon Theme, Source: GNOME Icon Theme</dc:title>
</cc:Agent>
</dc:publisher>
<dc:creator>
<cc:Agent>
<dc:title>Lapo Calamandrei</dc:title>
</cc:Agent>
</dc:creator>
<dc:rights>
<cc:Agent>
<dc:title>Lapo Calamandrei</dc:title>
</cc:Agent>
</dc:rights>
<dc:date />
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<cc:license
rdf:resource="http://creativecommons.org/licenses/GPL/2.0/" />
<dc:language>en</dc:language>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs4">
<linearGradient
id="linearGradient2870"
inkscape:collect="always">
<stop
id="stop2872"
offset="0"
style="stop-color:#3465a4;stop-opacity:1" />
<stop
id="stop2874"
offset="1"
style="stop-color:#204a87;stop-opacity:1" />
</linearGradient>
<linearGradient
id="linearGradient1970">
<stop
id="stop1972"
offset="0"
style="stop-color:#204a87;stop-opacity:1" />
<stop
id="stop1974"
offset="1"
style="stop-color:#204a87;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient2975">
<stop
id="stop2977"
offset="0"
style="stop-color:#d3d7cf;stop-opacity:1" />
<stop
id="stop2979"
offset="1"
style="stop-color:white;stop-opacity:1" />
</linearGradient>
<linearGradient
id="linearGradient2966"
inkscape:collect="always">
<stop
id="stop2968"
offset="0"
style="stop-color:black;stop-opacity:1;" />
<stop
id="stop2970"
offset="1"
style="stop-color:black;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient2949"
inkscape:collect="always">
<stop
id="stop2951"
offset="0"
style="stop-color:#babdb6;stop-opacity:1" />
<stop
id="stop2954"
offset="1"
style="stop-color:#555753;stop-opacity:1" />
</linearGradient>
<linearGradient
id="linearGradient2885">
<stop
id="stop2887"
offset="0"
style="stop-color:black;stop-opacity:0;" />
<stop
id="stop2893"
offset="0.5"
style="stop-color:black;stop-opacity:1;" />
<stop
id="stop2889"
offset="1"
style="stop-color:black;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient2871"
inkscape:collect="always">
<stop
id="stop2873"
offset="0"
style="stop-color:black;stop-opacity:1;" />
<stop
id="stop2875"
offset="1"
style="stop-color:black;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient2851"
inkscape:collect="always">
<stop
id="stop2853"
offset="0"
style="stop-color:#204a87;stop-opacity:1;" />
<stop
id="stop2855"
offset="1"
style="stop-color:#204a87;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient2843"
inkscape:collect="always">
<stop
id="stop2845"
offset="0"
style="stop-color:white;stop-opacity:1;" />
<stop
id="stop2847"
offset="1"
style="stop-color:white;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient3061">
<stop
id="stop3063"
offset="0"
style="stop-color:black;stop-opacity:1;" />
<stop
id="stop3069"
offset="0.5"
style="stop-color:#474946;stop-opacity:1;" />
<stop
id="stop3065"
offset="1"
style="stop-color:black;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient3053"
inkscape:collect="always">
<stop
id="stop3055"
offset="0"
style="stop-color:white;stop-opacity:1;" />
<stop
id="stop3057"
offset="1"
style="stop-color:white;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient3009">
<stop
id="stop3011"
offset="0"
style="stop-color:#3465a4;stop-opacity:1" />
<stop
id="stop3013"
offset="1"
style="stop-color:#888a85;stop-opacity:1" />
</linearGradient>
<linearGradient
id="linearGradient2972">
<stop
id="stop2974"
offset="0"
style="stop-color:#3465a4;stop-opacity:1" />
<stop
id="stop2976"
offset="1"
style="stop-color:#888a85;stop-opacity:1" />
</linearGradient>
<linearGradient
id="linearGradient2951">
<stop
id="stop2953"
offset="0"
style="stop-color:white;stop-opacity:0;" />
<stop
id="stop1976"
offset="0.2"
style="stop-color:white;stop-opacity:1;" />
<stop
id="stop1978"
offset="0.5566265"
style="stop-color:white;stop-opacity:1;" />
<stop
id="stop2955"
offset="1"
style="stop-color:white;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient2941">
<stop
id="stop2943"
offset="0"
style="stop-color:#2e3436;stop-opacity:1" />
<stop
id="stop2945"
offset="1"
style="stop-color:#eeeeec;stop-opacity:1" />
</linearGradient>
<linearGradient
id="linearGradient2931"
inkscape:collect="always">
<stop
id="stop2933"
offset="0"
style="stop-color:white;stop-opacity:1;" />
<stop
id="stop2935"
offset="1"
style="stop-color:white;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient2907"
inkscape:collect="always">
<stop
id="stop2909"
offset="0"
style="stop-color:#555753;stop-opacity:1" />
<stop
id="stop2911"
offset="1"
style="stop-color:#2e3436;stop-opacity:1" />
</linearGradient>
<linearGradient
id="linearGradient2899"
inkscape:collect="always">
<stop
id="stop2901"
offset="0"
style="stop-color:#1a1a1a;stop-opacity:1;" />
<stop
id="stop2903"
offset="1"
style="stop-color:#555753;stop-opacity:1" />
</linearGradient>
<linearGradient
gradientTransform="matrix(0.9984,0,0,1,-49.9128,0)"
gradientUnits="userSpaceOnUse"
id="linearGradient2905"
inkscape:collect="always"
x1="90.598061"
x2="65.869003"
xlink:href="#linearGradient2899"
y1="12.11433"
y2="10.434952" />
<radialGradient
cx="65.359207"
cy="7.6079164"
fx="65.359207"
fy="7.6079164"
gradientTransform="matrix(1.978344,0,0,0.173638,-107.4175,7.676856)"
gradientUnits="userSpaceOnUse"
id="radialGradient2913"
inkscape:collect="always"
r="19.032827"
xlink:href="#linearGradient2907" />
<linearGradient
gradientUnits="userSpaceOnUse"
id="linearGradient2937"
inkscape:collect="always"
x1="66.75"
x2="52.625"
xlink:href="#linearGradient2931"
y1="55.5"
y2="-4.875" />
<linearGradient
gradientTransform="translate(-50,0)"
gradientUnits="userSpaceOnUse"
id="linearGradient2947"
inkscape:collect="always"
x1="87.1875"
x2="87.1875"
xlink:href="#linearGradient2941"
y1="24.746109"
y2="29.582914" />
<linearGradient
gradientTransform="translate(-50,0)"
gradientUnits="userSpaceOnUse"
id="linearGradient2957"
inkscape:collect="always"
x1="79.3125"
x2="80.6875"
xlink:href="#linearGradient1970"
y1="20.309416"
y2="22.875" />
<linearGradient
gradientTransform="translate(-50,0)"
gradientUnits="userSpaceOnUse"
id="linearGradient2985"
inkscape:collect="always"
x1="70.216614"
x2="75.291542"
xlink:href="#linearGradient2972"
y1="8.8990822"
y2="42.916157" />
<linearGradient
gradientTransform="translate(-50,0)"
gradientUnits="userSpaceOnUse"
id="linearGradient2988"
inkscape:collect="always"
x1="70.216614"
x2="75.291542"
xlink:href="#linearGradient3009"
y1="8.8990822"
y2="42.916157" />
<linearGradient
gradientUnits="userSpaceOnUse"
id="linearGradient3059"
inkscape:collect="always"
x1="26.125"
x2="26.125"
xlink:href="#linearGradient3053"
y1="25.907301"
y2="21.723757" />
<linearGradient
gradientUnits="userSpaceOnUse"
id="linearGradient3067"
inkscape:collect="always"
x1="15.904867"
x2="16.907635"
xlink:href="#linearGradient3061"
y1="28.589727"
y2="24.847351" />
<linearGradient
gradientUnits="userSpaceOnUse"
id="linearGradient2849"
inkscape:collect="always"
x1="23.069899"
x2="6.980577"
xlink:href="#linearGradient2843"
y1="30.631689"
y2="30.631689" />
<linearGradient
gradientUnits="userSpaceOnUse"
id="linearGradient2857"
inkscape:collect="always"
x1="23"
x2="46.880234"
xlink:href="#linearGradient2851"
y1="23.5"
y2="23.5" />
<radialGradient
cx="2"
cy="36"
fx="2"
fy="36"
gradientTransform="matrix(2,0,0,2,-10,-108)"
gradientUnits="userSpaceOnUse"
id="radialGradient2900"
inkscape:collect="always"
r="2"
xlink:href="#linearGradient2871" />
<radialGradient
cx="2"
cy="36"
fx="2"
fy="36"
gradientTransform="matrix(2,0,0,2,38,-36)"
gradientUnits="userSpaceOnUse"
id="radialGradient2902"
inkscape:collect="always"
r="2"
xlink:href="#linearGradient2871" />
<linearGradient
gradientUnits="userSpaceOnUse"
id="linearGradient2904"
inkscape:collect="always"
x1="14.0625"
x2="14.0625"
xlink:href="#linearGradient2885"
y1="32"
y2="40.001007" />
<linearGradient
gradientUnits="userSpaceOnUse"
id="linearGradient2956"
inkscape:collect="always"
x1="16.4375"
x2="16.4375"
xlink:href="#linearGradient2949"
y1="28.703588"
y2="25.648201" />
<linearGradient
gradientUnits="userSpaceOnUse"
id="linearGradient2973"
inkscape:collect="always"
x1="17.9375"
x2="17.4375"
xlink:href="#linearGradient2966"
y1="29.124975"
y2="25.249989" />
<linearGradient
gradientUnits="userSpaceOnUse"
id="linearGradient2981"
inkscape:collect="always"
x1="17.0625"
x2="17.0625"
xlink:href="#linearGradient2975"
y1="25.373756"
y2="28.593903" />
<linearGradient
gradientTransform="translate(-50,0)"
gradientUnits="userSpaceOnUse"
id="linearGradient1968"
inkscape:collect="always"
x1="83.8125"
x2="86.3125"
xlink:href="#linearGradient2951"
y1="19.496916"
y2="36" />
<linearGradient
gradientUnits="userSpaceOnUse"
id="linearGradient2876"
inkscape:collect="always"
x1="35.1875"
x2="32.8125"
xlink:href="#linearGradient2870"
y1="42.312241"
y2="22.157804" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient2966"
id="linearGradient3091"
gradientUnits="userSpaceOnUse"
x1="17.9375"
y1="29.124975"
x2="17.4375"
y2="25.249989" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient2966"
id="linearGradient3093"
gradientUnits="userSpaceOnUse"
x1="17.9375"
y1="29.124975"
x2="17.4375"
y2="25.249989" />
</defs>
<sodipodi:namedview
bordercolor="#afafaf"
borderlayer="false"
borderopacity="1"
height="48px"
id="base"
inkscape:current-layer="layer1"
inkscape:cx="24"
inkscape:cy="24.75"
inkscape:document-units="px"
inkscape:grid-points="true"
inkscape:object-paths="false"
inkscape:object-points="false"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:showpageshadow="true"
inkscape:window-height="968"
inkscape:window-width="1280"
inkscape:window-x="-4"
inkscape:window-y="-4"
inkscape:zoom="18.863636"
pagecolor="#ffffff"
showborder="true"
showgrid="false"
width="48px"
inkscape:window-maximized="1">
<inkscape:grid
id="GridFromPre046Settings"
type="xygrid"
originx="0px"
originy="0px"
spacingx="0.5px"
spacingy="0.5px"
color="#0000ff"
empcolor="#0000ff"
opacity="0.2"
empopacity="0.4"
empspacing="2"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true" />
</sodipodi:namedview>
<g
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Livello 1">
<path
d="m 6.4968,7.5 -1.9968,2 0,15.5 39,0 0,-15.5 -0.0624,0 -1.9968,-2 -34.944,0 z"
id="rect2853"
style="color:#000000;fill:url(#linearGradient2905);fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:1.20000057;marker:none;visibility:visible;display:inline;overflow:visible"
inkscape:connector-curvature="0" />
<path
d="M 6.616789,7.9946858 4.998544,9.7052704 5.005131,10.001073 43.058594,10 43.0642,9.7734375 41.39985,8 6.616789,7.9946858 z"
id="path2862"
sodipodi:nodetypes="ccccccc"
style="color:#000000;fill:url(#radialGradient2913);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.00000024;marker:none;visibility:visible;display:inline;overflow:visible"
inkscape:connector-curvature="0" />
<path
d="m 56.90625,8.46875 -1.4375,1.4375 0,14.125 37.125,0 0,-14.0625 -1.5,-1.5 -34.1875,0 z"
id="path2919"
inkscape:original="M 56.5 7.5 L 54.5 9.5 L 54.5 25 L 93.5625 25 L 93.5625 9.5 L 93.5 9.5 L 91.5 7.5 L 56.5 7.5 z "
inkscape:radius="-0.96875"
sodipodi:type="inkscape:offset"
style="opacity:0.1;color:#000000;fill:none;stroke:#ffffff;stroke-width:1.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:1.20000057;marker:none;visibility:visible;display:inline;overflow:visible"
transform="translate(-50,0)" />
<g
id="g2895"
style="opacity:0.7"
transform="translate(0,-0.5)">
<rect
height="8"
id="rect2869"
rx="0.25"
ry="0.33333334"
style="fill:url(#radialGradient2900);fill-opacity:1;stroke:none"
transform="scale(-1,-1)"
width="4"
x="-6"
y="-40" />
<rect
height="8"
id="rect2879"
rx="0.25"
ry="0.33333334"
style="fill:url(#radialGradient2902);fill-opacity:1;stroke:none"
width="4"
x="42"
y="32" />
<rect
height="8"
id="rect2883"
style="fill:url(#linearGradient2904);fill-opacity:1;stroke:none"
width="36"
x="6"
y="32" />
</g>
<path
d="m 6.5,11.5 0,5 -2,0 0,19.96875 c 0,0.566049 0.4652,1.031251 1.03125,1.03125 l 36.9375,0 c 0.56605,0 1.031252,-0.465202 1.03125,-1.03125 l 0,-19.96875 -1,0 0,-5 c -0.01027,-3.08e-4 -0.02092,0 -0.03125,0 L 6.5,11.5 z"
id="rect1879"
style="color:#000000;fill:url(#linearGradient2988);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient2876);stroke-width:1.00000072;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:1.20000057;marker:none;visibility:visible;display:inline;overflow:visible"
inkscape:connector-curvature="0" />
<path
d="m 8.5,35.5 0,-17.999994 31.999973,0 0,17.999994"
id="rect2774"
sodipodi:nodetypes="cccc"
style="opacity:0.6;color:#000000;fill:none;stroke:url(#linearGradient2957);stroke-width:0.9999997;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dashoffset:1.20000057;marker:none;visibility:visible;display:inline;overflow:visible"
inkscape:connector-curvature="0" />
<path
d="m 9,24 0,6 16.34375,0 C 25.764262,28.994106 26.000001,27.895117 26,26.75 26,25.79336 25.829472,24.863923 25.53125,24 L 9,24 z"
id="path2827"
style="color:#000000;fill:url(#linearGradient3067);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.94752491000000005;marker:none;visibility:visible;display:inline;overflow:visible;opacity:1"
inkscape:connector-curvature="0" />
<path
d="m 35.90625,27.046875 a 3.796875,3.546875 0 1 1 -7.59375,0 3.796875,3.546875 0 1 1 7.59375,0 z"
id="path2778"
sodipodi:cx="32.109375"
sodipodi:cy="27.046875"
sodipodi:rx="3.796875"
sodipodi:ry="3.546875"
sodipodi:type="arc"
style="color:#000000;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#d3d7cf;stroke-width:0.94752491;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:1.20000057;marker:none;visibility:visible;display:inline;overflow:visible"
transform="matrix(1.053505,0,0,1.057278,-1.32736,-1.846054)" />
<path
d="m 35.90625,27.046875 a 3.796875,3.546875 0 1 1 -7.59375,0 3.796875,3.546875 0 1 1 7.59375,0 z"
id="path2815"
sodipodi:cx="32.109375"
sodipodi:cy="27.046875"
sodipodi:rx="3.796875"
sodipodi:ry="3.546875"
sodipodi:type="arc"
style="color:#000000;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#d3d7cf;stroke-width:0.94752491;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:1.20000057;marker:none;visibility:visible;display:inline;overflow:visible"
transform="matrix(1.053505,0,0,1.057278,-17.32736,-1.846054)" />
<path
d="m 9,18 0,6 31,0 0,-6 -31,0 z m 0,12 0,7 31,0 0,-7 -31,0 z"
id="rect2829"
style="color:#000000;fill:url(#linearGradient2985);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.99999982;marker:none;visibility:visible;display:inline;overflow:visible"
inkscape:connector-curvature="0" />
<path
d="m 57.5,12.5 0,4 a 1.0001,1.0001 0 0 1 -1,1 l -1,0 0,18.96875 c 0,0.01816 0.01309,0.03125 0.03125,0.03125 l 36.9375,0 c 0.01816,0 0.03125,-0.0131 0.03125,-0.03125 L 92.5,17.5 a 1.0001,1.0001 0 0 1 -1,-1 l 0,-4 -34,0 z"
id="path2838"
inkscape:original="M 56.5 11.5 L 56.5 16.5 L 54.5 16.5 L 54.5 36.46875 C 54.5 37.034799 54.9652 37.500001 55.53125 37.5 L 92.46875 37.5 C 93.0348 37.5 93.500002 37.034798 93.5 36.46875 L 93.5 16.5 L 92.5 16.5 L 92.5 11.5 C 92.489734 11.499692 92.479085 11.5 92.46875 11.5 L 56.5 11.5 z "
inkscape:radius="-1"
sodipodi:type="inkscape:offset"
style="opacity:0.15;color:#000000;fill:none;stroke:url(#linearGradient2937);stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:1.20000057;marker:none;visibility:visible;display:inline;overflow:visible"
transform="translate(-50,0)" />
<path
d="m 9.5,23.5 30,0"
id="path2990"
style="opacity:0.4;fill:#204a87;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient2857);stroke-width:1px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
inkscape:connector-curvature="0" />
<path
d="m 39.5,30.5 -30,0"
id="path2992"
style="opacity:0.2;fill:none;stroke:url(#linearGradient2849);stroke-width:1px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
inkscape:connector-curvature="0" />
<path
d="m 16,24.5 0,0.9375 c -0.147207,0.048 -0.283915,0.10148 -0.40625,0.1875 l -0.78125,-0.4375 -0.5,0.875 0.71875,0.40625 C 15.011257,26.560269 15,26.652966 15,26.75 c 0,0.09703 0.01126,0.189732 0.03125,0.28125 l -0.71875,0.40625 0.5,0.875 0.78125,-0.4375 C 15.716085,27.96102 15.852793,28.014497 16,28.0625 L 16,29 l 1,0 0,-0.9375 c 0.147207,-0.048 0.283915,-0.10148 0.40625,-0.1875 l 0.78125,0.4375 0.5,-0.875 -0.71875,-0.40625 C 17.988743,26.939732 18,26.847034 18,26.75 18,26.65297 17.98874,26.560268 17.96875,26.46875 l 0.71875,-0.40625 -0.5,-0.875 -0.78125,0.4375 C 17.283915,25.53898 17.147207,25.485503 17,25.4375 l 0,-0.9375 -1,0 z m 16,0 0,0.9375 c -0.147207,0.048 -0.283915,0.10148 -0.40625,0.1875 l -0.78125,-0.4375 -0.5,0.875 0.71875,0.40625 C 31.011257,26.560269 31,26.652966 31,26.75 c 0,0.09703 0.01126,0.189732 0.03125,0.28125 l -0.71875,0.40625 0.5,0.875 0.78125,-0.4375 C 31.716085,27.96102 31.852793,28.014497 32,28.0625 L 32,29 l 1,0 0,-0.9375 c 0.147207,-0.048 0.283915,-0.10148 0.40625,-0.1875 l 0.78125,0.4375 0.5,-0.875 -0.71875,-0.40625 C 33.988743,26.939732 34,26.847034 34,26.75 34,26.65297 33.98874,26.560268 33.96875,26.46875 l 0.71875,-0.40625 -0.5,-0.875 -0.78125,0.4375 C 33.283915,25.53898 33.147207,25.485503 33,25.4375 l 0,-0.9375 -1,0 z"
id="path2780"
style="color:#000000;fill:url(#linearGradient2956);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient2981);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:1.20000057;marker:none;visibility:visible;display:inline;overflow:visible"
inkscape:connector-curvature="0" />
<rect
height="2"
id="rect3039"
rx="1"
ry="1"
style="opacity:0.06410256;color:#000000;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
width="12"
x="9"
y="14" />
<g
id="g2993"
style="opacity:0.4">
<path
d="m 35,13 0,3 c 2.5,0 2.5,-3 0,-3 z"
id="path3026"
sodipodi:nodetypes="ccc"
style="color:#000000;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
inkscape:connector-curvature="0" />
<path
d="m 39,14 c 0.0051,-1.000109 2,-1 2,-1 l 0,3 -2,0 c 3,-1 0,-1.093615 0,-2 z"
id="path3031"
sodipodi:nodetypes="ccccc"
style="color:#000000;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
inkscape:connector-curvature="0" />
<path
d="m 37,13 0,3 c 2.5,0 2.5,-3 0,-3 z"
id="path2859"
sodipodi:nodetypes="ccc"
style="color:#000000;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
inkscape:connector-curvature="0" />
</g>
<g
id="g2962"
style="opacity:0.1;fill-opacity:1;stroke:url(#linearGradient2973)">
<path
d="m 35.90625,27.046875 a 3.796875,3.546875 0 1 1 -7.59375,0 3.796875,3.546875 0 1 1 7.59375,0 z"
id="path2958"
sodipodi:cx="32.109375"
sodipodi:cy="27.046875"
sodipodi:rx="3.796875"
sodipodi:ry="3.546875"
sodipodi:type="arc"
style="color:#000000;fill:none;stroke:url(#linearGradient3091);stroke-width:0.4097665;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:0.40976651, 0.81953301;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible"
transform="matrix(0.731214,0,0,0.733036,9.021239,6.923655)" />
<path
d="m 35.90625,27.046875 a 3.796875,3.546875 0 1 1 -7.59375,0 3.796875,3.546875 0 1 1 7.59375,0 z"
id="path2960"
sodipodi:cx="32.109375"
sodipodi:cy="27.046875"
sodipodi:rx="3.796875"
sodipodi:ry="3.546875"
sodipodi:type="arc"
style="color:#000000;fill:none;stroke:url(#linearGradient3093);stroke-width:0.4097665;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:0.40976651, 0.81953301;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible"
transform="matrix(0.731214,0,0,0.733036,-6.97876,6.923655)" />
</g>
<path
d="m 8.5,17.500006 31.999973,0 0,17.999994"
id="path1966"
sodipodi:nodetypes="ccc"
style="opacity:0.3;color:#000000;fill:none;stroke:url(#linearGradient1968);stroke-width:0.9999997;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dashoffset:1.20000057;marker:none;visibility:visible;display:inline;overflow:visible"
inkscape:connector-curvature="0" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 26 KiB

View File

@ -82,7 +82,6 @@ const wxString KiCadFootprintLibPathWildcard( _( "KiCad footprint s-expre librar
const wxString LegacyFootprintLibPathWildcard( _( "Legacy footprint library file (*.mod)|*.mod" ) );
const wxString EagleFootprintLibPathWildcard( _( "Eagle ver. 6.x XML library files (*.lbr)|*.lbr" ) );
const wxString GedaPcbFootprintLibFileWildcard( _( "Geda PCB footprint library file (*.fp)|*.fp" ) );
const wxString MacrosFileWildcard( _( "KiCad recorded macros (*.mcr)|*.mcr" ) );
const wxString ComponentFileExtensionWildcard( _( "Component-footprint link file (*.cmp)|*cmp" ) );
const wxString PageLayoutDescrFileWildcard( _( "Page layout descr file (*.kicad_wks)|*kicad_wks" ) );
// generic:

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 1992-2014 KiCad Developers, see CHANGELOG.TXT for contributors.
* Copyright (C) 1992-2016 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -313,7 +313,6 @@ EXTERN_BITMAP( load_module_board_xpm )
EXTERN_BITMAP( load_module_lib_xpm )
EXTERN_BITMAP( local_ratsnest_xpm )
EXTERN_BITMAP( locked_xpm )
EXTERN_BITMAP( macros_record_xpm )
EXTERN_BITMAP( mirepcb_xpm )
EXTERN_BITMAP( mirror_h_xpm )
EXTERN_BITMAP( mirror_v_xpm )

View File

@ -1,45 +0,0 @@
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2011-2014 Andrey Fedorushkov <andrf@mail.ru>
* Copyright (C) 1992-2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _CLASS_MACROS_RECORD_H
#define _CLASS_MACROS_RECORD_H
#include <list>
class MACROS_RECORD
{
public:
int m_HotkeyCode;
int m_Idcommand;
wxPoint m_Position;
};
class MACROS_RECORDED
{
public:
wxPoint m_StartPosition;
std::list<MACROS_RECORD> m_Record;
};
#endif // _CLASS_MACROS_RECORD_H

View File

@ -2,8 +2,8 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2009 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2009 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-2011 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2009-2016 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -92,10 +92,6 @@ enum main_id
ID_PREFERENCES_HOTKEY_END,
ID_PREFERENCES_CONFIGURE_PATHS,
ID_PREFRENCES_MACROS,
ID_PREFRENCES_MACROS_SAVE,
ID_PREFRENCES_MACROS_READ,
ID_GEN_PLOT,
ID_GEN_PLOT_PS,
ID_GEN_PLOT_HPGL,

View File

@ -32,7 +32,6 @@
#include <pcb_base_edit_frame.h>
#include <config_params.h>
#include <class_macros_record.h>
#include <class_undoredo_container.h>
#include <zones.h>
@ -83,9 +82,6 @@ class PCB_EDIT_FRAME : public PCB_BASE_EDIT_FRAME
void updateTraceWidthSelectBox();
void updateViaSizeSelectBox();
int m_RecordingMacros;
MACROS_RECORDED m_Macros[10];
/// The auxiliary right vertical tool bar used to access the microwave tools.
wxAuiToolBar* m_microWaveToolBar;
@ -288,27 +284,6 @@ public:
*/
void OnAltWheel( wxCommandEvent& event );
/**
* Function RecordMacros.
* records sequence of hotkeys and cursor positions to a macro.
* @param aDC = current device context
* @param aNumber The current number macros.
*/
void RecordMacros( wxDC* aDC, int aNumber );
/**
* Function CallMacros
* play hotkeys and cursor position from a recorded macro.
* @param aDC = current device context
* @param aPosition The current cursor position in logical (drawing) units.
* @param aNumber The current number macros.
*/
void CallMacros( wxDC* aDC, const wxPoint& aPosition, int aNumber );
void SaveMacros();
void ReadMacros();
/**
* Function PrintPage , virtual
* used to print a page

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 1992-2015 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -225,48 +225,6 @@ static EDA_HOTKEY HkTrackDisplayMode( _HKI( "Track Display Mode" ),
HK_SWITCH_TRACK_DISPLAY_MODE, 'K' );
static EDA_HOTKEY HkAddModule( _HKI( "Add Footprint" ), HK_ADD_MODULE, 'O' );
/* Record and play macros */
static EDA_HOTKEY HkRecordMacros0( _HKI( "Record Macro 0" ), HK_RECORD_MACROS_0, GR_KB_CTRL+'0' );
static EDA_HOTKEY HkCallMacros0( _HKI( "Call Macro 0" ), HK_CALL_MACROS_0, '0' );
static EDA_HOTKEY HkRecordMacros1( _HKI( "Record Macro 1" ), HK_RECORD_MACROS_1, GR_KB_CTRL+'1' );
static EDA_HOTKEY HkCallMacros1( _HKI( "Call Macro 1" ), HK_CALL_MACROS_1, '1' );
static EDA_HOTKEY HkRecordMacros2( _HKI( "Record Macro 2" ), HK_RECORD_MACROS_2, GR_KB_CTRL+'2' );
static EDA_HOTKEY HkCallMacros2( _HKI( "Call Macro 2" ), HK_CALL_MACROS_2, '2' );
static EDA_HOTKEY HkRecordMacros3( _HKI( "Record Macro 3" ), HK_RECORD_MACROS_3, GR_KB_CTRL+'3' );
static EDA_HOTKEY HkCallMacros3( _HKI( "Call Macro 3" ), HK_CALL_MACROS_3, '3' );
static EDA_HOTKEY HkRecordMacros4( _HKI( "Record Macro 4" ), HK_RECORD_MACROS_4, GR_KB_CTRL+'4' );
static EDA_HOTKEY HkCallMacros4( _HKI( "Call Macro 4" ), HK_CALL_MACROS_4, '4' );
static EDA_HOTKEY HkRecordMacros5( _HKI( "Record Macro 5" ), HK_RECORD_MACROS_5, GR_KB_CTRL+'5' );
static EDA_HOTKEY HkCallMacros5( _HKI( "Call Macro 5" ), HK_CALL_MACROS_5, '5' );
static EDA_HOTKEY HkRecordMacros6( _HKI( "Record Macro 6" ), HK_RECORD_MACROS_6, GR_KB_CTRL+'6' );
static EDA_HOTKEY HkCallMacros6( _HKI( "Call Macro 6" ), HK_CALL_MACROS_6, '6' );
static EDA_HOTKEY HkRecordMacros7( _HKI( "Record Macro 7" ), HK_RECORD_MACROS_7, GR_KB_CTRL+'7' );
static EDA_HOTKEY HkCallMacros7( _HKI( "Call Macro 7" ), HK_CALL_MACROS_7, '7' );
static EDA_HOTKEY HkRecordMacros8( _HKI( "Record Macro 8" ), HK_RECORD_MACROS_8, GR_KB_CTRL+'8' );
static EDA_HOTKEY HkCallMacros8( _HKI( "Call Macro 8" ), HK_CALL_MACROS_8, '8' );
static EDA_HOTKEY HkRecordMacros9( _HKI( "Record Macro 9" ), HK_RECORD_MACROS_9, GR_KB_CTRL+'9' );
static EDA_HOTKEY HkCallMacros9( _HKI( "Call Macro 9" ), HK_CALL_MACROS_9, '9' );
// List of common hotkey descriptors
EDA_HOTKEY* common_Hotkey_List[] =
{
@ -315,11 +273,6 @@ EDA_HOTKEY* board_edit_Hotkey_List[] =
&HkSwitch2NextCopperLayer, &HkSwitch2PreviousCopperLayer,&HkAddModule,
&HkSwitchTrackWidthToNext, &HkSwitchTrackWidthToPrevious,&HkSwitchGridToFastGrid1,
&HkSwitchGridToFastGrid2, &HkSwitchGridToNext, &HkSwitchGridToPrevious,
&HkRecordMacros0, &HkCallMacros0, &HkRecordMacros1, &HkCallMacros1,
&HkRecordMacros2, &HkCallMacros2, &HkRecordMacros3, &HkCallMacros3,
&HkRecordMacros4, &HkCallMacros4, &HkRecordMacros5, &HkCallMacros5,
&HkRecordMacros6, &HkCallMacros6, &HkRecordMacros7, &HkCallMacros7,
&HkRecordMacros8, &HkCallMacros8, &HkRecordMacros9, &HkCallMacros9,
&HkSwitchHighContrastMode,
&HkCanvasDefault, &HkCanvasCairo, &HkCanvasOpenGL,
&HkZoneFillOrRefill, &HkZoneRemoveFilled,
@ -396,7 +349,7 @@ EDA_HOTKEY* FOOTPRINT_VIEWER_FRAME::GetHotKeyDescription( int aCommand ) const
bool FOOTPRINT_VIEWER_FRAME::OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition,
EDA_ITEM* aItem )
EDA_ITEM* aItem )
{
if( aHotKey == 0 )
return false;

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 1992-2015 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -93,28 +93,6 @@ enum hotkey_id_commnand {
HK_SWITCH_LAYER_TO_INNER14,
HK_ADD_MODULE,
HK_SLIDE_TRACK,
HK_MACRO_ID_BEGIN,
HK_RECORD_MACROS_0, // keep these id ordered from 0 to 9
HK_RECORD_MACROS_1, // because this order is used in code
HK_RECORD_MACROS_2,
HK_RECORD_MACROS_3,
HK_RECORD_MACROS_4,
HK_RECORD_MACROS_5,
HK_RECORD_MACROS_6,
HK_RECORD_MACROS_7,
HK_RECORD_MACROS_8,
HK_RECORD_MACROS_9,
HK_CALL_MACROS_0,
HK_CALL_MACROS_1,
HK_CALL_MACROS_2,
HK_CALL_MACROS_3,
HK_CALL_MACROS_4,
HK_CALL_MACROS_5,
HK_CALL_MACROS_6,
HK_CALL_MACROS_7,
HK_CALL_MACROS_8,
HK_CALL_MACROS_9,
HK_MACRO_ID_END,
HK_SWITCH_HIGHCONTRAST_MODE,
HK_CANVAS_LEGACY,
HK_CANVAS_OPENGL,

View File

@ -49,65 +49,6 @@
*/
void PCB_EDIT_FRAME::RecordMacros(wxDC* aDC, int aNumber)
{
wxASSERT( aNumber >= 0 && aNumber < 10 );
wxString msg;
if( m_RecordingMacros < 0 )
{
m_RecordingMacros = aNumber;
m_Macros[aNumber].m_StartPosition = GetCrossHairPosition( false );
m_Macros[aNumber].m_Record.clear();
msg.Printf( _( "Recording macro %d" ), aNumber );
SetStatusText( msg );
}
else
{
m_RecordingMacros = -1;
msg.Printf( _( "Macro %d recorded" ), aNumber );
SetStatusText( msg );
}
}
void PCB_EDIT_FRAME::CallMacros( wxDC* aDC, const wxPoint& aPosition, int aNumber )
{
wxPoint tPosition;
wxString msg;
msg.Printf( _( "Call macro %d" ), aNumber );
SetStatusText( msg );
wxCommandEvent cmd( wxEVT_COMMAND_MENU_SELECTED );
cmd.SetEventObject( this );
tPosition = GetNearestGridPosition( aPosition );
m_canvas->CrossHairOff( aDC );
SetMousePosition( tPosition );
GeneralControl( aDC, tPosition );
for( std::list<MACROS_RECORD>::iterator i = m_Macros[aNumber].m_Record.begin();
i != m_Macros[aNumber].m_Record.end(); ++i )
{
wxPoint tmpPos = GetNearestGridPosition( tPosition + i->m_Position );
SetMousePosition( tmpPos );
GeneralControl( aDC, tmpPos, i->m_HotkeyCode );
}
cmd.SetId( ID_ZOOM_REDRAW );
GetEventHandler()->ProcessEvent( cmd );
m_canvas->CrossHairOn( aDC );
}
EDA_HOTKEY* PCB_EDIT_FRAME::GetHotKeyDescription( int aCommand ) const
{
EDA_HOTKEY* HK_Descr = GetDescriptorFromCommand( aCommand, common_Hotkey_List );
@ -147,20 +88,6 @@ bool PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
int hk_id = HK_Descr->m_Idcommand;
if( (m_RecordingMacros != -1) &&
!( hk_id > HK_MACRO_ID_BEGIN && hk_id < HK_MACRO_ID_END) )
{
MACROS_RECORD macros_record;
macros_record.m_HotkeyCode = aHotkeyCode;
macros_record.m_Idcommand = HK_Descr->m_Idcommand;
macros_record.m_Position = GetNearestGridPosition( aPosition ) -
m_Macros[m_RecordingMacros].m_StartPosition;
m_Macros[m_RecordingMacros].m_Record.push_back( macros_record );
wxString msg;
msg.Printf( _( "Add key [%c] in macro %d" ), aHotkeyCode, m_RecordingMacros );
SetStatusText( msg );
}
// Create a wxCommandEvent that will be posted in some hot keys functions
wxCommandEvent cmd( wxEVT_COMMAND_MENU_SELECTED );
cmd.SetEventObject( this );
@ -182,32 +109,6 @@ bool PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
OnLeftDClick( aDC, aPosition );
break;
case HK_RECORD_MACROS_0:
case HK_RECORD_MACROS_1:
case HK_RECORD_MACROS_2:
case HK_RECORD_MACROS_3:
case HK_RECORD_MACROS_4:
case HK_RECORD_MACROS_5:
case HK_RECORD_MACROS_6:
case HK_RECORD_MACROS_7:
case HK_RECORD_MACROS_8:
case HK_RECORD_MACROS_9:
RecordMacros( aDC, hk_id - HK_RECORD_MACROS_0 );
break;
case HK_CALL_MACROS_0:
case HK_CALL_MACROS_1:
case HK_CALL_MACROS_2:
case HK_CALL_MACROS_3:
case HK_CALL_MACROS_4:
case HK_CALL_MACROS_5:
case HK_CALL_MACROS_6:
case HK_CALL_MACROS_7:
case HK_CALL_MACROS_8:
case HK_CALL_MACROS_9:
CallMacros( aDC, GetCrossHairPosition( false ), hk_id - HK_CALL_MACROS_0 );
break;
case HK_SWITCH_TRACK_WIDTH_TO_NEXT:
if( GetCanvas()->IsMouseCaptured() )
GetCanvas()->CallMouseCapture( aDC, wxDefaultPosition, false );

View File

@ -3,8 +3,8 @@
*
* Copyright (C) 2012 Jean-Pierre Charras, jean-pierre.charras@ujf-grenoble.fr
* Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2012-2015 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-2015 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2012-2016 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -576,24 +576,6 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
// Hotkey submenu
AddHotkeyConfigMenu( configmenu );
//--- Macros submenu --------------------------------------------------------
wxMenu* macrosMenu = new wxMenu;
AddMenuItem( macrosMenu, ID_PREFRENCES_MACROS_SAVE,
_( "&Save macros" ),
_( "Save macros to file" ),
KiBitmap( save_setup_xpm ) );
AddMenuItem( macrosMenu, ID_PREFRENCES_MACROS_READ,
_( "&Read macros" ),
_( "Read macros from file" ),
KiBitmap( read_setup_xpm ) );
AddMenuItem( configmenu, macrosMenu,
-1, _( "Ma&cros" ),
_( "Macros save/read operations" ),
KiBitmap( macros_record_xpm ) );
configmenu->AppendSeparator();
AddMenuItem( configmenu, ID_CONFIG_SAVE,

View File

@ -3,8 +3,8 @@
*
* Copyright (C) 2013 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2013 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2013 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 2013-2015 KiCad Developers, see change_log.txt for contributors.
* Copyright (C) 2013-2016 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 2013-2016 KiCad Developers, see change_log.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -151,8 +151,6 @@ BEGIN_EVENT_TABLE( PCB_EDIT_FRAME, PCB_BASE_FRAME )
EVT_MENU( ID_PCB_PAD_SETUP, PCB_EDIT_FRAME::Process_Config )
EVT_MENU( ID_CONFIG_SAVE, PCB_EDIT_FRAME::Process_Config )
EVT_MENU( ID_CONFIG_READ, PCB_EDIT_FRAME::Process_Config )
EVT_MENU( ID_PREFRENCES_MACROS_SAVE, PCB_EDIT_FRAME::Process_Config )
EVT_MENU( ID_PREFRENCES_MACROS_READ, PCB_EDIT_FRAME::Process_Config )
EVT_MENU( ID_PCB_DISPLAY_OPTIONS_SETUP, PCB_EDIT_FRAME::InstallDisplayOptionsDialog )
EVT_MENU( ID_PCB_USER_GRID_SETUP, PCB_EDIT_FRAME::Process_Special_Functions )
@ -323,14 +321,10 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
m_show_layer_manager_tools = true;
m_hotkeysDescrList = g_Board_Editor_Hokeys_Descr;
m_hasAutoSave = true;
m_RecordingMacros = -1;
m_microWaveToolBar = NULL;
m_rotationAngle = 900;
for ( int i = 0; i < 10; i++ )
m_Macros[i].m_Record.clear();
// Create GAL canvas
EDA_DRAW_PANEL_GAL* galCanvas = new PCB_DRAW_PANEL_GAL( this, -1, wxPoint( 0, 0 ),
m_FrameSize, EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE );
@ -473,11 +467,6 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
PCB_EDIT_FRAME::~PCB_EDIT_FRAME()
{
m_RecordingMacros = -1;
for( int i = 0; i < 10; i++ )
m_Macros[i].m_Record.clear();
delete m_drc;
}

View File

@ -3,8 +3,8 @@
*
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2012 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-2012 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2012-2016 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -255,15 +255,6 @@ void PCB_EDIT_FRAME::Process_Config( wxCommandEvent& event )
DisplayHotkeyList( this, g_Board_Editor_Hokeys_Descr );
break;
// Macros IDs
case ID_PREFRENCES_MACROS_SAVE:
SaveMacros();
break;
case ID_PREFRENCES_MACROS_READ:
ReadMacros();
break;
default:
DisplayError( this, wxT( "PCB_EDIT_FRAME::Process_Config error" ) );
}
@ -432,122 +423,3 @@ PARAM_CFG_ARRAY& PCB_EDIT_FRAME::GetConfigurationSettings()
return m_configSettings;
}
void PCB_EDIT_FRAME::SaveMacros()
{
wxXmlDocument xml;
wxXmlAttribute *macrosProp, *hkProp, *xProp, *yProp;
wxString str, hkStr, xStr, yStr;
wxFileName fn = GetBoard()->GetFileName();
fn.SetExt( MacrosFileExtension );
wxFileDialog dlg( this, _( "Save Macros File" ), fn.GetPath(), fn.GetFullName(),
MacrosFileWildcard, wxFD_SAVE | wxFD_CHANGE_DIR );
if( dlg.ShowModal() == wxID_CANCEL )
return;
XNODE *rootNode = new XNODE( wxXML_ELEMENT_NODE, wxT( "macrosrootnode" ), wxEmptyString );
xml.SetRoot( rootNode );
for( int number = 9; number >= 0; number-- )
{
str.Printf( wxT( "%d" ), number );
macrosProp = new wxXmlAttribute( wxT( "number" ), str );
XNODE * macrosNode = new XNODE( rootNode, wxXML_ELEMENT_NODE,
wxT( "macros" ), wxEmptyString,
macrosProp );
for( std::list<MACROS_RECORD>::reverse_iterator i = m_Macros[number].m_Record.rbegin();
i != m_Macros[number].m_Record.rend();
i++ )
{
hkStr.Printf( wxT( "%d" ), i->m_HotkeyCode );
xStr.Printf( wxT( "%d" ), i->m_Position.x );
yStr.Printf( wxT( "%d" ), i->m_Position.y );
yProp = new wxXmlAttribute( wxT( "y" ), yStr );
xProp = new wxXmlAttribute( wxT( "x" ), xStr, yProp );
hkProp = new wxXmlAttribute( wxT( "hkcode" ), hkStr, xProp );
new XNODE( macrosNode, wxXML_ELEMENT_NODE, wxT( "hotkey" ),
wxEmptyString, hkProp );
}
}
xml.SetFileEncoding( wxT( "UTF-8" ) );
xml.Save( dlg.GetFilename() );
}
void PCB_EDIT_FRAME::ReadMacros()
{
wxFileName fn;
fn = GetBoard()->GetFileName();
fn.SetExt( MacrosFileExtension );
wxFileDialog dlg( this, _( "Read Macros File" ), fn.GetPath(),
fn.GetFullName(), MacrosFileWildcard,
wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_CHANGE_DIR );
if( dlg.ShowModal() == wxID_CANCEL )
return;
if( !wxFileExists( dlg.GetPath() ) )
{
wxString msg;
msg.Printf( _( "File %s not found" ), GetChars( dlg.GetPath() ) );
DisplayError( this, msg );
return;
}
wxXmlDocument xml;
xml.SetFileEncoding( wxT( "UTF-8" ) );
if( !xml.Load( dlg.GetFilename() ) )
return;
XNODE *macrosNode = (XNODE*) xml.GetRoot()->GetChildren();
while( macrosNode )
{
int number = -1;
if( macrosNode->GetName() == wxT( "macros" ) )
{
number = wxAtoi( macrosNode->GetAttribute( wxT( "number" ), wxT( "-1" ) ) );
if( number >= 0 && number < 10 )
{
m_Macros[number].m_Record.clear();
XNODE *hotkeyNode = macrosNode->GetChildren();
while( hotkeyNode )
{
if( hotkeyNode->GetName() == wxT( "hotkey" ) )
{
int x = wxAtoi( hotkeyNode->GetAttribute( wxT( "x" ), wxT( "0" ) ) );
int y = wxAtoi( hotkeyNode->GetAttribute( wxT( "y" ), wxT( "0" ) ) );
int hk = wxAtoi( hotkeyNode->GetAttribute( wxT( "hkcode" ), wxT( "0" ) ) );
MACROS_RECORD macros_record;
macros_record.m_HotkeyCode = hk;
macros_record.m_Position.x = x;
macros_record.m_Position.y = y;
m_Macros[number].m_Record.push_back( macros_record );
}
hotkeyNode = hotkeyNode->GetNext();
}
}
}
macrosNode = macrosNode->GetNext();
}
}