2013-09-27 18:52:34 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2016-05-04 12:59:14 +00:00
|
|
|
* Copyright (C) 2013-2016 CERN
|
2019-04-11 01:23:34 +00:00
|
|
|
* Copyright (C) 2016-2019 KiCad Developers, see AUTHORS.txt for contributors.
|
2013-09-27 18:52:34 +00:00
|
|
|
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2017-02-21 12:42:08 +00:00
|
|
|
#include "pcb_actions.h"
|
2014-02-17 17:21:00 +00:00
|
|
|
#include <pcbnew_id.h>
|
2019-06-17 00:34:21 +00:00
|
|
|
#include <bitmaps.h>
|
|
|
|
#include <layers_id_colors_and_visibility.h>
|
2020-04-01 17:24:31 +00:00
|
|
|
#include <microwave/microwave_tool.h>
|
2019-04-14 00:44:05 +00:00
|
|
|
#include <tool/tool_manager.h>
|
2019-06-24 15:27:05 +00:00
|
|
|
#include <router/pns_router.h>
|
2020-04-19 14:39:16 +00:00
|
|
|
#include <router/pns_routing_settings.h>
|
2014-07-09 12:23:13 +00:00
|
|
|
|
2017-11-01 11:14:16 +00:00
|
|
|
OPT<TOOL_EVENT> PCB_ACTIONS::TranslateLegacyId( int aId )
|
2014-02-17 17:21:00 +00:00
|
|
|
{
|
|
|
|
switch( aId )
|
|
|
|
{
|
2018-11-01 09:47:41 +00:00
|
|
|
case ID_GEN_IMPORT_GRAPHICS_FILE:
|
|
|
|
return PCB_ACTIONS::placeImportedGraphics.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
}
|
|
|
|
|
2017-11-01 11:14:16 +00:00
|
|
|
return OPT<TOOL_EVENT>();
|
2014-02-17 17:21:00 +00:00
|
|
|
}
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Actions, being statically-defined, require specialized I18N handling. We continue to
|
|
|
|
// use the _() macro so that string harvesting by the I18N framework doesn't have to be
|
|
|
|
// specialized, but we don't translate on initialization and instead do it in the getters.
|
|
|
|
|
|
|
|
#undef _
|
|
|
|
#define _(s) s
|
|
|
|
|
|
|
|
|
|
|
|
// DRAWING_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawLine( "pcbnew.InteractiveDrawing.line",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'L', LEGACY_HK_NAME( "Draw Line" ),
|
|
|
|
_( "Draw Line" ), _( "Draw a line" ),
|
|
|
|
add_graphical_segments_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawPolygon( "pcbnew.InteractiveDrawing.graphicPolygon",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'P', LEGACY_HK_NAME( "Draw Graphic Polygon" ),
|
|
|
|
_( "Draw Graphic Polygon" ), _( "Draw a graphic polygon" ),
|
2019-06-24 15:27:05 +00:00
|
|
|
add_graphical_polygon_xpm, AF_ACTIVATE, (void*) ZONE_MODE::GRAPHIC_POLYGON );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawCircle( "pcbnew.InteractiveDrawing.circle",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'C', LEGACY_HK_NAME( "Draw Circle" ),
|
|
|
|
_( "Draw Circle" ), _( "Draw a circle" ),
|
|
|
|
add_circle_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawArc( "pcbnew.InteractiveDrawing.arc",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'A', LEGACY_HK_NAME( "Draw Arc" ),
|
|
|
|
_( "Draw Arc" ), _( "Draw an arc" ),
|
|
|
|
add_arc_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::placeText( "pcbnew.InteractiveDrawing.text",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'T', LEGACY_HK_NAME( "Add Text" ),
|
|
|
|
_( "Add Text" ), _( "Add a text item" ),
|
|
|
|
text_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawDimension( "pcbnew.InteractiveDrawing.dimension",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'H', LEGACY_HK_NAME( "Add Dimension" ),
|
|
|
|
_( "Add Dimension" ), _( "Add a dimension" ),
|
|
|
|
add_dimension_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawZone( "pcbnew.InteractiveDrawing.zone",
|
|
|
|
AS_GLOBAL,
|
|
|
|
#ifdef __WXOSX_MAC__
|
|
|
|
MD_ALT + 'Z',
|
|
|
|
#else
|
|
|
|
MD_SHIFT + MD_CTRL + 'Z',
|
|
|
|
#endif
|
|
|
|
LEGACY_HK_NAME( "Add Filled Zone" ),
|
|
|
|
_( "Add Filled Zone" ), _( "Add a filled zone" ),
|
2019-06-24 15:27:05 +00:00
|
|
|
add_zone_xpm, AF_ACTIVATE, (void*) ZONE_MODE::ADD );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawVia( "pcbnew.InteractiveDrawing.via",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'V', LEGACY_HK_NAME( "Add Vias" ),
|
|
|
|
_( "Add Vias" ), _( "Add free-standing vias" ),
|
|
|
|
add_via_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawZoneKeepout( "pcbnew.InteractiveDrawing.keepout",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'K', LEGACY_HK_NAME( "Add Keepout Area" ),
|
|
|
|
_( "Add Keepout Area" ), _( "Add a keepout area" ),
|
2019-06-24 15:27:05 +00:00
|
|
|
add_keepout_area_xpm, AF_ACTIVATE, (void*) ZONE_MODE::ADD );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawZoneCutout( "pcbnew.InteractiveDrawing.zoneCutout",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + 'C', LEGACY_HK_NAME( "Add a Zone Cutout" ),
|
|
|
|
_( "Add a Zone Cutout" ), _( "Add a cutout area of an existing zone" ),
|
2019-06-24 15:27:05 +00:00
|
|
|
add_zone_cutout_xpm, AF_ACTIVATE, (void*) ZONE_MODE::CUTOUT );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawSimilarZone( "pcbnew.InteractiveDrawing.similarZone",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + '.', LEGACY_HK_NAME( "Add a Similar Zone" ),
|
|
|
|
_( "Add a Similar Zone" ), _( "Add a zone with the same settings as an existing zone" ),
|
2019-06-24 15:27:05 +00:00
|
|
|
add_zone_xpm, AF_ACTIVATE, (void*) ZONE_MODE::SIMILAR );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::placeImportedGraphics( "pcbnew.InteractiveDrawing.placeImportedGraphics",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'F', LEGACY_HK_NAME( "Place DXF" ),
|
|
|
|
_( "Place Imported Graphics" ), "",
|
|
|
|
import_vector_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::setAnchor( "pcbnew.InteractiveDrawing.setAnchor",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'N', LEGACY_HK_NAME( "Place the Footprint Anchor" ),
|
|
|
|
_( "Place the Footprint Anchor" ), "",
|
|
|
|
anchor_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::incWidth( "pcbnew.InteractiveDrawing.incWidth",
|
|
|
|
AS_CONTEXT,
|
|
|
|
MD_CTRL + '+', LEGACY_HK_NAME( "Increase Line Width" ),
|
|
|
|
_( "Increase Line Width" ), _( "Increase the line width" ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::decWidth( "pcbnew.InteractiveDrawing.decWidth",
|
|
|
|
AS_CONTEXT,
|
|
|
|
MD_CTRL + '-', LEGACY_HK_NAME( "Decrease Line Width" ),
|
|
|
|
_( "Decrease Line Width" ), _( "Decrease the line width" ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::arcPosture( "pcbnew.InteractiveDrawing.arcPosture",
|
|
|
|
AS_CONTEXT,
|
|
|
|
'/', LEGACY_HK_NAME( "Switch Track Posture" ),
|
|
|
|
_( "Switch Arc Posture" ), _( "Switch the arc posture" ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::deleteLastPoint( "pcbnew.InteractiveDrawing.deleteLastPoint",
|
|
|
|
AS_CONTEXT,
|
|
|
|
WXK_BACK, "",
|
|
|
|
_( "Delete Last Point" ), _( "Delete the last point added to the current item" ),
|
|
|
|
undo_xpm );
|
|
|
|
|
2020-04-24 17:34:05 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::closeOutline( "pcbnew.InteractiveDrawing.closeOutline",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_CONTEXT, 0, "",
|
2020-04-24 17:34:05 +00:00
|
|
|
_( "Close Outline" ), _( "Close the in progress outline" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
checked_ok_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// DRC
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::runDRC( "pcbnew.DRCTool.runDRC",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Design Rules Checker" ), _( "Show the design rules checker window" ),
|
|
|
|
erc_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// EDIT_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::editFootprintInFpEditor( "pcbnew.InteractiveEdit.EditFpInFpEditor",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'E', LEGACY_HK_NAME( "Edit with Footprint Editor" ),
|
|
|
|
_( "Open in Footprint Editor" ),
|
|
|
|
_( "Opens the selected footprint in the Footprint Editor" ),
|
|
|
|
module_editor_xpm );
|
|
|
|
|
2019-08-13 12:29:18 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::getAndPlace( "pcbnew.InteractiveEdit.FindMove",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'T', LEGACY_HK_NAME( "Get and Move Footprint" ),
|
|
|
|
_( "Get and Move Footprint" ),
|
2020-03-17 16:08:29 +00:00
|
|
|
_( "Selects a footprint by reference designator and places it under the cursor for moving"),
|
2019-08-13 12:29:18 +00:00
|
|
|
move_xpm );
|
|
|
|
|
2019-07-01 21:01:33 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::move( "pcbnew.InteractiveMove.move",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
'M', LEGACY_HK_NAME( "Move Item" ),
|
|
|
|
_( "Move" ), _( "Moves the selected item(s)" ),
|
|
|
|
move_xpm, AF_ACTIVATE );
|
|
|
|
|
2019-08-19 20:09:17 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drag( "pcbnew.InteractiveMove.drag",
|
|
|
|
AS_GLOBAL, 0, "", "", "",
|
|
|
|
move_xpm, AF_ACTIVATE );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::duplicateIncrement( "pcbnew.InteractiveEdit.duplicateIncrementPads",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'D', LEGACY_HK_NAME( "Duplicate Item and Increment" ),
|
2019-07-04 19:56:52 +00:00
|
|
|
_( "Duplicate and Increment" ), _( "Duplicates the selected item(s), incrementing pad numbers" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
duplicate_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::moveExact( "pcbnew.InteractiveEdit.moveExact",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'M', LEGACY_HK_NAME( "Move Item Exactly" ),
|
|
|
|
_( "Move Exactly..." ), _( "Moves the selected item(s) by an exact amount" ),
|
|
|
|
move_exactly_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::createArray( "pcbnew.InteractiveEdit.createArray",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'T', LEGACY_HK_NAME( "Create Array" ),
|
|
|
|
_( "Create Array..." ), _( "Create array" ),
|
|
|
|
array_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::rotateCw( "pcbnew.InteractiveEdit.rotateCw",
|
|
|
|
AS_GLOBAL,
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2019-06-17 00:34:21 +00:00
|
|
|
MD_SHIFT + 'R', LEGACY_HK_NAME( "Rotate Item Clockwise (Modern Toolset only)" ),
|
|
|
|
_( "Rotate Clockwise" ), _( "Rotates selected item(s) clockwise" ),
|
|
|
|
rotate_cw_xpm, AF_NONE, (void*) -1 );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::rotateCcw( "pcbnew.InteractiveEdit.rotateCcw",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'R', LEGACY_HK_NAME( "Rotate Item" ),
|
|
|
|
_( "Rotate Counterclockwise" ), _( "Rotates selected item(s) counterclockwise" ),
|
|
|
|
rotate_ccw_xpm, AF_NONE, (void*) 1 );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::flip( "pcbnew.InteractiveEdit.flip",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'F', LEGACY_HK_NAME( "Flip Item" ),
|
|
|
|
_( "Flip" ), _( "Flips selected item(s) to opposite side of board" ),
|
|
|
|
swap_layer_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::mirror( "pcbnew.InteractiveEdit.mirror",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Mirror" ), _( "Mirrors selected item" ),
|
|
|
|
mirror_h_xpm );
|
|
|
|
|
2019-10-31 00:00:07 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::changeTrackWidth( "pcbnew.InteractiveEdit.changeTrackWidth",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change Track Width" ), _( "Updates selected track & via sizes" ) );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::deleteFull( "pcbnew.InteractiveEdit.deleteFull",
|
|
|
|
AS_GLOBAL,
|
|
|
|
WXK_DELETE, LEGACY_HK_NAME( "Delete Full Track" ),
|
|
|
|
_( "Delete Full Track" ), _( "Deletes selected item(s) and copper connections" ),
|
|
|
|
delete_xpm, AF_NONE, (void*) REMOVE_FLAGS::ALT );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::properties( "pcbnew.InteractiveEdit.properties",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'E', LEGACY_HK_NAME( "Edit Item" ),
|
|
|
|
_( "Properties..." ), _( "Displays item properties dialog" ),
|
|
|
|
config_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::updateUnits( "pcbnew.InteractiveEdit.updateUnits",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
|
|
|
|
// FOOTPRINT_EDITOR_TOOLS
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::toggleFootprintTree( "pcbnew.ModuleEditor.toggleFootprintTree",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Show Footprint Tree" ), _( "Toggles the footprint tree visibility" ),
|
|
|
|
search_tree_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::newFootprint( "pcbnew.ModuleEditor.newFootprint",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'N', LEGACY_HK_NAME( "New" ),
|
|
|
|
_( "New Footprint..." ), _( "Create a new, empty footprint" ),
|
|
|
|
new_footprint_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::createFootprint( "pcbnew.ModuleEditor.createFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Create Footprint..." ), _( "Create a new footprint using the Footprint Wizard" ),
|
|
|
|
module_wizard_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::saveToBoard( "pcbnew.ModuleEditor.saveToBoard",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Save to Board" ), _( "Update footprint on board" ),
|
|
|
|
save_fp_to_board_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::saveToLibrary( "pcbnew.ModuleEditor.saveToLibrary",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Save to Library" ), _( "Save changes to library" ),
|
|
|
|
save_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::editFootprint( "pcbnew.ModuleEditor.editFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Edit Footprint" ), _( "Show selected footprint on editor canvas" ),
|
|
|
|
edit_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::deleteFootprint( "pcbnew.ModuleEditor.deleteFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Delete Footprint from Library" ), "",
|
|
|
|
delete_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::cutFootprint( "pcbnew.ModuleEditor.cutFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Cut Footprint" ), "",
|
|
|
|
cut_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::copyFootprint( "pcbnew.ModuleEditor.copyFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Copy Footprint" ), "",
|
|
|
|
copy_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pasteFootprint( "pcbnew.ModuleEditor.pasteFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Paste Footprint" ), "",
|
|
|
|
paste_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::importFootprint( "pcbnew.ModuleEditor.importFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Import Footprint..." ), "",
|
|
|
|
import_module_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::exportFootprint( "pcbnew.ModuleEditor.exportFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Export Footprint..." ), "",
|
|
|
|
export_module_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::footprintProperties( "pcbnew.ModuleEditor.footprintProperties",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Footprint Properties..." ), "",
|
|
|
|
module_options_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::placePad( "pcbnew.ModuleEditor.placePad",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Pad" ), _( "Add a pad" ),
|
|
|
|
pad_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::createPadFromShapes( "pcbnew.ModuleEditor.createPadFromShapes",
|
|
|
|
AS_CONTEXT, 0, "",
|
|
|
|
_( "Create Pad from Selected Shapes" ),
|
|
|
|
_( "Creates a custom-shaped pads from a set of selected shapes" ),
|
|
|
|
primitives_to_custom_pad_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::explodePadToShapes( "pcbnew.ModuleEditor.explodePadToShapes",
|
|
|
|
AS_CONTEXT, 0, "",
|
|
|
|
_( "Explode Pad to Graphic Shapes" ),
|
|
|
|
_( "Converts a custom-shaped pads to a set of graphical shapes" ),
|
|
|
|
custom_pad_to_primitives_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::defaultPadProperties( "pcbnew.ModuleEditor.defaultPadProperties",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Default Pad Properties..." ), _( "Edit the pad properties used when creating new pads" ),
|
|
|
|
options_pad_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// GLOBAL_EDIT_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::updateFootprint( "pcbnew.GlobalEdit.updateFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Update Footprint..." ),
|
|
|
|
_( "Update footprint to include any changes from the library" ),
|
|
|
|
reload_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::updateFootprints( "pcbnew.GlobalEdit.updateFootprints",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Update Footprints from Library..." ),
|
|
|
|
_( "Update footprints to include any changes from the library" ),
|
|
|
|
reload_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::changeFootprint( "pcbnew.GlobalEdit.changeFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change Footprint..." ), _( "Assign a different footprint from the library" ),
|
|
|
|
exchange_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::changeFootprints( "pcbnew.GlobalEdit.changeFootprints",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change Footprints..." ), _( "Assign different footprints from the library" ),
|
|
|
|
exchange_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::swapLayers( "pcbnew.GlobalEdit.swapLayers",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Swap Layers..." ), _( "Move tracks or drawings from one layer to another" ),
|
|
|
|
swap_layer_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::editTracksAndVias( "pcbnew.GlobalEdit.editTracksAndVias",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-17 09:41:38 +00:00
|
|
|
_( "Edit Track & Via Properties..." ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
width_track_via_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::editTextAndGraphics( "pcbnew.GlobalEdit.editTextAndGraphics",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-30 22:06:34 +00:00
|
|
|
_( "Edit Text & Graphics Properties..." ),
|
|
|
|
_( "Edit Text and graphics properties globally across board" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
reset_text_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::globalDeletions( "pcbnew.GlobalEdit.globalDeletions",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Global Deletions..." ),
|
|
|
|
_( "Delete tracks, footprints and graphic items from board" ),
|
|
|
|
general_deletions_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::cleanupTracksAndVias( "pcbnew.GlobalEdit.cleanupTracksAndVias",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-17 09:41:38 +00:00
|
|
|
_( "Cleanup Tracks & Vias..." ),
|
2019-06-17 00:34:21 +00:00
|
|
|
_( "Clean stubs, vias, delete break points or unconnected tracks" ),
|
|
|
|
delete_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// MICROWAVE_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::microwaveCreateGap( "pcbnew.MicrowaveTool.createGap",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-04 09:28:24 +00:00
|
|
|
_( "Add Microwave Gap" ), _( "Create gap of specified length for microwave applications" ),
|
2020-04-01 17:24:31 +00:00
|
|
|
mw_add_gap_xpm, AF_ACTIVATE, (void*) MICROWAVE_FOOTPRINT_SHAPE::GAP );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::microwaveCreateStub( "pcbnew.MicrowaveTool.createStub",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-04 09:28:24 +00:00
|
|
|
_( "Add Microwave Stub" ), _( "Create stub of specified length for microwave applications" ),
|
2020-04-01 17:24:31 +00:00
|
|
|
mw_add_stub_xpm, AF_ACTIVATE, (void*) MICROWAVE_FOOTPRINT_SHAPE::STUB );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::microwaveCreateStubArc( "pcbnew.MicrowaveTool.createStubArc",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-04 09:28:24 +00:00
|
|
|
_( "Add Microwave Arc Stub" ), _( "Create stub (arc) of specified size for microwave applications" ),
|
2020-04-01 17:24:31 +00:00
|
|
|
mw_add_stub_arc_xpm, AF_ACTIVATE, (void*) MICROWAVE_FOOTPRINT_SHAPE::STUB_ARC );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::microwaveCreateFunctionShape( "pcbnew.MicrowaveTool.createFunctionShape",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-04 09:28:24 +00:00
|
|
|
_( "Add Microwave Polygonal Shape" ), _( "Create a microwave polygonal shape from a list of vertices" ),
|
2020-04-01 17:24:31 +00:00
|
|
|
mw_add_gap_xpm, AF_ACTIVATE, (void*) MICROWAVE_FOOTPRINT_SHAPE::FUNCTION_SHAPE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::microwaveCreateLine( "pcbnew.MicrowaveTool.createLine",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Microwave Line" ), _( "Create line of specified length for microwave applications" ),
|
|
|
|
mw_add_line_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
|
|
|
|
// PAD_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::copyPadSettings( "pcbnew.PadTool.CopyPadSettings",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-11-26 18:42:11 +00:00
|
|
|
_( "Copy Pad Properties to Default" ), _( "Copy current pad's properties" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
copy_pad_settings_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::applyPadSettings( "pcbnew.PadTool.ApplyPadSettings",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-11-26 18:42:11 +00:00
|
|
|
_( "Paste Default Pad Properties to Selected" ),
|
|
|
|
_( "Replace the current pad's properties with those copied earlier" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
apply_pad_settings_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pushPadSettings( "pcbnew.PadTool.PushPadSettings",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-11-26 18:42:11 +00:00
|
|
|
_( "Push Pad Properties to Other Pads..." ),
|
|
|
|
_( "Copy the current pad's properties to other pads" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
push_pad_settings_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::enumeratePads( "pcbnew.PadTool.enumeratePads",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-11-26 18:42:11 +00:00
|
|
|
_( "Renumber Pads..." ),
|
|
|
|
_( "Renumber pads by clicking on them in the desired order" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
pad_enumerate_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
|
|
|
|
// PCB_EDITOR_CONTROL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::boardSetup( "pcbnew.EditorControl.boardSetup",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Board Setup..." ),
|
|
|
|
_( "Edit board setup including layers, design rules and various defaults" ),
|
|
|
|
options_board_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::importNetlist( "pcbnew.EditorControl.importNetlist",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Netlist..." ), _( "Read netlist and update board connectivity" ),
|
|
|
|
netlist_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::importSpecctraSession( "pcbnew.EditorControl.importSpecctraSession",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Specctra Session..." ), _( "Import routed Specctra session (*.ses) file" ),
|
|
|
|
import_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::exportSpecctraDSN( "pcbnew.EditorControl.exportSpecctraDSN",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Specctra DSN..." ), _( "Export Specctra DSN routing info" ),
|
|
|
|
export_dsn_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::generateGerbers( "pcbnew.EditorControl.generateGerbers",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-17 09:41:38 +00:00
|
|
|
_( "Gerbers (.gbr)..." ), _( "Generate Gerbers for fabrication" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
post_compo_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::generateDrillFiles( "pcbnew.EditorControl.generateDrillFiles",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-17 09:41:38 +00:00
|
|
|
_( "Drill Files (.drl)..." ), _( "Generate Excellon drill file(s)" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
post_drill_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::generatePosFile( "pcbnew.EditorControl.generatePosFile",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-17 09:41:38 +00:00
|
|
|
_( "Footprint Positions (.pos)..." ),
|
2019-06-17 00:34:21 +00:00
|
|
|
_( "Generate footprint position file for pick and place" ),
|
|
|
|
post_compo_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::generateReportFile( "pcbnew.EditorControl.generateReportFile",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-17 09:41:38 +00:00
|
|
|
_( "Footprint Report (.rpt)..." ),
|
2019-06-17 00:34:21 +00:00
|
|
|
_( "Create report of all footprints from current board" ),
|
|
|
|
tools_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::generateD356File( "pcbnew.EditorControl.generateD356File",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "IPC-D-356 Netlist File..." ), _( "Generate IPC-D-356 netlist file" ),
|
|
|
|
netlist_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::generateBOM( "pcbnew.EditorControl.generateBOM",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-17 09:41:38 +00:00
|
|
|
_( "BOM..." ), _( "Create bill of materials from current schematic" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
bom_xpm );
|
|
|
|
|
|
|
|
// Track & via size control
|
|
|
|
TOOL_ACTION PCB_ACTIONS::trackWidthInc( "pcbnew.EditorControl.trackWidthInc",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'W', LEGACY_HK_NAME( "Switch Track Width To Next" ),
|
2019-07-06 19:46:47 +00:00
|
|
|
_( "Switch Track Width to Next" ), "" );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::trackWidthDec( "pcbnew.EditorControl.trackWidthDec",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + 'W', LEGACY_HK_NAME( "Switch Track Width To Previous" ),
|
2019-07-06 19:46:47 +00:00
|
|
|
_( "Switch Track Width to Previous" ), "" );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::viaSizeInc( "pcbnew.EditorControl.viaSizeInc",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'\'', LEGACY_HK_NAME( "Increase Via Size" ),
|
2019-07-06 19:46:47 +00:00
|
|
|
_( "Increase Via Size" ), "" );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::viaSizeDec( "pcbnew.EditorControl.viaSizeDec",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'\\', LEGACY_HK_NAME( "Decrease Via Size" ),
|
2019-07-06 19:46:47 +00:00
|
|
|
_( "Decrease Via Size" ), "" );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::trackViaSizeChanged( "pcbnew.EditorControl.trackViaSizeChanged",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
"", "",
|
|
|
|
nullptr, AF_NOTIFY );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneMerge( "pcbnew.EditorControl.zoneMerge",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Merge Zones" ), _( "Merge zones" ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneDuplicate( "pcbnew.EditorControl.zoneDuplicate",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Duplicate Zone onto Layer..." ), _( "Duplicate zone outline onto a different layer" ),
|
|
|
|
zone_duplicate_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::placeTarget( "pcbnew.EditorControl.placeTarget",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Layer Alignment Target" ), _( "Add a layer alignment target" ),
|
|
|
|
add_pcb_target_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::placeModule( "pcbnew.EditorControl.placeModule",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'O', LEGACY_HK_NAME( "Add Footprint" ),
|
|
|
|
_( "Add Footprint" ), _( "Add a footprint" ),
|
|
|
|
module_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drillOrigin( "pcbnew.EditorControl.drillOrigin",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Drill and Place Offset" ), _( "Place origin point for drill and place files" ),
|
2019-07-26 15:28:59 +00:00
|
|
|
pcb_offset_xpm, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::toggleLock( "pcbnew.EditorControl.toggleLock",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'L', LEGACY_HK_NAME( "Lock/Unlock Footprint" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Toggle Lock" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
lock_unlock_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::lock( "pcbnew.EditorControl.lock",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Lock" ), "",
|
|
|
|
locked_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::unlock( "pcbnew.EditorControl.unlock",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Unlock" ), "",
|
|
|
|
unlocked_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::appendBoard( "pcbnew.EditorControl.appendBoard",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Append Board..." ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
add_board_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::highlightNet( "pcbnew.EditorControl.highlightNet",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::toggleLastNetHighlight( "pcbnew.EditorControl.toggleLastNetHighlight",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Toggle Last Net Highlight" ), _( "Toggle between last two highlighted nets" ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::clearHighlight( "pcbnew.EditorControl.clearHighlight",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Clear Net Highlighting" ), "" );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::highlightNetTool( "pcbnew.EditorControl.highlightNetTool",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Highlight Nets" ), _( "Highlight all copper items of a net" ),
|
2019-07-26 15:28:59 +00:00
|
|
|
net_highlight_xpm, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::highlightNetSelection( "pcbnew.EditorControl.highlightNetSelection",
|
|
|
|
AS_GLOBAL,
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2019-06-17 00:34:21 +00:00
|
|
|
'`', LEGACY_HK_NAME( "Toggle Highlight of Selected Net (Modern Toolset only)" ),
|
|
|
|
_( "Highlight Net" ), _( "Highlight all copper items of a net" ),
|
|
|
|
net_highlight_xpm );
|
|
|
|
|
2019-07-17 20:21:22 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::highlightItem( "pcbnew.EditorControl.highlightItem",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
2019-07-08 23:43:08 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::showEeschema( "pcbnew.EditorControl.showEeschema",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Switch to Schematic Editor" ), _( "Open schematic in Eeschema" ),
|
|
|
|
eeschema_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// PCBNEW_CONTROL
|
|
|
|
//
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::localRatsnestTool( "pcbnew.Control.localRatsnestTool",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-21 11:10:19 +00:00
|
|
|
_( "Highlight Ratsnest" ), _( "Show ratsnest of selected item(s)" ),
|
2019-07-26 15:28:59 +00:00
|
|
|
tool_ratsnest_xpm, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::hideDynamicRatsnest( "pcbnew.Control.hideDynamicRatsnest",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::updateLocalRatsnest( "pcbnew.Control.updateLocalRatsnest",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::listNets( "pcbnew.Control.listNets",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-04-22 00:24:27 +00:00
|
|
|
_( "Net Inspector" ), _( "Show the net inspector" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
list_nets_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::showPythonConsole( "pcbnew.Control.showPythonConsole",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Scripting Console" ), _( "Show the Python scripting console" ),
|
|
|
|
py_script_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::showLayersManager( "pcbnew.Control.showLayersManager",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Show Layers Manager" ), _( "Show/hide the layers manager" ),
|
|
|
|
layers_manager_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::showMicrowaveToolbar( "pcbnew.Control.showMicrowaveToolbar",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Show Microwave Toolbar" ), _( "Show/hide microwave toolbar\n(Experimental feature)" ),
|
|
|
|
mw_toolbar_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::flipBoard( "pcbnew.Control.flipBoard",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Flip Board View" ), _( "Flip (mirror) the board view" ),
|
|
|
|
flip_board_xpm );
|
|
|
|
|
|
|
|
// Display modes
|
|
|
|
TOOL_ACTION PCB_ACTIONS::showRatsnest( "pcbnew.Control.showRatsnest",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Show Ratsnest" ), _( "Show board ratsnest" ),
|
|
|
|
general_ratsnest_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::ratsnestLineMode( "pcbnew.Control.ratsnestLineMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Curved Ratsnest Lines" ), _( "Show ratsnest with curved lines" ),
|
|
|
|
curved_ratsnest_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::trackDisplayMode( "pcbnew.Control.trackDisplayMode",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'K', LEGACY_HK_NAME( "Track Display Mode" ),
|
|
|
|
_( "Sketch Tracks" ), _( "Show tracks in outline mode" ),
|
|
|
|
showtrack_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::padDisplayMode( "pcbnew.Control.padDisplayMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Sketch Pads" ), _( "Show pads in outline mode" ),
|
|
|
|
pad_sketch_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::viaDisplayMode( "pcbnew.Control.viaDisplayMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Sketch Vias" ), _( "Show vias in outline mode" ),
|
|
|
|
via_sketch_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::graphicDisplayMode( "pcbnew.Control.graphicDisplayMode",
|
2019-12-15 12:56:26 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Sketch Board Graphic Items" ), _( "Show board graphic items in outline mode" ),
|
|
|
|
show_graphics_mode_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::moduleEdgeOutlines( "pcbnew.Control.graphicOutlines",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-12-15 12:56:26 +00:00
|
|
|
_( "Sketch Footprint Graphic Items" ), _( "Show footprint graphic items in outline mode" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
show_mod_edge_xpm );
|
|
|
|
|
2019-12-23 17:11:45 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::moduleTextOutlines( "pcbnew.Control.fpTextOutlines",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Line Mode Footprint Text Items" ), _( "Show footprint texts in line mode" ),
|
|
|
|
text_sketch_xpm );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneDisplayEnable( "pcbnew.Control.zoneDisplayEnable",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Fill Zones" ), _( "Show filled areas of zones" ),
|
2019-06-21 10:26:59 +00:00
|
|
|
show_zone_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneDisplayDisable( "pcbnew.Control.zoneDisplayDisable",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Wireframe Zones" ), _( "Show only zone boundaries" ),
|
|
|
|
show_zone_disable_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneDisplayOutlines( "pcbnew.Control.zoneDisplayOutlines",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Sketch Zones" ), _( "Show solid areas of zones in outline mode" ),
|
2019-06-21 10:26:59 +00:00
|
|
|
show_zone_outline_only_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneDisplayToggle( "pcbnew.Control.zoneDisplayToggle",
|
|
|
|
AS_GLOBAL,
|
2019-07-05 17:31:01 +00:00
|
|
|
'A', "",
|
2019-06-21 10:26:59 +00:00
|
|
|
_( "Toggle Zone Display" ),
|
|
|
|
_( "Cycle between showing filled zones, wireframed zones and sketched zones" ),
|
|
|
|
show_zone_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Layer control
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerTop( "pcbnew.Control.layerTop",
|
|
|
|
AS_GLOBAL,
|
|
|
|
WXK_PAGEUP, LEGACY_HK_NAME( "Switch to Component (F.Cu) layer" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Component (F.Cu) layer" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
nullptr, AF_NONE, (void*) F_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner1( "pcbnew.Control.layerInner1",
|
|
|
|
AS_GLOBAL,
|
|
|
|
WXK_F5, LEGACY_HK_NAME( "Switch to Inner layer 1" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 1" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
nullptr, AF_NONE, (void*) In1_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner2( "pcbnew.Control.layerInner2",
|
|
|
|
AS_GLOBAL,
|
|
|
|
WXK_F6, LEGACY_HK_NAME( "Switch to Inner layer 2" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 2" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
nullptr, AF_NONE, (void*) In2_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner3( "pcbnew.Control.layerInner3",
|
|
|
|
AS_GLOBAL,
|
|
|
|
WXK_F7, LEGACY_HK_NAME( "Switch to Inner layer 3" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 3" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
nullptr, AF_NONE, (void*) In3_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner4( "pcbnew.Control.layerInner4",
|
|
|
|
AS_GLOBAL,
|
|
|
|
WXK_F8, LEGACY_HK_NAME( "Switch to Inner layer 4" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 4" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
nullptr, AF_NONE, (void*) In4_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner5( "pcbnew.Control.layerInner5",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + WXK_F5, LEGACY_HK_NAME( "Switch to Inner layer 5" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 5" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
nullptr, AF_NONE, (void*) In5_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner6( "pcbnew.Control.layerInner6",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + WXK_F6, LEGACY_HK_NAME( "Switch to Inner layer 6" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 6" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
nullptr, AF_NONE, (void*) In6_Cu );
|
|
|
|
|
2019-06-21 10:43:39 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner7( "pcbnew.Control.layerInner7",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 7" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In7_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner8( "pcbnew.Control.layerInner8",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 8" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In8_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner9( "pcbnew.Control.layerInner9",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 9" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In9_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner10( "pcbnew.Control.layerInner10",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 10" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In10_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner11( "pcbnew.Control.layerInner11",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 11" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In11_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner12( "pcbnew.Control.layerInner12",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 12" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In12_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner13( "pcbnew.Control.layerInner13",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 13" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In13_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner14( "pcbnew.Control.layerInner14",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 14" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In14_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner15( "pcbnew.Control.layerInner15",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 15" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In15_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner16( "pcbnew.Control.layerInner16",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 16" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In16_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner17( "pcbnew.Control.layerInner17",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 17" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In17_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner18( "pcbnew.Control.layerInner18",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 18" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In18_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner19( "pcbnew.Control.layerInner19",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 19" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In19_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner20( "pcbnew.Control.layerInner20",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 20" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In20_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner21( "pcbnew.Control.layerInner21",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 21" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In21_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner22( "pcbnew.Control.layerInner22",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 22" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In22_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner23( "pcbnew.Control.layerInner23",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 23" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In23_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner24( "pcbnew.Control.layerInner24",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 24" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In24_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner25( "pcbnew.Control.layerInner25",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 25" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In25_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner26( "pcbnew.Control.layerInner26",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 26" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In26_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner27( "pcbnew.Control.layerInner27",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 27" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In27_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner28( "pcbnew.Control.layerInner28",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 28" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In28_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner29( "pcbnew.Control.layerInner29",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 29" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In29_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner30( "pcbnew.Control.layerInner30",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Inner layer 30" ), "",
|
2019-06-21 10:43:39 +00:00
|
|
|
nullptr, AF_NONE, (void*) In30_Cu );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::layerBottom( "pcbnew.Control.layerBottom",
|
|
|
|
AS_GLOBAL,
|
|
|
|
WXK_PAGEDOWN, LEGACY_HK_NAME( "Switch to Copper (B.Cu) layer" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Copper (B.Cu) layer" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
nullptr, AF_NONE, (void*) B_Cu );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerNext( "pcbnew.Control.layerNext",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'+', LEGACY_HK_NAME( "Switch to Next Layer" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Next Layer" ), "" );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerPrev( "pcbnew.Control.layerPrev",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'-', LEGACY_HK_NAME( "Switch to Previous Layer" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Switch to Previous Layer" ), "" );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerToggle( "pcbnew.Control.layerToggle",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'V', LEGACY_HK_NAME( "Add Through Via" ),
|
2019-07-23 09:53:55 +00:00
|
|
|
_( "Add Through Via" ), "" );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerAlphaInc( "pcbnew.Control.layerAlphaInc",
|
|
|
|
AS_GLOBAL,
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2019-06-17 00:34:21 +00:00
|
|
|
'}', LEGACY_HK_NAME( "Increment Layer Transparency (Modern Toolset only)" ),
|
|
|
|
_( "Increase Layer Opacity" ), _( "Make the current layer more transparent" ),
|
|
|
|
contrast_mode_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerAlphaDec( "pcbnew.Control.layerAlphaDec",
|
|
|
|
AS_GLOBAL,
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2019-06-17 00:34:21 +00:00
|
|
|
'{', LEGACY_HK_NAME( "Decrement Layer Transparency (Modern Toolset only)" ),
|
|
|
|
_( "Decrease Layer Opacity" ), _( "Make the current layer more transparent" ),
|
|
|
|
contrast_mode_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerChanged( "pcbnew.Control.layerChanged",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
"", "",
|
|
|
|
nullptr, AF_NOTIFY );
|
|
|
|
|
2019-07-16 19:34:07 +00:00
|
|
|
//Show board statistics tool
|
|
|
|
TOOL_ACTION PCB_ACTIONS::boardStatistics( "pcbnew.InspectionTool.ShowStatisticsDialog", AS_GLOBAL,
|
|
|
|
0, LEGACY_HK_NAME( "Show Board Statistics" ), _( "Show Board Statistics" ),
|
|
|
|
_( "Shows board statistics" ), pcbnew_xpm );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
// PLACEMENT_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::alignTop( "pcbnew.AlignAndDistribute.alignTop",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Align to Top" ),
|
|
|
|
_( "Aligns selected items to the top edge" ), align_items_top_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::alignBottom( "pcbnew.AlignAndDistribute.alignBottom",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Align to Bottom" ),
|
|
|
|
_( "Aligns selected items to the bottom edge" ), align_items_bottom_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::alignLeft( "pcbnew.AlignAndDistribute.alignLeft",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Align to Left" ),
|
|
|
|
_( "Aligns selected items to the left edge" ), align_items_left_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::alignRight( "pcbnew.AlignAndDistribute.alignRight",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Align to Right" ),
|
|
|
|
_( "Aligns selected items to the right edge" ), align_items_right_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::alignCenterX( "pcbnew.AlignAndDistribute.alignCenterX",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Align to Middle" ),
|
|
|
|
_( "Aligns selected items to the vertical center" ), align_items_middle_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::alignCenterY( "pcbnew.AlignAndDistribute.alignCenterY",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Align to Center" ),
|
|
|
|
_( "Aligns selected items to the horizontal center" ), align_items_center_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::distributeHorizontally( "pcbnew.AlignAndDistribute.distributeHorizontally",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Distribute Horizontally" ),
|
|
|
|
_( "Distributes selected items along the horizontal axis" ), distribute_horizontal_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::distributeVertically( "pcbnew.AlignAndDistribute.distributeVertically",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Distribute Vertically" ),
|
|
|
|
_( "Distributes selected items along the vertical axis" ), distribute_vertical_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// POINT_EDITOR
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pointEditorAddCorner( "pcbnew.PointEditor.addCorner",
|
|
|
|
AS_GLOBAL,
|
|
|
|
WXK_INSERT, "",
|
|
|
|
_( "Create Corner" ), _( "Create a corner" ), add_corner_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pointEditorRemoveCorner( "pcbnew.PointEditor.removeCorner",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Remove Corner" ), _( "Remove corner" ), delete_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// POSITION_RELATIVE_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::positionRelative( "pcbnew.PositionRelative.positionRelative",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + 'P', LEGACY_HK_NAME( "Position Item Relative" ),
|
|
|
|
_( "Position Relative To..." ),
|
|
|
|
_( "Positions the selected item(s) by an exact amount relative to another" ),
|
|
|
|
move_relative_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectpositionRelativeItem( "pcbnew.PositionRelative.selectpositionRelativeItem",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
|
|
|
|
// SELECTION_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectionActivate( "pcbnew.InteractiveSelection",
|
|
|
|
AS_GLOBAL, 0, "", "", "", nullptr, AF_ACTIVATE ); // No description, not shown anywhere
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectionCursor( "pcbnew.InteractiveSelection.Cursor",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectItem( "pcbnew.InteractiveSelection.SelectItem",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectItems( "pcbnew.InteractiveSelection.SelectItems",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::unselectItem( "pcbnew.InteractiveSelection.UnselectItem",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::unselectItems( "pcbnew.InteractiveSelection.UnselectItems",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectionClear( "pcbnew.InteractiveSelection.Clear",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectionMenu( "pcbnew.InteractiveSelection.SelectionMenu",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectConnection( "pcbnew.InteractiveSelection.SelectConnection",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'U', LEGACY_HK_NAME( "Select Single Track" ),
|
2019-11-22 19:29:07 +00:00
|
|
|
_( "Select/Expand Connection" ),
|
|
|
|
_( "Selects a connection or expands an existing selection to junctions, pads, or entire connections" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
add_tracks_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectNet( "pcbnew.InteractiveSelection.SelectNet",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Select All Tracks in Net" ),
|
|
|
|
_( "Selects all tracks & vias belonging to the same net." ),
|
|
|
|
mode_track_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectOnSheetFromEeschema( "pcbnew.InteractiveSelection.SelectOnSheet",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Sheet" ),
|
|
|
|
_( "Selects all modules and tracks in the schematic sheet" ),
|
|
|
|
select_same_sheet_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectSameSheet( "pcbnew.InteractiveSelection.SelectSameSheet",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Items in Same Hierarchical Sheet" ),
|
|
|
|
_( "Selects all modules and tracks in the same schematic sheet" ),
|
|
|
|
select_same_sheet_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::filterSelection( "pcbnew.InteractiveSelection.FilterSelection",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Filter Selection..." ), _( "Filter the types of items in the selection" ),
|
|
|
|
options_generic_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// ZONE_FILLER_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneFill( "pcbnew.ZoneFiller.zoneFill",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Fill" ), _( "Fill zone(s)" ),
|
|
|
|
fill_zone_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneFillAll( "pcbnew.ZoneFiller.zoneFillAll",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'B', LEGACY_HK_NAME( "Fill or Refill All Zones" ),
|
|
|
|
_( "Fill All" ), _( "Fill all zones" ),
|
|
|
|
fill_zone_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneUnfill( "pcbnew.ZoneFiller.zoneUnfill",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Unfill" ), _( "Unfill zone(s)" ),
|
|
|
|
zone_unfill_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneUnfillAll( "pcbnew.ZoneFiller.zoneUnfillAll",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'B', LEGACY_HK_NAME( "Remove Filled Areas in All Zones" ),
|
|
|
|
_( "Unfill All" ), _( "Unfill all zones" ),
|
|
|
|
zone_unfill_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// AUTOPLACER_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::autoplaceSelectedComponents( "pcbnew.Autoplacer.autoplaceSelected",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Place Selected Footprints" ),
|
|
|
|
_( "Performs automatic placement of selected components" ),
|
|
|
|
module_check_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::autoplaceOffboardComponents( "pcbnew.Autoplacer.autoplaceOffboard",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Place Off-Board Footprints" ),
|
|
|
|
_( "Performs automatic placement of components outside board area" ),
|
|
|
|
module_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// ROUTER_TOOL
|
|
|
|
//
|
2019-06-24 15:27:05 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::routeSingleTrack( "pcbnew.InteractiveRouter.SingleTrack",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
'X', LEGACY_HK_NAME( "Add New Track" ),
|
2019-06-24 15:27:05 +00:00
|
|
|
_( "Route Single Track" ), _( "Run push & shove router (single tracks)" ),
|
|
|
|
add_tracks_xpm, AF_ACTIVATE, (void*) PNS::PNS_MODE_ROUTE_SINGLE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2019-06-24 15:27:05 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::routeDiffPair( "pcbnew.InteractiveRouter.DiffPair",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2019-06-17 00:34:21 +00:00
|
|
|
'6', LEGACY_HK_NAME( "Route Differential Pair (Modern Toolset only)" ),
|
2019-06-24 15:27:05 +00:00
|
|
|
_( "Route Differential Pair" ), _( "Run push & shove router (differential pairs)" ),
|
|
|
|
ps_diff_pair_xpm, AF_ACTIVATE, (void*) PNS::PNS_MODE_ROUTE_DIFF_PAIR );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerSettingsDialog( "pcbnew.InteractiveRouter.SettingsDialog",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + MD_SHIFT + ',', LEGACY_HK_NAME( "Routing Options" ),
|
|
|
|
_( "Interactive Router Settings..." ), _( "Open Interactive Router settings" ),
|
|
|
|
tools_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerDiffPairDialog( "pcbnew.InteractiveRouter.DiffPairDialog",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Differential Pair Dimensions..." ), _( "Open Differential Pair Dimension settings" ),
|
|
|
|
ps_diff_pair_gap_xpm );
|
|
|
|
|
2020-04-19 14:39:16 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::routerHighlightMode( "pcbnew.InteractiveRouter.HighlightMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Router Highlight Mode" ), _( "Switch router to highlight mode" ),
|
|
|
|
nullptr, AF_NONE, (void*) PNS::RM_MarkObstacles );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerShoveMode( "pcbnew.InteractiveRouter.ShoveMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Router Shove Mode" ), _( "Switch router to shove mode" ),
|
|
|
|
nullptr, AF_NONE, (void*) PNS::RM_Shove );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerWalkaroundMode( "pcbnew.InteractiveRouter.WalkaroundMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Router Walkaround Mode" ), _( "Switch router to walkaround mode" ),
|
|
|
|
nullptr, AF_NONE, (void*) PNS::RM_Walkaround );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::selectLayerPair( "pcbnew.InteractiveRouter.SelectLayerPair",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Set Layer Pair..." ), _( "Change active layer pair for routing" ),
|
|
|
|
select_layer_pair_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerTuneSingleTrace( "pcbnew.LengthTuner.TuneSingleTrack",
|
|
|
|
AS_GLOBAL,
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
|
|
|
'7', LEGACY_HK_NAME( "Tune Single Track (Modern Toolset only)" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
_( "Tune length of a single track" ), "",
|
2019-06-24 15:27:05 +00:00
|
|
|
ps_tune_length_xpm, AF_ACTIVATE, (void*) PNS::PNS_MODE_TUNE_SINGLE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerTuneDiffPair( "pcbnew.LengthTuner.TuneDiffPair",
|
|
|
|
AS_GLOBAL,
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
|
|
|
'8', LEGACY_HK_NAME( "Tune Differential Pair Length (Modern Toolset only)" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
_( "Tune length of a differential pair" ), "",
|
2019-07-07 16:12:04 +00:00
|
|
|
ps_diff_pair_tune_length_xpm, AF_ACTIVATE, (void*) PNS::PNS_MODE_TUNE_DIFF_PAIR );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerTuneDiffPairSkew( "pcbnew.LengthTuner.TuneDiffPairSkew",
|
|
|
|
AS_GLOBAL,
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
|
|
|
'9', LEGACY_HK_NAME( "Tune Differential Pair Skew (Modern Toolset only)" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
_( "Tune skew of a differential pair" ), "",
|
2019-07-07 16:12:04 +00:00
|
|
|
ps_diff_pair_tune_phase_xpm, AF_ACTIVATE, (void*) PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerInlineDrag( "pcbnew.InteractiveRouter.InlineDrag",
|
|
|
|
AS_CONTEXT, 0, "",
|
|
|
|
_( "Drag Track/Via" ), _( "Drags tracks and vias without breaking connections" ),
|
|
|
|
drag_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::inlineBreakTrack( "pcbnew.InteractiveRouter.InlineBreakTrack",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Break Track" ),
|
|
|
|
_( "Splits the track segment into two segments connected at the cursor position." ),
|
|
|
|
break_line_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::breakTrack( "pcbnew.InteractiveRouter.BreakTrack",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Break Track" ),
|
|
|
|
_( "Splits the track segment into two segments connected at the cursor position." ),
|
|
|
|
break_line_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drag45Degree( "pcbnew.InteractiveRouter.Drag45Degree",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'D', LEGACY_HK_NAME( "Drag Track Keep Slope" ),
|
|
|
|
_( "Drag (45 degree mode)" ),
|
|
|
|
_( "Drags the track segment while keeping connected tracks at 45 degrees." ),
|
|
|
|
drag_segment_withslope_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::dragFreeAngle( "pcbnew.InteractiveRouter.DragFreeAngle",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'G', LEGACY_HK_NAME( "Drag Item" ),
|
|
|
|
_( "Drag (free angle)" ),
|
|
|
|
_( "Drags the nearest joint in the track without restricting the track angle." ),
|
|
|
|
move_xpm );
|