Make ERC grid error clearer that it's about the connection grid.

Also adds a context menu item to edit the connection grid spacing.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15908
This commit is contained in:
Jeff Young 2023-10-20 21:00:51 +01:00
parent b8310efd19
commit 903c01cb20
2 changed files with 11 additions and 1 deletions

View File

@ -637,6 +637,12 @@ void DIALOG_ERC::OnERCItemRClick( wxDataViewEvent& aEvent )
_( "Open the Schematic Setup... dialog" ) );
}
if( rcItem->GetErrorCode() == ERCE_ENDPOINT_OFF_GRID )
{
menu.Append( 9, _( "Edit connection grid spacing..." ),
_( "Open the Schematic Setup... dialog" ) );
}
bool modified = false;
switch( GetPopupMenuSelectionFromUser( menu ) )
@ -732,6 +738,10 @@ void DIALOG_ERC::OnERCItemRClick( wxDataViewEvent& aEvent )
case 8:
m_parent->ShowSchematicSetupDialog( _( "Violation Severity" ) );
break;
case 9:
m_parent->ShowSchematicSetupDialog( _( "Formatting" ) );
break;
}
if( modified )

View File

@ -48,7 +48,7 @@ ERC_ITEM ERC_ITEM::duplicateSheetName( ERCE_DUPLICATE_SHEET_NAME,
wxT( "duplicate_sheet_names" ) );
ERC_ITEM ERC_ITEM::endpointOffGrid( ERCE_ENDPOINT_OFF_GRID,
_( "Symbol pin or wire end off grid" ),
_( "Symbol pin or wire end off connection grid" ),
wxT( "endpoint_off_grid" ) );
ERC_ITEM ERC_ITEM::pinNotConnected( ERCE_PIN_NOT_CONNECTED,