pcbnew: Show current router mode in status bar

This commit is contained in:
Andrea Greco 2023-12-31 02:54:59 +00:00 committed by Ian McInerney
parent d2c3d38729
commit 55429aea6b
1 changed files with 11 additions and 0 deletions

View File

@ -2541,6 +2541,7 @@ void ROUTER_TOOL::UpdateMessagePanel()
std::vector<PNS::NET_HANDLE> nets = m_router->GetCurrentNets();
wxString description;
wxString secondary;
wxString mode;
if( m_router->Mode() == PNS::ROUTER_MODE::PNS_MODE_ROUTE_DIFF_PAIR )
{
@ -2604,6 +2605,16 @@ void ROUTER_TOOL::UpdateMessagePanel()
items.emplace_back( _( "Corner Style" ), cornerMode );
switch( m_router->Settings().Mode() )
{
case PNS::PNS_MODE::RM_MarkObstacles: mode = _( "Highlight collisions" ); break;
case PNS::PNS_MODE::RM_Walkaround: mode = _( "Walk around" ); break;
case PNS::PNS_MODE::RM_Shove: mode = _( "Shove" ); break;
default: break;
}
items.emplace_back( _( "Mode" ), mode );
#define FORMAT_VALUE( x ) frame()->MessageTextFromValue( x )
if( m_router->Mode() == PNS::ROUTER_MODE::PNS_MODE_ROUTE_DIFF_PAIR )