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
|
2022-01-16 20:29:03 +00:00
|
|
|
* Copyright (C) 2016-2022 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"
|
2022-09-28 01:15:19 +00:00
|
|
|
#include "tool/tool_action.h"
|
2021-02-05 23:43:32 +00:00
|
|
|
#include "tool/tool_event.h"
|
2014-02-17 17:21:00 +00:00
|
|
|
#include <pcbnew_id.h>
|
2019-06-17 00:34:21 +00:00
|
|
|
#include <bitmaps.h>
|
2021-07-29 09:47:43 +00:00
|
|
|
#include <layer_ids.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>
|
2023-07-06 15:22:24 +00:00
|
|
|
#include <tools/pcb_selection_tool.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
|
|
|
|
2023-07-13 12:15:19 +00:00
|
|
|
// Forward declarations for types needed in the parameters
|
|
|
|
class PCB_BITMAP;
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2020-08-29 14:43:05 +00:00
|
|
|
// CONVERT_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::convertToPoly( "pcbnew.Convert.convertToPoly",
|
2021-02-18 18:33:30 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2022-11-11 17:52:36 +00:00
|
|
|
_( "Create Polygon from Selection..." ), _( "Creates a graphic polygon from the selection" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_graphical_polygon );
|
2020-08-29 14:43:05 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::convertToZone( "pcbnew.Convert.convertToZone",
|
2021-02-18 18:33:30 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2022-11-11 17:52:36 +00:00
|
|
|
_( "Create Zone from Selection..." ), _( "Creates a copper zone from the selection" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_zone );
|
2020-08-29 14:43:05 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::convertToKeepout( "pcbnew.Convert.convertToKeepout",
|
2021-02-18 18:33:30 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2022-11-11 17:52:36 +00:00
|
|
|
_( "Create Rule Area from Selection..." ), _( "Creates a rule area from the selection" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_keepout_area );
|
2020-08-29 14:43:05 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::convertToLines( "pcbnew.Convert.convertToLines",
|
2021-02-18 18:33:30 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-07-19 22:45:33 +00:00
|
|
|
_( "Create Lines from Selection" ), _( "Creates graphic lines from the selection" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_line );
|
2020-08-29 14:43:05 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::convertToArc( "pcbnew.Convert.convertToArc",
|
2021-02-18 18:33:30 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-07-19 22:45:33 +00:00
|
|
|
_( "Create Arc from Selection" ), _( "Creates an arc from the selected line segment" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_arc );
|
2020-08-29 14:43:05 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::convertToTracks( "pcbnew.Convert.convertToTracks",
|
2021-02-18 18:33:30 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-07-19 22:45:33 +00:00
|
|
|
_( "Create Tracks from Selection" ), _( "Creates tracks from the selected graphic lines" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_tracks );
|
2020-08-29 14:43:05 +00:00
|
|
|
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
// 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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_graphical_segments, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drawPolygon( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveDrawing.graphicPolygon" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + MD_CTRL + 'P' )
|
|
|
|
.LegacyHotkeyName( "Draw Graphic Polygon" )
|
|
|
|
.MenuText( _( "Draw Graphic Polygon" ) )
|
|
|
|
.Tooltip( _( "Draw a graphic polygon" ) )
|
|
|
|
.Icon( BITMAPS::add_graphical_polygon )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( ZONE_MODE::GRAPHIC_POLYGON ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2020-06-15 19:50:20 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drawRectangle( "pcbnew.InteractiveDrawing.rectangle",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Draw Rectangle" ), _( "Draw a rectangle" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_rectangle, AF_ACTIVATE );
|
2020-06-15 19:50:20 +00:00
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_circle, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_arc, AF_ACTIVATE );
|
2021-03-13 20:19:46 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::placeCharacteristics( "pcbnew.InteractiveDrawing.placeCharacteristics",
|
2021-03-14 17:44:31 +00:00
|
|
|
AS_GLOBAL, 0, LEGACY_HK_NAME( "Add Board Characteristics" ),
|
|
|
|
_( "Add Board Characteristics" ),
|
|
|
|
_( "Add a board characteristics table on a graphic layer" ),
|
2021-09-01 21:05:17 +00:00
|
|
|
BITMAPS::INVALID_BITMAP, AF_ACTIVATE );
|
2021-03-13 20:19:46 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::placeStackup( "pcbnew.InteractiveDrawing.placeStackup", AS_GLOBAL, 0,
|
2021-03-14 17:44:31 +00:00
|
|
|
LEGACY_HK_NAME( "Add Stackup Table" ),
|
|
|
|
_( "Add Stackup Table" ),
|
|
|
|
_( "Add a board stackup table on a graphic layer" ),
|
2021-09-01 21:05:17 +00:00
|
|
|
BITMAPS::INVALID_BITMAP, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2023-07-13 12:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::placeImage( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveDrawing.placeImage" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Add Image" ) )
|
|
|
|
.Tooltip( _( "Add bitmap image" ) )
|
|
|
|
.Icon( BITMAPS::image )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter<PCB_BITMAP*>( nullptr ) );
|
2022-02-08 19:29:54 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::text, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-01-30 10:52:52 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drawTextBox( "pcbnew.InteractiveDrawing.textbox",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Text Box" ), _( "Add a wrapped text item" ),
|
|
|
|
BITMAPS::add_textbox, AF_ACTIVATE );
|
|
|
|
|
2020-09-12 20:09:40 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drawAlignedDimension( "pcbnew.InteractiveDrawing.alignedDimension",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'H', LEGACY_HK_NAME( "Add Dimension" ),
|
2020-09-12 20:09:40 +00:00
|
|
|
_( "Add Aligned Dimension" ), _( "Add an aligned linear dimension" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_aligned_dimension, AF_ACTIVATE );
|
2020-09-12 20:09:40 +00:00
|
|
|
|
2020-09-17 00:54:58 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drawCenterDimension( "pcbnew.InteractiveDrawing.centerDimension",
|
2021-02-18 18:33:30 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Center Dimension" ), _( "Add a center dimension" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_center_dimension, AF_ACTIVATE );
|
2020-09-17 00:54:58 +00:00
|
|
|
|
2021-07-13 18:46:33 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drawRadialDimension( "pcbnew.InteractiveDrawing.radialDimension",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Radial Dimension" ), _( "Add a radial dimension" ),
|
|
|
|
BITMAPS::add_radial_dimension, AF_ACTIVATE );
|
|
|
|
|
2020-09-22 02:32:40 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drawOrthogonalDimension( "pcbnew.InteractiveDrawing.orthogonalDimension",
|
2021-02-18 18:33:30 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Orthogonal Dimension" ), _( "Add an orthogonal dimension" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_orthogonal_dimension, AF_ACTIVATE );
|
2020-09-22 02:32:40 +00:00
|
|
|
|
2020-09-12 20:09:40 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drawLeader( "pcbnew.InteractiveDrawing.leader",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Leader" ), _( "Add a leader dimension" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_leader, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drawZone( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveDrawing.zone" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2019-06-17 00:34:21 +00:00
|
|
|
#ifdef __WXOSX_MAC__
|
2022-09-28 01:15:19 +00:00
|
|
|
.DefaultHotkey( MD_ALT + 'Z' )
|
2019-06-17 00:34:21 +00:00
|
|
|
#else
|
2022-09-28 01:15:19 +00:00
|
|
|
.DefaultHotkey( MD_SHIFT + MD_CTRL + 'Z' )
|
2019-06-17 00:34:21 +00:00
|
|
|
#endif
|
2022-09-28 01:15:19 +00:00
|
|
|
.LegacyHotkeyName( "Add Filled Zone" )
|
|
|
|
.MenuText( _( "Add Filled Zone" ) )
|
|
|
|
.Tooltip( _( "Add a filled zone" ) )
|
|
|
|
.Icon( BITMAPS::add_zone )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( 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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_via, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::drawRuleArea( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveDrawing.ruleArea" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + MD_CTRL + 'K' )
|
|
|
|
.LegacyHotkeyName( "Add Keepout Area" )
|
|
|
|
.MenuText( _( "Add Rule Area" ) )
|
|
|
|
.Tooltip( _( "Add a rule area (keepout)" ) )
|
|
|
|
.Icon( BITMAPS::add_keepout_area )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( ZONE_MODE::ADD ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawZoneCutout( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveDrawing.zoneCutout" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + 'C' )
|
|
|
|
.LegacyHotkeyName( "Add a Zone Cutout" )
|
|
|
|
.MenuText( _( "Add a Zone Cutout" ) )
|
|
|
|
.Tooltip( _( "Add a cutout area of an existing zone" ) )
|
|
|
|
.Icon( BITMAPS::add_zone_cutout )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( ZONE_MODE::CUTOUT ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drawSimilarZone( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveDrawing.similarZone" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + MD_CTRL + '.' )
|
|
|
|
.LegacyHotkeyName( "Add a Similar Zone" )
|
|
|
|
.MenuText( _( "Add a Similar Zone" ) )
|
|
|
|
.Tooltip( _( "Add a zone with the same settings as an existing zone" ) )
|
|
|
|
.Icon( BITMAPS::add_zone )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( 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" ),
|
2021-03-27 19:04:16 +00:00
|
|
|
_( "Import Graphics..." ), _( "Import 2D drawing file" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::import_vector, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::setAnchor( "pcbnew.InteractiveDrawing.setAnchor",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'N', LEGACY_HK_NAME( "Place the Footprint Anchor" ),
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Place the Footprint Anchor" ),
|
|
|
|
_( "Set the coordinate origin point (anchor) of the footprint" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::anchor, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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" ) );
|
|
|
|
|
2023-08-17 13:25:26 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::magneticSnapActiveLayer( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.magneticSnapActiveLayer" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Snap to objects on the active layer only" ) )
|
|
|
|
.Tooltip( _( "Enables snapping to objects on the active layer only" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::magneticSnapAllLayers( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.magneticSnapAllLayers" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Snap to objects on all layers" ) )
|
|
|
|
.Tooltip( _( "Enables snapping to objects on all visible layers" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::magneticSnapToggle( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.magneticSnapToggle" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + 'S' )
|
|
|
|
.MenuText( _( "Toggle snapping between active and all layers" ) )
|
|
|
|
.Tooltip( _( "Toggles between snapping on all visible layers and only the active area" ) ) );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::deleteLastPoint( "pcbnew.InteractiveDrawing.deleteLastPoint",
|
|
|
|
AS_CONTEXT,
|
|
|
|
WXK_BACK, "",
|
|
|
|
_( "Delete Last Point" ), _( "Delete the last point added to the current item" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::undo );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::checked_ok );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
// DRC
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::runDRC( "pcbnew.DRCTool.runDRC",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Design Rules Checker" ), _( "Show the design rules checker window" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::erc );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
// EDIT_TOOL
|
|
|
|
//
|
2020-06-27 11:57:40 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::editFpInFpEditor( "pcbnew.EditorControl.EditFpInFpEditor",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'E', LEGACY_HK_NAME( "Edit with Footprint Editor" ),
|
|
|
|
_( "Open in Footprint Editor" ),
|
|
|
|
_( "Opens the selected footprint in the Footprint Editor" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::module_editor );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2021-10-25 16:23:22 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::editLibFpInFpEditor( "pcbnew.EditorControl.EditLibFpInFpEditor",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + MD_SHIFT + 'E', "",
|
|
|
|
_( "Edit Library Footprint..." ),
|
|
|
|
_( "Opens the selected footprint in the Footprint Editor" ),
|
|
|
|
BITMAPS::module_editor );
|
|
|
|
|
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"),
|
2021-05-08 19:08:18 +00:00
|
|
|
BITMAPS::move, AF_ACTIVATE );
|
2019-08-13 12:29:18 +00:00
|
|
|
|
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)" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::move, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-15 14:19:47 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::moveIndividually( "pcbnew.InteractiveMove.moveIndividually",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'M', "",
|
|
|
|
_( "Move Individually" ), _( "Moves the selected items one-by-one" ),
|
|
|
|
BITMAPS::move, AF_ACTIVATE );
|
|
|
|
|
2020-07-05 21:36:12 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::moveWithReference( "pcbnew.InteractiveMove.moveWithReference",
|
2021-02-18 18:33:30 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Move with Reference" ),
|
2020-07-05 21:36:12 +00:00
|
|
|
_( "Moves the selected item(s) with a specified starting point" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::move, AF_ACTIVATE );
|
2020-07-05 21:36:12 +00:00
|
|
|
|
2020-10-25 21:09:32 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::copyWithReference( "pcbnew.InteractiveMove.copyWithReference",
|
2021-02-18 18:33:30 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Copy with Reference" ),
|
2020-10-25 21:09:32 +00:00
|
|
|
_( "Copy selected item(s) to clipboard with a specified starting point" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::copy, AF_ACTIVATE );
|
2020-10-25 21:09:32 +00:00
|
|
|
|
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" ),
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Duplicate and Increment" ),
|
|
|
|
_( "Duplicates the selected item(s), incrementing pad numbers" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::duplicate );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::moveExact( "pcbnew.InteractiveEdit.moveExact",
|
|
|
|
AS_GLOBAL,
|
2021-07-27 17:19:45 +00:00
|
|
|
MD_SHIFT + 'M', LEGACY_HK_NAME( "Move Item Exactly" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
_( "Move Exactly..." ), _( "Moves the selected item(s) by an exact amount" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::move_exactly );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2023-08-05 15:43:10 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::pointEditorMoveCorner( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveEdit.moveCorner" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Move Corner To..." ) )
|
|
|
|
.Tooltip( _( "Move the active corner to an exact location" ) )
|
|
|
|
.Icon( BITMAPS::move_exactly ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pointEditorMoveMidpoint( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveEdit.moveMidpoint" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Move Midpoint To..." ) )
|
|
|
|
.Tooltip( _( "Move the active midpoint to an exact location" ) )
|
|
|
|
.Icon( BITMAPS::move_exactly ) );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::createArray( "pcbnew.InteractiveEdit.createArray",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'T', LEGACY_HK_NAME( "Create Array" ),
|
|
|
|
_( "Create Array..." ), _( "Create array" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::array, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::rotateCw( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveEdit.rotateCw" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + 'R' )
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2022-09-28 01:15:19 +00:00
|
|
|
.LegacyHotkeyName( "Rotate Item Clockwise (Modern Toolset only)" )
|
|
|
|
.MenuText( _( "Rotate Clockwise" ) )
|
|
|
|
.Tooltip( _( "Rotates selected item(s) clockwise" ) )
|
|
|
|
.Icon( BITMAPS::rotate_cw )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( -1 ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::rotateCcw( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveEdit.rotateCcw" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( 'R' )
|
|
|
|
.LegacyHotkeyName( "Rotate Item" )
|
|
|
|
.MenuText( _( "Rotate Counterclockwise" ) )
|
|
|
|
.Tooltip( _( "Rotates selected item(s) counterclockwise" ) )
|
|
|
|
.Icon( BITMAPS::rotate_ccw )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( 1 ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::flip( "pcbnew.InteractiveEdit.flip",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'F', LEGACY_HK_NAME( "Flip Item" ),
|
2021-01-06 21:02:30 +00:00
|
|
|
_( "Change Side / Flip" ), _( "Flips selected item(s) to opposite side of board" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::swap_layer );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-20 23:16:00 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::mirrorH( "pcbnew.InteractiveEdit.mirrorHoriontally",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2022-09-20 23:16:00 +00:00
|
|
|
_( "Mirror Horizontally" ), _( "Mirrors selected item across the Y axis" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::mirror_h );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-20 23:16:00 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::mirrorV( "pcbnew.InteractiveEdit.mirrorVertically",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Mirror Vertically" ), _( "Mirrors selected item across the X axis" ),
|
|
|
|
BITMAPS::mirror_v );
|
|
|
|
|
2022-08-29 19:07:16 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::swap( "pcbnew.InteractiveEdit.swap",
|
2022-08-30 13:14:14 +00:00
|
|
|
AS_GLOBAL,
|
2023-02-14 12:42:06 +00:00
|
|
|
'S', "",
|
2022-08-29 19:07:16 +00:00
|
|
|
_( "Swap" ), _( "Swaps selected items' positions" ),
|
2022-09-07 14:16:36 +00:00
|
|
|
BITMAPS::swap );
|
2022-08-29 19:07:16 +00:00
|
|
|
|
2022-09-27 13:30:17 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::packAndMoveFootprints( "pcbnew.InteractiveEdit.packAndMoveFootprints",
|
2022-11-28 19:14:22 +00:00
|
|
|
AS_GLOBAL,
|
2022-09-27 13:30:17 +00:00
|
|
|
'P', "",
|
2022-11-28 19:14:22 +00:00
|
|
|
_( "Pack and Move Footprints" ),
|
2022-09-27 13:30:17 +00:00
|
|
|
_( "Sorts selected footprints by reference, packs based on size and initiates movement" ),
|
|
|
|
BITMAPS::pack_footprints );
|
|
|
|
|
2022-11-28 19:14:22 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::skip( "pcbnew.InteractiveEdit.skip",
|
|
|
|
AS_CONTEXT,
|
|
|
|
WXK_TAB, "",
|
|
|
|
_( "Skip" ), _( "Skip item" ),
|
|
|
|
BITMAPS::right );
|
|
|
|
|
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" ) );
|
|
|
|
|
2020-10-20 21:23:05 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::filletTracks( "pcbnew.InteractiveEdit.filletTracks",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Fillet Tracks" ), _( "Adds arcs tangent to the selected straight track segments" ) );
|
|
|
|
|
2022-11-18 14:32:43 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::filletLines( "pcbnew.InteractiveEdit.filletLines",
|
|
|
|
AS_GLOBAL, 0, "",
|
2023-07-02 17:39:49 +00:00
|
|
|
_( "Fillet Lines" ), _( "Adds arcs tangent to the selected lines" ),
|
|
|
|
BITMAPS::fillet );
|
2022-11-18 14:32:43 +00:00
|
|
|
|
2023-07-02 17:59:04 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::chamferLines( "pcbnew.InteractiveEdit.chamferLines",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Chamfer Lines" ),
|
2023-07-02 17:39:49 +00:00
|
|
|
_( "Cut away corners between selected lines" ),
|
|
|
|
BITMAPS::chamfer );
|
2023-07-02 17:59:04 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::extendLines( "pcbnew.InteractiveEdit.extendLines",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Extend Lines to Meet" ),
|
|
|
|
_( "Extend lines to meet each other" ) );
|
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::deleteFull( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveEdit.deleteFull" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + WXK_DELETE )
|
|
|
|
.LegacyHotkeyName( "Delete Full Track" )
|
|
|
|
.MenuText( _( "Delete Full Track" ) )
|
|
|
|
.Tooltip( _( "Deletes selected item(s) and copper connections" ) )
|
|
|
|
.Icon( BITMAPS::delete_cursor )
|
|
|
|
.Flags( AF_NONE )
|
2022-09-28 02:09:34 +00:00
|
|
|
.Parameter( PCB_ACTIONS::REMOVE_FLAGS::ALT ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::properties( "pcbnew.InteractiveEdit.properties",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'E', LEGACY_HK_NAME( "Edit Item" ),
|
|
|
|
_( "Properties..." ), _( "Displays item properties dialog" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::edit );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
|
2020-12-25 16:26:32 +00:00
|
|
|
// FOOTPRINT_EDITOR_CONTROL
|
2019-06-17 00:34:21 +00:00
|
|
|
//
|
2021-03-29 11:01:03 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::showFootprintTree( "pcbnew.ModuleEditor.showFootprintTree",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Show Footprint Tree" ), _( "Show Footprint Tree" ),
|
2021-03-29 11:01:03 +00:00
|
|
|
BITMAPS::search_tree );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::hideFootprintTree( "pcbnew.ModuleEditor.hideFootprintTree",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Hide Footprint Tree" ), _( "Hide Footprint Tree" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::search_tree );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::newFootprint( "pcbnew.ModuleEditor.newFootprint",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'N', LEGACY_HK_NAME( "New" ),
|
|
|
|
_( "New Footprint..." ), _( "Create a new, empty footprint" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::new_footprint );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::createFootprint( "pcbnew.ModuleEditor.createFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Create Footprint..." ), _( "Create a new footprint using the Footprint Wizard" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::module_wizard );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::editFootprint( "pcbnew.ModuleEditor.editFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Edit Footprint" ), _( "Show selected footprint on editor canvas" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::edit );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-04-21 10:57:15 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::duplicateFootprint( "pcbnew.ModuleEditor.duplicateFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Duplicate Footprint" ), _( "Make a copy of the selected footprint" ),
|
|
|
|
BITMAPS::duplicate );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::renameFootprint( "pcbnew.ModuleEditor.renameFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Rename Footprint..." ), _( "Rename the selected footprint" ),
|
|
|
|
BITMAPS::edit );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::deleteFootprint( "pcbnew.ModuleEditor.deleteFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Delete Footprint from Library" ), _( "Delete Footprint from Library" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::trash );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::cutFootprint( "pcbnew.ModuleEditor.cutFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Cut Footprint" ), _( "Cut Footprint" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::cut );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::copyFootprint( "pcbnew.ModuleEditor.copyFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Copy Footprint" ), _( "Copy Footprint" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::copy );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pasteFootprint( "pcbnew.ModuleEditor.pasteFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Paste Footprint" ), _( "Paste Footprint" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::paste );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::importFootprint( "pcbnew.ModuleEditor.importFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-03-27 18:47:48 +00:00
|
|
|
_( "Import Footprint..." ), _( "Import footprint from file" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::import_module );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::exportFootprint( "pcbnew.ModuleEditor.exportFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
2023-03-29 16:46:30 +00:00
|
|
|
_( "Export Current Footprint..." ), _( "Export edited footprint to file" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::export_module );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::footprintProperties( "pcbnew.ModuleEditor.footprintProperties",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Footprint Properties..." ), _( "Edit footprint properties" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::module_options );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2020-11-21 20:42:27 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::checkFootprint( "pcbnew.ModuleEditor.checkFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Footprint Checker" ), _( "Show the footprint checker window" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::erc );
|
2020-06-18 13:49:32 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
// 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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::refresh );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::updateFootprints( "pcbnew.GlobalEdit.updateFootprints",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Update Footprints from Library..." ),
|
|
|
|
_( "Update footprints to include any changes from the library" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::refresh );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2020-07-27 19:41:50 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::removeUnusedPads( "pcbnew.GlobalEdit.removeUnusedPads",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Remove Unused Pads..." ),
|
2021-01-10 16:37:06 +00:00
|
|
|
_( "Remove or restore the unconnected inner layers on through hole pads and vias" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::pads_remove );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::changeFootprint( "pcbnew.GlobalEdit.changeFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change Footprint..." ), _( "Assign a different footprint from the library" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::exchange );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::changeFootprints( "pcbnew.GlobalEdit.changeFootprints",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change Footprints..." ), _( "Assign different footprints from the library" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::exchange );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::swapLayers( "pcbnew.GlobalEdit.swapLayers",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Swap Layers..." ), _( "Move tracks or drawings from one layer to another" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::swap_layer );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::editTracksAndVias( "pcbnew.GlobalEdit.editTracksAndVias",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Edit Track & Via Properties..." ),
|
|
|
|
_( "Edit track and via properties globally across board" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::width_track_via );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::text );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2023-05-12 21:03:54 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::editTeardrops( "pcbnew.GlobalEdit.editTeardrops",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Edit Teardrops..." ),
|
|
|
|
_( "Add, remove or edit teardrops globally across board" ),
|
|
|
|
BITMAPS::via );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::globalDeletions( "pcbnew.GlobalEdit.globalDeletions",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Global Deletions..." ),
|
|
|
|
_( "Delete tracks, footprints and graphic items from board" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::general_deletions );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::cleanupTracksAndVias( "pcbnew.GlobalEdit.cleanupTracksAndVias",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-17 09:41:38 +00:00
|
|
|
_( "Cleanup Tracks & Vias..." ),
|
2020-06-17 12:46:50 +00:00
|
|
|
_( "Cleanup redundant items, shorting items, etc." ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::delete_cursor );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2020-06-17 12:46:50 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::cleanupGraphics( "pcbnew.GlobalEdit.cleanupGraphics",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Cleanup Graphics..." ),
|
|
|
|
_( "Cleanup redundant items, etc." ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::delete_cursor );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
// MICROWAVE_TOOL
|
|
|
|
//
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::microwaveCreateGap( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.MicrowaveTool.createGap" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Add Microwave Gap" ) )
|
|
|
|
.Tooltip( _( "Create gap of specified length for microwave applications" ) )
|
|
|
|
.Icon( BITMAPS::mw_add_gap )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( MICROWAVE_FOOTPRINT_SHAPE::GAP ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::microwaveCreateStub( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.MicrowaveTool.createStub" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Add Microwave Stub" ) )
|
|
|
|
.Tooltip( _( "Create stub of specified length for microwave applications" ) )
|
|
|
|
.Icon( BITMAPS::mw_add_stub )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::microwaveCreateStubArc( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.MicrowaveTool.createStubArc" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Add Microwave Arc Stub" ) )
|
|
|
|
.Tooltip( _( "Create stub (arc) of specified size for microwave applications" ) )
|
|
|
|
.Icon( BITMAPS::mw_add_stub_arc )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB_ARC ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::microwaveCreateFunctionShape( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.MicrowaveTool.createFunctionShape" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Add Microwave Polygonal Shape" ) )
|
|
|
|
.Tooltip( _( "Create a microwave polygonal shape from a list of vertices" ) )
|
|
|
|
.Icon( BITMAPS::mw_add_shape )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( MICROWAVE_FOOTPRINT_SHAPE::FUNCTION_SHAPE ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::microwaveCreateLine( "pcbnew.MicrowaveTool.createLine",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Add Microwave Line" ),
|
|
|
|
_( "Create line of specified length for microwave applications" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::mw_add_line, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
// 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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::copy_pad_settings );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::apply_pad_settings );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::push_pad_settings );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::pad_enumerate, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2020-06-27 11:57:40 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::placePad( "pcbnew.PadTool.placePad",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Pad" ), _( "Add a pad" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::pad, AF_ACTIVATE );
|
2020-06-27 11:57:40 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::explodePad( "pcbnew.PadTool.explodePad",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'E', "",
|
|
|
|
_( "Edit Pad as Graphic Shapes" ),
|
|
|
|
_( "Ungroups a custom-shaped pad for editing as individual graphic shapes" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::custom_pad_to_primitives );
|
2020-06-27 11:57:40 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::recombinePad( "pcbnew.PadTool.recombinePad",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'E', "",
|
|
|
|
_( "Finish Pad Edit" ),
|
|
|
|
_( "Regroups all touching graphic shapes into the edited pad" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::custom_pad_to_primitives );
|
2020-06-27 11:57:40 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::defaultPadProperties( "pcbnew.PadTool.defaultPadProperties",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Default Pad Properties..." ),
|
|
|
|
_( "Edit the pad properties used when creating new pads" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::options_pad );
|
2020-06-27 11:57:40 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2021-03-19 23:06:29 +00:00
|
|
|
// SCRIPTING TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pluginsReload( "pcbnew.ScriptingTool.pluginsReload",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Refresh Plugins" ), _( "Reload all python plugins and refresh plugin menus" ),
|
|
|
|
BITMAPS::reload );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pluginsShowFolder( "pcbnew.ScriptingTool.pluginsShowFolder",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
#ifdef __WXMAC__
|
|
|
|
_( "Reveal Plugin Folder in Finder" ), _( "Reveals the plugins folder in a Finder window" ),
|
|
|
|
#else
|
|
|
|
_( "Open Plugin Directory" ), _( "Opens the directory in the default system file manager" ),
|
|
|
|
#endif
|
|
|
|
BITMAPS::directory_open );
|
|
|
|
|
2020-12-16 13:31:32 +00:00
|
|
|
// BOARD_EDITOR_CONTROL
|
2019-06-17 00:34:21 +00:00
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::boardSetup( "pcbnew.EditorControl.boardSetup",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Board Setup..." ),
|
|
|
|
_( "Edit board setup including layers, design rules and various defaults" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::options_board );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::importNetlist( "pcbnew.EditorControl.importNetlist",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-03-27 18:47:48 +00:00
|
|
|
_( "Import Netlist..." ), _( "Read netlist and update board connectivity" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::netlist );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::importSpecctraSession( "pcbnew.EditorControl.importSpecctraSession",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-03-27 18:47:48 +00:00
|
|
|
_( "Import Specctra Session..." ), _( "Import routed Specctra session (*.ses) file" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::import );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::exportSpecctraDSN( "pcbnew.EditorControl.exportSpecctraDSN",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-03-27 18:47:48 +00:00
|
|
|
_( "Export Specctra DSN..." ), _( "Export Specctra DSN routing info" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::export_dsn );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::post_gerber );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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)" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::post_drill );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::generatePosFile( "pcbnew.EditorControl.generatePosFile",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-01-28 17:32:43 +00:00
|
|
|
_( "Component Placement (.pos)..." ),
|
|
|
|
_( "Generate component placement file(s) for pick and place" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::post_compo );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::post_rpt );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::generateD356File( "pcbnew.EditorControl.generateD356File",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "IPC-D-356 Netlist File..." ), _( "Generate IPC-D-356 netlist file" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::post_d356 );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::generateBOM( "pcbnew.EditorControl.generateBOM",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-08-20 11:49:59 +00:00
|
|
|
_( "BOM..." ), _( "Create bill of materials from board" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::post_bom );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
// Track & via size control
|
|
|
|
TOOL_ACTION PCB_ACTIONS::trackWidthInc( "pcbnew.EditorControl.trackWidthInc",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'W', LEGACY_HK_NAME( "Switch Track Width To Next" ),
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Switch Track Width to Next" ), _( "Change track width to next pre-defined size" ) );
|
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" ),
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Switch Track Width to Previous" ),
|
|
|
|
_( "Change track width to previous pre-defined size" ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::viaSizeInc( "pcbnew.EditorControl.viaSizeInc",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'\'', LEGACY_HK_NAME( "Increase Via Size" ),
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Increase Via Size" ), _( "Change via size to next pre-defined 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" ),
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Decrease Via Size" ), _( "Change via size to previous pre-defined size" ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::trackViaSizeChanged( "pcbnew.EditorControl.trackViaSizeChanged",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
"", "",
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::INVALID_BITMAP, AF_NOTIFY );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-03 18:29:02 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::assignNetClass( "pcbnew.EditorControl.assignNetclass",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Assign Netclass..." ), _( "Assign a netclass to nets matching a pattern" ),
|
|
|
|
BITMAPS::netlist );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::zone_duplicate );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2023-06-28 21:10:31 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::placeFootprint( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.EditorControl.placeFootprint" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( 'A' )
|
|
|
|
.LegacyHotkeyName( "Add Footprint" )
|
|
|
|
.MenuText( _( "Add Footprint" ) )
|
|
|
|
.Tooltip( _( "Add a footprint" ) )
|
|
|
|
.Icon( BITMAPS::module )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter<FOOTPRINT*>( nullptr ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::drillOrigin( "pcbnew.EditorControl.drillOrigin",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-07-01 12:28:10 +00:00
|
|
|
_( "Drill/Place File Origin" ),
|
2021-01-28 17:32:43 +00:00
|
|
|
_( "Place origin point for drill files and component placement files" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::set_origin, 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" ),
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Toggle Lock" ), _( "Lock or unlock selected items" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::lock_unlock );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-05-29 13:16:13 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::toggleHV45Mode( "pcbnew.EditorControl.toggle45",
|
2021-10-23 11:18:08 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + ' ', "",
|
|
|
|
_( "Constrain to H, V, 45" ),
|
|
|
|
_( "Limit actions to horizontal, vertical, or 45 degrees from the starting point" ),
|
2022-05-29 20:28:10 +00:00
|
|
|
BITMAPS::hv45mode );
|
2021-09-02 22:32:15 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::lock( "pcbnew.EditorControl.lock",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Lock" ), _( "Prevent items from being moved and/or resized on the canvas" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::locked );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::unlock( "pcbnew.EditorControl.unlock",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Unlock" ), _( "Allow items to be moved and/or resized on the canvas" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::unlocked );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2021-02-16 20:45:25 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::group( "pcbnew.EditorControl.group",
|
2020-08-11 19:37:07 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Group" ), _( "Group the selected items so that they are treated as a single item" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::group );
|
2020-08-11 19:37:07 +00:00
|
|
|
|
2021-02-16 20:45:25 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::ungroup( "pcbnew.EditorControl.ungroup",
|
2020-08-11 19:37:07 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Ungroup" ), _( "Ungroup any selected groups" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::group_ungroup );
|
2020-08-11 19:37:07 +00:00
|
|
|
|
2021-02-16 20:45:25 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::removeFromGroup( "pcbnew.EditorControl.removeFromGroup",
|
2020-08-11 19:37:07 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2020-09-02 01:09:34 +00:00
|
|
|
_( "Remove Items" ), _( "Remove items from group" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::group_remove );
|
2020-08-11 19:37:07 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::groupEnter( "pcbnew.EditorControl.groupEnter",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-09-02 01:09:34 +00:00
|
|
|
_( "Enter Group" ), _( "Enter the group to edit items" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::group_enter );
|
2020-08-11 19:37:07 +00:00
|
|
|
|
2020-09-02 01:09:34 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::groupLeave( "pcbnew.EditorControl.groupLeave",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Leave Group" ), _( "Leave the current group" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::group_leave );
|
2020-09-02 01:09:34 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::appendBoard( "pcbnew.EditorControl.appendBoard",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Append Board..." ), _( "Open another board and append its contents to this board" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_board );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2023-06-28 22:19:43 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::highlightNet( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.EditorControl.highlightNet" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( '`' )
|
2022-07-23 11:34:32 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2023-06-28 22:19:43 +00:00
|
|
|
.LegacyHotkeyName( "Toggle Highlight of Selected Net (Modern Toolset only)" )
|
|
|
|
.MenuText( _( "Highlight Net" ) )
|
|
|
|
.Tooltip( _( "Highlight net under cursor" ) )
|
|
|
|
.Icon( BITMAPS::net_highlight )
|
|
|
|
.Parameter<int>( 0 ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::toggleLastNetHighlight( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.EditorControl.toggleLastNetHighlight" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Toggle Last Net Highlight" ) )
|
|
|
|
.Tooltip( _( "Toggle between last two highlighted nets" ) )
|
|
|
|
.Parameter<int>( 0 ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::clearHighlight( "pcbnew.EditorControl.clearHighlight",
|
2021-10-23 11:18:08 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
'~', "",
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Clear Net Highlighting" ), _( "Clear any existing net highlighting" ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2023-06-28 22:19:43 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::toggleNetHighlight( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.EditorControl.toggleNetHighlight" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_ALT + '`' )
|
|
|
|
.MenuText( _( "Toggle Net Highlight" ) )
|
|
|
|
.Tooltip( _( "Toggle net highlighting" ) )
|
|
|
|
.Icon( BITMAPS::net_highlight )
|
|
|
|
.Parameter<int>( 0 ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::highlightNetSelection( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.EditorControl.highlightNetSelection" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Highlight Net" ) )
|
|
|
|
.Tooltip( _( "Highlight all copper items on the selected net(s)" ) )
|
|
|
|
.Icon( BITMAPS::net_highlight )
|
|
|
|
.Parameter<int>( 0 ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2019-07-17 20:21:22 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::highlightItem( "pcbnew.EditorControl.highlightItem",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
2022-09-28 23:34:45 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::hideNetInRatsnest( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.EditorControl.hideNet" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Hide Net in Ratsnest" ) )
|
|
|
|
.Tooltip( _( "Hide the selected net in the ratsnest of unconnected net lines/arcs" ) )
|
|
|
|
.Icon( BITMAPS::hide_ratsnest )
|
2022-09-29 02:15:22 +00:00
|
|
|
.Parameter<int>( 0 ) ); // Default to hiding selected net
|
2020-07-11 01:06:17 +00:00
|
|
|
|
2022-09-28 23:34:45 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::showNetInRatsnest( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.EditorControl.showNet" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Show Net in Ratsnest" ) )
|
|
|
|
.Tooltip( _( "Show the selected net in the ratsnest of unconnected net lines/arcs" ) )
|
|
|
|
.Icon( BITMAPS::show_ratsnest )
|
2022-09-29 02:15:22 +00:00
|
|
|
.Parameter<int>( 0 ) ); // Default to showing selected net
|
2020-07-11 01:06:17 +00:00
|
|
|
|
2019-07-08 23:43:08 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::showEeschema( "pcbnew.EditorControl.showEeschema",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-12-04 14:29:57 +00:00
|
|
|
_( "Switch to Schematic Editor" ), _( "Open in schematic editor" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::icon_eeschema_24 );
|
2019-07-08 23:43:08 +00:00
|
|
|
|
|
|
|
|
2020-12-16 13:31:32 +00:00
|
|
|
// PCB_CONTROL
|
2019-07-08 23:43:08 +00:00
|
|
|
//
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::localRatsnestTool( "pcbnew.Control.localRatsnestTool",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-06-04 22:16:59 +00:00
|
|
|
_( "Local Ratsnest" ), _( "Toggle ratsnest display of selected item(s)" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::tool_ratsnest, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-03 18:29:02 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::hideLocalRatsnest( "pcbnew.Control.hideDynamicRatsnest",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL );
|
|
|
|
|
2023-06-28 21:20:59 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::updateLocalRatsnest( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.updateLocalRatsnest" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.Parameter( VECTOR2I() ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::list_nets );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::showPythonConsole( "pcbnew.Control.showPythonConsole",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Scripting Console" ), _( "Show the Python scripting console" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::py_script );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::showLayersManager( "pcbnew.Control.showLayersManager",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-08-31 15:26:21 +00:00
|
|
|
_( "Show Appearance Manager" ), _( "Show/hide the appearance manager" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::layers_manager );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::flipBoard( "pcbnew.Control.flipBoard",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Flip Board View" ), _( "View board from the opposite side" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::flip_board );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
// Display modes
|
|
|
|
TOOL_ACTION PCB_ACTIONS::showRatsnest( "pcbnew.Control.showRatsnest",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Show Ratsnest" ), _( "Show board ratsnest" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::general_ratsnest );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::ratsnestLineMode( "pcbnew.Control.ratsnestLineMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Curved Ratsnest Lines" ), _( "Show ratsnest with curved lines" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::curved_ratsnest );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2021-10-04 12:42:08 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::ratsnestModeCycle( "pcbnew.Control.ratsnestModeCycle",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Ratsnest Mode (3-state)" ),
|
|
|
|
_( "Cycle between showing ratsnests for all layers, just visible layers, and none" ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::netColorModeCycle( "pcbnew.Control.netColorMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Net Color Mode (3-state)" ),
|
|
|
|
_( "Cycle between using net and netclass colors for all nets, just ratsnests, and none" ) );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::trackDisplayMode( "pcbnew.Control.trackDisplayMode",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'K', LEGACY_HK_NAME( "Track Display Mode" ),
|
|
|
|
_( "Sketch Tracks" ), _( "Show tracks in outline mode" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::showtrack );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::padDisplayMode( "pcbnew.Control.padDisplayMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Sketch Pads" ), _( "Show pads in outline mode" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::pad_sketch );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::viaDisplayMode( "pcbnew.Control.viaDisplayMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Sketch Vias" ), _( "Show vias in outline mode" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::via_sketch );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2020-05-26 22:21:38 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::graphicsOutlines( "pcbnew.Control.graphicOutlines",
|
2019-12-15 12:56:26 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2020-05-26 22:21:38 +00:00
|
|
|
_( "Sketch Graphic Items" ), _( "Show graphic items in outline mode" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::show_mod_edge );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2020-05-26 22:21:38 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::textOutlines( "pcbnew.Control.textOutlines",
|
2019-12-23 17:11:45 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2020-05-26 22:21:38 +00:00
|
|
|
_( "Sketch Text Items" ), _( "Show footprint texts in line mode" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::text_sketch );
|
2019-12-23 17:11:45 +00:00
|
|
|
|
2020-05-23 17:14:49 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::showPadNumbers( "pcbnew.Control.showPadNumbers",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Show pad numbers" ), _( "Show pad numbers" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::pad_number );
|
2020-05-23 17:14:49 +00:00
|
|
|
|
2021-07-26 17:56:11 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneDisplayFilled( "pcbnew.Control.zoneDisplayEnable",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-07-26 17:56:11 +00:00
|
|
|
_( "Draw Zone Fills" ), _( "Show filled areas of zones" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::show_zone );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2021-07-26 17:56:11 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneDisplayOutline( "pcbnew.Control.zoneDisplayDisable",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-07-26 17:56:11 +00:00
|
|
|
_( "Draw Zone Outlines" ), _( "Show only zone boundaries" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::show_zone_disable );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2021-07-26 17:56:11 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneDisplayFractured( "pcbnew.Control.zoneDisplayOutlines",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Draw Zone Fill Fracture Borders" ), _( "Draw Zone Fill Fracture Borders" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::show_zone_outline_only );
|
2019-06-21 10:26:59 +00:00
|
|
|
|
2021-07-26 17:56:11 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneDisplayTriangulated( "pcbnew.Control.zoneDisplayTesselation",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Draw Zone Fill Triangulation" ), _( "Draw Zone Fill Triangulation" ),
|
2021-07-26 17:56:11 +00:00
|
|
|
BITMAPS::show_zone_triangulation );
|
|
|
|
|
2019-06-21 10:26:59 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneDisplayToggle( "pcbnew.Control.zoneDisplayToggle",
|
|
|
|
AS_GLOBAL,
|
2022-01-10 19:48:26 +00:00
|
|
|
0, "",
|
2019-06-21 10:26:59 +00:00
|
|
|
_( "Toggle Zone Display" ),
|
2021-07-26 17:56:11 +00:00
|
|
|
_( "Cycle between showing zone fills and just their outlines" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::show_zone );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Layer control
|
2023-07-05 10:09:34 +00:00
|
|
|
|
|
|
|
// Translate aLayer to the action that switches to it
|
|
|
|
TOOL_ACTION* PCB_ACTIONS::LayerIDToAction( PCB_LAYER_ID aLayer )
|
|
|
|
{
|
|
|
|
switch( aLayer )
|
|
|
|
{
|
|
|
|
case F_Cu: return &PCB_ACTIONS::layerTop;
|
|
|
|
case In1_Cu: return &PCB_ACTIONS::layerInner1;
|
|
|
|
case In2_Cu: return &PCB_ACTIONS::layerInner2;
|
|
|
|
case In3_Cu: return &PCB_ACTIONS::layerInner3;
|
|
|
|
case In4_Cu: return &PCB_ACTIONS::layerInner4;
|
|
|
|
case In5_Cu: return &PCB_ACTIONS::layerInner5;
|
|
|
|
case In6_Cu: return &PCB_ACTIONS::layerInner6;
|
|
|
|
case In7_Cu: return &PCB_ACTIONS::layerInner7;
|
|
|
|
case In8_Cu: return &PCB_ACTIONS::layerInner8;
|
|
|
|
case In9_Cu: return &PCB_ACTIONS::layerInner9;
|
|
|
|
case In10_Cu: return &PCB_ACTIONS::layerInner10;
|
|
|
|
case In11_Cu: return &PCB_ACTIONS::layerInner11;
|
|
|
|
case In12_Cu: return &PCB_ACTIONS::layerInner12;
|
|
|
|
case In13_Cu: return &PCB_ACTIONS::layerInner13;
|
|
|
|
case In14_Cu: return &PCB_ACTIONS::layerInner14;
|
|
|
|
case In15_Cu: return &PCB_ACTIONS::layerInner15;
|
|
|
|
case In16_Cu: return &PCB_ACTIONS::layerInner16;
|
|
|
|
case In17_Cu: return &PCB_ACTIONS::layerInner17;
|
|
|
|
case In18_Cu: return &PCB_ACTIONS::layerInner18;
|
|
|
|
case In19_Cu: return &PCB_ACTIONS::layerInner19;
|
|
|
|
case In20_Cu: return &PCB_ACTIONS::layerInner20;
|
|
|
|
case In21_Cu: return &PCB_ACTIONS::layerInner21;
|
|
|
|
case In22_Cu: return &PCB_ACTIONS::layerInner22;
|
|
|
|
case In23_Cu: return &PCB_ACTIONS::layerInner23;
|
|
|
|
case In24_Cu: return &PCB_ACTIONS::layerInner24;
|
|
|
|
case In25_Cu: return &PCB_ACTIONS::layerInner25;
|
|
|
|
case In26_Cu: return &PCB_ACTIONS::layerInner26;
|
|
|
|
case In27_Cu: return &PCB_ACTIONS::layerInner27;
|
|
|
|
case In28_Cu: return &PCB_ACTIONS::layerInner28;
|
|
|
|
case In29_Cu: return &PCB_ACTIONS::layerInner29;
|
|
|
|
case In30_Cu: return &PCB_ACTIONS::layerInner30;
|
|
|
|
case B_Cu: return &PCB_ACTIONS::layerBottom;
|
|
|
|
default: return nullptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::layerTop( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerTop" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_PAGEUP )
|
|
|
|
.LegacyHotkeyName( "Switch to Component (F.Cu) layer" )
|
|
|
|
.MenuText( _( "Switch to Component (F.Cu) layer" ) )
|
|
|
|
.Tooltip( _( "Switch to Component (F.Cu) layer" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( F_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner1( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner1" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.LegacyHotkeyName( "Switch to Inner layer 1" )
|
|
|
|
.MenuText( _( "Switch to Inner layer 1" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 1" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In1_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner2( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner2" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.LegacyHotkeyName( "Switch to Inner layer 2" )
|
|
|
|
.MenuText( _( "Switch to Inner layer 2" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 2" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In2_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner3( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner3" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.LegacyHotkeyName( "Switch to Inner layer 3" )
|
|
|
|
.MenuText( _( "Switch to Inner layer 3" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 3" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In3_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner4( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner4" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.LegacyHotkeyName( "Switch to Inner layer 4" )
|
|
|
|
.MenuText( _( "Switch to Inner layer 4" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 4" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In4_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner5( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner5" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.LegacyHotkeyName( "Switch to Inner layer 5" )
|
|
|
|
.MenuText( _( "Switch to Inner layer 5" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 5" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In5_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner6( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner6" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.LegacyHotkeyName( "Switch to Inner layer 6" )
|
|
|
|
.MenuText( _( "Switch to Inner layer 6" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 6" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In6_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner7( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner7" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 7" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 7" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In7_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner8( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner8" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 8" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 8" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In8_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner9( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner9" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 9" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 9" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In9_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner10( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner10" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 10" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 10" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In10_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner11( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner11" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 11" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 11" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In11_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner12( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner12" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 12" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 12" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In12_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner13( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner13" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 13" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 13" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In13_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner14( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner14" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 14" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 14" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In14_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner15( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner15" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 15" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 15" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In15_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner16( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner16" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 16" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 16" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In16_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner17( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner17" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 17" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 17" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In17_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner18( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner18" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 18" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 18" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In18_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner19( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner19" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 19" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 19" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In19_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner20( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner20" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 20" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 20" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In20_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner21( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner21" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 21" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 21" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In21_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner22( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner22" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 22" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 22" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In22_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner23( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner23" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 23" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 23" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In23_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner24( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner24" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 24" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 24" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In24_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner25( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner25" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 25" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 25" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In25_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner26( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner26" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 26" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 26" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In26_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner27( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner27" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 27" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 27" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In27_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner28( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner28" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 28" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 28" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In28_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner29( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner29" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 29" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 29" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In29_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerInner30( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerInner30" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Inner layer 30" ) )
|
|
|
|
.Tooltip( _( "Switch to Inner layer 30" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( In30_Cu ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerBottom( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.layerBottom" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_PAGEDOWN )
|
|
|
|
.LegacyHotkeyName( "Switch to Copper (B.Cu) layer" )
|
|
|
|
.MenuText( _( "Switch to Copper (B.Cu) layer" ) )
|
|
|
|
.Tooltip( _( "Switch to Copper (B.Cu) layer" ) )
|
|
|
|
.Flags( AF_NOTIFY )
|
|
|
|
.Parameter( B_Cu ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerNext( "pcbnew.Control.layerNext",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'+', LEGACY_HK_NAME( "Switch to Next Layer" ),
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Switch to Next Layer" ), _( "Switch to Next Layer" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::INVALID_BITMAP, AF_NOTIFY );
|
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" ),
|
2022-02-05 13:25:43 +00:00
|
|
|
_( "Switch to Previous Layer" ), _( "Switch to Previous Layer" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::INVALID_BITMAP, AF_NOTIFY );
|
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" ),
|
2020-09-04 15:20:51 +00:00
|
|
|
_( "Toggle Layer" ), _( "Switch between layers in active layer pair" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::INVALID_BITMAP, AF_NOTIFY );
|
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)" ),
|
2021-06-04 02:39:14 +00:00
|
|
|
_( "Increase Layer Opacity" ), _( "Make the current layer less transparent" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::contrast_mode );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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)" ),
|
2021-06-04 02:39:14 +00:00
|
|
|
_( "Decrease Layer Opacity" ), _( "Make the current layer more transparent" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::contrast_mode );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::layerChanged( "pcbnew.Control.layerChanged",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
"", "",
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::INVALID_BITMAP, AF_NOTIFY );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2019-07-16 19:34:07 +00:00
|
|
|
//Show board statistics tool
|
2022-09-03 18:29:02 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::boardStatistics( "pcbnew.InspectionTool.ShowBoardStatistics",
|
2020-08-11 12:34:53 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-01-21 18:12:00 +00:00
|
|
|
_( "Show Board Statistics" ), _( "Shows board statistics" ) );
|
2020-04-21 01:44:17 +00:00
|
|
|
|
2020-09-10 19:58:05 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::inspectClearance( "pcbnew.InspectionTool.InspectClearance",
|
|
|
|
AS_GLOBAL, 0, "",
|
2023-03-10 17:55:58 +00:00
|
|
|
_( "Clearance Resolution" ),
|
2020-09-10 19:58:05 +00:00
|
|
|
_( "Show clearance resolution for the active layer between two selected objects" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::mw_add_gap );
|
2020-09-10 19:58:05 +00:00
|
|
|
|
2020-09-22 23:16:02 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::inspectConstraints( "pcbnew.InspectionTool.InspectConstraints",
|
|
|
|
AS_GLOBAL, 0, "",
|
2023-03-10 17:55:58 +00:00
|
|
|
_( "Constraints Resolution" ),
|
2020-09-22 23:16:02 +00:00
|
|
|
_( "Show constraints resolution for the selected object" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::mw_add_gap );
|
2020-09-22 23:16:02 +00:00
|
|
|
|
2023-03-09 17:41:18 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::diffFootprint( "pcbnew.InspectionTool.DiffFootprint",
|
2023-03-06 23:05:44 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2023-03-10 17:55:58 +00:00
|
|
|
_( "Diff Footprint with Library" ),
|
|
|
|
_( "Show differences between board footprint and its library equivalent" ),
|
2023-03-09 11:25:32 +00:00
|
|
|
BITMAPS::library );
|
2023-03-06 23:05:44 +00:00
|
|
|
|
2023-07-11 13:05:39 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::showFootprintAssociations( "pcbnew.InspectionTool.ShowFootprintAssociations",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Show Footprint Associations" ),
|
|
|
|
_( "Show footprint library and schematic symbol associations" ),
|
|
|
|
BITMAPS::edit_cmp_symb_links );
|
|
|
|
|
2020-08-11 12:34:53 +00:00
|
|
|
//Geographic re-annotation tool
|
|
|
|
TOOL_ACTION PCB_ACTIONS::boardReannotate( "pcbnew.ReannotateTool.ShowReannotateDialog",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Geographical Reannotate..." ), _( "Reannotate PCB in geographical order" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::annotate );
|
2020-04-21 01:44:17 +00:00
|
|
|
|
2022-09-28 02:09:34 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::repairBoard( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.Control.repairBoard" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Repair Board" ) )
|
|
|
|
.Tooltip( _( "Run various diagnostics and attempt to repair board" ) )
|
|
|
|
.Icon( BITMAPS::rescue )
|
|
|
|
.Parameter( false ) ); // Don't repair quietly
|
2020-08-11 14:01:26 +00:00
|
|
|
|
2021-05-21 16:52:11 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::repairFootprint( "pcbnew.ModuleEditor.repairFootprint",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Repair Footprint" ),
|
2021-09-01 21:05:17 +00:00
|
|
|
_( "Run various diagnostics and attempt to repair footprint" ) );
|
2021-05-21 16:52:11 +00:00
|
|
|
|
2020-08-11 14:01:26 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
// PLACEMENT_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::alignTop( "pcbnew.AlignAndDistribute.alignTop",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-11-21 12:29:23 +00:00
|
|
|
_( "Align to Top" ), _( "Aligns selected items to the top edge" ),
|
|
|
|
BITMAPS::align_items_top );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::alignBottom( "pcbnew.AlignAndDistribute.alignBottom",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-11-21 12:29:23 +00:00
|
|
|
_( "Align to Bottom" ), _( "Aligns selected items to the bottom edge" ),
|
|
|
|
BITMAPS::align_items_bottom );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::alignLeft( "pcbnew.AlignAndDistribute.alignLeft",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-11-21 12:29:23 +00:00
|
|
|
_( "Align to Left" ), _( "Aligns selected items to the left edge" ),
|
|
|
|
BITMAPS::align_items_left );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::alignRight( "pcbnew.AlignAndDistribute.alignRight",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-11-21 12:29:23 +00:00
|
|
|
_( "Align to Right" ), _( "Aligns selected items to the right edge" ),
|
|
|
|
BITMAPS::align_items_right );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2021-11-21 12:29:23 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::alignCenterY( "pcbnew.AlignAndDistribute.alignCenterY",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Align to Vertical Center" ), _( "Aligns selected items to the vertical center" ),
|
|
|
|
BITMAPS::align_items_center );
|
2021-08-12 13:03:52 +00:00
|
|
|
|
2021-11-21 12:29:23 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::alignCenterX( "pcbnew.AlignAndDistribute.alignCenterX",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Align to Horizontal Center" ), _( "Aligns selected items to the horizontal center" ),
|
|
|
|
BITMAPS::align_items_middle );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::distributeHorizontally( "pcbnew.AlignAndDistribute.distributeHorizontally",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-11-21 12:29:23 +00:00
|
|
|
_( "Distribute Horizontally" ), _( "Distributes selected items along the horizontal axis" ),
|
|
|
|
BITMAPS::distribute_horizontal );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::distributeVertically( "pcbnew.AlignAndDistribute.distributeVertically",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-11-21 12:29:23 +00:00
|
|
|
_( "Distribute Vertically" ), _( "Distributes selected items along the vertical axis" ),
|
|
|
|
BITMAPS::distribute_vertical );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
|
2021-01-16 23:17:32 +00:00
|
|
|
// PCB_POINT_EDITOR
|
2019-06-17 00:34:21 +00:00
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pointEditorAddCorner( "pcbnew.PointEditor.addCorner",
|
|
|
|
AS_GLOBAL,
|
2021-03-10 13:33:35 +00:00
|
|
|
#ifdef __WXMAC__
|
2022-04-25 09:01:02 +00:00
|
|
|
WXK_F1, "",
|
2021-03-10 13:33:35 +00:00
|
|
|
#else
|
2019-06-17 00:34:21 +00:00
|
|
|
WXK_INSERT, "",
|
2021-03-10 13:33:35 +00:00
|
|
|
#endif
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Create Corner" ), _( "Create a corner" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_corner );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pointEditorRemoveCorner( "pcbnew.PointEditor.removeCorner",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-18 18:33:30 +00:00
|
|
|
_( "Remove Corner" ), _( "Remove corner" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::delete_cursor );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::pointEditorArcKeepCenter( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.PointEditor.arcKeepCenter" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Keep arc center, adjust radius" ) )
|
|
|
|
.Tooltip( _( "Switch arc editing mode to keep center, adjust radius and endpoints" ) )
|
|
|
|
.Parameter( ARC_EDIT_MODE::KEEP_CENTER_ADJUST_ANGLE_RADIUS ) );
|
2022-12-05 18:27:00 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::pointEditorArcKeepEndpoint( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.PointEditor.arcKeepEndpoint" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Keep arc endpoints or direction of starting point" ) )
|
|
|
|
.Tooltip( _( "Switch arc editing mode to keep endpoints, or to keep direction of the other point" ) )
|
|
|
|
.Parameter( ARC_EDIT_MODE::KEEP_ENDPOINTS_OR_START_DIRECTION ) );
|
2022-12-05 18:27:00 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2020-09-24 01:05:46 +00:00
|
|
|
// GROUP_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::groupProperties( "pcbnew.Groups.groupProperties",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::pickNewGroupMember( "pcbnew.Groups.selectNewGroupMember",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
// 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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::move_relative );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectpositionRelativeItem( "pcbnew.PositionRelative.selectpositionRelativeItem",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
|
2020-12-16 13:31:32 +00:00
|
|
|
// PCB_SELECTION_TOOL
|
2019-06-17 00:34:21 +00:00
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectionActivate( "pcbnew.InteractiveSelection",
|
2021-03-08 02:59:07 +00:00
|
|
|
AS_GLOBAL, 0, "", "", "", // No description, not shown anywhere
|
|
|
|
BITMAPS::INVALID_BITMAP, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2023-07-06 15:22:24 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::selectionCursor( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveSelection.Cursor" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.Parameter<CLIENT_SELECTION_FILTER>( nullptr ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_tracks );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-13 18:04:57 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::unrouteSelected( "pcbnew.InteractiveSelection.unrouteSelected",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Unroute Selected" ),
|
|
|
|
_( "Unroutes selected items to the nearest pad." ),
|
|
|
|
BITMAPS::general_deletions );
|
|
|
|
|
2022-01-16 20:29:03 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::syncSelection( "pcbnew.InteractiveSelection.SyncSelection",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::syncSelectionWithNets( "pcbnew.InteractiveSelection.SyncSelectionWithNets",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
2023-06-28 22:19:43 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::selectNet( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveSelection.SelectNet" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Select All Tracks in Net" ) )
|
|
|
|
.Tooltip( _( "Selects all tracks & vias belonging to the same net." ) )
|
|
|
|
.Parameter<int>( 0 ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2023-06-28 22:19:43 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::deselectNet( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveSelection.DeselectNet" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Deselect All Tracks in Net" ) )
|
|
|
|
.Tooltip( _( "Deselects all tracks & vias belonging to the same net." ) )
|
|
|
|
.Parameter<int>( 0 ) );
|
2020-09-16 23:09:12 +00:00
|
|
|
|
2022-09-20 13:35:47 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::selectUnconnected( "pcbnew.InteractiveSelection.SelectUnconnected",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'O', "",
|
|
|
|
_( "Select All Unconnected Footprints" ),
|
|
|
|
_( "Selects all unconnected footprints belonging to each selected net." ) );
|
|
|
|
|
2022-09-22 18:25:44 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::grabUnconnected( "pcbnew.InteractiveSelection.GrabUnconnected",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + 'O', "",
|
|
|
|
_( "Grab Nearest Unconnected Footprints" ),
|
|
|
|
_( "Selects and initiates moving the nearest unconnected footprint on each selected net." ) );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::selectOnSheetFromEeschema( "pcbnew.InteractiveSelection.SelectOnSheet",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Sheet" ),
|
2020-10-21 03:48:06 +00:00
|
|
|
_( "Selects all footprints and tracks in the schematic sheet" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::select_same_sheet );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::selectSameSheet( "pcbnew.InteractiveSelection.SelectSameSheet",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Items in Same Hierarchical Sheet" ),
|
2020-10-21 03:48:06 +00:00
|
|
|
_( "Selects all footprints and tracks in the same schematic sheet" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::select_same_sheet );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-07-19 15:00:35 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::selectOnSchematic( "pcbnew.InteractiveSelection.SelectOnSchematic",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Select on Schematic" ),
|
|
|
|
_( "Selects corresponding items in Schematic editor" ),
|
|
|
|
BITMAPS::select_same_sheet );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::filterSelection( "pcbnew.InteractiveSelection.FilterSelection",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-01-26 23:15:29 +00:00
|
|
|
_( "Filter Selected Items..." ), _( "Remove items from the selection by type" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::filter );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
// ZONE_FILLER_TOOL
|
|
|
|
//
|
2023-07-12 21:25:15 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneFill( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.ZoneFiller.zoneFill" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Draft Fill Selected Zone(s)" ) )
|
|
|
|
.Tooltip( _( "Update copper fill of selected zone(s) without regard to other interacting zones" ) )
|
|
|
|
.Icon( BITMAPS::fill_zone )
|
|
|
|
.Parameter<ZONE*>( nullptr ) );
|
2022-11-29 17:22:25 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneFillAll( "pcbnew.ZoneFiller.zoneFillAll",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'B', LEGACY_HK_NAME( "Fill or Refill All Zones" ),
|
2021-07-09 21:13:09 +00:00
|
|
|
_( "Fill All Zones" ), _( "Update copper fill of all zones" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::fill_zone );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-02-24 09:59:54 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneFillDirty( "pcbnew.ZoneFiller.zoneFillDirty",
|
|
|
|
AS_CONTEXT );
|
|
|
|
|
2022-11-29 17:22:25 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneUnfill( "pcbnew.ZoneFiller.zoneUnfill",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Unfill Selected Zone(s)" ), _( "Remove copper fill from selected zone(s)" ),
|
|
|
|
BITMAPS::zone_unfill );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::zoneUnfillAll( "pcbnew.ZoneFiller.zoneUnfillAll",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'B', LEGACY_HK_NAME( "Remove Filled Areas in All Zones" ),
|
2021-07-09 21:13:09 +00:00
|
|
|
_( "Unfill All Zones" ), _( "Remove copper fill from all zones" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::zone_unfill );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
// AUTOPLACER_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::autoplaceSelectedComponents( "pcbnew.Autoplacer.autoplaceSelected",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Place Selected Footprints" ),
|
2021-01-06 19:47:51 +00:00
|
|
|
_( "Performs automatic placement of selected components" ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::autoplaceOffboardComponents( "pcbnew.Autoplacer.autoplaceOffboard",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Place Off-Board Footprints" ),
|
2021-01-06 19:47:51 +00:00
|
|
|
_( "Performs automatic placement of components outside board area" ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
// ROUTER_TOOL
|
|
|
|
//
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::routeSingleTrack( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveRouter.SingleTrack" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( 'X' )
|
|
|
|
.LegacyHotkeyName( "Add New Track" )
|
|
|
|
.MenuText( _( "Route Single Track" ) )
|
|
|
|
.Tooltip( _( "Route tracks" ) )
|
|
|
|
.Icon( BITMAPS::add_tracks )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routeDiffPair( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveRouter.DiffPair" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( '6' )
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2022-09-28 01:15:19 +00:00
|
|
|
.LegacyHotkeyName( "Route Differential Pair (Modern Toolset only)" )
|
|
|
|
.MenuText( _( "Route Differential Pair" ) )
|
|
|
|
.Tooltip( _( "Route differential pairs" ) )
|
|
|
|
.Icon( BITMAPS::ps_diff_pair )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( PNS::PNS_MODE_ROUTE_DIFF_PAIR ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerSettingsDialog( "pcbnew.InteractiveRouter.SettingsDialog",
|
|
|
|
AS_GLOBAL,
|
2022-12-29 15:31:12 +00:00
|
|
|
MD_CTRL + '<', LEGACY_HK_NAME( "Routing Options" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
_( "Interactive Router Settings..." ), _( "Open Interactive Router settings" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::tools );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerDiffPairDialog( "pcbnew.InteractiveRouter.DiffPairDialog",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Differential Pair Dimensions..." ), _( "Open Differential Pair Dimension settings" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::ps_diff_pair_gap );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::routerHighlightMode( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveRouter.HighlightMode" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Router Highlight Mode" ) )
|
|
|
|
.Tooltip( _( "Switch router to highlight mode" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( PNS::RM_MarkObstacles ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerShoveMode( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveRouter.ShoveMode" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Router Shove Mode" ) )
|
|
|
|
.Tooltip( _( "Switch router to shove mode" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( PNS::RM_Shove ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerWalkaroundMode( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveRouter.WalkaroundMode" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Router Walkaround Mode" ) )
|
|
|
|
.Tooltip( _( "Switch router to walkaround mode" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( PNS::RM_Walkaround ) );
|
2020-04-19 14:39:16 +00:00
|
|
|
|
2021-10-28 22:46:05 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::cycleRouterMode( "pcbnew.InteractiveRouter.CycleRouterMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Cycle Router Mode" ), _( "Cycle router to the next mode" ),
|
|
|
|
BITMAPS::INVALID_BITMAP);
|
|
|
|
|
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" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::select_layer_pair, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::routerTuneSingleTrace( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.LengthTuner.TuneSingleTrack" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( '7' )
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2022-09-28 01:15:19 +00:00
|
|
|
.LegacyHotkeyName( "Tune Single Track (Modern Toolset only)" )
|
|
|
|
.MenuText( _( "Tune length of a single track" ) )
|
|
|
|
.Tooltip( _( "Tune length of a single track" ) )
|
|
|
|
.Icon( BITMAPS::ps_tune_length )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( PNS::PNS_MODE_TUNE_SINGLE ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerTuneDiffPair( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.LengthTuner.TuneDiffPair" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( '8' )
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2022-09-28 01:15:19 +00:00
|
|
|
.LegacyHotkeyName( "Tune Differential Pair Length (Modern Toolset only)" )
|
|
|
|
.MenuText( _( "Tune length of a differential pair" ) )
|
|
|
|
.Tooltip( _( "Tune length of a differential pair" ) )
|
|
|
|
.Icon( BITMAPS::ps_diff_pair_tune_length )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerTuneDiffPairSkew( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.LengthTuner.TuneDiffPairSkew" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( '9' )
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2022-09-28 01:15:19 +00:00
|
|
|
.LegacyHotkeyName( "Tune Differential Pair Skew (Modern Toolset only)" )
|
|
|
|
.MenuText( _( "Tune skew of a differential pair" ) )
|
|
|
|
.Tooltip( _( "Tune skew of a differential pair" ) )
|
|
|
|
.Icon( BITMAPS::ps_diff_pair_tune_phase )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW ) );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerInlineDrag( "pcbnew.InteractiveRouter.InlineDrag",
|
2020-08-18 14:42:56 +00:00
|
|
|
AS_CONTEXT );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2021-06-19 10:36:37 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::routerUndoLastSegment( "pcbnew.InteractiveRouter.UndoLastSegment",
|
|
|
|
AS_CONTEXT,
|
|
|
|
WXK_BACK, "",
|
2021-09-01 21:05:17 +00:00
|
|
|
_( "Undo Last Segment" ), _( "Walks the current track back one segment." ) );
|
2021-06-19 10:36:37 +00:00
|
|
|
|
2022-07-14 16:38:39 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::routerContinueFromEnd( "pcbnew.InteractiveRouter.ContinueFromEnd",
|
|
|
|
AS_CONTEXT,
|
|
|
|
'E', "",
|
|
|
|
_( "Route From Other End" ),
|
|
|
|
_( "Commits current segments and starts next segment from nearest ratsnest end." ) );
|
|
|
|
|
2023-07-10 18:41:03 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::routerAttemptFinish( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveRouter.AttemptFinish" )
|
|
|
|
.Scope( AS_CONTEXT )
|
|
|
|
.DefaultHotkey( 'F' )
|
|
|
|
.MenuText( _( "Attempt Finish" ) )
|
|
|
|
.Tooltip( _( "Attempts to complete current route to nearest ratsnest end." ) )
|
|
|
|
.Parameter<bool*>( nullptr ) );
|
2022-07-14 16:38:39 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::routerRouteSelected( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveRouter.RouteSelected" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + 'X' )
|
|
|
|
.MenuText( _( "Route Selected" ) )
|
|
|
|
.Tooltip( _( "Sequentially route selected items from ratsnest anchor." ) )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerRouteSelectedFromEnd( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveRouter.RouteSelectedFromEnd" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + 'E' )
|
|
|
|
.MenuText( _( "Route Selected From Other End" ) )
|
|
|
|
.Tooltip( _( "Sequentially route selected items from other end of ratsnest anchor." ) )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
|
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::routerAutorouteSelected( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "pcbnew.InteractiveRouter.Autoroute" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + 'F' )
|
|
|
|
.MenuText( _( "Attempt Finish Selected (Autoroute)" ) )
|
|
|
|
.Tooltip( _( "Sequentially attempt to automatically route all selected pads." ) )
|
|
|
|
.Flags( AF_ACTIVATE )
|
|
|
|
.Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
|
2022-08-22 12:19:22 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
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." ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::break_line );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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." ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::drag_segment_withslope );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
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." ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::drag );
|
2021-05-11 15:22:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
// LENGTH_TUNER_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION PCB_ACTIONS::lengthTunerSettingsDialog( "pcbnew.LengthTuner.Settings",
|
|
|
|
AS_CONTEXT,
|
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
|
|
|
MD_CTRL + 'L', LEGACY_HK_NAME( "Length Tuning Settings (Modern Toolset only)" ),
|
|
|
|
_( "Length Tuning Settings..." ),
|
|
|
|
_( "Sets the length tuning parameters for currently routed item." ),
|
|
|
|
BITMAPS::router_len_tuner_setup );
|
2022-09-14 22:28:09 +00:00
|
|
|
|
|
|
|
TOOL_ACTION PCB_ACTIONS::ddAppendBoard( "pcbnew.Control.DdAppendBoard",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
|
2022-09-22 18:25:44 +00:00
|
|
|
TOOL_ACTION PCB_ACTIONS::ddImportFootprint( "pcbnew.Control.ddImportFootprint", AS_GLOBAL );
|
2023-08-17 13:25:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
const TOOL_EVENT PCB_EVENTS::SnappingModeChangedByKeyEvent( TC_MESSAGE, TA_ACTION,
|
|
|
|
"common.Interactive.snappingModeChangedByKey" );
|