Use consistent terminology: opposite of Add is Remove.

Note: violating string freeze because this change should ease translation,
not make it harder.
This commit is contained in:
Jeff Young 2022-12-28 10:20:05 +00:00
parent e11d39b0f2
commit ef6001bfe6
2 changed files with 7 additions and 5 deletions

View File

@ -1922,11 +1922,13 @@ SIM_PLOT_FRAME::SIGNAL_CONTEXT_MENU::SIGNAL_CONTEXT_MENU( const wxString& aSigna
{
SIM_PLOT_PANEL* plot = m_plotFrame->GetCurrentPlot();
AddMenuItem( this, HIDE_SIGNAL, _( "Hide Signal" ), _( "Erase the signal from plot screen" ),
AddMenuItem( this, REMOVE_SIGNAL, _( "Remove Signal" ), _( "Remove the signal from the plot" ),
KiBitmap( BITMAPS::trash ) );
TRACE* trace = plot->GetTrace( m_signal );
AppendSeparator();
if( trace->HasCursor() )
AddMenuItem( this, HIDE_CURSOR, _( "Hide Cursor" ), KiBitmap( BITMAPS::pcb_target ) );
else
@ -1943,9 +1945,9 @@ void SIM_PLOT_FRAME::SIGNAL_CONTEXT_MENU::onMenuEvent( wxMenuEvent& aEvent )
switch( aEvent.GetId() )
{
case HIDE_SIGNAL: m_plotFrame->removePlot( m_signal ); break;
case SHOW_CURSOR: plot->EnableCursor( m_signal, true ); break;
case HIDE_CURSOR: plot->EnableCursor( m_signal, false ); break;
case REMOVE_SIGNAL: m_plotFrame->removePlot( m_signal ); break;
case SHOW_CURSOR: plot->EnableCursor( m_signal, true ); break;
case HIDE_CURSOR: plot->EnableCursor( m_signal, false ); break;
}
}

View File

@ -340,7 +340,7 @@ private:
enum SIGNAL_CONTEXT_MENU_EVENTS
{
HIDE_SIGNAL = 944,
REMOVE_SIGNAL = 944,
SHOW_CURSOR,
HIDE_CURSOR
};