From 5a3f4f52df4e0dfd9cc21f44a2465e54c1fd6ec5 Mon Sep 17 00:00:00 2001 From: Michael Kavanagh Date: Thu, 24 Dec 2020 18:58:49 +0000 Subject: [PATCH] Icons: add new icon for Pcbnew 'Special Tools...' --- bitmaps_png/CMakeLists.txt | 1 + bitmaps_png/cpp_24/special_tools.cpp | 32 +++++ .../include/bitmaps_png/bitmaps_list.h | 1 + bitmaps_png/sources/special_tools.svg | 111 ++++++++++++++++++ pcbnew/tools/edit_tool.cpp | 2 +- 5 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 bitmaps_png/cpp_24/special_tools.cpp create mode 100644 bitmaps_png/sources/special_tools.svg diff --git a/bitmaps_png/CMakeLists.txt b/bitmaps_png/CMakeLists.txt index 041477c48c..c25c5b7552 100644 --- a/bitmaps_png/CMakeLists.txt +++ b/bitmaps_png/CMakeLists.txt @@ -456,6 +456,7 @@ set( BMAPS_MID show_all_copper_layers show_all_front_layers show_all_back_layers + special_tools spreadsheet swap_layer switch_corner_rounding_shape diff --git a/bitmaps_png/cpp_24/special_tools.cpp b/bitmaps_png/cpp_24/special_tools.cpp new file mode 100644 index 0000000000..00851a9410 --- /dev/null +++ b/bitmaps_png/cpp_24/special_tools.cpp @@ -0,0 +1,32 @@ + +/* 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, 0x18, 0x00, 0x00, 0x00, 0x18, 0x08, 0x04, 0x00, 0x00, 0x00, 0x4a, 0x7e, 0xf5, + 0x73, 0x00, 0x00, 0x00, 0xf1, 0x49, 0x44, 0x41, 0x54, 0x38, 0xcb, 0x63, 0x60, 0xc0, 0x0a, 0x02, + 0x04, 0x30, 0xc5, 0x42, 0x1c, 0x18, 0x70, 0x83, 0x90, 0x06, 0x2c, 0x62, 0xfb, 0x71, 0x2a, 0x4f, + 0xe0, 0x08, 0x79, 0x1f, 0xca, 0x89, 0x24, 0xc0, 0x18, 0xe4, 0x18, 0x72, 0x20, 0xe4, 0x7f, 0xc8, + 0x81, 0x20, 0x47, 0xac, 0xca, 0x43, 0x93, 0x43, 0xfe, 0x87, 0x26, 0x27, 0x70, 0x40, 0xf8, 0x41, + 0xa6, 0x91, 0xe7, 0x23, 0xa4, 0x70, 0xd8, 0x10, 0x20, 0x10, 0xd2, 0x10, 0xf2, 0x1e, 0x68, 0x16, + 0x08, 0xbe, 0x0f, 0x69, 0x08, 0x10, 0x08, 0x32, 0x0d, 0x7f, 0x3b, 0xe9, 0x57, 0xe2, 0xeb, 0x08, + 0x29, 0x9c, 0x7e, 0x40, 0xb6, 0x01, 0xa4, 0xfc, 0xd4, 0xd7, 0x7f, 0xff, 0x2b, 0xff, 0x25, 0x6d, + 0xc4, 0xe3, 0x65, 0x98, 0x1f, 0x82, 0x0d, 0x23, 0xde, 0x9c, 0x04, 0x2a, 0x9f, 0xfd, 0x2f, 0xf5, + 0xb6, 0x1f, 0x2f, 0x03, 0x03, 0x81, 0x50, 0x0a, 0x36, 0x0c, 0x7f, 0x4b, 0xa4, 0x72, 0x90, 0x5f, + 0x82, 0x0d, 0x43, 0x3e, 0x24, 0xfd, 0x7e, 0x09, 0x54, 0x9e, 0x76, 0xcb, 0x8f, 0x17, 0x5b, 0xbc, + 0xa0, 0x00, 0x90, 0xf2, 0xe0, 0x7f, 0x21, 0xff, 0x13, 0xfe, 0x82, 0x94, 0x03, 0x6d, 0xac, 0x27, + 0x4a, 0x79, 0xc8, 0xcf, 0xd0, 0xcb, 0x20, 0xd3, 0x81, 0x21, 0xf7, 0x01, 0x14, 0x62, 0x84, 0x94, + 0xff, 0x0a, 0xb9, 0x04, 0x73, 0x3b, 0x1e, 0x1b, 0xb0, 0x29, 0xc7, 0x9e, 0xb6, 0xf0, 0x28, 0x27, + 0xd1, 0xf4, 0xa1, 0xa1, 0x3c, 0x94, 0x2d, 0xe4, 0x19, 0x34, 0xdc, 0x2f, 0x84, 0xf2, 0x30, 0x10, + 0x03, 0x82, 0x2c, 0x42, 0xbf, 0x84, 0xfc, 0x09, 0xbe, 0x48, 0xa4, 0x72, 0x88, 0x96, 0x90, 0x3d, + 0x24, 0x28, 0x1f, 0x4c, 0x00, 0x00, 0x8c, 0x8b, 0x9c, 0x6c, 0x37, 0x99, 0x82, 0x36, 0x00, 0x00, + 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, +}; + +const BITMAP_OPAQUE special_tools_xpm[1] = {{ png, sizeof( png ), "special_tools_xpm" }}; + +//EOF diff --git a/bitmaps_png/include/bitmaps_png/bitmaps_list.h b/bitmaps_png/include/bitmaps_png/bitmaps_list.h index 36f6d8a6a8..42817c99cc 100644 --- a/bitmaps_png/include/bitmaps_png/bitmaps_list.h +++ b/bitmaps_png/include/bitmaps_png/bitmaps_list.h @@ -492,6 +492,7 @@ EXTERN_BITMAP( small_edit_xpm ) EXTERN_BITMAP( small_library_xpm ) EXTERN_BITMAP( small_plus_xpm ) EXTERN_BITMAP( small_up_xpm ) +EXTERN_BITMAP( special_tools_xpm ) EXTERN_BITMAP( spreadsheet_xpm ) EXTERN_BITMAP( stroke_dash_xpm ) EXTERN_BITMAP( stroke_dashdot_xpm ) diff --git a/bitmaps_png/sources/special_tools.svg b/bitmaps_png/sources/special_tools.svg new file mode 100644 index 0000000000..6289320e66 --- /dev/null +++ b/bitmaps_png/sources/special_tools.svg @@ -0,0 +1,111 @@ + +image/svg+xmlfolder + + + + + +folder + + + + + + + + + diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 657d124b66..c1336085c0 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -86,7 +86,7 @@ void EDIT_TOOL::Reset( RESET_REASON aReason ) SPECIAL_TOOLS_CONTEXT_MENU::SPECIAL_TOOLS_CONTEXT_MENU( TOOL_INTERACTIVE* aTool ) : CONDITIONAL_MENU( aTool ) { - SetIcon( options_board_xpm ); + SetIcon( special_tools_xpm ); SetTitle( _( "Special Tools..." ) ); AddItem( PCB_ACTIONS::moveExact, SELECTION_CONDITIONS::ShowAlways );