Properties: NetName and NetClass should have a space + don't translate "Net"

This commit is contained in:
Roberto Fernandez Bautista 2022-05-09 22:24:52 +01:00 committed by Jon Evans
parent bfdb39f418
commit fe7e665236
2 changed files with 3 additions and 3 deletions

View File

@ -161,9 +161,9 @@ static struct BOARD_CONNECTED_ITEM_DESC
propMgr.AddProperty( new PROPERTY_ENUM<BOARD_CONNECTED_ITEM, int>( _HKI( "Net" ),
&BOARD_CONNECTED_ITEM::SetNetCode, &BOARD_CONNECTED_ITEM::GetNetCode ) );
propMgr.AddProperty( new PROPERTY<BOARD_CONNECTED_ITEM, wxString>( _HKI( "NetName" ),
propMgr.AddProperty( new PROPERTY<BOARD_CONNECTED_ITEM, wxString>( _HKI( "Net Name" ),
NO_SETTER( BOARD_CONNECTED_ITEM, wxString ), &BOARD_CONNECTED_ITEM::GetNetname ) );
propMgr.AddProperty( new PROPERTY<BOARD_CONNECTED_ITEM, wxString>( _HKI( "NetClass" ),
propMgr.AddProperty( new PROPERTY<BOARD_CONNECTED_ITEM, wxString>( _HKI( "Net Class" ),
NO_SETTER( BOARD_CONNECTED_ITEM, wxString ), &BOARD_CONNECTED_ITEM::GetNetClassName ) );
}
} _BOARD_CONNECTED_ITEM_DESC;

View File

@ -123,6 +123,6 @@ void PCB_PROPERTIES_PANEL::updateLists( const BOARD* aBoard )
nets.Add( netinfo.second->GetNetname(), netinfo.first );
}
auto netProperty = m_propMgr.GetProperty( TYPE_HASH( BOARD_CONNECTED_ITEM ), _( "Net" ) );
auto netProperty = m_propMgr.GetProperty( TYPE_HASH( BOARD_CONNECTED_ITEM ), _HKI( "Net" ) );
netProperty->SetChoices( nets );
}