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