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