KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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-2023 CERN
5 * Copyright (C) 2016-2023 KiCad Developers, see AUTHORS.txt for contributors.
6 * @author Maciej Suminski <[email protected]>
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 "tool/tool_action.h"
28#include "tool/tool_event.h"
29#include <pcbnew_id.h>
30#include <bitmaps.h>
31#include <layer_ids.h>
33#include <pcb_reference_image.h>
34#include <tool/tool_manager.h>
37#include <router/pns_router.h>
39
40// Actions, being statically-defined, require specialized I18N handling. We continue to
41// use the _() macro so that string harvesting by the I18N framework doesn't have to be
42// specialized, but we don't translate on initialization and instead do it in the getters.
43
44#undef _
45#define _(s) s
46
47// clang-format off
48
49// CONVERT_TOOL
50//
52 .Name( "pcbnew.Convert.convertToPoly" )
53 .Scope( AS_GLOBAL )
54 .FriendlyName( _( "Create Polygon from Selection..." ) )
55 .Tooltip( _( "Creates a graphic polygon from the selection" ) )
57
59 .Name( "pcbnew.Convert.convertToZone" )
60 .Scope( AS_GLOBAL )
61 .FriendlyName( _( "Create Zone from Selection..." ) )
62 .Tooltip( _( "Creates a copper zone from the selection" ) )
63 .Icon( BITMAPS::add_zone ) );
64
66 .Name( "pcbnew.Convert.convertToKeepout" )
67 .Scope( AS_GLOBAL )
68 .FriendlyName( _( "Create Rule Area from Selection..." ) )
69 .Tooltip( _( "Creates a rule area from the selection" ) )
71
73 .Name( "pcbnew.Convert.convertToLines" )
74 .Scope( AS_GLOBAL )
75 .FriendlyName( _( "Create Lines from Selection..." ) )
76 .Tooltip( _( "Creates graphic lines from the selection" ) )
77 .Icon( BITMAPS::add_line ) );
78
80 .Name( "pcbnew.Convert.convertToArc" )
81 .Scope( AS_GLOBAL )
82 .FriendlyName( _( "Create Arc from Selection" ) )
83 .Tooltip( _( "Creates an arc from the selected line segment" ) )
84 .Icon( BITMAPS::add_arc ) );
85
87 .Name( "pcbnew.Convert.convertToTracks" )
88 .Scope( AS_GLOBAL )
89 .FriendlyName( _( "Create Tracks from Selection" ) )
90 .Tooltip( _( "Creates tracks from the selected graphic lines" ) )
91 .Icon( BITMAPS::add_tracks ) );
92
94 .Name( "pcbnew.Convert.outsetItems" )
95 .Scope( AS_GLOBAL )
96 .FriendlyName( _( "Create Outsets from Selection" ) )
97 .Tooltip( _( "Create outset lines from the selected item" ) )
99
100
101// DRAWING_TOOL
102//
104 .Name( "pcbnew.InteractiveDrawing.line" )
105 .Scope( AS_GLOBAL )
106 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'L' )
107 .LegacyHotkeyName( "Draw Line" )
108 .FriendlyName( _( "Draw Lines" ) )
110 .Flags( AF_ACTIVATE ) );
111
113 .Name( "pcbnew.InteractiveDrawing.graphicPolygon" )
114 .Scope( AS_GLOBAL )
115 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'P' )
116 .LegacyHotkeyName( "Draw Graphic Polygon" )
117 .FriendlyName( _( "Draw Polygons" ) )
119 .Flags( AF_ACTIVATE )
120 .Parameter( ZONE_MODE::GRAPHIC_POLYGON ) );
121
123 .Name( "pcbnew.InteractiveDrawing.rectangle" )
124 .Scope( AS_GLOBAL )
125 .FriendlyName( _( "Draw Rectangles" ) )
127 .Flags( AF_ACTIVATE ) );
128
130 .Name( "pcbnew.InteractiveDrawing.circle" )
131 .Scope( AS_GLOBAL )
132 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'C' )
133 .LegacyHotkeyName( "Draw Circle" )
134 .FriendlyName( _( "Draw Circles" ) )
135 .Icon( BITMAPS::add_circle )
136 .Flags( AF_ACTIVATE ) );
137
139 .Name( "pcbnew.InteractiveDrawing.arc" )
140 .Scope( AS_GLOBAL )
141 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'A' )
142 .LegacyHotkeyName( "Draw Arc" )
143 .FriendlyName( _( "Draw Arcs" ) )
144 .Icon( BITMAPS::add_arc )
145 .Flags( AF_ACTIVATE ) );
146
148 .Name( "pcbnew.InteractiveDrawing.bezier" )
149 .Scope( AS_GLOBAL )
150 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'B' )
151 .FriendlyName( _( "Draw Bezier Curve" ) )
152 .Icon( BITMAPS::add_bezier )
153 .Flags( AF_ACTIVATE ) );
154
156 .Name( "pcbnew.InteractiveDrawing.placeCharacteristics" )
157 .Scope( AS_GLOBAL )
158 .LegacyHotkeyName( "Add Board Characteristics" )
159 .FriendlyName( _( "Add Board Characteristics" ) )
160 .Tooltip( _( "Add a board characteristics table on a graphic layer" ) )
161 .Flags( AF_ACTIVATE ) );
162
164 .Name( "pcbnew.InteractiveDrawing.placeStackup" )
165 .Scope( AS_GLOBAL )
166 .LegacyHotkeyName( "Add Stackup Table" )
167 .FriendlyName( _( "Add Stackup Table" ) )
168 .Tooltip( _( "Add a board stackup table on a graphic layer" ) )
169 .Flags( AF_ACTIVATE ) );
170
172 .Name( "pcbnew.InteractiveDrawing.placeReferenceImage" )
173 .Scope( AS_GLOBAL )
174 .FriendlyName( _( "Place Reference Images" ) )
175 .Tooltip( _( "Add bitmap images to be used as reference (images will not be included in any output)" ) )
176 .Icon( BITMAPS::image )
177 .Flags( AF_ACTIVATE )
178 .Parameter<PCB_REFERENCE_IMAGE*>( nullptr ) );
179
181 .Name( "pcbnew.InteractiveDrawing.text" )
182 .Scope( AS_GLOBAL )
183 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'T' )
184 .LegacyHotkeyName( "Add Text" )
185 .FriendlyName( _( "Draw Text" ) )
186 .Icon( BITMAPS::text )
187 .Flags( AF_ACTIVATE ) );
188
190 .Name( "pcbnew.InteractiveDrawing.textbox" )
191 .Scope( AS_GLOBAL )
192 .FriendlyName( _( "Draw Text Boxes" ) )
193 .Icon( BITMAPS::add_textbox )
194 .Flags( AF_ACTIVATE ) );
195
197 .Name( "pcbnew.InteractiveDrawing.drawTable" )
198 .Scope( AS_GLOBAL )
199 .FriendlyName( _( "Draw Tables" ) )
200 .Icon( BITMAPS::spreadsheet ) // JEY TODO
201 .Flags( AF_ACTIVATE ) );
202
204 .Name( "pcbnew.lengthTuner.SpacingIncrease" )
205 .Scope( AS_GLOBAL )
206 .DefaultHotkey( '1' )
207 .LegacyHotkeyName( "Increase meander spacing by one step." )
208 .FriendlyName( _( "Increase Spacing" ) )
209 .Tooltip( _( "Increase tuning pattern spacing by one step." ) )
211
213 .Name( "pcbnew.lengthTuner.SpacingDecrease" )
214 .Scope( AS_GLOBAL )
215 .DefaultHotkey( '2' )
216 .LegacyHotkeyName( "Decrease meander spacing by one step." )
217 .FriendlyName( _( "Decrease Spacing" ) )
218 .Tooltip( _( "Decrease tuning pattern spacing by one step." ) )
220
222 .Name( "pcbnew.lengthTuner.AmplIncrease" )
223 .Scope( AS_GLOBAL )
224 .DefaultHotkey( '3' )
225 .LegacyHotkeyName( "Increase meander amplitude by one step." )
226 .FriendlyName( _( "Increase Amplitude" ) )
227 .Tooltip( _( "Increase tuning pattern amplitude by one step." ) )
229
231 .Name( "pcbnew.lengthTuner.AmplDecrease" )
232 .Scope( AS_GLOBAL )
233 .DefaultHotkey( '4' )
234 .LegacyHotkeyName( "Decrease meander amplitude by one step." )
235 .FriendlyName( _( "Decrease Amplitude" ) )
236 .Tooltip( _( "Decrease tuning pattern amplitude by one step." ) )
238
239
241 .Name( "pcbnew.InteractiveDrawing.alignedDimension" )
242 .Scope( AS_GLOBAL )
243 .LegacyHotkeyName( "Add Dimension" )
244 .FriendlyName( _( "Draw Aligned Dimensions" ) )
246 .Flags( AF_ACTIVATE ) );
247
249 .Name( "pcbnew.InteractiveDrawing.centerDimension" )
250 .Scope( AS_GLOBAL )
251 .FriendlyName( _( "Draw Center Dimensions" ) )
253 .Flags( AF_ACTIVATE ) );
254
256 .Name( "pcbnew.InteractiveDrawing.radialDimension" )
257 .Scope( AS_GLOBAL )
258 .FriendlyName( _( "Draw Radial Dimensions" ) )
260 .Flags( AF_ACTIVATE ) );
261
263 .Name( "pcbnew.InteractiveDrawing.orthogonalDimension" )
264 .Scope( AS_GLOBAL )
265 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'H' )
266 .FriendlyName( _( "Draw Orthogonal Dimensions" ) )
268 .Flags( AF_ACTIVATE ) );
269
271 .Name( "pcbnew.InteractiveDrawing.leader" )
272 .Scope( AS_GLOBAL )
273 .FriendlyName( _( "Draw Leaders" ) )
274 .Icon( BITMAPS::add_leader )
275 .Flags( AF_ACTIVATE ) );
276
278 .Name( "pcbnew.InteractiveDrawing.zone" )
279 .Scope( AS_GLOBAL )
280#ifdef __WXOSX_MAC__
281 .DefaultHotkey( MD_ALT + 'Z' )
282#else
283 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'Z' )
284#endif
285 .LegacyHotkeyName( "Add Filled Zone" )
286 .FriendlyName( _( "Draw Filled Zones" ) )
287 .Icon( BITMAPS::add_zone )
288 .Flags( AF_ACTIVATE )
289 .Parameter( ZONE_MODE::ADD ) );
290
292 .Name( "pcbnew.InteractiveDrawing.via" )
293 .Scope( AS_GLOBAL )
294 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'V' )
295 .LegacyHotkeyName( "Add Vias" )
296 .FriendlyName( _( "Place Vias" ) )
297 .Tooltip( _( "Place free-standing vias" ) )
298 .Icon( BITMAPS::add_via )
299 .Flags( AF_ACTIVATE ) );
300
302 .Name( "pcbnew.InteractiveDrawing.ruleArea" )
303 .Scope( AS_GLOBAL )
304 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'K' )
305 .LegacyHotkeyName( "Add Keepout Area" )
306 .FriendlyName( _( "Draw Rule Areas" ) )
308 .Flags( AF_ACTIVATE )
309 .Parameter( ZONE_MODE::ADD ) );
310
312 .Name( "pcbnew.InteractiveDrawing.zoneCutout" )
313 .Scope( AS_GLOBAL )
314 .DefaultHotkey( MD_SHIFT + 'C' )
315 .LegacyHotkeyName( "Add a Zone Cutout" )
316 .FriendlyName( _( "Add a Zone Cutout" ) )
317 .Tooltip( _( "Add a cutout to an existing zone or rule area" ) )
319 .Flags( AF_ACTIVATE )
320 .Parameter( ZONE_MODE::CUTOUT ) );
321
323 .Name( "pcbnew.InteractiveDrawing.similarZone" )
324 .Scope( AS_GLOBAL )
325 .DefaultHotkey( MD_SHIFT + MD_CTRL + '.' )
326 .LegacyHotkeyName( "Add a Similar Zone" )
327 .FriendlyName( _( "Add a Similar Zone" ) )
328 .Tooltip( _( "Add a zone with the same settings as an existing zone" ) )
329 .Icon( BITMAPS::add_zone )
330 .Flags( AF_ACTIVATE )
331 .Parameter( ZONE_MODE::SIMILAR ) );
332
334 .Name( "pcbnew.InteractiveDrawing.placeImportedGraphics" )
335 .Scope( AS_GLOBAL )
336 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'F' )
337 .LegacyHotkeyName( "Place DXF" )
338 .FriendlyName( _( "Import Graphics..." ) )
339 .Tooltip( _( "Import 2D drawing file" ) )
341 .Flags( AF_ACTIVATE ) );
342
344 .Name( "pcbnew.InteractiveDrawing.setAnchor" )
345 .Scope( AS_GLOBAL )
346 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'N' )
347 .LegacyHotkeyName( "Place the Footprint Anchor" )
348 .FriendlyName( _( "Place the Footprint Anchor" ) )
349 .Tooltip( _( "Set the coordinate origin point (anchor) of the footprint" ) )
350 .Icon( BITMAPS::anchor )
351 .Flags( AF_ACTIVATE ) );
352
354 .Name( "pcbnew.InteractiveDrawing.incWidth" )
355 .Scope( AS_CONTEXT )
356 .DefaultHotkey( MD_CTRL + '+' )
357 .LegacyHotkeyName( "Increase Line Width" )
358 .FriendlyName( _( "Increase Line Width" ) ) );
359
361 .Name( "pcbnew.InteractiveDrawing.decWidth" )
362 .Scope( AS_CONTEXT )
363 .DefaultHotkey( MD_CTRL + '-' )
364 .LegacyHotkeyName( "Decrease Line Width" )
365 .FriendlyName( _( "Decrease Line Width" ) ) );
366
368 .Name( "pcbnew.InteractiveDrawing.arcPosture" )
369 .Scope( AS_CONTEXT )
370 .DefaultHotkey( '/' )
371 .LegacyHotkeyName( "Switch Track Posture" )
372 .FriendlyName( _( "Switch Arc Posture" ) ) );
373
375 .Name( "pcbnew.InteractiveDrawing.changeDimensionArrows" )
376 .Scope( AS_CONTEXT )
377 .FriendlyName( "Switch Dimension Arrows" )
378 .Tooltip( "Switch between inward and outward dimension arrows" ) );
379
380
382 .Name( "common.Control.magneticSnapActiveLayer" )
383 .Scope( AS_GLOBAL )
384 .FriendlyName( _( "Snap to Objects on the Active Layer Only" ) )
385 .Tooltip( _( "Enables snapping to objects on the active layer only" ) ) );
386
388 .Name( "common.Control.magneticSnapAllLayers" )
389 .Scope( AS_GLOBAL )
390 .FriendlyName( _( "Snap to Objects on All Layers" ) )
391 .Tooltip( _( "Enables snapping to objects on all visible layers" ) ) );
392
394 .Name( "common.Control.magneticSnapToggle" )
395 .Scope( AS_GLOBAL )
396 .DefaultHotkey( MD_SHIFT + 'S' )
397 .FriendlyName( _( "Toggle Snapping Between Active and All Layers" ) )
398 .Tooltip( _( "Toggles between snapping on all visible layers and only the active area" ) ) );
399
401 .Name( "pcbnew.InteractiveDrawing.deleteLastPoint" )
402 .Scope( AS_CONTEXT )
403 .DefaultHotkey( WXK_BACK )
404 .FriendlyName( _( "Delete Last Point" ) )
405 .Tooltip( _( "Delete the last point added to the current item" ) )
406 .Icon( BITMAPS::undo ) );
407
409 .Name( "pcbnew.InteractiveDrawing.closeOutline" )
410 .Scope( AS_CONTEXT )
411 .FriendlyName( _( "Close Outline" ) )
412 .Tooltip( _( "Close the in progress outline" ) )
413 .Icon( BITMAPS::checked_ok ) );
414
415// DRC
416//
418 .Name( "pcbnew.DRCTool.runDRC" )
419 .Scope( AS_GLOBAL )
420 .FriendlyName( _( "Design Rules Checker" ) )
421 .Tooltip( _( "Show the design rules checker window" ) )
422 .Icon( BITMAPS::erc ) );
423
424
425// EDIT_TOOL
426//
428 .Name( "pcbnew.EditorControl.EditFpInFpEditor" )
429 .Scope( AS_GLOBAL )
430 .DefaultHotkey( MD_CTRL + 'E' )
431 .LegacyHotkeyName( "Edit with Footprint Editor" )
432 .FriendlyName( _( "Open in Footprint Editor" ) )
433 .Icon( BITMAPS::module_editor ) );
434
436 .Name( "pcbnew.EditorControl.EditLibFpInFpEditor" )
437 .Scope( AS_GLOBAL )
438 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
439 .FriendlyName( _( "Edit Library Footprint..." ) )
440 .Icon( BITMAPS::module_editor ) );
441
443 .Name( "pcbnew.InteractiveEdit.FindMove" )
444 .Scope( AS_GLOBAL )
445 .DefaultHotkey( 'T' )
446 .LegacyHotkeyName( "Get and Move Footprint" )
447 .FriendlyName( _( "Get and Move Footprint" ) )
448 .Tooltip( _( "Selects a footprint by reference designator and places it under the cursor for moving" ) )
449 .Icon( BITMAPS::move )
450 .Flags( AF_ACTIVATE ) );
451
453 .Name( "pcbnew.InteractiveMove.move" )
454 .Scope( AS_GLOBAL )
455 .DefaultHotkey( 'M' )
456 .LegacyHotkeyName( "Move Item" )
457 .FriendlyName( _( "Move" ) )
458 .Icon( BITMAPS::move )
459 .Flags( AF_ACTIVATE )
461
463 .Name( "pcbnew.InteractiveMove.moveIndividually" )
464 .Scope( AS_GLOBAL )
465 .DefaultHotkey( MD_CTRL + 'M' )
466 .FriendlyName( _( "Move Individually" ) )
467 .Tooltip( _( "Moves the selected items one-by-one" ) )
468 .Icon( BITMAPS::move )
469 .Flags( AF_ACTIVATE )
471
473 .Name( "pcbnew.InteractiveMove.moveWithReference" )
474 .Scope( AS_GLOBAL )
475 .FriendlyName( _( "Move with Reference" ) )
476 .Tooltip( _( "Moves the selected item(s) with a specified starting point" ) )
477 .Icon( BITMAPS::move )
478 .Flags( AF_ACTIVATE )
480
482 .Name( "pcbnew.InteractiveMove.copyWithReference" )
483 .Scope( AS_GLOBAL )
484 .FriendlyName( _( "Copy with Reference" ) )
485 .Tooltip( _( "Copy selected item(s) to clipboard with a specified starting point" ) )
486 .Icon( BITMAPS::copy )
487 .Flags( AF_ACTIVATE ) );
488
490 .Name( "pcbnew.InteractiveEdit.duplicateIncrementPads" )
491 .Scope( AS_GLOBAL )
492 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'D' )
493 .LegacyHotkeyName( "Duplicate Item and Increment" )
494 .FriendlyName( _( "Duplicate and Increment" ) )
495 .Tooltip( _( "Duplicates the selected item(s), incrementing pad numbers" ) )
496 .Icon( BITMAPS::duplicate ) );
497
499 .Name( "pcbnew.InteractiveEdit.moveExact" )
500 .Scope( AS_GLOBAL )
501 .DefaultHotkey( MD_SHIFT + 'M' )
502 .LegacyHotkeyName( "Move Item Exactly" )
503 .FriendlyName( _( "Move Exactly..." ) )
504 .Tooltip( _( "Moves the selected item(s) by an exact amount" ) )
505 .Icon( BITMAPS::move_exactly ) );
506
508 .Name( "pcbnew.InteractiveEdit.moveCorner" )
509 .Scope( AS_GLOBAL )
510 .FriendlyName( _( "Move Corner To..." ) )
511 .Tooltip( _( "Move the active corner to an exact location" ) )
512 .Icon( BITMAPS::move_exactly ) );
513
515 .Name( "pcbnew.InteractiveEdit.moveMidpoint" )
516 .Scope( AS_GLOBAL )
517 .FriendlyName( _( "Move Midpoint To..." ) )
518 .Tooltip( _( "Move the active midpoint to an exact location" ) )
519 .Icon( BITMAPS::move_exactly ) );
520
522 .Name( "pcbnew.InteractiveEdit.rotateCw" )
523 .Scope( AS_GLOBAL )
524 .DefaultHotkey( MD_SHIFT + 'R' )
525 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
526 .LegacyHotkeyName( "Rotate Item Clockwise (Modern Toolset only)" )
527 .FriendlyName( _( "Rotate Clockwise" ) )
528 .Icon( BITMAPS::rotate_cw )
529 .Flags( AF_NONE )
530 .Parameter( -1 ) );
531
533 .Name( "pcbnew.InteractiveEdit.rotateCcw" )
534 .Scope( AS_GLOBAL )
535 .DefaultHotkey( 'R' )
536 .LegacyHotkeyName( "Rotate Item" )
537 .FriendlyName( _( "Rotate Counterclockwise" ) )
538 .Icon( BITMAPS::rotate_ccw )
539 .Flags( AF_NONE )
540 .Parameter( 1 ) );
541
543 .Name( "pcbnew.InteractiveEdit.flip" )
544 .Scope( AS_GLOBAL )
545 .DefaultHotkey( 'F' )
546 .LegacyHotkeyName( "Flip Item" )
547 .FriendlyName( _( "Change Side / Flip" ) )
548 .Tooltip( _( "Flips selected item(s) to opposite side of board" ) )
549 .Icon( BITMAPS::swap_layer ) );
550
552 .Name( "pcbnew.InteractiveEdit.mirrorHoriontally" )
553 .Scope( AS_GLOBAL )
554 .FriendlyName( _( "Mirror Horizontally" ) )
555 .Tooltip( _( "Mirrors selected item(s) across the Y axis" ) )
556 .Icon( BITMAPS::mirror_h ) );
557
559 .Name( "pcbnew.InteractiveEdit.mirrorVertically" )
560 .Scope( AS_GLOBAL )
561 .FriendlyName( _( "Mirror Vertically" ) )
562 .Tooltip( _( "Mirrors selected item(s) across the X axis" ) )
563 .Icon( BITMAPS::mirror_v ) );
564
566 .Name( "pcbnew.InteractiveEdit.swap" )
567 .Scope( AS_GLOBAL )
568 .DefaultHotkey( MD_ALT + 'S' )
569 .FriendlyName( _( "Swap" ) )
570 .Tooltip( _( "Swap positions of selected items" ) )
571 .Icon( BITMAPS::swap ) );
572
574 .Name( "pcbnew.InteractiveEdit.packAndMoveFootprints" )
575 .Scope( AS_GLOBAL )
576 .DefaultHotkey( 'P' )
577 .FriendlyName( _( "Pack and Move Footprints" ) )
578 .Tooltip( _( "Sorts selected footprints by reference, packs based on size and initiates movement" ) )
579 .Icon( BITMAPS::pack_footprints ) );
580
582 .Name( "pcbnew.InteractiveEdit.skip" )
583 .Scope( AS_CONTEXT )
584 .DefaultHotkey( WXK_TAB )
585 .FriendlyName( _( "Skip" ) )
586 .Tooltip( _( "Skip to next item" ) )
587 .Icon( BITMAPS::right ) );
588
590 .Name( "pcbnew.InteractiveEdit.changeTrackWidth" )
591 .Scope( AS_GLOBAL )
592 .FriendlyName( _( "Change Track Width" ) )
593 .Tooltip( _( "Updates selected track & via sizes" ) ) );
594
596 .Name( "pcbnew.InteractiveEdit.filletTracks" )
597 .Scope( AS_GLOBAL )
598 .FriendlyName( _( "Fillet Tracks" ) )
599 .Tooltip( _( "Adds arcs tangent to the selected straight track segments" ) ) );
600
602 .Name( "pcbnew.InteractiveEdit.filletLines" )
603 .Scope( AS_GLOBAL )
604 .FriendlyName( _( "Fillet Lines..." ) )
605 .Tooltip( _( "Adds arcs tangent to the selected lines" ) )
606 .Icon( BITMAPS::fillet ) );
607
609 .Name( "pcbnew.InteractiveEdit.chamferLines" )
610 .Scope( AS_GLOBAL )
611 .FriendlyName( _( "Chamfer Lines..." ) )
612 .Tooltip( _( "Cut away corners between selected lines" ) )
613 .Icon( BITMAPS::chamfer ) );
614
616 .Name( "pcbnew.InteractiveEdit.dogboneCorners" )
617 .Scope( AS_GLOBAL )
618 .FriendlyName( _( "Dogbone Corners..." ) )
619 .Tooltip( _( "Add dogbone corners to selected lines" ) ) );
620
622 .Name( "pcbnew.InteractiveEdit.simplifyPolygons" )
623 .Scope( AS_GLOBAL )
624 .FriendlyName( _( "Simplify Polygons" ) )
625 .Tooltip( _( "Simplify polygon outlines, removing superfluous points" ) ) );
626
628 .Name( "pcbnew.InteractiveEdit.healShapes" )
629 .Scope( AS_GLOBAL )
630 .FriendlyName( _( "Heal Shapes" ) )
631 .Tooltip( _( "Connect shapes, possibly extending or cutting them, or adding extra geometry" ) )
632 .Icon( BITMAPS::heal_shapes ) );
633
635 .Name( "pcbnew.InteractiveEdit.extendLines" )
636 .Scope( AS_GLOBAL )
637 .FriendlyName( _( "Extend Lines to Meet" ) )
638 .Tooltip( _( "Extend lines to meet each other" ) ) );
639
641 .Name( "pcbnew.InteractiveEdit.mergePolygons" )
642 .Scope( AS_GLOBAL )
643 .FriendlyName( _( "Merge Polygons" ) )
644 .Tooltip( _( "Merge selected polygons into a single polygon" ) )
645 .Icon( BITMAPS::merge_polygons ) );
646
648 .Name( "pcbnew.InteractiveEdit.subtractPolygons" )
649 .Scope( AS_GLOBAL )
650 .FriendlyName( _( "Subtract Polygons" ) )
651 .Tooltip( _( "Subtract selected polygons from the last one selected" ) )
653
655 .Name( "pcbnew.InteractiveEdit.intersectPolygons" )
656 .Scope( AS_GLOBAL )
657 .FriendlyName( _( "Intersect Polygons" ) )
658 .Tooltip( _( "Create the intersection of the selected polygons" ) )
660
662 .Name( "pcbnew.InteractiveEdit.deleteFull" )
663 .Scope( AS_GLOBAL )
664 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DELETE ) )
665 .LegacyHotkeyName( "Delete Full Track" )
666 .FriendlyName( _( "Delete Full Track" ) )
667 .Tooltip( _( "Deletes selected item(s) and copper connections" ) )
669 .Flags( AF_NONE )
670 .Parameter( PCB_ACTIONS::REMOVE_FLAGS::ALT ) );
671
673 .Name( "pcbnew.InteractiveEdit.properties" )
674 .Scope( AS_GLOBAL )
675 .DefaultHotkey( 'E' )
676 .LegacyHotkeyName( "Edit Item" )
677 .FriendlyName( _( "Properties..." ) )
678 .Icon( BITMAPS::edit ) );
679
680// ARRAY
681//
683 .Name( "pcbnew.Array.createArray" )
684 .Scope( AS_GLOBAL )
685 .DefaultHotkey( MD_CTRL + 'T' )
686 .LegacyHotkeyName( "Create Array" )
687 .FriendlyName( _( "Create Array..." ) )
688 .Icon( BITMAPS::array )
689 .Flags( AF_ACTIVATE ) );
690
691// FOOTPRINT_EDITOR_CONTROL
692//
694 .Name( "pcbnew.ModuleEditor.newFootprint" )
695 .Scope( AS_GLOBAL )
696 .DefaultHotkey( MD_CTRL + 'N' )
697 .LegacyHotkeyName( "New" )
698 .FriendlyName( _( "New Footprint" ) )
699 .Tooltip( _( "Create a new, empty footprint" ) )
700 .Icon( BITMAPS::new_footprint ) );
701
703 .Name( "pcbnew.ModuleEditor.createFootprint" )
704 .Scope( AS_GLOBAL )
705 .FriendlyName( _( "Create Footprint..." ) )
706 .Tooltip( _( "Create a new footprint using the Footprint Wizard" ) )
707 .Icon( BITMAPS::module_wizard ) );
708
710 .Name( "pcbnew.ModuleEditor.editFootprint" )
711 .Scope( AS_GLOBAL )
712 .FriendlyName( _( "Edit Footprint" ) )
713 .Tooltip( _( "Show selected footprint on editor canvas" ) )
714 .Icon( BITMAPS::edit ) );
715
717 .Name( "pcbnew.ModuleEditor.duplicateFootprint" )
718 .Scope( AS_GLOBAL )
719 .FriendlyName( _( "Duplicate Footprint" ) )
720 .Icon( BITMAPS::duplicate ) );
721
723 .Name( "pcbnew.ModuleEditor.renameFootprint" )
724 .Scope( AS_GLOBAL )
725 .FriendlyName( _( "Rename Footprint..." ) )
726 .Icon( BITMAPS::edit ) );
727
729 .Name( "pcbnew.ModuleEditor.deleteFootprint" )
730 .Scope( AS_GLOBAL )
731 .FriendlyName( _( "Delete Footprint from Library" ) )
732 .Icon( BITMAPS::trash ) );
733
735 .Name( "pcbnew.ModuleEditor.cutFootprint" )
736 .Scope( AS_GLOBAL )
737 .FriendlyName( _( "Cut Footprint" ) )
738 .Icon( BITMAPS::cut ) );
739
741 .Name( "pcbnew.ModuleEditor.copyFootprint" )
742 .Scope( AS_GLOBAL )
743 .FriendlyName( _( "Copy Footprint" ) )
744 .Icon( BITMAPS::copy ) );
745
747 .Name( "pcbnew.ModuleEditor.pasteFootprint" )
748 .Scope( AS_GLOBAL )
749 .FriendlyName( _( "Paste Footprint" ) )
750 .Icon( BITMAPS::paste ) );
751
753 .Name( "pcbnew.ModuleEditor.importFootprint" )
754 .Scope( AS_GLOBAL )
755 .FriendlyName( _( "Import Footprint..." ) )
756 .Tooltip( _( "Import footprint from file" ) )
757 .Icon( BITMAPS::import_module ) );
758
760 .Name( "pcbnew.ModuleEditor.exportFootprint" )
761 .Scope( AS_GLOBAL )
762 .FriendlyName( _( "Export Current Footprint..." ) )
763 .Tooltip( _( "Export edited footprint to file" ) )
764 .Icon( BITMAPS::export_module ) );
765
767 .Name( "pcbnew.ModuleEditor.footprintProperties" )
768 .Scope( AS_GLOBAL )
769 .FriendlyName( _( "Footprint Properties..." ) )
770 .Icon( BITMAPS::module_options ) );
771
773 .Name( "pcbnew.ModuleEditor.checkFootprint" )
774 .Scope( AS_GLOBAL )
775 .FriendlyName( _( "Footprint Checker" ) )
776 .Tooltip( _( "Show the footprint checker window" ) )
777 .Icon( BITMAPS::erc ) );
778
779// GLOBAL_EDIT_TOOL
780//
782 .Name( "pcbnew.GlobalEdit.updateFootprint" )
783 .Scope( AS_GLOBAL )
784 .FriendlyName( _( "Update Footprint..." ) )
785 .Tooltip( _( "Update footprint to include any changes from the library" ) )
786 .Icon( BITMAPS::refresh ) );
787
789 .Name( "pcbnew.GlobalEdit.updateFootprints" )
790 .Scope( AS_GLOBAL )
791 .FriendlyName( _( "Update Footprints from Library..." ) )
792 .Tooltip( _( "Update footprints to include any changes from the library" ) )
793 .Icon( BITMAPS::refresh ) );
794
796 .Name( "pcbnew.GlobalEdit.removeUnusedPads" )
797 .Scope( AS_GLOBAL )
798 .FriendlyName( _( "Remove Unused Pads..." ) )
799 .Tooltip( _( "Remove or restore the unconnected inner layers on through hole pads and vias" ) )
800 .Icon( BITMAPS::pads_remove ) );
801
803 .Name( "pcbnew.GlobalEdit.changeFootprint" )
804 .Scope( AS_GLOBAL )
805 .FriendlyName( _( "Change Footprint..." ) )
806 .Tooltip( _( "Assign a different footprint from the library" ) )
807 .Icon( BITMAPS::exchange ) );
808
810 .Name( "pcbnew.GlobalEdit.changeFootprints" )
811 .Scope( AS_GLOBAL )
812 .FriendlyName( _( "Change Footprints..." ) )
813 .Tooltip( _( "Assign different footprints from the library" ) )
814 .Icon( BITMAPS::exchange ) );
815
817 .Name( "pcbnew.GlobalEdit.swapLayers" )
818 .Scope( AS_GLOBAL )
819 .FriendlyName( _( "Swap Layers..." ) )
820 .Tooltip( _( "Move tracks or drawings from one layer to another" ) )
821 .Icon( BITMAPS::swap_layer ) );
822
824 .Name( "pcbnew.GlobalEdit.editTracksAndVias" )
825 .Scope( AS_GLOBAL )
826 .FriendlyName( _( "Edit Track & Via Properties..." ) )
827 .Tooltip( _( "Edit track and via properties globally across board" ) )
828 .Icon( BITMAPS::width_track_via ) );
829
831 .Name( "pcbnew.GlobalEdit.editTextAndGraphics" )
832 .Scope( AS_GLOBAL )
833 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
834 .Tooltip( _( "Edit Text and graphics properties globally across board" ) )
835 .Icon( BITMAPS::text ) );
836
838 .Name( "pcbnew.GlobalEdit.editTeardrops" )
839 .Scope( AS_GLOBAL )
840 .FriendlyName( _( "Edit Teardrops..." ) )
841 .Tooltip( _( "Add, remove or edit teardrops globally across board" ) )
842 .Icon( BITMAPS::via ) );
843
845 .Name( "pcbnew.GlobalEdit.globalDeletions" )
846 .Scope( AS_GLOBAL )
847 .FriendlyName( _( "Global Deletions..." ) )
848 .Tooltip( _( "Delete tracks, footprints and graphic items from board" ) )
850
852 .Name( "pcbnew.GlobalEdit.cleanupTracksAndVias" )
853 .Scope( AS_GLOBAL )
854 .FriendlyName( _( "Cleanup Tracks & Vias..." ) )
855 .Tooltip( _( "Cleanup redundant items, shorting items, etc." ) )
857
859 .Name( "pcbnew.GlobalEdit.cleanupGraphics" )
860 .Scope( AS_GLOBAL )
861 .FriendlyName( _( "Cleanup Graphics..." ) )
862 .Tooltip( _( "Cleanup redundant items, etc." ) )
863 .Icon( BITMAPS::cleanup_graphics ) );
864
865// MICROWAVE_TOOL
866//
868 .Name( "pcbnew.MicrowaveTool.createGap" )
869 .Scope( AS_GLOBAL )
870 .FriendlyName( _( "Draw Microwave Gaps" ) )
871 .Tooltip( _( "Create gap of specified length for microwave applications" ) )
872 .Icon( BITMAPS::mw_add_gap )
873 .Flags( AF_ACTIVATE )
874 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::GAP ) );
875
877 .Name( "pcbnew.MicrowaveTool.createStub" )
878 .Scope( AS_GLOBAL )
879 .FriendlyName( _( "Draw Microwave Stubs" ) )
880 .Tooltip( _( "Create stub of specified length for microwave applications" ) )
881 .Icon( BITMAPS::mw_add_stub )
882 .Flags( AF_ACTIVATE )
883 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB ) );
884
886 .Name( "pcbnew.MicrowaveTool.createStubArc" )
887 .Scope( AS_GLOBAL )
888 .FriendlyName( _( "Draw Microwave Arc Stubs" ) )
889 .Tooltip( _( "Create stub (arc) of specified size for microwave applications" ) )
891 .Flags( AF_ACTIVATE )
893
895 .Name( "pcbnew.MicrowaveTool.createFunctionShape" )
896 .Scope( AS_GLOBAL )
897 .FriendlyName( _( "Draw Microwave Polygonal Shapes" ) )
898 .Tooltip( _( "Create a microwave polygonal shape from a list of vertices" ) )
899 .Icon( BITMAPS::mw_add_shape )
900 .Flags( AF_ACTIVATE )
902
904 .Name( "pcbnew.MicrowaveTool.createLine" )
905 .Scope( AS_GLOBAL )
906 .FriendlyName( _( "Draw Microwave Lines" ) )
907 .Tooltip( _( "Create line of specified length for microwave applications" ) )
908 .Icon( BITMAPS::mw_add_line )
909 .Flags( AF_ACTIVATE ) );
910
911
912// PAD_TOOL
913//
915 .Name( "pcbnew.PadTool.CopyPadSettings" )
916 .Scope( AS_GLOBAL )
917 .FriendlyName( _( "Copy Pad Properties to Default" ) )
918 .Tooltip( _( "Copy current pad's properties" ) )
920
922 .Name( "pcbnew.PadTool.ApplyPadSettings" )
923 .Scope( AS_GLOBAL )
924 .FriendlyName( _( "Paste Default Pad Properties to Selected" ) )
925 .Tooltip( _( "Replace the current pad's properties with those copied earlier" ) )
927
929 .Name( "pcbnew.PadTool.PushPadSettings" )
930 .Scope( AS_GLOBAL )
931 .FriendlyName( _( "Push Pad Properties to Other Pads..." ) )
932 .Tooltip( _( "Copy the current pad's properties to other pads" ) )
934
936 .Name( "pcbnew.PadTool.enumeratePads" )
937 .Scope( AS_GLOBAL )
938 .FriendlyName( _( "Renumber Pads..." ) )
939 .Tooltip( _( "Renumber pads by clicking on them in the desired order" ) )
941 .Flags( AF_ACTIVATE ) );
942
944 .Name( "pcbnew.PadTool.placePad" )
945 .Scope( AS_GLOBAL )
946 .FriendlyName( _( "Add Pad" ) )
947 .Tooltip( _( "Add a pad" ) )
948 .Icon( BITMAPS::pad )
949 .Flags( AF_ACTIVATE ) );
950
952 .Name( "pcbnew.PadTool.explodePad" )
953 .Scope( AS_GLOBAL )
954 .DefaultHotkey( MD_CTRL + 'E' )
955 .FriendlyName( _( "Edit Pad as Graphic Shapes" ) )
956 .Tooltip( _( "Ungroups a custom-shaped pad for editing as individual graphic shapes" ) )
958
960 .Name( "pcbnew.PadTool.recombinePad" )
961 .Scope( AS_GLOBAL )
962 .DefaultHotkey( MD_CTRL + 'E' )
963 .FriendlyName( _( "Finish Pad Edit" ) )
964 .Tooltip( _( "Regroups all touching graphic shapes into the edited pad" ) )
966
968 .Name( "pcbnew.PadTool.defaultPadProperties" )
969 .Scope( AS_GLOBAL )
970 .FriendlyName( _( "Default Pad Properties..." ) )
971 .Tooltip( _( "Edit the pad properties used when creating new pads" ) )
972 .Icon( BITMAPS::options_pad ) );
973
974
975// SCRIPTING TOOL
976//
977
979 .Name( "pcbnew.ScriptingTool.pluginsShowFolder" )
980 .Scope( AS_GLOBAL )
981#ifdef __WXMAC__
982 .FriendlyName( _( "Reveal Plugin Folder in Finder" ) )
983 .Tooltip( _( "Reveals the plugins folder in a Finder window" ) )
984#else
985 .FriendlyName( _( "Open Plugin Directory" ) )
986 .Tooltip( _( "Opens the directory in the default system file manager" ) )
987#endif
988 .Icon( BITMAPS::directory_open ) );
989
990// BOARD_EDITOR_CONTROL
991//
993 .Name( "pcbnew.EditorControl.boardSetup" )
994 .Scope( AS_GLOBAL )
995 .FriendlyName( _( "Board Setup..." ) )
996 .Tooltip( _( "Edit board setup including layers, design rules and various defaults" ) )
997 .Icon( BITMAPS::options_board ) );
998
1000 .Name( "pcbnew.EditorControl.importNetlist" )
1001 .Scope( AS_GLOBAL )
1002 .FriendlyName( _( "Import Netlist..." ) )
1003 .Tooltip( _( "Read netlist and update board connectivity" ) )
1004 .Icon( BITMAPS::netlist ) );
1005
1007 .Name( "pcbnew.EditorControl.importSpecctraSession" )
1008 .Scope( AS_GLOBAL )
1009 .FriendlyName( _( "Import Specctra Session..." ) )
1010 .Tooltip( _( "Import routed Specctra session (*.ses) file" ) )
1011 .Icon( BITMAPS::import ) );
1012
1014 .Name( "pcbnew.EditorControl.exportSpecctraDSN" )
1015 .Scope( AS_GLOBAL )
1016 .FriendlyName( _( "Export Specctra DSN..." ) )
1017 .Tooltip( _( "Export Specctra DSN routing info" ) )
1018 .Icon( BITMAPS::export_dsn ) );
1019
1021 .Name( "pcbnew.EditorControl.generateGerbers" )
1022 .Scope( AS_GLOBAL )
1023 .FriendlyName( _( "Gerbers (.gbr)..." ) )
1024 .Tooltip( _( "Generate Gerbers for fabrication" ) )
1025 .Icon( BITMAPS::post_gerber ) );
1026
1028 .Name( "pcbnew.EditorControl.generateDrillFiles" )
1029 .Scope( AS_GLOBAL )
1030 .FriendlyName( _( "Drill Files (.drl)..." ) )
1031 .Tooltip( _( "Generate Excellon drill file(s)" ) )
1032 .Icon( BITMAPS::post_drill ) );
1033
1035 .Name( "pcbnew.EditorControl.generatePosFile" )
1036 .Scope( AS_GLOBAL )
1037 .FriendlyName( _( "Component Placement (.pos, .gbr)..." ) )
1038 .Tooltip( _( "Generate component placement file(s) for pick and place" ) )
1039 .Icon( BITMAPS::post_compo ) );
1040
1042 .Name( "pcbnew.EditorControl.generateReportFile" )
1043 .Scope( AS_GLOBAL )
1044 .FriendlyName( _( "Footprint Report (.rpt)..." ) )
1045 .Tooltip( _( "Create report of all footprints from current board" ) )
1046 .Icon( BITMAPS::post_rpt ) );
1047
1049 .Name( "pcbnew.EditorControl.generateIPC2581File" )
1050 .Scope( AS_GLOBAL )
1051 .FriendlyName( _( "IPC-2581 File (.xml)..." ) )
1052 .Tooltip( _( "Generate an IPC-2581 file" ) )
1053 .Icon( BITMAPS::post_xml ) );
1054
1056 .Name( "pcbnew.EditorControl.generateODBPPFile" )
1057 .Scope( AS_GLOBAL )
1058 .FriendlyName( _( "ODB++ Output File..." ) )
1059 .Tooltip( _( "Generate ODB++ output files" ) )
1060 .Icon( BITMAPS::post_odb ) );
1061
1063 .Name( "pcbnew.EditorControl.generateD356File" )
1064 .Scope( AS_GLOBAL )
1065 .FriendlyName( _( "IPC-D-356 Netlist File..." ) )
1066 .Tooltip( _( "Generate IPC-D-356 netlist file" ) )
1067 .Icon( BITMAPS::post_d356 ) );
1068
1070 .Name( "pcbnew.EditorControl.generateBOM" )
1071 .Scope( AS_GLOBAL )
1072 .FriendlyName( _( "Bill of Materials..." ) )
1073 .Tooltip( _( "Create bill of materials from board" ) )
1074 .Icon( BITMAPS::post_bom ) );
1075
1076// Track & via size control
1078 .Name( "pcbnew.EditorControl.trackWidthInc" )
1079 .Scope( AS_GLOBAL )
1080 .DefaultHotkey( 'W' )
1081 .LegacyHotkeyName( "Switch Track Width To Next" )
1082 .FriendlyName( _( "Switch Track Width to Next" ) )
1083 .Tooltip( _( "Change track width to next pre-defined size" ) ) );
1084
1086 .Name( "pcbnew.EditorControl.trackWidthDec" )
1087 .Scope( AS_GLOBAL )
1088 .DefaultHotkey( MD_SHIFT + 'W' )
1089 .LegacyHotkeyName( "Switch Track Width To Previous" )
1090 .FriendlyName( _( "Switch Track Width to Previous" ) )
1091 .Tooltip( _( "Change track width to previous pre-defined size" ) ) );
1092
1094 .Name( "pcbnew.EditorControl.viaSizeInc" )
1095 .Scope( AS_GLOBAL )
1096 .DefaultHotkey( '\'' )
1097 .LegacyHotkeyName( "Increase Via Size" )
1098 .FriendlyName( _( "Increase Via Size" ) )
1099 .Tooltip( _( "Change via size to next pre-defined size" ) ) );
1100
1102 .Name( "pcbnew.EditorControl.viaSizeDec" )
1103 .Scope( AS_GLOBAL )
1104 .DefaultHotkey( '\\' )
1105 .LegacyHotkeyName( "Decrease Via Size" )
1106 .FriendlyName( _( "Decrease Via Size" ) )
1107 .Tooltip( _( "Change via size to previous pre-defined size" ) ) );
1108
1110 .Name( "pcbnew.EditorControl.trackViaSizeChanged" )
1111 .Scope( AS_GLOBAL )
1112 .Flags( AF_NOTIFY ) );
1113
1115 .Name( "pcbnew.EditorControl.assignNetclass" )
1116 .Scope( AS_GLOBAL )
1117 .FriendlyName( _( "Assign Netclass..." ) )
1118 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
1119 .Icon( BITMAPS::netlist ) );
1120
1122 .Name( "pcbnew.EditorControl.zoneMerge" )
1123 .Scope( AS_GLOBAL )
1124 .FriendlyName( _( "Merge Zones" ) ) );
1125
1127 .Name( "pcbnew.EditorControl.zoneDuplicate" )
1128 .Scope( AS_GLOBAL )
1129 .FriendlyName( _( "Duplicate Zone onto Layer..." ) )
1130 .Icon( BITMAPS::zone_duplicate ) );
1131
1133 .Name( "pcbnew.EditorControl.placeFootprint" )
1134 .Scope( AS_GLOBAL )
1135 .DefaultHotkey( 'A' )
1136 .LegacyHotkeyName( "Add Footprint" )
1137 .FriendlyName( _( "Place Footprints" ) )
1138 .Icon( BITMAPS::module )
1139 .Flags( AF_ACTIVATE )
1140 .Parameter<FOOTPRINT*>( nullptr ) );
1141
1143 .Name( "pcbnew.EditorControl.drillOrigin" )
1144 .Scope( AS_GLOBAL )
1145 .FriendlyName( _( "Drill/Place File Origin" ) )
1146 .Tooltip( _( "Place origin point for drill files and component placement files" ) )
1147 .Icon( BITMAPS::set_origin )
1148 .Flags( AF_ACTIVATE ) );
1149
1151 .Name( "pcbnew.EditorControl.drillResetOrigin" )
1152 .Scope( AS_GLOBAL )
1153 .LegacyHotkeyName( "Reset Drill Origin" )
1154 .FriendlyName( _( "Reset Drill Origin" ) ) );
1155
1157 .Name( "pcbnew.EditorControl.toggleLock" )
1158 .Scope( AS_GLOBAL )
1159 .DefaultHotkey( 'L' )
1160 .LegacyHotkeyName( "Lock/Unlock Footprint" )
1161 .FriendlyName( _( "Toggle Lock" ) )
1162 .Tooltip( _( "Lock or unlock selected items" ) )
1163 .Icon( BITMAPS::lock_unlock ) );
1164
1166 .Name( "pcbnew.EditorControl.toggle45" )
1167 .Scope( AS_GLOBAL )
1168 .DefaultHotkey( MD_SHIFT + ' ' )
1169 .FriendlyName( _( "Constrain to H, V, 45" ) )
1170 .Tooltip( _( "Limit actions to horizontal, vertical, or 45 degrees from the starting point" ) )
1171 .Icon( BITMAPS::hv45mode ) );
1172
1174 .Name( "pcbnew.EditorControl.lock" )
1175 .Scope( AS_GLOBAL )
1176 .FriendlyName( _( "Lock" ) )
1177 .Tooltip( _( "Prevent items from being moved and/or resized on the canvas" ) )
1178 .Icon( BITMAPS::locked ) );
1179
1181 .Name( "pcbnew.EditorControl.unlock" )
1182 .Scope( AS_GLOBAL )
1183 .FriendlyName( _( "Unlock" ) )
1184 .Tooltip( _( "Allow items to be moved and/or resized on the canvas" ) )
1185 .Icon( BITMAPS::unlocked ) );
1186
1188 .Name( "pcbnew.EditorControl.group" )
1189 .Scope( AS_GLOBAL )
1190 .FriendlyName( _( "Group Items" ) )
1191 .Tooltip( _( "Group the selected items so that they are treated as a single item" ) )
1192 .Icon( BITMAPS::group ) );
1193
1195 .Name( "pcbnew.EditorControl.ungroup" )
1196 .Scope( AS_GLOBAL )
1197 .FriendlyName( _( "Ungroup Items" ) )
1198 .Tooltip( _( "Ungroup any selected groups" ) )
1199 .Icon( BITMAPS::group_ungroup ) );
1200
1202 .Name( "pcbnew.EditorControl.removeFromGroup" )
1203 .Scope( AS_GLOBAL )
1204 .FriendlyName( _( "Remove Items" ) )
1205 .Tooltip( _( "Remove items from group" ) )
1206 .Icon( BITMAPS::group_remove ) );
1207
1209 .Name( "pcbnew.EditorControl.groupEnter" )
1210 .Scope( AS_GLOBAL )
1211 .FriendlyName( _( "Enter Group" ) )
1212 .Tooltip( _( "Enter the group to edit items" ) )
1213 .Icon( BITMAPS::group_enter ) );
1214
1216 .Name( "pcbnew.EditorControl.groupLeave" )
1217 .Scope( AS_GLOBAL )
1218 .FriendlyName( _( "Leave Group" ) )
1219 .Tooltip( _( "Leave the current group" ) )
1220 .Icon( BITMAPS::group_leave ) );
1221
1223 .Name( "pcbnew.EditorControl.appendBoard" )
1224 .Scope( AS_GLOBAL )
1225 .FriendlyName( _( "Append Board..." ) )
1226 .Tooltip( _( "Open another board and append its contents to this board" ) )
1227 .Icon( BITMAPS::add_board ) );
1228
1230 .Name( "pcbnew.EditorControl.highlightNet" )
1231 .Scope( AS_GLOBAL )
1232 .DefaultHotkey( '`' )
1233 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1234 .LegacyHotkeyName( "Toggle Highlight of Selected Net (Modern Toolset only)" )
1235 .FriendlyName( _( "Highlight Net" ) )
1236 .Tooltip( _( "Highlight net under cursor" ) )
1237 .Icon( BITMAPS::net_highlight )
1238 .Parameter<int>( 0 ) );
1239
1241 .Name( "pcbnew.EditorControl.toggleLastNetHighlight" )
1242 .Scope( AS_GLOBAL )
1243 .FriendlyName( _( "Toggle Last Net Highlight" ) )
1244 .Tooltip( _( "Toggle between last two highlighted nets" ) )
1245 .Parameter<int>( 0 ) );
1246
1248 .Name( "pcbnew.EditorControl.clearHighlight" )
1249 .Scope( AS_GLOBAL )
1250 .DefaultHotkey( '~' )
1251 .FriendlyName( _( "Clear Net Highlighting" ) ) );
1252
1254 .Name( "pcbnew.EditorControl.toggleNetHighlight" )
1255 .Scope( AS_GLOBAL )
1256 .DefaultHotkey( MD_ALT + '`' )
1257 .FriendlyName( _( "Toggle Net Highlight" ) )
1258 .Icon( BITMAPS::net_highlight )
1259 .Parameter<int>( 0 ) );
1260
1262 .Name( "pcbnew.EditorControl.highlightNetSelection" )
1263 .Scope( AS_GLOBAL )
1264 .FriendlyName( _( "Highlight Net" ) )
1265 .Tooltip( _( "Highlight all copper items on the selected net(s)" ) )
1266 .Icon( BITMAPS::net_highlight )
1267 .Parameter<int>( 0 ) );
1268
1270 .Name( "pcbnew.EditorControl.highlightItem" )
1271 .Scope( AS_GLOBAL ) );
1272
1274 .Name( "pcbnew.EditorControl.hideNet" )
1275 .Scope( AS_GLOBAL )
1276 .FriendlyName( _( "Hide Net in Ratsnest" ) )
1277 .Tooltip( _( "Hide the selected net in the ratsnest of unconnected net lines/arcs" ) )
1278 .Icon( BITMAPS::hide_ratsnest )
1279 .Parameter<int>( 0 ) ); // Default to hiding selected net
1280
1282 .Name( "pcbnew.EditorControl.showNet" )
1283 .Scope( AS_GLOBAL )
1284 .FriendlyName( _( "Show Net in Ratsnest" ) )
1285 .Tooltip( _( "Show the selected net in the ratsnest of unconnected net lines/arcs" ) )
1286 .Icon( BITMAPS::show_ratsnest )
1287 .Parameter<int>( 0 ) ); // Default to showing selected net
1288
1290 .Name( "pcbnew.EditorControl.showEeschema" )
1291 .Scope( AS_GLOBAL )
1292 .FriendlyName( _( "Switch to Schematic Editor" ) )
1293 .Tooltip( _( "Open schematic in schematic editor" ) )
1294 .Icon( BITMAPS::icon_eeschema_24 ) );
1295
1296
1297// PCB_CONTROL
1298//
1299
1301 .Name( "pcbnew.Control.localRatsnestTool" )
1302 .Scope( AS_GLOBAL )
1303 .FriendlyName( _( "Local Ratsnest" ) )
1304 .Tooltip( _( "Toggle ratsnest display of selected item(s)" ) )
1305 .Icon( BITMAPS::tool_ratsnest )
1306 .Flags( AF_ACTIVATE ) );
1307
1309 .Name( "pcbnew.Control.hideDynamicRatsnest" )
1310 .Scope( AS_GLOBAL ) );
1311
1313 .Name( "pcbnew.Control.updateLocalRatsnest" )
1314 .Scope( AS_GLOBAL )
1315 .Parameter( VECTOR2I() ) );
1316
1318 .Name( "pcbnew.Control.showPythonConsole" )
1319 .Scope( AS_GLOBAL )
1320 .FriendlyName( _( "Scripting Console" ) )
1321 .Tooltip( _( "Show the Python scripting console" ) )
1322 .Icon( BITMAPS::py_script ) );
1323
1325 .Name( "pcbnew.Control.showLayersManager" )
1326 .Scope( AS_GLOBAL )
1327 .FriendlyName( _( "Appearance" ) )
1328 .Tooltip( _( "Show/hide the appearance manager" ) )
1329 .Icon( BITMAPS::layers_manager ) );
1330
1332 .Name( "pcbnew.Control.showNetInspector" )
1333 .Scope( AS_GLOBAL )
1334 .FriendlyName( _( "Net Inspector" ) )
1335 .Tooltip( _( "Show/hide the net inspector" ) )
1336 .Icon( BITMAPS::tools ) );
1337
1338TOOL_ACTION PCB_ACTIONS::zonesManager( "pcbnew.Control.zonesManager",
1339 AS_GLOBAL, 0, "",
1340 _( "Zone Manager" ),
1341 _( "Show the zone manager dialog" ),
1343
1345 .Name( "pcbnew.Control.flipBoard" )
1346 .Scope( AS_GLOBAL )
1347 .FriendlyName( _( "Flip Board View" ) )
1348 .Tooltip( _( "View board from the opposite side" ) )
1349 .Icon( BITMAPS::flip_board ) );
1350
1351// Display modes
1353 .Name( "pcbnew.Control.showRatsnest" )
1354 .Scope( AS_GLOBAL )
1355 .FriendlyName( _( "Show Ratsnest" ) )
1356 .Tooltip( _( "Show lines/arcs representing missing connections on the board" ) )
1357 .Icon( BITMAPS::general_ratsnest ) );
1358
1360 .Name( "pcbnew.Control.ratsnestLineMode" )
1361 .Scope( AS_GLOBAL )
1362 .FriendlyName( _( "Curved Ratsnest Lines" ) )
1363 .Tooltip( _( "Show ratsnest with curved lines" ) )
1364 .Icon( BITMAPS::curved_ratsnest ) );
1365
1367 .Name( "pcbnew.Control.ratsnestModeCycle" )
1368 .Scope( AS_GLOBAL )
1369 .FriendlyName( _( "Ratsnest Mode (3-state)" ) )
1370 .Tooltip( _( "Cycle between showing ratsnests for all layers, just visible layers, and none" ) ) );
1371
1373 .Name( "pcbnew.Control.netColorMode" )
1374 .Scope( AS_GLOBAL )
1375 .FriendlyName( _( "Net Color Mode (3-state)" ) )
1376 .Tooltip( _( "Cycle between using net and netclass colors for all nets, just ratsnests, and none" ) ) );
1377
1379 .Name( "pcbnew.Control.trackDisplayMode" )
1380 .Scope( AS_GLOBAL )
1381 .DefaultHotkey( 'K' )
1382 .LegacyHotkeyName( "Track Display Mode" )
1383 .FriendlyName( _( "Sketch Tracks" ) )
1384 .Tooltip( _( "Show tracks in outline mode" ) )
1385 .Icon( BITMAPS::showtrack ) );
1386
1388 .Name( "pcbnew.Control.padDisplayMode" )
1389 .Scope( AS_GLOBAL )
1390 .FriendlyName( _( "Sketch Pads" ) )
1391 .Tooltip( _( "Show pads in outline mode" ) )
1392 .Icon( BITMAPS::pad_sketch ) );
1393
1395 .Name( "pcbnew.Control.viaDisplayMode" )
1396 .Scope( AS_GLOBAL )
1397 .FriendlyName( _( "Sketch Vias" ) )
1398 .Tooltip( _( "Show vias in outline mode" ) )
1399 .Icon( BITMAPS::via_sketch ) );
1400
1402 .Name( "pcbnew.Control.graphicOutlines" )
1403 .Scope( AS_GLOBAL )
1404 .FriendlyName( _( "Sketch Graphic Items" ) )
1405 .Tooltip( _( "Show graphic items in outline mode" ) )
1406 .Icon( BITMAPS::show_mod_edge ) );
1407
1409 .Name( "pcbnew.Control.textOutlines" )
1410 .Scope( AS_GLOBAL )
1411 .FriendlyName( _( "Sketch Text Items" ) )
1412 .Tooltip( _( "Show footprint texts in line mode" ) )
1413 .Icon( BITMAPS::text_sketch ) );
1414
1416 .Name( "pcbnew.Control.showPadNumbers" )
1417 .Scope( AS_GLOBAL )
1418 .FriendlyName( _( "Show Pad Numbers" ) )
1419 .Icon( BITMAPS::pad_number ) );
1420
1422 .Name( "pcbnew.Control.zoneDisplayEnable" )
1423 .Scope( AS_GLOBAL )
1424 .FriendlyName( _( "Draw Zone Fills" ) )
1425 .Tooltip( _( "Show filled areas of zones" ) )
1426 .Icon( BITMAPS::show_zone ) );
1427
1429 .Name( "pcbnew.Control.zoneDisplayDisable" )
1430 .Scope( AS_GLOBAL )
1431 .FriendlyName( _( "Draw Zone Outlines" ) )
1432 .Tooltip( _( "Show only zone boundaries" ) )
1433 .Icon( BITMAPS::show_zone_disable ) );
1434
1436 .Name( "pcbnew.Control.zoneDisplayOutlines" )
1437 .Scope( AS_GLOBAL )
1438 .FriendlyName( _( "Draw Zone Fill Fracture Borders" ) )
1440
1442 .Name( "pcbnew.Control.zoneDisplayTesselation" )
1443 .Scope( AS_GLOBAL )
1444 .FriendlyName( _( "Draw Zone Fill Triangulation" ) )
1446
1448 .Name( "pcbnew.Control.zoneDisplayToggle" )
1449 .Scope( AS_GLOBAL )
1450 .FriendlyName( _( "Toggle Zone Display" ) )
1451 .Tooltip( _( "Cycle between showing zone fills and just their outlines" ) )
1452 .Icon( BITMAPS::show_zone ) );
1453
1454
1455// Layer control
1456
1457// Translate aLayer to the action that switches to it
1459{
1460 switch( aLayer )
1461 {
1462 case F_Cu: return &PCB_ACTIONS::layerTop;
1463 case In1_Cu: return &PCB_ACTIONS::layerInner1;
1464 case In2_Cu: return &PCB_ACTIONS::layerInner2;
1465 case In3_Cu: return &PCB_ACTIONS::layerInner3;
1466 case In4_Cu: return &PCB_ACTIONS::layerInner4;
1467 case In5_Cu: return &PCB_ACTIONS::layerInner5;
1468 case In6_Cu: return &PCB_ACTIONS::layerInner6;
1469 case In7_Cu: return &PCB_ACTIONS::layerInner7;
1470 case In8_Cu: return &PCB_ACTIONS::layerInner8;
1471 case In9_Cu: return &PCB_ACTIONS::layerInner9;
1472 case In10_Cu: return &PCB_ACTIONS::layerInner10;
1473 case In11_Cu: return &PCB_ACTIONS::layerInner11;
1474 case In12_Cu: return &PCB_ACTIONS::layerInner12;
1475 case In13_Cu: return &PCB_ACTIONS::layerInner13;
1476 case In14_Cu: return &PCB_ACTIONS::layerInner14;
1477 case In15_Cu: return &PCB_ACTIONS::layerInner15;
1478 case In16_Cu: return &PCB_ACTIONS::layerInner16;
1479 case In17_Cu: return &PCB_ACTIONS::layerInner17;
1480 case In18_Cu: return &PCB_ACTIONS::layerInner18;
1481 case In19_Cu: return &PCB_ACTIONS::layerInner19;
1482 case In20_Cu: return &PCB_ACTIONS::layerInner20;
1483 case In21_Cu: return &PCB_ACTIONS::layerInner21;
1484 case In22_Cu: return &PCB_ACTIONS::layerInner22;
1485 case In23_Cu: return &PCB_ACTIONS::layerInner23;
1486 case In24_Cu: return &PCB_ACTIONS::layerInner24;
1487 case In25_Cu: return &PCB_ACTIONS::layerInner25;
1488 case In26_Cu: return &PCB_ACTIONS::layerInner26;
1489 case In27_Cu: return &PCB_ACTIONS::layerInner27;
1490 case In28_Cu: return &PCB_ACTIONS::layerInner28;
1491 case In29_Cu: return &PCB_ACTIONS::layerInner29;
1492 case In30_Cu: return &PCB_ACTIONS::layerInner30;
1493 case B_Cu: return &PCB_ACTIONS::layerBottom;
1494 default: return nullptr;
1495 }
1496}
1497
1498// Implemented as an accessor + static variable to ensure it is initialized when used
1499// in static action constructors
1501{
1502 static TOOL_ACTION_GROUP s_toolActionGroup( "pcbnew.Control.DirectLayerActions" );
1503 return s_toolActionGroup;
1504}
1505
1507 .Name( "pcbnew.Control.layerTop" )
1508 .Scope( AS_GLOBAL )
1510 .DefaultHotkey( WXK_PAGEUP )
1511 .LegacyHotkeyName( "Switch to Component (F.Cu) layer" )
1512 .FriendlyName( _( "Switch to Component (F.Cu) layer" ) )
1513 .Flags( AF_NOTIFY )
1514 .Parameter( F_Cu ) );
1515
1517 .Name( "pcbnew.Control.layerInner1" )
1518 .Scope( AS_GLOBAL )
1520 .LegacyHotkeyName( "Switch to Inner layer 1" )
1521 .FriendlyName( _( "Switch to Inner Layer 1" ) )
1522 .Flags( AF_NOTIFY )
1523 .Parameter( In1_Cu ) );
1524
1526 .Name( "pcbnew.Control.layerInner2" )
1527 .Scope( AS_GLOBAL )
1529 .LegacyHotkeyName( "Switch to Inner layer 2" )
1530 .FriendlyName( _( "Switch to Inner Layer 2" ) )
1531 .Flags( AF_NOTIFY )
1532 .Parameter( In2_Cu ) );
1533
1535 .Name( "pcbnew.Control.layerInner3" )
1536 .Scope( AS_GLOBAL )
1538 .LegacyHotkeyName( "Switch to Inner layer 3" )
1539 .FriendlyName( _( "Switch to Inner Layer 3" ) )
1540 .Flags( AF_NOTIFY )
1541 .Parameter( In3_Cu ) );
1542
1544 .Name( "pcbnew.Control.layerInner4" )
1545 .Scope( AS_GLOBAL )
1547 .LegacyHotkeyName( "Switch to Inner layer 4" )
1548 .FriendlyName( _( "Switch to Inner Layer 4" ) )
1549 .Flags( AF_NOTIFY )
1550 .Parameter( In4_Cu ) );
1551
1553 .Name( "pcbnew.Control.layerInner5" )
1554 .Scope( AS_GLOBAL )
1556 .LegacyHotkeyName( "Switch to Inner layer 5" )
1557 .FriendlyName( _( "Switch to Inner Layer 5" ) )
1558 .Flags( AF_NOTIFY )
1559 .Parameter( In5_Cu ) );
1560
1562 .Name( "pcbnew.Control.layerInner6" )
1563 .Scope( AS_GLOBAL )
1565 .LegacyHotkeyName( "Switch to Inner layer 6" )
1566 .FriendlyName( _( "Switch to Inner Layer 6" ) )
1567 .Flags( AF_NOTIFY )
1568 .Parameter( In6_Cu ) );
1569
1571 .Name( "pcbnew.Control.layerInner7" )
1572 .Scope( AS_GLOBAL )
1574 .FriendlyName( _( "Switch to Inner Layer 7" ) )
1575 .Flags( AF_NOTIFY )
1576 .Parameter( In7_Cu ) );
1577
1579 .Name( "pcbnew.Control.layerInner8" )
1580 .Scope( AS_GLOBAL )
1582 .FriendlyName( _( "Switch to Inner Layer 8" ) )
1583 .Flags( AF_NOTIFY )
1584 .Parameter( In8_Cu ) );
1585
1587 .Name( "pcbnew.Control.layerInner9" )
1588 .Scope( AS_GLOBAL )
1590 .FriendlyName( _( "Switch to Inner Layer 9" ) )
1591 .Flags( AF_NOTIFY )
1592 .Parameter( In9_Cu ) );
1593
1595 .Name( "pcbnew.Control.layerInner10" )
1596 .Scope( AS_GLOBAL )
1598 .FriendlyName( _( "Switch to Inner Layer 10" ) )
1599 .Flags( AF_NOTIFY )
1600 .Parameter( In10_Cu ) );
1601
1603 .Name( "pcbnew.Control.layerInner11" )
1604 .Scope( AS_GLOBAL )
1606 .FriendlyName( _( "Switch to Inner Layer 11" ) )
1607 .Flags( AF_NOTIFY )
1608 .Parameter( In11_Cu ) );
1609
1611 .Name( "pcbnew.Control.layerInner12" )
1612 .Scope( AS_GLOBAL )
1614 .FriendlyName( _( "Switch to Inner Layer 12" ) )
1615 .Flags( AF_NOTIFY )
1616 .Parameter( In12_Cu ) );
1617
1619 .Name( "pcbnew.Control.layerInner13" )
1620 .Scope( AS_GLOBAL )
1622 .FriendlyName( _( "Switch to Inner Layer 13" ) )
1623 .Flags( AF_NOTIFY )
1624 .Parameter( In13_Cu ) );
1625
1627 .Name( "pcbnew.Control.layerInner14" )
1628 .Scope( AS_GLOBAL )
1630 .FriendlyName( _( "Switch to Inner Layer 14" ) )
1631 .Flags( AF_NOTIFY )
1632 .Parameter( In14_Cu ) );
1633
1635 .Name( "pcbnew.Control.layerInner15" )
1636 .Scope( AS_GLOBAL )
1638 .FriendlyName( _( "Switch to Inner Layer 15" ) )
1639 .Flags( AF_NOTIFY )
1640 .Parameter( In15_Cu ) );
1641
1643 .Name( "pcbnew.Control.layerInner16" )
1644 .Scope( AS_GLOBAL )
1646 .FriendlyName( _( "Switch to Inner Layer 16" ) )
1647 .Flags( AF_NOTIFY )
1648 .Parameter( In16_Cu ) );
1649
1651 .Name( "pcbnew.Control.layerInner17" )
1652 .Scope( AS_GLOBAL )
1654 .FriendlyName( _( "Switch to Inner Layer 17" ) )
1655 .Flags( AF_NOTIFY )
1656 .Parameter( In17_Cu ) );
1657
1659 .Name( "pcbnew.Control.layerInner18" )
1660 .Scope( AS_GLOBAL )
1662 .FriendlyName( _( "Switch to Inner Layer 18" ) )
1663 .Flags( AF_NOTIFY )
1664 .Parameter( In18_Cu ) );
1665
1667 .Name( "pcbnew.Control.layerInner19" )
1668 .Scope( AS_GLOBAL )
1670 .FriendlyName( _( "Switch to Inner Layer 19" ) )
1671 .Flags( AF_NOTIFY )
1672 .Parameter( In19_Cu ) );
1673
1675 .Name( "pcbnew.Control.layerInner20" )
1676 .Scope( AS_GLOBAL )
1678 .FriendlyName( _( "Switch to Inner Layer 20" ) )
1679 .Flags( AF_NOTIFY )
1680 .Parameter( In20_Cu ) );
1681
1683 .Name( "pcbnew.Control.layerInner21" )
1684 .Scope( AS_GLOBAL )
1686 .FriendlyName( _( "Switch to Inner Layer 21" ) )
1687 .Flags( AF_NOTIFY )
1688 .Parameter( In21_Cu ) );
1689
1691 .Name( "pcbnew.Control.layerInner22" )
1692 .Scope( AS_GLOBAL )
1694 .FriendlyName( _( "Switch to Inner Layer 22" ) )
1695 .Flags( AF_NOTIFY )
1696 .Parameter( In22_Cu ) );
1697
1699 .Name( "pcbnew.Control.layerInner23" )
1700 .Scope( AS_GLOBAL )
1702 .FriendlyName( _( "Switch to Inner Layer 23" ) )
1703 .Flags( AF_NOTIFY )
1704 .Parameter( In23_Cu ) );
1705
1707 .Name( "pcbnew.Control.layerInner24" )
1708 .Scope( AS_GLOBAL )
1710 .FriendlyName( _( "Switch to Inner Layer 24" ) )
1711 .Flags( AF_NOTIFY )
1712 .Parameter( In24_Cu ) );
1713
1715 .Name( "pcbnew.Control.layerInner25" )
1716 .Scope( AS_GLOBAL )
1718 .FriendlyName( _( "Switch to Inner Layer 25" ) )
1719 .Flags( AF_NOTIFY )
1720 .Parameter( In25_Cu ) );
1721
1723 .Name( "pcbnew.Control.layerInner26" )
1724 .Scope( AS_GLOBAL )
1726 .FriendlyName( _( "Switch to Inner Layer 26" ) )
1727 .Flags( AF_NOTIFY )
1728 .Parameter( In26_Cu ) );
1729
1731 .Name( "pcbnew.Control.layerInner27" )
1732 .Scope( AS_GLOBAL )
1734 .FriendlyName( _( "Switch to Inner Layer 27" ) )
1735 .Flags( AF_NOTIFY )
1736 .Parameter( In27_Cu ) );
1737
1739 .Name( "pcbnew.Control.layerInner28" )
1740 .Scope( AS_GLOBAL )
1742 .FriendlyName( _( "Switch to Inner Layer 28" ) )
1743 .Flags( AF_NOTIFY )
1744 .Parameter( In28_Cu ) );
1745
1747 .Name( "pcbnew.Control.layerInner29" )
1748 .Scope( AS_GLOBAL )
1750 .FriendlyName( _( "Switch to Inner Layer 29" ) )
1751 .Flags( AF_NOTIFY )
1752 .Parameter( In29_Cu ) );
1753
1755 .Name( "pcbnew.Control.layerInner30" )
1756 .Scope( AS_GLOBAL )
1758 .FriendlyName( _( "Switch to Inner Layer 30" ) )
1759 .Flags( AF_NOTIFY )
1760 .Parameter( In30_Cu ) );
1761
1763 .Name( "pcbnew.Control.layerBottom" )
1764 .Scope( AS_GLOBAL )
1766 .DefaultHotkey( WXK_PAGEDOWN )
1767 .LegacyHotkeyName( "Switch to Copper (B.Cu) layer" )
1768 .FriendlyName( _( "Switch to Copper (B.Cu) Layer" ) )
1769 .Flags( AF_NOTIFY )
1770 .Parameter( B_Cu ) );
1771
1773 .Name( "pcbnew.Control.layerNext" )
1774 .Scope( AS_GLOBAL )
1775 .DefaultHotkey( '+' )
1776 .LegacyHotkeyName( "Switch to Next Layer" )
1777 .FriendlyName( _( "Switch to Next Layer" ) )
1778 .Flags( AF_NOTIFY ) );
1779
1781 .Name( "pcbnew.Control.layerPrev" )
1782 .Scope( AS_GLOBAL )
1783 .DefaultHotkey( '-' )
1784 .LegacyHotkeyName( "Switch to Previous Layer" )
1785 .FriendlyName( _( "Switch to Previous Layer" ) )
1786 .Flags( AF_NOTIFY ) );
1787
1789 .Name( "pcbnew.Control.layerToggle" )
1790 .Scope( AS_GLOBAL )
1791 .DefaultHotkey( 'V' )
1792 .LegacyHotkeyName( "Add Through Via" )
1793 .FriendlyName( _( "Toggle Layer" ) )
1794 .Tooltip( _( "Switch between layers in active layer pair" ) )
1795 .Flags( AF_NOTIFY ) );
1796
1798 .Name( "pcbnew.Control.layerAlphaInc" )
1799 .Scope( AS_GLOBAL )
1800 .DefaultHotkey( '}' )
1801 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1802 .LegacyHotkeyName( "Increment Layer Transparency (Modern Toolset only)" )
1803 .FriendlyName( _( "Increase Layer Opacity" ) )
1804 .Tooltip( _( "Make the current layer less transparent" ) )
1805 .Icon( BITMAPS::contrast_mode ) );
1806
1808 .Name( "pcbnew.Control.layerAlphaDec" )
1809 .Scope( AS_GLOBAL )
1810 .DefaultHotkey( '{' )
1811 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1812 .LegacyHotkeyName( "Decrement Layer Transparency (Modern Toolset only)" )
1813 .FriendlyName( _( "Decrease Layer Opacity" ) )
1814 .Tooltip( _( "Make the current layer more transparent" ) )
1815 .Icon( BITMAPS::contrast_mode ) );
1816
1818 .Name( "pcbnew.Control.layerPairPresetCycle" )
1819 .Scope( AS_GLOBAL )
1820 .DefaultHotkey( MD_SHIFT + 'V' )
1821 .FriendlyName( _( "Cycle Layer Pair Presets" ) )
1822 .Tooltip( _( "Cycle between preset layer pairs" ) ) );
1823
1825 .Name( "pcbnew.Control.layerChanged" )
1826 .Scope( AS_GLOBAL )
1827 .Flags( AF_NOTIFY ) );
1828
1829//Show board statistics tool
1831 .Name( "pcbnew.InspectionTool.ShowBoardStatistics" )
1832 .Scope( AS_GLOBAL )
1833 .FriendlyName( _( "Show Board Statistics" ) )
1834 .Tooltip( _( "Shows board statistics" ) ) );
1835
1837 .Name( "pcbnew.InspectionTool.InspectClearance" )
1838 .Scope( AS_GLOBAL )
1839 .FriendlyName( _( "Clearance Resolution" ) )
1840 .Tooltip( _( "Show clearance resolution for the active layer between two selected objects" ) )
1841 .Icon( BITMAPS::mw_add_gap ) );
1842
1844 .Name( "pcbnew.InspectionTool.InspectConstraints" )
1845 .Scope( AS_GLOBAL )
1846 .FriendlyName( _( "Constraints Resolution" ) )
1847 .Tooltip( _( "Show constraints resolution for the selected object" ) )
1848 .Icon( BITMAPS::mw_add_gap ) );
1849
1851 .Name( "pcbnew.InspectionTool.DiffFootprint" )
1852 .Scope( AS_GLOBAL )
1853 .FriendlyName( _( "Compare Footprint with Library" ) )
1854 .Tooltip( _( "Show differences between board footprint and its library equivalent" ) )
1855 .Icon( BITMAPS::library ) );
1856
1858 .Name( "pcbnew.InspectionTool.ShowFootprintAssociations" )
1859 .Scope( AS_GLOBAL )
1860 .FriendlyName( _( "Show Footprint Associations" ) )
1861 .Tooltip( _( "Show footprint library and schematic symbol associations" ) )
1863
1864//Geographic re-annotation tool
1866 .Name( "pcbnew.ReannotateTool.ShowReannotateDialog" )
1867 .Scope( AS_GLOBAL )
1868 .FriendlyName( _( "Geographical Reannotate..." ) )
1869 .Tooltip( _( "Reannotate PCB in geographical order" ) )
1870 .Icon( BITMAPS::annotate ) );
1871
1873 .Name( "pcbnew.Control.repairBoard" )
1874 .Scope( AS_GLOBAL )
1875 .FriendlyName( _( "Repair Board" ) )
1876 .Tooltip( _( "Run various diagnostics and attempt to repair board" ) )
1877 .Icon( BITMAPS::rescue )
1878 .Parameter( false ) ); // Don't repair quietly
1879
1881 .Name( "pcbnew.ModuleEditor.repairFootprint" )
1882 .Scope( AS_GLOBAL )
1883 .FriendlyName( _( "Repair Footprint" ) )
1884 .Tooltip( _( "Run various diagnostics and attempt to repair footprint" ) ) );
1885
1886
1887// PLACEMENT_TOOL
1888//
1890 .Name( "pcbnew.AlignAndDistribute.alignTop" )
1891 .Scope( AS_GLOBAL )
1892 .FriendlyName( _( "Align to Top" ) )
1893 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
1894 .Icon( BITMAPS::align_items_top ) );
1895
1897 .Name( "pcbnew.AlignAndDistribute.alignBottom" )
1898 .Scope( AS_GLOBAL )
1899 .FriendlyName( _( "Align to Bottom" ) )
1900 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
1901 .Icon( BITMAPS::align_items_bottom ) );
1902
1904 .Name( "pcbnew.AlignAndDistribute.alignLeft" )
1905 .Scope( AS_GLOBAL )
1906 .FriendlyName( _( "Align to Left" ) )
1907 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
1908 .Icon( BITMAPS::align_items_left ) );
1909
1911 .Name( "pcbnew.AlignAndDistribute.alignRight" )
1912 .Scope( AS_GLOBAL )
1913 .FriendlyName( _( "Align to Right" ) )
1914 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
1915 .Icon( BITMAPS::align_items_right ) );
1916
1918 .Name( "pcbnew.AlignAndDistribute.alignCenterY" )
1919 .Scope( AS_GLOBAL )
1920 .FriendlyName( _( "Align to Vertical Center" ) )
1921 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
1922 .Icon( BITMAPS::align_items_center ) );
1923
1925 .Name( "pcbnew.AlignAndDistribute.alignCenterX" )
1926 .Scope( AS_GLOBAL )
1927 .FriendlyName( _( "Align to Horizontal Center" ) )
1928 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
1929 .Icon( BITMAPS::align_items_middle ) );
1930
1932 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyCenters" )
1933 .Scope( AS_GLOBAL )
1934 .FriendlyName( _( "Distribute Horizontally by Centers" ) )
1935 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item"
1936 "so that the item centers are equally distributed" ) )
1938
1940 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyGaps" )
1941 .Scope( AS_GLOBAL )
1942 .FriendlyName( _( "Distribute Horizontally with Even Gaps" ) )
1943 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
1944 "so that the gaps between items are equal" ) )
1946
1948 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyGaps" )
1949 .Scope( AS_GLOBAL )
1950 .FriendlyName( _( "Distribute Vertically with Even Gaps" ) )
1951 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
1952 "so that the gaps between items are equal" ) )
1954
1956 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyCenters" )
1957 .Scope( AS_GLOBAL )
1958 .FriendlyName( _( "Distribute Vertically by Centers" ) )
1959 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
1960 "so that the item centers are equally distributed" ) )
1962
1963// PCB_POINT_EDITOR
1964//
1966 .Name( "pcbnew.PointEditor.addCorner" )
1967 .Scope( AS_GLOBAL )
1968#ifdef __WXMAC__
1969 .DefaultHotkey( WXK_F1 )
1970#else
1971 .DefaultHotkey( WXK_INSERT )
1972#endif
1973 .FriendlyName( _( "Create Corner" ) )
1974 .Tooltip( _( "Create a corner" ) )
1975 .Icon( BITMAPS::add_corner ) );
1976
1978 .Name( "pcbnew.PointEditor.removeCorner" )
1979 .Scope( AS_GLOBAL )
1980 .FriendlyName( _( "Remove Corner" ) )
1981 .Tooltip( _( "Remove corner" ) )
1982 .Icon( BITMAPS::delete_cursor ) );
1983
1985 .Name( "pcbnew.PointEditor.chamferCorner" )
1986 .Scope( AS_GLOBAL )
1987 .FriendlyName( _( "Chamfer Corner" ) )
1988 .Tooltip( _( "Chamfer corner" ) )
1989 .Icon( BITMAPS::chamfer ) );
1990
1992 .Name( "pcbnew.PointEditor.arcKeepCenter" )
1993 .Scope( AS_GLOBAL )
1994 .FriendlyName( _( "Keep Arc Center, Adjust Radius" ) )
1995 .Tooltip( _( "Switch arc editing mode to keep center, adjust radius and endpoints" ) )
1997
1999 .Name( "pcbnew.PointEditor.arcKeepEndpoint" )
2000 .Scope( AS_GLOBAL )
2001 .FriendlyName( _( "Keep Arc Endpoints or Direction of Starting Point" ) )
2002 .Tooltip( _( "Switch arc editing mode to keep endpoints, or to keep direction of the other point" ) )
2004
2005
2006// GROUP_TOOL
2007//
2009 .Name( "pcbnew.Groups.groupProperties" )
2010 .Scope( AS_GLOBAL ) );
2011
2013 .Name( "pcbnew.Groups.selectNewGroupMember" )
2014 .Scope( AS_GLOBAL ) );
2015
2016
2017
2018// POSITION_RELATIVE_TOOL
2019//
2021 .Name( "pcbnew.PositionRelative.positionRelative" )
2022 .Scope( AS_GLOBAL )
2023 .DefaultHotkey( MD_SHIFT + 'P' )
2024 .LegacyHotkeyName( "Position Item Relative" )
2025 .FriendlyName( _( "Position Relative To..." ) )
2026 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another" ) )
2027 .Icon( BITMAPS::move_relative ) );
2028
2030 .Name( "pcbnew.PositionRelative.positionRelativeInteractively" )
2031 .Scope( AS_GLOBAL )
2032 .FriendlyName( _( "Position Interactively..." ) )
2033 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another, interactively" ) )
2034 .Icon( BITMAPS::move_relative ) );
2035
2036// PCIKER_TOOL
2037//
2039 .Name( "pcbnew.Picker.selectItemInteractively" )
2040 .Scope( AS_GLOBAL )
2041 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ) );
2042
2044 .Name( "pcbnew.Picker.selectPointInteractively" )
2045 .Scope( AS_GLOBAL )
2046 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ));
2047
2048
2049// PCB_SELECTION_TOOL
2050//
2052 .Name( "pcbnew.InteractiveSelection" )
2053 .Scope( AS_GLOBAL )
2054 // No description, not shown anywhere
2055 .Flags( AF_ACTIVATE ) );
2056
2058 .Name( "pcbnew.InteractiveSelection.Cursor" )
2059 .Scope( AS_GLOBAL )
2060 .Parameter<CLIENT_SELECTION_FILTER>( nullptr ) );
2061
2063 .Name( "pcbnew.InteractiveSelection.SelectItem" )
2064 .Scope( AS_GLOBAL ) );
2065
2067 .Name( "pcbnew.InteractiveSelection.SelectItems" )
2068 .Scope( AS_GLOBAL ) );
2069
2071 .Name( "pcbnew.InteractiveSelection.UnselectItem" )
2072 .Scope( AS_GLOBAL ) );
2073
2075 .Name( "pcbnew.InteractiveSelection.UnselectItems" )
2076 .Scope( AS_GLOBAL ) );
2077
2079 .Name( "pcbnew.InteractiveSelection.ReselectItem" )
2080 .Scope( AS_GLOBAL ) );
2081
2083 .Name( "pcbnew.InteractiveSelection.Clear" )
2084 .Scope( AS_GLOBAL ) );
2085
2087 .Name( "pcbnew.InteractiveSelection.SelectionMenu" )
2088 .Scope( AS_GLOBAL ) );
2089
2091 .Name( "pcbnew.InteractiveSelection.SelectConnection" )
2092 .Scope( AS_GLOBAL )
2093 .DefaultHotkey( 'U' )
2094 .LegacyHotkeyName( "Select Single Track" )
2095 .FriendlyName( _( "Select/Expand Connection" ) )
2096 .Tooltip( _( "Selects a connection or expands an existing selection to junctions, pads, or entire connections" ) )
2097 .Icon( BITMAPS::add_tracks ) );
2098
2100 .Name( "pcbnew.InteractiveSelection.unrouteSelected" )
2101 .Scope( AS_GLOBAL )
2102 .FriendlyName( _( "Unroute Selected" ) )
2103 .Tooltip( _( "Unroutes selected items to the nearest pad." ) )
2104 .Icon( BITMAPS::general_deletions ) );
2105
2107 .Name( "pcbnew.InteractiveSelection.SyncSelection" )
2108 .Scope( AS_GLOBAL ) );
2109
2111 .Name( "pcbnew.InteractiveSelection.SyncSelectionWithNets" )
2112 .Scope( AS_GLOBAL ) );
2113
2115 .Name( "pcbnew.InteractiveSelection.SelectNet" )
2116 .Scope( AS_GLOBAL )
2117 .FriendlyName( _( "Select All Tracks in Net" ) )
2118 .Tooltip( _( "Selects all tracks & vias belonging to the same net." ) )
2119 .Parameter<int>( 0 ) );
2120
2122 .Name( "pcbnew.InteractiveSelection.DeselectNet" )
2123 .Scope( AS_GLOBAL )
2124 .FriendlyName( _( "Deselect All Tracks in Net" ) )
2125 .Tooltip( _( "Deselects all tracks & vias belonging to the same net." ) )
2126 .Parameter<int>( 0 ) );
2127
2129 .Name( "pcbnew.InteractiveSelection.SelectUnconnected" )
2130 .Scope( AS_GLOBAL )
2131 .DefaultHotkey( 'O' )
2132 .FriendlyName( _( "Select All Unconnected Footprints" ) )
2133 .Tooltip( _( "Selects all unconnected footprints belonging to each selected net." ) ) );
2134
2136 .Name( "pcbnew.InteractiveSelection.GrabUnconnected" )
2137 .Scope( AS_GLOBAL )
2138 .DefaultHotkey( MD_SHIFT + 'O' )
2139 .FriendlyName( _( "Grab Nearest Unconnected Footprints" ) )
2140 .Tooltip( _( "Selects and initiates moving the nearest unconnected footprint on each selected net." ) ) );
2141
2143 .Name( "pcbnew.InteractiveSelection.SelectOnSheet" )
2144 .Scope( AS_GLOBAL )
2145 .FriendlyName( _( "Sheet" ) )
2146 .Tooltip( _( "Selects all footprints and tracks in the schematic sheet" ) )
2147 .Icon( BITMAPS::select_same_sheet ) );
2148
2150 .Name( "pcbnew.InteractiveSelection.SelectSameSheet" )
2151 .Scope( AS_GLOBAL )
2152 .FriendlyName( _( "Items in Same Hierarchical Sheet" ) )
2153 .Tooltip( _( "Selects all footprints and tracks in the same schematic sheet" ) )
2154 .Icon( BITMAPS::select_same_sheet ) );
2155
2157 .Name( "pcbnew.InteractiveSelection.SelectOnSchematic" )
2158 .Scope( AS_GLOBAL )
2159 .FriendlyName( _( "Select on Schematic" ) )
2160 .Tooltip( _( "Selects corresponding items in Schematic editor" ) )
2161 .Icon( BITMAPS::select_same_sheet ) );
2162
2164 .Name( "pcbnew.InteractiveSelection.FilterSelection" )
2165 .Scope( AS_GLOBAL )
2166 .FriendlyName( _( "Filter Selected Items..." ) )
2167 .Tooltip( _( "Remove items from the selection by type" ) )
2168 .Icon( BITMAPS::filter ) );
2169
2170
2171// ZONE_FILLER_TOOL
2172//
2174 .Name( "pcbnew.ZoneFiller.zoneFill" )
2175 .Scope( AS_GLOBAL )
2176 .FriendlyName( _( "Draft Fill Selected Zone(s)" ) )
2177 .Tooltip( _( "Update copper fill of selected zone(s) without regard to other interacting zones" ) )
2178 .Icon( BITMAPS::fill_zone )
2179 .Parameter<ZONE*>( nullptr ) );
2180
2182 .Name( "pcbnew.ZoneFiller.zoneFillAll" )
2183 .Scope( AS_GLOBAL )
2184 .DefaultHotkey( 'B' )
2185 .LegacyHotkeyName( "Fill or Refill All Zones" )
2186 .FriendlyName( _( "Fill All Zones" ) )
2187 .Tooltip( _( "Update copper fill of all zones" ) )
2188 .Icon( BITMAPS::fill_zone ) );
2189
2191 .Name( "pcbnew.ZoneFiller.zoneFillDirty" )
2192 .Scope( AS_CONTEXT ) );
2193
2195 .Name( "pcbnew.ZoneFiller.zoneUnfill" )
2196 .Scope( AS_GLOBAL )
2197 .FriendlyName( _( "Unfill Selected Zone(s)" ) )
2198 .Tooltip( _( "Remove copper fill from selected zone(s)" ) )
2199 .Icon( BITMAPS::zone_unfill ) );
2200
2202 .Name( "pcbnew.ZoneFiller.zoneUnfillAll" )
2203 .Scope( AS_GLOBAL )
2204 .DefaultHotkey( MD_CTRL + 'B' )
2205 .LegacyHotkeyName( "Remove Filled Areas in All Zones" )
2206 .FriendlyName( _( "Unfill All Zones" ) )
2207 .Tooltip( _( "Remove copper fill from all zones" ) )
2208 .Icon( BITMAPS::zone_unfill ) );
2209
2210
2211// AUTOPLACER_TOOL
2212//
2214 .Name( "pcbnew.Autoplacer.autoplaceSelected" )
2215 .Scope( AS_GLOBAL )
2216 .FriendlyName( _( "Place Selected Footprints" ) )
2217 .Tooltip( _( "Performs automatic placement of selected components" ) ) );
2218
2220 .Name( "pcbnew.Autoplacer.autoplaceOffboard" )
2221 .Scope( AS_GLOBAL )
2222 .FriendlyName( _( "Place Off-Board Footprints" ) )
2223 .Tooltip( _( "Performs automatic placement of components outside board area" ) ) );
2224
2226 .Name( "pcbnew.Multichannel.generatePlacementRuleAreas" )
2227 .Scope( AS_GLOBAL )
2228 .FriendlyName( _( "Generate Placement Rule Areas" ) )
2229 .Tooltip( "Generates Placement Areas in easy way" )
2231 .Flags( AF_ACTIVATE ) );
2232
2234 .Name( "pcbnew.Multichannel.repeatLayout" )
2235 .Scope( AS_GLOBAL )
2236 .FriendlyName( _( "Repeat Layout" ) )
2237 .Tooltip( "Clones placement & routing across multiple identical channels" )
2238 .Icon( BITMAPS::copy )
2239 );
2240
2241// ROUTER_TOOL
2242//
2244 .Name( "pcbnew.InteractiveRouter.SingleTrack" )
2245 .Scope( AS_GLOBAL )
2246 .DefaultHotkey( 'X' )
2247 .LegacyHotkeyName( "Add New Track" )
2248 .FriendlyName( _( "Route Single Track" ) )
2249 .Tooltip( _( "Route tracks" ) )
2250 .Icon( BITMAPS::add_tracks )
2251 .Flags( AF_ACTIVATE )
2252 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2253
2255 .Name( "pcbnew.InteractiveRouter.DiffPair" )
2256 .Scope( AS_GLOBAL )
2257 .DefaultHotkey( '6' )
2258 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2259 .LegacyHotkeyName( "Route Differential Pair (Modern Toolset only)" )
2260 .FriendlyName( _( "Route Differential Pair" ) )
2261 .Tooltip( _( "Route differential pairs" ) )
2262 .Icon( BITMAPS::ps_diff_pair )
2263 .Flags( AF_ACTIVATE )
2264 .Parameter( PNS::PNS_MODE_ROUTE_DIFF_PAIR ) );
2265
2267 .Name( "pcbnew.InteractiveRouter.SettingsDialog" )
2268 .Scope( AS_GLOBAL )
2269 .DefaultHotkey( MD_CTRL + '<' )
2270 .LegacyHotkeyName( "Routing Options" )
2271 .FriendlyName( _( "Interactive Router Settings..." ) )
2272 .Tooltip( _( "Open Interactive Router settings" ) )
2273 .Icon( BITMAPS::tools ) );
2274
2276 .Name( "pcbnew.InteractiveRouter.DiffPairDialog" )
2277 .Scope( AS_GLOBAL )
2278 .FriendlyName( _( "Differential Pair Dimensions..." ) )
2279 .Tooltip( _( "Open Differential Pair Dimension settings" ) )
2280 .Icon( BITMAPS::ps_diff_pair_gap ) );
2281
2283 .Name( "pcbnew.InteractiveRouter.HighlightMode" )
2284 .Scope( AS_GLOBAL )
2285 .FriendlyName( _( "Router Highlight Mode" ) )
2286 .Tooltip( _( "Switch router to highlight mode" ) )
2287 .Flags( AF_NONE )
2288 .Parameter( PNS::RM_MarkObstacles ) );
2289
2291 .Name( "pcbnew.InteractiveRouter.ShoveMode" )
2292 .Scope( AS_GLOBAL )
2293 .FriendlyName( _( "Router Shove Mode" ) )
2294 .Tooltip( _( "Switch router to shove mode" ) )
2295 .Flags( AF_NONE )
2296 .Parameter( PNS::RM_Shove ) );
2297
2299 .Name( "pcbnew.InteractiveRouter.WalkaroundMode" )
2300 .Scope( AS_GLOBAL )
2301 .FriendlyName( _( "Router Walkaround Mode" ) )
2302 .Tooltip( _( "Switch router to walkaround mode" ) )
2303 .Flags( AF_NONE )
2304 .Parameter( PNS::RM_Walkaround ) );
2305
2307 .Name( "pcbnew.InteractiveRouter.CycleRouterMode" )
2308 .Scope( AS_GLOBAL )
2309 .FriendlyName( _( "Cycle Router Mode" ) )
2310 .Tooltip( _( "Cycle router to the next mode" ) ) );
2311
2313 .Name( "pcbnew.InteractiveRouter.SelectLayerPair" )
2314 .Scope( AS_GLOBAL )
2315 .FriendlyName( _( "Set Layer Pair..." ) )
2316 .Tooltip( _( "Change active layer pair for routing" ) )
2318 .Flags( AF_ACTIVATE ) );
2319
2321 .Name( "pcbnew.LengthTuner.TuneSingleTrack" )
2322 .Scope( AS_GLOBAL )
2323 .DefaultHotkey( '7' )
2324 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2325 .LegacyHotkeyName( "Tune Single Track (Modern Toolset only)" )
2326 .FriendlyName( _( "Tune Length of a Single Track" ) )
2328 .Flags( AF_ACTIVATE )
2329 .Parameter( PNS::PNS_MODE_TUNE_SINGLE ) );
2330
2332 .Name( "pcbnew.LengthTuner.TuneDiffPair" )
2333 .Scope( AS_GLOBAL )
2334 .DefaultHotkey( '8' )
2335 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2336 .LegacyHotkeyName( "Tune Differential Pair Length (Modern Toolset only)" )
2337 .FriendlyName( _( "Tune Length of a Differential Pair" ) )
2339 .Flags( AF_ACTIVATE )
2340 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR ) );
2341
2343 .Name( "pcbnew.LengthTuner.TuneDiffPairSkew" )
2344 .Scope( AS_GLOBAL )
2345 .DefaultHotkey( '9' )
2346 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2347 .LegacyHotkeyName( "Tune Differential Pair Skew (Modern Toolset only)" )
2348 .FriendlyName( _( "Tune Skew of a Differential Pair" ) )
2350 .Flags( AF_ACTIVATE )
2351 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW ) );
2352
2354 .Name( "pcbnew.InteractiveRouter.InlineDrag" )
2355 .Scope( AS_CONTEXT )
2356 .Parameter<int>( PNS::DM_ANY ) );
2357
2359 .Name( "pcbnew.InteractiveRouter.UndoLastSegment" )
2360 .Scope( AS_CONTEXT )
2361 .DefaultHotkey( WXK_BACK )
2362 .FriendlyName( _( "Undo Last Segment" ) )
2363 .Tooltip( _( "Walks the current track back one segment." ) ) );
2364
2366 .Name( "pcbnew.InteractiveRouter.ContinueFromEnd" )
2367 .Scope( AS_CONTEXT )
2368 .DefaultHotkey( MD_CTRL + 'E' )
2369 .FriendlyName( _( "Route From Other End" ) )
2370 .Tooltip( _( "Commits current segments and starts next segment from nearest ratsnest end." ) ) );
2371
2373 .Name( "pcbnew.InteractiveRouter.AttemptFinish" )
2374 .Scope( AS_CONTEXT )
2375 .DefaultHotkey( 'F' )
2376 .FriendlyName( _( "Attempt Finish" ) )
2377 .Tooltip( _( "Attempts to complete current route to nearest ratsnest end." ) )
2378 .Parameter<bool*>( nullptr ) );
2379
2381 .Name( "pcbnew.InteractiveRouter.RouteSelected" )
2382 .Scope( AS_GLOBAL )
2383 .DefaultHotkey( MD_SHIFT + 'X' )
2384 .FriendlyName( _( "Route Selected" ) )
2385 .Tooltip( _( "Sequentially route selected items from ratsnest anchor." ) )
2386 .Flags( AF_ACTIVATE )
2387 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2388
2390 .Name( "pcbnew.InteractiveRouter.RouteSelectedFromEnd" )
2391 .Scope( AS_GLOBAL )
2392 .DefaultHotkey( MD_SHIFT + 'E' )
2393 .FriendlyName( _( "Route Selected From Other End" ) )
2394 .Tooltip( _( "Sequentially route selected items from other end of ratsnest anchor." ) )
2395 .Flags( AF_ACTIVATE )
2396 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2397
2399 .Name( "pcbnew.InteractiveRouter.Autoroute" )
2400 .Scope( AS_GLOBAL )
2401 .DefaultHotkey( MD_SHIFT + 'F' )
2402 .FriendlyName( _( "Attempt Finish Selected (Autoroute)" ) )
2403 .Tooltip( _( "Sequentially attempt to automatically route all selected pads." ) )
2404 .Flags( AF_ACTIVATE )
2405 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2406
2408 .Name( "pcbnew.InteractiveRouter.BreakTrack" )
2409 .Scope( AS_GLOBAL )
2410 .FriendlyName( _( "Break Track" ) )
2411 .Tooltip( _( "Splits the track segment into two segments connected at the cursor position." ) )
2412 .Icon( BITMAPS::break_line ) );
2413
2415 .Name( "pcbnew.InteractiveRouter.Drag45Degree" )
2416 .Scope( AS_GLOBAL )
2417 .DefaultHotkey( 'D' )
2418 .LegacyHotkeyName( "Drag Track Keep Slope" )
2419 .FriendlyName( _( "Drag 45 Degree Mode" ) )
2420 .Tooltip( _( "Drags the track segment while keeping connected tracks at 45 degrees." ) )
2422
2424 .Name( "pcbnew.InteractiveRouter.DragFreeAngle" )
2425 .Scope( AS_GLOBAL )
2426 .DefaultHotkey( 'G' )
2427 .LegacyHotkeyName( "Drag Item" )
2428 .FriendlyName( _( "Drag Free Angle" ) )
2429 .Tooltip( _( "Drags the nearest joint in the track without restricting the track angle." ) )
2430 .Icon( BITMAPS::drag_segment ) );
2431
2432
2433// GENERATOR_TOOL
2434//
2435
2437 .Name( "pcbnew.Generator.regenerateAllTuning" )
2438 .Scope( AS_GLOBAL )
2439 .FriendlyName( _( "Update All Tuning Patterns" ) )
2440 .Tooltip( _( "Attempt to re-tune existing tuning patterns within their bounds" ) )
2442 .Parameter( wxString( wxS( "tuning_pattern" ) ) ) );
2443
2445 .Name( "pcbnew.Generator.regenerateAll" )
2446 .Scope( AS_GLOBAL )
2447 .FriendlyName( _( "Rebuild All Generators" ) )
2448 .Tooltip( _( "Rebuilds geometry of all generators" ) )
2449 .Icon( BITMAPS::refresh )
2450 .Parameter( wxString( wxS( "*" ) ) ) );
2451
2453 .Name( "pcbnew.Generator.regenerateSelected" )
2454 .Scope( AS_GLOBAL )
2455 .FriendlyName( _( "Rebuild Selected Generators" ) )
2456 .Tooltip( _( "Rebuilds geometry of selected generator(s)" ) )
2457 .Icon( BITMAPS::refresh ) );
2458
2459
2461 .Name( "pcbnew.Generator.genStartEdit" )
2462 .Scope( AS_CONTEXT ) );
2463
2465 .Name( "pcbnew.Generator.genUpdateEdit" )
2466 .Scope( AS_CONTEXT ) );
2467
2469 .Name( "pcbnew.Generator.genPushEdit" )
2470 .Scope( AS_CONTEXT ) );
2471
2473 .Name( "pcbnew.Generator.genRevertEdit" )
2474 .Scope( AS_CONTEXT ) );
2475
2477 .Name( "pcbnew.Generator.genRemove" )
2478 .Scope( AS_CONTEXT ) );
2479
2480
2482 .Name( "pcbnew.Generator.showManager" )
2483 .Scope( AS_GLOBAL )
2484 .FriendlyName( _( "Generators Manager" ) )
2485 .Tooltip( _( "Show a manager dialog for Generator objects" ) )
2486 .Icon( BITMAPS::pin_table ) );
2487
2488
2489// LENGTH_TUNER_TOOL
2490//
2492 .Name( "pcbnew.LengthTuner.Settings" )
2493 .Scope( AS_GLOBAL )
2494 .DefaultHotkey( MD_CTRL + 'L' )
2495 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2496 .LegacyHotkeyName( "Length Tuning Settings (Modern Toolset only)" )
2497 .MenuText( _( "Length Tuning Settings..." ) )
2498 .Tooltip( _( "Displays tuning pattern properties dialog" ) )
2500
2502 .Name( "pcbnew.Control.DdAppendBoard" )
2503 .Scope( AS_GLOBAL ) );
2504
2505
2507 .Name( "pcbnew.Control.ddImportFootprint" )
2508 .Scope( AS_GLOBAL ) );
2509
2511 "common.Interactive.snappingModeChangedByKey" );
2512
2514 "pcbnew.Control.layerPairPresetChangedByKey" );
@ KEEP_ENDPOINTS_OR_START_DIRECTION
@ KEEP_CENTER_ADJUST_ANGLE_RADIUS
@ new_footprint
@ copy_pad_settings
@ add_zone_cutout
@ cleanup_tracks_and_vias
@ show_mod_edge
@ general_deletions
@ align_items_bottom
@ hide_ratsnest
@ align_items_left
@ show_zone_outline_only
@ push_pad_settings
@ distribute_horizontal_centers
@ distribute_vertical_centers
@ delete_cursor
@ ps_diff_pair_tune_length
@ module_options
@ add_graphical_polygon
@ move_exactly
@ align_items_middle
@ distribute_horizontal_gaps
@ add_radial_dimension
@ ps_tune_length
@ zone_duplicate
@ import_module
@ ps_diff_pair
@ router_len_tuner_dist_incr
@ drag_segment
@ module_editor
@ subtract_polygons
@ align_items_top
@ export_module
@ pad_enumerate
@ move_relative
@ curved_ratsnest
@ router_len_tuner_dist_decr
@ add_aligned_dimension
@ general_ratsnest
@ add_rectangle
@ outset_from_selection
@ mw_add_stub_arc
@ align_items_right
@ apply_pad_settings
@ mw_add_shape
@ icon_eeschema_24
@ add_center_dimension
@ show_ratsnest
@ drag_segment_withslope
@ width_track_via
@ merge_polygons
@ add_graphical_segments
@ intersect_polygons
@ distribute_vertical_gaps
@ ps_diff_pair_tune_phase
@ contrast_mode
@ add_orthogonal_dimension
@ add_keepout_area
@ group_ungroup
@ group_remove
@ pack_footprints
@ custom_pad_to_primitives
@ directory_open
@ show_zone_disable
@ align_items_center
@ layers_manager
@ net_highlight
@ options_board
@ show_zone_triangulation
@ router_len_tuner
@ select_layer_pair
@ router_len_tuner_amplitude_incr
@ select_same_sheet
@ router_len_tuner_setup
@ cleanup_graphics
@ module_wizard
@ import_vector
@ router_len_tuner_amplitude_decr
@ tool_ratsnest
@ edit_cmp_symb_links
@ ps_diff_pair_gap
@ CURSOR_NONE
Definition: actions.h:251
static TOOL_ACTION deleteLastPoint
Definition: pcb_actions.h:231
static TOOL_ACTION toggleHV45Mode
Definition: pcb_actions.h:524
static TOOL_ACTION editTracksAndVias
Definition: pcb_actions.h:422
static TOOL_ACTION_GROUP layerDirectSwitchActions()
static TOOL_ACTION deleteFootprint
Definition: pcb_actions.h:471
static TOOL_ACTION drawRuleArea
Definition: pcb_actions.h:223
static TOOL_ACTION layerToggle
Definition: pcb_actions.h:386
static TOOL_ACTION drag45Degree
Definition: pcb_actions.h:197
static TOOL_ACTION duplicateIncrement
Activation of the duplication tool with incrementing (e.g. pad number)
Definition: pcb_actions.h:186
static TOOL_ACTION layerInner12
Definition: pcb_actions.h:362
static TOOL_ACTION changeDimensionArrows
Switch between dimension arrow directions.
Definition: pcb_actions.h:244
static TOOL_ACTION microwaveCreateGap
Definition: pcb_actions.h:513
static TOOL_ACTION recombinePad
Definition: pcb_actions.h:487
static TOOL_ACTION drawBezier
Definition: pcb_actions.h:206
static TOOL_ACTION renameFootprint
Definition: pcb_actions.h:470
static TOOL_ACTION routerUndoLastSegment
Definition: pcb_actions.h:263
static TOOL_ACTION placeText
Definition: pcb_actions.h:208
static TOOL_ACTION layerInner8
Definition: pcb_actions.h:358
static TOOL_ACTION swapLayers
Definition: pcb_actions.h:432
static TOOL_ACTION zonesManager
Definition: pcb_actions.h:457
static TOOL_ACTION generateBOM
Definition: pcb_actions.h:447
static TOOL_ACTION pointEditorArcKeepCenter
Definition: pcb_actions.h:302
static TOOL_ACTION highlightItem
Definition: pcb_actions.h:562
static TOOL_ACTION drawOrthogonalDimension
Definition: pcb_actions.h:219
static TOOL_ACTION zoneDisplayToggle
Definition: pcb_actions.h:346
static TOOL_ACTION enumeratePads
Tool for quick pad enumeration.
Definition: pcb_actions.h:490
static TOOL_ACTION drawRectangle
Definition: pcb_actions.h:203
static TOOL_ACTION layerInner3
Definition: pcb_actions.h:353
static TOOL_ACTION layerPrev
Definition: pcb_actions.h:383
static TOOL_ACTION setAnchor
Definition: pcb_actions.h:230
static TOOL_ACTION padDisplayMode
Definition: pcb_actions.h:340
static TOOL_ACTION placeReferenceImage
Definition: pcb_actions.h:207
static TOOL_ACTION routerSettingsDialog
Activation of the Push and Shove settings dialogs.
Definition: pcb_actions.h:272
static TOOL_ACTION showRatsnest
Definition: pcb_actions.h:335
static TOOL_ACTION zoneFillAll
Definition: pcb_actions.h:408
static TOOL_ACTION layerInner2
Definition: pcb_actions.h:352
static TOOL_ACTION showLayersManager
Definition: pcb_actions.h:454
static TOOL_ACTION changeTrackWidth
Update selected tracks & vias to the current track & via dimensions.
Definition: pcb_actions.h:152
static TOOL_ACTION trackWidthDec
Definition: pcb_actions.h:398
static TOOL_ACTION routerAttemptFinish
Definition: pcb_actions.h:266
static TOOL_ACTION convertToKeepout
Definition: pcb_actions.h:583
static TOOL_ACTION toggleNetHighlight
Definition: pcb_actions.h:560
static TOOL_ACTION generateDrillFiles
Definition: pcb_actions.h:441
static TOOL_ACTION pushPadSettings
Copy the current pad's settings to other pads in the footprint or on the board.
Definition: pcb_actions.h:510
static TOOL_ACTION unrouteSelected
Removes all tracks from the selected items to the first pad.
Definition: pcb_actions.h:93
static TOOL_ACTION drawCircle
Definition: pcb_actions.h:204
static TOOL_ACTION magneticSnapAllLayers
Definition: pcb_actions.h:248
static TOOL_ACTION mirrorH
Mirroring of selected items.
Definition: pcb_actions.h:139
static TOOL_ACTION routeDiffPair
Activation of the Push and Shove router (differential pair mode)
Definition: pcb_actions.h:257
static TOOL_ACTION selectionCursor
Select a single item under the cursor position.
Definition: pcb_actions.h:65
static TOOL_ACTION generateD356File
Definition: pcb_actions.h:446
static TOOL_ACTION groupLeave
Definition: pcb_actions.h:536
static TOOL_ACTION updateFootprint
Definition: pcb_actions.h:428
static TOOL_ACTION tuneDiffPair
Definition: pcb_actions.h:260
static TOOL_ACTION convertToTracks
Definition: pcb_actions.h:586
static TOOL_ACTION alignTop
Definition: pcb_actions.h:315
static TOOL_ACTION trackViaSizeChanged
Definition: pcb_actions.h:402
static TOOL_ACTION exportSpecctraDSN
Definition: pcb_actions.h:438
static TOOL_ACTION createFootprint
Definition: pcb_actions.h:466
static TOOL_ACTION layerChanged
Definition: pcb_actions.h:392
static TOOL_ACTION trackWidthInc
Definition: pcb_actions.h:397
static TOOL_ACTION grabUnconnected
Select and move nearest unconnected footprint from ratsnest of selection.
Definition: pcb_actions.h:105
static TOOL_ACTION filterSelection
Filter the items in the current selection (invokes dialog)
Definition: pcb_actions.h:117
static TOOL_ACTION ddAppendBoard
Drag and drop.
Definition: pcb_actions.h:589
static TOOL_ACTION editFootprint
Definition: pcb_actions.h:468
static TOOL_ACTION exportFootprint
Definition: pcb_actions.h:476
static TOOL_ACTION layerInner25
Definition: pcb_actions.h:375
static TOOL_ACTION breakTrack
Break a single track into two segments at the cursor.
Definition: pcb_actions.h:195
static TOOL_ACTION pointEditorMoveMidpoint
Definition: pcb_actions.h:306
static TOOL_ACTION highlightNet
Definition: pcb_actions.h:558
static TOOL_ACTION magneticSnapActiveLayer
Snapping controls.
Definition: pcb_actions.h:247
static TOOL_ACTION generateIPC2581File
Definition: pcb_actions.h:444
static TOOL_ACTION getAndPlace
Find an item and start moving.
Definition: pcb_actions.h:575
static TOOL_ACTION drawTable
Definition: pcb_actions.h:210
static TOOL_ACTION drawTextBox
Definition: pcb_actions.h:209
static TOOL_ACTION generateODBPPFile
Definition: pcb_actions.h:445
static TOOL_ACTION repeatLayout
Definition: pcb_actions.h:592
static TOOL_ACTION copyPadSettings
Copy the selected pad's settings to the board design settings.
Definition: pcb_actions.h:504
static TOOL_ACTION layerAlphaDec
Definition: pcb_actions.h:385
static TOOL_ACTION unselectItem
Definition: pcb_actions.h:72
static TOOL_ACTION routerRouteSelectedFromEnd
Definition: pcb_actions.h:268
static TOOL_ACTION routerHighlightMode
Actions to enable switching modes via hotkey assignments.
Definition: pcb_actions.h:276
static TOOL_ACTION routerWalkaroundMode
Definition: pcb_actions.h:278
static TOOL_ACTION routerShoveMode
Definition: pcb_actions.h:277
static TOOL_ACTION convertToLines
Definition: pcb_actions.h:584
static TOOL_ACTION drawZoneCutout
Definition: pcb_actions.h:224
static TOOL_ACTION genPushEdit
Definition: pcb_actions.h:291
static TOOL_ACTION drawPolygon
Definition: pcb_actions.h:202
static TOOL_ACTION placePad
Activation of the drawing tool (placing a PAD)
Definition: pcb_actions.h:484
static TOOL_ACTION hideNetInRatsnest
Definition: pcb_actions.h:565
static TOOL_ACTION hideLocalRatsnest
Definition: pcb_actions.h:568
static TOOL_ACTION group
Definition: pcb_actions.h:532
static TOOL_ACTION distributeHorizontallyGaps
Definition: pcb_actions.h:322
static TOOL_ACTION zoneDisplayFilled
Definition: pcb_actions.h:342
static TOOL_ACTION layerInner24
Definition: pcb_actions.h:374
static TOOL_ACTION viaSizeDec
Definition: pcb_actions.h:400
static TOOL_ACTION showNetInRatsnest
Definition: pcb_actions.h:566
static TOOL_ACTION drawRadialDimension
Definition: pcb_actions.h:218
static TOOL_ACTION genStartEdit
Definition: pcb_actions.h:289
static TOOL_ACTION tuneSingleTrack
Definition: pcb_actions.h:259
static TOOL_ACTION zoneFill
Definition: pcb_actions.h:407
static TOOL_ACTION cleanupTracksAndVias
Definition: pcb_actions.h:426
static TOOL_ACTION viaDisplayMode
Definition: pcb_actions.h:341
static TOOL_ACTION editTextAndGraphics
Definition: pcb_actions.h:423
static TOOL_ACTION properties
Activation of the edit tool.
Definition: pcb_actions.h:180
static TOOL_ACTION drawLeader
Definition: pcb_actions.h:220
static TOOL_ACTION editFpInFpEditor
Definition: pcb_actions.h:451
static TOOL_ACTION selectionClear
Clear the current selection.
Definition: pcb_actions.h:68
static TOOL_ACTION moveWithReference
move with a reference point
Definition: pcb_actions.h:126
static TOOL_ACTION toggleLock
Definition: pcb_actions.h:527
static TOOL_ACTION swap
Swapping of selected items.
Definition: pcb_actions.h:143
static TOOL_ACTION toggleLastNetHighlight
Definition: pcb_actions.h:559
static TOOL_ACTION layerInner29
Definition: pcb_actions.h:379
static TOOL_ACTION * LayerIDToAction(PCB_LAYER_ID aLayerID)
Translate a layer ID into the action that switches to that layer.
static TOOL_ACTION drillResetOrigin
Definition: pcb_actions.h:543
static TOOL_ACTION placeCharacteristics
Definition: pcb_actions.h:226
static TOOL_ACTION pluginsShowFolder
Scripting Actions.
Definition: pcb_actions.h:418
static TOOL_ACTION viaSizeInc
Definition: pcb_actions.h:399
static TOOL_ACTION routerAutorouteSelected
Definition: pcb_actions.h:269
static TOOL_ACTION moveExact
Activation of the exact move tool.
Definition: pcb_actions.h:183
static TOOL_ACTION autoplaceOffboardComponents
Definition: pcb_actions.h:577
static TOOL_ACTION layerInner11
Definition: pcb_actions.h:361
static TOOL_ACTION routerDiffPairDialog
Definition: pcb_actions.h:273
static TOOL_ACTION explodePad
Definition: pcb_actions.h:486
static TOOL_ACTION routerContinueFromEnd
Definition: pcb_actions.h:265
static TOOL_ACTION zoneUnfill
Definition: pcb_actions.h:410
static TOOL_ACTION intersectPolygons
Intersection of multiple polygons.
Definition: pcb_actions.h:177
static TOOL_ACTION pointEditorMoveCorner
Definition: pcb_actions.h:305
static TOOL_ACTION layerAlphaInc
Definition: pcb_actions.h:384
static TOOL_ACTION layerPairPresetsCycle
Definition: pcb_actions.h:387
static TOOL_ACTION distributeHorizontallyCenters
Definition: pcb_actions.h:321
static TOOL_ACTION inspectConstraints
Definition: pcb_actions.h:552
static TOOL_ACTION generatePosFile
Definition: pcb_actions.h:442
static TOOL_ACTION globalDeletions
Definition: pcb_actions.h:425
static TOOL_ACTION newFootprint
Definition: pcb_actions.h:463
static TOOL_ACTION genRemove
Definition: pcb_actions.h:293
static TOOL_ACTION drillOrigin
Definition: pcb_actions.h:542
static TOOL_ACTION selectOnSheetFromEeschema
Select all components on sheet from Eeschema crossprobing.
Definition: pcb_actions.h:108
static TOOL_ACTION layerInner16
Definition: pcb_actions.h:366
static TOOL_ACTION defaultPadProperties
Definition: pcb_actions.h:479
static TOOL_ACTION selectConnection
Select tracks between junctions or expands an existing selection to pads or the entire connection.
Definition: pcb_actions.h:90
static TOOL_ACTION assignNetClass
Definition: pcb_actions.h:404
static TOOL_ACTION packAndMoveFootprints
Pack and start moving selected footprints.
Definition: pcb_actions.h:146
static TOOL_ACTION alignRight
Definition: pcb_actions.h:318
static TOOL_ACTION tuneSkew
Definition: pcb_actions.h:261
static TOOL_ACTION copyWithReference
copy command with manual reference point selection
Definition: pcb_actions.h:129
static TOOL_ACTION layerInner26
Definition: pcb_actions.h:376
static TOOL_ACTION layerInner18
Definition: pcb_actions.h:368
static TOOL_ACTION incWidth
Increase width of currently drawn line.
Definition: pcb_actions.h:235
static TOOL_ACTION repairBoard
Definition: pcb_actions.h:549
static TOOL_ACTION layerInner14
Definition: pcb_actions.h:364
static TOOL_ACTION healShapes
Connect selected shapes, possibly extending or cutting them, or adding extra geometry.
Definition: pcb_actions.h:164
static TOOL_ACTION selectPointInteractively
Definition: pcb_actions.h:332
static TOOL_ACTION trackDisplayMode
Definition: pcb_actions.h:339
static TOOL_ACTION showNetInspector
Definition: pcb_actions.h:455
static TOOL_ACTION selectLayerPair
Definition: pcb_actions.h:192
static TOOL_ACTION magneticSnapToggle
Definition: pcb_actions.h:249
static TOOL_ACTION microwaveCreateStubArc
Definition: pcb_actions.h:517
static TOOL_ACTION layerInner6
Definition: pcb_actions.h:356
static TOOL_ACTION dragFreeAngle
Definition: pcb_actions.h:198
static TOOL_ACTION positionRelativeInteractively
Definition: pcb_actions.h:328
static TOOL_ACTION clearHighlight
Definition: pcb_actions.h:557
static TOOL_ACTION generateGerbers
Definition: pcb_actions.h:440
static TOOL_ACTION inspectClearance
Definition: pcb_actions.h:551
static TOOL_ACTION convertToZone
Definition: pcb_actions.h:582
static TOOL_ACTION ddImportFootprint
Definition: pcb_actions.h:590
static TOOL_ACTION generatorsShowManager
Definition: pcb_actions.h:295
static TOOL_ACTION unselectItems
Definition: pcb_actions.h:77
static TOOL_ACTION zoneDisplayTriangulated
Definition: pcb_actions.h:345
static TOOL_ACTION genUpdateEdit
Definition: pcb_actions.h:290
static TOOL_ACTION generateReportFile
Definition: pcb_actions.h:443
static TOOL_ACTION updateLocalRatsnest
Definition: pcb_actions.h:569
static TOOL_ACTION spacingDecrease
Definition: pcb_actions.h:212
static TOOL_ACTION updateFootprints
Definition: pcb_actions.h:429
static TOOL_ACTION ungroup
Definition: pcb_actions.h:533
static TOOL_ACTION groupProperties
Definition: pcb_actions.h:310
static TOOL_ACTION importFootprint
Definition: pcb_actions.h:475
static TOOL_ACTION autoplaceSelectedComponents
Definition: pcb_actions.h:578
static TOOL_ACTION layerInner22
Definition: pcb_actions.h:372
static TOOL_ACTION alignBottom
Definition: pcb_actions.h:316
static TOOL_ACTION pickNewGroupMember
Definition: pcb_actions.h:311
static TOOL_ACTION selectUnconnected
Select unconnected footprints from ratsnest of selection.
Definition: pcb_actions.h:102
static TOOL_ACTION placeImportedGraphics
Definition: pcb_actions.h:229
static TOOL_ACTION layerInner5
Definition: pcb_actions.h:355
static TOOL_ACTION removeUnusedPads
Definition: pcb_actions.h:433
static TOOL_ACTION zoneDisplayFractured
Definition: pcb_actions.h:344
static TOOL_ACTION ratsnestModeCycle
Definition: pcb_actions.h:338
static TOOL_ACTION drawVia
Definition: pcb_actions.h:222
static TOOL_ACTION regenerateAll
Definition: pcb_actions.h:286
static TOOL_ACTION applyPadSettings
Copy the default pad settings to the selected pad.
Definition: pcb_actions.h:507
static TOOL_ACTION alignLeft
Definition: pcb_actions.h:317
static TOOL_ACTION drawArc
Definition: pcb_actions.h:205
static TOOL_ACTION deleteFull
Definition: pcb_actions.h:190
static TOOL_ACTION runDRC
Definition: pcb_actions.h:449
static TOOL_ACTION convertToPoly
Definition: pcb_actions.h:581
static TOOL_ACTION zoneDuplicate
Duplicate zone onto another layer.
Definition: pcb_actions.h:415
static TOOL_ACTION regenerateAllTuning
Generator tool.
Definition: pcb_actions.h:285
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
Definition: pcb_actions.h:496
static TOOL_ACTION importNetlist
Definition: pcb_actions.h:435
static TOOL_ACTION generatePlacementRuleAreas
Definition: pcb_actions.h:593
static TOOL_ACTION layerInner20
Definition: pcb_actions.h:370
static TOOL_ACTION layerInner7
Definition: pcb_actions.h:357
static TOOL_ACTION layerInner27
Definition: pcb_actions.h:377
static TOOL_ACTION diffFootprint
Definition: pcb_actions.h:553
static TOOL_ACTION moveIndividually
move items one-by-one
Definition: pcb_actions.h:123
static TOOL_ACTION changeFootprints
Definition: pcb_actions.h:431
static TOOL_ACTION outsetItems
Create outset items from selection.
Definition: pcb_actions.h:170
static TOOL_ACTION drawSimilarZone
Definition: pcb_actions.h:225
static TOOL_ACTION pointEditorArcKeepEndpoint
Definition: pcb_actions.h:303
static TOOL_ACTION syncSelection
Sets selection to specified items, zooms to fit, if enabled.
Definition: pcb_actions.h:80
static TOOL_ACTION boardSetup
Definition: pcb_actions.h:421
static TOOL_ACTION showEeschema
Definition: pcb_actions.h:546
static TOOL_ACTION decWidth
Decrease width of currently drawn line.
Definition: pcb_actions.h:238
static TOOL_ACTION drawCenterDimension
Definition: pcb_actions.h:217
static TOOL_ACTION groupEnter
Definition: pcb_actions.h:535
static TOOL_ACTION zoneUnfillAll
Definition: pcb_actions.h:411
static TOOL_ACTION pasteFootprint
Definition: pcb_actions.h:474
static TOOL_ACTION zoneFillDirty
Definition: pcb_actions.h:409
static TOOL_ACTION selectItem
Select an item (specified as the event parameter).
Definition: pcb_actions.h:71
static TOOL_ACTION chamferLines
Chamfer (i.e. adds a straight line) all selected straight lines by a user defined setback.
Definition: pcb_actions.h:160
static TOOL_ACTION appendBoard
Definition: pcb_actions.h:545
static TOOL_ACTION netColorModeCycle
Definition: pcb_actions.h:337
static TOOL_ACTION selectSameSheet
Select all components on the same sheet as the selected footprint.
Definition: pcb_actions.h:111
static TOOL_ACTION layerInner1
Definition: pcb_actions.h:351
static TOOL_ACTION layerInner10
Definition: pcb_actions.h:360
static TOOL_ACTION dogboneCorners
Add "dogbone" corners to selected lines to allow routing with a cutter radius.
Definition: pcb_actions.h:162
static TOOL_ACTION microwaveCreateStub
Definition: pcb_actions.h:515
static TOOL_ACTION selectNet
Select all connections belonging to a single net.
Definition: pcb_actions.h:96
static TOOL_ACTION filletTracks
Fillet (i.e. adds an arc tangent to) all selected straight tracks by a user defined radius.
Definition: pcb_actions.h:155
static TOOL_ACTION layerInner15
Definition: pcb_actions.h:365
static TOOL_ACTION simplifyPolygons
Simplify polygon outlines.
Definition: pcb_actions.h:168
static TOOL_ACTION arcPosture
Switch posture when drawing arc.
Definition: pcb_actions.h:241
static TOOL_ACTION microwaveCreateLine
Definition: pcb_actions.h:521
static TOOL_ACTION footprintProperties
Definition: pcb_actions.h:478
static TOOL_ACTION layerInner17
Definition: pcb_actions.h:367
static TOOL_ACTION flipBoard
Definition: pcb_actions.h:394
static TOOL_ACTION layerBottom
Definition: pcb_actions.h:381
static TOOL_ACTION zoneDisplayOutline
Definition: pcb_actions.h:343
static TOOL_ACTION selectionActivate
Activation of the selection tool.
Definition: pcb_actions.h:62
static TOOL_ACTION ratsnestLineMode
Definition: pcb_actions.h:336
static TOOL_ACTION showFootprintAssociations
Definition: pcb_actions.h:554
static TOOL_ACTION layerInner19
Definition: pcb_actions.h:369
static TOOL_ACTION layerInner9
Definition: pcb_actions.h:359
static TOOL_ACTION pointEditorChamferCorner
Definition: pcb_actions.h:300
static TOOL_ACTION textOutlines
Display texts as lines.
Definition: pcb_actions.h:499
static TOOL_ACTION showPadNumbers
Definition: pcb_actions.h:347
static TOOL_ACTION checkFootprint
Definition: pcb_actions.h:481
static TOOL_ACTION filletLines
Fillet (i.e. adds an arc tangent to) all selected straight lines by a user defined radius.
Definition: pcb_actions.h:158
static TOOL_ACTION highlightNetSelection
Definition: pcb_actions.h:561
static TOOL_ACTION microwaveCreateFunctionShape
Definition: pcb_actions.h:519
static TOOL_ACTION editLibFpInFpEditor
Definition: pcb_actions.h:452
static TOOL_ACTION zoneMerge
Definition: pcb_actions.h:412
static TOOL_ACTION duplicateFootprint
Definition: pcb_actions.h:469
static TOOL_ACTION closeOutline
Definition: pcb_actions.h:232
static TOOL_ACTION changeFootprint
Definition: pcb_actions.h:430
static TOOL_ACTION routerInlineDrag
Activation of the Push and Shove router (inline dragging mode)
Definition: pcb_actions.h:282
static TOOL_ACTION pointEditorRemoveCorner
Definition: pcb_actions.h:299
static TOOL_ACTION positionRelative
Definition: pcb_actions.h:327
static TOOL_ACTION skip
Definition: pcb_actions.h:149
static TOOL_ACTION amplIncrease
Definition: pcb_actions.h:213
static TOOL_ACTION move
move or drag an item
Definition: pcb_actions.h:120
static TOOL_ACTION mirrorV
Definition: pcb_actions.h:140
static TOOL_ACTION cutFootprint
Definition: pcb_actions.h:472
static TOOL_ACTION amplDecrease
Definition: pcb_actions.h:214
static TOOL_ACTION unlock
Definition: pcb_actions.h:529
static TOOL_ACTION lengthTunerSettings
Definition: pcb_actions.h:215
static TOOL_ACTION mergePolygons
Merge multiple polygons into a single polygon.
Definition: pcb_actions.h:173
static TOOL_ACTION syncSelectionWithNets
Sets selection to specified items with connected nets, zooms to fit, if enabled.
Definition: pcb_actions.h:83
static TOOL_ACTION spacingIncrease
Definition: pcb_actions.h:211
static TOOL_ACTION layerInner30
Definition: pcb_actions.h:380
static TOOL_ACTION boardReannotate
Definition: pcb_actions.h:548
static TOOL_ACTION subtractPolygons
Subtract polygons from other polygons.
Definition: pcb_actions.h:175
static TOOL_ACTION layerTop
Definition: pcb_actions.h:350
static TOOL_ACTION selectItems
Select a list of items (specified as the event parameter)
Definition: pcb_actions.h:76
static TOOL_ACTION cycleRouterMode
Definition: pcb_actions.h:279
static TOOL_ACTION regenerateSelected
Definition: pcb_actions.h:287
static TOOL_ACTION convertToArc
Definition: pcb_actions.h:585
static TOOL_ACTION layerInner4
Definition: pcb_actions.h:354
static TOOL_ACTION repairFootprint
Definition: pcb_actions.h:550
static TOOL_ACTION flip
Flipping of selected objects.
Definition: pcb_actions.h:136
static TOOL_ACTION alignCenterX
Definition: pcb_actions.h:319
static TOOL_ACTION placeFootprint
Definition: pcb_actions.h:228
static TOOL_ACTION pointEditorAddCorner
Definition: pcb_actions.h:298
static TOOL_ACTION routeSingleTrack
Activation of the Push and Shove router.
Definition: pcb_actions.h:254
static TOOL_ACTION layerInner13
Definition: pcb_actions.h:363
static TOOL_ACTION layerInner21
Definition: pcb_actions.h:371
static TOOL_ACTION selectItemInteractively
Selection of reference points/items.
Definition: pcb_actions.h:331
static TOOL_ACTION removeFromGroup
Definition: pcb_actions.h:534
static TOOL_ACTION createArray
Tool for creating an array of objects.
Definition: pcb_actions.h:493
static TOOL_ACTION boardStatistics
Definition: pcb_actions.h:547
static TOOL_ACTION deselectNet
Remove all connections belonging to a single net from the active selection.
Definition: pcb_actions.h:99
static TOOL_ACTION editTeardrops
Definition: pcb_actions.h:424
static TOOL_ACTION layerNext
Definition: pcb_actions.h:382
static TOOL_ACTION selectionMenu
Run a selection menu to select from a list of items.
Definition: pcb_actions.h:86
static TOOL_ACTION showPythonConsole
Definition: pcb_actions.h:456
static TOOL_ACTION copyFootprint
Definition: pcb_actions.h:473
static TOOL_ACTION reselectItem
Definition: pcb_actions.h:73
static TOOL_ACTION extendLines
Extend selected lines to meet at a point.
Definition: pcb_actions.h:166
static TOOL_ACTION drawLine
Definition: pcb_actions.h:201
static TOOL_ACTION distributeVerticallyGaps
Definition: pcb_actions.h:324
static TOOL_ACTION placeStackup
Definition: pcb_actions.h:227
static TOOL_ACTION localRatsnestTool
Definition: pcb_actions.h:567
static TOOL_ACTION routerRouteSelected
Definition: pcb_actions.h:267
static TOOL_ACTION cleanupGraphics
Definition: pcb_actions.h:427
static TOOL_ACTION rotateCw
Rotation of selected objects.
Definition: pcb_actions.h:132
static TOOL_ACTION rotateCcw
Definition: pcb_actions.h:133
static TOOL_ACTION drawAlignedDimension
Definition: pcb_actions.h:216
static TOOL_ACTION genRevertEdit
Definition: pcb_actions.h:292
static TOOL_ACTION layerInner23
Definition: pcb_actions.h:373
static TOOL_ACTION distributeVerticallyCenters
Definition: pcb_actions.h:323
static TOOL_ACTION drawZone
Definition: pcb_actions.h:221
static TOOL_ACTION alignCenterY
Definition: pcb_actions.h:320
static TOOL_ACTION importSpecctraSession
Definition: pcb_actions.h:437
static TOOL_ACTION selectOnSchematic
Select symbols/pins on schematic corresponding to selected footprints/pads.
Definition: pcb_actions.h:114
static TOOL_ACTION lock
Definition: pcb_actions.h:528
static TOOL_ACTION layerInner28
Definition: pcb_actions.h:378
static const TOOL_EVENT SnappingModeChangedByKeyEvent
Hotkey feedback.
Definition: pcb_actions.h:600
static const TOOL_EVENT LayerPairPresetChangedByKeyEvent
Definition: pcb_actions.h:601
Build up the properties of a TOOL_ACTION in an incremental manner that is static-construction safe.
Definition: tool_action.h:102
Define a group that can be used to group actions (and their events) of similar operations.
Definition: tool_action.h:63
Represent a single user action.
Definition: tool_action.h:269
Generic, UI-independent tool event.
Definition: tool_event.h:167
PCB_LAYER_ID
A quick note on layer IDs:
Definition: layer_ids.h:60
@ In22_Cu
Definition: layer_ids.h:87
@ In11_Cu
Definition: layer_ids.h:76
@ In29_Cu
Definition: layer_ids.h:94
@ In30_Cu
Definition: layer_ids.h:95
@ In17_Cu
Definition: layer_ids.h:82
@ In9_Cu
Definition: layer_ids.h:74
@ In19_Cu
Definition: layer_ids.h:84
@ In7_Cu
Definition: layer_ids.h:72
@ In28_Cu
Definition: layer_ids.h:93
@ In26_Cu
Definition: layer_ids.h:91
@ B_Cu
Definition: layer_ids.h:65
@ In21_Cu
Definition: layer_ids.h:86
@ In23_Cu
Definition: layer_ids.h:88
@ In15_Cu
Definition: layer_ids.h:80
@ In2_Cu
Definition: layer_ids.h:67
@ In10_Cu
Definition: layer_ids.h:75
@ In4_Cu
Definition: layer_ids.h:69
@ In16_Cu
Definition: layer_ids.h:81
@ In24_Cu
Definition: layer_ids.h:89
@ In1_Cu
Definition: layer_ids.h:66
@ In13_Cu
Definition: layer_ids.h:78
@ In8_Cu
Definition: layer_ids.h:73
@ In14_Cu
Definition: layer_ids.h:79
@ In12_Cu
Definition: layer_ids.h:77
@ In27_Cu
Definition: layer_ids.h:92
@ In6_Cu
Definition: layer_ids.h:71
@ In5_Cu
Definition: layer_ids.h:70
@ In3_Cu
Definition: layer_ids.h:68
@ In20_Cu
Definition: layer_ids.h:85
@ F_Cu
Definition: layer_ids.h:64
@ In18_Cu
Definition: layer_ids.h:83
@ In25_Cu
Definition: layer_ids.h:90
@ RM_MarkObstacles
Ignore collisions, mark obstacles.
@ RM_Walkaround
Only walk around.
@ RM_Shove
Only shove.
@ PNS_MODE_ROUTE_SINGLE
Definition: pns_router.h:63
@ PNS_MODE_ROUTE_DIFF_PAIR
Definition: pns_router.h:64
@ PNS_MODE_TUNE_DIFF_PAIR
Definition: pns_router.h:66
@ PNS_MODE_TUNE_SINGLE
Definition: pns_router.h:65
@ PNS_MODE_TUNE_DIFF_PAIR_SKEW
Definition: pns_router.h:67
@ DM_ANY
Definition: pns_router.h:77
#define _(s)
Definition: pcb_actions.cpp:45
@ SIMILAR
Add a new zone with the same settings as an existing one.
@ CUTOUT
Make a cutout to an existing zone.
@ ADD
Add a new zone/keepout with fresh settings.
@ AS_GLOBAL
Global action (toolbar/main menu event, global shortcut)
Definition: tool_action.h:48
@ AS_CONTEXT
Action belongs to a particular tool (i.e. a part of a pop-up menu)
Definition: tool_action.h:46
@ AF_ACTIVATE
Action activates a tool.
Definition: tool_action.h:55
@ AF_NOTIFY
Action is a notification (it is by default passed to all tools)
Definition: tool_action.h:56
@ AF_NONE
Definition: tool_action.h:54
@ TA_ACTION
Definition: tool_event.h:111
@ TC_MESSAGE
Definition: tool_event.h:57
@ MD_ALT
Definition: tool_event.h:144
@ MD_CTRL
Definition: tool_event.h:143
@ MD_SHIFT
Definition: tool_event.h:142
VECTOR2< int32_t > VECTOR2I
Definition: vector2d.h:691