Commit 3ae0df15 authored by Andrey Fedorushkov's avatar Andrey Fedorushkov

add new pin style to schema file, minor change kicad command frame icon

parent 897ec5b0
...@@ -645,6 +645,12 @@ bool LIB_PIN::Save( FILE* ExportFile ) ...@@ -645,6 +645,12 @@ bool LIB_PIN::Save( FILE* ExportFile )
if( m_PinShape & LOWLEVEL_OUT if( m_PinShape & LOWLEVEL_OUT
&& fprintf( ExportFile, "V" ) < 0 ) && fprintf( ExportFile, "V" ) < 0 )
return false; 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 ) if( fprintf( ExportFile, "\n" ) < 0 )
return false; return false;
...@@ -756,6 +762,14 @@ bool LIB_PIN::Load( char* line, wxString& errorMsg ) ...@@ -756,6 +762,14 @@ bool LIB_PIN::Load( char* line, wxString& errorMsg )
m_PinShape |= LOWLEVEL_OUT; m_PinShape |= LOWLEVEL_OUT;
break; break;
case 'F':
m_PinShape |= CLOCK_FALL;
break;
case 'X':
m_PinShape |= NONLOGIC;
break;
default: default:
errorMsg.Printf( wxT( "unknown pin attribute [%c]" ), errorMsg.Printf( wxT( "unknown pin attribute [%c]" ),
pinAttrs[j] ); pinAttrs[j] );
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "kicad.h" #include "kicad.h"
#include "../bitmap2component/bitmap2component_16x16.xpm" #include "../bitmap2component/bitmap2component.xpm"
RIGHT_KM_FRAME::RIGHT_KM_FRAME( WinEDA_MainFrame* parent ) : RIGHT_KM_FRAME::RIGHT_KM_FRAME( WinEDA_MainFrame* parent ) :
wxSashLayoutWindow( parent, wxID_ANY ) wxSashLayoutWindow( parent, wxID_ANY )
...@@ -82,7 +82,7 @@ void RIGHT_KM_FRAME::CreateCommandToolbar( void ) ...@@ -82,7 +82,7 @@ void RIGHT_KM_FRAME::CreateCommandToolbar( void )
btn = AddBitmapButton( ID_TO_GERBVIEW, wxBitmap( icon_gerbview_xpm ) ); btn = AddBitmapButton( ID_TO_GERBVIEW, wxBitmap( icon_gerbview_xpm ) );
btn->SetToolTip( _( "GerbView (Gerber viewer)" ) ); 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\ 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" ) ); Creates a component (for Eeschema) or a footprint (for Pcbnew) that shows a B&W picture" ) );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment