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
374
376 .Name( "common.Control.magneticSnapActiveLayer" )
377 .Scope( AS_GLOBAL )
378 .FriendlyName( _( "Snap to Objects on the Active Layer Only" ) )
379 .Tooltip( _( "Enables snapping to objects on the active layer only" ) ) );
380
382 .Name( "common.Control.magneticSnapAllLayers" )
383 .Scope( AS_GLOBAL )
384 .FriendlyName( _( "Snap to Objects on All Layers" ) )
385 .Tooltip( _( "Enables snapping to objects on all visible layers" ) ) );
386
388 .Name( "common.Control.magneticSnapToggle" )
389 .Scope( AS_GLOBAL )
390 .DefaultHotkey( MD_SHIFT + 'S' )
391 .FriendlyName( _( "Toggle Snapping Between Active and All Layers" ) )
392 .Tooltip( _( "Toggles between snapping on all visible layers and only the active area" ) ) );
393
395 .Name( "pcbnew.InteractiveDrawing.deleteLastPoint" )
396 .Scope( AS_CONTEXT )
397 .DefaultHotkey( WXK_BACK )
398 .FriendlyName( _( "Delete Last Point" ) )
399 .Tooltip( _( "Delete the last point added to the current item" ) )
400 .Icon( BITMAPS::undo ) );
401
403 .Name( "pcbnew.InteractiveDrawing.closeOutline" )
404 .Scope( AS_CONTEXT )
405 .FriendlyName( _( "Close Outline" ) )
406 .Tooltip( _( "Close the in progress outline" ) )
407 .Icon( BITMAPS::checked_ok ) );
408
409// DRC
410//
412 .Name( "pcbnew.DRCTool.runDRC" )
413 .Scope( AS_GLOBAL )
414 .FriendlyName( _( "Design Rules Checker" ) )
415 .Tooltip( _( "Show the design rules checker window" ) )
416 .Icon( BITMAPS::erc ) );
417
418
419// EDIT_TOOL
420//
422 .Name( "pcbnew.EditorControl.EditFpInFpEditor" )
423 .Scope( AS_GLOBAL )
424 .DefaultHotkey( MD_CTRL + 'E' )
425 .LegacyHotkeyName( "Edit with Footprint Editor" )
426 .FriendlyName( _( "Open in Footprint Editor" ) )
427 .Icon( BITMAPS::module_editor ) );
428
430 .Name( "pcbnew.EditorControl.EditLibFpInFpEditor" )
431 .Scope( AS_GLOBAL )
432 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
433 .FriendlyName( _( "Edit Library Footprint..." ) )
434 .Icon( BITMAPS::module_editor ) );
435
437 .Name( "pcbnew.InteractiveEdit.FindMove" )
438 .Scope( AS_GLOBAL )
439 .DefaultHotkey( 'T' )
440 .LegacyHotkeyName( "Get and Move Footprint" )
441 .FriendlyName( _( "Get and Move Footprint" ) )
442 .Tooltip( _( "Selects a footprint by reference designator and places it under the cursor for moving" ) )
443 .Icon( BITMAPS::move )
444 .Flags( AF_ACTIVATE ) );
445
447 .Name( "pcbnew.InteractiveMove.move" )
448 .Scope( AS_GLOBAL )
449 .DefaultHotkey( 'M' )
450 .LegacyHotkeyName( "Move Item" )
451 .FriendlyName( _( "Move" ) )
452 .Icon( BITMAPS::move )
453 .Flags( AF_ACTIVATE )
455
457 .Name( "pcbnew.InteractiveMove.moveIndividually" )
458 .Scope( AS_GLOBAL )
459 .DefaultHotkey( MD_CTRL + 'M' )
460 .FriendlyName( _( "Move Individually" ) )
461 .Tooltip( _( "Moves the selected items one-by-one" ) )
462 .Icon( BITMAPS::move )
463 .Flags( AF_ACTIVATE )
465
467 .Name( "pcbnew.InteractiveMove.moveWithReference" )
468 .Scope( AS_GLOBAL )
469 .FriendlyName( _( "Move with Reference" ) )
470 .Tooltip( _( "Moves the selected item(s) with a specified starting point" ) )
471 .Icon( BITMAPS::move )
472 .Flags( AF_ACTIVATE )
474
476 .Name( "pcbnew.InteractiveMove.copyWithReference" )
477 .Scope( AS_GLOBAL )
478 .FriendlyName( _( "Copy with Reference" ) )
479 .Tooltip( _( "Copy selected item(s) to clipboard with a specified starting point" ) )
480 .Icon( BITMAPS::copy )
481 .Flags( AF_ACTIVATE ) );
482
484 .Name( "pcbnew.InteractiveEdit.duplicateIncrementPads" )
485 .Scope( AS_GLOBAL )
486 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'D' )
487 .LegacyHotkeyName( "Duplicate Item and Increment" )
488 .FriendlyName( _( "Duplicate and Increment" ) )
489 .Tooltip( _( "Duplicates the selected item(s), incrementing pad numbers" ) )
490 .Icon( BITMAPS::duplicate ) );
491
493 .Name( "pcbnew.InteractiveEdit.moveExact" )
494 .Scope( AS_GLOBAL )
495 .DefaultHotkey( MD_SHIFT + 'M' )
496 .LegacyHotkeyName( "Move Item Exactly" )
497 .FriendlyName( _( "Move Exactly..." ) )
498 .Tooltip( _( "Moves the selected item(s) by an exact amount" ) )
499 .Icon( BITMAPS::move_exactly ) );
500
502 .Name( "pcbnew.InteractiveEdit.moveCorner" )
503 .Scope( AS_GLOBAL )
504 .FriendlyName( _( "Move Corner To..." ) )
505 .Tooltip( _( "Move the active corner to an exact location" ) )
506 .Icon( BITMAPS::move_exactly ) );
507
509 .Name( "pcbnew.InteractiveEdit.moveMidpoint" )
510 .Scope( AS_GLOBAL )
511 .FriendlyName( _( "Move Midpoint To..." ) )
512 .Tooltip( _( "Move the active midpoint to an exact location" ) )
513 .Icon( BITMAPS::move_exactly ) );
514
516 .Name( "pcbnew.InteractiveEdit.rotateCw" )
517 .Scope( AS_GLOBAL )
518 .DefaultHotkey( MD_SHIFT + 'R' )
519 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
520 .LegacyHotkeyName( "Rotate Item Clockwise (Modern Toolset only)" )
521 .FriendlyName( _( "Rotate Clockwise" ) )
522 .Icon( BITMAPS::rotate_cw )
523 .Flags( AF_NONE )
524 .Parameter( -1 ) );
525
527 .Name( "pcbnew.InteractiveEdit.rotateCcw" )
528 .Scope( AS_GLOBAL )
529 .DefaultHotkey( 'R' )
530 .LegacyHotkeyName( "Rotate Item" )
531 .FriendlyName( _( "Rotate Counterclockwise" ) )
532 .Icon( BITMAPS::rotate_ccw )
533 .Flags( AF_NONE )
534 .Parameter( 1 ) );
535
537 .Name( "pcbnew.InteractiveEdit.flip" )
538 .Scope( AS_GLOBAL )
539 .DefaultHotkey( 'F' )
540 .LegacyHotkeyName( "Flip Item" )
541 .FriendlyName( _( "Change Side / Flip" ) )
542 .Tooltip( _( "Flips selected item(s) to opposite side of board" ) )
543 .Icon( BITMAPS::swap_layer ) );
544
546 .Name( "pcbnew.InteractiveEdit.mirrorHoriontally" )
547 .Scope( AS_GLOBAL )
548 .FriendlyName( _( "Mirror Horizontally" ) )
549 .Tooltip( _( "Mirrors selected item(s) across the Y axis" ) )
550 .Icon( BITMAPS::mirror_h ) );
551
553 .Name( "pcbnew.InteractiveEdit.mirrorVertically" )
554 .Scope( AS_GLOBAL )
555 .FriendlyName( _( "Mirror Vertically" ) )
556 .Tooltip( _( "Mirrors selected item(s) across the X axis" ) )
557 .Icon( BITMAPS::mirror_v ) );
558
560 .Name( "pcbnew.InteractiveEdit.swap" )
561 .Scope( AS_GLOBAL )
562 .DefaultHotkey( MD_ALT + 'S' )
563 .FriendlyName( _( "Swap" ) )
564 .Tooltip( _( "Swap positions of selected items" ) )
565 .Icon( BITMAPS::swap ) );
566
568 .Name( "pcbnew.InteractiveEdit.packAndMoveFootprints" )
569 .Scope( AS_GLOBAL )
570 .DefaultHotkey( 'P' )
571 .FriendlyName( _( "Pack and Move Footprints" ) )
572 .Tooltip( _( "Sorts selected footprints by reference, packs based on size and initiates movement" ) )
573 .Icon( BITMAPS::pack_footprints ) );
574
576 .Name( "pcbnew.InteractiveEdit.skip" )
577 .Scope( AS_CONTEXT )
578 .DefaultHotkey( WXK_TAB )
579 .FriendlyName( _( "Skip" ) )
580 .Tooltip( _( "Skip to next item" ) )
581 .Icon( BITMAPS::right ) );
582
584 .Name( "pcbnew.InteractiveEdit.changeTrackWidth" )
585 .Scope( AS_GLOBAL )
586 .FriendlyName( _( "Change Track Width" ) )
587 .Tooltip( _( "Updates selected track & via sizes" ) ) );
588
590 .Name( "pcbnew.InteractiveEdit.filletTracks" )
591 .Scope( AS_GLOBAL )
592 .FriendlyName( _( "Fillet Tracks" ) )
593 .Tooltip( _( "Adds arcs tangent to the selected straight track segments" ) ) );
594
596 .Name( "pcbnew.InteractiveEdit.filletLines" )
597 .Scope( AS_GLOBAL )
598 .FriendlyName( _( "Fillet Lines..." ) )
599 .Tooltip( _( "Adds arcs tangent to the selected lines" ) )
600 .Icon( BITMAPS::fillet ) );
601
603 .Name( "pcbnew.InteractiveEdit.chamferLines" )
604 .Scope( AS_GLOBAL )
605 .FriendlyName( _( "Chamfer Lines..." ) )
606 .Tooltip( _( "Cut away corners between selected lines" ) )
607 .Icon( BITMAPS::chamfer ) );
608
610 .Name( "pcbnew.InteractiveEdit.dogboneCorners" )
611 .Scope( AS_GLOBAL )
612 .FriendlyName( _( "Dogbone Corners..." ) )
613 .Tooltip( _( "Add dogbone corners to selected lines" ) ) );
614
616 .Name( "pcbnew.InteractiveEdit.simplifyPolygons" )
617 .Scope( AS_GLOBAL )
618 .FriendlyName( _( "Simplify Polygons" ) )
619 .Tooltip( _( "Simplify polygon outlines, removing superfluous points" ) ) );
620
622 .Name( "pcbnew.InteractiveEdit.healShapes" )
623 .Scope( AS_GLOBAL )
624 .FriendlyName( _( "Heal Shapes" ) )
625 .Tooltip( _( "Connect shapes, possibly extending or cutting them, or adding extra geometry" ) )
626 .Icon( BITMAPS::heal_shapes ) );
627
629 .Name( "pcbnew.InteractiveEdit.extendLines" )
630 .Scope( AS_GLOBAL )
631 .FriendlyName( _( "Extend Lines to Meet" ) )
632 .Tooltip( _( "Extend lines to meet each other" ) ) );
633
635 .Name( "pcbnew.InteractiveEdit.mergePolygons" )
636 .Scope( AS_GLOBAL )
637 .FriendlyName( _( "Merge Polygons" ) )
638 .Tooltip( _( "Merge selected polygons into a single polygon" ) )
639 .Icon( BITMAPS::merge_polygons ) );
640
642 .Name( "pcbnew.InteractiveEdit.subtractPolygons" )
643 .Scope( AS_GLOBAL )
644 .FriendlyName( _( "Subtract Polygons" ) )
645 .Tooltip( _( "Subtract selected polygons from the last one selected" ) )
647
649 .Name( "pcbnew.InteractiveEdit.intersectPolygons" )
650 .Scope( AS_GLOBAL )
651 .FriendlyName( _( "Intersect Polygons" ) )
652 .Tooltip( _( "Create the intersection of the selected polygons" ) )
654
656 .Name( "pcbnew.InteractiveEdit.deleteFull" )
657 .Scope( AS_GLOBAL )
658 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DELETE ) )
659 .LegacyHotkeyName( "Delete Full Track" )
660 .FriendlyName( _( "Delete Full Track" ) )
661 .Tooltip( _( "Deletes selected item(s) and copper connections" ) )
663 .Flags( AF_NONE )
664 .Parameter( PCB_ACTIONS::REMOVE_FLAGS::ALT ) );
665
667 .Name( "pcbnew.InteractiveEdit.properties" )
668 .Scope( AS_GLOBAL )
669 .DefaultHotkey( 'E' )
670 .LegacyHotkeyName( "Edit Item" )
671 .FriendlyName( _( "Properties..." ) )
672 .Icon( BITMAPS::edit ) );
673
674// ARRAY
675//
677 .Name( "pcbnew.Array.createArray" )
678 .Scope( AS_GLOBAL )
679 .DefaultHotkey( MD_CTRL + 'T' )
680 .LegacyHotkeyName( "Create Array" )
681 .FriendlyName( _( "Create Array..." ) )
682 .Icon( BITMAPS::array )
683 .Flags( AF_ACTIVATE ) );
684
685// FOOTPRINT_EDITOR_CONTROL
686//
688 .Name( "pcbnew.ModuleEditor.newFootprint" )
689 .Scope( AS_GLOBAL )
690 .DefaultHotkey( MD_CTRL + 'N' )
691 .LegacyHotkeyName( "New" )
692 .FriendlyName( _( "New Footprint" ) )
693 .Tooltip( _( "Create a new, empty footprint" ) )
694 .Icon( BITMAPS::new_footprint ) );
695
697 .Name( "pcbnew.ModuleEditor.createFootprint" )
698 .Scope( AS_GLOBAL )
699 .FriendlyName( _( "Create Footprint..." ) )
700 .Tooltip( _( "Create a new footprint using the Footprint Wizard" ) )
701 .Icon( BITMAPS::module_wizard ) );
702
704 .Name( "pcbnew.ModuleEditor.editFootprint" )
705 .Scope( AS_GLOBAL )
706 .FriendlyName( _( "Edit Footprint" ) )
707 .Tooltip( _( "Show selected footprint on editor canvas" ) )
708 .Icon( BITMAPS::edit ) );
709
711 .Name( "pcbnew.ModuleEditor.duplicateFootprint" )
712 .Scope( AS_GLOBAL )
713 .FriendlyName( _( "Duplicate Footprint" ) )
714 .Icon( BITMAPS::duplicate ) );
715
717 .Name( "pcbnew.ModuleEditor.renameFootprint" )
718 .Scope( AS_GLOBAL )
719 .FriendlyName( _( "Rename Footprint..." ) )
720 .Icon( BITMAPS::edit ) );
721
723 .Name( "pcbnew.ModuleEditor.deleteFootprint" )
724 .Scope( AS_GLOBAL )
725 .FriendlyName( _( "Delete Footprint from Library" ) )
726 .Icon( BITMAPS::trash ) );
727
729 .Name( "pcbnew.ModuleEditor.cutFootprint" )
730 .Scope( AS_GLOBAL )
731 .FriendlyName( _( "Cut Footprint" ) )
732 .Icon( BITMAPS::cut ) );
733
735 .Name( "pcbnew.ModuleEditor.copyFootprint" )
736 .Scope( AS_GLOBAL )
737 .FriendlyName( _( "Copy Footprint" ) )
738 .Icon( BITMAPS::copy ) );
739
741 .Name( "pcbnew.ModuleEditor.pasteFootprint" )
742 .Scope( AS_GLOBAL )
743 .FriendlyName( _( "Paste Footprint" ) )
744 .Icon( BITMAPS::paste ) );
745
747 .Name( "pcbnew.ModuleEditor.importFootprint" )
748 .Scope( AS_GLOBAL )
749 .FriendlyName( _( "Import Footprint..." ) )
750 .Tooltip( _( "Import footprint from file" ) )
751 .Icon( BITMAPS::import_module ) );
752
754 .Name( "pcbnew.ModuleEditor.exportFootprint" )
755 .Scope( AS_GLOBAL )
756 .FriendlyName( _( "Export Current Footprint..." ) )
757 .Tooltip( _( "Export edited footprint to file" ) )
758 .Icon( BITMAPS::export_module ) );
759
761 .Name( "pcbnew.ModuleEditor.footprintProperties" )
762 .Scope( AS_GLOBAL )
763 .FriendlyName( _( "Footprint Properties..." ) )
764 .Icon( BITMAPS::module_options ) );
765
767 .Name( "pcbnew.ModuleEditor.checkFootprint" )
768 .Scope( AS_GLOBAL )
769 .FriendlyName( _( "Footprint Checker" ) )
770 .Tooltip( _( "Show the footprint checker window" ) )
771 .Icon( BITMAPS::erc ) );
772
773// GLOBAL_EDIT_TOOL
774//
776 .Name( "pcbnew.GlobalEdit.updateFootprint" )
777 .Scope( AS_GLOBAL )
778 .FriendlyName( _( "Update Footprint..." ) )
779 .Tooltip( _( "Update footprint to include any changes from the library" ) )
780 .Icon( BITMAPS::refresh ) );
781
783 .Name( "pcbnew.GlobalEdit.updateFootprints" )
784 .Scope( AS_GLOBAL )
785 .FriendlyName( _( "Update Footprints from Library..." ) )
786 .Tooltip( _( "Update footprints to include any changes from the library" ) )
787 .Icon( BITMAPS::refresh ) );
788
790 .Name( "pcbnew.GlobalEdit.removeUnusedPads" )
791 .Scope( AS_GLOBAL )
792 .FriendlyName( _( "Remove Unused Pads..." ) )
793 .Tooltip( _( "Remove or restore the unconnected inner layers on through hole pads and vias" ) )
794 .Icon( BITMAPS::pads_remove ) );
795
797 .Name( "pcbnew.GlobalEdit.changeFootprint" )
798 .Scope( AS_GLOBAL )
799 .FriendlyName( _( "Change Footprint..." ) )
800 .Tooltip( _( "Assign a different footprint from the library" ) )
801 .Icon( BITMAPS::exchange ) );
802
804 .Name( "pcbnew.GlobalEdit.changeFootprints" )
805 .Scope( AS_GLOBAL )
806 .FriendlyName( _( "Change Footprints..." ) )
807 .Tooltip( _( "Assign different footprints from the library" ) )
808 .Icon( BITMAPS::exchange ) );
809
811 .Name( "pcbnew.GlobalEdit.swapLayers" )
812 .Scope( AS_GLOBAL )
813 .FriendlyName( _( "Swap Layers..." ) )
814 .Tooltip( _( "Move tracks or drawings from one layer to another" ) )
815 .Icon( BITMAPS::swap_layer ) );
816
818 .Name( "pcbnew.GlobalEdit.editTracksAndVias" )
819 .Scope( AS_GLOBAL )
820 .FriendlyName( _( "Edit Track & Via Properties..." ) )
821 .Tooltip( _( "Edit track and via properties globally across board" ) )
822 .Icon( BITMAPS::width_track_via ) );
823
825 .Name( "pcbnew.GlobalEdit.editTextAndGraphics" )
826 .Scope( AS_GLOBAL )
827 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
828 .Tooltip( _( "Edit Text and graphics properties globally across board" ) )
829 .Icon( BITMAPS::text ) );
830
832 .Name( "pcbnew.GlobalEdit.editTeardrops" )
833 .Scope( AS_GLOBAL )
834 .FriendlyName( _( "Edit Teardrops..." ) )
835 .Tooltip( _( "Add, remove or edit teardrops globally across board" ) )
836 .Icon( BITMAPS::via ) );
837
839 .Name( "pcbnew.GlobalEdit.globalDeletions" )
840 .Scope( AS_GLOBAL )
841 .FriendlyName( _( "Global Deletions..." ) )
842 .Tooltip( _( "Delete tracks, footprints and graphic items from board" ) )
844
846 .Name( "pcbnew.GlobalEdit.cleanupTracksAndVias" )
847 .Scope( AS_GLOBAL )
848 .FriendlyName( _( "Cleanup Tracks & Vias..." ) )
849 .Tooltip( _( "Cleanup redundant items, shorting items, etc." ) )
851
853 .Name( "pcbnew.GlobalEdit.cleanupGraphics" )
854 .Scope( AS_GLOBAL )
855 .FriendlyName( _( "Cleanup Graphics..." ) )
856 .Tooltip( _( "Cleanup redundant items, etc." ) )
857 .Icon( BITMAPS::cleanup_graphics ) );
858
859// MICROWAVE_TOOL
860//
862 .Name( "pcbnew.MicrowaveTool.createGap" )
863 .Scope( AS_GLOBAL )
864 .FriendlyName( _( "Draw Microwave Gaps" ) )
865 .Tooltip( _( "Create gap of specified length for microwave applications" ) )
866 .Icon( BITMAPS::mw_add_gap )
867 .Flags( AF_ACTIVATE )
868 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::GAP ) );
869
871 .Name( "pcbnew.MicrowaveTool.createStub" )
872 .Scope( AS_GLOBAL )
873 .FriendlyName( _( "Draw Microwave Stubs" ) )
874 .Tooltip( _( "Create stub of specified length for microwave applications" ) )
875 .Icon( BITMAPS::mw_add_stub )
876 .Flags( AF_ACTIVATE )
877 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB ) );
878
880 .Name( "pcbnew.MicrowaveTool.createStubArc" )
881 .Scope( AS_GLOBAL )
882 .FriendlyName( _( "Draw Microwave Arc Stubs" ) )
883 .Tooltip( _( "Create stub (arc) of specified size for microwave applications" ) )
885 .Flags( AF_ACTIVATE )
887
889 .Name( "pcbnew.MicrowaveTool.createFunctionShape" )
890 .Scope( AS_GLOBAL )
891 .FriendlyName( _( "Draw Microwave Polygonal Shapes" ) )
892 .Tooltip( _( "Create a microwave polygonal shape from a list of vertices" ) )
893 .Icon( BITMAPS::mw_add_shape )
894 .Flags( AF_ACTIVATE )
896
898 .Name( "pcbnew.MicrowaveTool.createLine" )
899 .Scope( AS_GLOBAL )
900 .FriendlyName( _( "Draw Microwave Lines" ) )
901 .Tooltip( _( "Create line of specified length for microwave applications" ) )
902 .Icon( BITMAPS::mw_add_line )
903 .Flags( AF_ACTIVATE ) );
904
905
906// PAD_TOOL
907//
909 .Name( "pcbnew.PadTool.CopyPadSettings" )
910 .Scope( AS_GLOBAL )
911 .FriendlyName( _( "Copy Pad Properties to Default" ) )
912 .Tooltip( _( "Copy current pad's properties" ) )
914
916 .Name( "pcbnew.PadTool.ApplyPadSettings" )
917 .Scope( AS_GLOBAL )
918 .FriendlyName( _( "Paste Default Pad Properties to Selected" ) )
919 .Tooltip( _( "Replace the current pad's properties with those copied earlier" ) )
921
923 .Name( "pcbnew.PadTool.PushPadSettings" )
924 .Scope( AS_GLOBAL )
925 .FriendlyName( _( "Push Pad Properties to Other Pads..." ) )
926 .Tooltip( _( "Copy the current pad's properties to other pads" ) )
928
930 .Name( "pcbnew.PadTool.enumeratePads" )
931 .Scope( AS_GLOBAL )
932 .FriendlyName( _( "Renumber Pads..." ) )
933 .Tooltip( _( "Renumber pads by clicking on them in the desired order" ) )
935 .Flags( AF_ACTIVATE ) );
936
938 .Name( "pcbnew.PadTool.placePad" )
939 .Scope( AS_GLOBAL )
940 .FriendlyName( _( "Add Pad" ) )
941 .Tooltip( _( "Add a pad" ) )
942 .Icon( BITMAPS::pad )
943 .Flags( AF_ACTIVATE ) );
944
946 .Name( "pcbnew.PadTool.explodePad" )
947 .Scope( AS_GLOBAL )
948 .DefaultHotkey( MD_CTRL + 'E' )
949 .FriendlyName( _( "Edit Pad as Graphic Shapes" ) )
950 .Tooltip( _( "Ungroups a custom-shaped pad for editing as individual graphic shapes" ) )
952
954 .Name( "pcbnew.PadTool.recombinePad" )
955 .Scope( AS_GLOBAL )
956 .DefaultHotkey( MD_CTRL + 'E' )
957 .FriendlyName( _( "Finish Pad Edit" ) )
958 .Tooltip( _( "Regroups all touching graphic shapes into the edited pad" ) )
960
962 .Name( "pcbnew.PadTool.defaultPadProperties" )
963 .Scope( AS_GLOBAL )
964 .FriendlyName( _( "Default Pad Properties..." ) )
965 .Tooltip( _( "Edit the pad properties used when creating new pads" ) )
966 .Icon( BITMAPS::options_pad ) );
967
968
969// SCRIPTING TOOL
970//
971
973 .Name( "pcbnew.ScriptingTool.pluginsShowFolder" )
974 .Scope( AS_GLOBAL )
975#ifdef __WXMAC__
976 .FriendlyName( _( "Reveal Plugin Folder in Finder" ) )
977 .Tooltip( _( "Reveals the plugins folder in a Finder window" ) )
978#else
979 .FriendlyName( _( "Open Plugin Directory" ) )
980 .Tooltip( _( "Opens the directory in the default system file manager" ) )
981#endif
982 .Icon( BITMAPS::directory_open ) );
983
984// BOARD_EDITOR_CONTROL
985//
987 .Name( "pcbnew.EditorControl.boardSetup" )
988 .Scope( AS_GLOBAL )
989 .FriendlyName( _( "Board Setup..." ) )
990 .Tooltip( _( "Edit board setup including layers, design rules and various defaults" ) )
991 .Icon( BITMAPS::options_board ) );
992
994 .Name( "pcbnew.EditorControl.importNetlist" )
995 .Scope( AS_GLOBAL )
996 .FriendlyName( _( "Import Netlist..." ) )
997 .Tooltip( _( "Read netlist and update board connectivity" ) )
998 .Icon( BITMAPS::netlist ) );
999
1001 .Name( "pcbnew.EditorControl.importSpecctraSession" )
1002 .Scope( AS_GLOBAL )
1003 .FriendlyName( _( "Import Specctra Session..." ) )
1004 .Tooltip( _( "Import routed Specctra session (*.ses) file" ) )
1005 .Icon( BITMAPS::import ) );
1006
1008 .Name( "pcbnew.EditorControl.exportSpecctraDSN" )
1009 .Scope( AS_GLOBAL )
1010 .FriendlyName( _( "Export Specctra DSN..." ) )
1011 .Tooltip( _( "Export Specctra DSN routing info" ) )
1012 .Icon( BITMAPS::export_dsn ) );
1013
1015 .Name( "pcbnew.EditorControl.generateGerbers" )
1016 .Scope( AS_GLOBAL )
1017 .FriendlyName( _( "Gerbers (.gbr)..." ) )
1018 .Tooltip( _( "Generate Gerbers for fabrication" ) )
1019 .Icon( BITMAPS::post_gerber ) );
1020
1022 .Name( "pcbnew.EditorControl.generateDrillFiles" )
1023 .Scope( AS_GLOBAL )
1024 .FriendlyName( _( "Drill Files (.drl)..." ) )
1025 .Tooltip( _( "Generate Excellon drill file(s)" ) )
1026 .Icon( BITMAPS::post_drill ) );
1027
1029 .Name( "pcbnew.EditorControl.generatePosFile" )
1030 .Scope( AS_GLOBAL )
1031 .FriendlyName( _( "Component Placement (.pos, .gbr)..." ) )
1032 .Tooltip( _( "Generate component placement file(s) for pick and place" ) )
1033 .Icon( BITMAPS::post_compo ) );
1034
1036 .Name( "pcbnew.EditorControl.generateReportFile" )
1037 .Scope( AS_GLOBAL )
1038 .FriendlyName( _( "Footprint Report (.rpt)..." ) )
1039 .Tooltip( _( "Create report of all footprints from current board" ) )
1040 .Icon( BITMAPS::post_rpt ) );
1041
1043 .Name( "pcbnew.EditorControl.generateIPC2581File" )
1044 .Scope( AS_GLOBAL )
1045 .FriendlyName( _( "IPC-2581 File (.xml)..." ) )
1046 .Tooltip( _( "Generate an IPC-2581 file" ) )
1047 .Icon( BITMAPS::post_xml ) );
1048
1050 .Name( "pcbnew.EditorControl.generateODBPPFile" )
1051 .Scope( AS_GLOBAL )
1052 .FriendlyName( _( "ODB++ Output File..." ) )
1053 .Tooltip( _( "Generate ODB++ output files" ) )
1054 .Icon( BITMAPS::post_odb ) );
1055
1057 .Name( "pcbnew.EditorControl.generateD356File" )
1058 .Scope( AS_GLOBAL )
1059 .FriendlyName( _( "IPC-D-356 Netlist File..." ) )
1060 .Tooltip( _( "Generate IPC-D-356 netlist file" ) )
1061 .Icon( BITMAPS::post_d356 ) );
1062
1064 .Name( "pcbnew.EditorControl.generateBOM" )
1065 .Scope( AS_GLOBAL )
1066 .FriendlyName( _( "Bill of Materials..." ) )
1067 .Tooltip( _( "Create bill of materials from board" ) )
1068 .Icon( BITMAPS::post_bom ) );
1069
1070// Track & via size control
1072 .Name( "pcbnew.EditorControl.trackWidthInc" )
1073 .Scope( AS_GLOBAL )
1074 .DefaultHotkey( 'W' )
1075 .LegacyHotkeyName( "Switch Track Width To Next" )
1076 .FriendlyName( _( "Switch Track Width to Next" ) )
1077 .Tooltip( _( "Change track width to next pre-defined size" ) ) );
1078
1080 .Name( "pcbnew.EditorControl.trackWidthDec" )
1081 .Scope( AS_GLOBAL )
1082 .DefaultHotkey( MD_SHIFT + 'W' )
1083 .LegacyHotkeyName( "Switch Track Width To Previous" )
1084 .FriendlyName( _( "Switch Track Width to Previous" ) )
1085 .Tooltip( _( "Change track width to previous pre-defined size" ) ) );
1086
1088 .Name( "pcbnew.EditorControl.viaSizeInc" )
1089 .Scope( AS_GLOBAL )
1090 .DefaultHotkey( '\'' )
1091 .LegacyHotkeyName( "Increase Via Size" )
1092 .FriendlyName( _( "Increase Via Size" ) )
1093 .Tooltip( _( "Change via size to next pre-defined size" ) ) );
1094
1096 .Name( "pcbnew.EditorControl.viaSizeDec" )
1097 .Scope( AS_GLOBAL )
1098 .DefaultHotkey( '\\' )
1099 .LegacyHotkeyName( "Decrease Via Size" )
1100 .FriendlyName( _( "Decrease Via Size" ) )
1101 .Tooltip( _( "Change via size to previous pre-defined size" ) ) );
1102
1104 .Name( "pcbnew.EditorControl.trackViaSizeChanged" )
1105 .Scope( AS_GLOBAL )
1106 .Flags( AF_NOTIFY ) );
1107
1109 .Name( "pcbnew.EditorControl.assignNetclass" )
1110 .Scope( AS_GLOBAL )
1111 .FriendlyName( _( "Assign Netclass..." ) )
1112 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
1113 .Icon( BITMAPS::netlist ) );
1114
1116 .Name( "pcbnew.EditorControl.zoneMerge" )
1117 .Scope( AS_GLOBAL )
1118 .FriendlyName( _( "Merge Zones" ) ) );
1119
1121 .Name( "pcbnew.EditorControl.zoneDuplicate" )
1122 .Scope( AS_GLOBAL )
1123 .FriendlyName( _( "Duplicate Zone onto Layer..." ) )
1124 .Icon( BITMAPS::zone_duplicate ) );
1125
1127 .Name( "pcbnew.EditorControl.placeFootprint" )
1128 .Scope( AS_GLOBAL )
1129 .DefaultHotkey( 'A' )
1130 .LegacyHotkeyName( "Add Footprint" )
1131 .FriendlyName( _( "Place Footprints" ) )
1132 .Icon( BITMAPS::module )
1133 .Flags( AF_ACTIVATE )
1134 .Parameter<FOOTPRINT*>( nullptr ) );
1135
1137 .Name( "pcbnew.EditorControl.drillOrigin" )
1138 .Scope( AS_GLOBAL )
1139 .FriendlyName( _( "Drill/Place File Origin" ) )
1140 .Tooltip( _( "Place origin point for drill files and component placement files" ) )
1141 .Icon( BITMAPS::set_origin )
1142 .Flags( AF_ACTIVATE ) );
1143
1145 .Name( "pcbnew.EditorControl.drillResetOrigin" )
1146 .Scope( AS_GLOBAL )
1147 .LegacyHotkeyName( "Reset Drill Origin" )
1148 .FriendlyName( _( "Reset Drill Origin" ) ) );
1149
1151 .Name( "pcbnew.EditorControl.toggleLock" )
1152 .Scope( AS_GLOBAL )
1153 .DefaultHotkey( 'L' )
1154 .LegacyHotkeyName( "Lock/Unlock Footprint" )
1155 .FriendlyName( _( "Toggle Lock" ) )
1156 .Tooltip( _( "Lock or unlock selected items" ) )
1157 .Icon( BITMAPS::lock_unlock ) );
1158
1160 .Name( "pcbnew.EditorControl.toggle45" )
1161 .Scope( AS_GLOBAL )
1162 .DefaultHotkey( MD_SHIFT + ' ' )
1163 .FriendlyName( _( "Constrain to H, V, 45" ) )
1164 .Tooltip( _( "Limit actions to horizontal, vertical, or 45 degrees from the starting point" ) )
1165 .Icon( BITMAPS::hv45mode ) );
1166
1168 .Name( "pcbnew.EditorControl.lock" )
1169 .Scope( AS_GLOBAL )
1170 .FriendlyName( _( "Lock" ) )
1171 .Tooltip( _( "Prevent items from being moved and/or resized on the canvas" ) )
1172 .Icon( BITMAPS::locked ) );
1173
1175 .Name( "pcbnew.EditorControl.unlock" )
1176 .Scope( AS_GLOBAL )
1177 .FriendlyName( _( "Unlock" ) )
1178 .Tooltip( _( "Allow items to be moved and/or resized on the canvas" ) )
1179 .Icon( BITMAPS::unlocked ) );
1180
1182 .Name( "pcbnew.EditorControl.group" )
1183 .Scope( AS_GLOBAL )
1184 .FriendlyName( _( "Group Items" ) )
1185 .Tooltip( _( "Group the selected items so that they are treated as a single item" ) )
1186 .Icon( BITMAPS::group ) );
1187
1189 .Name( "pcbnew.EditorControl.ungroup" )
1190 .Scope( AS_GLOBAL )
1191 .FriendlyName( _( "Ungroup Items" ) )
1192 .Tooltip( _( "Ungroup any selected groups" ) )
1193 .Icon( BITMAPS::group_ungroup ) );
1194
1196 .Name( "pcbnew.EditorControl.removeFromGroup" )
1197 .Scope( AS_GLOBAL )
1198 .FriendlyName( _( "Remove Items" ) )
1199 .Tooltip( _( "Remove items from group" ) )
1200 .Icon( BITMAPS::group_remove ) );
1201
1203 .Name( "pcbnew.EditorControl.groupEnter" )
1204 .Scope( AS_GLOBAL )
1205 .FriendlyName( _( "Enter Group" ) )
1206 .Tooltip( _( "Enter the group to edit items" ) )
1207 .Icon( BITMAPS::group_enter ) );
1208
1210 .Name( "pcbnew.EditorControl.groupLeave" )
1211 .Scope( AS_GLOBAL )
1212 .FriendlyName( _( "Leave Group" ) )
1213 .Tooltip( _( "Leave the current group" ) )
1214 .Icon( BITMAPS::group_leave ) );
1215
1217 .Name( "pcbnew.EditorControl.appendBoard" )
1218 .Scope( AS_GLOBAL )
1219 .FriendlyName( _( "Append Board..." ) )
1220 .Tooltip( _( "Open another board and append its contents to this board" ) )
1221 .Icon( BITMAPS::add_board ) );
1222
1224 .Name( "pcbnew.EditorControl.highlightNet" )
1225 .Scope( AS_GLOBAL )
1226 .DefaultHotkey( '`' )
1227 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1228 .LegacyHotkeyName( "Toggle Highlight of Selected Net (Modern Toolset only)" )
1229 .FriendlyName( _( "Highlight Net" ) )
1230 .Tooltip( _( "Highlight net under cursor" ) )
1231 .Icon( BITMAPS::net_highlight )
1232 .Parameter<int>( 0 ) );
1233
1235 .Name( "pcbnew.EditorControl.toggleLastNetHighlight" )
1236 .Scope( AS_GLOBAL )
1237 .FriendlyName( _( "Toggle Last Net Highlight" ) )
1238 .Tooltip( _( "Toggle between last two highlighted nets" ) )
1239 .Parameter<int>( 0 ) );
1240
1242 .Name( "pcbnew.EditorControl.clearHighlight" )
1243 .Scope( AS_GLOBAL )
1244 .DefaultHotkey( '~' )
1245 .FriendlyName( _( "Clear Net Highlighting" ) ) );
1246
1248 .Name( "pcbnew.EditorControl.toggleNetHighlight" )
1249 .Scope( AS_GLOBAL )
1250 .DefaultHotkey( MD_ALT + '`' )
1251 .FriendlyName( _( "Toggle Net Highlight" ) )
1252 .Icon( BITMAPS::net_highlight )
1253 .Parameter<int>( 0 ) );
1254
1256 .Name( "pcbnew.EditorControl.highlightNetSelection" )
1257 .Scope( AS_GLOBAL )
1258 .FriendlyName( _( "Highlight Net" ) )
1259 .Tooltip( _( "Highlight all copper items on the selected net(s)" ) )
1260 .Icon( BITMAPS::net_highlight )
1261 .Parameter<int>( 0 ) );
1262
1264 .Name( "pcbnew.EditorControl.highlightItem" )
1265 .Scope( AS_GLOBAL ) );
1266
1268 .Name( "pcbnew.EditorControl.hideNet" )
1269 .Scope( AS_GLOBAL )
1270 .FriendlyName( _( "Hide Net in Ratsnest" ) )
1271 .Tooltip( _( "Hide the selected net in the ratsnest of unconnected net lines/arcs" ) )
1272 .Icon( BITMAPS::hide_ratsnest )
1273 .Parameter<int>( 0 ) ); // Default to hiding selected net
1274
1276 .Name( "pcbnew.EditorControl.showNet" )
1277 .Scope( AS_GLOBAL )
1278 .FriendlyName( _( "Show Net in Ratsnest" ) )
1279 .Tooltip( _( "Show the selected net in the ratsnest of unconnected net lines/arcs" ) )
1280 .Icon( BITMAPS::show_ratsnest )
1281 .Parameter<int>( 0 ) ); // Default to showing selected net
1282
1284 .Name( "pcbnew.EditorControl.showEeschema" )
1285 .Scope( AS_GLOBAL )
1286 .FriendlyName( _( "Switch to Schematic Editor" ) )
1287 .Tooltip( _( "Open schematic in schematic editor" ) )
1288 .Icon( BITMAPS::icon_eeschema_24 ) );
1289
1290
1291// PCB_CONTROL
1292//
1293
1295 .Name( "pcbnew.Control.localRatsnestTool" )
1296 .Scope( AS_GLOBAL )
1297 .FriendlyName( _( "Local Ratsnest" ) )
1298 .Tooltip( _( "Toggle ratsnest display of selected item(s)" ) )
1299 .Icon( BITMAPS::tool_ratsnest )
1300 .Flags( AF_ACTIVATE ) );
1301
1303 .Name( "pcbnew.Control.hideDynamicRatsnest" )
1304 .Scope( AS_GLOBAL ) );
1305
1307 .Name( "pcbnew.Control.updateLocalRatsnest" )
1308 .Scope( AS_GLOBAL )
1309 .Parameter( VECTOR2I() ) );
1310
1312 .Name( "pcbnew.Control.showPythonConsole" )
1313 .Scope( AS_GLOBAL )
1314 .FriendlyName( _( "Scripting Console" ) )
1315 .Tooltip( _( "Show the Python scripting console" ) )
1316 .Icon( BITMAPS::py_script ) );
1317
1319 .Name( "pcbnew.Control.showLayersManager" )
1320 .Scope( AS_GLOBAL )
1321 .FriendlyName( _( "Appearance" ) )
1322 .Tooltip( _( "Show/hide the appearance manager" ) )
1323 .Icon( BITMAPS::layers_manager ) );
1324
1326 .Name( "pcbnew.Control.showNetInspector" )
1327 .Scope( AS_GLOBAL )
1328 .FriendlyName( _( "Net Inspector" ) )
1329 .Tooltip( _( "Show/hide the net inspector" ) )
1330 .Icon( BITMAPS::tools ) );
1331
1332TOOL_ACTION PCB_ACTIONS::zonesManager( "pcbnew.Control.zonesManager",
1333 AS_GLOBAL, 0, "",
1334 _( "Zone Manager" ),
1335 _( "Show the zone manager dialog" ),
1337
1339 .Name( "pcbnew.Control.flipBoard" )
1340 .Scope( AS_GLOBAL )
1341 .FriendlyName( _( "Flip Board View" ) )
1342 .Tooltip( _( "View board from the opposite side" ) )
1343 .Icon( BITMAPS::flip_board ) );
1344
1345// Display modes
1347 .Name( "pcbnew.Control.showRatsnest" )
1348 .Scope( AS_GLOBAL )
1349 .FriendlyName( _( "Show Ratsnest" ) )
1350 .Tooltip( _( "Show lines/arcs representing missing connections on the board" ) )
1351 .Icon( BITMAPS::general_ratsnest ) );
1352
1354 .Name( "pcbnew.Control.ratsnestLineMode" )
1355 .Scope( AS_GLOBAL )
1356 .FriendlyName( _( "Curved Ratsnest Lines" ) )
1357 .Tooltip( _( "Show ratsnest with curved lines" ) )
1358 .Icon( BITMAPS::curved_ratsnest ) );
1359
1361 .Name( "pcbnew.Control.ratsnestModeCycle" )
1362 .Scope( AS_GLOBAL )
1363 .FriendlyName( _( "Ratsnest Mode (3-state)" ) )
1364 .Tooltip( _( "Cycle between showing ratsnests for all layers, just visible layers, and none" ) ) );
1365
1367 .Name( "pcbnew.Control.netColorMode" )
1368 .Scope( AS_GLOBAL )
1369 .FriendlyName( _( "Net Color Mode (3-state)" ) )
1370 .Tooltip( _( "Cycle between using net and netclass colors for all nets, just ratsnests, and none" ) ) );
1371
1373 .Name( "pcbnew.Control.trackDisplayMode" )
1374 .Scope( AS_GLOBAL )
1375 .DefaultHotkey( 'K' )
1376 .LegacyHotkeyName( "Track Display Mode" )
1377 .FriendlyName( _( "Sketch Tracks" ) )
1378 .Tooltip( _( "Show tracks in outline mode" ) )
1379 .Icon( BITMAPS::showtrack ) );
1380
1382 .Name( "pcbnew.Control.padDisplayMode" )
1383 .Scope( AS_GLOBAL )
1384 .FriendlyName( _( "Sketch Pads" ) )
1385 .Tooltip( _( "Show pads in outline mode" ) )
1386 .Icon( BITMAPS::pad_sketch ) );
1387
1389 .Name( "pcbnew.Control.viaDisplayMode" )
1390 .Scope( AS_GLOBAL )
1391 .FriendlyName( _( "Sketch Vias" ) )
1392 .Tooltip( _( "Show vias in outline mode" ) )
1393 .Icon( BITMAPS::via_sketch ) );
1394
1396 .Name( "pcbnew.Control.graphicOutlines" )
1397 .Scope( AS_GLOBAL )
1398 .FriendlyName( _( "Sketch Graphic Items" ) )
1399 .Tooltip( _( "Show graphic items in outline mode" ) )
1400 .Icon( BITMAPS::show_mod_edge ) );
1401
1403 .Name( "pcbnew.Control.textOutlines" )
1404 .Scope( AS_GLOBAL )
1405 .FriendlyName( _( "Sketch Text Items" ) )
1406 .Tooltip( _( "Show footprint texts in line mode" ) )
1407 .Icon( BITMAPS::text_sketch ) );
1408
1410 .Name( "pcbnew.Control.showPadNumbers" )
1411 .Scope( AS_GLOBAL )
1412 .FriendlyName( _( "Show Pad Numbers" ) )
1413 .Icon( BITMAPS::pad_number ) );
1414
1416 .Name( "pcbnew.Control.zoneDisplayEnable" )
1417 .Scope( AS_GLOBAL )
1418 .FriendlyName( _( "Draw Zone Fills" ) )
1419 .Tooltip( _( "Show filled areas of zones" ) )
1420 .Icon( BITMAPS::show_zone ) );
1421
1423 .Name( "pcbnew.Control.zoneDisplayDisable" )
1424 .Scope( AS_GLOBAL )
1425 .FriendlyName( _( "Draw Zone Outlines" ) )
1426 .Tooltip( _( "Show only zone boundaries" ) )
1427 .Icon( BITMAPS::show_zone_disable ) );
1428
1430 .Name( "pcbnew.Control.zoneDisplayOutlines" )
1431 .Scope( AS_GLOBAL )
1432 .FriendlyName( _( "Draw Zone Fill Fracture Borders" ) )
1434
1436 .Name( "pcbnew.Control.zoneDisplayTesselation" )
1437 .Scope( AS_GLOBAL )
1438 .FriendlyName( _( "Draw Zone Fill Triangulation" ) )
1440
1442 .Name( "pcbnew.Control.zoneDisplayToggle" )
1443 .Scope( AS_GLOBAL )
1444 .FriendlyName( _( "Toggle Zone Display" ) )
1445 .Tooltip( _( "Cycle between showing zone fills and just their outlines" ) )
1446 .Icon( BITMAPS::show_zone ) );
1447
1448
1449// Layer control
1450
1451// Translate aLayer to the action that switches to it
1453{
1454 switch( aLayer )
1455 {
1456 case F_Cu: return &PCB_ACTIONS::layerTop;
1457 case In1_Cu: return &PCB_ACTIONS::layerInner1;
1458 case In2_Cu: return &PCB_ACTIONS::layerInner2;
1459 case In3_Cu: return &PCB_ACTIONS::layerInner3;
1460 case In4_Cu: return &PCB_ACTIONS::layerInner4;
1461 case In5_Cu: return &PCB_ACTIONS::layerInner5;
1462 case In6_Cu: return &PCB_ACTIONS::layerInner6;
1463 case In7_Cu: return &PCB_ACTIONS::layerInner7;
1464 case In8_Cu: return &PCB_ACTIONS::layerInner8;
1465 case In9_Cu: return &PCB_ACTIONS::layerInner9;
1466 case In10_Cu: return &PCB_ACTIONS::layerInner10;
1467 case In11_Cu: return &PCB_ACTIONS::layerInner11;
1468 case In12_Cu: return &PCB_ACTIONS::layerInner12;
1469 case In13_Cu: return &PCB_ACTIONS::layerInner13;
1470 case In14_Cu: return &PCB_ACTIONS::layerInner14;
1471 case In15_Cu: return &PCB_ACTIONS::layerInner15;
1472 case In16_Cu: return &PCB_ACTIONS::layerInner16;
1473 case In17_Cu: return &PCB_ACTIONS::layerInner17;
1474 case In18_Cu: return &PCB_ACTIONS::layerInner18;
1475 case In19_Cu: return &PCB_ACTIONS::layerInner19;
1476 case In20_Cu: return &PCB_ACTIONS::layerInner20;
1477 case In21_Cu: return &PCB_ACTIONS::layerInner21;
1478 case In22_Cu: return &PCB_ACTIONS::layerInner22;
1479 case In23_Cu: return &PCB_ACTIONS::layerInner23;
1480 case In24_Cu: return &PCB_ACTIONS::layerInner24;
1481 case In25_Cu: return &PCB_ACTIONS::layerInner25;
1482 case In26_Cu: return &PCB_ACTIONS::layerInner26;
1483 case In27_Cu: return &PCB_ACTIONS::layerInner27;
1484 case In28_Cu: return &PCB_ACTIONS::layerInner28;
1485 case In29_Cu: return &PCB_ACTIONS::layerInner29;
1486 case In30_Cu: return &PCB_ACTIONS::layerInner30;
1487 case B_Cu: return &PCB_ACTIONS::layerBottom;
1488 default: return nullptr;
1489 }
1490}
1491
1492// Implemented as an accessor + static variable to ensure it is initialized when used
1493// in static action constructors
1495{
1496 static TOOL_ACTION_GROUP s_toolActionGroup( "pcbnew.Control.DirectLayerActions" );
1497 return s_toolActionGroup;
1498}
1499
1501 .Name( "pcbnew.Control.layerTop" )
1502 .Scope( AS_GLOBAL )
1504 .DefaultHotkey( WXK_PAGEUP )
1505 .LegacyHotkeyName( "Switch to Component (F.Cu) layer" )
1506 .FriendlyName( _( "Switch to Component (F.Cu) layer" ) )
1507 .Flags( AF_NOTIFY )
1508 .Parameter( F_Cu ) );
1509
1511 .Name( "pcbnew.Control.layerInner1" )
1512 .Scope( AS_GLOBAL )
1514 .LegacyHotkeyName( "Switch to Inner layer 1" )
1515 .FriendlyName( _( "Switch to Inner Layer 1" ) )
1516 .Flags( AF_NOTIFY )
1517 .Parameter( In1_Cu ) );
1518
1520 .Name( "pcbnew.Control.layerInner2" )
1521 .Scope( AS_GLOBAL )
1523 .LegacyHotkeyName( "Switch to Inner layer 2" )
1524 .FriendlyName( _( "Switch to Inner Layer 2" ) )
1525 .Flags( AF_NOTIFY )
1526 .Parameter( In2_Cu ) );
1527
1529 .Name( "pcbnew.Control.layerInner3" )
1530 .Scope( AS_GLOBAL )
1532 .LegacyHotkeyName( "Switch to Inner layer 3" )
1533 .FriendlyName( _( "Switch to Inner Layer 3" ) )
1534 .Flags( AF_NOTIFY )
1535 .Parameter( In3_Cu ) );
1536
1538 .Name( "pcbnew.Control.layerInner4" )
1539 .Scope( AS_GLOBAL )
1541 .LegacyHotkeyName( "Switch to Inner layer 4" )
1542 .FriendlyName( _( "Switch to Inner Layer 4" ) )
1543 .Flags( AF_NOTIFY )
1544 .Parameter( In4_Cu ) );
1545
1547 .Name( "pcbnew.Control.layerInner5" )
1548 .Scope( AS_GLOBAL )
1550 .LegacyHotkeyName( "Switch to Inner layer 5" )
1551 .FriendlyName( _( "Switch to Inner Layer 5" ) )
1552 .Flags( AF_NOTIFY )
1553 .Parameter( In5_Cu ) );
1554
1556 .Name( "pcbnew.Control.layerInner6" )
1557 .Scope( AS_GLOBAL )
1559 .LegacyHotkeyName( "Switch to Inner layer 6" )
1560 .FriendlyName( _( "Switch to Inner Layer 6" ) )
1561 .Flags( AF_NOTIFY )
1562 .Parameter( In6_Cu ) );
1563
1565 .Name( "pcbnew.Control.layerInner7" )
1566 .Scope( AS_GLOBAL )
1568 .FriendlyName( _( "Switch to Inner Layer 7" ) )
1569 .Flags( AF_NOTIFY )
1570 .Parameter( In7_Cu ) );
1571
1573 .Name( "pcbnew.Control.layerInner8" )
1574 .Scope( AS_GLOBAL )
1576 .FriendlyName( _( "Switch to Inner Layer 8" ) )
1577 .Flags( AF_NOTIFY )
1578 .Parameter( In8_Cu ) );
1579
1581 .Name( "pcbnew.Control.layerInner9" )
1582 .Scope( AS_GLOBAL )
1584 .FriendlyName( _( "Switch to Inner Layer 9" ) )
1585 .Flags( AF_NOTIFY )
1586 .Parameter( In9_Cu ) );
1587
1589 .Name( "pcbnew.Control.layerInner10" )
1590 .Scope( AS_GLOBAL )
1592 .FriendlyName( _( "Switch to Inner Layer 10" ) )
1593 .Flags( AF_NOTIFY )
1594 .Parameter( In10_Cu ) );
1595
1597 .Name( "pcbnew.Control.layerInner11" )
1598 .Scope( AS_GLOBAL )
1600 .FriendlyName( _( "Switch to Inner Layer 11" ) )
1601 .Flags( AF_NOTIFY )
1602 .Parameter( In11_Cu ) );
1603
1605 .Name( "pcbnew.Control.layerInner12" )
1606 .Scope( AS_GLOBAL )
1608 .FriendlyName( _( "Switch to Inner Layer 12" ) )
1609 .Flags( AF_NOTIFY )
1610 .Parameter( In12_Cu ) );
1611
1613 .Name( "pcbnew.Control.layerInner13" )
1614 .Scope( AS_GLOBAL )
1616 .FriendlyName( _( "Switch to Inner Layer 13" ) )
1617 .Flags( AF_NOTIFY )
1618 .Parameter( In13_Cu ) );
1619
1621 .Name( "pcbnew.Control.layerInner14" )
1622 .Scope( AS_GLOBAL )
1624 .FriendlyName( _( "Switch to Inner Layer 14" ) )
1625 .Flags( AF_NOTIFY )
1626 .Parameter( In14_Cu ) );
1627
1629 .Name( "pcbnew.Control.layerInner15" )
1630 .Scope( AS_GLOBAL )
1632 .FriendlyName( _( "Switch to Inner Layer 15" ) )
1633 .Flags( AF_NOTIFY )
1634 .Parameter( In15_Cu ) );
1635
1637 .Name( "pcbnew.Control.layerInner16" )
1638 .Scope( AS_GLOBAL )
1640 .FriendlyName( _( "Switch to Inner Layer 16" ) )
1641 .Flags( AF_NOTIFY )
1642 .Parameter( In16_Cu ) );
1643
1645 .Name( "pcbnew.Control.layerInner17" )
1646 .Scope( AS_GLOBAL )
1648 .FriendlyName( _( "Switch to Inner Layer 17" ) )
1649 .Flags( AF_NOTIFY )
1650 .Parameter( In17_Cu ) );
1651
1653 .Name( "pcbnew.Control.layerInner18" )
1654 .Scope( AS_GLOBAL )
1656 .FriendlyName( _( "Switch to Inner Layer 18" ) )
1657 .Flags( AF_NOTIFY )
1658 .Parameter( In18_Cu ) );
1659
1661 .Name( "pcbnew.Control.layerInner19" )
1662 .Scope( AS_GLOBAL )
1664 .FriendlyName( _( "Switch to Inner Layer 19" ) )
1665 .Flags( AF_NOTIFY )
1666 .Parameter( In19_Cu ) );
1667
1669 .Name( "pcbnew.Control.layerInner20" )
1670 .Scope( AS_GLOBAL )
1672 .FriendlyName( _( "Switch to Inner Layer 20" ) )
1673 .Flags( AF_NOTIFY )
1674 .Parameter( In20_Cu ) );
1675
1677 .Name( "pcbnew.Control.layerInner21" )
1678 .Scope( AS_GLOBAL )
1680 .FriendlyName( _( "Switch to Inner Layer 21" ) )
1681 .Flags( AF_NOTIFY )
1682 .Parameter( In21_Cu ) );
1683
1685 .Name( "pcbnew.Control.layerInner22" )
1686 .Scope( AS_GLOBAL )
1688 .FriendlyName( _( "Switch to Inner Layer 22" ) )
1689 .Flags( AF_NOTIFY )
1690 .Parameter( In22_Cu ) );
1691
1693 .Name( "pcbnew.Control.layerInner23" )
1694 .Scope( AS_GLOBAL )
1696 .FriendlyName( _( "Switch to Inner Layer 23" ) )
1697 .Flags( AF_NOTIFY )
1698 .Parameter( In23_Cu ) );
1699
1701 .Name( "pcbnew.Control.layerInner24" )
1702 .Scope( AS_GLOBAL )
1704 .FriendlyName( _( "Switch to Inner Layer 24" ) )
1705 .Flags( AF_NOTIFY )
1706 .Parameter( In24_Cu ) );
1707
1709 .Name( "pcbnew.Control.layerInner25" )
1710 .Scope( AS_GLOBAL )
1712 .FriendlyName( _( "Switch to Inner Layer 25" ) )
1713 .Flags( AF_NOTIFY )
1714 .Parameter( In25_Cu ) );
1715
1717 .Name( "pcbnew.Control.layerInner26" )
1718 .Scope( AS_GLOBAL )
1720 .FriendlyName( _( "Switch to Inner Layer 26" ) )
1721 .Flags( AF_NOTIFY )
1722 .Parameter( In26_Cu ) );
1723
1725 .Name( "pcbnew.Control.layerInner27" )
1726 .Scope( AS_GLOBAL )
1728 .FriendlyName( _( "Switch to Inner Layer 27" ) )
1729 .Flags( AF_NOTIFY )
1730 .Parameter( In27_Cu ) );
1731
1733 .Name( "pcbnew.Control.layerInner28" )
1734 .Scope( AS_GLOBAL )
1736 .FriendlyName( _( "Switch to Inner Layer 28" ) )
1737 .Flags( AF_NOTIFY )
1738 .Parameter( In28_Cu ) );
1739
1741 .Name( "pcbnew.Control.layerInner29" )
1742 .Scope( AS_GLOBAL )
1744 .FriendlyName( _( "Switch to Inner Layer 29" ) )
1745 .Flags( AF_NOTIFY )
1746 .Parameter( In29_Cu ) );
1747
1749 .Name( "pcbnew.Control.layerInner30" )
1750 .Scope( AS_GLOBAL )
1752 .FriendlyName( _( "Switch to Inner Layer 30" ) )
1753 .Flags( AF_NOTIFY )
1754 .Parameter( In30_Cu ) );
1755
1757 .Name( "pcbnew.Control.layerBottom" )
1758 .Scope( AS_GLOBAL )
1760 .DefaultHotkey( WXK_PAGEDOWN )
1761 .LegacyHotkeyName( "Switch to Copper (B.Cu) layer" )
1762 .FriendlyName( _( "Switch to Copper (B.Cu) Layer" ) )
1763 .Flags( AF_NOTIFY )
1764 .Parameter( B_Cu ) );
1765
1767 .Name( "pcbnew.Control.layerNext" )
1768 .Scope( AS_GLOBAL )
1769 .DefaultHotkey( '+' )
1770 .LegacyHotkeyName( "Switch to Next Layer" )
1771 .FriendlyName( _( "Switch to Next Layer" ) )
1772 .Flags( AF_NOTIFY ) );
1773
1775 .Name( "pcbnew.Control.layerPrev" )
1776 .Scope( AS_GLOBAL )
1777 .DefaultHotkey( '-' )
1778 .LegacyHotkeyName( "Switch to Previous Layer" )
1779 .FriendlyName( _( "Switch to Previous Layer" ) )
1780 .Flags( AF_NOTIFY ) );
1781
1783 .Name( "pcbnew.Control.layerToggle" )
1784 .Scope( AS_GLOBAL )
1785 .DefaultHotkey( 'V' )
1786 .LegacyHotkeyName( "Add Through Via" )
1787 .FriendlyName( _( "Toggle Layer" ) )
1788 .Tooltip( _( "Switch between layers in active layer pair" ) )
1789 .Flags( AF_NOTIFY ) );
1790
1792 .Name( "pcbnew.Control.layerAlphaInc" )
1793 .Scope( AS_GLOBAL )
1794 .DefaultHotkey( '}' )
1795 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1796 .LegacyHotkeyName( "Increment Layer Transparency (Modern Toolset only)" )
1797 .FriendlyName( _( "Increase Layer Opacity" ) )
1798 .Tooltip( _( "Make the current layer less transparent" ) )
1799 .Icon( BITMAPS::contrast_mode ) );
1800
1802 .Name( "pcbnew.Control.layerAlphaDec" )
1803 .Scope( AS_GLOBAL )
1804 .DefaultHotkey( '{' )
1805 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1806 .LegacyHotkeyName( "Decrement Layer Transparency (Modern Toolset only)" )
1807 .FriendlyName( _( "Decrease Layer Opacity" ) )
1808 .Tooltip( _( "Make the current layer more transparent" ) )
1809 .Icon( BITMAPS::contrast_mode ) );
1810
1812 .Name( "pcbnew.Control.layerPairPresetCycle" )
1813 .Scope( AS_GLOBAL )
1814 .DefaultHotkey( MD_SHIFT + 'V' )
1815 .FriendlyName( _( "Cycle Layer Pair Presets" ) )
1816 .Tooltip( _( "Cycle between preset layer pairs" ) ) );
1817
1819 .Name( "pcbnew.Control.layerChanged" )
1820 .Scope( AS_GLOBAL )
1821 .Flags( AF_NOTIFY ) );
1822
1823//Show board statistics tool
1825 .Name( "pcbnew.InspectionTool.ShowBoardStatistics" )
1826 .Scope( AS_GLOBAL )
1827 .FriendlyName( _( "Show Board Statistics" ) )
1828 .Tooltip( _( "Shows board statistics" ) ) );
1829
1831 .Name( "pcbnew.InspectionTool.InspectClearance" )
1832 .Scope( AS_GLOBAL )
1833 .FriendlyName( _( "Clearance Resolution" ) )
1834 .Tooltip( _( "Show clearance resolution for the active layer between two selected objects" ) )
1835 .Icon( BITMAPS::mw_add_gap ) );
1836
1838 .Name( "pcbnew.InspectionTool.InspectConstraints" )
1839 .Scope( AS_GLOBAL )
1840 .FriendlyName( _( "Constraints Resolution" ) )
1841 .Tooltip( _( "Show constraints resolution for the selected object" ) )
1842 .Icon( BITMAPS::mw_add_gap ) );
1843
1845 .Name( "pcbnew.InspectionTool.DiffFootprint" )
1846 .Scope( AS_GLOBAL )
1847 .FriendlyName( _( "Compare Footprint with Library" ) )
1848 .Tooltip( _( "Show differences between board footprint and its library equivalent" ) )
1849 .Icon( BITMAPS::library ) );
1850
1852 .Name( "pcbnew.InspectionTool.ShowFootprintAssociations" )
1853 .Scope( AS_GLOBAL )
1854 .FriendlyName( _( "Show Footprint Associations" ) )
1855 .Tooltip( _( "Show footprint library and schematic symbol associations" ) )
1857
1858//Geographic re-annotation tool
1860 .Name( "pcbnew.ReannotateTool.ShowReannotateDialog" )
1861 .Scope( AS_GLOBAL )
1862 .FriendlyName( _( "Geographical Reannotate..." ) )
1863 .Tooltip( _( "Reannotate PCB in geographical order" ) )
1864 .Icon( BITMAPS::annotate ) );
1865
1867 .Name( "pcbnew.Control.repairBoard" )
1868 .Scope( AS_GLOBAL )
1869 .FriendlyName( _( "Repair Board" ) )
1870 .Tooltip( _( "Run various diagnostics and attempt to repair board" ) )
1871 .Icon( BITMAPS::rescue )
1872 .Parameter( false ) ); // Don't repair quietly
1873
1875 .Name( "pcbnew.ModuleEditor.repairFootprint" )
1876 .Scope( AS_GLOBAL )
1877 .FriendlyName( _( "Repair Footprint" ) )
1878 .Tooltip( _( "Run various diagnostics and attempt to repair footprint" ) ) );
1879
1880
1881// PLACEMENT_TOOL
1882//
1884 .Name( "pcbnew.AlignAndDistribute.alignTop" )
1885 .Scope( AS_GLOBAL )
1886 .FriendlyName( _( "Align to Top" ) )
1887 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
1888 .Icon( BITMAPS::align_items_top ) );
1889
1891 .Name( "pcbnew.AlignAndDistribute.alignBottom" )
1892 .Scope( AS_GLOBAL )
1893 .FriendlyName( _( "Align to Bottom" ) )
1894 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
1895 .Icon( BITMAPS::align_items_bottom ) );
1896
1898 .Name( "pcbnew.AlignAndDistribute.alignLeft" )
1899 .Scope( AS_GLOBAL )
1900 .FriendlyName( _( "Align to Left" ) )
1901 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
1902 .Icon( BITMAPS::align_items_left ) );
1903
1905 .Name( "pcbnew.AlignAndDistribute.alignRight" )
1906 .Scope( AS_GLOBAL )
1907 .FriendlyName( _( "Align to Right" ) )
1908 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
1909 .Icon( BITMAPS::align_items_right ) );
1910
1912 .Name( "pcbnew.AlignAndDistribute.alignCenterY" )
1913 .Scope( AS_GLOBAL )
1914 .FriendlyName( _( "Align to Vertical Center" ) )
1915 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
1916 .Icon( BITMAPS::align_items_center ) );
1917
1919 .Name( "pcbnew.AlignAndDistribute.alignCenterX" )
1920 .Scope( AS_GLOBAL )
1921 .FriendlyName( _( "Align to Horizontal Center" ) )
1922 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
1923 .Icon( BITMAPS::align_items_middle ) );
1924
1926 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyCenters" )
1927 .Scope( AS_GLOBAL )
1928 .FriendlyName( _( "Distribute Horizontally by Centers" ) )
1929 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item"
1930 "so that the item centers are equally distributed" ) )
1932
1934 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyGaps" )
1935 .Scope( AS_GLOBAL )
1936 .FriendlyName( _( "Distribute Horizontally with Even Gaps" ) )
1937 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
1938 "so that the gaps between items are equal" ) )
1940
1942 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyGaps" )
1943 .Scope( AS_GLOBAL )
1944 .FriendlyName( _( "Distribute Vertically with Even Gaps" ) )
1945 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
1946 "so that the gaps between items are equal" ) )
1948
1950 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyCenters" )
1951 .Scope( AS_GLOBAL )
1952 .FriendlyName( _( "Distribute Vertically by Centers" ) )
1953 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
1954 "so that the item centers are equally distributed" ) )
1956
1957// PCB_POINT_EDITOR
1958//
1960 .Name( "pcbnew.PointEditor.addCorner" )
1961 .Scope( AS_GLOBAL )
1962#ifdef __WXMAC__
1963 .DefaultHotkey( WXK_F1 )
1964#else
1965 .DefaultHotkey( WXK_INSERT )
1966#endif
1967 .FriendlyName( _( "Create Corner" ) )
1968 .Tooltip( _( "Create a corner" ) )
1969 .Icon( BITMAPS::add_corner ) );
1970
1972 .Name( "pcbnew.PointEditor.removeCorner" )
1973 .Scope( AS_GLOBAL )
1974 .FriendlyName( _( "Remove Corner" ) )
1975 .Tooltip( _( "Remove corner" ) )
1976 .Icon( BITMAPS::delete_cursor ) );
1977
1979 .Name( "pcbnew.PointEditor.chamferCorner" )
1980 .Scope( AS_GLOBAL )
1981 .FriendlyName( _( "Chamfer Corner" ) )
1982 .Tooltip( _( "Chamfer corner" ) )
1983 .Icon( BITMAPS::chamfer ) );
1984
1986 .Name( "pcbnew.PointEditor.arcKeepCenter" )
1987 .Scope( AS_GLOBAL )
1988 .FriendlyName( _( "Keep Arc Center, Adjust Radius" ) )
1989 .Tooltip( _( "Switch arc editing mode to keep center, adjust radius and endpoints" ) )
1991
1993 .Name( "pcbnew.PointEditor.arcKeepEndpoint" )
1994 .Scope( AS_GLOBAL )
1995 .FriendlyName( _( "Keep Arc Endpoints or Direction of Starting Point" ) )
1996 .Tooltip( _( "Switch arc editing mode to keep endpoints, or to keep direction of the other point" ) )
1998
1999
2000// GROUP_TOOL
2001//
2003 .Name( "pcbnew.Groups.groupProperties" )
2004 .Scope( AS_GLOBAL ) );
2005
2007 .Name( "pcbnew.Groups.selectNewGroupMember" )
2008 .Scope( AS_GLOBAL ) );
2009
2010
2011
2012// POSITION_RELATIVE_TOOL
2013//
2015 .Name( "pcbnew.PositionRelative.positionRelative" )
2016 .Scope( AS_GLOBAL )
2017 .DefaultHotkey( MD_SHIFT + 'P' )
2018 .LegacyHotkeyName( "Position Item Relative" )
2019 .FriendlyName( _( "Position Relative To..." ) )
2020 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another" ) )
2021 .Icon( BITMAPS::move_relative ) );
2022
2023
2024// PCIKER_TOOL
2025//
2027 .Name( "pcbnew.Picker.selectItemInteractively" )
2028 .Scope( AS_GLOBAL )
2029 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ) );
2030
2032 .Name( "pcbnew.Picker.selectPointInteractively" )
2033 .Scope( AS_GLOBAL )
2034 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ));
2035
2036
2037// PCB_SELECTION_TOOL
2038//
2040 .Name( "pcbnew.InteractiveSelection" )
2041 .Scope( AS_GLOBAL )
2042 // No description, not shown anywhere
2043 .Flags( AF_ACTIVATE ) );
2044
2046 .Name( "pcbnew.InteractiveSelection.Cursor" )
2047 .Scope( AS_GLOBAL )
2048 .Parameter<CLIENT_SELECTION_FILTER>( nullptr ) );
2049
2051 .Name( "pcbnew.InteractiveSelection.SelectItem" )
2052 .Scope( AS_GLOBAL ) );
2053
2055 .Name( "pcbnew.InteractiveSelection.SelectItems" )
2056 .Scope( AS_GLOBAL ) );
2057
2059 .Name( "pcbnew.InteractiveSelection.UnselectItem" )
2060 .Scope( AS_GLOBAL ) );
2061
2063 .Name( "pcbnew.InteractiveSelection.UnselectItems" )
2064 .Scope( AS_GLOBAL ) );
2065
2067 .Name( "pcbnew.InteractiveSelection.ReselectItem" )
2068 .Scope( AS_GLOBAL ) );
2069
2071 .Name( "pcbnew.InteractiveSelection.Clear" )
2072 .Scope( AS_GLOBAL ) );
2073
2075 .Name( "pcbnew.InteractiveSelection.SelectionMenu" )
2076 .Scope( AS_GLOBAL ) );
2077
2079 .Name( "pcbnew.InteractiveSelection.SelectConnection" )
2080 .Scope( AS_GLOBAL )
2081 .DefaultHotkey( 'U' )
2082 .LegacyHotkeyName( "Select Single Track" )
2083 .FriendlyName( _( "Select/Expand Connection" ) )
2084 .Tooltip( _( "Selects a connection or expands an existing selection to junctions, pads, or entire connections" ) )
2085 .Icon( BITMAPS::add_tracks ) );
2086
2088 .Name( "pcbnew.InteractiveSelection.unrouteSelected" )
2089 .Scope( AS_GLOBAL )
2090 .FriendlyName( _( "Unroute Selected" ) )
2091 .Tooltip( _( "Unroutes selected items to the nearest pad." ) )
2092 .Icon( BITMAPS::general_deletions ) );
2093
2095 .Name( "pcbnew.InteractiveSelection.SyncSelection" )
2096 .Scope( AS_GLOBAL ) );
2097
2099 .Name( "pcbnew.InteractiveSelection.SyncSelectionWithNets" )
2100 .Scope( AS_GLOBAL ) );
2101
2103 .Name( "pcbnew.InteractiveSelection.SelectNet" )
2104 .Scope( AS_GLOBAL )
2105 .FriendlyName( _( "Select All Tracks in Net" ) )
2106 .Tooltip( _( "Selects all tracks & vias belonging to the same net." ) )
2107 .Parameter<int>( 0 ) );
2108
2110 .Name( "pcbnew.InteractiveSelection.DeselectNet" )
2111 .Scope( AS_GLOBAL )
2112 .FriendlyName( _( "Deselect All Tracks in Net" ) )
2113 .Tooltip( _( "Deselects all tracks & vias belonging to the same net." ) )
2114 .Parameter<int>( 0 ) );
2115
2117 .Name( "pcbnew.InteractiveSelection.SelectUnconnected" )
2118 .Scope( AS_GLOBAL )
2119 .DefaultHotkey( 'O' )
2120 .FriendlyName( _( "Select All Unconnected Footprints" ) )
2121 .Tooltip( _( "Selects all unconnected footprints belonging to each selected net." ) ) );
2122
2124 .Name( "pcbnew.InteractiveSelection.GrabUnconnected" )
2125 .Scope( AS_GLOBAL )
2126 .DefaultHotkey( MD_SHIFT + 'O' )
2127 .FriendlyName( _( "Grab Nearest Unconnected Footprints" ) )
2128 .Tooltip( _( "Selects and initiates moving the nearest unconnected footprint on each selected net." ) ) );
2129
2131 .Name( "pcbnew.InteractiveSelection.SelectOnSheet" )
2132 .Scope( AS_GLOBAL )
2133 .FriendlyName( _( "Sheet" ) )
2134 .Tooltip( _( "Selects all footprints and tracks in the schematic sheet" ) )
2135 .Icon( BITMAPS::select_same_sheet ) );
2136
2138 .Name( "pcbnew.InteractiveSelection.SelectSameSheet" )
2139 .Scope( AS_GLOBAL )
2140 .FriendlyName( _( "Items in Same Hierarchical Sheet" ) )
2141 .Tooltip( _( "Selects all footprints and tracks in the same schematic sheet" ) )
2142 .Icon( BITMAPS::select_same_sheet ) );
2143
2145 .Name( "pcbnew.InteractiveSelection.SelectOnSchematic" )
2146 .Scope( AS_GLOBAL )
2147 .FriendlyName( _( "Select on Schematic" ) )
2148 .Tooltip( _( "Selects corresponding items in Schematic editor" ) )
2149 .Icon( BITMAPS::select_same_sheet ) );
2150
2152 .Name( "pcbnew.InteractiveSelection.FilterSelection" )
2153 .Scope( AS_GLOBAL )
2154 .FriendlyName( _( "Filter Selected Items..." ) )
2155 .Tooltip( _( "Remove items from the selection by type" ) )
2156 .Icon( BITMAPS::filter ) );
2157
2158
2159// ZONE_FILLER_TOOL
2160//
2162 .Name( "pcbnew.ZoneFiller.zoneFill" )
2163 .Scope( AS_GLOBAL )
2164 .FriendlyName( _( "Draft Fill Selected Zone(s)" ) )
2165 .Tooltip( _( "Update copper fill of selected zone(s) without regard to other interacting zones" ) )
2166 .Icon( BITMAPS::fill_zone )
2167 .Parameter<ZONE*>( nullptr ) );
2168
2170 .Name( "pcbnew.ZoneFiller.zoneFillAll" )
2171 .Scope( AS_GLOBAL )
2172 .DefaultHotkey( 'B' )
2173 .LegacyHotkeyName( "Fill or Refill All Zones" )
2174 .FriendlyName( _( "Fill All Zones" ) )
2175 .Tooltip( _( "Update copper fill of all zones" ) )
2176 .Icon( BITMAPS::fill_zone ) );
2177
2179 .Name( "pcbnew.ZoneFiller.zoneFillDirty" )
2180 .Scope( AS_CONTEXT ) );
2181
2183 .Name( "pcbnew.ZoneFiller.zoneUnfill" )
2184 .Scope( AS_GLOBAL )
2185 .FriendlyName( _( "Unfill Selected Zone(s)" ) )
2186 .Tooltip( _( "Remove copper fill from selected zone(s)" ) )
2187 .Icon( BITMAPS::zone_unfill ) );
2188
2190 .Name( "pcbnew.ZoneFiller.zoneUnfillAll" )
2191 .Scope( AS_GLOBAL )
2192 .DefaultHotkey( MD_CTRL + 'B' )
2193 .LegacyHotkeyName( "Remove Filled Areas in All Zones" )
2194 .FriendlyName( _( "Unfill All Zones" ) )
2195 .Tooltip( _( "Remove copper fill from all zones" ) )
2196 .Icon( BITMAPS::zone_unfill ) );
2197
2198
2199// AUTOPLACER_TOOL
2200//
2202 .Name( "pcbnew.Autoplacer.autoplaceSelected" )
2203 .Scope( AS_GLOBAL )
2204 .FriendlyName( _( "Place Selected Footprints" ) )
2205 .Tooltip( _( "Performs automatic placement of selected components" ) ) );
2206
2208 .Name( "pcbnew.Autoplacer.autoplaceOffboard" )
2209 .Scope( AS_GLOBAL )
2210 .FriendlyName( _( "Place Off-Board Footprints" ) )
2211 .Tooltip( _( "Performs automatic placement of components outside board area" ) ) );
2212
2214 .Name( "pcbnew.Multichannel.generatePlacementRuleAreas" )
2215 .Scope( AS_GLOBAL )
2216 .FriendlyName( _( "Generate Placement Rule Areas" ) )
2217 .Tooltip( "Generates Placement Areas in easy way" )
2219 .Flags( AF_ACTIVATE ) );
2220
2222 .Name( "pcbnew.Multichannel.repeatLayout" )
2223 .Scope( AS_GLOBAL )
2224 .FriendlyName( _( "Repeat Layout" ) )
2225 .Tooltip( "Clones placement & routing across multiple identical channels" )
2226 .Icon( BITMAPS::copy )
2227 );
2228
2229// ROUTER_TOOL
2230//
2232 .Name( "pcbnew.InteractiveRouter.SingleTrack" )
2233 .Scope( AS_GLOBAL )
2234 .DefaultHotkey( 'X' )
2235 .LegacyHotkeyName( "Add New Track" )
2236 .FriendlyName( _( "Route Single Track" ) )
2237 .Tooltip( _( "Route tracks" ) )
2238 .Icon( BITMAPS::add_tracks )
2239 .Flags( AF_ACTIVATE )
2240 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2241
2243 .Name( "pcbnew.InteractiveRouter.DiffPair" )
2244 .Scope( AS_GLOBAL )
2245 .DefaultHotkey( '6' )
2246 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2247 .LegacyHotkeyName( "Route Differential Pair (Modern Toolset only)" )
2248 .FriendlyName( _( "Route Differential Pair" ) )
2249 .Tooltip( _( "Route differential pairs" ) )
2250 .Icon( BITMAPS::ps_diff_pair )
2251 .Flags( AF_ACTIVATE )
2252 .Parameter( PNS::PNS_MODE_ROUTE_DIFF_PAIR ) );
2253
2255 .Name( "pcbnew.InteractiveRouter.SettingsDialog" )
2256 .Scope( AS_GLOBAL )
2257 .DefaultHotkey( MD_CTRL + '<' )
2258 .LegacyHotkeyName( "Routing Options" )
2259 .FriendlyName( _( "Interactive Router Settings..." ) )
2260 .Tooltip( _( "Open Interactive Router settings" ) )
2261 .Icon( BITMAPS::tools ) );
2262
2264 .Name( "pcbnew.InteractiveRouter.DiffPairDialog" )
2265 .Scope( AS_GLOBAL )
2266 .FriendlyName( _( "Differential Pair Dimensions..." ) )
2267 .Tooltip( _( "Open Differential Pair Dimension settings" ) )
2268 .Icon( BITMAPS::ps_diff_pair_gap ) );
2269
2271 .Name( "pcbnew.InteractiveRouter.HighlightMode" )
2272 .Scope( AS_GLOBAL )
2273 .FriendlyName( _( "Router Highlight Mode" ) )
2274 .Tooltip( _( "Switch router to highlight mode" ) )
2275 .Flags( AF_NONE )
2276 .Parameter( PNS::RM_MarkObstacles ) );
2277
2279 .Name( "pcbnew.InteractiveRouter.ShoveMode" )
2280 .Scope( AS_GLOBAL )
2281 .FriendlyName( _( "Router Shove Mode" ) )
2282 .Tooltip( _( "Switch router to shove mode" ) )
2283 .Flags( AF_NONE )
2284 .Parameter( PNS::RM_Shove ) );
2285
2287 .Name( "pcbnew.InteractiveRouter.WalkaroundMode" )
2288 .Scope( AS_GLOBAL )
2289 .FriendlyName( _( "Router Walkaround Mode" ) )
2290 .Tooltip( _( "Switch router to walkaround mode" ) )
2291 .Flags( AF_NONE )
2292 .Parameter( PNS::RM_Walkaround ) );
2293
2295 .Name( "pcbnew.InteractiveRouter.CycleRouterMode" )
2296 .Scope( AS_GLOBAL )
2297 .FriendlyName( _( "Cycle Router Mode" ) )
2298 .Tooltip( _( "Cycle router to the next mode" ) ) );
2299
2301 .Name( "pcbnew.InteractiveRouter.SelectLayerPair" )
2302 .Scope( AS_GLOBAL )
2303 .FriendlyName( _( "Set Layer Pair..." ) )
2304 .Tooltip( _( "Change active layer pair for routing" ) )
2306 .Flags( AF_ACTIVATE ) );
2307
2309 .Name( "pcbnew.LengthTuner.TuneSingleTrack" )
2310 .Scope( AS_GLOBAL )
2311 .DefaultHotkey( '7' )
2312 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2313 .LegacyHotkeyName( "Tune Single Track (Modern Toolset only)" )
2314 .FriendlyName( _( "Tune Length of a Single Track" ) )
2315 .Tooltip( _( "Tune length of a single track" ) )
2317 .Flags( AF_ACTIVATE )
2318 .Parameter( PNS::PNS_MODE_TUNE_SINGLE ) );
2319
2321 .Name( "pcbnew.LengthTuner.TuneDiffPair" )
2322 .Scope( AS_GLOBAL )
2323 .DefaultHotkey( '8' )
2324 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2325 .LegacyHotkeyName( "Tune Differential Pair Length (Modern Toolset only)" )
2326 .FriendlyName( _( "Tune Length of a Differential Pair" ) )
2327 .Tooltip( _( "Tune length of a differential pair" ) )
2329 .Flags( AF_ACTIVATE )
2330 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR ) );
2331
2333 .Name( "pcbnew.LengthTuner.TuneDiffPairSkew" )
2334 .Scope( AS_GLOBAL )
2335 .DefaultHotkey( '9' )
2336 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2337 .LegacyHotkeyName( "Tune Differential Pair Skew (Modern Toolset only)" )
2338 .FriendlyName( _( "Tune Skew of a Differential Pair" ) )
2339 .Tooltip( _( "Tune skew of a differential pair" ) )
2341 .Flags( AF_ACTIVATE )
2342 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW ) );
2343
2345 .Name( "pcbnew.InteractiveRouter.InlineDrag" )
2346 .Scope( AS_CONTEXT )
2347 .Parameter<int>( PNS::DM_ANY ) );
2348
2350 .Name( "pcbnew.InteractiveRouter.UndoLastSegment" )
2351 .Scope( AS_CONTEXT )
2352 .DefaultHotkey( WXK_BACK )
2353 .FriendlyName( _( "Undo Last Segment" ) )
2354 .Tooltip( _( "Walks the current track back one segment." ) ) );
2355
2357 .Name( "pcbnew.InteractiveRouter.ContinueFromEnd" )
2358 .Scope( AS_CONTEXT )
2359 .DefaultHotkey( MD_CTRL + 'E' )
2360 .FriendlyName( _( "Route From Other End" ) )
2361 .Tooltip( _( "Commits current segments and starts next segment from nearest ratsnest end." ) ) );
2362
2364 .Name( "pcbnew.InteractiveRouter.AttemptFinish" )
2365 .Scope( AS_CONTEXT )
2366 .DefaultHotkey( 'F' )
2367 .FriendlyName( _( "Attempt Finish" ) )
2368 .Tooltip( _( "Attempts to complete current route to nearest ratsnest end." ) )
2369 .Parameter<bool*>( nullptr ) );
2370
2372 .Name( "pcbnew.InteractiveRouter.RouteSelected" )
2373 .Scope( AS_GLOBAL )
2374 .DefaultHotkey( MD_SHIFT + 'X' )
2375 .FriendlyName( _( "Route Selected" ) )
2376 .Tooltip( _( "Sequentially route selected items from ratsnest anchor." ) )
2377 .Flags( AF_ACTIVATE )
2378 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2379
2381 .Name( "pcbnew.InteractiveRouter.RouteSelectedFromEnd" )
2382 .Scope( AS_GLOBAL )
2383 .DefaultHotkey( MD_SHIFT + 'E' )
2384 .FriendlyName( _( "Route Selected From Other End" ) )
2385 .Tooltip( _( "Sequentially route selected items from other end of ratsnest anchor." ) )
2386 .Flags( AF_ACTIVATE )
2387 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2388
2390 .Name( "pcbnew.InteractiveRouter.Autoroute" )
2391 .Scope( AS_GLOBAL )
2392 .DefaultHotkey( MD_SHIFT + 'F' )
2393 .FriendlyName( _( "Attempt Finish Selected (Autoroute)" ) )
2394 .Tooltip( _( "Sequentially attempt to automatically route all selected pads." ) )
2395 .Flags( AF_ACTIVATE )
2396 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2397
2399 .Name( "pcbnew.InteractiveRouter.BreakTrack" )
2400 .Scope( AS_GLOBAL )
2401 .FriendlyName( _( "Break Track" ) )
2402 .Tooltip( _( "Splits the track segment into two segments connected at the cursor position." ) )
2403 .Icon( BITMAPS::break_line ) );
2404
2406 .Name( "pcbnew.InteractiveRouter.Drag45Degree" )
2407 .Scope( AS_GLOBAL )
2408 .DefaultHotkey( 'D' )
2409 .LegacyHotkeyName( "Drag Track Keep Slope" )
2410 .FriendlyName( _( "Drag 45 Degree Mode" ) )
2411 .Tooltip( _( "Drags the track segment while keeping connected tracks at 45 degrees." ) )
2413
2415 .Name( "pcbnew.InteractiveRouter.DragFreeAngle" )
2416 .Scope( AS_GLOBAL )
2417 .DefaultHotkey( 'G' )
2418 .LegacyHotkeyName( "Drag Item" )
2419 .FriendlyName( _( "Drag Free Angle" ) )
2420 .Tooltip( _( "Drags the nearest joint in the track without restricting the track angle." ) )
2421 .Icon( BITMAPS::drag_segment ) );
2422
2423
2424// GENERATOR_TOOL
2425//
2426
2428 .Name( "pcbnew.Generator.regenerateAllTuning" )
2429 .Scope( AS_GLOBAL )
2430 .FriendlyName( _( "Update All Tuning Patterns" ) )
2431 .Tooltip( _( "Attempt to re-tune existing tuning patterns within their bounds" ) )
2433 .Parameter( wxString( wxS( "tuning_pattern" ) ) ) );
2434
2436 .Name( "pcbnew.Generator.regenerateAll" )
2437 .Scope( AS_GLOBAL )
2438 .FriendlyName( _( "Rebuild All Generators" ) )
2439 .Tooltip( _( "Rebuilds geometry of all generators" ) )
2440 .Icon( BITMAPS::refresh )
2441 .Parameter( wxString( wxS( "*" ) ) ) );
2442
2444 .Name( "pcbnew.Generator.regenerateSelected" )
2445 .Scope( AS_GLOBAL )
2446 .FriendlyName( _( "Rebuild Selected Generators" ) )
2447 .Tooltip( _( "Rebuilds geometry of selected generator(s)" ) )
2448 .Icon( BITMAPS::refresh ) );
2449
2450
2452 .Name( "pcbnew.Generator.genStartEdit" )
2453 .Scope( AS_CONTEXT ) );
2454
2456 .Name( "pcbnew.Generator.genUpdateEdit" )
2457 .Scope( AS_CONTEXT ) );
2458
2460 .Name( "pcbnew.Generator.genPushEdit" )
2461 .Scope( AS_CONTEXT ) );
2462
2464 .Name( "pcbnew.Generator.genRevertEdit" )
2465 .Scope( AS_CONTEXT ) );
2466
2468 .Name( "pcbnew.Generator.genRemove" )
2469 .Scope( AS_CONTEXT ) );
2470
2471
2473 .Name( "pcbnew.Generator.showManager" )
2474 .Scope( AS_GLOBAL )
2475 .FriendlyName( _( "Generators Manager" ) )
2476 .Tooltip( _( "Show a manager dialog for Generator objects" ) )
2477 .Icon( BITMAPS::pin_table ) );
2478
2479
2480// LENGTH_TUNER_TOOL
2481//
2483 .Name( "pcbnew.LengthTuner.Settings" )
2484 .Scope( AS_GLOBAL )
2485 .DefaultHotkey( MD_CTRL + 'L' )
2486 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2487 .LegacyHotkeyName( "Length Tuning Settings (Modern Toolset only)" )
2488 .MenuText( _( "Length Tuning Settings..." ) )
2489 .Tooltip( _( "Displays tuning pattern properties dialog" ) )
2491
2493 .Name( "pcbnew.Control.DdAppendBoard" )
2494 .Scope( AS_GLOBAL ) );
2495
2496
2498 .Name( "pcbnew.Control.ddImportFootprint" )
2499 .Scope( AS_GLOBAL ) );
2500
2502 "common.Interactive.snappingModeChangedByKey" );
2503
2505 "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:249
static TOOL_ACTION deleteLastPoint
Definition: pcb_actions.h:231
static TOOL_ACTION toggleHV45Mode
Definition: pcb_actions.h:521
static TOOL_ACTION editTracksAndVias
Definition: pcb_actions.h:419
static TOOL_ACTION_GROUP layerDirectSwitchActions()
static TOOL_ACTION deleteFootprint
Definition: pcb_actions.h:468
static TOOL_ACTION drawRuleArea
Definition: pcb_actions.h:223
static TOOL_ACTION layerToggle
Definition: pcb_actions.h:383
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:359
static TOOL_ACTION microwaveCreateGap
Definition: pcb_actions.h:510
static TOOL_ACTION recombinePad
Definition: pcb_actions.h:484
static TOOL_ACTION drawBezier
Definition: pcb_actions.h:206
static TOOL_ACTION renameFootprint
Definition: pcb_actions.h:467
static TOOL_ACTION routerUndoLastSegment
Definition: pcb_actions.h:260
static TOOL_ACTION placeText
Definition: pcb_actions.h:208
static TOOL_ACTION layerInner8
Definition: pcb_actions.h:355
static TOOL_ACTION swapLayers
Definition: pcb_actions.h:429
static TOOL_ACTION zonesManager
Definition: pcb_actions.h:454
static TOOL_ACTION generateBOM
Definition: pcb_actions.h:444
static TOOL_ACTION pointEditorArcKeepCenter
Definition: pcb_actions.h:299
static TOOL_ACTION highlightItem
Definition: pcb_actions.h:559
static TOOL_ACTION drawOrthogonalDimension
Definition: pcb_actions.h:219
static TOOL_ACTION zoneDisplayToggle
Definition: pcb_actions.h:343
static TOOL_ACTION enumeratePads
Tool for quick pad enumeration.
Definition: pcb_actions.h:487
static TOOL_ACTION drawRectangle
Definition: pcb_actions.h:203
static TOOL_ACTION layerInner3
Definition: pcb_actions.h:350
static TOOL_ACTION layerPrev
Definition: pcb_actions.h:380
static TOOL_ACTION setAnchor
Definition: pcb_actions.h:230
static TOOL_ACTION padDisplayMode
Definition: pcb_actions.h:337
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:269
static TOOL_ACTION showRatsnest
Definition: pcb_actions.h:332
static TOOL_ACTION zoneFillAll
Definition: pcb_actions.h:405
static TOOL_ACTION layerInner2
Definition: pcb_actions.h:349
static TOOL_ACTION showLayersManager
Definition: pcb_actions.h:451
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:395
static TOOL_ACTION routerAttemptFinish
Definition: pcb_actions.h:263
static TOOL_ACTION convertToKeepout
Definition: pcb_actions.h:580
static TOOL_ACTION toggleNetHighlight
Definition: pcb_actions.h:557
static TOOL_ACTION generateDrillFiles
Definition: pcb_actions.h:438
static TOOL_ACTION pushPadSettings
Copy the current pad's settings to other pads in the footprint or on the board.
Definition: pcb_actions.h:507
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:245
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:254
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:443
static TOOL_ACTION groupLeave
Definition: pcb_actions.h:533
static TOOL_ACTION updateFootprint
Definition: pcb_actions.h:425
static TOOL_ACTION tuneDiffPair
Definition: pcb_actions.h:257
static TOOL_ACTION convertToTracks
Definition: pcb_actions.h:583
static TOOL_ACTION alignTop
Definition: pcb_actions.h:312
static TOOL_ACTION trackViaSizeChanged
Definition: pcb_actions.h:399
static TOOL_ACTION exportSpecctraDSN
Definition: pcb_actions.h:435
static TOOL_ACTION createFootprint
Definition: pcb_actions.h:463
static TOOL_ACTION layerChanged
Definition: pcb_actions.h:389
static TOOL_ACTION trackWidthInc
Definition: pcb_actions.h:394
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:586
static TOOL_ACTION editFootprint
Definition: pcb_actions.h:465
static TOOL_ACTION exportFootprint
Definition: pcb_actions.h:473
static TOOL_ACTION layerInner25
Definition: pcb_actions.h:372
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:303
static TOOL_ACTION highlightNet
Definition: pcb_actions.h:555
static TOOL_ACTION magneticSnapActiveLayer
Snapping controls.
Definition: pcb_actions.h:244
static TOOL_ACTION generateIPC2581File
Definition: pcb_actions.h:441
static TOOL_ACTION getAndPlace
Find an item and start moving.
Definition: pcb_actions.h:572
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:442
static TOOL_ACTION repeatLayout
Definition: pcb_actions.h:589
static TOOL_ACTION copyPadSettings
Copy the selected pad's settings to the board design settings.
Definition: pcb_actions.h:501
static TOOL_ACTION layerAlphaDec
Definition: pcb_actions.h:382
static TOOL_ACTION unselectItem
Definition: pcb_actions.h:72
static TOOL_ACTION routerRouteSelectedFromEnd
Definition: pcb_actions.h:265
static TOOL_ACTION routerHighlightMode
Actions to enable switching modes via hotkey assignments.
Definition: pcb_actions.h:273
static TOOL_ACTION routerWalkaroundMode
Definition: pcb_actions.h:275
static TOOL_ACTION routerShoveMode
Definition: pcb_actions.h:274
static TOOL_ACTION convertToLines
Definition: pcb_actions.h:581
static TOOL_ACTION drawZoneCutout
Definition: pcb_actions.h:224
static TOOL_ACTION genPushEdit
Definition: pcb_actions.h:288
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:481
static TOOL_ACTION hideNetInRatsnest
Definition: pcb_actions.h:562
static TOOL_ACTION hideLocalRatsnest
Definition: pcb_actions.h:565
static TOOL_ACTION group
Definition: pcb_actions.h:529
static TOOL_ACTION distributeHorizontallyGaps
Definition: pcb_actions.h:319
static TOOL_ACTION zoneDisplayFilled
Definition: pcb_actions.h:339
static TOOL_ACTION layerInner24
Definition: pcb_actions.h:371
static TOOL_ACTION viaSizeDec
Definition: pcb_actions.h:397
static TOOL_ACTION showNetInRatsnest
Definition: pcb_actions.h:563
static TOOL_ACTION drawRadialDimension
Definition: pcb_actions.h:218
static TOOL_ACTION genStartEdit
Definition: pcb_actions.h:286
static TOOL_ACTION tuneSingleTrack
Definition: pcb_actions.h:256
static TOOL_ACTION zoneFill
Definition: pcb_actions.h:404
static TOOL_ACTION cleanupTracksAndVias
Definition: pcb_actions.h:423
static TOOL_ACTION viaDisplayMode
Definition: pcb_actions.h:338
static TOOL_ACTION editTextAndGraphics
Definition: pcb_actions.h:420
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:448
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:524
static TOOL_ACTION swap
Swapping of selected items.
Definition: pcb_actions.h:143
static TOOL_ACTION toggleLastNetHighlight
Definition: pcb_actions.h:556
static TOOL_ACTION layerInner29
Definition: pcb_actions.h:376
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:540
static TOOL_ACTION placeCharacteristics
Definition: pcb_actions.h:226
static TOOL_ACTION pluginsShowFolder
Scripting Actions.
Definition: pcb_actions.h:415
static TOOL_ACTION viaSizeInc
Definition: pcb_actions.h:396
static TOOL_ACTION routerAutorouteSelected
Definition: pcb_actions.h:266
static TOOL_ACTION moveExact
Activation of the exact move tool.
Definition: pcb_actions.h:183
static TOOL_ACTION autoplaceOffboardComponents
Definition: pcb_actions.h:574
static TOOL_ACTION layerInner11
Definition: pcb_actions.h:358
static TOOL_ACTION routerDiffPairDialog
Definition: pcb_actions.h:270
static TOOL_ACTION explodePad
Definition: pcb_actions.h:483
static TOOL_ACTION routerContinueFromEnd
Definition: pcb_actions.h:262
static TOOL_ACTION zoneUnfill
Definition: pcb_actions.h:407
static TOOL_ACTION intersectPolygons
Intersection of multiple polygons.
Definition: pcb_actions.h:177
static TOOL_ACTION pointEditorMoveCorner
Definition: pcb_actions.h:302
static TOOL_ACTION layerAlphaInc
Definition: pcb_actions.h:381
static TOOL_ACTION layerPairPresetsCycle
Definition: pcb_actions.h:384
static TOOL_ACTION distributeHorizontallyCenters
Definition: pcb_actions.h:318
static TOOL_ACTION inspectConstraints
Definition: pcb_actions.h:549
static TOOL_ACTION generatePosFile
Definition: pcb_actions.h:439
static TOOL_ACTION globalDeletions
Definition: pcb_actions.h:422
static TOOL_ACTION newFootprint
Definition: pcb_actions.h:460
static TOOL_ACTION genRemove
Definition: pcb_actions.h:290
static TOOL_ACTION drillOrigin
Definition: pcb_actions.h:539
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:363
static TOOL_ACTION defaultPadProperties
Definition: pcb_actions.h:476
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:401
static TOOL_ACTION packAndMoveFootprints
Pack and start moving selected footprints.
Definition: pcb_actions.h:146
static TOOL_ACTION alignRight
Definition: pcb_actions.h:315
static TOOL_ACTION tuneSkew
Definition: pcb_actions.h:258
static TOOL_ACTION copyWithReference
copy command with manual reference point selection
Definition: pcb_actions.h:129
static TOOL_ACTION layerInner26
Definition: pcb_actions.h:373
static TOOL_ACTION layerInner18
Definition: pcb_actions.h:365
static TOOL_ACTION incWidth
Increase width of currently drawn line.
Definition: pcb_actions.h:235
static TOOL_ACTION repairBoard
Definition: pcb_actions.h:546
static TOOL_ACTION layerInner14
Definition: pcb_actions.h:361
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:329
static TOOL_ACTION trackDisplayMode
Definition: pcb_actions.h:336
static TOOL_ACTION showNetInspector
Definition: pcb_actions.h:452
static TOOL_ACTION selectLayerPair
Definition: pcb_actions.h:192
static TOOL_ACTION magneticSnapToggle
Definition: pcb_actions.h:246
static TOOL_ACTION microwaveCreateStubArc
Definition: pcb_actions.h:514
static TOOL_ACTION layerInner6
Definition: pcb_actions.h:353
static TOOL_ACTION dragFreeAngle
Definition: pcb_actions.h:198
static TOOL_ACTION clearHighlight
Definition: pcb_actions.h:554
static TOOL_ACTION generateGerbers
Definition: pcb_actions.h:437
static TOOL_ACTION inspectClearance
Definition: pcb_actions.h:548
static TOOL_ACTION convertToZone
Definition: pcb_actions.h:579
static TOOL_ACTION ddImportFootprint
Definition: pcb_actions.h:587
static TOOL_ACTION generatorsShowManager
Definition: pcb_actions.h:292
static TOOL_ACTION unselectItems
Definition: pcb_actions.h:77
static TOOL_ACTION zoneDisplayTriangulated
Definition: pcb_actions.h:342
static TOOL_ACTION genUpdateEdit
Definition: pcb_actions.h:287
static TOOL_ACTION generateReportFile
Definition: pcb_actions.h:440
static TOOL_ACTION updateLocalRatsnest
Definition: pcb_actions.h:566
static TOOL_ACTION spacingDecrease
Definition: pcb_actions.h:212
static TOOL_ACTION updateFootprints
Definition: pcb_actions.h:426
static TOOL_ACTION ungroup
Definition: pcb_actions.h:530
static TOOL_ACTION groupProperties
Definition: pcb_actions.h:307
static TOOL_ACTION importFootprint
Definition: pcb_actions.h:472
static TOOL_ACTION autoplaceSelectedComponents
Definition: pcb_actions.h:575
static TOOL_ACTION layerInner22
Definition: pcb_actions.h:369
static TOOL_ACTION alignBottom
Definition: pcb_actions.h:313
static TOOL_ACTION pickNewGroupMember
Definition: pcb_actions.h:308
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:352
static TOOL_ACTION removeUnusedPads
Definition: pcb_actions.h:430
static TOOL_ACTION zoneDisplayFractured
Definition: pcb_actions.h:341
static TOOL_ACTION ratsnestModeCycle
Definition: pcb_actions.h:335
static TOOL_ACTION drawVia
Definition: pcb_actions.h:222
static TOOL_ACTION regenerateAll
Definition: pcb_actions.h:283
static TOOL_ACTION applyPadSettings
Copy the default pad settings to the selected pad.
Definition: pcb_actions.h:504
static TOOL_ACTION alignLeft
Definition: pcb_actions.h:314
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:446
static TOOL_ACTION convertToPoly
Definition: pcb_actions.h:578
static TOOL_ACTION zoneDuplicate
Duplicate zone onto another layer.
Definition: pcb_actions.h:412
static TOOL_ACTION regenerateAllTuning
Generator tool.
Definition: pcb_actions.h:282
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
Definition: pcb_actions.h:493
static TOOL_ACTION importNetlist
Definition: pcb_actions.h:432
static TOOL_ACTION generatePlacementRuleAreas
Definition: pcb_actions.h:590
static TOOL_ACTION layerInner20
Definition: pcb_actions.h:367
static TOOL_ACTION layerInner7
Definition: pcb_actions.h:354
static TOOL_ACTION layerInner27
Definition: pcb_actions.h:374
static TOOL_ACTION diffFootprint
Definition: pcb_actions.h:550
static TOOL_ACTION moveIndividually
move items one-by-one
Definition: pcb_actions.h:123
static TOOL_ACTION changeFootprints
Definition: pcb_actions.h:428
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:300
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:418
static TOOL_ACTION showEeschema
Definition: pcb_actions.h:543
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:532
static TOOL_ACTION zoneUnfillAll
Definition: pcb_actions.h:408
static TOOL_ACTION pasteFootprint
Definition: pcb_actions.h:471
static TOOL_ACTION zoneFillDirty
Definition: pcb_actions.h:406
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:542
static TOOL_ACTION netColorModeCycle
Definition: pcb_actions.h:334
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:348
static TOOL_ACTION layerInner10
Definition: pcb_actions.h:357
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:512
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:362
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:518
static TOOL_ACTION footprintProperties
Definition: pcb_actions.h:475
static TOOL_ACTION layerInner17
Definition: pcb_actions.h:364
static TOOL_ACTION flipBoard
Definition: pcb_actions.h:391
static TOOL_ACTION layerBottom
Definition: pcb_actions.h:378
static TOOL_ACTION zoneDisplayOutline
Definition: pcb_actions.h:340
static TOOL_ACTION selectionActivate
Activation of the selection tool.
Definition: pcb_actions.h:62
static TOOL_ACTION ratsnestLineMode
Definition: pcb_actions.h:333
static TOOL_ACTION showFootprintAssociations
Definition: pcb_actions.h:551
static TOOL_ACTION layerInner19
Definition: pcb_actions.h:366
static TOOL_ACTION layerInner9
Definition: pcb_actions.h:356
static TOOL_ACTION pointEditorChamferCorner
Definition: pcb_actions.h:297
static TOOL_ACTION textOutlines
Display texts as lines.
Definition: pcb_actions.h:496
static TOOL_ACTION showPadNumbers
Definition: pcb_actions.h:344
static TOOL_ACTION checkFootprint
Definition: pcb_actions.h:478
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:558
static TOOL_ACTION microwaveCreateFunctionShape
Definition: pcb_actions.h:516
static TOOL_ACTION editLibFpInFpEditor
Definition: pcb_actions.h:449
static TOOL_ACTION zoneMerge
Definition: pcb_actions.h:409
static TOOL_ACTION duplicateFootprint
Definition: pcb_actions.h:466
static TOOL_ACTION closeOutline
Definition: pcb_actions.h:232
static TOOL_ACTION changeFootprint
Definition: pcb_actions.h:427
static TOOL_ACTION routerInlineDrag
Activation of the Push and Shove router (inline dragging mode)
Definition: pcb_actions.h:279
static TOOL_ACTION pointEditorRemoveCorner
Definition: pcb_actions.h:296
static TOOL_ACTION positionRelative
Activation of the position relative tool.
Definition: pcb_actions.h:325
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:469
static TOOL_ACTION amplDecrease
Definition: pcb_actions.h:214
static TOOL_ACTION unlock
Definition: pcb_actions.h:526
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:377
static TOOL_ACTION boardReannotate
Definition: pcb_actions.h:545
static TOOL_ACTION subtractPolygons
Subtract polygons from other polygons.
Definition: pcb_actions.h:175
static TOOL_ACTION layerTop
Definition: pcb_actions.h:347
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:276
static TOOL_ACTION regenerateSelected
Definition: pcb_actions.h:284
static TOOL_ACTION convertToArc
Definition: pcb_actions.h:582
static TOOL_ACTION layerInner4
Definition: pcb_actions.h:351
static TOOL_ACTION repairFootprint
Definition: pcb_actions.h:547
static TOOL_ACTION flip
Flipping of selected objects.
Definition: pcb_actions.h:136
static TOOL_ACTION alignCenterX
Definition: pcb_actions.h:316
static TOOL_ACTION placeFootprint
Definition: pcb_actions.h:228
static TOOL_ACTION pointEditorAddCorner
Definition: pcb_actions.h:295
static TOOL_ACTION routeSingleTrack
Activation of the Push and Shove router.
Definition: pcb_actions.h:251
static TOOL_ACTION layerInner13
Definition: pcb_actions.h:360
static TOOL_ACTION layerInner21
Definition: pcb_actions.h:368
static TOOL_ACTION selectItemInteractively
Selection of reference points/items.
Definition: pcb_actions.h:328
static TOOL_ACTION removeFromGroup
Definition: pcb_actions.h:531
static TOOL_ACTION createArray
Tool for creating an array of objects.
Definition: pcb_actions.h:490
static TOOL_ACTION boardStatistics
Definition: pcb_actions.h:544
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:421
static TOOL_ACTION layerNext
Definition: pcb_actions.h:379
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:453
static TOOL_ACTION copyFootprint
Definition: pcb_actions.h:470
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:321
static TOOL_ACTION placeStackup
Definition: pcb_actions.h:227
static TOOL_ACTION localRatsnestTool
Definition: pcb_actions.h:564
static TOOL_ACTION routerRouteSelected
Definition: pcb_actions.h:264
static TOOL_ACTION cleanupGraphics
Definition: pcb_actions.h:424
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:289
static TOOL_ACTION layerInner23
Definition: pcb_actions.h:370
static TOOL_ACTION distributeVerticallyCenters
Definition: pcb_actions.h:320
static TOOL_ACTION drawZone
Definition: pcb_actions.h:221
static TOOL_ACTION alignCenterY
Definition: pcb_actions.h:317
static TOOL_ACTION importSpecctraSession
Definition: pcb_actions.h:434
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:525
static TOOL_ACTION layerInner28
Definition: pcb_actions.h:375
static const TOOL_EVENT SnappingModeChangedByKeyEvent
Hotkey feedback.
Definition: pcb_actions.h:597
static const TOOL_EVENT LayerPairPresetChangedByKeyEvent
Definition: pcb_actions.h:598
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