Just spell out Transmission Lines fully in the calculator

This commit is contained in:
Marek Roszko 2022-02-20 21:31:37 -05:00
parent 5544dd8018
commit b69f179560
1 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ PCB_CALCULATOR_FRAME::PCB_CALCULATOR_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
AddCalculator( new PANEL_ATTENUATORS( m_treebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ), AddCalculator( new PANEL_ATTENUATORS( m_treebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ),
_( "RF Attenuators" ) ); _( "RF Attenuators" ) );
AddCalculator( new PANEL_TRANSLINE( m_treebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ), AddCalculator( new PANEL_TRANSLINE( m_treebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ),
_( "TransLine ") ); _( "Transmission Lines") );
m_treebook->AddPage( nullptr, _( "Memo" ) ); m_treebook->AddPage( nullptr, _( "Memo" ) );
@ -136,9 +136,9 @@ PCB_CALCULATOR_FRAME::PCB_CALCULATOR_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
Bind( wxEVT_SYS_COLOUR_CHANGED, Bind( wxEVT_SYS_COLOUR_CHANGED,
wxSysColourChangedEventHandler( PCB_CALCULATOR_FRAME::onThemeChanged ), this ); wxSysColourChangedEventHandler( PCB_CALCULATOR_FRAME::onThemeChanged ), this );
m_treebook->Connect( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED, wxTreebookEventHandler( m_treebook->Connect( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED, wxTreebookEventHandler(
PCB_CALCULATOR_FRAME::OnPageChanged ), NULL, this ); PCB_CALCULATOR_FRAME::OnPageChanged ), NULL, this );
} }
@ -154,7 +154,7 @@ PCB_CALCULATOR_FRAME::~PCB_CALCULATOR_FRAME()
void PCB_CALCULATOR_FRAME::OnPageChanged ( wxTreebookEvent& aEvent ) void PCB_CALCULATOR_FRAME::OnPageChanged ( wxTreebookEvent& aEvent )
{ {
int page = aEvent.GetSelection(); int page = aEvent.GetSelection();
// If the selected page is a top level page // If the selected page is a top level page
if ( m_treebook->GetPageParent( page ) == wxNOT_FOUND ) if ( m_treebook->GetPageParent( page ) == wxNOT_FOUND )
{ {