Add bitmaps paste_special to context menu.

This commit is contained in:
jean-pierre charras 2022-06-13 14:40:21 +02:00
parent 1140fd0fb0
commit fa5150b05f
8 changed files with 242 additions and 1 deletions

View File

@ -388,6 +388,7 @@ set( BMAPS_MID
pagelayout_special_view_mode
part_properties
paste
paste_special
pin2pin
pin_size_to
pin_show_etype

Binary file not shown.

After

Width:  |  Height:  |  Size: 897 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 954 B

View File

@ -0,0 +1,117 @@
<?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"
version="1.1"
id="Слой_1"
inkscape:export-filename="F:\kicad-launchpad\git_dev\bitmaps_png\png\paste_special_dark_24.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
sodipodi:docname="paste_special.svg"
x="0px"
y="0px"
viewBox="0 0 24 24"
style="enable-background:new 0 0 24 24;"
xml:space="preserve"><metadata
id="metadata850"><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>paste</dc:title><cc:license
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /></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="defs848" />
<style
type="text/css"
id="style833">
.st0{fill:#727272;}
.st1{fill:#F0EBF0;}
.st2{fill:#545454;stroke:#DED3DD;}
</style>
<sodipodi:namedview
bordercolor="#666666"
borderopacity="1"
gridtolerance="10"
guidetolerance="10"
id="namedview30"
inkscape:current-layer="Слой_1"
inkscape:cx="11.309915"
inkscape:cy="11.691534"
inkscape:document-rotation="0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-height="1017"
inkscape:window-maximized="1"
inkscape:window-width="1920"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:zoom="17.952128"
objecttolerance="10"
pagecolor="#ffffff"
showgrid="true">
<inkscape:grid
color="#9999ff"
empspacing="2"
id="grid_kicad"
opacity="0.13"
spacingx="0.5"
spacingy="0.5"
type="xygrid">
</inkscape:grid>
</sodipodi:namedview>
<title
id="title158895">paste</title>
<path
class="st0"
d="M 6.5,2.1 V 0.5 C 6.5,0.2 6.7,0 7,0 h 3 c 0.3,0 0.589482,0.213656 0.5,0.5 v 1.6 z"
id="path838"
style="fill:#ded3dd;fill-opacity:1"
sodipodi:nodetypes="csssscc" />
<path
id="path158905"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssscss"
class="st2"
d="m 6,1.5 h 5.2 C 11.9,1.5 12,2 12,2.4 v 0.8 c 0,0.7 -0.1,1.3 -0.8,1.3 H 5.7 C 5,4.5 5,4.2 5,3.5 V 2.4 C 5,1.7 5.3,1.5 6,1.5 Z" />
<rect
style="fill:#8f8f8f;fill-opacity:1;stroke:#ded3dd;stroke-width:1.00157;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect846"
width="15"
height="17"
x="1"
y="3.5" /><path
id="polygon25929"
sodipodi:nodetypes="ccccc"
class="st0"
d="M 19,6.5 H 7 v 14.999999 h 12.000001 z"
style="fill:#545454;fill-opacity:1;stroke:#ded3dd;stroke-width:1;stroke-miterlimit:10" /><g
id="g29"
transform="translate(1)"><rect
class="cls-3"
x="0.99999994"
y="14"
width="22"
height="10"
id="rect1554"
style="fill:#1381b1;fill-opacity:1;stroke-width:1" /><text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:condensed;font-size:11.2px;line-height:1.25;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans Semi-Bold Condensed';letter-spacing:0px;word-spacing:0px"
x="11.968635"
y="23.022593"
id="text1558"><tspan
sodipodi:role="line"
id="tspan1556"
x="11.968635"
y="23.022593"
style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:semi-condensed;font-size:11.2px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans Semi-Bold Semi-Condensed';text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1">R42</tspan></text></g></svg>

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -0,0 +1,119 @@
<?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"
version="1.1"
id="Слой_1"
inkscape:export-filename="F:\kicad-launchpad\git_dev\bitmaps_png\png\paste_special_24.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
sodipodi:docname="paste_special.svg"
x="0px"
y="0px"
viewBox="0 0 24 24"
style="enable-background:new 0 0 24 24;"
xml:space="preserve"><metadata
id="metadata850"><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>paste</dc:title><cc:license
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /></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="defs848" />
<style
type="text/css"
id="style833">
.st0{fill:#727272;}
.st1{fill:#606060;}
.st2{fill:#F3F3F3;stroke:#545454;}
</style>
<sodipodi:namedview
bordercolor="#666666"
borderopacity="1"
gridtolerance="10"
guidetolerance="10"
id="namedview30"
inkscape:current-layer="Слой_1"
inkscape:cx="12.953005"
inkscape:cy="11.691534"
inkscape:document-rotation="0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-height="1017"
inkscape:window-maximized="1"
inkscape:window-width="1920"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:zoom="17.952128"
objecttolerance="10"
pagecolor="#ffffff"
showgrid="true">
<inkscape:grid
color="#9999ff"
empspacing="2"
id="grid_kicad"
opacity="0.13"
spacingx="0.5"
spacingy="0.5"
type="xygrid">
</inkscape:grid>
</sodipodi:namedview>
<title
id="title158895">paste</title>
<g
id="g35"
transform="translate(-4,-1)"><path
class="st0"
d="M 10,3.1 V 1.5 C 10,1.2 10.2,1 10.5,1 h 3 c 0.3,0 0.589482,0.213656 0.5,0.5 v 1.6 z"
id="path838"
style="fill:#545454;fill-opacity:1"
sodipodi:nodetypes="csssscc" /><path
id="path158905"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssscss"
class="st2"
d="m 9.5,2.5 h 5.2 c 0.7,0 0.8,0.5 0.8,0.9 v 0.8 c 0,0.7 -0.1,1.3 -0.8,1.3 H 9.2 C 8.5,5.5 8.5,5.2 8.5,4.5 V 3.4 c 0,-0.7 0.3,-0.9 1,-0.9 z" /><rect
style="fill:#b9b9b9;fill-opacity:1;stroke:#545454;stroke-width:1.00157;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect846"
width="15"
height="17"
x="4.5"
y="4.5" /><path
id="polygon25929"
sodipodi:nodetypes="ccccc"
class="st0"
d="m 22.5,7.5 h -12 v 14.999999 h 12.000001 z"
style="fill:#f3f3f3;fill-opacity:1;stroke:#545454;stroke-width:1;stroke-miterlimit:10" /></g><g
id="g1560"
transform="translate(-0.01909256,22.930015)"><rect
class="cls-3"
x="2.0190926"
y="-8.9300146"
width="22"
height="10"
id="rect1554"
style="fill:#1a81c4;fill-opacity:1;stroke-width:1" /><text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:condensed;font-size:11.2px;line-height:1.25;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans Semi-Bold Condensed';letter-spacing:0px;word-spacing:0px"
x="12.987727"
y="0.09257789"
id="text1558"><tspan
sodipodi:role="line"
id="tspan1556"
x="12.987727"
y="0.09257789"
style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:semi-condensed;font-size:11.2px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans Semi-Bold Semi-Condensed';text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1">R42</tspan></text></g></svg>

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -172,7 +172,8 @@ TOOL_ACTION ACTIONS::selectAll( "common.Interactive.selectAll",
TOOL_ACTION ACTIONS::pasteSpecial( "common.Interactive.pasteSpecial",
AS_GLOBAL, 0, "",
_( "Paste Special..." ), _( "Paste item(s) from clipboard with options" ) );
_( "Paste Special..." ), _( "Paste item(s) from clipboard with annotation options" ),
BITMAPS::paste_special );
TOOL_ACTION ACTIONS::duplicate( "common.Interactive.duplicate",
AS_GLOBAL,

View File

@ -424,6 +424,7 @@ const std::vector<BITMAP_INFO> g_BitmapInfo = {
{ BITMAPS::pagelayout_special_view_mode, wxT( "pagelayout_special_view_mode_24.png" ), 24, wxT( "light" ) },
{ BITMAPS::part_properties, wxT( "part_properties_24.png" ), 24, wxT( "light" ) },
{ BITMAPS::paste, wxT( "paste_24.png" ), 24, wxT( "light" ) },
{ BITMAPS::paste_special, wxT( "paste_special_24.png" ), 24, wxT( "light" ) },
{ BITMAPS::pin2pin, wxT( "pin2pin_24.png" ), 24, wxT( "light" ) },
{ BITMAPS::pin_size_to, wxT( "pin_size_to_24.png" ), 24, wxT( "light" ) },
{ BITMAPS::pin_show_etype, wxT( "pin_show_etype_24.png" ), 24, wxT( "light" ) },
@ -795,6 +796,7 @@ const std::vector<BITMAP_INFO> g_BitmapInfo = {
{ BITMAPS::pagelayout_special_view_mode, wxT( "pagelayout_special_view_mode_dark_24.png" ), 24, wxT( "dark" ) },
{ BITMAPS::part_properties, wxT( "part_properties_dark_24.png" ), 24, wxT( "dark" ) },
{ BITMAPS::paste, wxT( "paste_dark_24.png" ), 24, wxT( "dark" ) },
{ BITMAPS::paste_special, wxT( "paste_special_dark_24.png" ), 24, wxT( "dark" ) },
{ BITMAPS::pin2pin, wxT( "pin2pin_dark_24.png" ), 24, wxT( "dark" ) },
{ BITMAPS::pin_size_to, wxT( "pin_size_to_dark_24.png" ), 24, wxT( "dark" ) },
{ BITMAPS::pin_show_etype, wxT( "pin_show_etype_dark_24.png" ), 24, wxT( "dark" ) },

View File

@ -385,6 +385,7 @@ enum class BITMAPS : unsigned int
pagelayout_special_view_mode,
part_properties,
paste,
paste_special,
path,
pcb_target,
pcbnew,