From 2db1e221d461f7fe0fdcfde8366a8b67d192c3ed Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 18 Oct 2011 12:16:27 +0200 Subject: [PATCH] Eeschema: Fix icons in macro menu. Fix confusing labels in libedit (for pins and graphic items sharing) --- bitmaps_png/cpp_26/macros_record.cpp | 74 + .../dialogs/dialog_lib_edit_draw_item.fbp | 1379 +++++++++++------ .../dialog_lib_edit_draw_item_base.cpp | 14 +- .../dialogs/dialog_lib_edit_draw_item_base.h | 27 +- eeschema/dialogs/dialog_lib_edit_pin_base.cpp | 9 +- eeschema/dialogs/dialog_lib_edit_pin_base.fbp | 92 +- eeschema/dialogs/dialog_lib_edit_pin_base.h | 13 +- include/bitmaps.h | 1 + pcbnew/menubar_pcbframe.cpp | 8 +- 9 files changed, 1138 insertions(+), 479 deletions(-) create mode 100644 bitmaps_png/cpp_26/macros_record.cpp diff --git a/bitmaps_png/cpp_26/macros_record.cpp b/bitmaps_png/cpp_26/macros_record.cpp new file mode 100644 index 0000000000..bea33d959a --- /dev/null +++ b/bitmaps_png/cpp_26/macros_record.cpp @@ -0,0 +1,74 @@ + +/* Do not modify this file, it was automatically generated by the + * PNG2cpp CMake script, using a *.png file as input. + */ + +#include "bitmaps.h" + +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, 0x03, 0x90, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xed, 0x96, 0xcb, 0x8b, 0x1d, + 0x55, 0x10, 0xc6, 0x7f, 0x75, 0xce, 0xe9, 0xfb, 0xe8, 0x79, 0x65, 0x9e, 0x92, 0x31, 0x28, 0x46, + 0x27, 0x51, 0x51, 0x0c, 0xf1, 0x01, 0x21, 0x9a, 0xe8, 0x42, 0x31, 0xf9, 0x07, 0x34, 0x06, 0x22, + 0xba, 0x8a, 0xb8, 0x70, 0xe9, 0xda, 0x95, 0x10, 0xb2, 0x13, 0x71, 0x29, 0xba, 0x70, 0x21, 0x6e, + 0xdc, 0x29, 0xba, 0x31, 0x20, 0xf1, 0x31, 0xa0, 0x62, 0x40, 0x12, 0xc7, 0x99, 0x38, 0x01, 0x13, + 0x47, 0x31, 0xf3, 0xc8, 0xdc, 0xb9, 0x77, 0xba, 0x4f, 0x95, 0x8b, 0xee, 0xfb, 0x9a, 0xeb, 0x52, + 0x66, 0x95, 0xde, 0xf4, 0x57, 0xb7, 0xbb, 0xcf, 0x57, 0x5f, 0x55, 0x9d, 0xef, 0x5c, 0x31, 0x33, + 0x76, 0xe3, 0x72, 0xec, 0xd2, 0xb5, 0x6b, 0x44, 0xa1, 0x37, 0x10, 0x91, 0x39, 0x60, 0xf2, 0x7f, + 0x5a, 0x7b, 0xc5, 0xcc, 0x16, 0x07, 0x88, 0xc6, 0xc6, 0xc6, 0xce, 0x3c, 0x75, 0xfc, 0xd8, 0xbb, + 0x23, 0xa3, 0x23, 0x75, 0x11, 0x41, 0x04, 0x8a, 0xbb, 0x80, 0x19, 0xed, 0x56, 0x9a, 0x19, 0x6a, + 0x86, 0xa9, 0x62, 0x06, 0x66, 0x4a, 0xd4, 0x22, 0x56, 0x33, 0x34, 0x46, 0xd4, 0x8c, 0xf5, 0xb5, + 0xf5, 0xad, 0x10, 0xc2, 0x2b, 0x79, 0x9e, 0x7f, 0xd2, 0x47, 0x34, 0x3d, 0x33, 0xfd, 0xe6, 0xd4, + 0xcc, 0xf4, 0x70, 0x96, 0xe5, 0x48, 0x21, 0xaf, 0xad, 0x13, 0xb5, 0x88, 0xaa, 0x12, 0xa3, 0x12, + 0x63, 0x24, 0x6a, 0x24, 0x46, 0x45, 0x63, 0x2c, 0x63, 0x25, 0xe6, 0x91, 0x5c, 0x15, 0xcb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a, 0x44, 0x20, + 0xcb, 0x32, 0x56, 0xfe, 0xba, 0xd9, 0xe7, 0x10, 0x31, 0x02, 0x39, 0x48, 0xab, 0x89, 0x00, 0x9b, + 0x9b, 0x83, 0xfb, 0xac, 0x5a, 0x49, 0x4a, 0x53, 0xf6, 0xa1, 0xaf, 0x47, 0x22, 0x32, 0xa5, 0xda, + 0x1c, 0x09, 0xce, 0x18, 0xaf, 0x0b, 0xc1, 0x59, 0xe1, 0x10, 0x4e, 0x09, 0x4e, 0x4b, 0x6c, 0x25, + 0xd6, 0xf2, 0x77, 0xeb, 0xc1, 0xda, 0xf7, 0xbe, 0x68, 0x86, 0x47, 0xd1, 0xbc, 0x35, 0x22, 0x22, + 0x53, 0xbd, 0x8a, 0x52, 0x4c, 0x92, 0xa1, 0xaa, 0xa7, 0x5e, 0x91, 0x01, 0x7b, 0x71, 0x3b, 0xe2, + 0x02, 0x4b, 0x77, 0x53, 0xf7, 0x8c, 0x7f, 0x7b, 0x03, 0x3b, 0xe7, 0x80, 0x98, 0x00, 0x69, 0xd7, + 0x70, 0xcd, 0x96, 0xf7, 0x1f, 0x7d, 0xf9, 0xed, 0x2f, 0xf3, 0x07, 0x5f, 0x12, 0xc3, 0x39, 0x29, + 0xa7, 0xd1, 0xb5, 0x17, 0x90, 0x8e, 0x7b, 0x4b, 0xc9, 0x28, 0x7d, 0x27, 0x66, 0xfb, 0x55, 0x29, + 0xcf, 0x2c, 0x31, 0x15, 0x89, 0x2b, 0x4b, 0x97, 0x3e, 0x32, 0xb3, 0xe5, 0xbe, 0x61, 0xb8, 0xfd, + 0xe7, 0xe4, 0x36, 0xd1, 0xbf, 0x70, 0x51, 0x80, 0xee, 0x5f, 0x46, 0xf4, 0x81, 0x00, 0x00, 0x00, + 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, +}; + +const BITMAP_OPAQUE macros_record_xpm[1] = {{ png, sizeof( png ), "macros_record_xpm" }}; + +//EOF diff --git a/eeschema/dialogs/dialog_lib_edit_draw_item.fbp b/eeschema/dialogs/dialog_lib_edit_draw_item.fbp index 2270065666..a8d1275281 100644 --- a/eeschema/dialogs/dialog_lib_edit_draw_item.fbp +++ b/eeschema/dialogs/dialog_lib_edit_draw_item.fbp @@ -2,9 +2,12 @@ - + C++ 1 + source_name + 0 + res UTF-8 table dialog_lib_edit_draw_item_base @@ -12,66 +15,111 @@ none 1 dialog_lib_edit_draw_item - + . - + 1 + 1 1 0 - + 1 + 1 + 1 + 1 + 0 + + + + + 1 wxBOTH - + 0 + 1 + + 1 + 0 + Dock + 0 + Left 1 - - - + impl_virtual + + + 1 + + 0 0 wxID_ANY - - + + + 0 + + + 0 + + 1 DIALOG_LIB_EDIT_DRAW_ITEM_BASE - - + 1 + + + 1 + + + Resizable + + 1 + wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER - + Drawing Properties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + mainSizer wxHORIZONTAL none @@ -80,7 +128,7 @@ wxALL|wxEXPAND 1 - + dlgBorderSizer wxVERTICAL none @@ -89,50 +137,86 @@ wxALIGN_LEFT 0 - - + 1 + 1 + 1 + 1 + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left 1 - + + 1 ,90,92,-1,70,0 + 0 0 wxID_ANY General - - + + + 0 + + + 0 + + 1 m_staticText1 + 1 + + protected - - - - - - - - + 1 + + + Resizable + + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + -1 - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -140,7 +224,7 @@ wxALL|wxEXPAND 0 - + bSizer3 wxHORIZONTAL none @@ -159,50 +243,86 @@ wxALIGN_CENTER_VERTICAL|wxALL 0 - - + 1 + 1 + 1 + 1 + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left 1 - - + + 1 + + 0 0 wxID_ANY &Width: - - + + + 0 + + + 0 + + 1 m_staticWidth + 1 + + protected - - - - - - - - + 1 + + + Resizable + + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + -1 - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -220,54 +340,90 @@ wxALIGN_CENTER_VERTICAL|wxALL 0 - - + 1 + 1 + 1 + 1 + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left 1 - - + + 1 + + 0 0 wxID_ANY - + + + 0 + 0 - + + 0 + + 1 m_textWidth + 1 + + protected - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1 + + + Resizable + + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -275,60 +431,183 @@ wxALIGN_CENTER_VERTICAL|wxALL 0 - - + 1 + 1 + 1 + 1 + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left 1 - - + + 1 + + 0 0 wxID_ANY mm - - + + + 0 + + + 0 + + 1 m_staticWidthUnits + 1 + + protected - - - - - - - - + 1 + + + Resizable + + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + -1 - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + 5 + wxTOP|wxBOTTOM + 0 + + 1 + 1 + 1 + 1 + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + ,90,92,-1,70,0 + 0 + 0 + ID_M_STATICTEXTSHARING + Sharing + + + 0 + + + 0 + + 1 + m_staticTextSharing + 1 + + + protected + 1 + + + Resizable + + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + + + + 0 wxALL|wxEXPAND 0 - + bSizer4 wxHORIZONTAL none @@ -347,51 +626,87 @@ wxALIGN_CENTER_VERTICAL|wxALL 0 - + 1 + 1 + 1 + 1 + + + + + 1 + 0 0 - + 1 + + 1 + 0 + Dock + 0 + Left 1 - - + + 1 + + 0 0 wxID_ANY - Apply changes to all &parts in component - - + Shared by all &parts in component + + + 0 + + + 0 + + 1 m_checkApplyToAllUnits + 1 + + protected - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1 + + + Resizable + + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -401,7 +716,7 @@ wxEXPAND 0 - + bSizer5 wxHORIZONTAL none @@ -420,51 +735,87 @@ wxALIGN_CENTER_VERTICAL|wxALL 0 - + 1 + 1 + 1 + 1 + + + + + 1 + 0 0 - + 1 + + 1 + 0 + Dock + 0 + Left 1 - - + + 1 + + 0 0 wxID_ANY - Apply changes to all body &styles (DeMorgan) - - + Shared by all body &styles (DeMorgan) + + + 0 + + + 0 + + 1 m_checkApplyToAllConversions + 1 + + protected - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1 + + + Resizable + + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -484,50 +835,86 @@ wxALIGN_LEFT|wxBOTTOM 0 - - + 1 + 1 + 1 + 1 + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left 1 - + + 1 ,90,92,-1,70,0 + 0 0 wxID_ANY Fill Style - - + + + 0 + + + 0 + + 1 m_staticText4 + 1 + + protected - - - - - - - - + 1 + + + Resizable + + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + -1 - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -535,7 +922,7 @@ wxALL|wxEXPAND 1 - + bSizer6 wxHORIZONTAL none @@ -554,7 +941,7 @@ wxEXPAND 0 - + bSizer7 wxVERTICAL none @@ -563,51 +950,87 @@ wxALL 0 - - + 1 + 1 + 1 + 1 + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left 1 - - + + 1 + + 0 0 wxID_ANY Do &not fill - - + + + 0 + + + 0 + + 1 m_radioFillNone + 1 + + protected - - + 1 + + + Resizable + + 1 + wxRB_GROUP - - + + 0 + + + wxFILTER_NONE + wxDefaultValidator + 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -615,51 +1038,87 @@ wxALL 0 - - + 1 + 1 + 1 + 1 + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left 1 - - + + 1 + + 0 0 wxID_ANY Fill &foreground - - + + + 0 + + + 0 + + 1 m_radioFillForeground + 1 + + protected - - - - - + 1 + + + Resizable + + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -667,51 +1126,87 @@ wxALL 0 - - + 1 + 1 + 1 + 1 + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left 1 - - + + 1 + + 0 0 wxID_ANY Fill &background - - + + + 0 + + + 0 + + 1 m_radioFillBackground + 1 + + protected - - - - - + 1 + + + Resizable + + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -741,17 +1236,17 @@ 1 0 0 - + m_sdbSizer1 protected - - - - - - - - + + + + + + + + diff --git a/eeschema/dialogs/dialog_lib_edit_draw_item_base.cpp b/eeschema/dialogs/dialog_lib_edit_draw_item_base.cpp index e8dd377f1f..c3027db61f 100644 --- a/eeschema/dialogs/dialog_lib_edit_draw_item_base.cpp +++ b/eeschema/dialogs/dialog_lib_edit_draw_item_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Apr 16 2008) +// C++ code generated with wxFormBuilder (version Jun 30 2011) // http://www.wxformbuilder.org/ // // PLEASE DO "NOT" EDIT THIS FILE! @@ -47,14 +47,19 @@ DIALOG_LIB_EDIT_DRAW_ITEM_BASE::DIALOG_LIB_EDIT_DRAW_ITEM_BASE( wxWindow* parent dlgBorderSizer->Add( bSizer3, 0, wxALL|wxEXPAND, 0 ); + m_staticTextSharing = new wxStaticText( this, ID_M_STATICTEXTSHARING, _("Sharing"), wxDefaultPosition, wxDefaultSize, 0 ); + m_staticTextSharing->Wrap( -1 ); + m_staticTextSharing->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) ); + + dlgBorderSizer->Add( m_staticTextSharing, 0, wxTOP|wxBOTTOM, 5 ); + wxBoxSizer* bSizer4; bSizer4 = new wxBoxSizer( wxHORIZONTAL ); bSizer4->Add( 12, 0, 0, wxEXPAND, 3 ); - m_checkApplyToAllUnits = new wxCheckBox( this, wxID_ANY, _("Apply changes to all &parts in component"), wxDefaultPosition, wxDefaultSize, 0 ); - + m_checkApplyToAllUnits = new wxCheckBox( this, wxID_ANY, _("Shared by all &parts in component"), wxDefaultPosition, wxDefaultSize, 0 ); bSizer4->Add( m_checkApplyToAllUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); dlgBorderSizer->Add( bSizer4, 0, wxALL|wxEXPAND, 0 ); @@ -65,8 +70,7 @@ DIALOG_LIB_EDIT_DRAW_ITEM_BASE::DIALOG_LIB_EDIT_DRAW_ITEM_BASE( wxWindow* parent bSizer5->Add( 12, 0, 0, wxEXPAND, 3 ); - m_checkApplyToAllConversions = new wxCheckBox( this, wxID_ANY, _("Apply changes to all body &styles (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 ); - + m_checkApplyToAllConversions = new wxCheckBox( this, wxID_ANY, _("Shared by all body &styles (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 ); bSizer5->Add( m_checkApplyToAllConversions, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); dlgBorderSizer->Add( bSizer5, 0, wxEXPAND, 3 ); diff --git a/eeschema/dialogs/dialog_lib_edit_draw_item_base.h b/eeschema/dialogs/dialog_lib_edit_draw_item_base.h index 1df99e3677..6ab2256d0b 100644 --- a/eeschema/dialogs/dialog_lib_edit_draw_item_base.h +++ b/eeschema/dialogs/dialog_lib_edit_draw_item_base.h @@ -1,15 +1,16 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Apr 16 2008) +// C++ code generated with wxFormBuilder (version Jun 30 2011) // http://www.wxformbuilder.org/ // // PLEASE DO "NOT" EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// -#ifndef __dialog_lib_edit_draw_item_base__ -#define __dialog_lib_edit_draw_item_base__ +#ifndef __DIALOG_LIB_EDIT_DRAW_ITEM_BASE_H__ +#define __DIALOG_LIB_EDIT_DRAW_ITEM_BASE_H__ +#include +#include #include - #include #include #include @@ -33,31 +34,31 @@ class DIALOG_LIB_EDIT_DRAW_ITEM_BASE : public wxDialog private: protected: + enum + { + ID_M_STATICTEXTSHARING = 1000, + }; + wxStaticText* m_staticText1; - wxStaticText* m_staticWidth; - wxTextCtrl* m_textWidth; wxStaticText* m_staticWidthUnits; - + wxStaticText* m_staticTextSharing; wxCheckBox* m_checkApplyToAllUnits; - wxCheckBox* m_checkApplyToAllConversions; - wxStaticText* m_staticText4; - wxRadioButton* m_radioFillNone; wxRadioButton* m_radioFillForeground; wxRadioButton* m_radioFillBackground; - wxStdDialogButtonSizer* m_sdbSizer1; wxButton* m_sdbSizer1OK; wxButton* m_sdbSizer1Cancel; public: - DIALOG_LIB_EDIT_DRAW_ITEM_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Drawing Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); + + DIALOG_LIB_EDIT_DRAW_ITEM_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Drawing Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); ~DIALOG_LIB_EDIT_DRAW_ITEM_BASE(); }; -#endif //__dialog_lib_edit_draw_item_base__ +#endif //__DIALOG_LIB_EDIT_DRAW_ITEM_BASE_H__ diff --git a/eeschema/dialogs/dialog_lib_edit_pin_base.cpp b/eeschema/dialogs/dialog_lib_edit_pin_base.cpp index e13159def3..f92641f795 100644 --- a/eeschema/dialogs/dialog_lib_edit_pin_base.cpp +++ b/eeschema/dialogs/dialog_lib_edit_pin_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Nov 17 2010) +// C++ code generated with wxFormBuilder (version Jun 30 2011) // http://www.wxformbuilder.org/ // // PLEASE DO "NOT" EDIT THIS FILE! @@ -75,13 +75,12 @@ DIALOG_LIB_EDIT_PIN_BASE::DIALOG_LIB_EDIT_PIN_BASE( wxWindow* parent, wxWindowID boarderSizer = new wxBoxSizer( wxVERTICAL ); wxStaticBoxSizer* sbSizerPinSharing; - sbSizerPinSharing = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pin Sharing") ), wxVERTICAL ); + sbSizerPinSharing = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Sharing") ), wxVERTICAL ); - m_checkApplyToAllParts = new wxCheckBox( this, wxID_ANY, _("Add to all &parts in package"), wxDefaultPosition, wxDefaultSize, 0 ); + m_checkApplyToAllParts = new wxCheckBox( this, wxID_ANY, _("Shared by all &parts in component"), wxDefaultPosition, wxDefaultSize, 0 ); sbSizerPinSharing->Add( m_checkApplyToAllParts, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); - m_checkApplyToAllConversions = new wxCheckBox( this, wxID_ANY, _("Add to all alternate &body styles (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 ); - m_checkApplyToAllConversions->SetValue(true); + m_checkApplyToAllConversions = new wxCheckBox( this, wxID_ANY, _("Shared by all body &styles (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 ); sbSizerPinSharing->Add( m_checkApplyToAllConversions, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); boarderSizer->Add( sbSizerPinSharing, 0, wxEXPAND|wxALL, 5 ); diff --git a/eeschema/dialogs/dialog_lib_edit_pin_base.fbp b/eeschema/dialogs/dialog_lib_edit_pin_base.fbp index 7820d2c5af..11e510a8fd 100644 --- a/eeschema/dialogs/dialog_lib_edit_pin_base.fbp +++ b/eeschema/dialogs/dialog_lib_edit_pin_base.fbp @@ -7,6 +7,7 @@ 1 source_name 0 + res UTF-8 connect dialog_lib_edit_pin_base @@ -28,6 +29,7 @@ 1 0 + 1 @@ -50,8 +52,10 @@ 0 wxID_ANY + 0 + 0 1 @@ -65,7 +69,7 @@ Resizable 1 - 499,372 + 476,372 wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER Pin Properties @@ -80,6 +84,12 @@ + + + + + + OnCloseDialog @@ -157,6 +167,7 @@ 1 1 + 1 @@ -177,8 +188,10 @@ wxID_ANY Pin &name: + 0 + 0 1 @@ -241,6 +254,7 @@ 1 1 + 1 @@ -260,9 +274,11 @@ 0 ID_M_TEXTPINNAME + 0 0 + 0 1 @@ -329,6 +345,7 @@ 1 1 + 1 @@ -349,8 +366,10 @@ ID_M_STATICTEXTPADNAME Pin n&umber: + 0 + 0 1 @@ -413,6 +432,7 @@ 1 1 + 1 @@ -432,9 +452,11 @@ 0 ID_M_TEXTPADNAME + 0 0 + 0 1 @@ -501,6 +523,7 @@ 1 1 + 1 @@ -521,8 +544,10 @@ wxID_ANY &Orientation: + 0 + 0 1 @@ -585,6 +610,7 @@ 1 1 + 1 @@ -605,8 +631,10 @@ 0 wxID_ANY + 0 + 0 1 @@ -672,6 +700,7 @@ 1 1 + 1 @@ -692,8 +721,10 @@ wxID_ANY &Electrical type: + 0 + 0 1 @@ -756,6 +787,7 @@ 1 1 + 1 @@ -776,8 +808,10 @@ 0 wxID_ANY + 0 + 0 1 @@ -843,6 +877,7 @@ 1 1 + 1 @@ -863,8 +898,10 @@ wxID_ANY Graphic &Style: + 0 + 0 1 @@ -927,6 +964,7 @@ 1 1 + 1 @@ -947,8 +985,10 @@ 0 wxID_ANY + 0 + 0 1 @@ -1021,7 +1061,7 @@ 0 wxID_ANY - Pin Sharing + Sharing sbSizerPinSharing wxVERTICAL @@ -1037,6 +1077,7 @@ 1 1 + 1 @@ -1056,10 +1097,12 @@ 0 0 wxID_ANY - Add to all &parts in package + Shared by all &parts in component + 0 + 0 1 @@ -1122,11 +1165,12 @@ 1 1 + 1 0 - 1 + 0 1 1 @@ -1141,10 +1185,12 @@ 0 0 wxID_ANY - Add to all alternate &body styles (DeMorgan) + Shared by all body &styles (DeMorgan) + 0 + 0 1 @@ -1221,6 +1267,7 @@ 1 1 + 1 @@ -1242,8 +1289,10 @@ wxID_ANY &Visible + 0 + 0 1 @@ -1337,6 +1386,7 @@ 1 1 + 1 @@ -1357,8 +1407,10 @@ ID_M_STATICTEXTNAMESIZE N&ame text size: + 0 + 0 1 @@ -1421,6 +1473,7 @@ 1 1 + 1 @@ -1440,9 +1493,11 @@ 0 ID_M_TEXTPINNAMETEXTSIZE + 0 0 + 0 1 @@ -1509,6 +1564,7 @@ 1 1 + 1 @@ -1529,8 +1585,10 @@ ID_M_STATICNAMETEXTSIZEUNITS units + 0 + 0 -1,-1 1 @@ -1593,6 +1651,7 @@ 1 1 + 1 @@ -1613,8 +1672,10 @@ ID_M_STATICTEXTPADNAMESIZE Number te&xt size: + 0 + 0 1 @@ -1677,6 +1738,7 @@ 1 1 + 1 @@ -1696,9 +1758,11 @@ 0 ID_M_TEXTPADNAMETEXTSIZE + 0 0 + 0 1 @@ -1765,6 +1829,7 @@ 1 1 + 1 @@ -1785,8 +1850,10 @@ ID_M_STATICNUMBERTEXTSIZEUNITS units + 0 + 0 1 @@ -1849,6 +1916,7 @@ 1 1 + 1 @@ -1869,8 +1937,10 @@ ID_M_STATICTEXTPINLEN &Length: + 0 + 0 1 @@ -1933,6 +2003,7 @@ 1 1 + 1 @@ -1952,9 +2023,11 @@ 0 ID_M_TEXTLENGTH + 0 0 + 0 1 @@ -2021,6 +2094,7 @@ 1 1 + 1 @@ -2041,8 +2115,10 @@ ID_M_STATICLENGTHUNITS units + 0 + 0 1 @@ -2107,6 +2183,7 @@ 1 1 + 1 @@ -2126,8 +2203,10 @@ 0 wxID_ANY + 0 + 0 150,150 1 @@ -2192,6 +2271,7 @@ 1 1 + 1 @@ -2211,8 +2291,10 @@ 0 wxID_ANY + 0 + 0 1 diff --git a/eeschema/dialogs/dialog_lib_edit_pin_base.h b/eeschema/dialogs/dialog_lib_edit_pin_base.h index 2f39eae75b..fe92de1142 100644 --- a/eeschema/dialogs/dialog_lib_edit_pin_base.h +++ b/eeschema/dialogs/dialog_lib_edit_pin_base.h @@ -1,15 +1,16 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Nov 17 2010) +// C++ code generated with wxFormBuilder (version Jun 30 2011) // http://www.wxformbuilder.org/ // // PLEASE DO "NOT" EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// -#ifndef __dialog_lib_edit_pin_base__ -#define __dialog_lib_edit_pin_base__ +#ifndef __DIALOG_LIB_EDIT_PIN_BASE_H__ +#define __DIALOG_LIB_EDIT_PIN_BASE_H__ +#include +#include #include - class wxBitmapComboBox; #include @@ -92,9 +93,9 @@ class DIALOG_LIB_EDIT_PIN_BASE : public wxDialog public: - DIALOG_LIB_EDIT_PIN_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Pin Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 499,372 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); + DIALOG_LIB_EDIT_PIN_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Pin Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 476,372 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); ~DIALOG_LIB_EDIT_PIN_BASE(); }; -#endif //__dialog_lib_edit_pin_base__ +#endif //__DIALOG_LIB_EDIT_PIN_BASE_H__ diff --git a/include/bitmaps.h b/include/bitmaps.h index 7487b0a885..9eb6af240d 100644 --- a/include/bitmaps.h +++ b/include/bitmaps.h @@ -279,6 +279,7 @@ EXTERN_BITMAP( load_module_board_xpm ) EXTERN_BITMAP( load_module_lib_xpm ) EXTERN_BITMAP( local_ratsnest_xpm ) EXTERN_BITMAP( locked_xpm ) +EXTERN_BITMAP( macros_record_xpm ) EXTERN_BITMAP( mirepcb_xpm ) EXTERN_BITMAP( mirror_h_xpm ) EXTERN_BITMAP( mirror_v_xpm ) diff --git a/pcbnew/menubar_pcbframe.cpp b/pcbnew/menubar_pcbframe.cpp index 391da44910..ea7500bd51 100644 --- a/pcbnew/menubar_pcbframe.cpp +++ b/pcbnew/menubar_pcbframe.cpp @@ -479,17 +479,19 @@ void PCB_EDIT_FRAME::ReCreateMenuBar() AddMenuItem( macrosMenu, ID_PREFRENCES_MACROS_SAVE, _( "Save macros" ), - _( "Save macros to file" ) ); + _( "Save macros to file" ), + KiBitmap( save_setup_xpm ) ); AddMenuItem( macrosMenu, ID_PREFRENCES_MACROS_READ, _( "Read macros" ), - _( "Read macros from file" ) ); + _( "Read macros from file" ), + KiBitmap( read_setup_xpm ) ); // Append macros menu to config menu AddMenuItem( configmenu, macrosMenu, -1, _( "Macros" ), _( "Macros save/read operations" ), - KiBitmap( add_dimension_xpm ) ); + KiBitmap( macros_record_xpm ) ); configmenu->AppendSeparator();