KiCad PCB EDA Suite
pcb_actions.cpp
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2013-2016 CERN
5  * Copyright (C) 2016-2019 KiCad Developers, see AUTHORS.txt for contributors.
6  * @author Maciej Suminski <maciej.suminski@cern.ch>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, you may find one here:
20  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21  * or you may search the http://www.gnu.org website for the version 2 license,
22  * or you may write to the Free Software Foundation, Inc.,
23  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24  */
25 
26 #include "pcb_actions.h"
27 #include <pcbnew_id.h>
28 #include <bitmaps.h>
30 #include <tool/tool_manager.h>
31 #include <router/pns_router.h>
32 
34 {
35  switch( aId )
36  {
39  }
40 
41  return OPT<TOOL_EVENT>();
42 }
43 
44 
45 // Actions, being statically-defined, require specialized I18N handling. We continue to
46 // use the _() macro so that string harvesting by the I18N framework doesn't have to be
47 // specialized, but we don't translate on initialization and instead do it in the getters.
48 
49 #undef _
50 #define _(s) s
51 
52 
53 // DRAWING_TOOL
54 //
55 TOOL_ACTION PCB_ACTIONS::drawLine( "pcbnew.InteractiveDrawing.line",
56  AS_GLOBAL,
57  MD_SHIFT + MD_CTRL + 'L', LEGACY_HK_NAME( "Draw Line" ),
58  _( "Draw Line" ), _( "Draw a line" ),
59  add_graphical_segments_xpm, AF_ACTIVATE );
60 
61 TOOL_ACTION PCB_ACTIONS::drawPolygon( "pcbnew.InteractiveDrawing.graphicPolygon",
62  AS_GLOBAL,
63  MD_SHIFT + MD_CTRL + 'P', LEGACY_HK_NAME( "Draw Graphic Polygon" ),
64  _( "Draw Graphic Polygon" ), _( "Draw a graphic polygon" ),
65  add_graphical_polygon_xpm, AF_ACTIVATE, (void*) ZONE_MODE::GRAPHIC_POLYGON );
66 
67 TOOL_ACTION PCB_ACTIONS::drawCircle( "pcbnew.InteractiveDrawing.circle",
68  AS_GLOBAL,
69  MD_SHIFT + MD_CTRL + 'C', LEGACY_HK_NAME( "Draw Circle" ),
70  _( "Draw Circle" ), _( "Draw a circle" ),
71  add_circle_xpm, AF_ACTIVATE );
72 
73 TOOL_ACTION PCB_ACTIONS::drawArc( "pcbnew.InteractiveDrawing.arc",
74  AS_GLOBAL,
75  MD_SHIFT + MD_CTRL + 'A', LEGACY_HK_NAME( "Draw Arc" ),
76  _( "Draw Arc" ), _( "Draw an arc" ),
77  add_arc_xpm, AF_ACTIVATE );
78 
79 TOOL_ACTION PCB_ACTIONS::placeText( "pcbnew.InteractiveDrawing.text",
80  AS_GLOBAL,
81  MD_SHIFT + MD_CTRL + 'T', LEGACY_HK_NAME( "Add Text" ),
82  _( "Add Text" ), _( "Add a text item" ),
84 
85 TOOL_ACTION PCB_ACTIONS::drawDimension( "pcbnew.InteractiveDrawing.dimension",
86  AS_GLOBAL,
87  MD_SHIFT + MD_CTRL + 'H', LEGACY_HK_NAME( "Add Dimension" ),
88  _( "Add Dimension" ), _( "Add a dimension" ),
89  add_dimension_xpm, AF_ACTIVATE );
90 
91 TOOL_ACTION PCB_ACTIONS::drawZone( "pcbnew.InteractiveDrawing.zone",
92  AS_GLOBAL,
93 #ifdef __WXOSX_MAC__
94  MD_ALT + 'Z',
95 #else
96  MD_SHIFT + MD_CTRL + 'Z',
97 #endif
98  LEGACY_HK_NAME( "Add Filled Zone" ),
99  _( "Add Filled Zone" ), _( "Add a filled zone" ),
100  add_zone_xpm, AF_ACTIVATE, (void*) ZONE_MODE::ADD );
101 
102 TOOL_ACTION PCB_ACTIONS::drawVia( "pcbnew.InteractiveDrawing.via",
103  AS_GLOBAL,
104  MD_SHIFT + MD_CTRL + 'V', LEGACY_HK_NAME( "Add Vias" ),
105  _( "Add Vias" ), _( "Add free-standing vias" ),
106  add_via_xpm, AF_ACTIVATE );
107 
108 TOOL_ACTION PCB_ACTIONS::drawZoneKeepout( "pcbnew.InteractiveDrawing.keepout",
109  AS_GLOBAL,
110  MD_SHIFT + MD_CTRL + 'K', LEGACY_HK_NAME( "Add Keepout Area" ),
111  _( "Add Keepout Area" ), _( "Add a keepout area" ),
112  add_keepout_area_xpm, AF_ACTIVATE, (void*) ZONE_MODE::ADD );
113 
114 TOOL_ACTION PCB_ACTIONS::drawZoneCutout( "pcbnew.InteractiveDrawing.zoneCutout",
115  AS_GLOBAL,
116  MD_SHIFT + 'C', LEGACY_HK_NAME( "Add a Zone Cutout" ),
117  _( "Add a Zone Cutout" ), _( "Add a cutout area of an existing zone" ),
118  add_zone_cutout_xpm, AF_ACTIVATE, (void*) ZONE_MODE::CUTOUT );
119 
120 TOOL_ACTION PCB_ACTIONS::drawSimilarZone( "pcbnew.InteractiveDrawing.similarZone",
121  AS_GLOBAL,
122  MD_SHIFT + MD_CTRL + '.', LEGACY_HK_NAME( "Add a Similar Zone" ),
123  _( "Add a Similar Zone" ), _( "Add a zone with the same settings as an existing zone" ),
124  add_zone_xpm, AF_ACTIVATE, (void*) ZONE_MODE::SIMILAR );
125 
126 TOOL_ACTION PCB_ACTIONS::placeImportedGraphics( "pcbnew.InteractiveDrawing.placeImportedGraphics",
127  AS_GLOBAL,
128  MD_SHIFT + MD_CTRL + 'F', LEGACY_HK_NAME( "Place DXF" ),
129  _( "Place Imported Graphics" ), "",
130  import_vector_xpm, AF_ACTIVATE );
131 
132 TOOL_ACTION PCB_ACTIONS::setAnchor( "pcbnew.InteractiveDrawing.setAnchor",
133  AS_GLOBAL,
134  MD_SHIFT + MD_CTRL + 'N', LEGACY_HK_NAME( "Place the Footprint Anchor" ),
135  _( "Place the Footprint Anchor" ), "",
136  anchor_xpm, AF_ACTIVATE );
137 
138 TOOL_ACTION PCB_ACTIONS::incWidth( "pcbnew.InteractiveDrawing.incWidth",
139  AS_CONTEXT,
140  MD_CTRL + '+', LEGACY_HK_NAME( "Increase Line Width" ),
141  _( "Increase Line Width" ), _( "Increase the line width" ) );
142 
143 TOOL_ACTION PCB_ACTIONS::decWidth( "pcbnew.InteractiveDrawing.decWidth",
144  AS_CONTEXT,
145  MD_CTRL + '-', LEGACY_HK_NAME( "Decrease Line Width" ),
146  _( "Decrease Line Width" ), _( "Decrease the line width" ) );
147 
148 TOOL_ACTION PCB_ACTIONS::arcPosture( "pcbnew.InteractiveDrawing.arcPosture",
149  AS_CONTEXT,
150  '/', LEGACY_HK_NAME( "Switch Track Posture" ),
151  _( "Switch Arc Posture" ), _( "Switch the arc posture" ) );
152 
153 TOOL_ACTION PCB_ACTIONS::deleteLastPoint( "pcbnew.InteractiveDrawing.deleteLastPoint",
154  AS_CONTEXT,
155  WXK_BACK, "",
156  _( "Delete Last Point" ), _( "Delete the last point added to the current item" ),
157  undo_xpm );
158 
159 TOOL_ACTION PCB_ACTIONS::closeZoneOutline( "pcbnew.InteractiveDrawing.closeZoneOutline",
160  AS_CONTEXT, 0, "",
161  _( "Close Zone Outline" ), _( "Close the outline of a zone in progress" ),
162  checked_ok_xpm );
163 
164 
165 // DRC
166 //
167 TOOL_ACTION PCB_ACTIONS::runDRC( "pcbnew.DRCTool.runDRC",
168  AS_GLOBAL, 0, "",
169  _( "Design Rules Checker" ), _( "Show the design rules checker window" ),
170  erc_xpm );
171 
172 
173 // EDIT_TOOL
174 //
175 TOOL_ACTION PCB_ACTIONS::editFootprintInFpEditor( "pcbnew.InteractiveEdit.EditFpInFpEditor",
176  AS_GLOBAL,
177  MD_CTRL + 'E', LEGACY_HK_NAME( "Edit with Footprint Editor" ),
178  _( "Open in Footprint Editor" ),
179  _( "Opens the selected footprint in the Footprint Editor" ),
180  module_editor_xpm );
181 
182 TOOL_ACTION PCB_ACTIONS::getAndPlace( "pcbnew.InteractiveEdit.FindMove",
183  AS_GLOBAL,
184  'T', LEGACY_HK_NAME( "Get and Move Footprint" ),
185  _( "Get and Move Footprint" ),
186  _( "Selects a footprint by reference and places it under the cursor for moving"),
187  move_xpm );
188 
189 TOOL_ACTION PCB_ACTIONS::move( "pcbnew.InteractiveMove.move",
190  AS_GLOBAL,
191  'M', LEGACY_HK_NAME( "Move Item" ),
192  _( "Move" ), _( "Moves the selected item(s)" ),
193  move_xpm, AF_ACTIVATE );
194 
195 TOOL_ACTION PCB_ACTIONS::duplicateIncrement( "pcbnew.InteractiveEdit.duplicateIncrementPads",
196  AS_GLOBAL,
197  MD_SHIFT + MD_CTRL + 'D', LEGACY_HK_NAME( "Duplicate Item and Increment" ),
198  _( "Duplicate and Increment" ), _( "Duplicates the selected item(s), incrementing pad numbers" ),
199  duplicate_xpm );
200 
201 TOOL_ACTION PCB_ACTIONS::moveExact( "pcbnew.InteractiveEdit.moveExact",
202  AS_GLOBAL,
203  MD_CTRL + 'M', LEGACY_HK_NAME( "Move Item Exactly" ),
204  _( "Move Exactly..." ), _( "Moves the selected item(s) by an exact amount" ),
205  move_exactly_xpm );
206 
207 TOOL_ACTION PCB_ACTIONS::createArray( "pcbnew.InteractiveEdit.createArray",
208  AS_GLOBAL,
209  MD_CTRL + 'T', LEGACY_HK_NAME( "Create Array" ),
210  _( "Create Array..." ), _( "Create array" ),
211  array_xpm, AF_ACTIVATE );
212 
213 TOOL_ACTION PCB_ACTIONS::rotateCw( "pcbnew.InteractiveEdit.rotateCw",
214  AS_GLOBAL,
215  // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
216  MD_SHIFT + 'R', LEGACY_HK_NAME( "Rotate Item Clockwise (Modern Toolset only)" ),
217  _( "Rotate Clockwise" ), _( "Rotates selected item(s) clockwise" ),
218  rotate_cw_xpm, AF_NONE, (void*) -1 );
219 
220 TOOL_ACTION PCB_ACTIONS::rotateCcw( "pcbnew.InteractiveEdit.rotateCcw",
221  AS_GLOBAL,
222  'R', LEGACY_HK_NAME( "Rotate Item" ),
223  _( "Rotate Counterclockwise" ), _( "Rotates selected item(s) counterclockwise" ),
224  rotate_ccw_xpm, AF_NONE, (void*) 1 );
225 
226 TOOL_ACTION PCB_ACTIONS::flip( "pcbnew.InteractiveEdit.flip",
227  AS_GLOBAL,
228  'F', LEGACY_HK_NAME( "Flip Item" ),
229  _( "Flip" ), _( "Flips selected item(s) to opposite side of board" ),
230  swap_layer_xpm );
231 
232 TOOL_ACTION PCB_ACTIONS::mirror( "pcbnew.InteractiveEdit.mirror",
233  AS_GLOBAL, 0, "",
234  _( "Mirror" ), _( "Mirrors selected item" ),
235  mirror_h_xpm );
236 
237 TOOL_ACTION PCB_ACTIONS::deleteFull( "pcbnew.InteractiveEdit.deleteFull",
238  AS_GLOBAL,
239  WXK_DELETE, LEGACY_HK_NAME( "Delete Full Track" ),
240  _( "Delete Full Track" ), _( "Deletes selected item(s) and copper connections" ),
241  delete_xpm, AF_NONE, (void*) REMOVE_FLAGS::ALT );
242 
243 TOOL_ACTION PCB_ACTIONS::properties( "pcbnew.InteractiveEdit.properties",
244  AS_GLOBAL,
245  'E', LEGACY_HK_NAME( "Edit Item" ),
246  _( "Properties..." ), _( "Displays item properties dialog" ),
247  config_xpm );
248 
249 TOOL_ACTION PCB_ACTIONS::updateUnits( "pcbnew.InteractiveEdit.updateUnits",
250  AS_GLOBAL );
251 
252 
253 // FOOTPRINT_EDITOR_TOOLS
254 //
255 TOOL_ACTION PCB_ACTIONS::toggleFootprintTree( "pcbnew.ModuleEditor.toggleFootprintTree",
256  AS_GLOBAL, 0, "",
257  _( "Show Footprint Tree" ), _( "Toggles the footprint tree visibility" ),
258  search_tree_xpm );
259 
260 TOOL_ACTION PCB_ACTIONS::newFootprint( "pcbnew.ModuleEditor.newFootprint",
261  AS_GLOBAL,
262  MD_CTRL + 'N', LEGACY_HK_NAME( "New" ),
263  _( "New Footprint..." ), _( "Create a new, empty footprint" ),
264  new_footprint_xpm );
265 
266 TOOL_ACTION PCB_ACTIONS::createFootprint( "pcbnew.ModuleEditor.createFootprint",
267  AS_GLOBAL, 0, "",
268  _( "Create Footprint..." ), _( "Create a new footprint using the Footprint Wizard" ),
269  module_wizard_xpm );
270 
271 TOOL_ACTION PCB_ACTIONS::saveToBoard( "pcbnew.ModuleEditor.saveToBoard",
272  AS_GLOBAL, 0, "",
273  _( "Save to Board" ), _( "Update footprint on board" ),
274  save_fp_to_board_xpm );
275 
276 TOOL_ACTION PCB_ACTIONS::saveToLibrary( "pcbnew.ModuleEditor.saveToLibrary",
277  AS_GLOBAL, 0, "",
278  _( "Save to Library" ), _( "Save changes to library" ),
279  save_xpm );
280 
281 TOOL_ACTION PCB_ACTIONS::editFootprint( "pcbnew.ModuleEditor.editFootprint",
282  AS_GLOBAL, 0, "",
283  _( "Edit Footprint" ), _( "Show selected footprint on editor canvas" ),
284  edit_xpm );
285 
286 TOOL_ACTION PCB_ACTIONS::deleteFootprint( "pcbnew.ModuleEditor.deleteFootprint",
287  AS_GLOBAL, 0, "",
288  _( "Delete Footprint from Library" ), "",
289  delete_xpm );
290 
291 TOOL_ACTION PCB_ACTIONS::cutFootprint( "pcbnew.ModuleEditor.cutFootprint",
292  AS_GLOBAL, 0, "",
293  _( "Cut Footprint" ), "",
294  cut_xpm );
295 
296 TOOL_ACTION PCB_ACTIONS::copyFootprint( "pcbnew.ModuleEditor.copyFootprint",
297  AS_GLOBAL, 0, "",
298  _( "Copy Footprint" ), "",
299  copy_xpm );
300 
301 TOOL_ACTION PCB_ACTIONS::pasteFootprint( "pcbnew.ModuleEditor.pasteFootprint",
302  AS_GLOBAL, 0, "",
303  _( "Paste Footprint" ), "",
304  paste_xpm );
305 
306 TOOL_ACTION PCB_ACTIONS::importFootprint( "pcbnew.ModuleEditor.importFootprint",
307  AS_GLOBAL, 0, "",
308  _( "Import Footprint..." ), "",
309  import_module_xpm );
310 
311 TOOL_ACTION PCB_ACTIONS::exportFootprint( "pcbnew.ModuleEditor.exportFootprint",
312  AS_GLOBAL, 0, "",
313  _( "Export Footprint..." ), "",
314  export_module_xpm );
315 
316 TOOL_ACTION PCB_ACTIONS::footprintProperties( "pcbnew.ModuleEditor.footprintProperties",
317  AS_GLOBAL, 0, "",
318  _( "Footprint Properties..." ), "",
319  module_options_xpm );
320 
321 TOOL_ACTION PCB_ACTIONS::placePad( "pcbnew.ModuleEditor.placePad",
322  AS_GLOBAL, 0, "",
323  _( "Add Pad" ), _( "Add a pad" ),
324  pad_xpm, AF_ACTIVATE );
325 
326 TOOL_ACTION PCB_ACTIONS::createPadFromShapes( "pcbnew.ModuleEditor.createPadFromShapes",
327  AS_CONTEXT, 0, "",
328  _( "Create Pad from Selected Shapes" ),
329  _( "Creates a custom-shaped pads from a set of selected shapes" ),
330  primitives_to_custom_pad_xpm );
331 
332 TOOL_ACTION PCB_ACTIONS::explodePadToShapes( "pcbnew.ModuleEditor.explodePadToShapes",
333  AS_CONTEXT, 0, "",
334  _( "Explode Pad to Graphic Shapes" ),
335  _( "Converts a custom-shaped pads to a set of graphical shapes" ),
336  custom_pad_to_primitives_xpm );
337 
338 TOOL_ACTION PCB_ACTIONS::defaultPadProperties( "pcbnew.ModuleEditor.defaultPadProperties",
339  AS_GLOBAL, 0, "",
340  _( "Default Pad Properties..." ), _( "Edit the pad properties used when creating new pads" ),
341  options_pad_xpm );
342 
343 
344 // GLOBAL_EDIT_TOOL
345 //
346 TOOL_ACTION PCB_ACTIONS::updateFootprint( "pcbnew.GlobalEdit.updateFootprint",
347  AS_GLOBAL, 0, "",
348  _( "Update Footprint..." ),
349  _( "Update footprint to include any changes from the library" ),
350  reload_xpm );
351 
352 TOOL_ACTION PCB_ACTIONS::updateFootprints( "pcbnew.GlobalEdit.updateFootprints",
353  AS_GLOBAL, 0, "",
354  _( "Update Footprints from Library..." ),
355  _( "Update footprints to include any changes from the library" ),
356  reload_xpm );
357 
358 TOOL_ACTION PCB_ACTIONS::changeFootprint( "pcbnew.GlobalEdit.changeFootprint",
359  AS_GLOBAL, 0, "",
360  _( "Change Footprint..." ), _( "Assign a different footprint from the library" ),
361  exchange_xpm );
362 
363 TOOL_ACTION PCB_ACTIONS::changeFootprints( "pcbnew.GlobalEdit.changeFootprints",
364  AS_GLOBAL, 0, "",
365  _( "Change Footprints..." ), _( "Assign different footprints from the library" ),
366  exchange_xpm );
367 
368 TOOL_ACTION PCB_ACTIONS::swapLayers( "pcbnew.GlobalEdit.swapLayers",
369  AS_GLOBAL, 0, "",
370  _( "Swap Layers..." ), _( "Move tracks or drawings from one layer to another" ),
371  swap_layer_xpm );
372 
373 TOOL_ACTION PCB_ACTIONS::editTracksAndVias( "pcbnew.GlobalEdit.editTracksAndVias",
374  AS_GLOBAL, 0, "",
375  _( "Edit Track & Via Properties..." ), "",
376  width_track_via_xpm );
377 
378 TOOL_ACTION PCB_ACTIONS::editTextAndGraphics( "pcbnew.GlobalEdit.editTextAndGraphics",
379  AS_GLOBAL, 0, "",
380  _( "Edit Text & Graphics Properties..." ),
381  _( "Edit Text and graphics properties globally across board" ),
382  reset_text_xpm );
383 
384 TOOL_ACTION PCB_ACTIONS::globalDeletions( "pcbnew.GlobalEdit.globalDeletions",
385  AS_GLOBAL, 0, "",
386  _( "Global Deletions..." ),
387  _( "Delete tracks, footprints and graphic items from board" ),
388  general_deletions_xpm );
389 
390 TOOL_ACTION PCB_ACTIONS::cleanupTracksAndVias( "pcbnew.GlobalEdit.cleanupTracksAndVias",
391  AS_GLOBAL, 0, "",
392  _( "Cleanup Tracks & Vias..." ),
393  _( "Clean stubs, vias, delete break points or unconnected tracks" ),
394  delete_xpm );
395 
396 
397 // MICROWAVE_TOOL
398 //
399 TOOL_ACTION PCB_ACTIONS::microwaveCreateGap( "pcbnew.MicrowaveTool.createGap",
400  AS_GLOBAL, 0, "",
401  _( "Add Microwave Gap" ), _( "Create gap of specified length for microwave applications" ),
402  mw_add_gap_xpm, AF_ACTIVATE, (void*) MWAVE_TOOL_SIMPLE_ID::GAP );
403 
404 TOOL_ACTION PCB_ACTIONS::microwaveCreateStub( "pcbnew.MicrowaveTool.createStub",
405  AS_GLOBAL, 0, "",
406  _( "Add Microwave Stub" ), _( "Create stub of specified length for microwave applications" ),
407  mw_add_stub_xpm, AF_ACTIVATE, (void*) MWAVE_TOOL_SIMPLE_ID::STUB );
408 
409 TOOL_ACTION PCB_ACTIONS::microwaveCreateStubArc( "pcbnew.MicrowaveTool.createStubArc",
410  AS_GLOBAL, 0, "",
411  _( "Add Microwave Arc Stub" ), _( "Create stub (arc) of specified size for microwave applications" ),
412  mw_add_stub_arc_xpm, AF_ACTIVATE, (void*) MWAVE_TOOL_SIMPLE_ID::STUB_ARC );
413 
414 TOOL_ACTION PCB_ACTIONS::microwaveCreateFunctionShape( "pcbnew.MicrowaveTool.createFunctionShape",
415  AS_GLOBAL, 0, "",
416  _( "Add Microwave Polygonal Shape" ), _( "Create a microwave polygonal shape from a list of vertices" ),
417  mw_add_gap_xpm, AF_ACTIVATE, (void*) MWAVE_TOOL_SIMPLE_ID::FUNCTION_SHAPE );
418 
419 TOOL_ACTION PCB_ACTIONS::microwaveCreateLine( "pcbnew.MicrowaveTool.createLine",
420  AS_GLOBAL, 0, "",
421  _( "Add Microwave Line" ), _( "Create line of specified length for microwave applications" ),
422  mw_add_line_xpm, AF_ACTIVATE );
423 
424 
425 // PAD_TOOL
426 //
427 TOOL_ACTION PCB_ACTIONS::copyPadSettings( "pcbnew.PadTool.CopyPadSettings",
428  AS_GLOBAL, 0, "",
429  _( "Copy Pad Properties" ), _( "Copy current pad's properties" ),
430  copy_pad_settings_xpm );
431 
432 TOOL_ACTION PCB_ACTIONS::applyPadSettings( "pcbnew.PadTool.ApplyPadSettings",
433  AS_GLOBAL, 0, "",
434  _( "Paste Pad Properties" ), _( "Replace the current pad's properties with those copied earlier" ),
435  apply_pad_settings_xpm );
436 
437 TOOL_ACTION PCB_ACTIONS::pushPadSettings( "pcbnew.PadTool.PushPadSettings",
438  AS_GLOBAL, 0, "",
439  _( "Push Pad Properties..." ), _( "Copy the current pad's properties to other pads" ),
440  push_pad_settings_xpm );
441 
442 TOOL_ACTION PCB_ACTIONS::enumeratePads( "pcbnew.PadTool.enumeratePads",
443  AS_GLOBAL, 0, "",
444  _( "Renumber Pads..." ), _( "Renumber pads by clicking on them in the desired order" ),
445  pad_enumerate_xpm, AF_ACTIVATE );
446 
447 
448 // PCB_EDITOR_CONTROL
449 //
450 TOOL_ACTION PCB_ACTIONS::boardSetup( "pcbnew.EditorControl.boardSetup",
451  AS_GLOBAL, 0, "",
452  _( "Board Setup..." ),
453  _( "Edit board setup including layers, design rules and various defaults" ),
454  options_board_xpm );
455 
456 TOOL_ACTION PCB_ACTIONS::importNetlist( "pcbnew.EditorControl.importNetlist",
457  AS_GLOBAL, 0, "",
458  _( "Netlist..." ), _( "Read netlist and update board connectivity" ),
459  netlist_xpm );
460 
461 TOOL_ACTION PCB_ACTIONS::importSpecctraSession( "pcbnew.EditorControl.importSpecctraSession",
462  AS_GLOBAL, 0, "",
463  _( "Specctra Session..." ), _( "Import routed Specctra session (*.ses) file" ),
464  import_xpm );
465 
466 TOOL_ACTION PCB_ACTIONS::exportSpecctraDSN( "pcbnew.EditorControl.exportSpecctraDSN",
467  AS_GLOBAL, 0, "",
468  _( "Specctra DSN..." ), _( "Export Specctra DSN routing info" ),
469  export_dsn_xpm );
470 
471 TOOL_ACTION PCB_ACTIONS::generateGerbers( "pcbnew.EditorControl.generateGerbers",
472  AS_GLOBAL, 0, "",
473  _( "Gerbers (.gbr)..." ), _( "Generate Gerbers for fabrication" ),
474  post_compo_xpm );
475 
476 TOOL_ACTION PCB_ACTIONS::generateDrillFiles( "pcbnew.EditorControl.generateDrillFiles",
477  AS_GLOBAL, 0, "",
478  _( "Drill Files (.drl)..." ), _( "Generate Excellon drill file(s)" ),
479  post_drill_xpm );
480 
481 TOOL_ACTION PCB_ACTIONS::generatePosFile( "pcbnew.EditorControl.generatePosFile",
482  AS_GLOBAL, 0, "",
483  _( "Footprint Positions (.pos)..." ),
484  _( "Generate footprint position file for pick and place" ),
485  post_compo_xpm );
486 
487 TOOL_ACTION PCB_ACTIONS::generateReportFile( "pcbnew.EditorControl.generateReportFile",
488  AS_GLOBAL, 0, "",
489  _( "Footprint Report (.rpt)..." ),
490  _( "Create report of all footprints from current board" ),
491  tools_xpm );
492 
493 TOOL_ACTION PCB_ACTIONS::generateD356File( "pcbnew.EditorControl.generateD356File",
494  AS_GLOBAL, 0, "",
495  _( "IPC-D-356 Netlist File..." ), _( "Generate IPC-D-356 netlist file" ),
496  netlist_xpm );
497 
498 TOOL_ACTION PCB_ACTIONS::generateBOM( "pcbnew.EditorControl.generateBOM",
499  AS_GLOBAL, 0, "",
500  _( "BOM..." ), _( "Create bill of materials from current schematic" ),
501  bom_xpm );
502 
503 // Track & via size control
504 TOOL_ACTION PCB_ACTIONS::trackWidthInc( "pcbnew.EditorControl.trackWidthInc",
505  AS_GLOBAL,
506  'W', LEGACY_HK_NAME( "Switch Track Width To Next" ),
507  _( "Switch Track Width to Next" ), "" );
508 
509 TOOL_ACTION PCB_ACTIONS::trackWidthDec( "pcbnew.EditorControl.trackWidthDec",
510  AS_GLOBAL,
511  MD_SHIFT + 'W', LEGACY_HK_NAME( "Switch Track Width To Previous" ),
512  _( "Switch Track Width to Previous" ), "" );
513 
514 TOOL_ACTION PCB_ACTIONS::viaSizeInc( "pcbnew.EditorControl.viaSizeInc",
515  AS_GLOBAL,
516  '\'', LEGACY_HK_NAME( "Increase Via Size" ),
517  _( "Increase Via Size" ), "" );
518 
519 TOOL_ACTION PCB_ACTIONS::viaSizeDec( "pcbnew.EditorControl.viaSizeDec",
520  AS_GLOBAL,
521  '\\', LEGACY_HK_NAME( "Decrease Via Size" ),
522  _( "Decrease Via Size" ), "" );
523 
524 TOOL_ACTION PCB_ACTIONS::trackViaSizeChanged( "pcbnew.EditorControl.trackViaSizeChanged",
525  AS_GLOBAL, 0, "",
526  "", "",
527  nullptr, AF_NOTIFY );
528 
529 TOOL_ACTION PCB_ACTIONS::zoneMerge( "pcbnew.EditorControl.zoneMerge",
530  AS_GLOBAL, 0, "",
531  _( "Merge Zones" ), _( "Merge zones" ) );
532 
533 TOOL_ACTION PCB_ACTIONS::zoneDuplicate( "pcbnew.EditorControl.zoneDuplicate",
534  AS_GLOBAL, 0, "",
535  _( "Duplicate Zone onto Layer..." ), _( "Duplicate zone outline onto a different layer" ),
536  zone_duplicate_xpm );
537 
538 TOOL_ACTION PCB_ACTIONS::placeTarget( "pcbnew.EditorControl.placeTarget",
539  AS_GLOBAL, 0, "",
540  _( "Add Layer Alignment Target" ), _( "Add a layer alignment target" ),
541  add_pcb_target_xpm, AF_ACTIVATE );
542 
543 TOOL_ACTION PCB_ACTIONS::placeModule( "pcbnew.EditorControl.placeModule",
544  AS_GLOBAL,
545  'O', LEGACY_HK_NAME( "Add Footprint" ),
546  _( "Add Footprint" ), _( "Add a footprint" ),
547  module_xpm, AF_ACTIVATE );
548 
549 TOOL_ACTION PCB_ACTIONS::drillOrigin( "pcbnew.EditorControl.drillOrigin",
550  AS_GLOBAL, 0, "",
551  _( "Drill and Place Offset" ), _( "Place origin point for drill and place files" ),
552  pcb_offset_xpm, AF_ACTIVATE );
553 
554 TOOL_ACTION PCB_ACTIONS::toggleLock( "pcbnew.EditorControl.toggleLock",
555  AS_GLOBAL,
556  'L', LEGACY_HK_NAME( "Lock/Unlock Footprint" ),
557  _( "Toggle Lock" ), "",
558  lock_unlock_xpm );
559 
560 TOOL_ACTION PCB_ACTIONS::lock( "pcbnew.EditorControl.lock",
561  AS_GLOBAL, 0, "",
562  _( "Lock" ), "",
563  locked_xpm );
564 
565 TOOL_ACTION PCB_ACTIONS::unlock( "pcbnew.EditorControl.unlock",
566  AS_GLOBAL, 0, "",
567  _( "Unlock" ), "",
568  unlocked_xpm );
569 
570 TOOL_ACTION PCB_ACTIONS::appendBoard( "pcbnew.EditorControl.appendBoard",
571  AS_GLOBAL, 0, "",
572  _( "Append Board..." ), "",
573  add_board_xpm );
574 
575 TOOL_ACTION PCB_ACTIONS::highlightNet( "pcbnew.EditorControl.highlightNet",
576  AS_GLOBAL );
577 
578 TOOL_ACTION PCB_ACTIONS::toggleLastNetHighlight( "pcbnew.EditorControl.toggleLastNetHighlight",
579  AS_GLOBAL, 0, "",
580  _( "Toggle Last Net Highlight" ), _( "Toggle between last two highlighted nets" ) );
581 
582 TOOL_ACTION PCB_ACTIONS::clearHighlight( "pcbnew.EditorControl.clearHighlight",
583  AS_GLOBAL, 0, "",
584  _( "Clear Net Highlighting" ), "" );
585 
586 TOOL_ACTION PCB_ACTIONS::highlightNetTool( "pcbnew.EditorControl.highlightNetTool",
587  AS_GLOBAL, 0, "",
588  _( "Highlight Nets" ), _( "Highlight all copper items of a net" ),
589  net_highlight_xpm, AF_ACTIVATE );
590 
591 TOOL_ACTION PCB_ACTIONS::highlightNetSelection( "pcbnew.EditorControl.highlightNetSelection",
592  AS_GLOBAL,
593  // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
594  '`', LEGACY_HK_NAME( "Toggle Highlight of Selected Net (Modern Toolset only)" ),
595  _( "Highlight Net" ), _( "Highlight all copper items of a net" ),
596  net_highlight_xpm );
597 
598 TOOL_ACTION PCB_ACTIONS::highlightItem( "pcbnew.EditorControl.highlightItem",
599  AS_GLOBAL );
600 
601 TOOL_ACTION PCB_ACTIONS::showEeschema( "pcbnew.EditorControl.showEeschema",
602  AS_GLOBAL, 0, "",
603  _( "Switch to Schematic Editor" ), _( "Open schematic in Eeschema" ),
604  eeschema_xpm );
605 
606 
607 // PCBNEW_CONTROL
608 //
609 
610 TOOL_ACTION PCB_ACTIONS::localRatsnestTool( "pcbnew.Control.localRatsnestTool",
611  AS_GLOBAL, 0, "",
612  _( "Highlight Ratsnest" ), _( "Show ratsnest of selected item(s)" ),
613  tool_ratsnest_xpm, AF_ACTIVATE );
614 
615 TOOL_ACTION PCB_ACTIONS::hideDynamicRatsnest( "pcbnew.Control.hideDynamicRatsnest",
616  AS_GLOBAL );
617 
618 TOOL_ACTION PCB_ACTIONS::updateLocalRatsnest( "pcbnew.Control.updateLocalRatsnest",
619  AS_GLOBAL );
620 
621 TOOL_ACTION PCB_ACTIONS::listNets( "pcbnew.Control.listNets",
622  AS_GLOBAL, 0, "",
623  _( "List Nets" ), _( "Show a list of nets with names and IDs" ),
624  list_nets_xpm );
625 
626 TOOL_ACTION PCB_ACTIONS::showPythonConsole( "pcbnew.Control.showPythonConsole",
627  AS_GLOBAL, 0, "",
628  _( "Scripting Console" ), _( "Show the Python scripting console" ),
629  py_script_xpm );
630 
631 TOOL_ACTION PCB_ACTIONS::showLayersManager( "pcbnew.Control.showLayersManager",
632  AS_GLOBAL, 0, "",
633  _( "Show Layers Manager" ), _( "Show/hide the layers manager" ),
634  layers_manager_xpm );
635 
636 TOOL_ACTION PCB_ACTIONS::showMicrowaveToolbar( "pcbnew.Control.showMicrowaveToolbar",
637  AS_GLOBAL, 0, "",
638  _( "Show Microwave Toolbar" ), _( "Show/hide microwave toolbar\n(Experimental feature)" ),
639  mw_toolbar_xpm );
640 
641 TOOL_ACTION PCB_ACTIONS::flipBoard( "pcbnew.Control.flipBoard",
642  AS_GLOBAL, 0, "",
643  _( "Flip Board View" ), _( "Flip (mirror) the board view" ),
644  flip_board_xpm );
645 
646 // Display modes
647 TOOL_ACTION PCB_ACTIONS::showRatsnest( "pcbnew.Control.showRatsnest",
648  AS_GLOBAL, 0, "",
649  _( "Show Ratsnest" ), _( "Show board ratsnest" ),
650  general_ratsnest_xpm );
651 
652 TOOL_ACTION PCB_ACTIONS::ratsnestLineMode( "pcbnew.Control.ratsnestLineMode",
653  AS_GLOBAL, 0, "",
654  _( "Curved Ratsnest Lines" ), _( "Show ratsnest with curved lines" ),
655  curved_ratsnest_xpm );
656 
657 TOOL_ACTION PCB_ACTIONS::trackDisplayMode( "pcbnew.Control.trackDisplayMode",
658  AS_GLOBAL,
659  'K', LEGACY_HK_NAME( "Track Display Mode" ),
660  _( "Sketch Tracks" ), _( "Show tracks in outline mode" ),
661  showtrack_xpm );
662 
663 TOOL_ACTION PCB_ACTIONS::padDisplayMode( "pcbnew.Control.padDisplayMode",
664  AS_GLOBAL, 0, "",
665  _( "Sketch Pads" ), _( "Show pads in outline mode" ),
666  pad_sketch_xpm );
667 
668 TOOL_ACTION PCB_ACTIONS::viaDisplayMode( "pcbnew.Control.viaDisplayMode",
669  AS_GLOBAL, 0, "",
670  _( "Sketch Vias" ), _( "Show vias in outline mode" ),
671  via_sketch_xpm );
672 
673 TOOL_ACTION PCB_ACTIONS::graphicDisplayMode( "pcbnew.Control.graphicDisplayMode",
674  AS_GLOBAL );
675 
676 TOOL_ACTION PCB_ACTIONS::moduleEdgeOutlines( "pcbnew.Control.graphicOutlines",
677  AS_GLOBAL, 0, "",
678  _( "Sketch Graphics" ), _( "Show footprint graphic items in outline mode" ),
679  show_mod_edge_xpm );
680 
681 TOOL_ACTION PCB_ACTIONS::zoneDisplayEnable( "pcbnew.Control.zoneDisplayEnable",
682  AS_GLOBAL, 0, "",
683  _( "Fill Zones" ), _( "Show filled areas of zones" ),
684  show_zone_xpm );
685 
686 TOOL_ACTION PCB_ACTIONS::zoneDisplayDisable( "pcbnew.Control.zoneDisplayDisable",
687  AS_GLOBAL, 0, "",
688  _( "Wireframe Zones" ), _( "Show only zone boundaries" ),
689  show_zone_disable_xpm );
690 
691 TOOL_ACTION PCB_ACTIONS::zoneDisplayOutlines( "pcbnew.Control.zoneDisplayOutlines",
692  AS_GLOBAL, 0, "",
693  _( "Sketch Zones" ), _( "Show solid areas of zones in outline mode" ),
694  show_zone_outline_only_xpm );
695 
696 TOOL_ACTION PCB_ACTIONS::zoneDisplayToggle( "pcbnew.Control.zoneDisplayToggle",
697  AS_GLOBAL,
698  'A', "",
699  _( "Toggle Zone Display" ),
700  _( "Cycle between showing filled zones, wireframed zones and sketched zones" ),
701  show_zone_xpm );
702 
703 
704 // Layer control
705 TOOL_ACTION PCB_ACTIONS::layerTop( "pcbnew.Control.layerTop",
706  AS_GLOBAL,
707  WXK_PAGEUP, LEGACY_HK_NAME( "Switch to Component (F.Cu) layer" ),
708  _( "Switch to Component (F.Cu) layer" ), "",
709  nullptr, AF_NONE, (void*) F_Cu );
710 
711 TOOL_ACTION PCB_ACTIONS::layerInner1( "pcbnew.Control.layerInner1",
712  AS_GLOBAL,
713  WXK_F5, LEGACY_HK_NAME( "Switch to Inner layer 1" ),
714  _( "Switch to Inner layer 1" ), "",
715  nullptr, AF_NONE, (void*) In1_Cu );
716 
717 TOOL_ACTION PCB_ACTIONS::layerInner2( "pcbnew.Control.layerInner2",
718  AS_GLOBAL,
719  WXK_F6, LEGACY_HK_NAME( "Switch to Inner layer 2" ),
720  _( "Switch to Inner layer 2" ), "",
721  nullptr, AF_NONE, (void*) In2_Cu );
722 
723 TOOL_ACTION PCB_ACTIONS::layerInner3( "pcbnew.Control.layerInner3",
724  AS_GLOBAL,
725  WXK_F7, LEGACY_HK_NAME( "Switch to Inner layer 3" ),
726  _( "Switch to Inner layer 3" ), "",
727  nullptr, AF_NONE, (void*) In3_Cu );
728 
729 TOOL_ACTION PCB_ACTIONS::layerInner4( "pcbnew.Control.layerInner4",
730  AS_GLOBAL,
731  WXK_F8, LEGACY_HK_NAME( "Switch to Inner layer 4" ),
732  _( "Switch to Inner layer 4" ), "",
733  nullptr, AF_NONE, (void*) In4_Cu );
734 
735 TOOL_ACTION PCB_ACTIONS::layerInner5( "pcbnew.Control.layerInner5",
736  AS_GLOBAL,
737  MD_SHIFT + WXK_F5, LEGACY_HK_NAME( "Switch to Inner layer 5" ),
738  _( "Switch to Inner layer 5" ), "",
739  nullptr, AF_NONE, (void*) In5_Cu );
740 
741 TOOL_ACTION PCB_ACTIONS::layerInner6( "pcbnew.Control.layerInner6",
742  AS_GLOBAL,
743  MD_SHIFT + WXK_F6, LEGACY_HK_NAME( "Switch to Inner layer 6" ),
744  _( "Switch to Inner layer 6" ), "",
745  nullptr, AF_NONE, (void*) In6_Cu );
746 
747 TOOL_ACTION PCB_ACTIONS::layerInner7( "pcbnew.Control.layerInner7",
748  AS_GLOBAL, 0, "",
749  _( "Switch to Inner layer 7" ), "",
750  nullptr, AF_NONE, (void*) In7_Cu );
751 
752 TOOL_ACTION PCB_ACTIONS::layerInner8( "pcbnew.Control.layerInner8",
753  AS_GLOBAL, 0, "",
754  _( "Switch to Inner layer 8" ), "",
755  nullptr, AF_NONE, (void*) In8_Cu );
756 
757 TOOL_ACTION PCB_ACTIONS::layerInner9( "pcbnew.Control.layerInner9",
758  AS_GLOBAL, 0, "",
759  _( "Switch to Inner layer 9" ), "",
760  nullptr, AF_NONE, (void*) In9_Cu );
761 
762 TOOL_ACTION PCB_ACTIONS::layerInner10( "pcbnew.Control.layerInner10",
763  AS_GLOBAL, 0, "",
764  _( "Switch to Inner layer 10" ), "",
765  nullptr, AF_NONE, (void*) In10_Cu );
766 
767 TOOL_ACTION PCB_ACTIONS::layerInner11( "pcbnew.Control.layerInner11",
768  AS_GLOBAL, 0, "",
769  _( "Switch to Inner layer 11" ), "",
770  nullptr, AF_NONE, (void*) In11_Cu );
771 
772 TOOL_ACTION PCB_ACTIONS::layerInner12( "pcbnew.Control.layerInner12",
773  AS_GLOBAL, 0, "",
774  _( "Switch to Inner layer 12" ), "",
775  nullptr, AF_NONE, (void*) In12_Cu );
776 
777 TOOL_ACTION PCB_ACTIONS::layerInner13( "pcbnew.Control.layerInner13",
778  AS_GLOBAL, 0, "",
779  _( "Switch to Inner layer 13" ), "",
780  nullptr, AF_NONE, (void*) In13_Cu );
781 
782 TOOL_ACTION PCB_ACTIONS::layerInner14( "pcbnew.Control.layerInner14",
783  AS_GLOBAL, 0, "",
784  _( "Switch to Inner layer 14" ), "",
785  nullptr, AF_NONE, (void*) In14_Cu );
786 
787 TOOL_ACTION PCB_ACTIONS::layerInner15( "pcbnew.Control.layerInner15",
788  AS_GLOBAL, 0, "",
789  _( "Switch to Inner layer 15" ), "",
790  nullptr, AF_NONE, (void*) In15_Cu );
791 
792 TOOL_ACTION PCB_ACTIONS::layerInner16( "pcbnew.Control.layerInner16",
793  AS_GLOBAL, 0, "",
794  _( "Switch to Inner layer 16" ), "",
795  nullptr, AF_NONE, (void*) In16_Cu );
796 
797 TOOL_ACTION PCB_ACTIONS::layerInner17( "pcbnew.Control.layerInner17",
798  AS_GLOBAL, 0, "",
799  _( "Switch to Inner layer 17" ), "",
800  nullptr, AF_NONE, (void*) In17_Cu );
801 
802 TOOL_ACTION PCB_ACTIONS::layerInner18( "pcbnew.Control.layerInner18",
803  AS_GLOBAL, 0, "",
804  _( "Switch to Inner layer 18" ), "",
805  nullptr, AF_NONE, (void*) In18_Cu );
806 
807 TOOL_ACTION PCB_ACTIONS::layerInner19( "pcbnew.Control.layerInner19",
808  AS_GLOBAL, 0, "",
809  _( "Switch to Inner layer 19" ), "",
810  nullptr, AF_NONE, (void*) In19_Cu );
811 
812 TOOL_ACTION PCB_ACTIONS::layerInner20( "pcbnew.Control.layerInner20",
813  AS_GLOBAL, 0, "",
814  _( "Switch to Inner layer 20" ), "",
815  nullptr, AF_NONE, (void*) In20_Cu );
816 
817 TOOL_ACTION PCB_ACTIONS::layerInner21( "pcbnew.Control.layerInner21",
818  AS_GLOBAL, 0, "",
819  _( "Switch to Inner layer 21" ), "",
820  nullptr, AF_NONE, (void*) In21_Cu );
821 
822 TOOL_ACTION PCB_ACTIONS::layerInner22( "pcbnew.Control.layerInner22",
823  AS_GLOBAL, 0, "",
824  _( "Switch to Inner layer 22" ), "",
825  nullptr, AF_NONE, (void*) In22_Cu );
826 
827 TOOL_ACTION PCB_ACTIONS::layerInner23( "pcbnew.Control.layerInner23",
828  AS_GLOBAL, 0, "",
829  _( "Switch to Inner layer 23" ), "",
830  nullptr, AF_NONE, (void*) In23_Cu );
831 
832 TOOL_ACTION PCB_ACTIONS::layerInner24( "pcbnew.Control.layerInner24",
833  AS_GLOBAL, 0, "",
834  _( "Switch to Inner layer 24" ), "",
835  nullptr, AF_NONE, (void*) In24_Cu );
836 
837 TOOL_ACTION PCB_ACTIONS::layerInner25( "pcbnew.Control.layerInner25",
838  AS_GLOBAL, 0, "",
839  _( "Switch to Inner layer 25" ), "",
840  nullptr, AF_NONE, (void*) In25_Cu );
841 
842 TOOL_ACTION PCB_ACTIONS::layerInner26( "pcbnew.Control.layerInner26",
843  AS_GLOBAL, 0, "",
844  _( "Switch to Inner layer 26" ), "",
845  nullptr, AF_NONE, (void*) In26_Cu );
846 
847 TOOL_ACTION PCB_ACTIONS::layerInner27( "pcbnew.Control.layerInner27",
848  AS_GLOBAL, 0, "",
849  _( "Switch to Inner layer 27" ), "",
850  nullptr, AF_NONE, (void*) In27_Cu );
851 
852 TOOL_ACTION PCB_ACTIONS::layerInner28( "pcbnew.Control.layerInner28",
853  AS_GLOBAL, 0, "",
854  _( "Switch to Inner layer 28" ), "",
855  nullptr, AF_NONE, (void*) In28_Cu );
856 
857 TOOL_ACTION PCB_ACTIONS::layerInner29( "pcbnew.Control.layerInner29",
858  AS_GLOBAL, 0, "",
859  _( "Switch to Inner layer 29" ), "",
860  nullptr, AF_NONE, (void*) In29_Cu );
861 
862 TOOL_ACTION PCB_ACTIONS::layerInner30( "pcbnew.Control.layerInner30",
863  AS_GLOBAL, 0, "",
864  _( "Switch to Inner layer 30" ), "",
865  nullptr, AF_NONE, (void*) In30_Cu );
866 
867 TOOL_ACTION PCB_ACTIONS::layerBottom( "pcbnew.Control.layerBottom",
868  AS_GLOBAL,
869  WXK_PAGEDOWN, LEGACY_HK_NAME( "Switch to Copper (B.Cu) layer" ),
870  _( "Switch to Copper (B.Cu) layer" ), "",
871  nullptr, AF_NONE, (void*) B_Cu );
872 
873 TOOL_ACTION PCB_ACTIONS::layerNext( "pcbnew.Control.layerNext",
874  AS_GLOBAL,
875  '+', LEGACY_HK_NAME( "Switch to Next Layer" ),
876  _( "Switch to Next Layer" ), "" );
877 
878 TOOL_ACTION PCB_ACTIONS::layerPrev( "pcbnew.Control.layerPrev",
879  AS_GLOBAL,
880  '-', LEGACY_HK_NAME( "Switch to Previous Layer" ),
881  _( "Switch to Previous Layer" ), "" );
882 
883 TOOL_ACTION PCB_ACTIONS::layerToggle( "pcbnew.Control.layerToggle",
884  AS_GLOBAL,
885  'V', LEGACY_HK_NAME( "Add Through Via" ),
886  _( "Add Through Via" ), "" );
887 
888 TOOL_ACTION PCB_ACTIONS::layerAlphaInc( "pcbnew.Control.layerAlphaInc",
889  AS_GLOBAL,
890  // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
891  '}', LEGACY_HK_NAME( "Increment Layer Transparency (Modern Toolset only)" ),
892  _( "Increase Layer Opacity" ), _( "Make the current layer more transparent" ),
893  contrast_mode_xpm );
894 
895 TOOL_ACTION PCB_ACTIONS::layerAlphaDec( "pcbnew.Control.layerAlphaDec",
896  AS_GLOBAL,
897  // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
898  '{', LEGACY_HK_NAME( "Decrement Layer Transparency (Modern Toolset only)" ),
899  _( "Decrease Layer Opacity" ), _( "Make the current layer more transparent" ),
900  contrast_mode_xpm );
901 
902 TOOL_ACTION PCB_ACTIONS::layerChanged( "pcbnew.Control.layerChanged",
903  AS_GLOBAL, 0, "",
904  "", "",
905  nullptr, AF_NOTIFY );
906 
907 //Show board statistics tool
908 TOOL_ACTION PCB_ACTIONS::boardStatistics( "pcbnew.InspectionTool.ShowStatisticsDialog", AS_GLOBAL,
909  0, LEGACY_HK_NAME( "Show Board Statistics" ), _( "Show Board Statistics" ),
910  _( "Shows board statistics" ), pcbnew_xpm );
911 
912 
913 // PLACEMENT_TOOL
914 //
915 TOOL_ACTION PCB_ACTIONS::alignTop( "pcbnew.AlignAndDistribute.alignTop",
916  AS_GLOBAL, 0, "",
917  _( "Align to Top" ),
918  _( "Aligns selected items to the top edge" ), align_items_top_xpm );
919 
920 TOOL_ACTION PCB_ACTIONS::alignBottom( "pcbnew.AlignAndDistribute.alignBottom",
921  AS_GLOBAL, 0, "",
922  _( "Align to Bottom" ),
923  _( "Aligns selected items to the bottom edge" ), align_items_bottom_xpm );
924 
925 TOOL_ACTION PCB_ACTIONS::alignLeft( "pcbnew.AlignAndDistribute.alignLeft",
926  AS_GLOBAL, 0, "",
927  _( "Align to Left" ),
928  _( "Aligns selected items to the left edge" ), align_items_left_xpm );
929 
930 TOOL_ACTION PCB_ACTIONS::alignRight( "pcbnew.AlignAndDistribute.alignRight",
931  AS_GLOBAL, 0, "",
932  _( "Align to Right" ),
933  _( "Aligns selected items to the right edge" ), align_items_right_xpm );
934 
935 TOOL_ACTION PCB_ACTIONS::alignCenterX( "pcbnew.AlignAndDistribute.alignCenterX",
936  AS_GLOBAL, 0, "",
937  _( "Align to Middle" ),
938  _( "Aligns selected items to the vertical center" ), align_items_middle_xpm );
939 
940 TOOL_ACTION PCB_ACTIONS::alignCenterY( "pcbnew.AlignAndDistribute.alignCenterY",
941  AS_GLOBAL, 0, "",
942  _( "Align to Center" ),
943  _( "Aligns selected items to the horizontal center" ), align_items_center_xpm );
944 
945 TOOL_ACTION PCB_ACTIONS::distributeHorizontally( "pcbnew.AlignAndDistribute.distributeHorizontally",
946  AS_GLOBAL, 0, "",
947  _( "Distribute Horizontally" ),
948  _( "Distributes selected items along the horizontal axis" ), distribute_horizontal_xpm );
949 
950 TOOL_ACTION PCB_ACTIONS::distributeVertically( "pcbnew.AlignAndDistribute.distributeVertically",
951  AS_GLOBAL, 0, "",
952  _( "Distribute Vertically" ),
953  _( "Distributes selected items along the vertical axis" ), distribute_vertical_xpm );
954 
955 
956 // POINT_EDITOR
957 //
958 TOOL_ACTION PCB_ACTIONS::pointEditorAddCorner( "pcbnew.PointEditor.addCorner",
959  AS_GLOBAL,
960  WXK_INSERT, "",
961  _( "Create Corner" ), _( "Create a corner" ), add_corner_xpm );
962 
963 TOOL_ACTION PCB_ACTIONS::pointEditorRemoveCorner( "pcbnew.PointEditor.removeCorner",
964  AS_GLOBAL, 0, "",
965  _( "Remove Corner" ), _( "Remove corner" ), delete_xpm );
966 
967 
968 // POSITION_RELATIVE_TOOL
969 //
970 TOOL_ACTION PCB_ACTIONS::positionRelative( "pcbnew.PositionRelative.positionRelative",
971  AS_GLOBAL,
972  MD_SHIFT + 'P', LEGACY_HK_NAME( "Position Item Relative" ),
973  _( "Position Relative To..." ),
974  _( "Positions the selected item(s) by an exact amount relative to another" ),
975  move_relative_xpm );
976 
977 TOOL_ACTION PCB_ACTIONS::selectpositionRelativeItem( "pcbnew.PositionRelative.selectpositionRelativeItem",
978  AS_GLOBAL );
979 
980 
981 // SELECTION_TOOL
982 //
983 TOOL_ACTION PCB_ACTIONS::selectionActivate( "pcbnew.InteractiveSelection",
984  AS_GLOBAL, 0, "", "", "", nullptr, AF_ACTIVATE ); // No description, not shown anywhere
985 
986 TOOL_ACTION PCB_ACTIONS::selectionCursor( "pcbnew.InteractiveSelection.Cursor",
987  AS_GLOBAL );
988 
989 TOOL_ACTION PCB_ACTIONS::selectItem( "pcbnew.InteractiveSelection.SelectItem",
990  AS_GLOBAL );
991 
992 TOOL_ACTION PCB_ACTIONS::selectItems( "pcbnew.InteractiveSelection.SelectItems",
993  AS_GLOBAL );
994 
995 TOOL_ACTION PCB_ACTIONS::unselectItem( "pcbnew.InteractiveSelection.UnselectItem",
996  AS_GLOBAL );
997 
998 TOOL_ACTION PCB_ACTIONS::unselectItems( "pcbnew.InteractiveSelection.UnselectItems",
999  AS_GLOBAL );
1000 
1001 TOOL_ACTION PCB_ACTIONS::selectionClear( "pcbnew.InteractiveSelection.Clear",
1002  AS_GLOBAL );
1003 
1004 TOOL_ACTION PCB_ACTIONS::selectionMenu( "pcbnew.InteractiveSelection.SelectionMenu",
1005  AS_GLOBAL );
1006 
1007 TOOL_ACTION PCB_ACTIONS::selectConnection( "pcbnew.InteractiveSelection.SelectConnection",
1008  AS_GLOBAL,
1009  'U', LEGACY_HK_NAME( "Select Single Track" ),
1010  _( "Select Single Track" ),
1011  _( "Selects all track segments & vias between two junctions." ),
1012  add_tracks_xpm );
1013 
1014 TOOL_ACTION PCB_ACTIONS::selectCopper( "pcbnew.InteractiveSelection.SelectCopper",
1015  AS_GLOBAL,
1016  'I', LEGACY_HK_NAME( "Select Connected Tracks" ),
1017  _( "Select Connected Tracks" ),
1018  _( "Selects all connected tracks & vias." ),
1019  net_highlight_xpm );
1020 
1021 TOOL_ACTION PCB_ACTIONS::expandSelectedConnection( "pcbnew.InteractiveSelection.ExpandConnection",
1022  AS_GLOBAL, 0, "",
1023  _( "Expand Selected Connection" ),
1024  _( "Expands the current selection to select a connection between two junctions." ) );
1025 
1026 TOOL_ACTION PCB_ACTIONS::selectNet( "pcbnew.InteractiveSelection.SelectNet",
1027  AS_GLOBAL, 0, "",
1028  _( "Select All Tracks in Net" ),
1029  _( "Selects all tracks & vias belonging to the same net." ),
1030  mode_track_xpm );
1031 
1032 TOOL_ACTION PCB_ACTIONS::selectOnSheetFromEeschema( "pcbnew.InteractiveSelection.SelectOnSheet",
1033  AS_GLOBAL, 0, "",
1034  _( "Sheet" ),
1035  _( "Selects all modules and tracks in the schematic sheet" ),
1036  select_same_sheet_xpm );
1037 
1038 TOOL_ACTION PCB_ACTIONS::selectSameSheet( "pcbnew.InteractiveSelection.SelectSameSheet",
1039  AS_GLOBAL, 0, "",
1040  _( "Items in Same Hierarchical Sheet" ),
1041  _( "Selects all modules and tracks in the same schematic sheet" ),
1042  select_same_sheet_xpm );
1043 
1044 TOOL_ACTION PCB_ACTIONS::filterSelection( "pcbnew.InteractiveSelection.FilterSelection",
1045  AS_GLOBAL, 0, "",
1046  _( "Filter Selection..." ), _( "Filter the types of items in the selection" ),
1047  options_generic_xpm );
1048 
1049 
1050 // ZONE_FILLER_TOOL
1051 //
1052 TOOL_ACTION PCB_ACTIONS::zoneFill( "pcbnew.ZoneFiller.zoneFill",
1053  AS_GLOBAL, 0, "",
1054  _( "Fill" ), _( "Fill zone(s)" ),
1055  fill_zone_xpm );
1056 
1057 TOOL_ACTION PCB_ACTIONS::zoneFillAll( "pcbnew.ZoneFiller.zoneFillAll",
1058  AS_GLOBAL,
1059  'B', LEGACY_HK_NAME( "Fill or Refill All Zones" ),
1060  _( "Fill All" ), _( "Fill all zones" ),
1061  fill_zone_xpm );
1062 
1063 TOOL_ACTION PCB_ACTIONS::zoneUnfill( "pcbnew.ZoneFiller.zoneUnfill",
1064  AS_GLOBAL, 0, "",
1065  _( "Unfill" ), _( "Unfill zone(s)" ),
1066  zone_unfill_xpm );
1067 
1068 TOOL_ACTION PCB_ACTIONS::zoneUnfillAll( "pcbnew.ZoneFiller.zoneUnfillAll",
1069  AS_GLOBAL,
1070  MD_CTRL + 'B', LEGACY_HK_NAME( "Remove Filled Areas in All Zones" ),
1071  _( "Unfill All" ), _( "Unfill all zones" ),
1072  zone_unfill_xpm );
1073 
1074 
1075 // AUTOPLACER_TOOL
1076 //
1077 TOOL_ACTION PCB_ACTIONS::autoplaceSelectedComponents( "pcbnew.Autoplacer.autoplaceSelected",
1078  AS_GLOBAL, 0, "",
1079  _( "Place Selected Footprints" ),
1080  _( "Performs automatic placement of selected components" ),
1081  module_check_xpm );
1082 
1083 TOOL_ACTION PCB_ACTIONS::autoplaceOffboardComponents( "pcbnew.Autoplacer.autoplaceOffboard",
1084  AS_GLOBAL, 0, "",
1085  _( "Place Off-Board Footprints" ),
1086  _( "Performs automatic placement of components outside board area" ),
1087  module_xpm );
1088 
1089 
1090 // ROUTER_TOOL
1091 //
1092 TOOL_ACTION PCB_ACTIONS::routeSingleTrack( "pcbnew.InteractiveRouter.SingleTrack",
1093  AS_GLOBAL,
1094  'X', LEGACY_HK_NAME( "Add New Track" ),
1095  _( "Route Single Track" ), _( "Run push & shove router (single tracks)" ),
1096  add_tracks_xpm, AF_ACTIVATE, (void*) PNS::PNS_MODE_ROUTE_SINGLE );
1097 
1098 TOOL_ACTION PCB_ACTIONS::routeDiffPair( "pcbnew.InteractiveRouter.DiffPair",
1099  AS_GLOBAL,
1100  // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1101  '6', LEGACY_HK_NAME( "Route Differential Pair (Modern Toolset only)" ),
1102  _( "Route Differential Pair" ), _( "Run push & shove router (differential pairs)" ),
1103  ps_diff_pair_xpm, AF_ACTIVATE, (void*) PNS::PNS_MODE_ROUTE_DIFF_PAIR );
1104 
1105 TOOL_ACTION PCB_ACTIONS::routerSettingsDialog( "pcbnew.InteractiveRouter.SettingsDialog",
1106  AS_GLOBAL,
1107  MD_CTRL + MD_SHIFT + ',', LEGACY_HK_NAME( "Routing Options" ),
1108  _( "Interactive Router Settings..." ), _( "Open Interactive Router settings" ),
1109  tools_xpm );
1110 
1111 TOOL_ACTION PCB_ACTIONS::routerDiffPairDialog( "pcbnew.InteractiveRouter.DiffPairDialog",
1112  AS_GLOBAL, 0, "",
1113  _( "Differential Pair Dimensions..." ), _( "Open Differential Pair Dimension settings" ),
1114  ps_diff_pair_gap_xpm );
1115 
1116 TOOL_ACTION PCB_ACTIONS::selectLayerPair( "pcbnew.InteractiveRouter.SelectLayerPair",
1117  AS_GLOBAL, 0, "",
1118  _( "Set Layer Pair..." ), _( "Change active layer pair for routing" ),
1119  select_layer_pair_xpm, AF_ACTIVATE );
1120 
1121 TOOL_ACTION PCB_ACTIONS::routerTuneSingleTrace( "pcbnew.LengthTuner.TuneSingleTrack",
1122  AS_GLOBAL,
1123  // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1124  '7', LEGACY_HK_NAME( "Tune Single Track (Modern Toolset only)" ),
1125  _( "Tune length of a single track" ), "",
1126  ps_tune_length_xpm, AF_ACTIVATE, (void*) PNS::PNS_MODE_TUNE_SINGLE );
1127 
1128 TOOL_ACTION PCB_ACTIONS::routerTuneDiffPair( "pcbnew.LengthTuner.TuneDiffPair",
1129  AS_GLOBAL,
1130  // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1131  '8', LEGACY_HK_NAME( "Tune Differential Pair Length (Modern Toolset only)" ),
1132  _( "Tune length of a differential pair" ), "",
1133  ps_diff_pair_tune_length_xpm, AF_ACTIVATE, (void*) PNS::PNS_MODE_TUNE_DIFF_PAIR );
1134 
1135 TOOL_ACTION PCB_ACTIONS::routerTuneDiffPairSkew( "pcbnew.LengthTuner.TuneDiffPairSkew",
1136  AS_GLOBAL,
1137  // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1138  '9', LEGACY_HK_NAME( "Tune Differential Pair Skew (Modern Toolset only)" ),
1139  _( "Tune skew of a differential pair" ), "",
1140  ps_diff_pair_tune_phase_xpm, AF_ACTIVATE, (void*) PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW );
1141 
1142 TOOL_ACTION PCB_ACTIONS::routerInlineDrag( "pcbnew.InteractiveRouter.InlineDrag",
1143  AS_CONTEXT, 0, "",
1144  _( "Drag Track/Via" ), _( "Drags tracks and vias without breaking connections" ),
1145  drag_xpm );
1146 
1147 TOOL_ACTION PCB_ACTIONS::inlineBreakTrack( "pcbnew.InteractiveRouter.InlineBreakTrack",
1148  AS_GLOBAL, 0, "",
1149  _( "Break Track" ),
1150  _( "Splits the track segment into two segments connected at the cursor position." ),
1151  break_line_xpm );
1152 
1153 TOOL_ACTION PCB_ACTIONS::breakTrack( "pcbnew.InteractiveRouter.BreakTrack",
1154  AS_GLOBAL, 0, "",
1155  _( "Break Track" ),
1156  _( "Splits the track segment into two segments connected at the cursor position." ),
1157  break_line_xpm );
1158 
1159 TOOL_ACTION PCB_ACTIONS::drag45Degree( "pcbnew.InteractiveRouter.Drag45Degree",
1160  AS_GLOBAL,
1161  'D', LEGACY_HK_NAME( "Drag Track Keep Slope" ),
1162  _( "Drag (45 degree mode)" ),
1163  _( "Drags the track segment while keeping connected tracks at 45 degrees." ),
1164  drag_segment_withslope_xpm );
1165 
1166 TOOL_ACTION PCB_ACTIONS::dragFreeAngle( "pcbnew.InteractiveRouter.DragFreeAngle",
1167  AS_GLOBAL,
1168  'G', LEGACY_HK_NAME( "Drag Item" ),
1169  _( "Drag (free angle)" ),
1170  _( "Drags the nearest joint in the track without restricting the track angle." ),
1171  move_xpm );
1172 
static TOOL_ACTION selectItems
Selects a list of items (specified as the event parameter)
Definition: pcb_actions.h:80
static TOOL_ACTION alignRight
Definition: pcb_actions.h:212
static TOOL_ACTION selectionClear
Clears the current selection.
Definition: pcb_actions.h:73
static TOOL_ACTION selectionActivate
Activation of the selection tool.
Definition: pcb_actions.h:67
static TOOL_ACTION layerBottom
Definition: pcb_actions.h:269
static TOOL_ACTION toggleLock
Definition: pcb_actions.h:395
static TOOL_ACTION layerInner26
Definition: pcb_actions.h:264
static TOOL_ACTION drawLine
Definition: pcb_actions.h:149
static TOOL_ACTION saveToBoard
Definition: pcb_actions.h:343
static TOOL_ACTION placeModule
Definition: pcb_actions.h:161
static TOOL_ACTION placeImportedGraphics
Definition: pcb_actions.h:162
static TOOL_ACTION move
move an item
Definition: pcb_actions.h:108
static TOOL_ACTION footprintProperties
Definition: pcb_actions.h:354
static TOOL_ACTION deleteFull
Definition: pcb_actions.h:134
static TOOL_ACTION unlock
Definition: pcb_actions.h:397
static TOOL_ACTION layerNext
Definition: pcb_actions.h:270
static TOOL_ACTION globalDeletions
Definition: pcb_actions.h:302
static TOOL_ACTION layerInner2
Definition: pcb_actions.h:240
static TOOL_ACTION selectLayerPair
Definition: pcb_actions.h:136
static TOOL_ACTION generateGerbers
Definition: pcb_actions.h:315
Add a new zone with the same settings as an existing one.
#define LEGACY_HK_NAME(x)
Definition: actions.h:35
static TOOL_ACTION incWidth
Increase width of currently drawn line.
Definition: pcb_actions.h:168
static TOOL_ACTION layerInner5
Definition: pcb_actions.h:243
static TOOL_ACTION autoplaceOffboardComponents
Definition: pcb_actions.h:426
static TOOL_ACTION drawSimilarZone
Definition: pcb_actions.h:159
static TOOL_ACTION drillOrigin
Definition: pcb_actions.h:410
static TOOL_ACTION lock
Definition: pcb_actions.h:396
static TOOL_ACTION layerInner6
Definition: pcb_actions.h:244
static TOOL_ACTION routerDiffPairDialog
Definition: pcb_actions.h:195
static TOOL_ACTION zoneFillAll
Definition: pcb_actions.h:290
static TOOL_ACTION viaSizeInc
Definition: pcb_actions.h:283
static TOOL_ACTION drawArc
Definition: pcb_actions.h:152
static TOOL_ACTION layerInner7
Definition: pcb_actions.h:245
static TOOL_ACTION layerInner8
Definition: pcb_actions.h:246
static TOOL_ACTION microwaveCreateStubArc
Definition: pcb_actions.h:388
static TOOL_ACTION highlightItem
Definition: pcb_actions.h:409
static TOOL_ACTION layerInner21
Definition: pcb_actions.h:259
static TOOL_ACTION ratsnestLineMode
Definition: pcb_actions.h:227
static TOOL_ACTION autoplaceSelectedComponents
Definition: pcb_actions.h:427
static TOOL_ACTION layerAlphaDec
Definition: pcb_actions.h:273
static TOOL_ACTION boardStatistics
Definition: pcb_actions.h:413
static TOOL_ACTION zoneDisplayOutlines
Definition: pcb_actions.h:234
static TOOL_ACTION unselectItem
Definition: pcb_actions.h:77
static TOOL_ACTION selectNet
Selects all connections belonging to a single net.
Definition: pcb_actions.h:96
static TOOL_ACTION dragFreeAngle
Definition: pcb_actions.h:145
static TOOL_ACTION explodePadToShapes
Definition: pcb_actions.h:361
static TOOL_ACTION drawZoneKeepout
Definition: pcb_actions.h:157
static TOOL_ACTION enumeratePads
Tool for quick pad enumeration.
Definition: pcb_actions.h:364
static TOOL_ACTION unselectItems
Definition: pcb_actions.h:81
static TOOL_ACTION layerAlphaInc
Definition: pcb_actions.h:272
static TOOL_ACTION routerTuneDiffPair
Activation of the Push and Shove router (diff pair tuning mode)
Definition: pcb_actions.h:188
static TOOL_ACTION alignCenterY
Definition: pcb_actions.h:214
static TOOL_ACTION properties
Activation of the edit tool.
Definition: pcb_actions.h:121
static TOOL_ACTION zoneDisplayDisable
Definition: pcb_actions.h:233
static TOOL_ACTION trackWidthDec
Definition: pcb_actions.h:282
Action activates a tool
Definition: tool_event.h:152
static TOOL_ACTION selectionMenu
Runs a selection menu to select from a list of items.
Definition: pcb_actions.h:84
static TOOL_ACTION drawPolygon
Definition: pcb_actions.h:150
static TOOL_ACTION selectConnection
Selects a connection between junctions.
Definition: pcb_actions.h:87
static TOOL_ACTION selectpositionRelativeItem
Selection of anchor item for position relative tool.
Definition: pcb_actions.h:223
static TOOL_ACTION getAndPlace
Find an item and start moving.
Definition: pcb_actions.h:424
static TOOL_ACTION microwaveCreateLine
Definition: pcb_actions.h:392
static TOOL_ACTION trackViaSizeChanged
Definition: pcb_actions.h:286
static TOOL_ACTION showPythonConsole
Definition: pcb_actions.h:328
static TOOL_ACTION placePad
Activation of the drawing tool (placing a PAD)
Definition: pcb_actions.h:358
static TOOL_ACTION drag45Degree
Definition: pcb_actions.h:144
static TOOL_ACTION mirror
Mirroring of selected items.
Definition: pcb_actions.h:118
static TOOL_ACTION changeFootprint
Definition: pcb_actions.h:306
static TOOL_ACTION showLayersManager
Definition: pcb_actions.h:326
static TOOL_ACTION updateFootprint
Definition: pcb_actions.h:304
static TOOL_ACTION distributeVertically
Definition: pcb_actions.h:216
static TOOL_ACTION updateUnits
Definition: pcb_actions.h:403
static TOOL_ACTION swapLayers
Definition: pcb_actions.h:308
static TOOL_ACTION localRatsnestTool
Definition: pcb_actions.h:416
static TOOL_ACTION toggleLastNetHighlight
Definition: pcb_actions.h:406
static TOOL_ACTION changeFootprints
Definition: pcb_actions.h:307
static TOOL_ACTION layerInner3
Definition: pcb_actions.h:241
static TOOL_ACTION setAnchor
Definition: pcb_actions.h:163
static TOOL_ACTION layerInner24
Definition: pcb_actions.h:262
static TOOL_ACTION editTracksAndVias
Definition: pcb_actions.h:300
static TOOL_ACTION generateReportFile
Definition: pcb_actions.h:318
static TOOL_ACTION placeText
Definition: pcb_actions.h:153
static TOOL_ACTION zoneFill
Definition: pcb_actions.h:289
static TOOL_ACTION layerInner11
Definition: pcb_actions.h:249
static TOOL_ACTION alignBottom
Definition: pcb_actions.h:210
static TOOL_ACTION generateD356File
Definition: pcb_actions.h:319
static TOOL_ACTION createFootprint
Definition: pcb_actions.h:339
static TOOL_ACTION decWidth
Decrease width of currently drawn line.
Definition: pcb_actions.h:171
static TOOL_ACTION cutFootprint
Definition: pcb_actions.h:348
static TOOL_ACTION routerTuneDiffPairSkew
Activation of the Push and Shove router (skew tuning mode)
Definition: pcb_actions.h:191
static TOOL_ACTION moveExact
Activation of the exact move tool.
Definition: pcb_actions.h:124
static TOOL_ACTION copyFootprint
Definition: pcb_actions.h:349
static TOOL_ACTION layerTop
Definition: pcb_actions.h:238
static TOOL_ACTION distributeHorizontally
Definition: pcb_actions.h:215
static TOOL_ACTION pushPadSettings
Copy the current pad's settings to other pads in the module or on the board.
Definition: pcb_actions.h:381
static TOOL_ACTION cleanupTracksAndVias
Definition: pcb_actions.h:303
static TOOL_ACTION layerInner23
Definition: pcb_actions.h:261
static TOOL_ACTION highlightNetTool
Definition: pcb_actions.h:407
static TOOL_ACTION trackWidthInc
Definition: pcb_actions.h:281
static TOOL_ACTION duplicateIncrement
Activation of the duplication tool with incrementing (e.g. pad number)
Definition: pcb_actions.h:130
static TOOL_ACTION appendBoard
Definition: pcb_actions.h:411
static TOOL_ACTION zoneDisplayToggle
Definition: pcb_actions.h:235
static TOOL_ACTION routerSettingsDialog
Activation of the Push and Shove settings dialogs.
Definition: pcb_actions.h:194
static TOOL_ACTION toggleFootprintTree
Definition: pcb_actions.h:332
static TOOL_ACTION rotateCw
Rotation of selected objects.
Definition: pcb_actions.h:111
static TOOL_ACTION layerInner13
Definition: pcb_actions.h:251
static TOOL_ACTION layerPrev
Definition: pcb_actions.h:271
static TOOL_ACTION drawDimension
Definition: pcb_actions.h:154
static TOOL_ACTION importNetlist
Definition: pcb_actions.h:310
static TOOL_ACTION copyPadSettings
Copy the selected pad's settings to the board design settings.
Definition: pcb_actions.h:375
static TOOL_ACTION exportFootprint
Definition: pcb_actions.h:352
static TOOL_ACTION layerInner25
Definition: pcb_actions.h:263
static TOOL_ACTION editFootprint
Definition: pcb_actions.h:346
static TOOL_ACTION layerInner18
Definition: pcb_actions.h:256
static TOOL_ACTION pointEditorAddCorner
Break outline (insert additional points to an edge)
Definition: pcb_actions.h:203
static TOOL_ACTION pointEditorRemoveCorner
Removes a corner.
Definition: pcb_actions.h:206
static TOOL_ACTION createArray
Tool for creating an array of objects.
Definition: pcb_actions.h:367
static TOOL_ACTION applyPadSettings
Copy the default pad settings to the selected pad.
Definition: pcb_actions.h:378
static TOOL_ACTION zoneMerge
Definition: pcb_actions.h:293
static TOOL_ACTION alignLeft
Definition: pcb_actions.h:211
static TOOL_ACTION layerInner30
Definition: pcb_actions.h:268
static TOOL_ACTION layerInner29
Definition: pcb_actions.h:267
static TOOL_ACTION showRatsnest
Definition: pcb_actions.h:226
Add a new zone/keepout with fresh settings.
static TOOL_ACTION microwaveCreateGap
Definition: pcb_actions.h:384
static TOOL_ACTION layerInner10
Definition: pcb_actions.h:248
static TOOL_ACTION drawVia
Definition: pcb_actions.h:156
static TOOL_ACTION alignTop
Definition: pcb_actions.h:209
static TOOL_ACTION selectCopper
Selects whole copper connection.
Definition: pcb_actions.h:93
static TOOL_ACTION showEeschema
Definition: pcb_actions.h:412
All active tools
Definition: tool_event.h:144
static TOOL_ACTION generatePosFile
Definition: pcb_actions.h:317
static TOOL_ACTION drawZoneCutout
Definition: pcb_actions.h:158
static TOOL_ACTION layerInner15
Definition: pcb_actions.h:253
static TOOL_ACTION placeTarget
Definition: pcb_actions.h:160
static TOOL_ACTION routerInlineDrag
Activation of the Push and Shove router (inline dragging mode)
Definition: pcb_actions.h:199
static TOOL_ACTION hideDynamicRatsnest
Definition: pcb_actions.h:417
static TOOL_ACTION layerInner28
Definition: pcb_actions.h:266
static TOOL_ACTION zoneUnfillAll
Definition: pcb_actions.h:292
static TOOL_ACTION importFootprint
Definition: pcb_actions.h:351
static TOOL_ACTION boardSetup
Definition: pcb_actions.h:299
static TOOL_ACTION layerInner27
Definition: pcb_actions.h:265
static TOOL_ACTION moduleEdgeOutlines
Display module edges as outlines.
Definition: pcb_actions.h:370
Make a cutout to an existing zone.
static TOOL_ACTION inlineBreakTrack
Breaks track when router is not activated.
Definition: pcb_actions.h:142
static TOOL_ACTION layerInner17
Definition: pcb_actions.h:255
static TOOL_ACTION microwaveCreateStub
Definition: pcb_actions.h:386
static TOOL_ACTION zoneUnfill
Definition: pcb_actions.h:291
static TOOL_ACTION expandSelectedConnection
Expands the current selection to select a connection between two junctions.
Definition: pcb_actions.h:90
static TOOL_ACTION breakTrack
Break a single track into two segments at the cursor.
Definition: pcb_actions.h:139
static TOOL_ACTION clearHighlight
Definition: pcb_actions.h:404
static TOOL_ACTION layerInner20
Definition: pcb_actions.h:258
static TOOL_ACTION updateFootprints
Definition: pcb_actions.h:305
static TOOL_ACTION padDisplayMode
Definition: pcb_actions.h:229
static TOOL_ACTION closeZoneOutline
Definition: pcb_actions.h:165
static TOOL_ACTION importSpecctraSession
Definition: pcb_actions.h:312
static TOOL_ACTION rotateCcw
Definition: pcb_actions.h:112
static TOOL_ACTION drawCircle
Definition: pcb_actions.h:151
static TOOL_ACTION viaDisplayMode
Definition: pcb_actions.h:230
static TOOL_ACTION filterSelection
Filters the items in the current selection (invokes dialog)
Definition: pcb_actions.h:105
static TOOL_ACTION zoneDuplicate
Duplicate zone onto another layer.
Definition: pcb_actions.h:296
static TOOL_ACTION saveToLibrary
Definition: pcb_actions.h:344
static TOOL_ACTION createPadFromShapes
Definition: pcb_actions.h:360
static TOOL_ACTION flip
Flipping of selected objects.
Definition: pcb_actions.h:115
static TOOL_ACTION generateBOM
Definition: pcb_actions.h:320
static TOOL_ACTION layerInner22
Definition: pcb_actions.h:260
static TOOL_ACTION microwaveCreateFunctionShape
Definition: pcb_actions.h:390
static TOOL_ACTION defaultPadProperties
Definition: pcb_actions.h:355
static TOOL_ACTION arcPosture
Switch posture when drawing arc.
Definition: pcb_actions.h:174
static TOOL_ACTION layerChanged
Definition: pcb_actions.h:276
static TOOL_ACTION exportSpecctraDSN
Definition: pcb_actions.h:313
static TOOL_ACTION showMicrowaveToolbar
Definition: pcb_actions.h:327
static TOOL_ACTION editTextAndGraphics
Definition: pcb_actions.h:301
Board layer functions and definitions.
static TOOL_ACTION highlightNet
Definition: pcb_actions.h:405
static TOOL_ACTION highlightNetSelection
Definition: pcb_actions.h:408
#define _(s)
Definition: pcb_actions.cpp:50
static TOOL_ACTION selectOnSheetFromEeschema
Selects all components on sheet from Eeschema crossprobing.
Definition: pcb_actions.h:99
static TOOL_ACTION routeSingleTrack
Activation of the Push and Shove router.
Definition: pcb_actions.h:179
static TOOL_ACTION editFootprintInFpEditor
Definition: pcb_actions.h:325
static TOOL_ACTION listNets
Definition: pcb_actions.h:322
static TOOL_ACTION layerInner14
Definition: pcb_actions.h:252
Class TOOL_ACTION.
Definition: tool_action.h:46
static TOOL_ACTION layerInner9
Definition: pcb_actions.h:247
static TOOL_ACTION selectItem
Selects an item (specified as the event parameter).
Definition: pcb_actions.h:76
TOOL_EVENT MakeEvent() const
Function MakeEvent() Returns the event associated with the action (i.e.
Definition: tool_action.h:107
static TOOL_ACTION runDRC
Definition: pcb_actions.h:323
static TOOL_ACTION graphicDisplayMode
Definition: pcb_actions.h:231
static TOOL_ACTION positionRelative
Activation of the position relative tool.
Definition: pcb_actions.h:220
static TOOL_ACTION layerInner16
Definition: pcb_actions.h:254
static TOOL_ACTION deleteLastPoint
Definition: pcb_actions.h:164
boost::optional< T > OPT
Definition: optional.h:7
static TOOL_ACTION pasteFootprint
Definition: pcb_actions.h:350
static TOOL_ACTION layerInner4
Definition: pcb_actions.h:242
static TOOL_ACTION updateLocalRatsnest
Definition: pcb_actions.h:418
static TOOL_ACTION flipBoard
Definition: pcb_actions.h:278
static TOOL_ACTION layerInner19
Definition: pcb_actions.h:257
virtual OPT< TOOL_EVENT > TranslateLegacyId(int aId) override
Definition: pcb_actions.cpp:33
static TOOL_ACTION layerInner1
Definition: pcb_actions.h:239
static const char * text_xpm[]
static TOOL_ACTION alignCenterX
Definition: pcb_actions.h:213
static TOOL_ACTION viaSizeDec
Definition: pcb_actions.h:284
static TOOL_ACTION drawZone
Definition: pcb_actions.h:155
static TOOL_ACTION deleteFootprint
Definition: pcb_actions.h:347
static TOOL_ACTION selectionCursor
Select a single item under the cursor position.
Definition: pcb_actions.h:70
static TOOL_ACTION trackDisplayMode
Definition: pcb_actions.h:228
static TOOL_ACTION newFootprint
Definition: pcb_actions.h:336
static TOOL_ACTION generateDrillFiles
Definition: pcb_actions.h:316
static TOOL_ACTION layerInner12
Definition: pcb_actions.h:250
static TOOL_ACTION selectSameSheet
Selects all components on the same sheet as the selected footprint.
Definition: pcb_actions.h:102
static TOOL_ACTION layerToggle
Definition: pcb_actions.h:274
static TOOL_ACTION zoneDisplayEnable
Definition: pcb_actions.h:232
static TOOL_ACTION routerTuneSingleTrace
Activation of the Push and Shove router (tune single line mode)
Definition: pcb_actions.h:185
static TOOL_ACTION routeDiffPair
Activation of the Push and Shove router (differential pair mode)
Definition: pcb_actions.h:182