From a6e9efbe57cd9d4ad3413a0d6a352e9610fc9936 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 24 May 2020 12:13:22 +0100 Subject: [PATCH] Add icon for schematic reverse annotation Fixes https://gitlab.com/kicad/code/kicad/issues/4527 --- bitmaps_png/CMakeLists.txt | 1 + bitmaps_png/cpp_26/update_sch_from_pcb.cpp | 59 ++ .../include/bitmaps_png/bitmaps_list.h | 1 + bitmaps_png/sources/update_sch_from_pcb.svg | 938 ++++++++++++++++++ common/tool/actions.cpp | 2 +- 5 files changed, 1000 insertions(+), 1 deletion(-) create mode 100644 bitmaps_png/cpp_26/update_sch_from_pcb.cpp create mode 100644 bitmaps_png/sources/update_sch_from_pcb.svg diff --git a/bitmaps_png/CMakeLists.txt b/bitmaps_png/CMakeLists.txt index d596603f03..3be8eb6e59 100644 --- a/bitmaps_png/CMakeLists.txt +++ b/bitmaps_png/CMakeLists.txt @@ -501,6 +501,7 @@ set( BMAPS_MID up update_fields update_pcb_from_sch + update_sch_from_pcb use_3D_copper_thickness via via_annulus diff --git a/bitmaps_png/cpp_26/update_sch_from_pcb.cpp b/bitmaps_png/cpp_26/update_sch_from_pcb.cpp new file mode 100644 index 0000000000..80d5e65f6f --- /dev/null +++ b/bitmaps_png/cpp_26/update_sch_from_pcb.cpp @@ -0,0 +1,59 @@ + +/* Do not modify this file, it was automatically generated by the + * PNG2cpp CMake script, using a *.png file as input. + */ + +#include + +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, 0x02, 0x00, 0x00, 0x00, 0x26, 0x28, 0xdb, + 0x99, 0x00, 0x00, 0x02, 0x99, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0x63, 0x30, 0x26, 0x0b, 0xa8, + 0xdb, 0xab, 0x33, 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, 0xe9, 0x3d, 0x30, 0xcf, 0xde, 0x7d, 0x75, 0x97, 0x28, 0xe3, + 0x20, 0x31, 0xfb, 0xee, 0xc5, 0x8b, 0x9d, 0x9e, 0x9e, 0xf3, 0x99, 0x19, 0x2f, 0x4e, 0x98, 0xd0, + 0xb8, 0xa1, 0x11, 0x1a, 0xfd, 0x60, 0xa5, 0x8f, 0x8f, 0xcd, 0x7a, 0x7b, 0x7b, 0xbf, 0x4a, 0x95, + 0x0a, 0x51, 0xc6, 0x41, 0xd2, 0xdd, 0xdb, 0x27, 0x4f, 0xf6, 0x45, 0x44, 0x54, 0x7a, 0x32, 0x3f, + 0xb9, 0x7e, 0x45, 0xb2, 0x58, 0x12, 0xd9, 0x38, 0x64, 0x36, 0xc9, 0xc5, 0xe7, 0x94, 0xdd, 0x53, + 0xd0, 0x8c, 0x20, 0xdf, 0x38, 0xff, 0x59, 0xec, 0x1a, 0x35, 0x1a, 0x54, 0x33, 0xae, 0x66, 0xa9, + 0x3e, 0xa6, 0x11, 0xc4, 0x1a, 0x87, 0x09, 0x76, 0xcc, 0x2b, 0x27, 0xcf, 0x38, 0x00, 0x61, 0xc7, + 0x06, 0x88, 0xe9, 0xc7, 0x2d, 0xab, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, + 0x60, 0x82, +}; + +const BITMAP_OPAQUE update_sch_from_pcb_xpm[1] = {{ png, sizeof( png ), "update_sch_from_pcb_xpm" }}; + +//EOF diff --git a/bitmaps_png/include/bitmaps_png/bitmaps_list.h b/bitmaps_png/include/bitmaps_png/bitmaps_list.h index 449b3de8fe..9b908b9f13 100644 --- a/bitmaps_png/include/bitmaps_png/bitmaps_list.h +++ b/bitmaps_png/include/bitmaps_png/bitmaps_list.h @@ -474,6 +474,7 @@ EXTERN_BITMAP( unzip_xpm ) EXTERN_BITMAP( up_xpm ) EXTERN_BITMAP( update_fields_xpm ) EXTERN_BITMAP( update_pcb_from_sch_xpm ) +EXTERN_BITMAP( update_sch_from_pcb_xpm ) EXTERN_BITMAP( use_3D_copper_thickness_xpm ) EXTERN_BITMAP( via_xpm ) EXTERN_BITMAP( via_microvia_xpm ) diff --git a/bitmaps_png/sources/update_sch_from_pcb.svg b/bitmaps_png/sources/update_sch_from_pcb.svg new file mode 100644 index 0000000000..3dd57b4285 --- /dev/null +++ b/bitmaps_png/sources/update_sch_from_pcb.svg @@ -0,0 +1,938 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/common/tool/actions.cpp b/common/tool/actions.cpp index 7b9d69bd97..8ef7e97c2e 100644 --- a/common/tool/actions.cpp +++ b/common/tool/actions.cpp @@ -539,7 +539,7 @@ TOOL_ACTION ACTIONS::updatePcbFromSchematic( "common.Control.updatePcbFromSchema TOOL_ACTION ACTIONS::updateSchematicFromPcb( "common.Control.updateSchematicFromPCB", AS_GLOBAL, 0, LEGACY_HK_NAME( "Update Schematic from PCB" ), _( "Update Schematic from PCB..." ), - _( "Push changes from PCB to Schematic" ), update_pcb_from_sch_xpm ); + _( "Push changes from PCB to Schematic" ), update_sch_from_pcb_xpm ); TOOL_ACTION ACTIONS::acceleratedGraphics( "common.Control.acceleratedGraphics", AS_GLOBAL,