2013-09-27 20:52:34 +02:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2016-05-04 14:59:14 +02: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.
|
2021-01-27 17:15:38 -05:00
|
|
|
*
|
2013-09-27 20:52:34 +02: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 13:42:08 +01:00
|
|
|
#ifndef __PCB_ACTIONS_H
|
|
|
|
#define __PCB_ACTIONS_H
|
2015-02-18 01:04:47 +01:00
|
|
|
|
2023-07-05 11:09:34 +01:00
|
|
|
#include <layer_ids.h>
|
2013-09-27 20:52:34 +02:00
|
|
|
#include <tool/tool_action.h>
|
2017-02-21 13:42:08 +01:00
|
|
|
#include <tool/actions.h>
|
2013-09-27 20:52:34 +02:00
|
|
|
|
2019-06-24 16:27:05 +01:00
|
|
|
enum class ZONE_MODE
|
|
|
|
{
|
|
|
|
ADD, ///< Add a new zone/keepout with fresh settings
|
|
|
|
CUTOUT, ///< Make a cutout to an existing zone
|
|
|
|
SIMILAR, ///< Add a new zone with the same settings as an existing one
|
|
|
|
GRAPHIC_POLYGON
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-09-27 20:52:34 +02:00
|
|
|
/**
|
2021-01-27 17:15:38 -05:00
|
|
|
* Gather all the actions that are shared by tools.
|
2013-09-27 20:52:34 +02:00
|
|
|
*
|
2021-01-27 17:15:38 -05:00
|
|
|
* The instance of PCB_ACTIONS is created inside of #ACTION_MANAGER object that registers
|
|
|
|
* the actions.
|
2013-09-27 20:52:34 +02:00
|
|
|
*/
|
2017-02-21 13:42:08 +01:00
|
|
|
class PCB_ACTIONS : public ACTIONS
|
2013-09-27 20:52:34 +02:00
|
|
|
{
|
|
|
|
public:
|
2023-07-05 11:09:34 +01:00
|
|
|
/**
|
|
|
|
* Translate a layer ID into the action that switches to that layer.
|
|
|
|
*
|
|
|
|
* @param aLayerID is the layer to switch to
|
|
|
|
* @return the action that will switch to the specified layer
|
|
|
|
*/
|
|
|
|
static TOOL_ACTION* LayerIDToAction( PCB_LAYER_ID aLayerID );
|
|
|
|
|
2014-03-24 08:45:05 +01:00
|
|
|
// Selection Tool
|
2013-09-27 20:52:34 +02:00
|
|
|
/// Activation of the selection tool
|
|
|
|
static TOOL_ACTION selectionActivate;
|
|
|
|
|
2014-07-09 13:50:27 +02:00
|
|
|
/// Select a single item under the cursor position
|
2014-11-21 11:49:28 +01:00
|
|
|
static TOOL_ACTION selectionCursor;
|
2014-07-09 13:50:27 +02:00
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Clear the current selection
|
2014-07-09 13:50:27 +02:00
|
|
|
static TOOL_ACTION selectionClear;
|
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Select an item (specified as the event parameter).
|
2014-11-21 11:50:13 +01:00
|
|
|
static TOOL_ACTION selectItem;
|
2019-04-12 20:18:45 +01:00
|
|
|
static TOOL_ACTION unselectItem;
|
2014-11-21 11:50:13 +01:00
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Select a list of items (specified as the event parameter)
|
2017-06-12 11:16:30 +02:00
|
|
|
static TOOL_ACTION selectItems;
|
|
|
|
static TOOL_ACTION unselectItems;
|
|
|
|
|
2022-01-16 20:29:03 +00:00
|
|
|
/// Sets selection to specified items, zooms to fit, if enabled
|
|
|
|
static TOOL_ACTION syncSelection;
|
|
|
|
|
|
|
|
/// Sets selection to specified items with connected nets, zooms to fit, if enabled
|
|
|
|
static TOOL_ACTION syncSelectionWithNets;
|
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Run a selection menu to select from a list of items
|
2018-01-28 09:35:33 +00:00
|
|
|
static TOOL_ACTION selectionMenu;
|
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Select tracks between junctions or expands an existing selection to pads or the
|
2019-11-22 19:29:07 +00:00
|
|
|
/// entire connection.
|
2015-03-10 09:36:04 +01:00
|
|
|
static TOOL_ACTION selectConnection;
|
|
|
|
|
2022-09-13 14:04:57 -04:00
|
|
|
/// Removes all tracks from the selected items to the first pad
|
|
|
|
static TOOL_ACTION unrouteSelected;
|
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Select all connections belonging to a single net.
|
2015-03-10 09:36:04 +01:00
|
|
|
static TOOL_ACTION selectNet;
|
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Remove all connections belonging to a single net from the active selection
|
2020-09-16 19:09:12 -04:00
|
|
|
static TOOL_ACTION deselectNet;
|
|
|
|
|
2022-09-20 09:35:47 -04:00
|
|
|
/// Select unconnected footprints from ratsnest of selection
|
|
|
|
static TOOL_ACTION selectUnconnected;
|
|
|
|
|
2022-09-22 14:25:44 -04:00
|
|
|
/// Select and move nearest unconnected footprint from ratsnest of selection
|
|
|
|
static TOOL_ACTION grabUnconnected;
|
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Select all components on sheet from Eeschema crossprobing.
|
2017-03-04 17:30:44 +01:00
|
|
|
static TOOL_ACTION selectOnSheetFromEeschema;
|
2017-03-03 00:42:23 +01:00
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Select all components on the same sheet as the selected footprint.
|
2017-02-08 17:32:41 +01:00
|
|
|
static TOOL_ACTION selectSameSheet;
|
2017-02-07 14:40:38 +08:00
|
|
|
|
2022-07-19 18:00:35 +03:00
|
|
|
/// Select symbols/pins on schematic corresponding to selected footprints/pads.
|
|
|
|
static TOOL_ACTION selectOnSchematic;
|
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Filter the items in the current selection (invokes dialog)
|
2017-02-07 14:40:38 +08:00
|
|
|
static TOOL_ACTION filterSelection;
|
|
|
|
|
2019-08-19 21:09:17 +01:00
|
|
|
/// move or drag an item
|
2017-08-03 17:53:07 +02:00
|
|
|
static TOOL_ACTION move;
|
|
|
|
|
2022-09-15 10:19:47 -04:00
|
|
|
/// move items one-by-one
|
|
|
|
static TOOL_ACTION moveIndividually;
|
|
|
|
|
2020-07-05 17:36:12 -04:00
|
|
|
/// move with a reference point
|
|
|
|
static TOOL_ACTION moveWithReference;
|
|
|
|
|
2020-10-25 17:09:32 -04:00
|
|
|
/// copy command with manual reference point selection
|
|
|
|
static TOOL_ACTION copyWithReference;
|
|
|
|
|
2019-04-12 20:18:45 +01:00
|
|
|
/// Rotation of selected objects
|
2017-02-04 13:09:50 +08:00
|
|
|
static TOOL_ACTION rotateCw;
|
|
|
|
static TOOL_ACTION rotateCcw;
|
2013-09-27 20:52:34 +02:00
|
|
|
|
|
|
|
/// Flipping of selected objects
|
|
|
|
static TOOL_ACTION flip;
|
2013-12-03 15:57:09 +01:00
|
|
|
|
2017-01-23 14:47:39 +08:00
|
|
|
/// Mirroring of selected items
|
2022-09-21 00:16:00 +01:00
|
|
|
static TOOL_ACTION mirrorH;
|
|
|
|
static TOOL_ACTION mirrorV;
|
2017-01-23 14:47:39 +08:00
|
|
|
|
2022-08-29 15:07:16 -04:00
|
|
|
/// Swapping of selected items
|
|
|
|
static TOOL_ACTION swap;
|
|
|
|
|
2022-09-27 16:30:17 +03:00
|
|
|
/// Pack and start moving selected footprints
|
|
|
|
static TOOL_ACTION packAndMoveFootprints;
|
|
|
|
|
2022-11-28 14:14:22 -05:00
|
|
|
// Compound Action Tool actions, e.g. Move Individually
|
|
|
|
static TOOL_ACTION skip;
|
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Update selected tracks & vias to the current track & via dimensions
|
2019-10-31 00:00:07 +00:00
|
|
|
static TOOL_ACTION changeTrackWidth;
|
|
|
|
|
2021-01-27 17:15:38 -05:00
|
|
|
/// Fillet (i.e. adds an arc tangent to) all selected straight tracks by a user defined radius
|
2020-10-20 21:23:05 +00:00
|
|
|
static TOOL_ACTION filletTracks;
|
2023-07-02 18:59:04 +01:00
|
|
|
|
|
|
|
/// Fillet (i.e. adds an arc tangent to) all selected straight lines by a user defined radius
|
2022-11-18 06:32:43 -08:00
|
|
|
static TOOL_ACTION filletLines;
|
2023-07-02 18:59:04 +01:00
|
|
|
/// Chamfer (i.e. adds a straight line) all selected straight lines by a user defined setback
|
|
|
|
static TOOL_ACTION chamferLines;
|
|
|
|
/// Extend selected lines to meet at a point
|
|
|
|
static TOOL_ACTION extendLines;
|
2020-10-20 21:23:05 +00:00
|
|
|
|
2013-12-03 15:57:09 +01:00
|
|
|
/// Activation of the edit tool
|
|
|
|
static TOOL_ACTION properties;
|
2013-12-09 11:01:05 +01:00
|
|
|
|
2015-02-12 03:22:24 +00:00
|
|
|
/// Activation of the exact move tool
|
|
|
|
static TOOL_ACTION moveExact;
|
|
|
|
|
|
|
|
/// Activation of the duplication tool with incrementing (e.g. pad number)
|
|
|
|
static TOOL_ACTION duplicateIncrement;
|
|
|
|
|
2013-12-09 11:01:05 +01:00
|
|
|
/// Deleting a BOARD_ITEM
|
|
|
|
static TOOL_ACTION remove;
|
2019-06-09 22:57:23 +01:00
|
|
|
static TOOL_ACTION deleteFull;
|
2014-02-06 15:09:38 +01:00
|
|
|
|
2019-06-03 21:06:58 +01:00
|
|
|
static TOOL_ACTION selectLayerPair;
|
|
|
|
|
2018-12-13 20:43:51 -07:00
|
|
|
/// Break a single track into two segments at the cursor
|
2017-08-03 17:53:07 +02:00
|
|
|
static TOOL_ACTION breakTrack;
|
2018-12-13 20:43:51 -07:00
|
|
|
|
2017-08-03 17:53:07 +02:00
|
|
|
static TOOL_ACTION drag45Degree;
|
|
|
|
static TOOL_ACTION dragFreeAngle;
|
|
|
|
|
2019-04-12 20:18:45 +01:00
|
|
|
// Drawing Tool Activations
|
2014-02-06 17:12:37 +01:00
|
|
|
static TOOL_ACTION drawLine;
|
2019-05-15 23:49:48 +01:00
|
|
|
static TOOL_ACTION drawPolygon;
|
2020-06-15 20:50:20 +01:00
|
|
|
static TOOL_ACTION drawRectangle;
|
2014-02-06 17:12:37 +01:00
|
|
|
static TOOL_ACTION drawCircle;
|
2014-02-10 10:58:58 +01:00
|
|
|
static TOOL_ACTION drawArc;
|
2022-02-08 14:29:54 -05:00
|
|
|
static TOOL_ACTION placeImage;
|
2014-07-09 14:01:06 +02:00
|
|
|
static TOOL_ACTION placeText;
|
2022-01-30 10:52:52 +00:00
|
|
|
static TOOL_ACTION drawTextBox;
|
2020-09-12 16:09:40 -04:00
|
|
|
static TOOL_ACTION drawAlignedDimension;
|
2020-09-16 20:54:58 -04:00
|
|
|
static TOOL_ACTION drawCenterDimension;
|
2021-07-13 19:46:33 +01:00
|
|
|
static TOOL_ACTION drawRadialDimension;
|
2020-09-21 22:32:40 -04:00
|
|
|
static TOOL_ACTION drawOrthogonalDimension;
|
2020-09-12 16:09:40 -04:00
|
|
|
static TOOL_ACTION drawLeader;
|
2014-02-13 16:10:32 +01:00
|
|
|
static TOOL_ACTION drawZone;
|
2017-04-22 17:46:31 +02:00
|
|
|
static TOOL_ACTION drawVia;
|
2020-09-21 19:32:07 -04:00
|
|
|
static TOOL_ACTION drawRuleArea;
|
2017-02-06 13:59:55 +08:00
|
|
|
static TOOL_ACTION drawZoneCutout;
|
2017-02-06 15:37:13 +08:00
|
|
|
static TOOL_ACTION drawSimilarZone;
|
2021-03-13 20:19:46 +00:00
|
|
|
static TOOL_ACTION placeCharacteristics;
|
|
|
|
static TOOL_ACTION placeStackup;
|
2021-01-25 13:58:30 +00:00
|
|
|
static TOOL_ACTION placeFootprint;
|
2018-11-01 10:47:41 +01:00
|
|
|
static TOOL_ACTION placeImportedGraphics;
|
2014-07-09 14:01:06 +02:00
|
|
|
static TOOL_ACTION setAnchor;
|
2019-06-17 01:34:21 +01:00
|
|
|
static TOOL_ACTION deleteLastPoint;
|
2020-04-24 18:34:05 +01:00
|
|
|
static TOOL_ACTION closeOutline;
|
2014-07-09 14:01:06 +02:00
|
|
|
|
2014-08-04 14:23:19 +02:00
|
|
|
/// Increase width of currently drawn line
|
|
|
|
static TOOL_ACTION incWidth;
|
|
|
|
|
|
|
|
/// Decrease width of currently drawn line
|
|
|
|
static TOOL_ACTION decWidth;
|
|
|
|
|
|
|
|
/// Switch posture when drawing arc
|
|
|
|
static TOOL_ACTION arcPosture;
|
|
|
|
|
2023-08-17 09:25:26 -04:00
|
|
|
/// Snapping controls
|
|
|
|
static TOOL_ACTION magneticSnapActiveLayer;
|
|
|
|
static TOOL_ACTION magneticSnapAllLayers;
|
|
|
|
static TOOL_ACTION magneticSnapToggle;
|
|
|
|
|
2014-03-24 08:45:05 +01:00
|
|
|
// Push and Shove Router Tool
|
2015-02-18 17:53:46 +01:00
|
|
|
|
2014-02-17 18:21:00 +01:00
|
|
|
/// Activation of the Push and Shove router
|
2019-06-24 16:27:05 +01:00
|
|
|
static TOOL_ACTION routeSingleTrack;
|
2015-02-18 17:53:46 +01:00
|
|
|
|
2015-02-18 01:29:54 +01:00
|
|
|
/// Activation of the Push and Shove router (differential pair mode)
|
2019-06-24 16:27:05 +01:00
|
|
|
static TOOL_ACTION routeDiffPair;
|
2015-02-18 01:29:54 +01:00
|
|
|
|
|
|
|
/// Activation of the Push and Shove router (tune single line mode)
|
2019-06-03 21:06:58 +01:00
|
|
|
static TOOL_ACTION routerTuneSingleTrace;
|
2015-02-18 01:29:54 +01:00
|
|
|
|
|
|
|
/// Activation of the Push and Shove router (diff pair tuning mode)
|
2019-06-03 21:06:58 +01:00
|
|
|
static TOOL_ACTION routerTuneDiffPair;
|
2015-02-18 17:53:46 +01:00
|
|
|
|
2015-02-18 01:29:54 +01:00
|
|
|
/// Activation of the Push and Shove router (skew tuning mode)
|
2019-06-03 21:06:58 +01:00
|
|
|
static TOOL_ACTION routerTuneDiffPairSkew;
|
2015-02-18 01:29:54 +01:00
|
|
|
|
2020-02-07 20:57:24 +01:00
|
|
|
static TOOL_ACTION routerUndoLastSegment;
|
|
|
|
|
2022-07-14 12:38:39 -04:00
|
|
|
static TOOL_ACTION routerContinueFromEnd;
|
|
|
|
static TOOL_ACTION routerAttemptFinish;
|
2022-08-22 08:19:22 -04:00
|
|
|
static TOOL_ACTION routerRouteSelected;
|
|
|
|
static TOOL_ACTION routerRouteSelectedFromEnd;
|
|
|
|
static TOOL_ACTION routerAutorouteSelected;
|
2022-07-14 12:38:39 -04:00
|
|
|
|
2015-02-18 01:29:54 +01:00
|
|
|
/// Activation of the Push and Shove settings dialogs
|
2019-06-03 21:06:58 +01:00
|
|
|
static TOOL_ACTION routerSettingsDialog;
|
|
|
|
static TOOL_ACTION routerDiffPairDialog;
|
2021-05-11 17:22:42 +02:00
|
|
|
static TOOL_ACTION lengthTunerSettingsDialog;
|
2015-02-18 17:53:46 +01:00
|
|
|
|
2020-04-19 15:39:16 +01:00
|
|
|
/// Actions to enable switching modes via hotkey assignments
|
|
|
|
static TOOL_ACTION routerHighlightMode;
|
|
|
|
static TOOL_ACTION routerShoveMode;
|
|
|
|
static TOOL_ACTION routerWalkaroundMode;
|
2021-10-28 22:46:05 +00:00
|
|
|
static TOOL_ACTION cycleRouterMode;
|
2015-02-18 01:29:54 +01:00
|
|
|
|
|
|
|
/// Activation of the Push and Shove router (inline dragging mode)
|
|
|
|
static TOOL_ACTION routerInlineDrag;
|
2017-08-30 22:35:30 -04:00
|
|
|
|
2014-03-24 08:45:05 +01:00
|
|
|
// Point Editor
|
2015-06-19 17:32:33 +02:00
|
|
|
static TOOL_ACTION pointEditorAddCorner;
|
|
|
|
static TOOL_ACTION pointEditorRemoveCorner;
|
2014-07-09 16:50:31 +02:00
|
|
|
|
2022-12-05 21:27:00 +03:00
|
|
|
static TOOL_ACTION pointEditorArcKeepCenter;
|
|
|
|
static TOOL_ACTION pointEditorArcKeepEndpoint;
|
|
|
|
|
2023-08-05 16:43:10 +01:00
|
|
|
static TOOL_ACTION pointEditorMoveCorner;
|
|
|
|
static TOOL_ACTION pointEditorMoveMidpoint;
|
|
|
|
|
2022-12-05 21:27:00 +03:00
|
|
|
|
2020-09-24 02:05:46 +01:00
|
|
|
// Group Tool
|
|
|
|
static TOOL_ACTION groupProperties;
|
|
|
|
static TOOL_ACTION pickNewGroupMember;
|
|
|
|
|
|
|
|
|
|
|
|
// Placement Tool
|
2014-07-09 14:23:13 +02:00
|
|
|
static TOOL_ACTION alignTop;
|
|
|
|
static TOOL_ACTION alignBottom;
|
|
|
|
static TOOL_ACTION alignLeft;
|
|
|
|
static TOOL_ACTION alignRight;
|
2018-02-08 17:01:36 +01:00
|
|
|
static TOOL_ACTION alignCenterX;
|
|
|
|
static TOOL_ACTION alignCenterY;
|
2014-07-09 14:23:13 +02:00
|
|
|
static TOOL_ACTION distributeHorizontally;
|
|
|
|
static TOOL_ACTION distributeVertically;
|
|
|
|
|
2017-05-10 23:55:03 +10:00
|
|
|
// Position Relative Tool
|
|
|
|
/// Activation of the position relative tool
|
|
|
|
static TOOL_ACTION positionRelative;
|
2017-02-20 13:10:20 -05:00
|
|
|
|
2017-05-10 23:55:03 +10:00
|
|
|
/// Selection of anchor item for position relative tool
|
|
|
|
static TOOL_ACTION selectpositionRelativeItem;
|
2014-03-24 08:45:05 +01:00
|
|
|
|
|
|
|
// Display modes
|
2019-05-15 23:49:48 +01:00
|
|
|
static TOOL_ACTION showRatsnest;
|
2018-04-30 09:52:49 +02:00
|
|
|
static TOOL_ACTION ratsnestLineMode;
|
2021-10-04 13:42:08 +01:00
|
|
|
static TOOL_ACTION netColorModeCycle;
|
|
|
|
static TOOL_ACTION ratsnestModeCycle;
|
2014-03-24 08:45:05 +01:00
|
|
|
static TOOL_ACTION trackDisplayMode;
|
|
|
|
static TOOL_ACTION padDisplayMode;
|
|
|
|
static TOOL_ACTION viaDisplayMode;
|
2021-07-26 18:56:11 +01:00
|
|
|
static TOOL_ACTION zoneDisplayFilled;
|
|
|
|
static TOOL_ACTION zoneDisplayOutline;
|
|
|
|
static TOOL_ACTION zoneDisplayFractured;
|
|
|
|
static TOOL_ACTION zoneDisplayTriangulated;
|
2019-06-21 11:26:59 +01:00
|
|
|
static TOOL_ACTION zoneDisplayToggle;
|
2020-05-23 18:14:49 +01:00
|
|
|
static TOOL_ACTION showPadNumbers;
|
2014-03-24 08:45:05 +01:00
|
|
|
|
|
|
|
// Layer control
|
|
|
|
static TOOL_ACTION layerTop;
|
|
|
|
static TOOL_ACTION layerInner1;
|
|
|
|
static TOOL_ACTION layerInner2;
|
|
|
|
static TOOL_ACTION layerInner3;
|
|
|
|
static TOOL_ACTION layerInner4;
|
|
|
|
static TOOL_ACTION layerInner5;
|
|
|
|
static TOOL_ACTION layerInner6;
|
2019-06-21 11:43:39 +01:00
|
|
|
static TOOL_ACTION layerInner7;
|
|
|
|
static TOOL_ACTION layerInner8;
|
|
|
|
static TOOL_ACTION layerInner9;
|
|
|
|
static TOOL_ACTION layerInner10;
|
|
|
|
static TOOL_ACTION layerInner11;
|
|
|
|
static TOOL_ACTION layerInner12;
|
|
|
|
static TOOL_ACTION layerInner13;
|
|
|
|
static TOOL_ACTION layerInner14;
|
|
|
|
static TOOL_ACTION layerInner15;
|
|
|
|
static TOOL_ACTION layerInner16;
|
|
|
|
static TOOL_ACTION layerInner17;
|
|
|
|
static TOOL_ACTION layerInner18;
|
|
|
|
static TOOL_ACTION layerInner19;
|
|
|
|
static TOOL_ACTION layerInner20;
|
|
|
|
static TOOL_ACTION layerInner21;
|
|
|
|
static TOOL_ACTION layerInner22;
|
|
|
|
static TOOL_ACTION layerInner23;
|
|
|
|
static TOOL_ACTION layerInner24;
|
|
|
|
static TOOL_ACTION layerInner25;
|
|
|
|
static TOOL_ACTION layerInner26;
|
|
|
|
static TOOL_ACTION layerInner27;
|
|
|
|
static TOOL_ACTION layerInner28;
|
|
|
|
static TOOL_ACTION layerInner29;
|
|
|
|
static TOOL_ACTION layerInner30;
|
2014-03-24 08:45:05 +01:00
|
|
|
static TOOL_ACTION layerBottom;
|
|
|
|
static TOOL_ACTION layerNext;
|
|
|
|
static TOOL_ACTION layerPrev;
|
|
|
|
static TOOL_ACTION layerAlphaInc;
|
|
|
|
static TOOL_ACTION layerAlphaDec;
|
2015-05-18 13:48:11 +02:00
|
|
|
static TOOL_ACTION layerToggle;
|
2014-03-24 08:45:05 +01:00
|
|
|
|
2014-07-09 16:25:50 +02:00
|
|
|
static TOOL_ACTION layerChanged; // notification
|
|
|
|
|
2019-06-03 21:06:58 +01:00
|
|
|
static TOOL_ACTION flipBoard;
|
|
|
|
|
2014-03-24 08:45:05 +01:00
|
|
|
// Track & via size control
|
|
|
|
static TOOL_ACTION trackWidthInc;
|
|
|
|
static TOOL_ACTION trackWidthDec;
|
|
|
|
static TOOL_ACTION viaSizeInc;
|
|
|
|
static TOOL_ACTION viaSizeDec;
|
|
|
|
|
2014-05-13 11:22:51 +02:00
|
|
|
static TOOL_ACTION trackViaSizeChanged; // notification
|
|
|
|
|
2022-09-03 19:29:02 +01:00
|
|
|
static TOOL_ACTION assignNetClass;
|
|
|
|
|
2014-07-09 16:57:01 +02:00
|
|
|
// Zone actions
|
2022-11-29 17:22:25 +00:00
|
|
|
static TOOL_ACTION zoneFill;
|
2014-07-09 16:57:01 +02:00
|
|
|
static TOOL_ACTION zoneFillAll;
|
2022-02-24 09:59:54 +00:00
|
|
|
static TOOL_ACTION zoneFillDirty;
|
2022-11-29 17:22:25 +00:00
|
|
|
static TOOL_ACTION zoneUnfill;
|
2014-12-08 23:41:47 +01:00
|
|
|
static TOOL_ACTION zoneUnfillAll;
|
2015-06-19 17:32:33 +02:00
|
|
|
static TOOL_ACTION zoneMerge;
|
2014-07-09 15:02:56 +02:00
|
|
|
|
2017-02-06 11:45:56 +08:00
|
|
|
/// Duplicate zone onto another layer
|
|
|
|
static TOOL_ACTION zoneDuplicate;
|
|
|
|
|
2021-03-19 16:06:29 -07:00
|
|
|
/// Scripting Actions
|
|
|
|
static TOOL_ACTION pluginsReload;
|
|
|
|
static TOOL_ACTION pluginsShowFolder;
|
|
|
|
|
2019-06-03 21:06:58 +01:00
|
|
|
// Global edit tool
|
2019-06-04 21:59:59 +01:00
|
|
|
static TOOL_ACTION boardSetup;
|
2019-06-03 21:06:58 +01:00
|
|
|
static TOOL_ACTION editTracksAndVias;
|
|
|
|
static TOOL_ACTION editTextAndGraphics;
|
2023-05-12 22:03:54 +01:00
|
|
|
static TOOL_ACTION editTeardrops;
|
2019-06-03 21:06:58 +01:00
|
|
|
static TOOL_ACTION globalDeletions;
|
|
|
|
static TOOL_ACTION cleanupTracksAndVias;
|
2020-06-17 13:46:50 +01:00
|
|
|
static TOOL_ACTION cleanupGraphics;
|
2019-06-03 21:06:58 +01:00
|
|
|
static TOOL_ACTION updateFootprint;
|
|
|
|
static TOOL_ACTION updateFootprints;
|
|
|
|
static TOOL_ACTION changeFootprint;
|
|
|
|
static TOOL_ACTION changeFootprints;
|
|
|
|
static TOOL_ACTION swapLayers;
|
2020-07-27 12:41:50 -07:00
|
|
|
static TOOL_ACTION removeUnusedPads;
|
2019-06-03 21:06:58 +01:00
|
|
|
|
2019-06-04 21:59:59 +01:00
|
|
|
static TOOL_ACTION importNetlist;
|
|
|
|
|
|
|
|
static TOOL_ACTION importSpecctraSession;
|
|
|
|
static TOOL_ACTION exportSpecctraDSN;
|
2019-12-23 18:11:45 +01:00
|
|
|
|
2019-06-04 21:59:59 +01:00
|
|
|
static TOOL_ACTION generateGerbers;
|
|
|
|
static TOOL_ACTION generateDrillFiles;
|
|
|
|
static TOOL_ACTION generatePosFile;
|
|
|
|
static TOOL_ACTION generateReportFile;
|
|
|
|
static TOOL_ACTION generateD356File;
|
|
|
|
static TOOL_ACTION generateBOM;
|
2019-12-23 18:11:45 +01:00
|
|
|
|
2019-06-03 14:49:17 +01:00
|
|
|
static TOOL_ACTION listNets;
|
|
|
|
static TOOL_ACTION runDRC;
|
2019-06-04 19:46:52 +01:00
|
|
|
|
2020-06-27 12:57:40 +01:00
|
|
|
static TOOL_ACTION editFpInFpEditor;
|
2021-10-25 09:23:22 -07:00
|
|
|
static TOOL_ACTION editLibFpInFpEditor;
|
|
|
|
|
2019-06-04 22:29:51 +01:00
|
|
|
static TOOL_ACTION showLayersManager;
|
2019-06-03 14:49:17 +01:00
|
|
|
static TOOL_ACTION showPythonConsole;
|
|
|
|
|
2014-07-09 15:02:56 +02:00
|
|
|
// Module editor tools
|
2019-06-04 00:50:44 +01:00
|
|
|
|
2021-03-29 12:01:03 +01:00
|
|
|
static TOOL_ACTION showFootprintTree;
|
|
|
|
static TOOL_ACTION hideFootprintTree;
|
2019-12-23 18:11:45 +01:00
|
|
|
|
2019-06-04 19:46:52 +01:00
|
|
|
// We don't use ACTION::new here because we need to distinguish between New Library
|
|
|
|
// and New Footprint.
|
|
|
|
static TOOL_ACTION newFootprint;
|
2019-12-23 18:11:45 +01:00
|
|
|
|
2019-06-04 19:46:52 +01:00
|
|
|
// Create a new footprint using the Footprint Wizard
|
|
|
|
static TOOL_ACTION createFootprint;
|
|
|
|
|
|
|
|
// We don't use ACTION::save here because we need to distinguish between saving to
|
|
|
|
// the library and saving to the board (which have different tooltips and icons).
|
2019-06-04 00:50:44 +01:00
|
|
|
static TOOL_ACTION saveToBoard;
|
|
|
|
static TOOL_ACTION saveToLibrary;
|
|
|
|
|
2019-06-06 12:45:28 +01:00
|
|
|
static TOOL_ACTION editFootprint;
|
2022-04-21 11:57:15 +01:00
|
|
|
static TOOL_ACTION duplicateFootprint;
|
|
|
|
static TOOL_ACTION renameFootprint;
|
2019-06-04 00:50:44 +01:00
|
|
|
static TOOL_ACTION deleteFootprint;
|
2019-06-06 12:45:28 +01:00
|
|
|
static TOOL_ACTION cutFootprint;
|
|
|
|
static TOOL_ACTION copyFootprint;
|
|
|
|
static TOOL_ACTION pasteFootprint;
|
|
|
|
static TOOL_ACTION importFootprint;
|
|
|
|
static TOOL_ACTION exportFootprint;
|
2019-12-23 18:11:45 +01:00
|
|
|
|
2019-06-04 00:50:44 +01:00
|
|
|
static TOOL_ACTION footprintProperties;
|
2019-06-04 19:46:52 +01:00
|
|
|
static TOOL_ACTION defaultPadProperties;
|
2019-06-04 00:50:44 +01:00
|
|
|
|
2020-11-21 20:42:27 +00:00
|
|
|
static TOOL_ACTION checkFootprint;
|
|
|
|
|
2014-07-09 15:02:56 +02:00
|
|
|
/// Activation of the drawing tool (placing a PAD)
|
|
|
|
static TOOL_ACTION placePad;
|
|
|
|
|
2020-06-27 12:57:40 +01:00
|
|
|
static TOOL_ACTION explodePad;
|
|
|
|
static TOOL_ACTION recombinePad;
|
2017-10-19 23:14:01 +02:00
|
|
|
|
2014-07-09 15:02:56 +02:00
|
|
|
/// Tool for quick pad enumeration
|
|
|
|
static TOOL_ACTION enumeratePads;
|
|
|
|
|
2015-02-12 03:22:24 +00:00
|
|
|
/// Tool for creating an array of objects
|
|
|
|
static TOOL_ACTION createArray;
|
|
|
|
|
2020-11-14 21:21:54 +00:00
|
|
|
/// Display footprint graphics as outlines
|
2020-05-26 23:21:38 +01:00
|
|
|
static TOOL_ACTION graphicsOutlines;
|
2014-07-09 15:10:32 +02:00
|
|
|
|
2020-05-26 23:21:38 +01:00
|
|
|
/// Display texts as lines
|
|
|
|
static TOOL_ACTION textOutlines;
|
2019-12-23 18:11:45 +01:00
|
|
|
|
2017-01-22 05:06:18 +08:00
|
|
|
// Pad tools
|
2019-06-04 00:50:44 +01:00
|
|
|
|
2017-01-22 05:06:18 +08:00
|
|
|
/// Copy the selected pad's settings to the board design settings
|
2017-02-03 19:56:56 +01:00
|
|
|
static TOOL_ACTION copyPadSettings;
|
2017-01-22 05:06:18 +08:00
|
|
|
|
2019-06-04 19:46:52 +01:00
|
|
|
/// Copy the default pad settings to the selected pad
|
2017-02-03 19:56:56 +01:00
|
|
|
static TOOL_ACTION applyPadSettings;
|
2017-01-22 05:06:18 +08:00
|
|
|
|
2020-11-14 21:21:54 +00:00
|
|
|
/// Copy the current pad's settings to other pads in the footprint or on the board
|
2017-01-22 05:06:18 +08:00
|
|
|
static TOOL_ACTION pushPadSettings;
|
|
|
|
|
2017-02-23 14:23:17 +08:00
|
|
|
// Microwave tools
|
|
|
|
static TOOL_ACTION microwaveCreateGap;
|
|
|
|
|
|
|
|
static TOOL_ACTION microwaveCreateStub;
|
|
|
|
|
|
|
|
static TOOL_ACTION microwaveCreateStubArc;
|
|
|
|
|
|
|
|
static TOOL_ACTION microwaveCreateFunctionShape;
|
|
|
|
|
|
|
|
static TOOL_ACTION microwaveCreateLine;
|
|
|
|
|
2022-05-29 14:16:13 +01:00
|
|
|
// Constrained drawing
|
|
|
|
static TOOL_ACTION toggleHV45Mode;
|
2021-09-02 15:32:15 -07:00
|
|
|
|
2016-05-09 10:29:06 +02:00
|
|
|
// Locking
|
|
|
|
static TOOL_ACTION toggleLock;
|
|
|
|
static TOOL_ACTION lock;
|
|
|
|
static TOOL_ACTION unlock;
|
|
|
|
|
2020-08-11 19:37:07 +00:00
|
|
|
// Grouping
|
2021-02-16 20:45:25 +00:00
|
|
|
static TOOL_ACTION group;
|
|
|
|
static TOOL_ACTION ungroup;
|
|
|
|
static TOOL_ACTION removeFromGroup;
|
2020-08-11 19:37:07 +00:00
|
|
|
static TOOL_ACTION groupEnter;
|
2020-09-02 02:09:34 +01:00
|
|
|
static TOOL_ACTION groupLeave;
|
2020-08-11 19:37:07 +00:00
|
|
|
|
2014-03-24 08:45:05 +01:00
|
|
|
// Miscellaneous
|
2014-07-15 11:50:00 +02:00
|
|
|
static TOOL_ACTION selectionTool;
|
2015-06-18 17:51:51 +02:00
|
|
|
static TOOL_ACTION pickerTool;
|
2017-03-09 17:09:13 +08:00
|
|
|
static TOOL_ACTION measureTool;
|
2020-07-10 21:06:17 -04:00
|
|
|
static TOOL_ACTION drillOrigin;
|
|
|
|
static TOOL_ACTION placeFileOrigin;
|
|
|
|
static TOOL_ACTION appendBoard;
|
|
|
|
static TOOL_ACTION showEeschema;
|
|
|
|
static TOOL_ACTION boardStatistics;
|
2020-04-20 21:44:17 -04:00
|
|
|
static TOOL_ACTION boardReannotate;
|
2020-08-11 15:01:26 +01:00
|
|
|
static TOOL_ACTION repairBoard;
|
2021-05-21 17:52:11 +01:00
|
|
|
static TOOL_ACTION repairFootprint;
|
2020-09-10 20:58:05 +01:00
|
|
|
static TOOL_ACTION inspectClearance;
|
2020-09-23 00:16:02 +01:00
|
|
|
static TOOL_ACTION inspectConstraints;
|
2023-03-09 17:41:18 +00:00
|
|
|
static TOOL_ACTION diffFootprint;
|
2023-07-11 14:05:39 +01:00
|
|
|
static TOOL_ACTION showFootprintAssociations;
|
2020-09-23 00:16:02 +01:00
|
|
|
|
2020-07-10 21:06:17 -04:00
|
|
|
// Appearance controls
|
2021-05-29 11:53:55 -04:00
|
|
|
static TOOL_ACTION clearHighlight; // Turns off highlight and resets previous highlight
|
|
|
|
static TOOL_ACTION highlightNet; // Highlights a net by code (cross-probe highlight)
|
|
|
|
static TOOL_ACTION toggleLastNetHighlight; // Toggles between current and previous highlight
|
|
|
|
static TOOL_ACTION toggleNetHighlight; // Toggles between highlight off and highlight on
|
|
|
|
static TOOL_ACTION highlightNetSelection; // Turns on highlight and takes net from selection
|
|
|
|
static TOOL_ACTION highlightItem; // Select component via cross-probe
|
2019-01-01 14:54:10 -07:00
|
|
|
|
|
|
|
// Ratsnest
|
2022-09-03 19:29:02 +01:00
|
|
|
static TOOL_ACTION hideNetInRatsnest;
|
|
|
|
static TOOL_ACTION showNetInRatsnest;
|
2019-05-15 23:49:48 +01:00
|
|
|
static TOOL_ACTION localRatsnestTool;
|
2022-09-03 19:29:02 +01:00
|
|
|
static TOOL_ACTION hideLocalRatsnest;
|
2019-01-01 14:54:10 -07:00
|
|
|
static TOOL_ACTION updateLocalRatsnest;
|
2014-03-24 08:45:05 +01:00
|
|
|
|
2014-10-13 15:25:16 +02:00
|
|
|
/// Find an item
|
|
|
|
static TOOL_ACTION find;
|
|
|
|
|
2014-10-13 15:22:14 +02:00
|
|
|
/// Find an item and start moving
|
2019-07-26 13:19:17 -06:00
|
|
|
static TOOL_ACTION getAndPlace;
|
2014-10-13 15:22:14 +02:00
|
|
|
|
2018-08-24 12:54:45 +02:00
|
|
|
static TOOL_ACTION autoplaceOffboardComponents;
|
|
|
|
static TOOL_ACTION autoplaceSelectedComponents;
|
2015-02-18 01:10:20 +01:00
|
|
|
|
2018-11-13 08:30:56 -05:00
|
|
|
// convert tool
|
|
|
|
static TOOL_ACTION convertToPoly;
|
|
|
|
static TOOL_ACTION convertToZone;
|
|
|
|
static TOOL_ACTION convertToKeepout;
|
|
|
|
static TOOL_ACTION convertToLines;
|
|
|
|
static TOOL_ACTION convertToArc;
|
|
|
|
static TOOL_ACTION convertToTracks;
|
2022-09-14 22:28:09 +00:00
|
|
|
|
|
|
|
/// Drag and drop
|
|
|
|
static TOOL_ACTION ddAppendBoard;
|
|
|
|
static TOOL_ACTION ddImportFootprint;
|
2023-08-17 09:25:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class PCB_EVENTS
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/// Hotkey feedback
|
|
|
|
const static TOOL_EVENT SnappingModeChangedByKeyEvent;
|
2013-09-27 20:52:34 +02:00
|
|
|
};
|
2015-02-18 01:04:47 +01:00
|
|
|
|
|
|
|
#endif
|