Added help string to select buttons.

Also moved highlight text string to help_common_strings.h

Fixes: lp:1497737
* https://bugs.launchpad.net/kicad/+bug/1497737
This commit is contained in:
D4p0up 2018-06-03 23:42:04 +02:00 committed by Seth Hillbrand
parent 3d98c82217
commit e94752a6cf
6 changed files with 10 additions and 8 deletions

View File

@ -48,8 +48,10 @@
#define HELP_DELETE_ITEMS _( "Delete item" ) #define HELP_DELETE_ITEMS _( "Delete item" )
// Schematic editor: // Schematic editor:
#define HELP_FIND _( "Find symbols and text" ) #define HELP_SELECT _( "Select item" )
#define HELP_REPLACE _( "Find and replace text in schematic items" ) #define HELP_HIGHLIGHT _( "Highlight net" )
#define HELP_FIND _( "Find symbols and text" )
#define HELP_REPLACE _( "Find and replace text in schematic items" )
#define HELP_PLACE_COMPONENTS _( "Place symbol" ) #define HELP_PLACE_COMPONENTS _( "Place symbol" )
#define HELP_PLACE_POWERPORT _( "Place power port" ) #define HELP_PLACE_POWERPORT _( "Place power port" )
#define HELP_PLACE_WIRE _( "Place wire" ) #define HELP_PLACE_WIRE _( "Place wire" )

View File

@ -55,7 +55,7 @@ void LIB_EDIT_FRAME::ReCreateVToolbar()
// Set up toolbar // Set up toolbar
m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiScaledBitmap( cursor_xpm, this ), m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiScaledBitmap( cursor_xpm, this ),
_( "Deselect current tool" ), wxITEM_CHECK ); HELP_SELECT, wxITEM_CHECK );
m_drawToolBar->AddTool( ID_LIBEDIT_PIN_BUTT, wxEmptyString, KiScaledBitmap( pin_xpm, this ), m_drawToolBar->AddTool( ID_LIBEDIT_PIN_BUTT, wxEmptyString, KiScaledBitmap( pin_xpm, this ),
HELP_ADD_PIN, wxITEM_CHECK ); HELP_ADD_PIN, wxITEM_CHECK );

View File

@ -198,11 +198,11 @@ void SCH_EDIT_FRAME::ReCreateVToolbar()
// Set up toolbar // Set up toolbar
m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiScaledBitmap( cursor_xpm, this ), m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiScaledBitmap( cursor_xpm, this ),
wxEmptyString, wxITEM_CHECK ); HELP_SELECT, wxITEM_CHECK );
m_drawToolBar->AddTool( ID_HIGHLIGHT, wxEmptyString, m_drawToolBar->AddTool( ID_HIGHLIGHT, wxEmptyString,
KiScaledBitmap( net_highlight_schematic_xpm, this ), KiScaledBitmap( net_highlight_schematic_xpm, this ),
_( "Highlight net" ), wxITEM_CHECK ); HELP_HIGHLIGHT, wxITEM_CHECK );
m_drawToolBar->AddTool( ID_SCH_PLACE_COMPONENT, wxEmptyString, m_drawToolBar->AddTool( ID_SCH_PLACE_COMPONENT, wxEmptyString,
KiScaledBitmap( add_component_xpm, this ), HELP_PLACE_COMPONENTS, KiScaledBitmap( add_component_xpm, this ), HELP_PLACE_COMPONENTS,

View File

@ -215,7 +215,7 @@ void GERBVIEW_FRAME::ReCreateVToolbar( void )
KICAD_AUI_TB_STYLE | wxAUI_TB_VERTICAL ); KICAD_AUI_TB_STYLE | wxAUI_TB_VERTICAL );
// Set up toolbar // Set up toolbar
m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, _( "Select item" ),
KiScaledBitmap( cursor_xpm, this ) ); KiScaledBitmap( cursor_xpm, this ) );
KiScaledSeparator( m_mainToolBar, this ); KiScaledSeparator( m_mainToolBar, this );

View File

@ -143,7 +143,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateVToolbar()
// Set up toolbar // Set up toolbar
m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiScaledBitmap( cursor_xpm, this ), m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiScaledBitmap( cursor_xpm, this ),
wxEmptyString, wxITEM_CHECK ); _( "Select item" ), wxITEM_CHECK );
KiScaledSeparator( m_drawToolBar, this ); KiScaledSeparator( m_drawToolBar, this );
m_drawToolBar->AddTool( ID_MODEDIT_PAD_TOOL, wxEmptyString, KiScaledBitmap( pad_xpm, this ), m_drawToolBar->AddTool( ID_MODEDIT_PAD_TOOL, wxEmptyString, KiScaledBitmap( pad_xpm, this ),

View File

@ -435,7 +435,7 @@ void PCB_EDIT_FRAME::ReCreateVToolbar()
// Set up toolbar // Set up toolbar
m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiScaledBitmap( cursor_xpm, this ), m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiScaledBitmap( cursor_xpm, this ),
wxEmptyString, wxITEM_CHECK ); _( "Select item" ), wxITEM_CHECK );
KiScaledSeparator( m_drawToolBar, this ); KiScaledSeparator( m_drawToolBar, this );