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() ),
|
drcItem->GetErrorText() ),
|
||||||
_( "Violations will not be checked or reported" ) );
|
_( "Violations will not be checked or reported" ) );
|
||||||
|
|
||||||
|
menu.AppendSeparator();
|
||||||
|
|
||||||
|
menu.Append( 6, _( "Edit violation severities..." ), _( "Open the Board Setup... dialog" ) );
|
||||||
|
|
||||||
switch( GetPopupMenuSelectionFromUser( menu ) )
|
switch( GetPopupMenuSelectionFromUser( menu ) )
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -363,6 +367,10 @@ void DIALOG_DRC_CONTROL::OnDRCItemRClick( wxDataViewEvent& aEvent )
|
||||||
static_cast<DRC_TREE_MODEL*>( aEvent.GetModel() )->SetProvider( m_markersProvider );
|
static_cast<DRC_TREE_MODEL*>( aEvent.GetModel() )->SetProvider( m_markersProvider );
|
||||||
updateDisplayedCounts();
|
updateDisplayedCounts();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
m_brdEditor->DoShowBoardSetupDialog( _( "Violation Severity" ) );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue