Add menu item to DRC dialog to go to Board Setup / Violation Severities.
This commit is contained in:
parent
d20f36511f
commit
2359d19cf4
|
@ -309,6 +309,10 @@ void DIALOG_DRC_CONTROL::OnDRCItemRClick( wxDataViewEvent& aEvent )
|
|||
drcItem->GetErrorText() ),
|
||||
_( "Violations will not be checked or reported" ) );
|
||||
|
||||
menu.AppendSeparator();
|
||||
|
||||
menu.Append( 6, _( "Edit violation severities..." ), _( "Open the Board Setup... dialog" ) );
|
||||
|
||||
switch( GetPopupMenuSelectionFromUser( menu ) )
|
||||
{
|
||||
case 1:
|
||||
|
@ -363,6 +367,10 @@ void DIALOG_DRC_CONTROL::OnDRCItemRClick( wxDataViewEvent& aEvent )
|
|||
static_cast<DRC_TREE_MODEL*>( aEvent.GetModel() )->SetProvider( m_markersProvider );
|
||||
updateDisplayedCounts();
|
||||
break;
|
||||
|
||||
case 6:
|
||||
m_brdEditor->DoShowBoardSetupDialog( _( "Violation Severity" ) );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue