From f01cf15528c8f8c8d24549ccb80a3cd2c96d9a31 Mon Sep 17 00:00:00 2001 From: John Beard Date: Wed, 25 Jul 2018 11:35:46 +0100 Subject: [PATCH] Add field properties icon: opamp + T This was just a text icon, which was not clear about the function of the button. --- bitmaps_png/CMakeLists.txt | 1 + bitmaps_png/cpp_26/field_properties.cpp | 57 +++++++++ bitmaps_png/sources/field_properties.svg | 150 +++++++++++++++++++++++ eeschema/tool_lib.cpp | 2 +- include/bitmaps.h | 1 + 5 files changed, 210 insertions(+), 1 deletion(-) create mode 100644 bitmaps_png/cpp_26/field_properties.cpp create mode 100644 bitmaps_png/sources/field_properties.svg diff --git a/bitmaps_png/CMakeLists.txt b/bitmaps_png/CMakeLists.txt index 09c7b6b885..645a804f47 100644 --- a/bitmaps_png/CMakeLists.txt +++ b/bitmaps_png/CMakeLists.txt @@ -255,6 +255,7 @@ set( BMAPS_MID export_step export fabrication + field_properties file_footprint fill_zone find diff --git a/bitmaps_png/cpp_26/field_properties.cpp b/bitmaps_png/cpp_26/field_properties.cpp new file mode 100644 index 0000000000..ff02f2fc17 --- /dev/null +++ b/bitmaps_png/cpp_26/field_properties.cpp @@ -0,0 +1,57 @@ + +/* 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, 0x02, 0x84, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xe5, 0x95, 0x6f, 0x48, 0x13, + 0x71, 0x18, 0xc7, 0x9f, 0xdd, 0xee, 0x7a, 0x17, 0x92, 0xf5, 0xc2, 0x66, 0x85, 0x09, 0xab, 0x17, + 0x7b, 0xdd, 0xbb, 0x88, 0x11, 0xd1, 0x3b, 0x91, 0xea, 0x45, 0x45, 0x7b, 0x51, 0x2f, 0x32, 0x32, + 0x2a, 0x22, 0x28, 0xe8, 0x45, 0x39, 0x08, 0x63, 0xb6, 0x17, 0x15, 0x21, 0xfd, 0xb3, 0xed, 0xce, + 0x92, 0xca, 0xb6, 0x82, 0x28, 0x92, 0x74, 0xad, 0xc2, 0x49, 0xac, 0x69, 0xa1, 0x96, 0x0a, 0x4b, + 0x36, 0xf4, 0x45, 0x61, 0x53, 0xd7, 0x2a, 0x6e, 0xb6, 0x7b, 0x7a, 0x7e, 0xe7, 0x6e, 0x6c, 0xab, + 0xec, 0xb6, 0xb9, 0x57, 0x1d, 0x7c, 0xb9, 0x83, 0x7b, 0xf8, 0x7e, 0xee, 0xf9, 0xf7, 0x3b, 0x80, + 0xff, 0xe6, 0xea, 0x00, 0x58, 0x81, 0x00, 0x86, 0xb2, 0x83, 0x44, 0x8e, 0x9b, 0x96, 0x04, 0xc1, + 0x77, 0x13, 0x60, 0x75, 0x79, 0x41, 0x46, 0x4e, 0xee, 0xa8, 0xac, 0x48, 0x89, 0x3c, 0xff, 0xcd, + 0x05, 0xb0, 0xb7, 0xac, 0xa0, 0x31, 0x97, 0x03, 0x07, 0xec, 0x47, 0x91, 0x60, 0xa9, 0x76, 0x41, + 0xe8, 0x16, 0x01, 0xaa, 0xcb, 0x03, 0x72, 0xb7, 0xe0, 0xd7, 0xc9, 0x5e, 0x9c, 0xf4, 0xdd, 0xc2, + 0x07, 0x16, 0x73, 0x52, 0xe2, 0xf9, 0x84, 0x1b, 0xa0, 0xa1, 0x24, 0xe3, 0x76, 0x80, 0x95, 0xd4, + 0x8f, 0x5a, 0x4d, 0x04, 0x4a, 0x6a, 0x20, 0xa6, 0x78, 0xe4, 0x25, 0x86, 0x4e, 0x1d, 0x54, 0xdc, + 0x46, 0x23, 0x2b, 0xe7, 0x53, 0x16, 0x5f, 0x30, 0xe4, 0x2a, 0x40, 0x05, 0x7d, 0x69, 0x92, 0x84, + 0xd9, 0xea, 0x3f, 0x73, 0x38, 0x03, 0xd2, 0x34, 0xd1, 0x23, 0xa1, 0x77, 0x7d, 0xad, 0x2c, 0x0a, + 0xfc, 0x34, 0xc5, 0xec, 0x58, 0xb4, 0x8c, 0x86, 0x2f, 0x9d, 0xc6, 0xc0, 0x21, 0x9b, 0xaa, 0xd7, + 0xc7, 0xf6, 0xe1, 0x6c, 0xe4, 0x85, 0x2a, 0x96, 0x1d, 0xc5, 0xb0, 0xec, 0xbc, 0xd4, 0xbb, 0xe5, + 0x25, 0xf7, 0x88, 0x0d, 0x04, 0x99, 0xaa, 0x62, 0x83, 0x11, 0x8f, 0xbe, 0xca, 0x64, 0x17, 0x7d, + 0x7c, 0x1d, 0x3b, 0x6b, 0x56, 0x25, 0x25, 0x81, 0x8f, 0x11, 0xac, 0xbe, 0xe4, 0x61, 0x58, 0x48, + 0x33, 0x1f, 0x9f, 0x63, 0xa0, 0x71, 0x8f, 0x22, 0x72, 0x06, 0x45, 0x32, 0x1a, 0xef, 0xdf, 0x06, + 0x58, 0x56, 0x16, 0x90, 0xa6, 0x71, 0x6f, 0x2b, 0xde, 0xab, 0xae, 0x92, 0x29, 0xbb, 0x29, 0x09, + 0xe0, 0x32, 0x65, 0x78, 0x92, 0x89, 0xfa, 0x68, 0x59, 0x54, 0x50, 0xec, 0x43, 0x17, 0x3e, 0xab, + 0xdb, 0xfc, 0x53, 0x34, 0x18, 0x14, 0x32, 0x1f, 0x27, 0xbd, 0x21, 0x05, 0x09, 0xb6, 0x4d, 0x37, + 0x28, 0x7c, 0xe7, 0x02, 0xf6, 0x36, 0xec, 0xca, 0x31, 0xfe, 0x3e, 0x35, 0x84, 0x72, 0x3c, 0xaa, + 0x2a, 0x36, 0xd8, 0x87, 0x43, 0xe7, 0x5b, 0x52, 0x83, 0x0e, 0x47, 0xfc, 0x4b, 0x28, 0xe4, 0x42, + 0xc4, 0xa6, 0x2c, 0x59,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x40, 0x4f, 0x36, 0x6d, 0x40, + 0x37, 0xc7, 0xa5, 0xa4, 0x25, 0xbc, 0x87, 0xfd, 0xda, 0x17, 0x8a, 0x2f, 0x1e, 0xc4, 0x71, 0x3f, + 0xa8, 0x4c, 0xb3, 0x94, 0xc5, 0x4e, 0x3d, 0xf1, 0x45, 0x83, 0xa8, 0xd9, 0xdb, 0x49, 0x55, 0x3a, + 0x00, 0xd6, 0xbc, 0x71, 0xf6, 0xeb, 0x5a, 0xd4, 0x42, 0x2f, 0x2d, 0x93, 0x82, 0x17, 0xb5, 0x08, + 0x90, 0x35, 0xef, 0xc8, 0xf9, 0xe3, 0xd1, 0xf3, 0x0b, 0x8e, 0x72, 0xb8, 0xd9, 0x73, 0x64, 0xb3, + 0xfc, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, +}; + +const BITMAP_OPAQUE field_properties_xpm[1] = {{ png, sizeof( png ), "field_properties_xpm" }}; + +//EOF diff --git a/bitmaps_png/sources/field_properties.svg b/bitmaps_png/sources/field_properties.svg new file mode 100644 index 0000000000..82efd475d4 --- /dev/null +++ b/bitmaps_png/sources/field_properties.svg @@ -0,0 +1,150 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eeschema/tool_lib.cpp b/eeschema/tool_lib.cpp index 22c966e18f..c444891e32 100644 --- a/eeschema/tool_lib.cpp +++ b/eeschema/tool_lib.cpp @@ -162,7 +162,7 @@ void LIB_EDIT_FRAME::ReCreateHToolbar() _( "Edit symbol properties" ) ); m_mainToolBar->AddTool( ID_LIBEDIT_GET_FRAME_EDIT_FIELDS, wxEmptyString, - KiScaledBitmap( text_xpm, this ), + KiScaledBitmap( field_properties_xpm, this ), _( "Edit field properties" ) ); KiScaledSeparator( m_mainToolBar, this ); diff --git a/include/bitmaps.h b/include/bitmaps.h index 4a64d8eb6a..0c848ae6eb 100644 --- a/include/bitmaps.h +++ b/include/bitmaps.h @@ -177,6 +177,7 @@ EXTERN_BITMAP( export_part_xpm ) EXTERN_BITMAP( export_step_xpm ) EXTERN_BITMAP( export_xpm ) EXTERN_BITMAP( fabrication_xpm ) +EXTERN_BITMAP( field_properties_xpm ) EXTERN_BITMAP( file_footprint_xpm ) EXTERN_BITMAP( fill_zone_xpm ) EXTERN_BITMAP( find_xpm )