From 0265a5bac572355c8a1e94a1a9c91f8d5e9de142 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 13 Dec 2016 19:36:17 +0100 Subject: [PATCH] Add a specific icon to the Flip board menuitem command --- bitmaps_png/CMakeLists.txt | 1 + bitmaps_png/cpp_26/flip_board.cpp | 100 ++++ bitmaps_png/sources/flip_board.svg | 785 +++++++++++++++++++++++++++++ include/bitmaps.h | 1 + pcbnew/menubar_pcbframe.cpp | 4 +- 5 files changed, 890 insertions(+), 1 deletion(-) create mode 100644 bitmaps_png/cpp_26/flip_board.cpp create mode 100644 bitmaps_png/sources/flip_board.svg diff --git a/bitmaps_png/CMakeLists.txt b/bitmaps_png/CMakeLists.txt index 1f2f6385f6..8a58a95a94 100644 --- a/bitmaps_png/CMakeLists.txt +++ b/bitmaps_png/CMakeLists.txt @@ -246,6 +246,7 @@ set( BMAPS_MID find find_replace flag + flip_board fonts footprint_text gbr_select_mode0 diff --git a/bitmaps_png/cpp_26/flip_board.cpp b/bitmaps_png/cpp_26/flip_board.cpp new file mode 100644 index 0000000000..bc5d4f87cb --- /dev/null +++ b/bitmaps_png/cpp_26/flip_board.cpp @@ -0,0 +1,100 @@ + +/* 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, 0x06, 0x00, 0x00, 0x00, 0xa9, 0x4a, 0x4c, + 0xce, 0x00, 0x00, 0x05, 0x37, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0x9d, 0x96, 0xdb, 0x53, 0x53, + 0x57, 0x14, 0xc6, 0xcf, 0x8c, 0x7f, 0x80, 0x7d, 0xa9, 0xfa, 0x52, 0x10, 0x8a, 0x01, 0xe4, 0x8e, + 0xe4, 0xc2, 0x25, 0x23, 0x20, 0x50, 0x05, 0xa2, 0x88, 0x08, 0x81, 0x10, 0x10, 0x22, 0x20, 0x60, + 0xbc, 0x42, 0x40, 0x11, 0x0b, 0x21, 0x44, 0x11, 0x91, 0x18, 0x2a, 0x72, 0x8d, 0xe2, 0xa5, 0x04, + 0x10, 0xf0, 0x02, 0x24, 0x42, 0x90, 0x7b, 0x10, 0xb9, 0xfb, 0xdc, 0xce, 0xb4, 0xd3, 0xd7, 0x0e, + 0x54, 0x51, 0xda, 0x19, 0x6b, 0xbf, 0xee, 0x6c, 0x25, 0x0a, 0x93, 0x80, 0xe3, 0xc3, 0x37, 0x67, + 0xed, 0xb3, 0xd7, 0x5e, 0xbf, 0x59, 0x6b, 0xaf, 0xb3, 0xf7, 0x61, 0xc6, 0xe7, 0xe6, 0xff, 0x20, + 0x5a, 0xb0, 0xa4, 0xd1, 0xe9, 0xd9, 0x85, 0x16, 0xfd, 0xe8, 0xab, 0xc6, 0x8e, 0x81, 0xd7, 0x35, + 0xad, 0x86, 0x25, 0x93, 0xb4, 0xba, 0xd1, 0x57, 0x83, 0x93, 0x33, 0x8b, 0xd6, 0xd6, 0xac, 0xd5, + 0xe0, 0x8b, 0xe9, 0x45, 0x83, 0x71, 0x6a, 0x91, 0x21, 0x83, 0x25, 0x22, 0xac, 0xc8, 0x30, 0x3e, + 0x85, 0xe3, 0xea, 0x3b, 0xd8, 0x53, 0xac, 0x04, 0x5b, 0x99, 0x83, 0x9d, 0x35, 0x47, 0x60, 0x77, + 0x2f, 0x1a, 0xb6, 0xcd, 0x91, 0x54, 0xce, 0xb5, 0x62, 0xec, 0xba, 0x74, 0x06, 0xbb, 0xe5, 0x72, + 0x1c, 0x52, 0xa8, 0x71, 0xe5, 0xee, 0x13, 0x0c, 0x4e, 0x4c, 0x9b, 0xd7, 0xf7, 0x0e, 0x8f, 0x60, + 0x78, 0x72, 0xca, 0x1c, 0xcb, 0x3f, 0xb3, 0x02, 0x3f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, 0x04, 0x14, 0x6b, 0x11, 0x74, 0xc5, 0x69, 0x17, 0x12, 0x23, + 0x4e, 0x62, 0x87, 0x77, 0x34, 0x5a, 0xba, 0x7a, 0xd1, 0xa4, 0x6d, 0xc1, 0xd6, 0xad, 0xdb, 0x68, + 0x90, 0xf4, 0xac, 0x6c, 0x70, 0x78, 0xbe, 0xd4, 0xde, 0x17, 0x29, 0xa0, 0x97, 0xdd, 0xe8, 0xf4, + 0xcc, 0xaa, 0x32, 0x9e, 0x2d, 0x69, 0x42, 0x26, 0xf7, 0x10, 0x32, 0x64, 0x35, 0xef, 0x08, 0xa8, + 0x7f, 0x39, 0xd3, 0x37, 0x66, 0xdd, 0x3d, 0x2a, 0x76, 0xf5, 0x83, 0x28, 0x26, 0x1f, 0x99, 0xb9, + 0x37, 0xc0, 0x0f, 0x8b, 0x5a, 0x75, 0xd6, 0xad, 0x04, 0x55, 0x5e, 0xad, 0x00, 0xd7, 0xcf, 0x8f, + 0x64, 0x13, 0x86, 0x1f, 0x95, 0x97, 0x70, 0xf2, 0xa2, 0x06, 0xe9, 0x81, 0x49, 0x30, 0x55, 0xab, + 0x46, 0xdb, 0xb7, 0xcc, 0xd4, 0xb6, 0xf5, 0x2f, 0x67, 0x6d, 0x00, 0xfa, 0x94, 0xa1, 0x37, 0x92, + 0xb8, 0x31, 0x10, 0x27, 0x16, 0xe1, 0x70, 0xb2, 0x1c, 0x02, 0xd1, 0x19, 0xdc, 0x7d, 0x32, 0x64, + 0x3e, 0x01, 0x1a, 0xda, 0xfb, 0x71, 0xba, 0xb0, 0x11, 0xc2, 0x84, 0x22, 0x14, 0x78, 0x87, 0xa2, + 0x92, 0xe5, 0x01, 0x41, 0x7c, 0x29, 0xc6, 0xa6, 0xe7, 0x5e, 0x33, 0xb5, 0xad, 0x04, 0xc4, 0x8d, + 0xa6, 0x81, 0x4e, 0xf8, 0xc7, 0x40, 0x20, 0x2c, 0xc1, 0x09, 0xbf, 0x43, 0xa8, 0x74, 0xf4,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 0xb7, 0x47, 0xa4, 0xaa, 0x37, 0x45, 0xaa, 0x96, 0x3f, 0x75, 0x23, + 0x13, 0xbf, 0x19, 0xe7, 0xe6, 0x7f, 0xfd, 0x5c, 0x64, 0xfd, 0xf4, 0xff, 0x7c, 0xef, 0x99, 0xf8, + 0xc0, 0x33, 0x58, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, +}; + +const BITMAP_OPAQUE flip_board_xpm[1] = {{ png, sizeof( png ), "flip_board_xpm" }}; + +//EOF diff --git a/bitmaps_png/sources/flip_board.svg b/bitmaps_png/sources/flip_board.svg new file mode 100644 index 0000000000..132576db14 --- /dev/null +++ b/bitmaps_png/sources/flip_board.svg @@ -0,0 +1,785 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/include/bitmaps.h b/include/bitmaps.h index fb7ba41c77..08699ba834 100644 --- a/include/bitmaps.h +++ b/include/bitmaps.h @@ -219,6 +219,7 @@ EXTERN_BITMAP( fill_zone_xpm ) EXTERN_BITMAP( find_xpm ) EXTERN_BITMAP( find_replace_xpm ) EXTERN_BITMAP( flag_xpm ) +EXTERN_BITMAP( flip_board_xpm ) EXTERN_BITMAP( fonts_xpm ) EXTERN_BITMAP( footprint_text_xpm ) EXTERN_BITMAP( gbr_select_mode0_xpm ) diff --git a/pcbnew/menubar_pcbframe.cpp b/pcbnew/menubar_pcbframe.cpp index 69cebdc803..d2507a20f6 100644 --- a/pcbnew/menubar_pcbframe.cpp +++ b/pcbnew/menubar_pcbframe.cpp @@ -366,9 +366,11 @@ void PCB_EDIT_FRAME::ReCreateMenuBar() _( "&List Nets" ), _( "View a list of nets with names and id's" ), KiBitmap( list_nets_xpm ) ); + viewMenu->AppendSeparator(); + AddMenuItem( viewMenu, ID_MENU_PCB_FLIP_VIEW, _( "&Flip View" ), _( "Flips (mirrors) the board view." ), - KiBitmap( three_d_xpm ), wxITEM_CHECK ); + KiBitmap( flip_board_xpm ), wxITEM_CHECK ); viewMenu->AppendSeparator();