Layers manager: add (in context menu) show all layers and hide all layers, and code cleanup.

This commit is contained in:
jean-pierre charras 2016-09-25 13:08:04 +02:00
parent 33e1a4e884
commit 48c18604fc
12 changed files with 754 additions and 49 deletions

View File

@ -517,6 +517,10 @@ set( BMAPS_MID
show_zone
show_zone_disable
show_zone_outline_only
show_all_layers
show_no_layers
show_no_copper_layers
show_all_copper_layers
svg_file
swap_layer
text_sketch

View File

@ -0,0 +1,45 @@
/* 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, 0x01, 0xbd, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xbd, 0x96, 0x31, 0x6b, 0x14,
0x41, 0x14, 0x80, 0xbf, 0xf7, 0x66, 0x77, 0x73, 0x09, 0x68, 0xc2, 0xc9, 0x05, 0x0c, 0x87, 0x18,
0x2c, 0xc4, 0xc2, 0x13, 0x23, 0x51, 0x14, 0x1b, 0xa3, 0x82, 0x62, 0x65, 0x91, 0x42, 0x10, 0x6b,
0x05, 0xd3, 0x08, 0x62, 0x91, 0x7f, 0xa0, 0x29, 0x2c, 0x2c, 0x84, 0x80, 0x3f, 0x20, 0x95, 0x20,
0x16, 0x22, 0xa6, 0xd1, 0xc6, 0xca, 0x52, 0x83, 0x4d, 0x40, 0x0d, 0x16, 0x0a, 0x36, 0x62, 0xe0,
0x98, 0x79, 0x16, 0xee, 0x59, 0xc8, 0xcc, 0x15, 0xbb, 0x83, 0x03, 0x5f, 0xbb, 0x1f, 0xcb, 0x37,
0xef, 0x31, 0x00, 0x1b, 0x19, 0x39, 0xc9, 0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AQUE show_all_copper_layers_xpm[1] = {{ png, sizeof( png ), "show_all_copper_layers_xpm" }};
//EOF

View File

@ -0,0 +1,40 @@
/* 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, 0x01, 0x6e, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xdd, 0xd5, 0x31, 0x6b, 0xc2,
0x40, 0x18, 0x06, 0xe0, 0x23, 0x70, 0x4b, 0x96, 0xba, 0xba, 0x39, 0xdc, 0x0f, 0x38, 0xa7, 0xc2,
0x8d, 0xb7, 0x1c, 0x9f, 0xc6, 0xe6, 0x12, 0x13, 0x75, 0x2a, 0x58, 0x8a, 0x4b, 0x71, 0x2a, 0x14,
0x04, 0xd7, 0x42, 0x87, 0xd2, 0x6e, 0x4e, 0x52, 0x1d, 0xf2, 0x27, 0x3a, 0x76, 0x29, 0xd9, 0xbb,
0xb6, 0x94, 0x20, 0xe8, 0x54, 0xc8, 0x94, 0x40, 0x20, 0xa4, 0x8b, 0x4a, 0x6c, 0xa9, 0x82, 0x5e,
0x10, 0xfa, 0xc1, 0x3b, 0x3f, 0xcb, 0xcb, 0xfb, 0x21, 0xb4, 0xe3, 0xa4, 0x94, 0x15, 0x90, 0xf0,
0x59, 0xed, 0x57, 0x63, 0x6d, 0xa2, 0x65, 0x68, 0x8a, 0xf6, 0xcb, 0xb6, 0x33, 0x4d, 0xf3, 0x14,
0x2c, 0x08, 0xc9, 0x80, 0xa4, 0x7b, 0x03, 0xbb, 0xa0, 0xfa, 0x59, 0xdd, 0x05, 0x0b, 0xe2, 0xf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0xc0, 0x3b, 0xef, 0xf0, 0xe8, 0x79, 0xa4,
0x67, 0xfe, 0x14, 0x29, 0xcb, 0x46, 0x19, 0x1c, 0x5b, 0xf8, 0x57, 0x5d, 0x16, 0xbf, 0x8c, 0xb1,
0x52, 0xc4, 0xcf, 0xbf, 0x09, 0xc7, 0x86, 0x60, 0xd8, 0xa7, 0xc9, 0xeb, 0x44, 0x53, 0x8e, 0xf8,
0xab, 0x37, 0x61, 0x5b, 0x10, 0x3e, 0x0e, 0x48, 0x5a, 0x04, 0x90, 0x83, 0x8e, 0xb0, 0x0c, 0xff,
0xe2, 0xbe, 0x01, 0x32, 0xb8, 0x32, 0x1d, 0x19, 0xd4, 0x52, 0xb3, 0x00, 0x00, 0x00, 0x00, 0x49,
0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
};
const BITMAP_OPAQUE show_all_layers_xpm[1] = {{ png, sizeof( png ), "show_all_layers_xpm" }};
//EOF

View File

@ -0,0 +1,53 @@
/* 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, 0x02, 0x3d, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xdd, 0x96, 0x3f, 0x68, 0x14,
0x41, 0x14, 0xc6, 0x9f, 0x99, 0x79, 0x6f, 0x39, 0x02, 0x97, 0x68, 0xe4, 0x92, 0xbb, 0x3d, 0x4f,
0xc1, 0x22, 0x46, 0x11, 0x52, 0x78, 0xa7, 0x18, 0x54, 0x82, 0x68, 0xa1, 0x28, 0x56, 0x87, 0x69,
0xae, 0xb2, 0x50, 0xb0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0xe9, 0x06, 0xd5, 0x78, 0xd1, 0x13, 0xa0, 0xa0, 0x2d, 0xf0, 0x92, 0x76, 0x5c,
0x12, 0x79, 0x16, 0xd5, 0x53, 0x0b, 0x38, 0x85, 0x08, 0xdb, 0x6d, 0x5b, 0x4f, 0x62, 0x52, 0x9e,
0xf7, 0x33, 0x3b, 0x6d, 0xbc, 0xa4, 0xdd, 0xcf, 0xe4, 0x65, 0x2d, 0xea, 0x99, 0xc6, 0x6b, 0x61,
0xfa, 0x5c, 0xf2, 0x23, 0x95, 0x74, 0x5e, 0x29, 0x25, 0x07, 0x4c, 0x66, 0x99, 0xe4, 0x27, 0x7a,
0xc8, 0xa5, 0xff, 0xe9, 0xba, 0x22, 0x0a, 0xb6, 0x66, 0x9c, 0xd7, 0x1e, 0x9d, 0x17, 0xcf, 0x53,
0x76, 0x15, 0x74, 0x05, 0x36, 0xd5, 0xd8, 0x21, 0xd8, 0xe1, 0xd6, 0xe8, 0xb3, 0xce, 0x2c, 0x9e,
0x17, 0x07, 0xda, 0x07, 0x61, 0xaf, 0x0d, 0xab, 0xef, 0xe0, 0x09, 0x7d, 0xc0, 0x98, 0x31, 0x53,
0x55, 0x4e, 0xe7, 0x2d, 0x51, 0x70, 0x9b, 0xe4, 0x45, 0x77, 0xbf, 0xf0, 0xb8, 0xc9, 0x6c, 0xcd,
0xda, 0xfb, 0x72, 0x24, 0x31, 0x83, 0x37, 0xc3, 0xd2, 0xfd, 0x02, 0x6f, 0xa4, 0x16, 0xe9, 0xd4,
0x4a, 0x4d, 0x63, 0x7d, 0x98, 0x1f, 0x95, 0x7f, 0xe8, 0x5f, 0xc9, 0x48, 0xdf, 0x83, 0x44, 0x54,
0xfc, 0x05, 0x34, 0xc3, 0xdd, 0xe3, 0x27, 0x34, 0x75, 0xda, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45,
0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
};
const BITMAP_OPAQUE show_no_copper_layers_xpm[1] = {{ png, sizeof( png ), "show_no_copper_layers_xpm" }};
//EOF

View File

@ -0,0 +1,53 @@
/* 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, 0x02, 0x3b, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xb5, 0x96, 0x3f, 0x68, 0x13,
0x51, 0x1c, 0xc7, 0x3f, 0xe5, 0xde, 0x69, 0x0a, 0xad, 0x90, 0xc5, 0x08, 0xd2, 0xe5, 0x86, 0x82,
0xa3, 0x38, 0xc5, 0x49, 0x50, 0x0a, 0x22, 0x75, 0xf0, 0x4f, 0x17, 0xeb, 0xd0, 0x57, 0x89, 0x38,
0x64, 0x10, 0xc4, 0x5c, 0x83, 0x73, 0x40, 0x68, 0x41, 0x5c, 0x6a, 0x2d, 0xa4, 0xaf, 0x45, 0x87,
0xe8, 0xee, 0x16, 0x02, 0x45, 0x32, 0x28, 0x6e, 0x12, 0x14, 0x72, 0xc1, 0x90, 0xe4, 0x35, 0xe9,
0xf4, 0xb4, 0x6e, 0x2d, 0x9c, 0x83, 0xa4, 0xbd, 0x42, 0x93, 0xde, 0xb5, 0xc9, 0x0f, 0x3e, 0xcb,
0x77, 0xf9, 0x0e, 0xef, 0xc3, 0xf7, 0x0e, 0xa2, 0x9c, 0x62, 0x06, 0x85, 0x46, 0x71, 0x9d, 0xa1,
0xdd, 0x3a, 0x59, 0x14, 0x55, 0x36, 0xb8, 0x34, 0x9c, 0x82, 0x15, 0x6c, 0x14, 0x79, 0x14, 0x65,
0x36, 0x38, 0x3f, 0x9c, 0x92, 0xf7, 0xc4,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d5, 0x6e, 0x9d, 0x1b, 0xfb, 0xbe, 0x7b, 0xd6, 0x6e,
0x6c, 0x47, 0xdb, 0xb3, 0x7e, 0xf0, 0x37, 0x11, 0xdc, 0xa4, 0x3b, 0x37, 0xa6, 0xd3, 0x8f, 0xef,
0x4e, 0x76, 0x6e, 0x5f, 0x7b, 0x30, 0x1b, 0x6d, 0xcb, 0x8e, 0x23, 0x70, 0x19, 0x29, 0xb2, 0x0b,
0xf3, 0x56, 0xf5, 0xf9, 0xa3, 0x33, 0xc3, 0xf9, 0x01, 0x19, 0xb0, 0x59, 0x47, 0xdf, 0x80, 0xcd,
0xea, 0x53, 0x34, 0x27, 0x4a, 0xae, 0x14, 0x7e, 0x46, 0x5a, 0xb5, 0x28, 0xdb, 0x15, 0x95, 0x7f,
0x64, 0xc6, 0xfa, 0xaa, 0x3a, 0x82, 0xd0, 0x49, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44,
0xae, 0x42, 0x60, 0x82,
};
const BITMAP_OPAQUE show_no_layers_xpm[1] = {{ png, sizeof( png ), "show_no_layers_xpm" }};
//EOF

View File

@ -0,0 +1,105 @@
<?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="48"
width="48"
version="1.1"
id="svg2"
inkscape:version="0.91 r13725"
sodipodi:docname="show_all_copper_layers.svg">
<metadata
id="metadata26">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</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="1916"
inkscape:window-height="945"
id="namedview24"
showgrid="false"
inkscape:zoom="4.9166667"
inkscape:cx="24"
inkscape:cy="23.79661"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="svg2" />
<defs
id="defs4">
<filter
id="c"
height="1.212"
width="1.059"
color-interpolation-filters="sRGB"
y="-.10598"
x="-.029501">
<feGaussianBlur
stdDeviation="0.52522041"
id="feGaussianBlur7" />
</filter>
<filter
id="d"
height="1.212"
width="1.059"
color-interpolation-filters="sRGB"
y="-.10598"
x="-.029501">
<feGaussianBlur
stdDeviation="0.52522041"
id="feGaussianBlur10" />
</filter>
</defs>
<path
d="m 3.6673,10.113 32.046,0 10.682,11.894 -32.046,0 -10.682,-11.894 z"
transform="matrix(1.046232,0,0,1.2579656,-2.4195401,-6.9358214)"
id="path12"
inkscape:connector-curvature="0"
style="opacity:0.21483998;fill:#030000;stroke:#000000;stroke-width:2.42000008;filter:url(#d)" />
<path
d="m 4.3945,30.386 32.046,0 10.682,11.894 -32.046,0 -10.682,-11.894 z"
transform="matrix(1.046232,0,0,1.2579656,-2.4195401,-6.9358214)"
id="path14"
inkscape:connector-curvature="0"
style="opacity:0.21483998;fill:#030000;stroke:#000000;stroke-width:2.42000008;filter:url(#c)" />
<g
transform="matrix(2.9379,0,0,2.1996,-5.2815,-32.414)"
id="g16">
<rect
fill-opacity="0"
height="16"
width="16"
y="0"
x="0"
id="rect18" />
</g>
<path
d="m 1.1953376,27.733288 33.5271664,0 11.176101,14.963318 -33.527168,0 L 1.1966966,27.733288 Z"
id="path20"
inkscape:connector-curvature="0"
style="fill:#1cff06;stroke:#000000;stroke-width:2.77633047" />
<path
d="m 0.97337837,2.210868 33.52716763,0 11.175986,14.963319 -33.527167,0 L 0.9747373,2.210868 Z"
id="path22"
inkscape:connector-curvature="0"
style="fill:#ff0606;stroke:#000000;stroke-width:3.00568533" />
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -0,0 +1,147 @@
<?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"
id="svg2"
inkscape:version="0.91 r13725"
sodipodi:docname="show_all_layers.svg">
<metadata
id="metadata40">
<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="1920"
inkscape:window-height="1033"
id="namedview38"
showgrid="true"
inkscape:snap-to-guides="false"
inkscape:snap-grids="true"
inkscape:zoom="11.480769"
inkscape:cx="-4.8871048"
inkscape:cy="15.149152"
inkscape:window-x="-4"
inkscape:window-y="-4"
inkscape:window-maximized="1"
inkscape:current-layer="svg2">
<inkscape:grid
type="xygrid"
id="grid3017"
empspacing="2"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true"
spacingx="0.5px"
spacingy="0.5px" />
</sodipodi:namedview>
<defs
id="defs4">
<linearGradient
id="c-1"
y2="6.7758002"
gradientUnits="userSpaceOnUse"
x2="20.631001"
gradientTransform="matrix(0.98748,0,0,1.0024,-5.1519366,34.914162)"
y1="42.254002"
x1="19.648001">
<stop
stop-color="#b6b6b6"
offset="0"
id="stop7" />
<stop
stop-color="#f2f2f2"
offset=".5"
id="stop9" />
<stop
stop-color="#fafafa"
offset=".67613"
id="stop11" />
<stop
stop-color="#d8d8d8"
offset=".84052"
id="stop13" />
<stop
stop-color="#f2f2f2"
offset=".875"
id="stop15" />
<stop
stop-color="#dbdbdb"
offset="1"
id="stop17" />
</linearGradient>
<linearGradient
id="d-9"
y2="-4.3003001"
gradientUnits="userSpaceOnUse"
x2="25.291"
gradientTransform="matrix(0.99518,0,0,0.9948,21.199415,27.899328)"
y1="-3.6324"
x1="50.153">
<stop
stop-color="#fff"
offset="0"
id="stop20" />
<stop
offset="1"
id="stop22" />
</linearGradient>
</defs>
<path
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="path3835"
d="m 14.5,11.5 14,0 0,12 -28,0 z"
style="fill:#c8a000;fill-opacity:1;stroke:#4d4d4d;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;opacity:1" />
<path
style="fill:#0000f0;fill-opacity:1;stroke:#4d4d4d;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;opacity:1"
d="m 14.5,6.5 14,0 0,12 -28,0 z"
id="path3833"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<g
transform="matrix(1.6382539,0,0,1.5572263,-0.2427793,0.36314149)"
id="g16">
<rect
height="16"
width="16"
y="0"
x="0"
id="rect18"
style="fill-opacity:0" />
</g>
<path
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="path3831"
d="m 14.5,1.5 14,0 0,12 -28,0 z"
style="fill:#e60000;fill-opacity:1;stroke:#4d4d4d;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;opacity:1" />
<path
style="fill:#00a000;fill-opacity:1;stroke:#4d4d4d;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;opacity:1"
d="m 14.5,-3.5 14,0 0,12 -28,0 z"
id="rect3828"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
</svg>

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -0,0 +1,106 @@
<?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="48"
width="48"
version="1.1"
id="svg2"
inkscape:version="0.91 r13725"
sodipodi:docname="show_no_copper_layers.svg">
<metadata
id="metadata26">
<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></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="1730"
inkscape:window-height="925"
id="namedview24"
showgrid="false"
inkscape:zoom="4.9166667"
inkscape:cx="24"
inkscape:cy="23.79661"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="svg2" />
<defs
id="defs4">
<filter
id="c"
height="1.212"
width="1.059"
color-interpolation-filters="sRGB"
y="-.10598"
x="-.029501">
<feGaussianBlur
stdDeviation="0.52522041"
id="feGaussianBlur7" />
</filter>
<filter
id="d"
height="1.212"
width="1.059"
color-interpolation-filters="sRGB"
y="-.10598"
x="-.029501">
<feGaussianBlur
stdDeviation="0.52522041"
id="feGaussianBlur10" />
</filter>
</defs>
<path
d="m 3.6673,10.113 32.046,0 10.682,11.894 -32.046,0 -10.682,-11.894 z"
transform="matrix(1.0243366,0,0,1.2363317,-1.7562539,-6.8070879)"
id="path12"
inkscape:connector-curvature="0"
style="opacity:0.21483998;fill:#030000;stroke:#000000;stroke-width:2.42000008;filter:url(#d)" />
<path
d="m 4.3945,30.386 32.046,0 10.682,11.894 -32.046,0 -10.682,-11.894 z"
transform="matrix(1.0243366,0,0,1.2363317,-1.7562539,-6.8070879)"
id="path14"
inkscape:connector-curvature="0"
style="opacity:0.21483998;fill:#030000;stroke:#000000;stroke-width:2.42000008;filter:url(#c)" />
<g
transform="matrix(2.9379,0,0,2.1996,-5.2815,-32.414)"
id="g16">
<rect
fill-opacity="0"
height="16"
width="16"
y="0"
x="0"
id="rect18" />
</g>
<path
d="m 1.7829721,27.265798 32.8255149,0 10.942208,14.705985 -32.825515,0 L 1.7843026,27.265798 Z"
id="path20"
style="fill:none;stroke:#1cff06;stroke-width:2.72340131;stroke-opacity:1"
inkscape:connector-curvature="0" />
<path
d="m 1.5656581,2.1823009 32.8255139,0 10.942098,14.7059861 -32.825515,0 L 1.5669886,2.1823009 Z"
id="path22"
style="fill:none;stroke:#ff0606;stroke-width:2.94862318;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
inkscape:connector-curvature="0" />
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,147 @@
<?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"
id="svg2"
inkscape:version="0.91 r13725"
sodipodi:docname="show_no_layers.svg">
<metadata
id="metadata40">
<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="1920"
inkscape:window-height="1033"
id="namedview38"
showgrid="true"
inkscape:snap-to-guides="false"
inkscape:snap-grids="true"
inkscape:zoom="11.480769"
inkscape:cx="-4.8871048"
inkscape:cy="15.149152"
inkscape:window-x="-4"
inkscape:window-y="-4"
inkscape:window-maximized="1"
inkscape:current-layer="svg2">
<inkscape:grid
type="xygrid"
id="grid3017"
empspacing="2"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true"
spacingx="0.5px"
spacingy="0.5px" />
</sodipodi:namedview>
<defs
id="defs4">
<linearGradient
id="c-1"
y2="6.7758002"
gradientUnits="userSpaceOnUse"
x2="20.631001"
gradientTransform="matrix(0.98748,0,0,1.0024,-5.1519366,34.914162)"
y1="42.254002"
x1="19.648001">
<stop
stop-color="#b6b6b6"
offset="0"
id="stop7" />
<stop
stop-color="#f2f2f2"
offset=".5"
id="stop9" />
<stop
stop-color="#fafafa"
offset=".67613"
id="stop11" />
<stop
stop-color="#d8d8d8"
offset=".84052"
id="stop13" />
<stop
stop-color="#f2f2f2"
offset=".875"
id="stop15" />
<stop
stop-color="#dbdbdb"
offset="1"
id="stop17" />
</linearGradient>
<linearGradient
id="d-9"
y2="-4.3003001"
gradientUnits="userSpaceOnUse"
x2="25.291"
gradientTransform="matrix(0.99518,0,0,0.9948,21.199415,27.899328)"
y1="-3.6324"
x1="50.153">
<stop
stop-color="#fff"
offset="0"
id="stop20" />
<stop
offset="1"
id="stop22" />
</linearGradient>
</defs>
<path
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="path3835"
d="m 14.587102,13.677554 14,0 0,12 -27.99999982,0 z"
style="opacity:1;fill:none;fill-opacity:1;stroke:#786204;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="opacity:1;fill:none;fill-opacity:1;stroke:#0000f0;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 14.587102,8.6775545 14,0 0,11.9999995 -27.99999982,0 z"
id="path3833"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<g
transform="matrix(1.6382539,0,0,1.5572263,-0.15567712,2.540696)"
id="g16">
<rect
height="16"
width="16"
y="0"
x="0"
id="rect18"
style="fill-opacity:0" />
</g>
<path
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="path3831"
d="m 14.587102,3.6775545 14,0 0,11.9999995 -27.99999982,0 z"
style="opacity:1;fill:none;fill-opacity:1;stroke:#e60000;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="opacity:1;fill:none;fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 14.587102,-1.3224455 14,0 0,11.9999995 -27.99999982,0 z"
id="rect3828"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
</svg>

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -515,6 +515,10 @@ EXTERN_BITMAP( setcolor_board_body_xpm )
EXTERN_BITMAP( show_dcodenumber_xpm )
EXTERN_BITMAP( show_footprint_xpm )
EXTERN_BITMAP( show_mod_edge_xpm )
EXTERN_BITMAP( show_all_layers_xpm )
EXTERN_BITMAP( show_no_layers_xpm )
EXTERN_BITMAP( show_no_copper_layers_xpm )
EXTERN_BITMAP( show_all_copper_layers_xpm )
EXTERN_BITMAP( showtrack_xpm )
EXTERN_BITMAP( show_zone_xpm )
EXTERN_BITMAP( show_zone_disable_xpm )

View File

@ -1,9 +1,9 @@
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2004-2015 Jean-Pierre Charras, jean-pierre.charras@gpisa-lab.inpg.fr
* Copyright (C) 2004-2016 Jean-Pierre Charras, jean-pierre.charras@gpisa-lab.inpg.fr
* Copyright (C) 2010-2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2010-2015 KiCad Developers, see change_log.txt for contributors.
* Copyright (C) 2010-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
@ -40,6 +40,7 @@
#include <pcbstruct.h> // enum PCB_VISIBLE
#include <layer_widget.h>
#include <macros.h>
#include <menus_helpers.h>
#include <class_board.h>
#include <class_pcb_layer_widget.h>
@ -106,7 +107,7 @@ PCB_LAYER_WIDGET::PCB_LAYER_WIDGET( PCB_BASE_FRAME* aParent, wxWindow* aFocusOwn
// since Popupmenu() calls this->ProcessEvent() we must call this->Connect()
// and not m_LayerScrolledWindow->Connect()
Connect( ID_SHOW_ALL_COPPERS, ID_SHOW_ALL_LAYERS,
Connect( ID_SHOW_ALL_COPPER_LAYERS, ID_SHOW_ALL_LAYERS,
wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler( PCB_LAYER_WIDGET::onPopupSelection ), NULL, this );
// install the right click handler into each control at end of ReFill()
@ -157,18 +158,25 @@ void PCB_LAYER_WIDGET::onRightDownLayers( wxMouseEvent& event )
// menu text is capitalized:
// http://library.gnome.org/devel/hig-book/2.20/design-text-labels.html.en#layout-capitalization
menu.Append( new wxMenuItem( &menu, ID_SHOW_ALL_COPPERS,
_( "Show All Copper Layers" ) ) );
menu.Append( new wxMenuItem( &menu, ID_SHOW_NO_COPPERS_BUT_ACTIVE,
_( "Hide All Copper Layers But Active" ) ) );
menu.Append( new wxMenuItem( &menu, ID_ALWAYS_SHOW_NO_COPPERS_BUT_ACTIVE,
_( "Always Hide All Copper Layers But Active" ) ) );
menu.Append( new wxMenuItem( &menu, ID_SHOW_NO_COPPERS,
_( "Hide All Copper Layers" ) ) );
menu.Append( new wxMenuItem( &menu, ID_SHOW_NO_LAYERS,
_( "Hide All Layers" ) ) );
menu.Append( new wxMenuItem( &menu, ID_SHOW_ALL_LAYERS,
_( "Show All Layers" ) ) );
AddMenuItem( &menu, ID_SHOW_ALL_COPPER_LAYERS,
_( "Show All Copper Layers" ),
KiBitmap( select_layer_pair_xpm ) );
AddMenuItem( &menu, ID_SHOW_NO_COPPER_LAYERS_BUT_ACTIVE,
_( "Hide All Copper Layers But Active" ),
KiBitmap( select_w_layer_xpm ) );
AddMenuItem( &menu, ID_ALWAYS_SHOW_NO_COPPER_LAYERS_BUT_ACTIVE,
_( "Always Hide All Copper Layers But Active" ),
KiBitmap( select_w_layer_xpm ) );
AddMenuItem( &menu, ID_SHOW_NO_COPPER_LAYERS,
_( "Hide All Copper Layers" ),
KiBitmap( show_no_copper_layers_xpm ) );
menu.AppendSeparator();
AddMenuItem( &menu, ID_SHOW_NO_LAYERS, _( "Hide All Layers" ),
KiBitmap( show_no_layers_xpm ) );
AddMenuItem( &menu, ID_SHOW_ALL_LAYERS, _( "Show All Layers" ),
KiBitmap( show_all_layers_xpm ) );
PopupMenu( &menu );
@ -183,45 +191,38 @@ void PCB_LAYER_WIDGET::onPopupSelection( wxCommandEvent& event )
bool visible;
bool force_active_layer_visible;
visible = menuId == ID_SHOW_ALL_COPPERS;
m_alwaysShowActiveCopperLayer = ( menuId == ID_ALWAYS_SHOW_NO_COPPERS_BUT_ACTIVE );
force_active_layer_visible = ( menuId == ID_SHOW_NO_COPPERS_BUT_ACTIVE ||
menuId == ID_ALWAYS_SHOW_NO_COPPERS_BUT_ACTIVE );
m_alwaysShowActiveCopperLayer = ( menuId == ID_ALWAYS_SHOW_NO_COPPER_LAYERS_BUT_ACTIVE );
force_active_layer_visible = ( menuId == ID_SHOW_NO_COPPER_LAYERS_BUT_ACTIVE ||
menuId == ID_ALWAYS_SHOW_NO_COPPER_LAYERS_BUT_ACTIVE );
switch( menuId )
{
case ID_SHOW_NO_LAYERS:
case ID_SHOW_ALL_LAYERS:
bool loc_visible;
if (menuId==ID_SHOW_ALL_LAYERS)
loc_visible= true;
else
loc_visible = false;
visible = menuId == ID_SHOW_ALL_LAYERS;
rowCount = GetLayerRowCount();
for( int row=0; row<rowCount; ++row )
for( int row=0; row<rowCount; ++row )
{
bool isLast;
wxCheckBox* cb = (wxCheckBox*) getLayerComp( row, COLUMN_COLOR_LYR_CB );
LAYER_ID layer = ToLAYER_ID( getDecodedId( cb->GetId() ) );
cb->SetValue( loc_visible );
cb->SetValue( visible );
if (row==rowCount-1)
isLast=true;
else
isLast=false;
isLast = row == rowCount-1;
OnLayerVisible( layer, loc_visible, isLast );
if (isLast) break;
OnLayerVisible( layer, visible, isLast );
if( isLast )
break;
}
break;
case ID_SHOW_ALL_COPPERS:
case ID_ALWAYS_SHOW_NO_COPPERS_BUT_ACTIVE:
case ID_SHOW_NO_COPPERS_BUT_ACTIVE:
case ID_SHOW_NO_COPPERS:
case ID_SHOW_ALL_COPPER_LAYERS:
case ID_ALWAYS_SHOW_NO_COPPER_LAYERS_BUT_ACTIVE:
case ID_SHOW_NO_COPPER_LAYERS_BUT_ACTIVE:
case ID_SHOW_NO_COPPER_LAYERS:
// Search the last copper layer row index:
int lastCu = -1;
@ -246,15 +247,15 @@ void PCB_LAYER_WIDGET::onPopupSelection( wxCommandEvent& event )
if( IsCopperLayer( layer ) )
{
bool loc_visible = visible;
visible = menuId == ID_SHOW_ALL_COPPER_LAYERS;
if( force_active_layer_visible && (layer == myframe->GetActiveLayer() ) )
loc_visible = true;
visible = true;
cb->SetValue( loc_visible );
cb->SetValue( visible );
bool isLastCopperLayer = (row==lastCu);
OnLayerVisible( layer, loc_visible, isLastCopperLayer );
bool isLastCopperLayer = (row == lastCu);
OnLayerVisible( layer, visible, isLastCopperLayer );
if( isLastCopperLayer )
break;
@ -481,7 +482,7 @@ bool PCB_LAYER_WIDGET::OnLayerSelected()
// postprocess after an active layer selection
// ensure active layer visible
wxCommandEvent event;
event.SetId( ID_ALWAYS_SHOW_NO_COPPERS_BUT_ACTIVE );
event.SetId( ID_ALWAYS_SHOW_NO_COPPER_LAYERS_BUT_ACTIVE );
onPopupSelection( event );
return true;

View File

@ -118,12 +118,12 @@ protected:
PCB_BASE_FRAME* myframe;
// popup menu ids.
#define ID_SHOW_ALL_COPPERS wxID_HIGHEST
#define ID_SHOW_NO_COPPERS (wxID_HIGHEST+1)
#define ID_SHOW_NO_COPPERS_BUT_ACTIVE (wxID_HIGHEST+2)
#define ID_ALWAYS_SHOW_NO_COPPERS_BUT_ACTIVE (wxID_HIGHEST+3)
#define ID_SHOW_NO_LAYERS (wxID_HIGHEST+4)
#define ID_SHOW_ALL_LAYERS (wxID_HIGHEST+5)
#define ID_SHOW_ALL_COPPER_LAYERS wxID_HIGHEST
#define ID_SHOW_NO_COPPER_LAYERS (wxID_HIGHEST+1)
#define ID_SHOW_NO_COPPER_LAYERS_BUT_ACTIVE (wxID_HIGHEST+2)
#define ID_ALWAYS_SHOW_NO_COPPER_LAYERS_BUT_ACTIVE (wxID_HIGHEST+3)
#define ID_SHOW_NO_LAYERS (wxID_HIGHEST+4)
#define ID_SHOW_ALL_LAYERS (wxID_HIGHEST+5)
/**