Standardize terminology for automatic zoom to "Zoom to Fit".
Fixes lp:1753336 https://bugs.launchpad.net/kicad/+bug/1753336
This commit is contained in:
parent
819056df9d
commit
3f52e87224
|
@ -3,8 +3,8 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Mario Luzeiro <mrluzeiro@ua.pt>
|
* Copyright (C) 2016 Mario Luzeiro <mrluzeiro@ua.pt>
|
||||||
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2013 Wayne Stambaugh <stambaughw@verizon.net>
|
* Copyright (C) 2013 Wayne Stambaugh <stambaughw@gmail.com>
|
||||||
* Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 1992-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -84,7 +84,7 @@ void EDA_3D_VIEWER::ReCreateMainToolbar()
|
||||||
_( "Redraw view" ) );
|
_( "Redraw view" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, KiBitmap( zoom_fit_in_page_xpm ),
|
m_mainToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, KiBitmap( zoom_fit_in_page_xpm ),
|
||||||
_( "Fit in page" ) );
|
_( "Zoom to fit 3D model" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddSeparator();
|
m_mainToolBar->AddSeparator();
|
||||||
m_mainToolBar->AddTool( ID_ROTATE3D_X_NEG, wxEmptyString,
|
m_mainToolBar->AddTool( ID_ROTATE3D_X_NEG, wxEmptyString,
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2016 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2015-2016 Wayne Stambaugh <stambaughw@verizon.net>
|
* Copyright (C) 2015 Wayne Stambaugh <stambaughw@gmail.com>
|
||||||
* Copyright (C) 2007-2017 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 2007-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -240,7 +240,7 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar()
|
||||||
_( "Redraw view (F3)" ) );
|
_( "Redraw view (F3)" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, KiBitmap( zoom_fit_in_page_xpm ),
|
m_mainToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, KiBitmap( zoom_fit_in_page_xpm ),
|
||||||
_( "Zoom auto (Home)" ) );
|
_( "Zoom to fit footprint (Home)" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddSeparator();
|
m_mainToolBar->AddSeparator();
|
||||||
m_mainToolBar->AddTool( ID_CVPCB_SHOW3D_FRAME, wxEmptyString, KiBitmap( three_d_xpm ),
|
m_mainToolBar->AddTool( ID_CVPCB_SHOW3D_FRAME, wxEmptyString, KiBitmap( three_d_xpm ),
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 CERN
|
* Copyright (C) 2010 CERN
|
||||||
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
|
* Copyright (C) 2014-2018 KiCad Developers, see CHANGELOG.TXT for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
#define HELP_ZOOM_IN _( "Zoom in" )
|
#define HELP_ZOOM_IN _( "Zoom in" )
|
||||||
#define HELP_ZOOM_OUT _( "Zoom out" )
|
#define HELP_ZOOM_OUT _( "Zoom out" )
|
||||||
#define HELP_ZOOM_FIT _( "Fit schematic sheet on screen" )
|
#define HELP_ZOOM_FIT _( "Zoom to fit schematic page" )
|
||||||
#define HELP_ZOOM_REDRAW _( "Redraw schematic view" )
|
#define HELP_ZOOM_REDRAW _( "Redraw schematic view" )
|
||||||
|
|
||||||
#define HELP_DELETE_ITEMS _( "Delete item" )
|
#define HELP_DELETE_ITEMS _( "Delete item" )
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2016 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2009 Wayne Stambaugh <stambaughw@gmail.com>
|
* Copyright (C) 2009 Wayne Stambaugh <stambaughw@gmail.com>
|
||||||
* Copyright (C) 1992-2017 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 1992-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -184,7 +184,7 @@ void prepareViewMenu( wxMenu* aParentMenu )
|
||||||
HK_ZOOM_OUT, IS_ACCELERATOR ); // add accelerator, not a shortcut
|
HK_ZOOM_OUT, IS_ACCELERATOR ); // add accelerator, not a shortcut
|
||||||
AddMenuItem( aParentMenu, ID_ZOOM_OUT, text, HELP_ZOOM_OUT, KiBitmap( zoom_out_xpm ) );
|
AddMenuItem( aParentMenu, ID_ZOOM_OUT, text, HELP_ZOOM_OUT, KiBitmap( zoom_out_xpm ) );
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Fit on Screen" ), g_Schematic_Hokeys_Descr, HK_ZOOM_AUTO );
|
text = AddHotkeyName( _( "&Zoom to Fit" ), g_Schematic_Hokeys_Descr, HK_ZOOM_AUTO );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_ZOOM_PAGE, text,
|
AddMenuItem( aParentMenu, ID_ZOOM_PAGE, text,
|
||||||
HELP_ZOOM_FIT, KiBitmap( zoom_fit_in_page_xpm ) );
|
HELP_ZOOM_FIT, KiBitmap( zoom_fit_in_page_xpm ) );
|
||||||
|
|
|
@ -167,8 +167,9 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_OUT, text, HELP_ZOOM_OUT, KiBitmap( zoom_out_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_OUT, text, HELP_ZOOM_OUT, KiBitmap( zoom_out_xpm ) );
|
||||||
|
|
||||||
// Fit on screen
|
// Fit on screen
|
||||||
text = AddHotkeyName( _( "&Fit on Screen" ), g_Libedit_Hokeys_Descr, HK_ZOOM_AUTO );
|
text = AddHotkeyName( _( "&Zoom to Fit" ), g_Libedit_Hokeys_Descr, HK_ZOOM_AUTO );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_PAGE, text, HELP_ZOOM_FIT, KiBitmap( zoom_fit_in_page_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_PAGE, text, _( "Zoom to fit symbol" ),
|
||||||
|
KiBitmap( zoom_fit_in_page_xpm ) );
|
||||||
|
|
||||||
// Redraw
|
// Redraw
|
||||||
text = AddHotkeyName( _( "&Redraw" ), g_Libedit_Hokeys_Descr, HK_ZOOM_REDRAW );
|
text = AddHotkeyName( _( "&Redraw" ), g_Libedit_Hokeys_Descr, HK_ZOOM_REDRAW );
|
||||||
|
|
|
@ -60,31 +60,40 @@ void LIB_EDIT_FRAME::ReCreateVToolbar()
|
||||||
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 );
|
||||||
|
|
||||||
m_drawToolBar->AddTool( ID_LIBEDIT_BODY_TEXT_BUTT, wxEmptyString, KiScaledBitmap( text_xpm, this ),
|
m_drawToolBar->AddTool( ID_LIBEDIT_BODY_TEXT_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( text_xpm, this ),
|
||||||
HELP_ADD_BODYTEXT, wxITEM_CHECK );
|
HELP_ADD_BODYTEXT, wxITEM_CHECK );
|
||||||
|
|
||||||
m_drawToolBar->AddTool( ID_LIBEDIT_BODY_RECT_BUTT, wxEmptyString, KiScaledBitmap( add_rectangle_xpm, this ),
|
m_drawToolBar->AddTool( ID_LIBEDIT_BODY_RECT_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( add_rectangle_xpm, this ),
|
||||||
HELP_ADD_BODYRECT, wxITEM_CHECK );
|
HELP_ADD_BODYRECT, wxITEM_CHECK );
|
||||||
|
|
||||||
m_drawToolBar->AddTool( ID_LIBEDIT_BODY_CIRCLE_BUTT, wxEmptyString, KiScaledBitmap( add_circle_xpm, this ),
|
m_drawToolBar->AddTool( ID_LIBEDIT_BODY_CIRCLE_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( add_circle_xpm, this ),
|
||||||
HELP_ADD_BODYCIRCLE, wxITEM_CHECK );
|
HELP_ADD_BODYCIRCLE, wxITEM_CHECK );
|
||||||
|
|
||||||
m_drawToolBar->AddTool( ID_LIBEDIT_BODY_ARC_BUTT, wxEmptyString, KiScaledBitmap( add_arc_xpm, this ),
|
m_drawToolBar->AddTool( ID_LIBEDIT_BODY_ARC_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( add_arc_xpm, this ),
|
||||||
HELP_ADD_BODYARC, wxITEM_CHECK );
|
HELP_ADD_BODYARC, wxITEM_CHECK );
|
||||||
|
|
||||||
m_drawToolBar->AddTool( ID_LIBEDIT_BODY_LINE_BUTT, wxEmptyString, KiScaledBitmap( add_polygon_xpm, this ),
|
m_drawToolBar->AddTool( ID_LIBEDIT_BODY_LINE_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( add_polygon_xpm, this ),
|
||||||
HELP_ADD_BODYPOLYGON, wxITEM_CHECK );
|
HELP_ADD_BODYPOLYGON, wxITEM_CHECK );
|
||||||
|
|
||||||
m_drawToolBar->AddTool( ID_LIBEDIT_ANCHOR_ITEM_BUTT, wxEmptyString, KiScaledBitmap( anchor_xpm, this ),
|
m_drawToolBar->AddTool( ID_LIBEDIT_ANCHOR_ITEM_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( anchor_xpm, this ),
|
||||||
_( "Move symbol anchor" ), wxITEM_CHECK );
|
_( "Move symbol anchor" ), wxITEM_CHECK );
|
||||||
|
|
||||||
m_drawToolBar->AddTool( ID_LIBEDIT_IMPORT_BODY_BUTT, wxEmptyString, KiScaledBitmap( import_xpm, this ),
|
m_drawToolBar->AddTool( ID_LIBEDIT_IMPORT_BODY_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( import_xpm, this ),
|
||||||
_( "Import existing drawings" ), wxITEM_CHECK );
|
_( "Import existing drawings" ), wxITEM_CHECK );
|
||||||
|
|
||||||
m_drawToolBar->AddTool( ID_LIBEDIT_EXPORT_BODY_BUTT, wxEmptyString, KiScaledBitmap( export_xpm, this ),
|
m_drawToolBar->AddTool( ID_LIBEDIT_EXPORT_BODY_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( export_xpm, this ),
|
||||||
_( "Export current drawing" ), wxITEM_CHECK );
|
_( "Export current drawing" ), wxITEM_CHECK );
|
||||||
|
|
||||||
m_drawToolBar->AddTool( ID_LIBEDIT_DELETE_ITEM_BUTT, wxEmptyString, KiScaledBitmap( delete_xpm, this ),
|
m_drawToolBar->AddTool( ID_LIBEDIT_DELETE_ITEM_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( delete_xpm, this ),
|
||||||
HELP_DELETE_ITEMS, wxITEM_CHECK );
|
HELP_DELETE_ITEMS, wxITEM_CHECK );
|
||||||
|
|
||||||
m_drawToolBar->Realize();
|
m_drawToolBar->Realize();
|
||||||
|
@ -116,17 +125,20 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
|
||||||
|
|
||||||
KiScaledSeparator( m_mainToolBar, this );
|
KiScaledSeparator( m_mainToolBar, this );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_LIBEDIT_NEW_PART, wxEmptyString, KiScaledBitmap( new_component_xpm, this ),
|
m_mainToolBar->AddTool( ID_LIBEDIT_NEW_PART, wxEmptyString,
|
||||||
|
KiScaledBitmap( new_component_xpm, this ),
|
||||||
_( "Create new symbol" ) );
|
_( "Create new symbol" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_LIBEDIT_SAVE_PART, wxEmptyString,
|
m_mainToolBar->AddTool( ID_LIBEDIT_SAVE_PART, wxEmptyString,
|
||||||
KiScaledBitmap( save_part_xpm, this ),
|
KiScaledBitmap( save_part_xpm, this ),
|
||||||
_( "Save current symbol" ) );
|
_( "Save current symbol" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_LIBEDIT_IMPORT_PART, wxEmptyString, KiScaledBitmap( import_part_xpm, this ),
|
m_mainToolBar->AddTool( ID_LIBEDIT_IMPORT_PART, wxEmptyString,
|
||||||
|
KiScaledBitmap( import_part_xpm, this ),
|
||||||
_( "Import symbol" ) );
|
_( "Import symbol" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_LIBEDIT_EXPORT_PART, wxEmptyString, KiScaledBitmap( export_part_xpm, this ),
|
m_mainToolBar->AddTool( ID_LIBEDIT_EXPORT_PART, wxEmptyString,
|
||||||
|
KiScaledBitmap( export_part_xpm, this ),
|
||||||
_( "Export symbol" ) );
|
_( "Export symbol" ) );
|
||||||
|
|
||||||
KiScaledSeparator( m_mainToolBar, this );
|
KiScaledSeparator( m_mainToolBar, this );
|
||||||
|
@ -145,7 +157,8 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
|
||||||
KiScaledSeparator( m_mainToolBar, this );
|
KiScaledSeparator( m_mainToolBar, this );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_LIBEDIT_GET_FRAME_EDIT_PART, wxEmptyString,
|
m_mainToolBar->AddTool( ID_LIBEDIT_GET_FRAME_EDIT_PART, wxEmptyString,
|
||||||
KiScaledBitmap( part_properties_xpm, this ), _( "Edit symbol properties" ) );
|
KiScaledBitmap( part_properties_xpm, this ),
|
||||||
|
_( "Edit symbol properties" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_LIBEDIT_GET_FRAME_EDIT_FIELDS, wxEmptyString,
|
m_mainToolBar->AddTool( ID_LIBEDIT_GET_FRAME_EDIT_FIELDS, wxEmptyString,
|
||||||
KiScaledBitmap( text_xpm, this ),
|
KiScaledBitmap( text_xpm, this ),
|
||||||
|
@ -159,7 +172,8 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
|
||||||
KiScaledSeparator( m_mainToolBar, this );
|
KiScaledSeparator( m_mainToolBar, this );
|
||||||
|
|
||||||
msg = AddHotkeyName( HELP_ZOOM_REDRAW, g_Libedit_Hokeys_Descr, HK_ZOOM_REDRAW, IS_COMMENT );
|
msg = AddHotkeyName( HELP_ZOOM_REDRAW, g_Libedit_Hokeys_Descr, HK_ZOOM_REDRAW, IS_COMMENT );
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, KiScaledBitmap( zoom_redraw_xpm, this ), msg );
|
m_mainToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString,
|
||||||
|
KiScaledBitmap( zoom_redraw_xpm, this ), msg );
|
||||||
|
|
||||||
msg = AddHotkeyName( HELP_ZOOM_IN, g_Libedit_Hokeys_Descr, HK_ZOOM_IN, IS_COMMENT );
|
msg = AddHotkeyName( HELP_ZOOM_IN, g_Libedit_Hokeys_Descr, HK_ZOOM_IN, IS_COMMENT );
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, KiScaledBitmap( zoom_in_xpm, this ), msg );
|
m_mainToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, KiScaledBitmap( zoom_in_xpm, this ), msg );
|
||||||
|
@ -167,22 +181,27 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
|
||||||
msg = AddHotkeyName( HELP_ZOOM_OUT, g_Libedit_Hokeys_Descr, HK_ZOOM_OUT, IS_COMMENT );
|
msg = AddHotkeyName( HELP_ZOOM_OUT, g_Libedit_Hokeys_Descr, HK_ZOOM_OUT, IS_COMMENT );
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, KiScaledBitmap( zoom_out_xpm, this ), msg );
|
m_mainToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, KiScaledBitmap( zoom_out_xpm, this ), msg );
|
||||||
|
|
||||||
msg = AddHotkeyName( HELP_ZOOM_FIT, g_Libedit_Hokeys_Descr, HK_ZOOM_AUTO, IS_COMMENT );
|
msg = AddHotkeyName( _( "Zoom to fit symbol" ), g_Libedit_Hokeys_Descr,
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, KiScaledBitmap( zoom_fit_in_page_xpm, this ), msg );
|
HK_ZOOM_AUTO, IS_COMMENT );
|
||||||
|
m_mainToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString,
|
||||||
|
KiScaledBitmap( zoom_fit_in_page_xpm, this ), msg );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_SELECTION, wxEmptyString, KiScaledBitmap( zoom_area_xpm, this ),
|
m_mainToolBar->AddTool( ID_ZOOM_SELECTION, wxEmptyString, KiScaledBitmap( zoom_area_xpm, this ),
|
||||||
_( "Zoom to selection" ), wxITEM_CHECK );
|
_( "Zoom to selection" ), wxITEM_CHECK );
|
||||||
|
|
||||||
KiScaledSeparator( m_mainToolBar, this );
|
KiScaledSeparator( m_mainToolBar, this );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_DE_MORGAN_NORMAL_BUTT, wxEmptyString, KiScaledBitmap( morgan1_xpm, this ),
|
m_mainToolBar->AddTool( ID_DE_MORGAN_NORMAL_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( morgan1_xpm, this ),
|
||||||
_( "Show as \"De Morgan\" normal symbol" ), wxITEM_CHECK );
|
_( "Show as \"De Morgan\" normal symbol" ), wxITEM_CHECK );
|
||||||
m_mainToolBar->AddTool( ID_DE_MORGAN_CONVERT_BUTT, wxEmptyString, KiScaledBitmap( morgan2_xpm, this ),
|
m_mainToolBar->AddTool( ID_DE_MORGAN_CONVERT_BUTT, wxEmptyString,
|
||||||
|
KiScaledBitmap( morgan2_xpm, this ),
|
||||||
_( "Show as \"De Morgan\" convert symbol" ), wxITEM_CHECK );
|
_( "Show as \"De Morgan\" convert symbol" ), wxITEM_CHECK );
|
||||||
|
|
||||||
KiScaledSeparator( m_mainToolBar, this );
|
KiScaledSeparator( m_mainToolBar, this );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_LIBEDIT_VIEW_DOC, wxEmptyString, KiScaledBitmap( datasheet_xpm, this ),
|
m_mainToolBar->AddTool( ID_LIBEDIT_VIEW_DOC, wxEmptyString,
|
||||||
|
KiScaledBitmap( datasheet_xpm, this ),
|
||||||
_( "Show associated datasheet or document" ) );
|
_( "Show associated datasheet or document" ) );
|
||||||
|
|
||||||
KiScaledSeparator( m_mainToolBar, this );
|
KiScaledSeparator( m_mainToolBar, this );
|
||||||
|
@ -208,9 +227,10 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
|
||||||
msg = _( "Synchronized pin edit mode\n"
|
msg = _( "Synchronized pin edit mode\n"
|
||||||
"Synchronized pin edit mode propagates to other units all pin changes except pin number modification.\n"
|
"Synchronized pin edit mode propagates to other units all pin changes except pin number modification.\n"
|
||||||
"Enabled by default for multiunit parts with interchangeable units." );
|
"Enabled by default for multiunit parts with interchangeable units." );
|
||||||
m_mainToolBar->AddTool( ID_LIBEDIT_SYNC_PIN_EDIT, wxEmptyString, KiScaledBitmap( pin2pin_xpm, this ),
|
m_mainToolBar->AddTool( ID_LIBEDIT_SYNC_PIN_EDIT, wxEmptyString,
|
||||||
msg, wxITEM_CHECK );
|
KiScaledBitmap( pin2pin_xpm, this ), msg, wxITEM_CHECK );
|
||||||
m_mainToolBar->AddTool( ID_LIBEDIT_EDIT_PIN_BY_TABLE, wxEmptyString, KiScaledBitmap( pin_table_xpm, this ),
|
m_mainToolBar->AddTool( ID_LIBEDIT_EDIT_PIN_BY_TABLE, wxEmptyString,
|
||||||
|
KiScaledBitmap( pin_table_xpm, this ),
|
||||||
_( "Show pin table" ) );
|
_( "Show pin table" ) );
|
||||||
|
|
||||||
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
|
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
|
||||||
|
@ -226,7 +246,8 @@ void LIB_EDIT_FRAME::ReCreateOptToolbar()
|
||||||
m_optionsToolBar = new wxAuiToolBar( this, ID_OPT_TOOLBAR, wxDefaultPosition, wxDefaultSize,
|
m_optionsToolBar = new wxAuiToolBar( this, ID_OPT_TOOLBAR, wxDefaultPosition, wxDefaultSize,
|
||||||
KICAD_AUI_TB_STYLE | wxAUI_TB_VERTICAL );
|
KICAD_AUI_TB_STYLE | wxAUI_TB_VERTICAL );
|
||||||
|
|
||||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_GRID, wxEmptyString, KiScaledBitmap( grid_xpm, this ),
|
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_GRID, wxEmptyString,
|
||||||
|
KiScaledBitmap( grid_xpm, this ),
|
||||||
_( "Turn grid off" ), wxITEM_CHECK );
|
_( "Turn grid off" ), wxITEM_CHECK );
|
||||||
|
|
||||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_UNIT_INCH, wxEmptyString,
|
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_UNIT_INCH, wxEmptyString,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2013 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2008-2017 Wayne Stambaugh <stambaughw@verizon.net>
|
* Copyright (C) 2008 Wayne Stambaugh <stambaughw@gmail.com>
|
||||||
* Copyright (C) 2004-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 2004-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -78,7 +78,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString,
|
m_mainToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString,
|
||||||
KiScaledBitmap( zoom_redraw_xpm, this ), msg );
|
KiScaledBitmap( zoom_redraw_xpm, this ), msg );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Zoom auto" ), g_Viewlib_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Zoom to fit symbol" ), g_Viewlib_Hokeys_Descr,
|
||||||
HK_ZOOM_AUTO, IS_COMMENT );
|
HK_ZOOM_AUTO, IS_COMMENT );
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString,
|
m_mainToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString,
|
||||||
KiScaledBitmap( zoom_fit_in_page_xpm, this ), msg );
|
KiScaledBitmap( zoom_fit_in_page_xpm, this ), msg );
|
||||||
|
@ -193,9 +193,8 @@ void LIB_VIEW_FRAME::ReCreateMenuBar( void )
|
||||||
HK_ZOOM_OUT, IS_ACCELERATOR );
|
HK_ZOOM_OUT, IS_ACCELERATOR );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_OUT, text, HELP_ZOOM_OUT, KiBitmap( zoom_out_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_OUT, text, HELP_ZOOM_OUT, KiBitmap( zoom_out_xpm ) );
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Fit on Screen" ), g_Viewlib_Hokeys_Descr,
|
text = AddHotkeyName( _( "&Zoom to Fit" ), g_Viewlib_Hokeys_Descr, HK_ZOOM_AUTO );
|
||||||
HK_ZOOM_AUTO );
|
AddMenuItem( viewMenu, ID_ZOOM_PAGE, text, _( "Zoom to fit symbol" ),
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_PAGE, text, HELP_ZOOM_FIT,
|
|
||||||
KiBitmap( zoom_fit_in_page_xpm ) );
|
KiBitmap( zoom_fit_in_page_xpm ) );
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Redraw" ), g_Viewlib_Hokeys_Descr, HK_ZOOM_REDRAW );
|
text = AddHotkeyName( _( "&Redraw" ), g_Viewlib_Hokeys_Descr, HK_ZOOM_REDRAW );
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 2016-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
* Copyright (C) 2013 CERN
|
* Copyright (C) 2013 CERN
|
||||||
* @author Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* @author Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
*
|
*
|
||||||
|
@ -137,7 +137,7 @@ void PL_EDITOR_FRAME::ReCreateMenuBar()
|
||||||
msg = AddHotkeyName( _( "Zoom Out" ), PlEditorHokeysDescr, HK_ZOOM_OUT, IS_ACCELERATOR );
|
msg = AddHotkeyName( _( "Zoom Out" ), PlEditorHokeysDescr, HK_ZOOM_OUT, IS_ACCELERATOR );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_OUT, msg, wxEmptyString, KiBitmap( zoom_out_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_OUT, msg, wxEmptyString, KiBitmap( zoom_out_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Zoom All" ), PlEditorHokeysDescr, HK_ZOOM_AUTO );
|
msg = AddHotkeyName( _( "Zoom to Fit" ), PlEditorHokeysDescr, HK_ZOOM_AUTO );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_PAGE, msg, wxEmptyString, KiBitmap( zoom_fit_in_page_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_PAGE, msg, wxEmptyString, KiBitmap( zoom_fit_in_page_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Zoom to Selection" ), PlEditorHokeysDescr, HK_ZOOM_SELECTION );
|
msg = AddHotkeyName( _( "Zoom to Selection" ), PlEditorHokeysDescr, HK_ZOOM_SELECTION );
|
||||||
|
|
|
@ -80,7 +80,8 @@ void PL_EDITOR_FRAME::ReCreateHToolbar( void )
|
||||||
// Standard Zoom controls:
|
// Standard Zoom controls:
|
||||||
m_mainToolBar->AddSeparator();
|
m_mainToolBar->AddSeparator();
|
||||||
msg = AddHotkeyName( _( "Redraw view" ), PlEditorHokeysDescr, HK_ZOOM_REDRAW, IS_COMMENT );
|
msg = AddHotkeyName( _( "Redraw view" ), PlEditorHokeysDescr, HK_ZOOM_REDRAW, IS_COMMENT );
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, KiScaledBitmap( zoom_redraw_xpm, this ), msg );
|
m_mainToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString,
|
||||||
|
KiScaledBitmap( zoom_redraw_xpm, this ), msg );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Zoom in" ), PlEditorHokeysDescr, HK_ZOOM_IN, IS_COMMENT );
|
msg = AddHotkeyName( _( "Zoom in" ), PlEditorHokeysDescr, HK_ZOOM_IN, IS_COMMENT );
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, KiScaledBitmap( zoom_in_xpm, this ), msg );
|
m_mainToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, KiScaledBitmap( zoom_in_xpm, this ), msg );
|
||||||
|
@ -88,8 +89,9 @@ void PL_EDITOR_FRAME::ReCreateHToolbar( void )
|
||||||
msg = AddHotkeyName( _( "Zoom out" ), PlEditorHokeysDescr, HK_ZOOM_OUT, IS_COMMENT );
|
msg = AddHotkeyName( _( "Zoom out" ), PlEditorHokeysDescr, HK_ZOOM_OUT, IS_COMMENT );
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, KiScaledBitmap( zoom_out_xpm, this ), msg );
|
m_mainToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, KiScaledBitmap( zoom_out_xpm, this ), msg );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Zoom auto" ), PlEditorHokeysDescr, HK_ZOOM_AUTO, IS_COMMENT );
|
msg = AddHotkeyName( _( "Zoom to fit page" ), PlEditorHokeysDescr, HK_ZOOM_AUTO, IS_COMMENT );
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, KiScaledBitmap( zoom_fit_in_page_xpm, this ), msg );
|
m_mainToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString,
|
||||||
|
KiScaledBitmap( zoom_fit_in_page_xpm, this ), msg );
|
||||||
|
|
||||||
// Zoom-to-selection
|
// Zoom-to-selection
|
||||||
m_mainToolBar->AddTool( ID_ZOOM_SELECTION, wxEmptyString, KiScaledBitmap( zoom_area_xpm, this ),
|
m_mainToolBar->AddTool( ID_ZOOM_SELECTION, wxEmptyString, KiScaledBitmap( zoom_area_xpm, this ),
|
||||||
|
@ -163,7 +165,8 @@ void PL_EDITOR_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, KiScaledBitmap( cursor_xpm, this ) );
|
m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString,
|
||||||
|
KiScaledBitmap( cursor_xpm, this ) );
|
||||||
KiScaledSeparator( m_drawToolBar, this );
|
KiScaledSeparator( m_drawToolBar, this );
|
||||||
|
|
||||||
m_drawToolBar->Realize();
|
m_drawToolBar->Realize();
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#define HELP_ZOOM_IN _( "Zoom in" )
|
#define HELP_ZOOM_IN _( "Zoom in" )
|
||||||
#define HELP_ZOOM_OUT _( "Zoom out" )
|
#define HELP_ZOOM_OUT _( "Zoom out" )
|
||||||
#define HELP_ZOOM_FIT _( "Zoom to fit board on screen" )
|
#define HELP_ZOOM_FIT _( "Zoom to fit board or page" )
|
||||||
#define HELP_ZOOM_REDRAW _( "Redraw screen" )
|
#define HELP_ZOOM_REDRAW _( "Redraw screen" )
|
||||||
|
|
||||||
#define HELP_SHOW_HIDE_LAYERMANAGER _( "Show/hide the layers manager toolbar" )
|
#define HELP_SHOW_HIDE_LAYERMANAGER _( "Show/hide the layers manager toolbar" )
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2015 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
|
* Copyright (C) 2015 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
|
||||||
* Copyright (C) 2015 Wayne Stambaugh <stambaughw@verizon.net>
|
* Copyright (C) 2015 Wayne Stambaugh <stambaughw@gmail.com>
|
||||||
* Copyright (C) 1992-2017 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 1992-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -180,14 +180,14 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
if( IsGalCanvasActive() )
|
if( IsGalCanvasActive() )
|
||||||
{
|
{
|
||||||
text = AddHotkeyName( _( "Cu&t" ), m_hotkeysDescrList, HK_EDIT_CUT );
|
text = AddHotkeyName( _( "Cu&t" ), m_hotkeysDescrList, HK_EDIT_CUT );
|
||||||
AddMenuItem( editMenu, ID_EDIT_CUT, text, _(
|
AddMenuItem( editMenu, ID_EDIT_CUT, text,
|
||||||
"Cuts the selected item(s) to the Clipboard" ), KiBitmap( cut_xpm ) );
|
_( "Cuts the selected item(s) to the Clipboard" ), KiBitmap( cut_xpm ) );
|
||||||
text = AddHotkeyName( _( "&Copy" ), m_hotkeysDescrList, HK_EDIT_COPY );
|
text = AddHotkeyName( _( "&Copy" ), m_hotkeysDescrList, HK_EDIT_COPY );
|
||||||
AddMenuItem( editMenu, ID_EDIT_COPY, text, _(
|
AddMenuItem( editMenu, ID_EDIT_COPY, text,
|
||||||
"Copies the selected item(s) to the Clipboard" ), KiBitmap( copy_xpm ) );
|
_( "Copies the selected item(s) to the Clipboard" ), KiBitmap( copy_xpm ) );
|
||||||
text = AddHotkeyName( _( "&Paste" ), m_hotkeysDescrList, HK_EDIT_PASTE );
|
text = AddHotkeyName( _( "&Paste" ), m_hotkeysDescrList, HK_EDIT_PASTE );
|
||||||
AddMenuItem( editMenu, ID_EDIT_PASTE, text, _(
|
AddMenuItem( editMenu, ID_EDIT_PASTE, text,
|
||||||
"Pastes item(s) from the Clipboard" ), KiBitmap( paste_xpm ) );
|
_( "Pastes item(s) from the Clipboard" ), KiBitmap( paste_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete items
|
// Delete items
|
||||||
|
@ -231,9 +231,9 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
HK_ZOOM_OUT, IS_ACCELERATOR );
|
HK_ZOOM_OUT, IS_ACCELERATOR );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_OUT, text, HELP_ZOOM_OUT, KiBitmap( zoom_out_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_OUT, text, HELP_ZOOM_OUT, KiBitmap( zoom_out_xpm ) );
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Fit on Screen" ), m_hotkeysDescrList,
|
text = AddHotkeyName( _( "&Zoom to Fit" ), m_hotkeysDescrList,
|
||||||
HK_ZOOM_AUTO );
|
HK_ZOOM_AUTO );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_PAGE, text, HELP_ZOOM_FIT,
|
AddMenuItem( viewMenu, ID_ZOOM_PAGE, text, _( "Zoom to fit footprint" ),
|
||||||
KiBitmap( zoom_fit_in_page_xpm ) );
|
KiBitmap( zoom_fit_in_page_xpm ) );
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Redraw" ), m_hotkeysDescrList, HK_ZOOM_REDRAW );
|
text = AddHotkeyName( _( "&Redraw" ), m_hotkeysDescrList, HK_ZOOM_REDRAW );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Copyright (C) 2017 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2017 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
|
* Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
|
||||||
* Copyright (C) 2012 Wayne Stambaugh <stambaughw@gmail.com>
|
* Copyright (C) 2012 Wayne Stambaugh <stambaughw@gmail.com>
|
||||||
* Copyright (C) 1992-2017 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 1992-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
|
* Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
|
||||||
* Copyright (C) 2012-2015 Wayne Stambaugh <stambaughw@verizon.net>
|
* Copyright (C) 2012 Wayne Stambaugh <stambaughw@gmail.com>
|
||||||
* Copyright (C) 1992-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 1992-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
|
@ -90,7 +90,7 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar()
|
||||||
m_mainToolBar->AddTool( ID_VIEWER_ZOOM_REDRAW, wxEmptyString,
|
m_mainToolBar->AddTool( ID_VIEWER_ZOOM_REDRAW, wxEmptyString,
|
||||||
KiScaledBitmap( zoom_redraw_xpm, this ), msg );
|
KiScaledBitmap( zoom_redraw_xpm, this ), msg );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Zoom auto" ), g_Module_Viewer_Hotkeys_Descr,
|
msg = AddHotkeyName( _( "Zoom to fit footprint" ), g_Module_Viewer_Hotkeys_Descr,
|
||||||
HK_ZOOM_AUTO );
|
HK_ZOOM_AUTO );
|
||||||
m_mainToolBar->AddTool( ID_VIEWER_ZOOM_PAGE, wxEmptyString,
|
m_mainToolBar->AddTool( ID_VIEWER_ZOOM_PAGE, wxEmptyString,
|
||||||
KiScaledBitmap( zoom_fit_in_page_xpm, this ), msg );
|
KiScaledBitmap( zoom_fit_in_page_xpm, this ), msg );
|
||||||
|
@ -161,7 +161,7 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateMenuBar( void )
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Fit on Screen" ), g_Module_Viewer_Hotkeys_Descr,
|
text = AddHotkeyName( _( "&Fit on Screen" ), g_Module_Viewer_Hotkeys_Descr,
|
||||||
HK_ZOOM_AUTO );
|
HK_ZOOM_AUTO );
|
||||||
AddMenuItem( viewMenu, ID_VIEWER_ZOOM_PAGE, text, HELP_ZOOM_FIT,
|
AddMenuItem( viewMenu, ID_VIEWER_ZOOM_PAGE, text, _( "Zoom to fit footprint" ),
|
||||||
KiBitmap( zoom_fit_in_page_xpm ) );
|
KiBitmap( zoom_fit_in_page_xpm ) );
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Redraw" ), g_Module_Viewer_Hotkeys_Descr, HK_ZOOM_REDRAW );
|
text = AddHotkeyName( _( "&Redraw" ), g_Module_Viewer_Hotkeys_Descr, HK_ZOOM_REDRAW );
|
||||||
|
|
Loading…
Reference in New Issue