From 3ae0df15ee13041d2dca0c2b8d397261cc354ace Mon Sep 17 00:00:00 2001 From: Andrey Fedorushkov Date: Sun, 26 Sep 2010 09:35:29 +0400 Subject: [PATCH] add new pin style to schema file, minor change kicad command frame icon --- eeschema/class_pin.cpp | 14 ++++++++++++++ kicad/commandframe.cpp | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/eeschema/class_pin.cpp b/eeschema/class_pin.cpp index 5e79c98ccf..d47d6e664d 100644 --- a/eeschema/class_pin.cpp +++ b/eeschema/class_pin.cpp @@ -645,6 +645,12 @@ bool LIB_PIN::Save( FILE* ExportFile ) if( m_PinShape & LOWLEVEL_OUT && fprintf( ExportFile, "V" ) < 0 ) return false; + if( m_PinShape & CLOCK_FALL + && fprintf( ExportFile, "F" ) < 0 ) + return false; + if( m_PinShape & NONLOGIC + && fprintf( ExportFile, "X" ) < 0 ) + return false; if( fprintf( ExportFile, "\n" ) < 0 ) return false; @@ -756,6 +762,14 @@ bool LIB_PIN::Load( char* line, wxString& errorMsg ) m_PinShape |= LOWLEVEL_OUT; break; + case 'F': + m_PinShape |= CLOCK_FALL; + break; + + case 'X': + m_PinShape |= NONLOGIC; + break; + default: errorMsg.Printf( wxT( "unknown pin attribute [%c]" ), pinAttrs[j] ); diff --git a/kicad/commandframe.cpp b/kicad/commandframe.cpp index 15b4031b58..5e1ac3f34c 100644 --- a/kicad/commandframe.cpp +++ b/kicad/commandframe.cpp @@ -9,7 +9,7 @@ #include "kicad.h" -#include "../bitmap2component/bitmap2component_16x16.xpm" +#include "../bitmap2component/bitmap2component.xpm" RIGHT_KM_FRAME::RIGHT_KM_FRAME( WinEDA_MainFrame* parent ) : wxSashLayoutWindow( parent, wxID_ANY ) @@ -82,7 +82,7 @@ void RIGHT_KM_FRAME::CreateCommandToolbar( void ) btn = AddBitmapButton( ID_TO_GERBVIEW, wxBitmap( icon_gerbview_xpm ) ); btn->SetToolTip( _( "GerbView (Gerber viewer)" ) ); - btn = AddBitmapButton( ID_TO_BITMAP_CONVERTER, wxBitmap( bitmap2component_16x16_xpm ) ); + btn = AddBitmapButton( ID_TO_BITMAP_CONVERTER, wxBitmap( bitmap2component_xpm ) ); btn->SetToolTip( _( "Bitmap2Component (a tool to build a logo from a bitmap)\n\ Creates a component (for Eeschema) or a footprint (for Pcbnew) that shows a B&W picture" ) ); }