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 The 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, see <https://www.gnu.org/licenses/>.
20 */
21
22#include "pcb_actions.h"
23#include "tool/tool_action.h"
24#include "tool/tool_event.h"
25#include <pcbnew_id.h>
26#include <bitmaps.h>
27#include <layer_ids.h>
30#include <pcb_reference_image.h>
31#include <tool/tool_manager.h>
35#include <router/pns_router.h>
38
39// Actions, being statically-defined, require specialized I18N handling. We continue to
40// use the _() macro so that string harvesting by the I18N framework doesn't have to be
41// specialized, but we don't translate on initialization and instead do it in the getters.
42
43#undef _
44#define _(s) s
45
46// clang-format off
47
48// CONVERT_TOOL
49//
51 .Name( "pcbnew.Convert.convertToPoly" )
52 .Scope( AS_GLOBAL )
53 .FriendlyName( _( "Create Polygon from Selection..." ) )
54 .Tooltip( _( "Creates a graphic polygon from the selection" ) )
56
58 .Name( "pcbnew.Convert.convertToZone" )
59 .Scope( AS_GLOBAL )
60 .FriendlyName( _( "Create Zone from Selection..." ) )
61 .Tooltip( _( "Creates a copper zone from the selection" ) )
62 .Icon( BITMAPS::add_zone ) );
63
65 .Name( "pcbnew.ConstraintEditor.addParallel" )
66 .Scope( AS_GLOBAL )
67 .FriendlyName( _( "Parallel" ) )
68 .Tooltip( _( "Constrain the two selected segments to be parallel" ) )
70 .ToolbarState( TOOLBAR_STATE::TOGGLE )
71 .Flags( AF_ACTIVATE )
72 .Parameter( PCB_CONSTRAINT_TYPE::PARALLEL ) );
73
75 .Name( "pcbnew.ConstraintEditor.addPerpendicular" )
76 .Scope( AS_GLOBAL )
77 .FriendlyName( _( "Perpendicular" ) )
78 .Tooltip( _( "Constrain the two selected segments to be perpendicular" ) )
80 .ToolbarState( TOOLBAR_STATE::TOGGLE )
81 .Flags( AF_ACTIVATE )
83
85 .Name( "pcbnew.ConstraintEditor.addEqualLength" )
86 .Scope( AS_GLOBAL )
87 .FriendlyName( _( "Equal Length" ) )
88 .Tooltip( _( "Constrain the two selected segments to be of equal length" ) )
90 .ToolbarState( TOOLBAR_STATE::TOGGLE )
91 .Flags( AF_ACTIVATE )
93
95 .Name( "pcbnew.ConstraintEditor.addCollinear" )
96 .Scope( AS_GLOBAL )
97 .FriendlyName( _( "Collinear" ) )
98 .Tooltip( _( "Constrain the two selected segments to be collinear" ) )
100 .ToolbarState( TOOLBAR_STATE::TOGGLE )
101 .Flags( AF_ACTIVATE )
102 .Parameter( PCB_CONSTRAINT_TYPE::COLLINEAR ) );
103
105 .Name( "pcbnew.ConstraintEditor.addAngular" )
106 .Scope( AS_GLOBAL )
107 .FriendlyName( _( "Angular Dimension" ) )
108 .Tooltip( _( "Constrain the angle between the two selected segments" ) )
110 .ToolbarState( TOOLBAR_STATE::TOGGLE )
111 .Flags( AF_ACTIVATE )
113
115 .Name( "pcbnew.ConstraintEditor.addTangent" )
116 .Scope( AS_GLOBAL )
117 .FriendlyName( _( "Tangent" ) )
118 .Tooltip( _( "Constrain the selected line and curve, or two curves, to touch tangentially" ) )
120 .ToolbarState( TOOLBAR_STATE::TOGGLE )
121 .Flags( AF_ACTIVATE )
122 .Parameter( PCB_CONSTRAINT_TYPE::TANGENT ) );
123
125 .Name( "pcbnew.ConstraintEditor.addHorizontal" )
126 .Scope( AS_GLOBAL )
127 .FriendlyName( _( "Horizontal" ) )
128 .Tooltip( _( "Constrain the selected segment to be horizontal" ) )
130 .ToolbarState( TOOLBAR_STATE::TOGGLE )
131 .Flags( AF_ACTIVATE )
132 .Parameter( PCB_CONSTRAINT_TYPE::HORIZONTAL ) );
133
135 .Name( "pcbnew.ConstraintEditor.addVertical" )
136 .Scope( AS_GLOBAL )
137 .FriendlyName( _( "Vertical" ) )
138 .Tooltip( _( "Constrain the selected segment to be vertical" ) )
140 .ToolbarState( TOOLBAR_STATE::TOGGLE )
141 .Flags( AF_ACTIVATE )
142 .Parameter( PCB_CONSTRAINT_TYPE::VERTICAL ) );
143
145 .Name( "pcbnew.ConstraintEditor.addFixedLength" )
146 .Scope( AS_GLOBAL )
147 .FriendlyName( _( "Fixed Length" ) )
148 .Tooltip( _( "Lock the selected segment to its current length" ) )
150 .ToolbarState( TOOLBAR_STATE::TOGGLE )
151 .Flags( AF_ACTIVATE )
152 .Parameter( PCB_CONSTRAINT_TYPE::FIXED_LENGTH ) );
153
155 .Name( "pcbnew.ConstraintEditor.addConcentric" )
156 .Scope( AS_GLOBAL )
157 .FriendlyName( _( "Concentric" ) )
158 .Tooltip( _( "Constrain the two selected circles, arcs or ellipses to share a center" ) )
160 .ToolbarState( TOOLBAR_STATE::TOGGLE )
161 .Flags( AF_ACTIVATE )
162 .Parameter( PCB_CONSTRAINT_TYPE::CONCENTRIC ) );
163
165 .Name( "pcbnew.ConstraintEditor.addEqualRadius" )
166 .Scope( AS_GLOBAL )
167 .FriendlyName( _( "Equal Radius" ) )
168 .Tooltip( _( "Constrain the two selected circles or arcs to be of equal radius" ) )
170 .ToolbarState( TOOLBAR_STATE::TOGGLE )
171 .Flags( AF_ACTIVATE )
172 .Parameter( PCB_CONSTRAINT_TYPE::EQUAL_RADIUS ) );
173
175 .Name( "pcbnew.ConstraintEditor.addFixedRadius" )
176 .Scope( AS_GLOBAL )
177 .FriendlyName( _( "Fixed Radius" ) )
178 .Tooltip( _( "Lock the selected circle or arc to its current radius" ) )
180 .ToolbarState( TOOLBAR_STATE::TOGGLE )
181 .Flags( AF_ACTIVATE )
182 .Parameter( PCB_CONSTRAINT_TYPE::FIXED_RADIUS ) );
183
185 .Name( "pcbnew.ConstraintEditor.addArcAngle" )
186 .Scope( AS_GLOBAL )
187 .FriendlyName( _( "Arc Angle" ) )
188 .Tooltip( _( "Drive the selected arc's swept angle" ) )
190 .ToolbarState( TOOLBAR_STATE::TOGGLE )
191 .Flags( AF_ACTIVATE )
192 .Parameter( PCB_CONSTRAINT_TYPE::ARC_ANGLE ) );
193
195 .Name( "pcbnew.ConstraintEditor.addFixedPosition" )
196 .Scope( AS_GLOBAL )
197 .FriendlyName( _( "Fix in Place..." ) )
198 .Tooltip( _( "Click a point to pin it where it is, grounding the shapes constrained to it" ) )
200 .ToolbarState( TOOLBAR_STATE::TOGGLE )
201 .Flags( AF_ACTIVATE )
203
205 .Name( "pcbnew.ConstraintEditor.addCoincident" )
206 .Scope( AS_GLOBAL )
207 .FriendlyName( _( "Coincident..." ) )
208 .Tooltip( _( "Click two shape endpoints to make them coincide" ) )
210 .ToolbarState( TOOLBAR_STATE::TOGGLE )
211 .Flags( AF_ACTIVATE )
212 .Parameter( PCB_CONSTRAINT_TYPE::COINCIDENT ) );
213
215 .Name( "pcbnew.ConstraintEditor.addPointOnLine" )
216 .Scope( AS_GLOBAL )
217 .FriendlyName( _( "Point on Line..." ) )
218 .Tooltip( _( "Click an endpoint, then a segment or circle, to put the point on it" ) )
220 .ToolbarState( TOOLBAR_STATE::TOGGLE )
221 .Flags( AF_ACTIVATE )
223
225 .Name( "pcbnew.ConstraintEditor.addMidpoint" )
226 .Scope( AS_GLOBAL )
227 .FriendlyName( _( "Midpoint..." ) )
228 .Tooltip( _( "Click an endpoint, then a segment, to put the point at its midpoint" ) )
230 .ToolbarState( TOOLBAR_STATE::TOGGLE )
231 .Flags( AF_ACTIVATE )
232 .Parameter( PCB_CONSTRAINT_TYPE::MIDPOINT ) );
233
235 .Name( "pcbnew.ConstraintEditor.addSymmetric" )
236 .Scope( AS_GLOBAL )
237 .FriendlyName( _( "Symmetric..." ) )
238 .Tooltip( _( "Click two endpoints, then a segment axis, to mirror them across it" ) )
240 .ToolbarState( TOOLBAR_STATE::TOGGLE )
241 .Flags( AF_ACTIVATE )
242 .Parameter( PCB_CONSTRAINT_TYPE::SYMMETRIC ) );
243
245 .Name( "pcbnew.ConstraintEditor.showConstraints" )
246 .Scope( AS_GLOBAL )
247 .FriendlyName( _( "Always Show Geometric Constraints" ) )
248 .Tooltip( _( "Always show the geometric-constraint diagnostics overlay" ) )
249 .Flags( AF_NONE )
250 .Icon( BITMAPS::measurement ) );
251
253 .Name( "pcbnew.ConstraintEditor.hideConstraints" )
254 .Scope( AS_GLOBAL )
255 .FriendlyName( _( "Show Geometric Constraints on Hover Only" ) )
256 .Tooltip( _( "Reveal a shape's geometric constraints only while hovering it" ) )
257 .Flags( AF_NONE )
258 .Icon( BITMAPS::measurement ) );
259
261 .Name( "pcbnew.ConstraintEditor.manageConstraints" )
262 .Scope( AS_GLOBAL )
263 .FriendlyName( _( "Geometric Constraints..." ) )
264 .Tooltip( _( "List, locate and delete the board's geometric constraints" ) )
265 .Icon( BITMAPS::measurement ) );
266
268 .Name( "pcbnew.ConstraintEditor.removeConstraints" )
269 .Scope( AS_GLOBAL )
270 .FriendlyName( _( "Remove Geometric Constraints" ) )
271 .Tooltip( _( "Remove geometric constraints referencing the selected items" ) )
272 .Icon( BITMAPS::measurement ) );
273
275 .Name( "pcbnew.EditorControl.showConstraintsPanel" )
276 .Scope( AS_GLOBAL )
277 .FriendlyName( _( "Geometric Constraints" ) )
278 .Tooltip( _( "Show/hide the geometric constraints panel" ) )
279 .Icon( BITMAPS::measurement ) );
280
282 .Name( "pcbnew.ConstraintEditor.toggleAutoConstraints" )
283 .Scope( AS_GLOBAL )
284 .FriendlyName( _( "Automatic Constraints" ) )
285 .Tooltip( _( "Automatically add geometric constraints while drawing" ) )
287 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
288
290 .Name( "pcbnew.Convert.convertToKeepout" )
291 .Scope( AS_GLOBAL )
292 .FriendlyName( _( "Create Rule Area from Selection..." ) )
293 .Tooltip( _( "Creates a rule area from the selection" ) )
294 .Icon( BITMAPS::add_keepout_area ) );
295
297 .Name( "pcbnew.Convert.convertToLines" )
298 .Scope( AS_GLOBAL )
299 .FriendlyName( _( "Create Lines from Selection..." ) )
300 .Tooltip( _( "Creates graphic lines from the selection" ) )
301 .Icon( BITMAPS::add_line ) );
302
304 .Name( "pcbnew.Convert.convertToArc" )
305 .Scope( AS_GLOBAL )
306 .FriendlyName( _( "Create Arc from Selection" ) )
307 .Tooltip( _( "Creates an arc from the selected line segment" ) )
308 .Icon( BITMAPS::add_arc ) );
309
311 .Name( "pcbnew.Convert.convertToTracks" )
312 .Scope( AS_GLOBAL )
313 .FriendlyName( _( "Create Tracks from Selection" ) )
314 .Tooltip( _( "Creates tracks from the selected graphic lines" ) )
315 .Icon( BITMAPS::add_tracks ) );
316
318 .Name( "pcbnew.Convert.outsetItems" )
319 .Scope( AS_GLOBAL )
320 .FriendlyName( _( "Create Outsets from Selection..." ) )
321 .Tooltip( _( "Create outset lines from the selected item" ) )
323
324
325// DRAWING_TOOL
326//
328 .Name( "pcbnew.InteractiveDrawing.line" )
329 .Scope( AS_GLOBAL )
330 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'L' )
331 .LegacyHotkeyName( "Draw Line" )
332 .FriendlyName( _( "Draw Lines" ) )
333 .ToolbarState( TOOLBAR_STATE::TOGGLE )
335 .Flags( AF_ACTIVATE ) );
336
338 .Name( "pcbnew.InteractiveDrawing.graphicPolygon" )
339 .Scope( AS_GLOBAL )
340 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'P' )
341 .LegacyHotkeyName( "Draw Graphic Polygon" )
342 .FriendlyName( _( "Draw Polygons" ) )
343 .ToolbarState( TOOLBAR_STATE::TOGGLE )
345 .Flags( AF_ACTIVATE )
346 .Parameter( ZONE_MODE::GRAPHIC_POLYGON ) );
347
349 .Name( "pcbnew.InteractiveDrawing.rectangle" )
350 .Scope( AS_GLOBAL )
351 .FriendlyName( _( "Draw Rectangles" ) )
352 .ToolbarState( TOOLBAR_STATE::TOGGLE )
354 .Flags( AF_ACTIVATE ) );
355
357 .Name( "pcbnew.InteractiveDrawing.circle" )
358 .Scope( AS_GLOBAL )
359 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'C' )
360 .LegacyHotkeyName( "Draw Circle" )
361 .FriendlyName( _( "Draw Circles" ) )
362 .ToolbarState( TOOLBAR_STATE::TOGGLE )
363 .Icon( BITMAPS::add_circle )
364 .Flags( AF_ACTIVATE ) );
365
367 .Name( "pcbnew.InteractiveDrawing.ellipse" )
368 .Scope( AS_GLOBAL )
369 .FriendlyName( _( "Draw Ellipse" ) )
370 .Tooltip( _( "Draw an ellipse" ) )
371 .ToolbarState( TOOLBAR_STATE::TOGGLE )
372 .Icon( BITMAPS::add_ellipse )
373 .Flags( AF_ACTIVATE ) );
374
376 .Name( "pcbnew.InteractiveDrawing.ellipseArc" )
377 .Scope( AS_GLOBAL )
378 .FriendlyName( _( "Draw Elliptical Arcs" ) )
379 .Tooltip( _( "Draw an elliptical arc" ) )
380 .ToolbarState( TOOLBAR_STATE::TOGGLE )
382 .Flags( AF_ACTIVATE ) );
383
385 .Name( "pcbnew.InteractiveDrawing.arc" )
386 .Scope( AS_GLOBAL )
387 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'A' )
388 .LegacyHotkeyName( "Draw Arc" )
389 .FriendlyName( _( "Draw Arcs" ) )
390 .ToolbarState( TOOLBAR_STATE::TOGGLE )
391 .Icon( BITMAPS::add_arc )
392 .Flags( AF_ACTIVATE ) );
393
395 .Name( "pcbnew.InteractiveDrawing.bezier" )
396 .Scope( AS_GLOBAL )
397 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'B' )
398 .FriendlyName( _( "Draw Bezier Curve" ) )
399 .ToolbarState( TOOLBAR_STATE::TOGGLE )
400 .Icon( BITMAPS::add_bezier )
401 .Flags( AF_ACTIVATE ) );
402
404 .Name( "pcbnew.InteractiveDrawing.barcode" )
405 .Scope( AS_GLOBAL )
406 .LegacyHotkeyName( "Add Barcode" )
407 .FriendlyName( _( "Add Barcode" ) )
408 .Tooltip( _( "Add a barcode" ) )
409 .Icon( BITMAPS::add_barcode )
410 .Flags( AF_ACTIVATE ) );
411
412
414 .Name( "pcbnew.InteractiveDrawing.placeCharacteristics" )
415 .Scope( AS_GLOBAL )
416 .LegacyHotkeyName( "Add Board Characteristics" )
417 .FriendlyName( _( "Add Board Characteristics" ) )
418 .Tooltip( _( "Add a board characteristics table on a graphic layer" ) )
419 .ToolbarState( TOOLBAR_STATE::TOGGLE )
420 .Flags( AF_ACTIVATE ) );
421
423 .Name( "pcbnew.InteractiveDrawing.placeStackup" )
424 .Scope( AS_GLOBAL )
425 .LegacyHotkeyName( "Add Stackup Table" )
426 .FriendlyName( _( "Add Stackup Table" ) )
427 .Tooltip( _( "Add a board stackup table on a graphic layer" ) )
428 .ToolbarState( TOOLBAR_STATE::TOGGLE )
429 .Flags( AF_ACTIVATE ) );
430
432 .Name( "pcbnew.InteractiveDrawing.placePoint" )
433 .Scope( AS_GLOBAL )
434 .FriendlyName( _( "Place Point" ) )
435 .Tooltip( _( "Add reference/snap points" ) )
436 .ToolbarState( TOOLBAR_STATE::TOGGLE )
437 .Icon( BITMAPS::add_point )
438 .Flags( AF_ACTIVATE ) );
439
441 .Name( "pcbnew.InteractiveDrawing.placeReferenceImage" )
442 .Scope( AS_GLOBAL )
443 .FriendlyName( _( "Place Reference Images" ) )
444 .Tooltip( _( "Add bitmap images to be used as reference (images will not be included in any output)" ) )
445 .ToolbarState( TOOLBAR_STATE::TOGGLE )
446 .Icon( BITMAPS::image )
447 .Flags( AF_ACTIVATE )
448 .Parameter<PCB_REFERENCE_IMAGE*>( nullptr ) );
449
451 .Name( "pcbnew.InteractiveDrawing.text" )
452 .Scope( AS_GLOBAL )
453 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'T' )
454 .LegacyHotkeyName( "Add Text" )
455 .FriendlyName( _( "Draw Text" ) )
456 .ToolbarState( TOOLBAR_STATE::TOGGLE )
457 .Icon( BITMAPS::text )
458 .Flags( AF_ACTIVATE ) );
459
461 .Name( "pcbnew.InteractiveDrawing.textbox" )
462 .Scope( AS_GLOBAL )
463 .FriendlyName( _( "Draw Text Boxes" ) )
464 .ToolbarState( TOOLBAR_STATE::TOGGLE )
465 .Icon( BITMAPS::add_textbox )
466 .Flags( AF_ACTIVATE ) );
467
469 .Name( "pcbnew.InteractiveDrawing.drawTable" )
470 .Scope( AS_GLOBAL )
471 .FriendlyName( _( "Draw Tables" ) )
472 .ToolbarState( TOOLBAR_STATE::TOGGLE )
473 .Icon( BITMAPS::table )
474 .Flags( AF_ACTIVATE ) );
475
477 .Name( "pcbnew.lengthTuner.SpacingIncrease" )
478 .Scope( AS_GLOBAL )
479 .DefaultHotkey( '1' )
480 .LegacyHotkeyName( "Increase meander spacing by one step." )
481 .FriendlyName( _( "Increase Spacing" ) )
482 .Tooltip( _( "Increase tuning pattern spacing by one step." ) )
484
486 .Name( "pcbnew.lengthTuner.SpacingDecrease" )
487 .Scope( AS_GLOBAL )
488 .DefaultHotkey( '2' )
489 .LegacyHotkeyName( "Decrease meander spacing by one step." )
490 .FriendlyName( _( "Decrease Spacing" ) )
491 .Tooltip( _( "Decrease tuning pattern spacing by one step." ) )
493
495 .Name( "pcbnew.lengthTuner.AmplIncrease" )
496 .Scope( AS_GLOBAL )
497 .DefaultHotkey( '3' )
498 .LegacyHotkeyName( "Increase meander amplitude by one step." )
499 .FriendlyName( _( "Increase Amplitude" ) )
500 .Tooltip( _( "Increase tuning pattern amplitude by one step." ) )
502
504 .Name( "pcbnew.lengthTuner.AmplDecrease" )
505 .Scope( AS_GLOBAL )
506 .DefaultHotkey( '4' )
507 .LegacyHotkeyName( "Decrease meander amplitude by one step." )
508 .FriendlyName( _( "Decrease Amplitude" ) )
509 .Tooltip( _( "Decrease tuning pattern amplitude by one step." ) )
511
512
514 .Name( "pcbnew.InteractiveDrawing.alignedDimension" )
515 .Scope( AS_GLOBAL )
516 .LegacyHotkeyName( "Add Dimension" )
517 .FriendlyName( _( "Draw Aligned Dimensions" ) )
518 .ToolbarState( TOOLBAR_STATE::TOGGLE )
520 .Flags( AF_ACTIVATE ) );
521
523 .Name( "pcbnew.InteractiveDrawing.centerDimension" )
524 .Scope( AS_GLOBAL )
525 .FriendlyName( _( "Draw Center Dimensions" ) )
526 .ToolbarState( TOOLBAR_STATE::TOGGLE )
528 .Flags( AF_ACTIVATE ) );
529
531 .Name( "pcbnew.InteractiveDrawing.radialDimension" )
532 .Scope( AS_GLOBAL )
533 .FriendlyName( _( "Draw Radial Dimensions" ) )
534 .ToolbarState( TOOLBAR_STATE::TOGGLE )
536 .Flags( AF_ACTIVATE ) );
537
539 .Name( "pcbnew.InteractiveDrawing.orthogonalDimension" )
540 .Scope( AS_GLOBAL )
541 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'H' )
542 .FriendlyName( _( "Draw Orthogonal Dimensions" ) )
543 .ToolbarState( TOOLBAR_STATE::TOGGLE )
545 .Flags( AF_ACTIVATE ) );
546
548 .Name( "pcbnew.InteractiveDrawing.leader" )
549 .Scope( AS_GLOBAL )
550 .FriendlyName( _( "Draw Leaders" ) )
551 .ToolbarState( TOOLBAR_STATE::TOGGLE )
552 .Icon( BITMAPS::add_leader )
553 .Flags( AF_ACTIVATE ) );
554
556 .Name( "pcbnew.InteractiveDrawing.zone" )
557 .Scope( AS_GLOBAL )
558#ifdef __WXOSX_MAC__
559 .DefaultHotkey( MD_ALT + 'Z' )
560#else
561 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'Z' )
562#endif
563 .LegacyHotkeyName( "Add Filled Zone" )
564 .FriendlyName( _( "Draw Filled Zones" ) )
565 .ToolbarState( TOOLBAR_STATE::TOGGLE )
566 .Icon( BITMAPS::add_zone )
567 .Flags( AF_ACTIVATE )
568 .Parameter( ZONE_MODE::ADD ) );
569
571 .Name( "pcbnew.InteractiveDrawing.copperThievingZone" )
572 .Scope( AS_GLOBAL )
573 .FriendlyName( _( "Draw Copper Thieving Zone" ) )
574 .Tooltip( _( "Add a non-electrical thieving zone for plating-balance copper" ) )
575 .ToolbarState( TOOLBAR_STATE::TOGGLE )
576 .Icon( BITMAPS::add_zone )
577 .Flags( AF_ACTIVATE )
578 .Parameter( ZONE_MODE::ADD ) );
579
581 .Name( "pcbnew.InteractiveDrawing.via" )
582 .Scope( AS_GLOBAL )
583 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'X' )
584 .LegacyHotkeyName( "Add Vias" )
585 .FriendlyName( _( "Place Vias" ) )
586 .Tooltip( _( "Place free-standing vias" ) )
587 .ToolbarState( TOOLBAR_STATE::TOGGLE )
588 .Icon( BITMAPS::add_via )
589 .Flags( AF_ACTIVATE ) );
590
592 .Name( "pcbnew.InteractiveDrawing.ruleArea" )
593 .Scope( AS_GLOBAL )
594 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'K' )
595 .LegacyHotkeyName( "Add Keepout Area" )
596 .FriendlyName( _( "Draw Rule Areas" ) )
597 .ToolbarState( TOOLBAR_STATE::TOGGLE )
599 .Flags( AF_ACTIVATE )
600 .Parameter( ZONE_MODE::ADD ) );
601
603 .Name( "pcbnew.InteractiveDrawing.zoneCutout" )
604 .Scope( AS_GLOBAL )
605 .DefaultHotkey( MD_SHIFT + 'C' )
606 .LegacyHotkeyName( "Add a Zone Cutout" )
607 .FriendlyName( _( "Add a Zone Cutout" ) )
608 .Tooltip( _( "Add a cutout to an existing zone or rule area" ) )
609 .ToolbarState( TOOLBAR_STATE::TOGGLE )
611 .Flags( AF_ACTIVATE )
612 .Parameter( ZONE_MODE::CUTOUT ) );
613
615 .Name( "pcbnew.InteractiveDrawing.similarZone" )
616 .Scope( AS_GLOBAL )
617 .DefaultHotkey( MD_CTRL + MD_SHIFT + '.' )
618 .LegacyHotkeyName( "Add a Similar Zone" )
619 .FriendlyName( _( "Add a Similar Zone" ) )
620 .Tooltip( _( "Add a zone with the same settings as an existing zone" ) )
621 .Icon( BITMAPS::add_zone )
622 .Flags( AF_ACTIVATE )
623 .Parameter( ZONE_MODE::SIMILAR ) );
624
626 .Name( "pcbnew.InteractiveDrawing.placeImportedGraphics" )
627 .Scope( AS_GLOBAL )
628 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'F' )
629 .LegacyHotkeyName( "Place DXF" )
630 .FriendlyName( _( "Import Graphics..." ) )
631 .Tooltip( _( "Import 2D drawing file" ) )
633 .Flags( AF_ACTIVATE ) );
634
636 .Name( "pcbnew.InteractiveDrawing.setAnchor" )
637 .Scope( AS_GLOBAL )
638 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'N' )
639 .LegacyHotkeyName( "Place the Footprint Anchor" )
640 .FriendlyName( _( "Place the Footprint Anchor" ) )
641 .Tooltip( _( "Set the anchor point of the footprint" ) )
642 .ToolbarState( TOOLBAR_STATE::TOGGLE )
643 .Icon( BITMAPS::anchor )
644 .Flags( AF_ACTIVATE ) );
645
647 .Name( "pcbnew.InteractiveDrawing.incWidth" )
648 .Scope( AS_CONTEXT )
649 .DefaultHotkey( MD_CTRL + '+' )
650 .LegacyHotkeyName( "Increase Line Width" )
651 .FriendlyName( _( "Increase Line Width" ) ) );
652
654 .Name( "pcbnew.InteractiveDrawing.decWidth" )
655 .Scope( AS_CONTEXT )
656 .DefaultHotkey( MD_CTRL + '-' )
657 .LegacyHotkeyName( "Decrease Line Width" )
658 .FriendlyName( _( "Decrease Line Width" ) ) );
659
660
662 .Name( "pcbnew.InteractiveDrawing.changeDimensionArrows" )
663 .Scope( AS_CONTEXT )
664 .FriendlyName( "Switch Dimension Arrows" )
665 .Tooltip( "Switch between inward and outward dimension arrows" ) );
666
667
669 .Name( "common.Control.magneticSnapActiveLayer" )
670 .Scope( AS_GLOBAL )
671 .FriendlyName( _( "Snap to Objects on the Active Layer Only" ) )
672 .Tooltip( _( "Enables snapping to objects on the active layer only" ) ) );
673
675 .Name( "common.Control.magneticSnapAllLayers" )
676 .Scope( AS_GLOBAL )
677 .FriendlyName( _( "Snap to Objects on All Layers" ) )
678 .Tooltip( _( "Enables snapping to objects on all visible layers" ) ) );
679
681 .Name( "common.Control.magneticSnapToggle" )
682 .Scope( AS_GLOBAL )
683 .DefaultHotkey( MD_SHIFT + 'S' )
684 .FriendlyName( _( "Toggle Snapping Between Active and All Layers" ) )
685 .Tooltip( _( "Toggles between snapping on all visible layers and only the active area" ) ) );
686
688 .Name( "pcbnew.InteractiveDrawing.closeOutline" )
689 .Scope( AS_CONTEXT )
690 .FriendlyName( _( "Close Outline" ) )
691 .Tooltip( _( "Close the in progress outline" ) )
692 .Icon( BITMAPS::checked_ok ) );
693
694// DRC
695//
697 .Name( "pcbnew.DRCTool.runDRC" )
698 .Scope( AS_GLOBAL )
699 .FriendlyName( _( "Design Rules Checker" ) )
700 .Tooltip( _( "Show the design rules checker window" ) )
701 .Icon( BITMAPS::erc ) );
702
703// PCB_DESIGN_BLOCK_CONTROL
705 .Name( "pcbnew.InteractiveDrawing.placeDesignBlock" )
706 .Scope( AS_GLOBAL )
707 .DefaultHotkey( MD_SHIFT + 'B' )
708 .FriendlyName( _( "Place Design Block" ) )
709 .Tooltip( _( "Add selected design block to current board" ) )
711 .Flags( AF_ACTIVATE )
712 .Parameter<DESIGN_BLOCK*>( nullptr ) );
713
715 .Name( "pcbnew.InteractiveDrawing.placeLinkedDesignBlock" )
716 .Scope( AS_GLOBAL )
717 .FriendlyName( _( "Place Linked Design Block" ) )
718 .Tooltip( _( "Place design block linked to selected group" ) )
720 .Flags( AF_ACTIVATE )
721 .Parameter<bool*>( nullptr ) );
722
724 .Name( "pcbnew.InteractiveDrawing.applyDesignBlockLayout" )
725 .Scope( AS_GLOBAL )
726 .FriendlyName( _( "Apply Design Block Layout" ) )
727 .Tooltip( _( "Apply linked design block layout to selected group" ) )
729 .Flags( AF_ACTIVATE ) );
730
732 .Name( "pcbnew.InteractiveDrawing.saveToLinkedDesignBlock" )
733 .Scope( AS_GLOBAL )
734 .FriendlyName( _( "Save to Linked Design Block" ) )
735 .Tooltip( _( "Save selected group to linked design block" ) )
737 .Flags( AF_ACTIVATE ) );
738
740 .Name( "pcbnew.PcbDesignBlockControl.showDesignBlockPanel" )
741 .Scope( AS_GLOBAL )
742 .FriendlyName( _( "Design Blocks" ) )
743 .Tooltip( _( "Show/hide design blocks library" ) )
744 .Icon( BITMAPS::search_tree ) );
745
747 .Name( "pcbnew.PcbDesignBlockControl.saveBoardAsDesignBlock" )
748 .Scope( AS_GLOBAL )
749 .FriendlyName( _( "Save Board as Design Block..." ) )
750 .Tooltip( _( "Create a new design block from the current board" ) )
751 .Icon( BITMAPS::new_component ) );
752
754 .Name( "pcbnew.PcbDesignBlockControl.saveSelectionAsDesignBlock" )
755 .Scope( AS_GLOBAL )
756 .FriendlyName( _( "Save Selection as Design Block..." ) )
757 .Tooltip( _( "Create a new design block from the current selection" ) )
758 .Icon( BITMAPS::new_component ) );
759
761 .Name( "pcbnew.PcbDesignBlockControl.updateDesignBlockFromBoard" )
762 .Scope( AS_GLOBAL )
763 .FriendlyName( _( "Update Design Block from Board" ) )
764 .Tooltip( _( "Set design block layout to current board" ) )
765 .Icon( BITMAPS::save ) );
766
768 .Name( "pcbnew.PcbDesignBlockControl.updateDesignBlockFromSelection" )
769 .Scope( AS_GLOBAL )
770 .FriendlyName( _( "Update Design Block from Selection" ) )
771 .Tooltip( _( "Set design block layout to current selection" ) )
772 .Icon( BITMAPS::save ) );
773
775 .Name( "pcbnew.PcbDesignBlockControl.deleteDesignBlock" )
776 .Scope( AS_GLOBAL )
777 .FriendlyName( _( "Delete Design Block" ) )
778 .Tooltip( _( "Remove the selected design block from its library" ) )
779 .Icon( BITMAPS::trash ) );
780
782 .Name( "pcbnew.PcbDesignBlockControl.editDesignBlockProperties" )
783 .Scope( AS_GLOBAL )
784 .FriendlyName( _( "Properties..." ) )
785 .Tooltip( _( "Edit properties of design block" ) )
786 .Icon( BITMAPS::edit ) );
787
788// EDIT_TOOL
789//
791 .Name( "pcbnew.EditorControl.EditFpInFpEditor" )
792 .Scope( AS_GLOBAL )
793 .DefaultHotkey( MD_CTRL + 'E' )
794 .LegacyHotkeyName( "Edit with Footprint Editor" )
795 .FriendlyName( _( "Open in Footprint Editor" ) )
796 .Icon( BITMAPS::module_editor ) );
797
799 .Name( "pcbnew.EditorControl.EditLibFpInFpEditor" )
800 .Scope( AS_GLOBAL )
801 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
802 .FriendlyName( _( "Edit Library Footprint..." ) )
803 .Icon( BITMAPS::module_editor ) );
804
806 .Name( "pcbnew.InteractiveEdit.toggleExcludeFromBOM" )
807 .Scope( AS_GLOBAL )
808 .FriendlyName( _( "Exclude from Bill of Materials" ) )
809 .Tooltip( _( "Toggle the exclude from bill of materials attribute" ) ) );
810
812 .Name( "pcbnew.InteractiveEdit.toggleExcludeFromPosFiles" )
813 .Scope( AS_GLOBAL )
814 .FriendlyName( _( "Exclude from Position Files" ) )
815 .Tooltip( _( "Toggle the exclude from position files attribute" ) ) );
816
818 .Name( "pcbnew.EditorControl.findByProperties" )
819 .Scope( AS_GLOBAL )
820 .FriendlyName( _( "Find by Properties..." ) )
821 .Tooltip( _( "Find board items matching property criteria or expressions" ) )
822 .Icon( BITMAPS::find ) );
823
825 .Name( "pcbnew.InteractiveEdit.FindMove" )
826 .Scope( AS_GLOBAL )
827 .DefaultHotkey( 'T' )
828 .LegacyHotkeyName( "Get and Move Footprint" )
829 .FriendlyName( _( "Get and Move Footprint" ) )
830 .Tooltip( _( "Selects a footprint by reference designator and places it under the cursor for moving" ) )
831 .Icon( BITMAPS::move )
832 .Flags( AF_ACTIVATE ) );
833
835 .Name( "pcbnew.InteractiveMove.move" )
836 .Scope( AS_GLOBAL )
837 .DefaultHotkey( 'M' )
838 .LegacyHotkeyName( "Move Item" )
839 .FriendlyName( _( "Move" ) )
840 .Icon( BITMAPS::move )
841 .Flags( AF_ACTIVATE )
843
845 .Name( "pcbnew.InteractiveMove.moveIndividually" )
846 .Scope( AS_GLOBAL )
847 .DefaultHotkey( MD_CTRL + 'M' )
848 .FriendlyName( _( "Move Individually" ) )
849 .Tooltip( _( "Moves the selected items one-by-one" ) )
850 .Icon( BITMAPS::move )
851 .Flags( AF_ACTIVATE )
853
855 .Name( "pcbnew.InteractiveMove.moveWithReference" )
856 .Scope( AS_GLOBAL )
857 .FriendlyName( _( "Move with Reference..." ) )
858 .Tooltip( _( "Moves the selected item(s) with a specified starting point" ) )
859 .Icon( BITMAPS::move )
860 .Flags( AF_ACTIVATE )
862
864 .Name( "pcbnew.InteractiveMove.copyWithReference" )
865 .Scope( AS_GLOBAL )
866 .FriendlyName( _( "Copy with Reference..." ) )
867 .Tooltip( _( "Copy selected item(s) to clipboard with a specified starting point" ) )
868 .Icon( BITMAPS::copy )
869 .Flags( AF_ACTIVATE ) );
870
872 .Name( "pcbnew.InteractiveEdit.duplicateIncrementPads" )
873 .Scope( AS_GLOBAL )
874 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'D' )
875 .LegacyHotkeyName( "Duplicate Item and Increment" )
876 .FriendlyName( _( "Duplicate and Increment" ) )
877 .Tooltip( _( "Duplicates the selected item(s), incrementing pad numbers" ) )
878 .Icon( BITMAPS::duplicate ) );
879
881 .Name( "pcbnew.InteractiveEdit.moveExact" )
882 .Scope( AS_GLOBAL )
883 .DefaultHotkey( MD_SHIFT + 'M' )
884 .LegacyHotkeyName( "Move Item Exactly" )
885 .FriendlyName( _( "Move Exactly..." ) )
886 .Tooltip( _( "Moves the selected item(s) by an exact amount" ) )
887 .Icon( BITMAPS::move_exactly ) );
888
890 .Name( "pcbnew.InteractiveEdit.moveCorner" )
891 .Scope( AS_GLOBAL )
892 .FriendlyName( _( "Move Corner To..." ) )
893 .Tooltip( _( "Move the active corner to an exact location" ) )
894 .Icon( BITMAPS::move_exactly ) );
895
897 .Name( "pcbnew.InteractiveEdit.moveMidpoint" )
898 .Scope( AS_GLOBAL )
899 .FriendlyName( _( "Move Midpoint To..." ) )
900 .Tooltip( _( "Move the active midpoint to an exact location" ) )
901 .Icon( BITMAPS::move_exactly ) );
902
904 .Name( "pcbnew.InteractiveEdit.rotateCw" )
905 .Scope( AS_GLOBAL )
906 .DefaultHotkey( MD_SHIFT + 'R' )
907 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
908 .LegacyHotkeyName( "Rotate Item Clockwise (Modern Toolset only)" )
909 .FriendlyName( _( "Rotate Clockwise" ) )
910 .Icon( BITMAPS::rotate_cw )
911 .Flags( AF_NONE )
912 .Parameter( -1 ) );
913
915 .Name( "pcbnew.InteractiveEdit.rotateCcw" )
916 .Scope( AS_GLOBAL )
917 .DefaultHotkey( 'R' )
918 .LegacyHotkeyName( "Rotate Item" )
919 .FriendlyName( _( "Rotate Counterclockwise" ) )
920 .Icon( BITMAPS::rotate_ccw )
921 .Flags( AF_NONE )
922 .Parameter( 1 ) );
923
925 .Name( "pcbnew.InteractiveEdit.flip" )
926 .Scope( AS_GLOBAL )
927 .DefaultHotkey( 'F' )
928 .LegacyHotkeyName( "Flip Item" )
929 .FriendlyName( _( "Change Side / Flip" ) )
930 .Tooltip( _( "Flips selected item(s) to opposite side of board" ) )
931 .Icon( BITMAPS::swap_layer ) );
932
934 .Name( "pcbnew.InteractiveEdit.mirrorHoriontally" )
935 .Scope( AS_GLOBAL )
936 .FriendlyName( _( "Mirror Horizontally" ) )
937 .Tooltip( _( "Mirrors selected item(s) across the Y axis" ) )
938 .Icon( BITMAPS::mirror_h ) );
939
941 .Name( "pcbnew.InteractiveEdit.mirrorVertically" )
942 .Scope( AS_GLOBAL )
943 .FriendlyName( _( "Mirror Vertically" ) )
944 .Tooltip( _( "Mirrors selected item(s) across the X axis" ) )
945 .Icon( BITMAPS::mirror_v ) );
946
948 .Name( "pcbnew.InteractiveEdit.swap" )
949 .Scope( AS_GLOBAL )
950 .DefaultHotkey( MD_ALT + 'S' )
951 .FriendlyName( _( "Swap" ) )
952 .Tooltip( _( "Swap positions of selected items" ) )
953 .Icon( BITMAPS::swap ) );
954
956 .Name( "pcbnew.InteractiveEdit.swapPadNets" )
957 .Scope( AS_GLOBAL )
958 .FriendlyName( _( "Swap Pad Nets" ) )
959 .Tooltip( _( "Swap nets between two selected pads and their connected copper" ) )
960 .Icon( BITMAPS::swap ) );
961
963 .Name( "pcbnew.InteractiveEdit.swapGateNets" )
964 .Scope( AS_GLOBAL )
965 .FriendlyName( _( "Swap Gate Nets" ) )
966 .Tooltip( _( "Swap nets between gates of a footprint and their connected copper" ) )
967 .Parameter<wxString>( wxString() )
968 .Icon( BITMAPS::swap ) );
969
971 .Name( "pcbnew.InteractiveEdit.packAndMoveFootprints" )
972 .Scope( AS_GLOBAL )
973 .DefaultHotkey( 'P' )
974 .FriendlyName( _( "Pack and Move Footprints" ) )
975 .Tooltip( _( "Sorts selected footprints by reference, packs based on size and initiates movement" ) )
976 .Icon( BITMAPS::pack_footprints ) );
977
979 .Name( "pcbnew.InteractiveEdit.skip" )
980 .Scope( AS_CONTEXT )
981 .DefaultHotkey( WXK_TAB )
982 .FriendlyName( _( "Skip" ) )
983 .Tooltip( _( "Skip to next item" ) )
984 .Icon( BITMAPS::right ) );
985
987 .Name( "pcbnew.InteractiveEdit.changeTrackWidth" )
988 .Scope( AS_GLOBAL )
989 .FriendlyName( _( "Change Track Width" ) )
990 .Tooltip( _( "Updates selected track & via sizes" ) ) );
991
993 .Name( "pcbnew.Control.changeTrackLayerNext" )
994 .Scope( AS_GLOBAL )
995 .DefaultHotkey( MD_CTRL + '+' )
996 .FriendlyName( "Switch Track to Next Layer" )
997 .Tooltip( _( "Switch track to next enabled copper layer" ) ) );
998
1000 .Name( "pcbnew.Control.changeTrackLayerPrev" )
1001 .Scope( AS_GLOBAL )
1002 .DefaultHotkey( MD_CTRL + '-' )
1003 .FriendlyName( "Switch Track to Previous Layer" )
1004 .Tooltip( _( "Switch track to previous enabled copper layer" ) ) );
1005
1007 .Name( "pcbnew.InteractiveEdit.filletTracks" )
1008 .Scope( AS_GLOBAL )
1009 .FriendlyName( _( "Fillet Tracks" ) )
1010 .Tooltip( _( "Adds arcs tangent to the selected straight track segments" ) ) );
1011
1013 .Name( "pcbnew.InteractiveEdit.filletLines" )
1014 .Scope( AS_GLOBAL )
1015 .FriendlyName( _( "Fillet Lines..." ) )
1016 .Tooltip( _( "Adds arcs tangent to the selected lines" ) )
1017 .Icon( BITMAPS::fillet ) );
1018
1020 .Name( "pcbnew.InteractiveEdit.chamferLines" )
1021 .Scope( AS_GLOBAL )
1022 .FriendlyName( _( "Chamfer Lines..." ) )
1023 .Tooltip( _( "Cut away corners between selected lines" ) )
1024 .Icon( BITMAPS::chamfer ) );
1025
1027 .Name( "pcbnew.InteractiveEdit.dogboneCorners" )
1028 .Scope( AS_GLOBAL )
1029 .FriendlyName( _( "Dogbone Corners..." ) )
1030 .Tooltip( _( "Add dogbone corners to selected lines" ) ) );
1031
1033 .Name( "pcbnew.InteractiveEdit.simplifyPolygons" )
1034 .Scope( AS_GLOBAL )
1035 .FriendlyName( _( "Simplify Polygons" ) )
1036 .Tooltip( _( "Simplify polygon outlines, removing superfluous points" ) ) );
1037
1039 .Name( "pcbnew.InteractiveEdit.editVertices" )
1040 .Scope( AS_GLOBAL )
1041 .FriendlyName( _( "Edit Corners..." ) )
1042 .Tooltip( _( "Edit polygon corners using a table" ) )
1043 .Icon( BITMAPS::edit ) );
1044
1046 .Name( "pcbnew.InteractiveEdit.healShapes" )
1047 .Scope( AS_GLOBAL )
1048 .FriendlyName( _( "Heal Shapes" ) )
1049 .Tooltip( _( "Connect shapes, possibly extending or cutting them, or adding extra geometry" ) )
1050 .Icon( BITMAPS::heal_shapes ) );
1051
1053 .Name( "pcbnew.InteractiveEdit.extendLines" )
1054 .Scope( AS_GLOBAL )
1055 .FriendlyName( _( "Extend Lines to Meet" ) )
1056 .Tooltip( _( "Extend lines to meet each other" ) ) );
1057
1059 .Name( "pcbnew.InteractiveEdit.mergePolygons" )
1060 .Scope( AS_GLOBAL )
1061 .FriendlyName( _( "Merge Polygons" ) )
1062 .Tooltip( _( "Merge selected polygons into a single polygon" ) )
1063 .Icon( BITMAPS::merge_polygons ) );
1064
1066 .Name( "pcbnew.InteractiveEdit.subtractPolygons" )
1067 .Scope( AS_GLOBAL )
1068 .FriendlyName( _( "Subtract Polygons" ) )
1069 .Tooltip( _( "Subtract selected polygons from the last one selected" ) )
1070 .Icon( BITMAPS::subtract_polygons ) );
1071
1073 .Name( "pcbnew.InteractiveEdit.intersectPolygons" )
1074 .Scope( AS_GLOBAL )
1075 .FriendlyName( _( "Intersect Polygons" ) )
1076 .Tooltip( _( "Create the intersection of the selected polygons" ) )
1077 .Icon( BITMAPS::intersect_polygons ) );
1078
1080 .Name( "pcbnew.InteractiveEdit.deleteFull" )
1081 .Scope( AS_GLOBAL )
1082 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DELETE ) )
1083 .LegacyHotkeyName( "Delete Full Track" )
1084 .FriendlyName( _( "Delete Full Track" ) )
1085 .Tooltip( _( "Deletes selected item(s) and copper connections" ) )
1086 .Icon( BITMAPS::delete_cursor )
1087 .Flags( AF_NONE )
1088 .Parameter( PCB_ACTIONS::REMOVE_FLAGS::ALT ) );
1089
1091 .Name( "pcbnew.InteractiveEdit.properties" )
1092 .Scope( AS_GLOBAL )
1093 .DefaultHotkey( 'E' )
1094 .LegacyHotkeyName( "Edit Item" )
1095 .FriendlyName( _( "Properties..." ) )
1096 .Icon( BITMAPS::edit ) );
1097
1098// ARRAY
1099//
1101 .Name( "pcbnew.Array.createArray" )
1102 .Scope( AS_GLOBAL )
1103 .DefaultHotkey( MD_CTRL + 'T' )
1104 .LegacyHotkeyName( "Create Array" )
1105 .FriendlyName( _( "Create Array..." ) )
1106 .Icon( BITMAPS::array )
1107 .Flags( AF_ACTIVATE ) );
1108
1109// FOOTPRINT_EDITOR_CONTROL
1110//
1112 .Name( "pcbnew.ModuleEditor.newFootprint" )
1113 .Scope( AS_GLOBAL )
1114 .DefaultHotkey( MD_CTRL + 'N' )
1115 .LegacyHotkeyName( "New" )
1116 .FriendlyName( _( "New Footprint" ) )
1117 .Tooltip( _( "Create a new, empty footprint" ) )
1118 .Icon( BITMAPS::new_footprint ) );
1119
1121 .Name( "pcbnew.ModuleEditor.createFootprint" )
1122 .Scope( AS_GLOBAL )
1123 .FriendlyName( _( "Create Footprint..." ) )
1124 .Tooltip( _( "Create a new footprint using the Footprint Wizard" ) )
1125 .Icon( BITMAPS::module_wizard ) );
1126
1128 .Name( "pcbnew.ModuleEditor.editFootprint" )
1129 .Scope( AS_GLOBAL )
1130 .FriendlyName( _( "Edit Footprint" ) )
1131 .Tooltip( _( "Show selected footprint on editor canvas" ) )
1132 .Icon( BITMAPS::edit ) );
1133
1135 .Name( "pcbnew.ModuleEditor.duplicateFootprint" )
1136 .Scope( AS_GLOBAL )
1137 .FriendlyName( _( "Duplicate Footprint" ) )
1138 .Icon( BITMAPS::duplicate ) );
1139
1141 .Name( "pcbnew.ModuleEditor.renameFootprint" )
1142 .Scope( AS_GLOBAL )
1143 .FriendlyName( _( "Rename Footprint..." ) )
1144 .Icon( BITMAPS::edit ) );
1145
1147 .Name( "pcbnew.ModuleEditor.deleteFootprint" )
1148 .Scope( AS_GLOBAL )
1149 .FriendlyName( _( "Delete Footprint from Library" ) )
1150 .Icon( BITMAPS::trash ) );
1151
1153 .Name( "pcbnew.ModuleEditor.cutFootprint" )
1154 .Scope( AS_GLOBAL )
1155 .FriendlyName( _( "Cut Footprint" ) )
1156 .Icon( BITMAPS::cut ) );
1157
1159 .Name( "pcbnew.ModuleEditor.copyFootprint" )
1160 .Scope( AS_GLOBAL )
1161 .FriendlyName( _( "Copy Footprint" ) )
1162 .Icon( BITMAPS::copy ) );
1163
1165 .Name( "pcbnew.ModuleEditor.pasteFootprint" )
1166 .Scope( AS_GLOBAL )
1167 .FriendlyName( _( "Paste Footprint" ) )
1168 .Icon( BITMAPS::paste ) );
1169
1171 .Name( "pcbnew.ModuleEditor.importFootprint" )
1172 .Scope( AS_GLOBAL )
1173 .FriendlyName( _( "Import Footprint..." ) )
1174 .Tooltip( _( "Import footprint from file" ) )
1175 .Icon( BITMAPS::import_module ) );
1176
1178 .Name( "pcbnew.ModuleEditor.exportFootprint" )
1179 .Scope( AS_GLOBAL )
1180 .FriendlyName( _( "Export Current Footprint..." ) )
1181 .Tooltip( _( "Export edited footprint to file" ) )
1182 .Icon( BITMAPS::export_module ) );
1183
1185 .Name( "pcbnew.ModuleEditor.CompareFpLibraryWithFile" )
1186 .Scope( AS_GLOBAL )
1187 .FriendlyName( _( "Compare Library with File..." ) )
1188 .Tooltip( _( "Diff the current footprint library against another .pretty directory" ) )
1189 .Icon( BITMAPS::library ) );
1190
1192 .Name( "pcbnew.ModuleEditor.footprintProperties" )
1193 .Scope( AS_GLOBAL )
1194 .FriendlyName( _( "Footprint Properties..." ) )
1195 .Icon( BITMAPS::module_options ) );
1196
1198 .Name( "pcbnew.ModuleEditor.padTable" )
1199 .Scope( AS_GLOBAL )
1200 .FriendlyName( _( "Pad Table..." ) )
1201 .Tooltip( _( "Displays pad table for bulk editing of pads" ) )
1202 .Icon( BITMAPS::pin_table ) );
1203
1205 .Name( "pcbnew.ModuleEditor.checkFootprint" )
1206 .Scope( AS_GLOBAL )
1207 .FriendlyName( _( "Footprint Checker" ) )
1208 .Tooltip( _( "Show the footprint checker window" ) )
1209 .Icon( BITMAPS::erc ) );
1210
1212 .Name( "pcbnew.ModuleEditor.loadFootprintFromBoard" )
1213 .Scope( AS_GLOBAL )
1214 .FriendlyName( _( "Load footprint from current PCB" ) )
1215 .Tooltip( _( "Load footprint from current board" ) )
1216 .Icon( BITMAPS::load_module_board ) );
1217
1219 .Name( "pcbnew.ModuleEditor.saveFootprintToBoard" )
1220 .Scope( AS_GLOBAL )
1221 .FriendlyName( _( "Insert footprint into PCB" ) )
1222 .Tooltip( _( "Insert footprint into current board" ) )
1224
1226 .Name( "pcbnew.Control.previousFootprint" )
1227 .Scope( AS_GLOBAL )
1228 .FriendlyName( _( "Display previous footprint" ) )
1229 .Icon( BITMAPS::lib_previous )
1230 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::PREVIOUS_PART ) );
1231
1233 .Name( "pcbnew.Control.nextFootprint" )
1234 .Scope( AS_GLOBAL )
1235 .FriendlyName( _( "Display next footprint" ) )
1236 .Icon( BITMAPS::lib_next )
1237 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::NEXT_PART ) );
1238
1239// GLOBAL_EDIT_TOOL
1240//
1242 .Name( "pcbnew.GlobalEdit.updateFootprint" )
1243 .Scope( AS_GLOBAL )
1244 .FriendlyName( _( "Update Footprint..." ) )
1245 .Tooltip( _( "Update footprint to include any changes from the library" ) )
1246 .Icon( BITMAPS::refresh ) );
1247
1249 .Name( "pcbnew.GlobalEdit.updateFootprints" )
1250 .Scope( AS_GLOBAL )
1251 .FriendlyName( _( "Update Footprints from Library..." ) )
1252 .Tooltip( _( "Update footprints to include any changes from the library" ) )
1253 .Icon( BITMAPS::refresh ) );
1254
1256 .Name( "pcbnew.GlobalEdit.migrate3DModels" )
1257 .Scope( AS_GLOBAL )
1258 .FriendlyName( _( "Migrate 3D Models..." ) )
1259 .Tooltip( _( "Replace obsolete WRL 3D model references with current STEP models" ) )
1260 .Icon( BITMAPS::refresh ) );
1261
1263 .Name( "pcbnew.GlobalEdit.removeUnusedPads" )
1264 .Scope( AS_GLOBAL )
1265 .FriendlyName( _( "Remove Unused Pads..." ) )
1266 .Tooltip( _( "Remove or restore the unconnected inner layers on through hole pads and vias" ) )
1267 .Icon( BITMAPS::pads_remove ) );
1268
1270 .Name( "pcbnew.GlobalEdit.changeFootprint" )
1271 .Scope( AS_GLOBAL )
1272 .FriendlyName( _( "Change Footprint..." ) )
1273 .Tooltip( _( "Assign a different footprint from the library" ) )
1274 .Icon( BITMAPS::exchange ) );
1275
1277 .Name( "pcbnew.GlobalEdit.changeFootprints" )
1278 .Scope( AS_GLOBAL )
1279 .FriendlyName( _( "Change Footprints..." ) )
1280 .Tooltip( _( "Assign different footprints from the library" ) )
1281 .Icon( BITMAPS::exchange ) );
1282
1284 .Name( "pcbnew.GlobalEdit.swapLayers" )
1285 .Scope( AS_GLOBAL )
1286 .FriendlyName( _( "Swap Layers..." ) )
1287 .Tooltip( _( "Move tracks or drawings from one layer to another" ) )
1288 .Icon( BITMAPS::swap_layer ) );
1289
1291 .Name( "pcbnew.GlobalEdit.editTracksAndVias" )
1292 .Scope( AS_GLOBAL )
1293 .FriendlyName( _( "Edit Track & Via Properties..." ) )
1294 .Tooltip( _( "Edit track and via properties globally across board" ) )
1295 .Icon( BITMAPS::width_track_via ) );
1296
1298 .Name( "pcbnew.GlobalEdit.editTextAndGraphics" )
1299 .Scope( AS_GLOBAL )
1300 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
1301 .Tooltip( _( "Edit Text and graphics properties globally across board" ) )
1302 .Icon( BITMAPS::text ) );
1303
1305 .Name( "pcbnew.GlobalEdit.editTeardrops" )
1306 .Scope( AS_GLOBAL )
1307 .FriendlyName( _( "Edit Teardrops..." ) )
1308 .Tooltip( _( "Add, remove or edit teardrops globally across board" ) )
1309 .Icon( BITMAPS::via ) );
1310
1312 .Name( "pcbnew.GlobalEdit.globalDeletions" )
1313 .Scope( AS_GLOBAL )
1314 .FriendlyName( _( "Global Deletions..." ) )
1315 .Tooltip( _( "Delete tracks, footprints and graphic items from board" ) )
1316 .Icon( BITMAPS::general_deletions ) );
1317
1319 .Name( "pcbnew.GlobalEdit.cleanupTracksAndVias" )
1320 .Scope( AS_GLOBAL )
1321 .FriendlyName( _( "Cleanup Tracks & Vias..." ) )
1322 .Tooltip( _( "Cleanup redundant items, shorting items, etc." ) )
1324
1326 .Name( "pcbnew.GlobalEdit.cleanupGraphics" )
1327 .Scope( AS_GLOBAL )
1328 .FriendlyName( _( "Cleanup Graphics..." ) )
1329 .Tooltip( _( "Cleanup redundant items, etc." ) )
1330 .Icon( BITMAPS::cleanup_graphics ) );
1331
1332// MICROWAVE_TOOL
1333//
1335 .Name( "pcbnew.MicrowaveTool.createGap" )
1336 .Scope( AS_GLOBAL )
1337 .FriendlyName( _( "Draw Microwave Gaps" ) )
1338 .Tooltip( _( "Create gap of specified length for microwave applications" ) )
1339 .Icon( BITMAPS::mw_add_gap )
1340 .Flags( AF_ACTIVATE )
1341 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::GAP ) );
1342
1344 .Name( "pcbnew.MicrowaveTool.createStub" )
1345 .Scope( AS_GLOBAL )
1346 .FriendlyName( _( "Draw Microwave Stubs" ) )
1347 .Tooltip( _( "Create stub of specified length for microwave applications" ) )
1348 .Icon( BITMAPS::mw_add_stub )
1349 .Flags( AF_ACTIVATE )
1350 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB ) );
1351
1353 .Name( "pcbnew.MicrowaveTool.createStubArc" )
1354 .Scope( AS_GLOBAL )
1355 .FriendlyName( _( "Draw Microwave Arc Stubs" ) )
1356 .Tooltip( _( "Create stub (arc) of specified size for microwave applications" ) )
1358 .Flags( AF_ACTIVATE )
1360
1362 .Name( "pcbnew.MicrowaveTool.createFunctionShape" )
1363 .Scope( AS_GLOBAL )
1364 .FriendlyName( _( "Draw Microwave Polygonal Shapes" ) )
1365 .Tooltip( _( "Create a microwave polygonal shape from a list of vertices" ) )
1366 .Icon( BITMAPS::mw_add_shape )
1367 .Flags( AF_ACTIVATE )
1369
1371 .Name( "pcbnew.MicrowaveTool.createLine" )
1372 .Scope( AS_GLOBAL )
1373 .FriendlyName( _( "Draw Microwave Lines" ) )
1374 .Tooltip( _( "Create line of specified length for microwave applications" ) )
1375 .Icon( BITMAPS::mw_add_line )
1376 .Flags( AF_ACTIVATE ) );
1377
1378
1379// PAD_TOOL
1380//
1382 .Name( "pcbnew.PadTool.CopyPadSettings" )
1383 .Scope( AS_GLOBAL )
1384 .FriendlyName( _( "Copy Pad Properties to Default" ) )
1385 .Tooltip( _( "Copy current pad's properties" ) )
1386 .Icon( BITMAPS::copy_pad_settings ) );
1387
1389 .Name( "pcbnew.PadTool.ApplyPadSettings" )
1390 .Scope( AS_GLOBAL )
1391 .FriendlyName( _( "Paste Default Pad Properties to Selected" ) )
1392 .Tooltip( _( "Replace the current pad's properties with those copied earlier" ) )
1393 .Icon( BITMAPS::apply_pad_settings ) );
1394
1396 .Name( "pcbnew.PadTool.PushPadSettings" )
1397 .Scope( AS_GLOBAL )
1398 .FriendlyName( _( "Push Pad Properties to Other Pads..." ) )
1399 .Tooltip( _( "Copy the current pad's properties to other pads" ) )
1400 .Icon( BITMAPS::push_pad_settings ) );
1401
1403 .Name( "pcbnew.PadTool.enumeratePads" )
1404 .Scope( AS_GLOBAL )
1405 .FriendlyName( _( "Renumber Pads..." ) )
1406 .Tooltip( _( "Renumber pads by clicking on them in the desired order" ) )
1407 .Icon( BITMAPS::pad_enumerate )
1408 .Flags( AF_ACTIVATE ) );
1409
1411 .Name( "pcbnew.PadTool.placePad" )
1412 .Scope( AS_GLOBAL )
1413 .FriendlyName( _( "Add Pad" ) )
1414 .Tooltip( _( "Add a pad" ) )
1415 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1416 .Icon( BITMAPS::pad )
1417 .Flags( AF_ACTIVATE ) );
1418
1420 .Name( "pcbnew.PadTool.explodePad" )
1421 .Scope( AS_GLOBAL )
1422 .DefaultHotkey( MD_CTRL + 'E' )
1423 .FriendlyName( _( "Edit Pad as Graphic Shapes" ) )
1424 .Tooltip( _( "Ungroups a custom-shaped pad for editing as individual graphic shapes" ) )
1426
1428 .Name( "pcbnew.PadTool.recombinePad" )
1429 .Scope( AS_GLOBAL )
1430 .DefaultHotkey( MD_CTRL + 'E' )
1431 .FriendlyName( _( "Finish Pad Edit" ) )
1432 .Tooltip( _( "Regroups all touching graphic shapes into the edited pad" ) )
1434
1436 .Name( "pcbnew.PadTool.defaultPadProperties" )
1437 .Scope( AS_GLOBAL )
1438 .FriendlyName( _( "Default Pad Properties..." ) )
1439 .Tooltip( _( "Edit the pad properties used when creating new pads" ) )
1440 .Icon( BITMAPS::options_pad ) );
1441
1442
1443// SCRIPTING TOOL
1444//
1445
1447 .Name( "pcbnew.ScriptingTool.pluginsShowFolder" )
1448 .Scope( AS_GLOBAL )
1449#ifdef __WXMAC__
1450 .FriendlyName( _( "Reveal Plugin Folder in Finder" ) )
1451 .Tooltip( _( "Reveals the plugins folder in a Finder window" ) )
1452#else
1453 .FriendlyName( _( "Open Plugin Directory" ) )
1454 .Tooltip( _( "Opens the directory in the default system file manager" ) )
1455#endif
1456 .Icon( BITMAPS::directory_open ) );
1457
1458// BOARD_EDITOR_CONTROL
1459//
1461 .Name( "pcbnew.EditorControl.appendBoard" )
1462 .Scope( AS_GLOBAL )
1463 .FriendlyName( _( "Append Board..." ) )
1464 .Tooltip( _( "Open another board and append its contents to this board" ) )
1465 .Icon( BITMAPS::add_board ) );
1466
1468 .Name( "pcbnew.EditorControl.rescueAutosave" )
1469 .Scope( AS_GLOBAL )
1470 .FriendlyName( _( "Rescue" ) )
1471 .Tooltip( _( "Clear board and get last rescue file automatically saved by PCB editor" ) )
1472 .Icon( BITMAPS::rescue ) );
1473
1475 .Name( "pcbnew.EditorControl.openNonKicadBoard" )
1476 .Scope( AS_GLOBAL )
1477 .FriendlyName( _( "Import Non-KiCad Board File..." ) )
1478 .Tooltip( _( "Import board file from other applications" ) )
1479 .Icon( BITMAPS::import_brd_file ) );
1480
1482 .Name( "pcbnew.EditorControl.exportFootprints" )
1483 .Scope( AS_GLOBAL )
1484 .FriendlyName( _( "Export Footprints..." ) )
1485 .Tooltip( _( "Add footprints from board to a new or an existing footprint library\n"
1486 "(does not remove other footprints from this library)" ) )
1487 .Icon( BITMAPS::library_archive ) );
1488
1490 .Name( "pcbnew.EditorControl.boardSetup" )
1491 .Scope( AS_GLOBAL )
1492 .FriendlyName( _( "Board Setup..." ) )
1493 .Tooltip( _( "Edit board setup including layers, design rules and various defaults" ) )
1494 .Icon( BITMAPS::options_board ) );
1495
1497 .Name( "pcbnew.EditorControl.importNetlist" )
1498 .Scope( AS_GLOBAL )
1499 .FriendlyName( _( "Import Netlist..." ) )
1500 .Tooltip( _( "Read netlist and update board connectivity" ) )
1501 .Icon( BITMAPS::netlist ) );
1502
1504 .Name( "pcbnew.EditorControl.importSpecctraSession" )
1505 .Scope( AS_GLOBAL )
1506 .FriendlyName( _( "Import Specctra Session..." ) )
1507 .Tooltip( _( "Import routed Specctra session (*.ses) file" ) )
1508 .Icon( BITMAPS::import ) );
1509
1511 .Name( "pcbnew.EditorControl.exportSpecctraDSN" )
1512 .Scope( AS_GLOBAL )
1513 .FriendlyName( _( "Export Specctra DSN..." ) )
1514 .Tooltip( _( "Export Specctra DSN routing info" ) )
1515 .Icon( BITMAPS::export_dsn ) );
1516
1518 .Name( "pcbnew.EditorControl.generateGerbers" )
1519 .Scope( AS_GLOBAL )
1520 .FriendlyName( _( "Gerbers (.gbr)..." ) )
1521 .Tooltip( _( "Generate Gerbers for fabrication" ) )
1522 .Icon( BITMAPS::post_gerber ) );
1523
1525 .Name( "pcbnew.EditorControl.generateDrillFiles" )
1526 .Scope( AS_GLOBAL )
1527 .FriendlyName( _( "Drill Files (.drl)..." ) )
1528 .Tooltip( _( "Generate Excellon drill file(s)" ) )
1529 .Icon( BITMAPS::post_drill ) );
1530
1532 .Name( "pcbnew.EditorControl.generatePosFile" )
1533 .Scope( AS_GLOBAL )
1534 .FriendlyName( _( "Component Placement (.pos, .gbr)..." ) )
1535 .Tooltip( _( "Generate component placement file(s) for pick and place" ) )
1536 .Icon( BITMAPS::post_compo ) );
1537
1539 .Name( "pcbnew.EditorControl.generateReportFile" )
1540 .Scope( AS_GLOBAL )
1541 .FriendlyName( _( "Footprint Report (.rpt)..." ) )
1542 .Tooltip( _( "Create report of all footprints from current board" ) )
1543 .Icon( BITMAPS::post_rpt ) );
1544
1546 .Name( "pcbnew.EditorControl.generateIPC2581File" )
1547 .Scope( AS_GLOBAL )
1548 .FriendlyName( _( "IPC-2581 File (.xml)..." ) )
1549 .Tooltip( _( "Generate an IPC-2581 file" ) )
1550 .Icon( BITMAPS::post_xml ) );
1551
1553 .Name( "pcbnew.EditorControl.generateODBPPFile" )
1554 .Scope( AS_GLOBAL )
1555 .FriendlyName( _( "ODB++ Output File..." ) )
1556 .Tooltip( _( "Generate ODB++ output files" ) )
1557 .Icon( BITMAPS::post_odb ) );
1558
1560 .Name( "pcbnew.EditorControl.generateD356File" )
1561 .Scope( AS_GLOBAL )
1562 .FriendlyName( _( "IPC-D-356 Netlist File..." ) )
1563 .Tooltip( _( "Generate IPC-D-356 netlist file" ) )
1564 .Icon( BITMAPS::post_d356 ) );
1565
1567 .Name( "pcbnew.EditorControl.generateBOM" )
1568 .Scope( AS_GLOBAL )
1569 .FriendlyName( _( "Bill of Materials..." ) )
1570 .Tooltip( _( "Create bill of materials from board" ) )
1571 .Icon( BITMAPS::post_bom ) );
1572
1574 .Name( "pcbnew.EditorControl.exportGenCAD" )
1575 .Scope( AS_GLOBAL )
1576 .FriendlyName( _( "Export GenCAD..." ) )
1577 .Tooltip( _( "Export GenCAD board representation" ) )
1578 .Icon( BITMAPS::post_gencad ) );
1579
1581 .Name( "pcbnew.EditorControl.exportVRML" )
1582 .Scope( AS_GLOBAL )
1583 .FriendlyName( _( "Export VRML..." ) )
1584 .Tooltip( _( "Export VRML 3D board representation" ) )
1585 .Icon( BITMAPS::export3d ) );
1586
1588 .Name( "pcbnew.EditorControl.exportIDF" )
1589 .Scope( AS_GLOBAL )
1590 .FriendlyName( _( "Export IDFv3..." ) )
1591 .Tooltip( _( "Export IDF 3D board representation" ) )
1592 .Icon( BITMAPS::export_idf ) );
1593
1595 .Name( "pcbnew.EditorControl.exportSTEP" )
1596 .Scope( AS_GLOBAL )
1597 .FriendlyName( _( "Export STEP/GLB/BREP/XAO/PLY/STL..." ) )
1598 .Tooltip( _( "Export STEP, GLB, BREP, XAO, PLY or STL 3D board representation" ) )
1599 .Icon( BITMAPS::export_step ) );
1600
1602 .Name( "pcbnew.EditorControl.exportFootprintAssociations" )
1603 .Scope( AS_GLOBAL )
1604 .FriendlyName( _( "Export Footprint Association (.cmp) File..." ) )
1605 .Tooltip( _( "Export footprint association file (*.cmp) for schematic back annotation" ) )
1606 .Icon( BITMAPS::export_cmp ) );
1607
1609 .Name( "pcbnew.EditorControl.exportHyperlynx" )
1610 .Scope( AS_GLOBAL )
1611 .FriendlyName( _( "Hyperlynx..." ) )
1612 .Icon( BITMAPS::export_step ) );
1613
1615 .Name( "pcbnew.EditorControl.collect3DModels" )
1616 .Scope( AS_GLOBAL )
1617 .FriendlyName( _( "Collect And Embed 3D Models" ) )
1618 .Tooltip( _( "Collect footprint 3D models and embed them into the board" ) )
1619 .Icon( BITMAPS::import3d ) );
1620
1621
1622// Track & via size control
1624 .Name( "pcbnew.EditorControl.trackWidthInc" )
1625 .Scope( AS_GLOBAL )
1626 .DefaultHotkey( 'W' )
1627 .LegacyHotkeyName( "Switch Track Width To Next" )
1628 .FriendlyName( _( "Switch Track Width to Next" ) )
1629 .Tooltip( _( "Change track width to next pre-defined size" ) ) );
1630
1632 .Name( "pcbnew.EditorControl.trackWidthDec" )
1633 .Scope( AS_GLOBAL )
1634 .DefaultHotkey( MD_SHIFT + 'W' )
1635 .LegacyHotkeyName( "Switch Track Width To Previous" )
1636 .FriendlyName( _( "Switch Track Width to Previous" ) )
1637 .Tooltip( _( "Change track width to previous pre-defined size" ) ) );
1638
1640 .Name( "pcbnew.EditorControl.viaSizeInc" )
1641 .Scope( AS_GLOBAL )
1642 .DefaultHotkey( '\'' )
1643 .LegacyHotkeyName( "Increase Via Size" )
1644 .FriendlyName( _( "Increase Via Size" ) )
1645 .Tooltip( _( "Change via size to next pre-defined size" ) ) );
1646
1648 .Name( "pcbnew.EditorControl.viaSizeDec" )
1649 .Scope( AS_GLOBAL )
1650 .DefaultHotkey( '\\' )
1651 .LegacyHotkeyName( "Decrease Via Size" )
1652 .FriendlyName( _( "Decrease Via Size" ) )
1653 .Tooltip( _( "Change via size to previous pre-defined size" ) ) );
1654
1656 .Name( "pcbnew.EditorControl.autoTrackWidth" )
1657 .Scope( AS_GLOBAL )
1658 .FriendlyName( _( "Automatically select track width" ) )
1659 .Tooltip( _( "When routing from an existing track use its width instead "
1660 "of the current width setting" ) )
1662 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1663
1665 .Name( "pcbnew.EditorControl.trackViaSizeChanged" )
1666 .Scope( AS_GLOBAL )
1667 .Flags( AF_NOTIFY ) );
1668
1670 .Name( "pcbnew.EditorControl.assignNetclass" )
1671 .Scope( AS_GLOBAL )
1672 .FriendlyName( _( "Assign Netclass..." ) )
1673 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
1674 .Icon( BITMAPS::netlist ) );
1675
1677 .Name( "pcbnew.EditorControl.zoneMerge" )
1678 .Scope( AS_GLOBAL )
1679 .FriendlyName( _( "Merge Zones" ) ) );
1680
1682 .Name( "pcbnew.EditorControl.zoneDuplicate" )
1683 .Scope( AS_GLOBAL )
1684 .FriendlyName( _( "Duplicate Zone onto Layer..." ) )
1685 .Icon( BITMAPS::zone_duplicate ) );
1686
1688 .Name( "pcbnew.EditorControl.zonePriorityMoveToTop" )
1689 .Scope( AS_GLOBAL )
1690 .FriendlyName( _( "Move to Top" ) )
1691 .Icon( BITMAPS::small_up ) );
1692
1694 .Name( "pcbnew.EditorControl.zonePriorityRaise" )
1695 .Scope( AS_GLOBAL )
1696 .FriendlyName( _( "Raise" ) )
1697 .Icon( BITMAPS::small_up ) );
1698
1700 .Name( "pcbnew.EditorControl.zonePriorityLower" )
1701 .Scope( AS_GLOBAL )
1702 .FriendlyName( _( "Lower" ) )
1703 .Icon( BITMAPS::small_down ) );
1704
1706 .Name( "pcbnew.EditorControl.zonePriorityMoveToBottom" )
1707 .Scope( AS_GLOBAL )
1708 .FriendlyName( _( "Move to Bottom" ) )
1709 .Icon( BITMAPS::small_down ) );
1710
1712 .Name( "pcbnew.EditorControl.placeFootprint" )
1713 .Scope( AS_GLOBAL )
1714 .DefaultHotkey( 'A' )
1715 .LegacyHotkeyName( "Add Footprint" )
1716 .FriendlyName( _( "Place Footprints" ) )
1717 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1718 .Icon( BITMAPS::module )
1719 .Flags( AF_ACTIVATE )
1720 .Parameter<FOOTPRINT*>( nullptr ) );
1721
1723 .Name( "pcbnew.EditorControl.drillOrigin" )
1724 .Scope( AS_GLOBAL )
1725 .FriendlyName( _( "Drill/Place File Origin" ) )
1726 .Tooltip( _( "Place origin point for drill files and component placement files" ) )
1727 .Icon( BITMAPS::set_origin )
1728 .Flags( AF_ACTIVATE ) );
1729
1731 .Name( "pcbnew.EditorControl.drillResetOrigin" )
1732 .Scope( AS_GLOBAL )
1733 .LegacyHotkeyName( "Reset Drill Origin" )
1734 .FriendlyName( _( "Reset Drill Origin" ) ) );
1735
1737 .Name( "pcbnew.EditorControl.drillSetOrigin" )
1738 .Scope( AS_CONTEXT )
1739 .Parameter( VECTOR2I() ) );
1740
1742 .Name( "pcbnew.EditorControl.toggleLock" )
1743 .Scope( AS_GLOBAL )
1744 .DefaultHotkey( 'L' )
1745 .LegacyHotkeyName( "Lock/Unlock Footprint" )
1746 .FriendlyName( _( "Toggle Lock" ) )
1747 .Tooltip( _( "Lock or unlock selected items" ) )
1748 .Icon( BITMAPS::lock_unlock ) );
1749
1750// Line mode grouping and events (for PCB and Footprint editors)
1752 .Name( "pcbnew.EditorControl.lineModeFree" )
1753 .Scope( AS_GLOBAL )
1754 .FriendlyName( _( "Line Modes" ) )
1755 .Tooltip( _( "Draw and drag at any angle" ) )
1756 .Icon( BITMAPS::lines_any )
1757 .Flags( AF_NONE )
1758 .Parameter( LEADER_MODE::DIRECT ) );
1759
1761 .Name( "pcbnew.EditorControl.lineModeOrthonal" )
1762 .Scope( AS_GLOBAL )
1763 .FriendlyName( _( "Line Modes" ) )
1764 .Tooltip( _( "Constrain drawing and dragging to horizontal or vertical motions" ) )
1765 .Icon( BITMAPS::lines90 )
1766 .Flags( AF_NONE )
1767 .Parameter( LEADER_MODE::DEG90 ) );
1768
1770 .Name( "pcbnew.EditorControl.lineMode45" )
1771 .Scope( AS_GLOBAL )
1772 .FriendlyName( _( "Line Modes" ) )
1773 .Tooltip( _( "Constrain drawing and dragging to horizontal, vertical, or 45-degree angle motions" ) )
1774 .Icon( BITMAPS::hv45mode )
1775 .Flags( AF_NONE )
1776 .Parameter( LEADER_MODE::DEG45 ) );
1777
1779 .Name( "pcbnew.EditorControl.lineModeNext" )
1780 .DefaultHotkey( MD_SHIFT + ' ' )
1781 .Scope( AS_GLOBAL )
1782 .FriendlyName( _( "Line Modes" ) )
1783 .Tooltip( _( "Switch to next angle snapping mode" ) ) );
1784
1786 .Name( "pcbnew.EditorControl.angleSnapModeChanged" )
1787 .Scope( AS_GLOBAL )
1788 .Flags( AF_NOTIFY ) );
1789
1791 .Name( "pcbnew.EditorControl.lock" )
1792 .Scope( AS_GLOBAL )
1793 .FriendlyName( _( "Lock" ) )
1794 .Tooltip( _( "Prevent items from being moved and/or resized on the canvas" ) )
1795 .Icon( BITMAPS::locked ) );
1796
1798 .Name( "pcbnew.EditorControl.unlock" )
1799 .Scope( AS_GLOBAL )
1800 .FriendlyName( _( "Unlock" ) )
1801 .Tooltip( _( "Allow items to be moved and/or resized on the canvas" ) )
1802 .Icon( BITMAPS::unlocked ) );
1803
1805 .Name( "pcbnew.EditorControl.highlightNet" )
1806 .Scope( AS_GLOBAL )
1807 .DefaultHotkey( '`' )
1808 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1809 .LegacyHotkeyName( "Toggle Highlight of Selected Net (Modern Toolset only)" )
1810 .FriendlyName( _( "Highlight Net" ) )
1811 .Tooltip( _( "Highlight net under cursor" ) )
1812 .Icon( BITMAPS::net_highlight )
1813 .Parameter<int>( 0 ) );
1814
1816 .Name( "pcbnew.EditorControl.toggleLastNetHighlight" )
1817 .Scope( AS_GLOBAL )
1818 .FriendlyName( _( "Toggle Last Net Highlight" ) )
1819 .Tooltip( _( "Toggle between last two highlighted nets" ) )
1820 .Parameter<int>( 0 ) );
1821
1823 .Name( "pcbnew.EditorControl.clearHighlight" )
1824 .Scope( AS_GLOBAL )
1825 .DefaultHotkey( '~' )
1826 .FriendlyName( _( "Clear Net Highlighting" ) ) );
1827
1829 .Name( "pcbnew.EditorControl.toggleNetHighlight" )
1830 .Scope( AS_GLOBAL )
1831 .DefaultHotkey( MD_ALT + '`' )
1832 .FriendlyName( _( "Toggle Net Highlight" ) )
1833 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1834 .Icon( BITMAPS::net_highlight )
1835 .Parameter<int>( 0 ) );
1836
1838 .Name( "pcbnew.EditorControl.highlightNetSelection" )
1839 .Scope( AS_GLOBAL )
1840 .FriendlyName( _( "Highlight Net" ) )
1841 .Tooltip( _( "Highlight all copper items on the selected net(s)" ) )
1842 .Icon( BITMAPS::net_highlight )
1843 .Parameter<int>( 0 ) );
1844
1846 .Name( "pcbnew.EditorControl.highlightNetChain" )
1847 .Scope( AS_GLOBAL )
1848 .FriendlyName( _( "Highlight Net Chain" ) )
1849 .Tooltip( _( "Highlight every net in the net chain" ) )
1850 .Icon( BITMAPS::net_highlight ) );
1851
1853 .Name( "pcbnew.EditorControl.setTerminalPad" )
1854 .Scope( AS_GLOBAL )
1855 .Parameter<std::pair<KIID, KIID>>( { niluuid, niluuid } )
1856 .FriendlyName( _( "Set Terminal Pad" ) ) );
1857
1859 .Name( "pcbnew.EditorControl.highlightItem" )
1860 .Scope( AS_GLOBAL ) );
1861
1863 .Name( "pcbnew.EditorControl.hideNet" )
1864 .Scope( AS_GLOBAL )
1865 .FriendlyName( _( "Hide Net in Ratsnest" ) )
1866 .Tooltip( _( "Hide the selected net in the ratsnest of unconnected net lines/arcs" ) )
1867 .Icon( BITMAPS::hide_ratsnest )
1868 .Parameter<int>( 0 ) ); // Default to hiding selected net
1869
1871 .Name( "pcbnew.EditorControl.showNet" )
1872 .Scope( AS_GLOBAL )
1873 .FriendlyName( _( "Show Net in Ratsnest" ) )
1874 .Tooltip( _( "Show the selected net in the ratsnest of unconnected net lines/arcs" ) )
1875 .Icon( BITMAPS::show_ratsnest )
1876 .Parameter<int>( 0 ) ); // Default to showing selected net
1877
1879 .Name( "pcbnew.EditorControl.showEeschema" )
1880 .Scope( AS_GLOBAL )
1881 .FriendlyName( _( "Switch to Schematic Editor" ) )
1882 .Tooltip( _( "Open schematic in schematic editor" ) )
1883 .Icon( BITMAPS::icon_eeschema_24 ) );
1884
1885// DESIGN RULE EDITOR
1887 .Name( "pcbnew.DRETool.drcRuleEditor" )
1888 .Scope( AS_GLOBAL )
1889 .FriendlyName( _( "DRC Rule Editor" ) )
1890 .Tooltip( _( "Open DRC rule editor window" ) ) );
1891
1892// PCB_CONTROL
1893//
1894
1896 .Name( "pcbnew.Control.localRatsnestTool" )
1897 .Scope( AS_GLOBAL )
1898 .FriendlyName( _( "Local Ratsnest" ) )
1899 .Tooltip( _( "Toggle ratsnest display of selected item(s)" ) )
1900 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1901 .Icon( BITMAPS::tool_ratsnest )
1902 .Flags( AF_ACTIVATE ) );
1903
1905 .Name( "pcbnew.Control.hideDynamicRatsnest" )
1906 .Scope( AS_GLOBAL ) );
1907
1909 .Name( "pcbnew.Control.updateLocalRatsnest" )
1910 .Scope( AS_GLOBAL )
1911 .Parameter( VECTOR2I() ) );
1912
1914 .Name( "pcbnew.Control.showLayersManager" )
1915 .Scope( AS_GLOBAL )
1916 .FriendlyName( _( "Appearance" ) )
1917 .Tooltip( _( "Show/hide the appearance manager" ) )
1918 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1919 .Icon( BITMAPS::layers_manager ) );
1920
1922 .Name( "pcbnew.Control.showNetInspector" )
1923 .Scope( AS_GLOBAL )
1924 .FriendlyName( _( "Net Inspector" ) )
1925 .Tooltip( _( "Show/hide the net inspector" ) )
1926 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1927 .Icon( BITMAPS::tools ) );
1928
1930 .Name( "pcbnew.Control.zonesManager" )
1931 .Scope( AS_GLOBAL )
1932 .FriendlyName( _( "Zone Manager..." ) )
1933 .Tooltip( _( "Show the zone manager dialog" ) )
1934 .Icon( BITMAPS::show_zone ) );
1935
1937 .Name( "pcbnew.Control.flipBoard" )
1938 .Scope( AS_GLOBAL )
1939 .FriendlyName( _( "Flip Board View" ) )
1940 .Tooltip( _( "View board from the opposite side" ) )
1941 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1942 .Icon( BITMAPS::flip_board ) );
1943
1945 .Name( "pcbnew.Control.rehatchShapes" )
1946 .Scope( AS_CONTEXT ) );
1947
1948
1949// Display modes
1951 .Name( "pcbnew.Control.showRatsnest" )
1952 .Scope( AS_GLOBAL )
1953 .FriendlyName( _( "Show Ratsnest" ) )
1954 .Tooltip( _( "Show lines/arcs representing missing connections on the board" ) )
1955 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1956 .Icon( BITMAPS::general_ratsnest ) );
1957
1959 .Name( "pcbnew.Control.ratsnestLineMode" )
1960 .Scope( AS_GLOBAL )
1961 .FriendlyName( _( "Curved Ratsnest Lines" ) )
1962 .Tooltip( _( "Show ratsnest with curved lines" ) )
1963 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1964 .Icon( BITMAPS::curved_ratsnest ) );
1965
1967 .Name( "pcbnew.Control.ratsnestModeCycle" )
1968 .Scope( AS_GLOBAL )
1969 .FriendlyName( _( "Ratsnest Mode (3-state)" ) )
1970 .Tooltip( _( "Cycle between showing ratsnests for all layers, just visible layers, and none" ) ) );
1971
1973 .Name( "pcbnew.Control.netColorMode" )
1974 .Scope( AS_GLOBAL )
1975 .FriendlyName( _( "Net Color Mode (3-state)" ) )
1976 .Tooltip( _( "Cycle between using net and netclass colors for all nets, just ratsnests, and none" ) ) );
1977
1979 .Name( "pcbnew.Control.trackDisplayMode" )
1980 .Scope( AS_GLOBAL )
1981 .DefaultHotkey( 'K' )
1982 .LegacyHotkeyName( "Track Display Mode" )
1983 .FriendlyName( _( "Sketch Tracks" ) )
1984 .Tooltip( _( "Show tracks in outline mode" ) )
1985 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1986 .Icon( BITMAPS::showtrack ) );
1987
1989 .Name( "pcbnew.Control.padDisplayMode" )
1990 .Scope( AS_GLOBAL )
1991 .FriendlyName( _( "Sketch Pads" ) )
1992 .Tooltip( _( "Show pads in outline mode" ) )
1993 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1994 .Icon( BITMAPS::pad_sketch ) );
1995
1997 .Name( "pcbnew.Control.viaDisplayMode" )
1998 .Scope( AS_GLOBAL )
1999 .FriendlyName( _( "Sketch Vias" ) )
2000 .Tooltip( _( "Show vias in outline mode" ) )
2001 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2002 .Icon( BITMAPS::via_sketch ) );
2003
2005 .Name( "pcbnew.Control.graphicOutlines" )
2006 .Scope( AS_GLOBAL )
2007 .FriendlyName( _( "Sketch Graphic Items" ) )
2008 .Tooltip( _( "Show graphic items in outline mode" ) )
2009 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2010 .Icon( BITMAPS::show_mod_edge ) );
2011
2013 .Name( "pcbnew.Control.textOutlines" )
2014 .Scope( AS_GLOBAL )
2015 .FriendlyName( _( "Sketch Text Items" ) )
2016 .Tooltip( _( "Show footprint texts in line mode" ) )
2017 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2018 .Icon( BITMAPS::text_sketch ) );
2019
2021 .Name( "pcbnew.Control.showPadNumbers" )
2022 .Scope( AS_GLOBAL )
2023 .FriendlyName( _( "Show Pad Numbers" ) )
2024 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2025 .Icon( BITMAPS::pad_number ) );
2026
2028 .Name( "pcbnew.Control.zoneDisplayEnable" )
2029 .Scope( AS_GLOBAL )
2030 .FriendlyName( _( "Draw Zone Fills" ) )
2031 .Tooltip( _( "Show filled areas of zones" ) )
2032 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2033 .Icon( BITMAPS::show_zone ) );
2034
2036 .Name( "pcbnew.Control.zoneDisplayDisable" )
2037 .Scope( AS_GLOBAL )
2038 .FriendlyName( _( "Draw Zone Outlines" ) )
2039 .Tooltip( _( "Show only zone boundaries" ) )
2040 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2041 .Icon( BITMAPS::show_zone_disable ) );
2042
2044 .Name( "pcbnew.Control.zoneDisplayOutlines" )
2045 .Scope( AS_GLOBAL )
2046 .FriendlyName( _( "Draw Zone Fill Fracture Borders" ) )
2047 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2049
2051 .Name( "pcbnew.Control.zoneDisplayTesselation" )
2052 .Scope( AS_GLOBAL )
2053 .FriendlyName( _( "Draw Zone Fill Triangulation" ) )
2054 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2056
2058 .Name( "pcbnew.Control.zoneDisplayToggle" )
2059 .Scope( AS_GLOBAL )
2060 .FriendlyName( _( "Toggle Zone Display" ) )
2061 .Tooltip( _( "Cycle between showing zone fills and just their outlines" ) )
2062 .Icon( BITMAPS::show_zone ) );
2063
2064
2066 .Name( "pcbnew.Control.fpAutoZoom" )
2067 .Scope( AS_GLOBAL )
2068 .FriendlyName( _( "Automatic zoom" ) )
2069 .Tooltip( _( "Automatic Zoom on footprint change" ) )
2071 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
2072
2073// Layer control
2074
2075// Translate aLayer to the action that switches to it
2077{
2078 switch( aLayer )
2079 {
2080 case F_Cu: return &PCB_ACTIONS::layerTop;
2081 case In1_Cu: return &PCB_ACTIONS::layerInner1;
2082 case In2_Cu: return &PCB_ACTIONS::layerInner2;
2083 case In3_Cu: return &PCB_ACTIONS::layerInner3;
2084 case In4_Cu: return &PCB_ACTIONS::layerInner4;
2085 case In5_Cu: return &PCB_ACTIONS::layerInner5;
2086 case In6_Cu: return &PCB_ACTIONS::layerInner6;
2087 case In7_Cu: return &PCB_ACTIONS::layerInner7;
2088 case In8_Cu: return &PCB_ACTIONS::layerInner8;
2089 case In9_Cu: return &PCB_ACTIONS::layerInner9;
2090 case In10_Cu: return &PCB_ACTIONS::layerInner10;
2091 case In11_Cu: return &PCB_ACTIONS::layerInner11;
2092 case In12_Cu: return &PCB_ACTIONS::layerInner12;
2093 case In13_Cu: return &PCB_ACTIONS::layerInner13;
2094 case In14_Cu: return &PCB_ACTIONS::layerInner14;
2095 case In15_Cu: return &PCB_ACTIONS::layerInner15;
2096 case In16_Cu: return &PCB_ACTIONS::layerInner16;
2097 case In17_Cu: return &PCB_ACTIONS::layerInner17;
2098 case In18_Cu: return &PCB_ACTIONS::layerInner18;
2099 case In19_Cu: return &PCB_ACTIONS::layerInner19;
2100 case In20_Cu: return &PCB_ACTIONS::layerInner20;
2101 case In21_Cu: return &PCB_ACTIONS::layerInner21;
2102 case In22_Cu: return &PCB_ACTIONS::layerInner22;
2103 case In23_Cu: return &PCB_ACTIONS::layerInner23;
2104 case In24_Cu: return &PCB_ACTIONS::layerInner24;
2105 case In25_Cu: return &PCB_ACTIONS::layerInner25;
2106 case In26_Cu: return &PCB_ACTIONS::layerInner26;
2107 case In27_Cu: return &PCB_ACTIONS::layerInner27;
2108 case In28_Cu: return &PCB_ACTIONS::layerInner28;
2109 case In29_Cu: return &PCB_ACTIONS::layerInner29;
2110 case In30_Cu: return &PCB_ACTIONS::layerInner30;
2111 case B_Cu: return &PCB_ACTIONS::layerBottom;
2112 default: return nullptr;
2113 }
2114}
2115
2116// Implemented as an accessor + static variable to ensure it is initialized when used
2117// in static action constructors
2119{
2120 static TOOL_ACTION_GROUP s_toolActionGroup( "pcbnew.Control.DirectLayerActions" );
2121 return s_toolActionGroup;
2122}
2123
2125 .Name( "pcbnew.Control.layerTop" )
2126 .Scope( AS_GLOBAL )
2128 .DefaultHotkey( WXK_PAGEUP )
2129 .LegacyHotkeyName( "Switch to Component (F.Cu) layer" )
2130 .FriendlyName( _( "Switch to Component (F.Cu) layer" ) )
2131 .Flags( AF_NOTIFY )
2132 .Parameter( F_Cu ) );
2133
2135 .Name( "pcbnew.Control.layerInner1" )
2136 .Scope( AS_GLOBAL )
2138 .LegacyHotkeyName( "Switch to Inner layer 1" )
2139 .FriendlyName( _( "Switch to Inner Layer 1" ) )
2140 .Flags( AF_NOTIFY )
2141 .Parameter( In1_Cu ) );
2142
2144 .Name( "pcbnew.Control.layerInner2" )
2145 .Scope( AS_GLOBAL )
2147 .LegacyHotkeyName( "Switch to Inner layer 2" )
2148 .FriendlyName( _( "Switch to Inner Layer 2" ) )
2149 .Flags( AF_NOTIFY )
2150 .Parameter( In2_Cu ) );
2151
2153 .Name( "pcbnew.Control.layerInner3" )
2154 .Scope( AS_GLOBAL )
2156 .LegacyHotkeyName( "Switch to Inner layer 3" )
2157 .FriendlyName( _( "Switch to Inner Layer 3" ) )
2158 .Flags( AF_NOTIFY )
2159 .Parameter( In3_Cu ) );
2160
2162 .Name( "pcbnew.Control.layerInner4" )
2163 .Scope( AS_GLOBAL )
2165 .LegacyHotkeyName( "Switch to Inner layer 4" )
2166 .FriendlyName( _( "Switch to Inner Layer 4" ) )
2167 .Flags( AF_NOTIFY )
2168 .Parameter( In4_Cu ) );
2169
2171 .Name( "pcbnew.Control.layerInner5" )
2172 .Scope( AS_GLOBAL )
2174 .LegacyHotkeyName( "Switch to Inner layer 5" )
2175 .FriendlyName( _( "Switch to Inner Layer 5" ) )
2176 .Flags( AF_NOTIFY )
2177 .Parameter( In5_Cu ) );
2178
2180 .Name( "pcbnew.Control.layerInner6" )
2181 .Scope( AS_GLOBAL )
2183 .LegacyHotkeyName( "Switch to Inner layer 6" )
2184 .FriendlyName( _( "Switch to Inner Layer 6" ) )
2185 .Flags( AF_NOTIFY )
2186 .Parameter( In6_Cu ) );
2187
2189 .Name( "pcbnew.Control.layerInner7" )
2190 .Scope( AS_GLOBAL )
2192 .FriendlyName( _( "Switch to Inner Layer 7" ) )
2193 .Flags( AF_NOTIFY )
2194 .Parameter( In7_Cu ) );
2195
2197 .Name( "pcbnew.Control.layerInner8" )
2198 .Scope( AS_GLOBAL )
2200 .FriendlyName( _( "Switch to Inner Layer 8" ) )
2201 .Flags( AF_NOTIFY )
2202 .Parameter( In8_Cu ) );
2203
2205 .Name( "pcbnew.Control.layerInner9" )
2206 .Scope( AS_GLOBAL )
2208 .FriendlyName( _( "Switch to Inner Layer 9" ) )
2209 .Flags( AF_NOTIFY )
2210 .Parameter( In9_Cu ) );
2211
2213 .Name( "pcbnew.Control.layerInner10" )
2214 .Scope( AS_GLOBAL )
2216 .FriendlyName( _( "Switch to Inner Layer 10" ) )
2217 .Flags( AF_NOTIFY )
2218 .Parameter( In10_Cu ) );
2219
2221 .Name( "pcbnew.Control.layerInner11" )
2222 .Scope( AS_GLOBAL )
2224 .FriendlyName( _( "Switch to Inner Layer 11" ) )
2225 .Flags( AF_NOTIFY )
2226 .Parameter( In11_Cu ) );
2227
2229 .Name( "pcbnew.Control.layerInner12" )
2230 .Scope( AS_GLOBAL )
2232 .FriendlyName( _( "Switch to Inner Layer 12" ) )
2233 .Flags( AF_NOTIFY )
2234 .Parameter( In12_Cu ) );
2235
2237 .Name( "pcbnew.Control.layerInner13" )
2238 .Scope( AS_GLOBAL )
2240 .FriendlyName( _( "Switch to Inner Layer 13" ) )
2241 .Flags( AF_NOTIFY )
2242 .Parameter( In13_Cu ) );
2243
2245 .Name( "pcbnew.Control.layerInner14" )
2246 .Scope( AS_GLOBAL )
2248 .FriendlyName( _( "Switch to Inner Layer 14" ) )
2249 .Flags( AF_NOTIFY )
2250 .Parameter( In14_Cu ) );
2251
2253 .Name( "pcbnew.Control.layerInner15" )
2254 .Scope( AS_GLOBAL )
2256 .FriendlyName( _( "Switch to Inner Layer 15" ) )
2257 .Flags( AF_NOTIFY )
2258 .Parameter( In15_Cu ) );
2259
2261 .Name( "pcbnew.Control.layerInner16" )
2262 .Scope( AS_GLOBAL )
2264 .FriendlyName( _( "Switch to Inner Layer 16" ) )
2265 .Flags( AF_NOTIFY )
2266 .Parameter( In16_Cu ) );
2267
2269 .Name( "pcbnew.Control.layerInner17" )
2270 .Scope( AS_GLOBAL )
2272 .FriendlyName( _( "Switch to Inner Layer 17" ) )
2273 .Flags( AF_NOTIFY )
2274 .Parameter( In17_Cu ) );
2275
2277 .Name( "pcbnew.Control.layerInner18" )
2278 .Scope( AS_GLOBAL )
2280 .FriendlyName( _( "Switch to Inner Layer 18" ) )
2281 .Flags( AF_NOTIFY )
2282 .Parameter( In18_Cu ) );
2283
2285 .Name( "pcbnew.Control.layerInner19" )
2286 .Scope( AS_GLOBAL )
2288 .FriendlyName( _( "Switch to Inner Layer 19" ) )
2289 .Flags( AF_NOTIFY )
2290 .Parameter( In19_Cu ) );
2291
2293 .Name( "pcbnew.Control.layerInner20" )
2294 .Scope( AS_GLOBAL )
2296 .FriendlyName( _( "Switch to Inner Layer 20" ) )
2297 .Flags( AF_NOTIFY )
2298 .Parameter( In20_Cu ) );
2299
2301 .Name( "pcbnew.Control.layerInner21" )
2302 .Scope( AS_GLOBAL )
2304 .FriendlyName( _( "Switch to Inner Layer 21" ) )
2305 .Flags( AF_NOTIFY )
2306 .Parameter( In21_Cu ) );
2307
2309 .Name( "pcbnew.Control.layerInner22" )
2310 .Scope( AS_GLOBAL )
2312 .FriendlyName( _( "Switch to Inner Layer 22" ) )
2313 .Flags( AF_NOTIFY )
2314 .Parameter( In22_Cu ) );
2315
2317 .Name( "pcbnew.Control.layerInner23" )
2318 .Scope( AS_GLOBAL )
2320 .FriendlyName( _( "Switch to Inner Layer 23" ) )
2321 .Flags( AF_NOTIFY )
2322 .Parameter( In23_Cu ) );
2323
2325 .Name( "pcbnew.Control.layerInner24" )
2326 .Scope( AS_GLOBAL )
2328 .FriendlyName( _( "Switch to Inner Layer 24" ) )
2329 .Flags( AF_NOTIFY )
2330 .Parameter( In24_Cu ) );
2331
2333 .Name( "pcbnew.Control.layerInner25" )
2334 .Scope( AS_GLOBAL )
2336 .FriendlyName( _( "Switch to Inner Layer 25" ) )
2337 .Flags( AF_NOTIFY )
2338 .Parameter( In25_Cu ) );
2339
2341 .Name( "pcbnew.Control.layerInner26" )
2342 .Scope( AS_GLOBAL )
2344 .FriendlyName( _( "Switch to Inner Layer 26" ) )
2345 .Flags( AF_NOTIFY )
2346 .Parameter( In26_Cu ) );
2347
2349 .Name( "pcbnew.Control.layerInner27" )
2350 .Scope( AS_GLOBAL )
2352 .FriendlyName( _( "Switch to Inner Layer 27" ) )
2353 .Flags( AF_NOTIFY )
2354 .Parameter( In27_Cu ) );
2355
2357 .Name( "pcbnew.Control.layerInner28" )
2358 .Scope( AS_GLOBAL )
2360 .FriendlyName( _( "Switch to Inner Layer 28" ) )
2361 .Flags( AF_NOTIFY )
2362 .Parameter( In28_Cu ) );
2363
2365 .Name( "pcbnew.Control.layerInner29" )
2366 .Scope( AS_GLOBAL )
2368 .FriendlyName( _( "Switch to Inner Layer 29" ) )
2369 .Flags( AF_NOTIFY )
2370 .Parameter( In29_Cu ) );
2371
2373 .Name( "pcbnew.Control.layerInner30" )
2374 .Scope( AS_GLOBAL )
2376 .FriendlyName( _( "Switch to Inner Layer 30" ) )
2377 .Flags( AF_NOTIFY )
2378 .Parameter( In30_Cu ) );
2379
2381 .Name( "pcbnew.Control.layerBottom" )
2382 .Scope( AS_GLOBAL )
2384 .DefaultHotkey( WXK_PAGEDOWN )
2385 .LegacyHotkeyName( "Switch to Copper (B.Cu) layer" )
2386 .FriendlyName( _( "Switch to Copper (B.Cu) Layer" ) )
2387 .Flags( AF_NOTIFY )
2388 .Parameter( B_Cu ) );
2389
2391 .Name( "pcbnew.Control.layerNext" )
2392 .Scope( AS_GLOBAL )
2393 .DefaultHotkey( '+' )
2394 .LegacyHotkeyName( "Switch to Next Layer" )
2395 .FriendlyName( _( "Switch to Next Layer" ) )
2396 .Flags( AF_NOTIFY ) );
2397
2399 .Name( "pcbnew.Control.layerPrev" )
2400 .Scope( AS_GLOBAL )
2401 .DefaultHotkey( '-' )
2402 .LegacyHotkeyName( "Switch to Previous Layer" )
2403 .FriendlyName( _( "Switch to Previous Layer" ) )
2404 .Flags( AF_NOTIFY ) );
2405
2407 .Name( "pcbnew.Control.layerToggle" )
2408 .Scope( AS_GLOBAL )
2409 .DefaultHotkey( 'V' )
2410 .LegacyHotkeyName( "Add Through Via" )
2411 .FriendlyName( _( "Toggle Layer" ) )
2412 .Tooltip( _( "Switch between layers in active layer pair" ) )
2413 .Flags( AF_NOTIFY ) );
2414
2416 .Name( "pcbnew.Control.layerAlphaInc" )
2417 .Scope( AS_GLOBAL )
2418 .DefaultHotkey( '}' )
2419 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2420 .LegacyHotkeyName( "Increment Layer Transparency (Modern Toolset only)" )
2421 .FriendlyName( _( "Increase Layer Opacity" ) )
2422 .Tooltip( _( "Make the current layer less transparent" ) )
2423 .Icon( BITMAPS::contrast_mode ) );
2424
2426 .Name( "pcbnew.Control.layerAlphaDec" )
2427 .Scope( AS_GLOBAL )
2428 .DefaultHotkey( '{' )
2429 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2430 .LegacyHotkeyName( "Decrement Layer Transparency (Modern Toolset only)" )
2431 .FriendlyName( _( "Decrease Layer Opacity" ) )
2432 .Tooltip( _( "Make the current layer more transparent" ) )
2433 .Icon( BITMAPS::contrast_mode ) );
2434
2436 .Name( "pcbnew.Control.layerPairPresetCycle" )
2437 .Scope( AS_GLOBAL )
2438 .DefaultHotkey( MD_SHIFT + 'V' )
2439 .FriendlyName( _( "Cycle Layer Pair Presets" ) )
2440 .Tooltip( _( "Cycle between preset layer pairs" ) ) );
2441
2443 .Name( "pcbnew.Control.layerChanged" )
2444 .Scope( AS_GLOBAL )
2445 .Flags( AF_NOTIFY ) );
2446
2447//Show board statistics tool
2449 .Name( "pcbnew.InspectionTool.ShowBoardStatistics" )
2450 .Scope( AS_GLOBAL )
2451 .FriendlyName( _( "Show Board Statistics" ) )
2452 .Tooltip( _( "Shows board statistics" ) )
2453 .Icon( BITMAPS::editor ) );
2454
2456 .Name( "pcbnew.InspectionTool.InspectClearance" )
2457 .Scope( AS_GLOBAL )
2458 .FriendlyName( _( "Clearance Resolution" ) )
2459 .Tooltip( _( "Show clearance resolution for the active layer between two selected objects" ) )
2460 .Icon( BITMAPS::mw_add_gap ) );
2461
2463 .Name( "pcbnew.InspectionTool.InspectConstraints" )
2464 .Scope( AS_GLOBAL )
2465 .FriendlyName( _( "Constraints Resolution" ) )
2466 .Tooltip( _( "Show constraints resolution for the selected object" ) )
2467 .Icon( BITMAPS::mw_add_stub ) );
2468
2470 .Name( "pcbnew.InspectionTool.DiffFootprint" )
2471 .Scope( AS_GLOBAL )
2472 .FriendlyName( _( "Compare Footprint with Library" ) )
2473 .Tooltip( _( "Show differences between board footprint and its library equivalent" ) )
2474 .Icon( BITMAPS::library ) );
2475
2477 .Name( "pcbnew.InspectionTool.CompareBoardWithFile" )
2478 .Scope( AS_GLOBAL )
2479 .FriendlyName( _( "Compare Board with File..." ) )
2480 .Tooltip( _( "Diff the current PCB against another .kicad_pcb file" ) )
2481 .Icon( BITMAPS::library ) );
2482
2484 .Name( "pcbnew.InspectionTool.CompareBoardWithHistory" )
2485 .Scope( AS_GLOBAL )
2486 .FriendlyName( _( "Compare Board with Local History..." ) )
2487 .Tooltip( _( "Diff the current PCB against the most recent local-history snapshot" ) )
2488 .Icon( BITMAPS::library ) );
2489
2491 .Name( "pcbnew.InspectionTool.ShowFootprintAssociations" )
2492 .Scope( AS_GLOBAL )
2493 .FriendlyName( _( "Show Footprint Associations" ) )
2494 .Tooltip( _( "Show footprint library and schematic symbol associations" ) )
2496
2497//Geographic re-annotation tool
2499 .Name( "pcbnew.ReannotateTool.ShowReannotateDialog" )
2500 .Scope( AS_GLOBAL )
2501 .FriendlyName( _( "Geographical Reannotate..." ) )
2502 .Tooltip( _( "Reannotate PCB in geographical order" ) )
2503 .Icon( BITMAPS::annotate ) );
2504
2506 .Name( "pcbnew.Control.repairBoard" )
2507 .Scope( AS_GLOBAL )
2508 .FriendlyName( _( "Repair Board" ) )
2509 .Tooltip( _( "Run various diagnostics and attempt to repair board" ) )
2510 .Icon( BITMAPS::rescue )
2511 .Parameter( false ) ); // Don't repair quietly
2512
2514 .Name( "pcbnew.ModuleEditor.repairFootprint" )
2515 .Scope( AS_GLOBAL )
2516 .FriendlyName( _( "Repair Footprint" ) )
2517 .Tooltip( _( "Run various diagnostics and attempt to repair footprint" ) )
2518 .Icon( BITMAPS::rescue ) );
2519
2520// These carry no DefaultHotkey because GTK refuses WXK_TAB as a menu accelerator. Ctrl+Tab is
2521// routed through a frame char-hook handler instead.
2523 .Name( "pcbnew.ModuleEditor.nextFootprintTab" )
2524 .Scope( AS_GLOBAL )
2525 .FriendlyName( _( "Next Footprint Tab" ) )
2526 .Tooltip( _( "Switch to the next open footprint tab" ) ) );
2527
2529 .Name( "pcbnew.ModuleEditor.prevFootprintTab" )
2530 .Scope( AS_GLOBAL )
2531 .FriendlyName( _( "Previous Footprint Tab" ) )
2532 .Tooltip( _( "Switch to the previous open footprint tab" ) ) );
2533
2535 .Name( "pcbnew.ModuleEditor.closeFootprintTab" )
2536 .Scope( AS_GLOBAL )
2537 .FriendlyName( _( "Close Footprint Tab" ) )
2538 .Tooltip( _( "Close the active footprint tab" ) ) );
2539
2540
2541// PLACEMENT_TOOL
2542//
2544 .Name( "pcbnew.AlignAndDistribute.alignTop" )
2545 .Scope( AS_GLOBAL )
2546 .FriendlyName( _( "Align to Top" ) )
2547 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
2548 .Icon( BITMAPS::align_items_top ) );
2549
2551 .Name( "pcbnew.AlignAndDistribute.alignBottom" )
2552 .Scope( AS_GLOBAL )
2553 .FriendlyName( _( "Align to Bottom" ) )
2554 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
2555 .Icon( BITMAPS::align_items_bottom ) );
2556
2558 .Name( "pcbnew.AlignAndDistribute.alignLeft" )
2559 .Scope( AS_GLOBAL )
2560 .FriendlyName( _( "Align to Left" ) )
2561 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
2562 .Icon( BITMAPS::align_items_left ) );
2563
2565 .Name( "pcbnew.AlignAndDistribute.alignRight" )
2566 .Scope( AS_GLOBAL )
2567 .FriendlyName( _( "Align to Right" ) )
2568 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
2569 .Icon( BITMAPS::align_items_right ) );
2570
2572 .Name( "pcbnew.AlignAndDistribute.alignCenterY" )
2573 .Scope( AS_GLOBAL )
2574 .FriendlyName( _( "Align to Vertical Center" ) )
2575 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
2576 .Icon( BITMAPS::align_items_center ) );
2577
2579 .Name( "pcbnew.AlignAndDistribute.alignCenterX" )
2580 .Scope( AS_GLOBAL )
2581 .FriendlyName( _( "Align to Horizontal Center" ) )
2582 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
2583 .Icon( BITMAPS::align_items_middle ) );
2584
2586 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyCenters" )
2587 .Scope( AS_GLOBAL )
2588 .FriendlyName( _( "Distribute Horizontally by Centers" ) )
2589 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
2590 "so that the item centers are equally distributed" ) )
2592
2594 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyGaps" )
2595 .Scope( AS_GLOBAL )
2596 .FriendlyName( _( "Distribute Horizontally with Even Gaps" ) )
2597 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
2598 "so that the gaps between items are equal" ) )
2600
2602 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyGaps" )
2603 .Scope( AS_GLOBAL )
2604 .FriendlyName( _( "Distribute Vertically with Even Gaps" ) )
2605 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2606 "so that the gaps between items are equal" ) )
2608
2610 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyCenters" )
2611 .Scope( AS_GLOBAL )
2612 .FriendlyName( _( "Distribute Vertically by Centers" ) )
2613 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2614 "so that the item centers are equally distributed" ) )
2616
2617// PCB_POINT_EDITOR
2618//
2620 .Name( "pcbnew.PointEditor.addCorner" )
2621 .Scope( AS_GLOBAL )
2622#ifdef __WXMAC__
2623 .DefaultHotkey( WXK_F1 )
2624#else
2625 .DefaultHotkey( WXK_INSERT )
2626#endif
2627 .FriendlyName( _( "Create Corner" ) )
2628 .Tooltip( _( "Create a corner" ) )
2629 .Icon( BITMAPS::add_corner ) );
2630
2632 .Name( "pcbnew.PointEditor.removeCorner" )
2633 .Scope( AS_GLOBAL )
2634 .FriendlyName( _( "Remove Corner" ) )
2635 .Tooltip( _( "Remove corner" ) )
2636 .Icon( BITMAPS::delete_cursor ) );
2637
2639 .Name( "pcbnew.PointEditor.chamferCorner" )
2640 .Scope( AS_GLOBAL )
2641 .FriendlyName( _( "Chamfer Corner" ) )
2642 .Tooltip( _( "Chamfer corner" ) )
2643 .Icon( BITMAPS::chamfer ) );
2644
2645// POSITION_RELATIVE_TOOL
2646//
2648 .Name( "pcbnew.PositionRelative.positionRelative" )
2649 .Scope( AS_GLOBAL )
2650 .DefaultHotkey( MD_SHIFT + 'P' )
2651 .LegacyHotkeyName( "Position Item Relative" )
2652 .FriendlyName( _( "Position Relative To..." ) )
2653 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another" ) )
2654 .Icon( BITMAPS::move_relative ) );
2655
2657 .Name( "pcbnew.PositionRelative.interactiveOffsetTool" )
2658 .Scope( AS_GLOBAL )
2659 .FriendlyName( _( "Interactive Offset Tool" ) )
2660 .Tooltip( _( "Interactive tool for offsetting items by exact amounts" ) )
2661 .Icon( BITMAPS::move_relative ) );
2662
2663// PCIKER_TOOL
2664//
2666 .Name( "pcbnew.Picker.selectItemInteractively" )
2667 .Scope( AS_GLOBAL )
2668 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ) );
2669
2671 .Name( "pcbnew.Picker.selectPointInteractively" )
2672 .Scope( AS_GLOBAL )
2673 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ));
2674
2675
2677 .Name( "pcbnew.InteractiveSelection.SelectConnection" )
2678 .Scope( AS_GLOBAL )
2679 .DefaultHotkey( 'U' )
2680 .LegacyHotkeyName( "Select Single Track" )
2681 .FriendlyName( _( "Select/Expand Connection" ) )
2682 .Tooltip( _( "Selects a connection or expands an existing selection to junctions, pads, or entire connections" ) )
2683 .Icon( BITMAPS::add_tracks ) );
2684
2686 .Name( "pcbnew.InteractiveSelection.unrouteSelected" )
2687 .Scope( AS_GLOBAL )
2688 .FriendlyName( _( "Unroute Selected" ) )
2689 .Tooltip( _( "Unroutes selected items to the nearest pad." ) )
2690 .Icon( BITMAPS::general_deletions ) );
2691
2693 .Name( "pcbnew.InteractiveSelection.unrouteSegment" )
2694 .Scope( AS_GLOBAL )
2695 .DefaultHotkey( WXK_BACK )
2696 .FriendlyName( _( "Unroute Segment" ) )
2697 .Tooltip( _( "Unroutes segment to the nearest segment." ) )
2698 .Icon( BITMAPS::general_deletions ) );
2699
2701 .Name( "pcbnew.InteractiveSelection.SyncSelection" )
2702 .Scope( AS_GLOBAL ) );
2703
2705 .Name( "pcbnew.InteractiveSelection.SyncSelectionWithNets" )
2706 .Scope( AS_GLOBAL ) );
2707
2709 .Name( "pcbnew.InteractiveSelection.SelectNet" )
2710 .Scope( AS_GLOBAL )
2711 .FriendlyName( _( "Select All Tracks in Net" ) )
2712 .Tooltip( _( "Selects all tracks & vias belonging to the same net." ) )
2713 .Parameter<int>( 0 ) );
2714
2716 .Name( "pcbnew.InteractiveSelection.DeselectNet" )
2717 .Scope( AS_GLOBAL )
2718 .FriendlyName( _( "Deselect All Tracks in Net" ) )
2719 .Tooltip( _( "Deselects all tracks & vias belonging to the same net." ) )
2720 .Parameter<int>( 0 ) );
2721
2723 .Name( "pcbnew.InteractiveSelection.SelectNetChain" )
2724 .Scope( AS_GLOBAL )
2725 .FriendlyName( _( "Select All Tracks in Net Chain" ) )
2726 .Tooltip( _( "Selects all tracks & vias belonging to every net in the same net "
2727 "chain (nets joined through series passives)." ) ) );
2728
2730 .Name( "pcbnew.InteractiveSelection.SelectUnconnected" )
2731 .Scope( AS_GLOBAL )
2732 .DefaultHotkey( 'O' )
2733 .FriendlyName( _( "Select All Unconnected Footprints" ) )
2734 .Tooltip( _( "Selects all unconnected footprints belonging to each selected net." ) ) );
2735
2737 .Name( "pcbnew.InteractiveSelection.GrabUnconnected" )
2738 .Scope( AS_GLOBAL )
2739 .DefaultHotkey( MD_SHIFT + 'O' )
2740 .FriendlyName( _( "Grab Nearest Unconnected Footprints" ) )
2741 .Tooltip( _( "Selects and initiates moving the nearest unconnected footprint on each selected net." ) ) );
2742
2744 .Name( "pcbnew.InteractiveSelection.SelectOnSheet" )
2745 .Scope( AS_GLOBAL )
2746 .FriendlyName( _( "Sheet" ) )
2747 .Tooltip( _( "Selects all footprints and tracks in the schematic sheet" ) )
2748 .Icon( BITMAPS::select_same_sheet ) );
2749
2751 .Name( "pcbnew.InteractiveSelection.SelectSameSheet" )
2752 .Scope( AS_GLOBAL )
2753 .FriendlyName( _( "Items in Same Hierarchical Sheet" ) )
2754 .Tooltip( _( "Selects all footprints and tracks in the same schematic sheet" ) )
2755 .Icon( BITMAPS::select_same_sheet ) );
2756
2758 .Name( "pcbnew.InteractiveSelection.SelectOnSchematic" )
2759 .Scope( AS_GLOBAL )
2760 .FriendlyName( _( "Select on Schematic" ) )
2761 .Tooltip( _( "Selects corresponding items in Schematic editor" ) )
2762 .Icon( BITMAPS::select_same_sheet ) );
2763
2765 .Name( "pcbnew.InteractiveSelection.FilterSelection" )
2766 .Scope( AS_GLOBAL )
2767 .FriendlyName( _( "Filter Selected Items..." ) )
2768 .Tooltip( _( "Remove items from the selection by type" ) )
2769 .Icon( BITMAPS::filter ) );
2770
2771
2772// ZONE_FILLER_TOOL
2773//
2775 .Name( "pcbnew.ZoneFiller.zoneFill" )
2776 .Scope( AS_GLOBAL )
2777 .FriendlyName( _( "Draft Fill Selected Zone(s)" ) )
2778 .Tooltip( _( "Update copper fill of selected zone(s) without regard to other interacting zones" ) )
2779 .Icon( BITMAPS::fill_zone )
2780 .Parameter<ZONE*>( nullptr ) );
2781
2783 .Name( "pcbnew.ZoneFiller.zoneFillAll" )
2784 .Scope( AS_GLOBAL )
2785 .DefaultHotkey( 'B' )
2786 .LegacyHotkeyName( "Fill or Refill All Zones" )
2787 .FriendlyName( _( "Fill All Zones" ) )
2788 .Tooltip( _( "Update copper fill of all zones" ) )
2789 .Icon( BITMAPS::fill_zone ) );
2790
2792 .Name( "pcbnew.ZoneFiller.zoneFillDirty" )
2793 .Scope( AS_CONTEXT ) );
2794
2796 .Name( "pcbnew.ZoneFiller.zoneUnfill" )
2797 .Scope( AS_GLOBAL )
2798 .FriendlyName( _( "Unfill Selected Zone(s)" ) )
2799 .Tooltip( _( "Remove copper fill from selected zone(s)" ) )
2800 .Icon( BITMAPS::zone_unfill ) );
2801
2803 .Name( "pcbnew.ZoneFiller.zoneUnfillAll" )
2804 .Scope( AS_GLOBAL )
2805 .DefaultHotkey( MD_CTRL + 'B' )
2806 .LegacyHotkeyName( "Remove Filled Areas in All Zones" )
2807 .FriendlyName( _( "Unfill All Zones" ) )
2808 .Tooltip( _( "Remove copper fill from all zones" ) )
2809 .Icon( BITMAPS::zone_unfill ) );
2810
2811
2812// AUTOPLACER_TOOL
2813//
2815 .Name( "pcbnew.Autoplacer.autoplaceSelected" )
2816 .Scope( AS_GLOBAL )
2817 .FriendlyName( _( "Place Selected Footprints" ) )
2818 .Tooltip( _( "Performs automatic placement of selected components" ) ) );
2819
2821 .Name( "pcbnew.Autoplacer.autoplaceOffboard" )
2822 .Scope( AS_GLOBAL )
2823 .FriendlyName( _( "Place Off-Board Footprints" ) )
2824 .Tooltip( _( "Performs automatic placement of components outside board area" ) ) );
2825
2827 .Name( "pcbnew.Multichannel.generatePlacementRuleAreas" )
2828 .Scope( AS_GLOBAL )
2829 .FriendlyName( _( "Generate Placement Rule Areas..." ) )
2830 .Tooltip( _( "Creates best-fit placement rule areas" ) )
2832 .Flags( AF_ACTIVATE ) );
2833
2835 .Name( "pcbnew.Multichannel.repeatLayout" )
2836 .Scope( AS_GLOBAL )
2837 .FriendlyName( _( "Repeat Layout..." ) )
2838 .Tooltip( _( "Clones placement & routing across multiple identical channels" ) )
2839 .Icon( BITMAPS::copy )
2840 );
2841
2842// ROUTER_TOOL
2843//
2845 .Name( "pcbnew.InteractiveRouter.SingleTrack" )
2846 .Scope( AS_GLOBAL )
2847 .DefaultHotkey( 'X' )
2848 .LegacyHotkeyName( "Add New Track" )
2849 .FriendlyName( _( "Route Single Track" ) )
2850 .Tooltip( _( "Route tracks" ) )
2851 .Icon( BITMAPS::add_tracks )
2852 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2853 .Flags( AF_ACTIVATE )
2854 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2855
2857 .Name( "pcbnew.InteractiveRouter.DiffPair" )
2858 .Scope( AS_GLOBAL )
2859 .DefaultHotkey( '6' )
2860 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2861 .LegacyHotkeyName( "Route Differential Pair (Modern Toolset only)" )
2862 .FriendlyName( _( "Route Differential Pair" ) )
2863 .Tooltip( _( "Route differential pairs" ) )
2864 .Icon( BITMAPS::ps_diff_pair )
2865 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2866 .Flags( AF_ACTIVATE )
2867 .Parameter( PNS::PNS_MODE_ROUTE_DIFF_PAIR ) );
2868
2870 .Name( "pcbnew.InteractiveRouter.SettingsDialog" )
2871 .Scope( AS_GLOBAL )
2872 .DefaultHotkey( MD_CTRL + '<' )
2873 .LegacyHotkeyName( "Routing Options" )
2874 .FriendlyName( _( "Interactive Router Settings..." ) )
2875 .Tooltip( _( "Open Interactive Router settings" ) )
2876 .Icon( BITMAPS::tools ) );
2877
2879 .Name( "pcbnew.InteractiveRouter.DiffPairDialog" )
2880 .Scope( AS_GLOBAL )
2881 .FriendlyName( _( "Differential Pair Dimensions..." ) )
2882 .Tooltip( _( "Open Differential Pair Dimension settings" ) )
2883 .Icon( BITMAPS::ps_diff_pair_gap ) );
2884
2886 .Name( "pcbnew.InteractiveRouter.HighlightMode" )
2887 .Scope( AS_GLOBAL )
2888 .FriendlyName( _( "Router Highlight Mode" ) )
2889 .Tooltip( _( "Switch router to highlight mode" ) )
2890 .Flags( AF_NONE )
2891 .Parameter( PNS::RM_MarkObstacles ) );
2892
2894 .Name( "pcbnew.InteractiveRouter.ShoveMode" )
2895 .Scope( AS_GLOBAL )
2896 .FriendlyName( _( "Router Shove Mode" ) )
2897 .Tooltip( _( "Switch router to shove mode" ) )
2898 .Flags( AF_NONE )
2899 .Parameter( PNS::RM_Shove ) );
2900
2902 .Name( "pcbnew.InteractiveRouter.WalkaroundMode" )
2903 .Scope( AS_GLOBAL )
2904 .FriendlyName( _( "Router Walkaround Mode" ) )
2905 .Tooltip( _( "Switch router to walkaround mode" ) )
2906 .Flags( AF_NONE )
2907 .Parameter( PNS::RM_Walkaround ) );
2908
2910 .Name( "pcbnew.InteractiveRouter.CycleRouterMode" )
2911 .Scope( AS_GLOBAL )
2912 .FriendlyName( _( "Cycle Router Mode" ) )
2913 .Tooltip( _( "Cycle router to the next mode" ) ) );
2914
2916 .Name( "pcbnew.InteractiveRouter.SelectLayerPair" )
2917 .Scope( AS_GLOBAL )
2918 .FriendlyName( _( "Set Layer Pair..." ) )
2919 .Tooltip( _( "Change active layer pair for routing" ) )
2921 .Flags( AF_ACTIVATE ) );
2922
2924 .Name( "pcbnew.LengthTuner.TuneSingleTrack" )
2925 .Scope( AS_GLOBAL )
2926 .DefaultHotkey( '7' )
2927 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2928 .LegacyHotkeyName( "Tune Single Track (Modern Toolset only)" )
2929 .FriendlyName( _( "Tune Length of a Single Track" ) )
2931 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2932 .Flags( AF_ACTIVATE )
2933 .Parameter( PNS::PNS_MODE_TUNE_SINGLE ) );
2934
2936 .Name( "pcbnew.LengthTuner.TuneDiffPair" )
2937 .Scope( AS_GLOBAL )
2938 .DefaultHotkey( '8' )
2939 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2940 .LegacyHotkeyName( "Tune Differential Pair Length (Modern Toolset only)" )
2941 .FriendlyName( _( "Tune Length of a Differential Pair" ) )
2943 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2944 .Flags( AF_ACTIVATE )
2945 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR ) );
2946
2948 .Name( "pcbnew.LengthTuner.TuneDiffPairSkew" )
2949 .Scope( AS_GLOBAL )
2950 .DefaultHotkey( '9' )
2951 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2952 .LegacyHotkeyName( "Tune Differential Pair Skew (Modern Toolset only)" )
2953 .FriendlyName( _( "Tune Skew of a Differential Pair" ) )
2955 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2956 .Flags( AF_ACTIVATE )
2957 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW ) );
2958
2960 .Name( "pcbnew.InteractiveRouter.InlineDrag" )
2961 .Scope( AS_CONTEXT )
2962 .Parameter<int>( PNS::DM_ANY ) );
2963
2965 .Name( "pcbnew.InteractiveRouter.UndoLastSegment" )
2966 .Scope( AS_CONTEXT )
2967 .DefaultHotkey( WXK_BACK )
2968 .FriendlyName( _( "Undo Last Segment" ) )
2969 .Tooltip( _( "Walks the current track back one segment." ) ) );
2970
2972 .Name( "pcbnew.InteractiveRouter.ContinueFromEnd" )
2973 .Scope( AS_CONTEXT )
2974 .DefaultHotkey( MD_CTRL + 'E' )
2975 .FriendlyName( _( "Route From Other End" ) )
2976 .Tooltip( _( "Commits current segments and starts next segment from nearest ratsnest end." ) ) );
2977
2979 .Name( "pcbnew.InteractiveRouter.AttemptFinish" )
2980 .Scope( AS_CONTEXT )
2981 .DefaultHotkey( 'F' )
2982 .FriendlyName( _( "Attempt Finish" ) )
2983 .Tooltip( _( "Attempts to complete current route to nearest ratsnest end." ) )
2984 .Parameter<bool*>( nullptr ) );
2985
2987 .Name( "pcbnew.InteractiveRouter.RouteSelected" )
2988 .Scope( AS_GLOBAL )
2989 .DefaultHotkey( MD_SHIFT + 'X' )
2990 .FriendlyName( _( "Route Selected" ) )
2991 .Tooltip( _( "Sequentially route selected items from ratsnest anchor." ) )
2992 .Flags( AF_ACTIVATE )
2993 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2994
2996 .Name( "pcbnew.InteractiveRouter.RouteSelectedFromEnd" )
2997 .Scope( AS_GLOBAL )
2998 .DefaultHotkey( MD_SHIFT + 'E' )
2999 .FriendlyName( _( "Route Selected From Other End" ) )
3000 .Tooltip( _( "Sequentially route selected items from other end of ratsnest anchor." ) )
3001 .Flags( AF_ACTIVATE )
3002 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
3003
3005 .Name( "pcbnew.InteractiveRouter.Autoroute" )
3006 .Scope( AS_GLOBAL )
3007 .DefaultHotkey( MD_SHIFT + 'F' )
3008 .FriendlyName( _( "Attempt Finish Selected (Autoroute)" ) )
3009 .Tooltip( _( "Sequentially attempt to automatically route all selected pads." ) )
3010 .Flags( AF_ACTIVATE )
3011 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
3012
3014 .Name( "pcbnew.InteractiveRouter.CancelCurrentItem" )
3015 .Scope( AS_GLOBAL )
3016 .FriendlyName( _( "Cancel Current Item" ) )
3017 .Tooltip( _( "Skip current item and route next selected item." ) ) );
3018
3020 .Name( "pcbnew.InteractiveRouter.BreakTrack" )
3021 .Scope( AS_GLOBAL )
3022 .FriendlyName( _( "Break Track" ) )
3023 .Tooltip( _( "Splits the track segment into two segments connected at the cursor position." ) )
3024 .Icon( BITMAPS::break_line ) );
3025
3027 .Name( "pcbnew.InteractiveRouter.Drag45Degree" )
3028 .Scope( AS_GLOBAL )
3029 .DefaultHotkey( 'D' )
3030 .LegacyHotkeyName( "Drag Track Keep Slope" )
3031 .FriendlyName( _( "Drag 45 Degree Mode" ) )
3032 .Tooltip( _( "Drags the track segment while keeping connected tracks at 45 degrees." ) )
3034
3036 .Name( "pcbnew.InteractiveRouter.DragFreeAngle" )
3037 .Scope( AS_GLOBAL )
3038 .DefaultHotkey( 'G' )
3039 .LegacyHotkeyName( "Drag Item" )
3040 .FriendlyName( _( "Drag Free Angle" ) )
3041 .Tooltip( _( "Drags the nearest joint in the track without restricting the track angle." ) )
3042 .Icon( BITMAPS::drag_segment ) );
3043
3044
3045// GENERATOR_TOOL
3046//
3047
3049 .Name( "pcbnew.Generator.regenerateAllTuning" )
3050 .Scope( AS_GLOBAL )
3051 .FriendlyName( _( "Update All Tuning Patterns" ) )
3052 .Tooltip( _( "Attempt to re-tune existing tuning patterns within their bounds" ) )
3054 .Parameter( wxString( wxS( "tuning_pattern" ) ) ) );
3055
3057 .Name( "pcbnew.Generator.regenerateAll" )
3058 .Scope( AS_GLOBAL )
3059 .FriendlyName( _( "Rebuild All Generators" ) )
3060 .Tooltip( _( "Rebuilds geometry of all generators" ) )
3061 .Icon( BITMAPS::refresh )
3062 .Parameter( wxString( wxS( "*" ) ) ) );
3063
3065 .Name( "pcbnew.Generator.regenerateSelected" )
3066 .Scope( AS_GLOBAL )
3067 .FriendlyName( _( "Rebuild Selected Generators" ) )
3068 .Tooltip( _( "Rebuilds geometry of selected generator(s)" ) )
3069 .Icon( BITMAPS::refresh ) );
3070
3071
3073 .Name( "pcbnew.Generator.genStartEdit" )
3074 .Scope( AS_CONTEXT ) );
3075
3077 .Name( "pcbnew.Generator.genUpdateEdit" )
3078 .Scope( AS_CONTEXT ) );
3079
3081 .Name( "pcbnew.Generator.genFinishEdit" )
3082 .Scope( AS_CONTEXT ) );
3083
3085 .Name( "pcbnew.Generator.genCacnelEdit" )
3086 .Scope( AS_CONTEXT ) );
3087
3089 .Name( "pcbnew.Generator.genRemove" )
3090 .Scope( AS_CONTEXT ) );
3091
3092
3094 .Name( "pcbnew.Generator.showManager" )
3095 .Scope( AS_GLOBAL )
3096 .FriendlyName( _( "Generators Manager" ) )
3097 .Tooltip( _( "Show a manager dialog for Generator objects" ) )
3098 .Icon( BITMAPS::pin_table ) );
3099
3100
3101// LENGTH_TUNER_TOOL
3102//
3104 .Name( "pcbnew.LengthTuner.Settings" )
3105 .ToolbarState( TOOLBAR_STATE::HIDDEN )
3106 .Scope( AS_GLOBAL )
3107 .DefaultHotkey( MD_CTRL + 'L' )
3108 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
3109 .LegacyHotkeyName( "Length Tuning Settings (Modern Toolset only)" )
3110 .FriendlyName( _( "Length Tuning Settings" ) )
3111 .MenuText( _( "Length Tuning Settings..." ) )
3112 .Tooltip( _( "Displays tuning pattern properties dialog" ) )
3114
3115// Drag and drop
3117 .Name( "pcbnew.Control.DdAppendBoard" )
3118 .Scope( AS_GLOBAL ) );
3119
3121 .Name( "pcbnew.Control.ddImportFootprint" )
3122 .Scope( AS_GLOBAL ) );
3123
3125 .Name( "pcbnew.InteractiveDrawing.ddImportGraphics" )
3126 .Scope( AS_GLOBAL ) );
3127
3128// actions for footprint wizard frame
3130 .Name( "pcbnew.FpWizard.showWizards" )
3131 .Scope( AS_GLOBAL )
3132 .FriendlyName( _( "Show wizards selector" ) )
3133 .Tooltip( _( "Select wizard script to run" ) )
3134 .Icon( BITMAPS::module_wizard ) );
3135
3137 .Name( "pcbnew.FpWizard.resetWizardPrms" )
3138 .Scope( AS_GLOBAL )
3139 .FriendlyName( _( "Reset wizard parameters" ) )
3140 .Tooltip( _( "Reset wizard parameters to default" ) )
3141 .Icon( BITMAPS::reload ) );
3142
3144 .Name( "pcbnew.FpWizard.exportFpToEditor" )
3145 .Scope( AS_GLOBAL )
3146 .FriendlyName( _( "Export footprint to editor" ) )
3147 .Tooltip( _( "Export footprint to editor" ) )
3149
3151 .Name( "pcbnew.InteractiveDiffPhaseSkew" )
3152 .Scope( AS_GLOBAL )
3153 .Flags( AF_ACTIVATE )
3154 .ToolbarState( TOOLBAR_STATE::TOGGLE )
3155 .FriendlyName( _( "Show relative skew of diff pair tracks" ) )
3156 .Tooltip( _( "Show relative skew of diff pair tracks" ) )
3158
3159
3161{
3162 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
3163 "common.Interactive.snappingModeChangedByKey" );
3164
3165 return event;
3166}
3167
3168
3170{
3171 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
3172 "pcbnew.Control.layerPairPresetChangedByKey" );
3173
3174 return event;
3175}
3176
3177
@ copy_pad_settings
@ add_zone_cutout
@ cleanup_tracks_and_vias
@ general_deletions
@ constraint_tangent
@ align_items_bottom
@ constraint_fixed_radius
@ align_items_left
@ show_zone_outline_only
@ constraint_vertical
@ push_pad_settings
@ distribute_horizontal_centers
@ distribute_vertical_centers
@ ps_diff_pair_tune_length
@ constraint_arc_angle
@ constraint_parallel
@ constraint_equal_radius
@ add_graphical_polygon
@ constraint_horizontal
@ align_items_middle
@ constraint_fixed_position
@ distribute_horizontal_gaps
@ add_radial_dimension
@ auto_track_width
@ router_len_tuner_dist_incr
@ tune_diff_pair_skew_legend
@ subtract_polygons
@ align_items_top
@ curved_ratsnest
@ router_len_tuner_dist_decr
@ add_aligned_dimension
@ constraint_auto
@ general_ratsnest
@ add_rectangle
@ outset_from_selection
@ mw_add_stub_arc
@ align_items_right
@ insert_module_board
@ apply_pad_settings
@ constraint_equal_length
@ add_ellipse_arc
@ icon_eeschema_24
@ add_center_dimension
@ drag_segment_withslope
@ width_track_via
@ export_footprint_names
@ add_graphical_segments
@ intersect_polygons
@ distribute_vertical_gaps
@ constraint_symmetric
@ ps_diff_pair_tune_phase
@ constraint_fixed_length
@ add_orthogonal_dimension
@ add_component
@ add_keepout_area
@ pack_footprints
@ constraint_collinear
@ constraint_concentric
@ custom_pad_to_primitives
@ constraint_angular_dimension
@ zoom_auto_fit_in_page
@ show_zone_disable
@ constraint_coincident
@ align_items_center
@ constraint_midpoint
@ constraint_perpendicular
@ load_module_board
@ import_brd_file
@ show_zone_triangulation
@ router_len_tuner
@ select_layer_pair
@ router_len_tuner_amplitude_incr
@ select_same_sheet
@ constraint_point_on_line
@ library_archive
@ router_len_tuner_setup
@ cleanup_graphics
@ router_len_tuner_amplitude_decr
@ edit_cmp_symb_links
@ ps_diff_pair_gap
@ CURSOR_NONE
Definition actions.h:302
static TOOL_ACTION editTracksAndVias
static TOOL_ACTION lineModeFree
Unconstrained angle mode (icon lines_any)
static TOOL_ACTION hideConstraints
Same toggle, shown while the overlay is visible.
static TOOL_ACTION_GROUP layerDirectSwitchActions()
static TOOL_ACTION showConstraintsPanel
Toggle the docked constraints pane (board editor).
static TOOL_ACTION deleteFootprint
static TOOL_ACTION drawRuleArea
static TOOL_ACTION layerToggle
static TOOL_ACTION drag45Degree
static TOOL_ACTION duplicateIncrement
Activation of the duplication tool with incrementing (e.g. pad number)
static TOOL_ACTION layerInner12
static TOOL_ACTION changeDimensionArrows
Switch between dimension arrow directions.
static TOOL_ACTION microwaveCreateGap
static TOOL_ACTION recombinePad
static TOOL_ACTION drawBezier
static TOOL_ACTION renameFootprint
static TOOL_ACTION routerUndoLastSegment
static TOOL_ACTION nextFootprint
static TOOL_ACTION placeText
static TOOL_ACTION layerInner8
static TOOL_ACTION swapLayers
static TOOL_ACTION zonesManager
static TOOL_ACTION generateBOM
static TOOL_ACTION highlightItem
static TOOL_ACTION selectNetChain
Select all connections belonging to every net in the current item's net chain.
Definition pcb_actions.h:86
static TOOL_ACTION drawOrthogonalDimension
static TOOL_ACTION drcRuleEditor
static TOOL_ACTION zoneDisplayToggle
static TOOL_ACTION enumeratePads
Tool for quick pad enumeration.
static TOOL_ACTION drawRectangle
static TOOL_ACTION previousFootprint
static TOOL_ACTION layerInner3
static TOOL_ACTION layerPrev
static TOOL_ACTION setAnchor
static TOOL_ACTION padDisplayMode
static TOOL_ACTION placeReferenceImage
static TOOL_ACTION routerSettingsDialog
Activation of the Push and Shove settings dialogs.
static TOOL_ACTION showRatsnest
static TOOL_ACTION exportGenCAD
static TOOL_ACTION zoneFillAll
static TOOL_ACTION layerInner2
static TOOL_ACTION showLayersManager
static TOOL_ACTION changeTrackWidth
Update selected tracks & vias to the current track & via dimensions.
static TOOL_ACTION trackWidthDec
static TOOL_ACTION routerAttemptFinish
static TOOL_ACTION convertToKeepout
static TOOL_ACTION toggleNetHighlight
static TOOL_ACTION generateDrillFiles
static TOOL_ACTION pushPadSettings
Copy the current pad's settings to other pads in the footprint or on the board.
static TOOL_ACTION addConstraintVertical
static TOOL_ACTION unrouteSelected
Removes all tracks from the selected items to the first pad.
Definition pcb_actions.h:74
static TOOL_ACTION saveSelectionAsDesignBlock
static TOOL_ACTION drawCircle
static TOOL_ACTION magneticSnapAllLayers
static TOOL_ACTION mirrorH
Mirroring of selected items.
static TOOL_ACTION routeDiffPair
Activation of the Push and Shove router (differential pair mode)
static TOOL_ACTION exportVRML
static TOOL_ACTION generateD356File
static TOOL_ACTION updateFootprint
static TOOL_ACTION collect3DModels
static TOOL_ACTION tuneDiffPair
static TOOL_ACTION convertToTracks
static TOOL_ACTION exportCmpFile
static TOOL_ACTION saveToLinkedDesignBlock
static TOOL_ACTION alignTop
static TOOL_ACTION trackViaSizeChanged
static TOOL_ACTION exportSpecctraDSN
static TOOL_ACTION createFootprint
static TOOL_ACTION layerChanged
static TOOL_ACTION trackWidthInc
static TOOL_ACTION grabUnconnected
Select and move nearest unconnected footprint from ratsnest of selection.
Definition pcb_actions.h:92
static TOOL_ACTION filterSelection
Filter the items in the current selection (invokes dialog)
static TOOL_ACTION setTerminalPad
static TOOL_ACTION ddAppendBoard
Drag and drop.
static TOOL_ACTION editFootprint
static TOOL_ACTION exportFootprint
static TOOL_ACTION layerInner25
static TOOL_ACTION drawEllipseArc
static TOOL_ACTION editDesignBlockProperties
static TOOL_ACTION breakTrack
Break a single track into two segments at the cursor.
static TOOL_ACTION pointEditorMoveMidpoint
static TOOL_ACTION highlightNet
static TOOL_ACTION magneticSnapActiveLayer
Snapping controls.
static TOOL_ACTION autoTrackWidth
static TOOL_ACTION generateIPC2581File
static TOOL_ACTION getAndPlace
Find an item and start moving.
static TOOL_ACTION drawTable
static TOOL_ACTION drawTextBox
static TOOL_ACTION addConstraintPerpendicular
static TOOL_ACTION generateODBPPFile
static TOOL_ACTION repeatLayout
static TOOL_ACTION copyPadSettings
Copy the selected pad's settings to the board design settings.
static TOOL_ACTION layerAlphaDec
static TOOL_ACTION routerRouteSelectedFromEnd
static TOOL_ACTION routerHighlightMode
Actions to enable switching modes via hotkey assignments.
static TOOL_ACTION routerWalkaroundMode
static TOOL_ACTION genFinishEdit
static TOOL_ACTION routerShoveMode
static TOOL_ACTION migrate3DModels
static TOOL_ACTION convertToLines
static TOOL_ACTION drawZoneCutout
static TOOL_ACTION drawPolygon
static TOOL_ACTION placePad
Activation of the drawing tool (placing a PAD)
static TOOL_ACTION openNonKicadBoard
static TOOL_ACTION hideNetInRatsnest
static TOOL_ACTION hideLocalRatsnest
static TOOL_ACTION swapPadNets
Swap nets between selected pads/gates (and connected copper)
static TOOL_ACTION exportFpToEditor
static TOOL_ACTION distributeHorizontallyGaps
static TOOL_ACTION zoneDisplayFilled
static TOOL_ACTION layerInner24
static TOOL_ACTION viaSizeDec
static TOOL_ACTION showNetInRatsnest
static TOOL_ACTION drawRadialDimension
static TOOL_ACTION genStartEdit
static TOOL_ACTION padTable
static TOOL_ACTION tuneSingleTrack
static TOOL_ACTION zoneFill
static TOOL_ACTION cleanupTracksAndVias
static TOOL_ACTION viaDisplayMode
static TOOL_ACTION editTextAndGraphics
static TOOL_ACTION properties
Activation of the edit tool.
static TOOL_ACTION drawLeader
static TOOL_ACTION editFpInFpEditor
static TOOL_ACTION addConstraintAngular
static TOOL_ACTION moveWithReference
move with a reference point
static TOOL_ACTION toggleLock
static TOOL_ACTION highlightNetChain
static TOOL_ACTION changeTrackLayerPrev
static TOOL_ACTION swap
Swapping of selected items.
static TOOL_ACTION toggleLastNetHighlight
static TOOL_ACTION layerInner29
static TOOL_ACTION * LayerIDToAction(PCB_LAYER_ID aLayerID)
Translate a layer ID into the action that switches to that layer.
static TOOL_ACTION drillResetOrigin
static TOOL_ACTION lineMode45
45-degree-or-orthogonal mode (icon hv45mode)
static TOOL_ACTION compareBoardWithHistory
static TOOL_ACTION deleteDesignBlock
static TOOL_ACTION placeCharacteristics
static TOOL_ACTION addConstraintArcAngle
static TOOL_ACTION zonePriorityMoveToBottom
static TOOL_ACTION pluginsShowFolder
Scripting Actions.
static TOOL_ACTION zonePriorityMoveToTop
static TOOL_ACTION viaSizeInc
static TOOL_ACTION angleSnapModeChanged
Notification event when angle mode changes.
static TOOL_ACTION routerAutorouteSelected
static TOOL_ACTION moveExact
Activation of the exact move tool.
static TOOL_ACTION autoplaceOffboardComponents
static TOOL_ACTION layerInner11
static TOOL_ACTION routerDiffPairDialog
static TOOL_ACTION explodePad
static TOOL_ACTION routerContinueFromEnd
static TOOL_ACTION zoneUnfill
static TOOL_ACTION intersectPolygons
Intersection of multiple polygons.
static TOOL_ACTION pointEditorMoveCorner
static TOOL_ACTION layerAlphaInc
static TOOL_ACTION saveBoardAsDesignBlock
static TOOL_ACTION drawCopperThievingZone
static TOOL_ACTION manageConstraints
Open the constraint list dialog.
static TOOL_ACTION layerPairPresetsCycle
static TOOL_ACTION distributeHorizontallyCenters
static TOOL_ACTION inspectConstraints
static TOOL_ACTION generatePosFile
static TOOL_ACTION globalDeletions
static TOOL_ACTION lineModeNext
Cycle through angle modes.
static TOOL_ACTION newFootprint
static TOOL_ACTION genRemove
static TOOL_ACTION drillOrigin
static TOOL_ACTION selectOnSheetFromEeschema
Select all components on sheet from Eeschema crossprobing.
Definition pcb_actions.h:95
static TOOL_ACTION layerInner16
static TOOL_ACTION defaultPadProperties
static TOOL_ACTION selectConnection
Select tracks between junctions or expands an existing selection to pads or the entire connection.
Definition pcb_actions.h:71
static TOOL_ACTION assignNetClass
static TOOL_ACTION packAndMoveFootprints
Pack and start moving selected footprints.
static TOOL_ACTION alignRight
static TOOL_ACTION tuneSkew
static TOOL_ACTION copyWithReference
copy command with manual reference point selection
static TOOL_ACTION layerInner26
static TOOL_ACTION genCancelEdit
static TOOL_ACTION prevFootprintTab
static TOOL_ACTION layerInner18
static TOOL_ACTION incWidth
Increase width of currently drawn line.
static TOOL_ACTION repairBoard
static TOOL_ACTION layerInner14
static TOOL_ACTION addConstraintHorizontal
static TOOL_ACTION healShapes
Connect selected shapes, possibly extending or cutting them, or adding extra geometry.
static TOOL_ACTION selectPointInteractively
static TOOL_ACTION toggleExcludeFromBOM
static TOOL_ACTION trackDisplayMode
static TOOL_ACTION exportSTEP
static TOOL_ACTION showNetInspector
static TOOL_ACTION selectLayerPair
static TOOL_ACTION magneticSnapToggle
static TOOL_ACTION microwaveCreateStubArc
static TOOL_ACTION layerInner6
static TOOL_ACTION applyDesignBlockLayout
static TOOL_ACTION dragFreeAngle
static TOOL_ACTION drawEllipse
static TOOL_ACTION findByProperties
Find items by property criteria or expression.
static TOOL_ACTION clearHighlight
static TOOL_ACTION generateGerbers
static TOOL_ACTION inspectClearance
static TOOL_ACTION convertToZone
static TOOL_ACTION ddImportFootprint
static TOOL_ACTION generatorsShowManager
static const std::vector< const TOOL_ACTION * > & ConstraintAddActions()
Canonical ordered list of the geometric-constraint "add" actions, shared by the context submenu (gate...
static TOOL_ACTION zoneDisplayTriangulated
static TOOL_ACTION genUpdateEdit
static TOOL_ACTION generateReportFile
static TOOL_ACTION rehatchShapes
static TOOL_ACTION updateLocalRatsnest
static TOOL_ACTION spacingDecrease
static TOOL_ACTION updateFootprints
static TOOL_ACTION exportHyperlynx
static TOOL_ACTION importFootprint
static TOOL_ACTION autoplaceSelectedComponents
static TOOL_ACTION layerInner22
static TOOL_ACTION zonePriorityLower
static TOOL_ACTION placeDesignBlock
static TOOL_ACTION alignBottom
static TOOL_ACTION selectUnconnected
Select unconnected footprints from ratsnest of selection.
Definition pcb_actions.h:89
static TOOL_ACTION placeImportedGraphics
static TOOL_ACTION layerInner5
static TOOL_ACTION removeUnusedPads
static TOOL_ACTION zoneDisplayFractured
static TOOL_ACTION addConstraintCollinear
static TOOL_ACTION ratsnestModeCycle
static TOOL_ACTION drawVia
static TOOL_ACTION regenerateAll
static TOOL_ACTION showWizards
Footprint wizard frame actions:
static TOOL_ACTION applyPadSettings
Copy the default pad settings to the selected pad.
static TOOL_ACTION alignLeft
static TOOL_ACTION drawArc
static TOOL_ACTION deleteFull
static TOOL_ACTION exportIDF
static TOOL_ACTION runDRC
static TOOL_ACTION convertToPoly
static TOOL_ACTION zoneDuplicate
Duplicate zone onto another layer.
static TOOL_ACTION unrouteSegment
Removes track segment from the selected item to the next segment.
Definition pcb_actions.h:77
static TOOL_ACTION regenerateAllTuning
Generator tool.
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
static TOOL_ACTION importNetlist
static TOOL_ACTION generatePlacementRuleAreas
static TOOL_ACTION layerInner20
static TOOL_ACTION addConstraintEqualRadius
static TOOL_ACTION layerInner7
static TOOL_ACTION layerInner27
static TOOL_ACTION compareBoardWithFile
static TOOL_ACTION diffFootprint
static TOOL_ACTION addConstraintTangent
static TOOL_ACTION moveIndividually
move items one-by-one
static TOOL_ACTION changeFootprints
static TOOL_ACTION outsetItems
Create outset items from selection.
static TOOL_ACTION drawSimilarZone
static TOOL_ACTION syncSelection
Sets selection to specified items, zooms to fit, if enabled.
Definition pcb_actions.h:61
static TOOL_ACTION boardSetup
static TOOL_ACTION showEeschema
static TOOL_ACTION loadFpFromBoard
static TOOL_ACTION showDesignBlockPanel
static TOOL_ACTION decWidth
Decrease width of currently drawn line.
static TOOL_ACTION drawCenterDimension
static TOOL_ACTION toggleExcludeFromPosFiles
static TOOL_ACTION zoneUnfillAll
static TOOL_ACTION pasteFootprint
static TOOL_ACTION zoneFillDirty
static TOOL_ACTION cancelCurrentItem
static TOOL_ACTION chamferLines
Chamfer (i.e. adds a straight line) all selected straight lines by a user defined setback.
static TOOL_ACTION appendBoard
static TOOL_ACTION netColorModeCycle
static TOOL_ACTION selectSameSheet
Select all components on the same sheet as the selected footprint.
Definition pcb_actions.h:98
static TOOL_ACTION layerInner1
static TOOL_ACTION layerInner10
static TOOL_ACTION dogboneCorners
Add "dogbone" corners to selected lines to allow routing with a cutter radius.
static TOOL_ACTION microwaveCreateStub
static TOOL_ACTION selectNet
Select all connections belonging to a single net.
Definition pcb_actions.h:80
static TOOL_ACTION filletTracks
Fillet (i.e. adds an arc tangent to) all selected straight tracks by a user defined radius.
static TOOL_ACTION updateDesignBlockFromBoard
static TOOL_ACTION layerInner15
static TOOL_ACTION simplifyPolygons
Simplify polygon outlines.
static TOOL_ACTION ddImportGraphics
static TOOL_ACTION interactiveOffsetTool
static TOOL_ACTION microwaveCreateLine
static TOOL_ACTION addConstraintFixedLength
static TOOL_ACTION footprintProperties
static TOOL_ACTION layerInner17
static TOOL_ACTION flipBoard
static TOOL_ACTION layerBottom
static TOOL_ACTION lineMode90
90-degree-only mode (icon lines90)
static TOOL_ACTION closeFootprintTab
static TOOL_ACTION zoneDisplayOutline
static TOOL_ACTION ratsnestLineMode
static TOOL_ACTION showFootprintAssociations
static TOOL_ACTION layerInner19
static TOOL_ACTION layerInner9
static TOOL_ACTION nextFootprintTab
static TOOL_ACTION toggleAutoConstraints
Toggle authoring constraints automatically while drawing.
static TOOL_ACTION fpAutoZoom
static TOOL_ACTION pointEditorChamferCorner
static TOOL_ACTION textOutlines
Display texts as lines.
static TOOL_ACTION resetWizardPrms
static TOOL_ACTION showPadNumbers
static TOOL_ACTION checkFootprint
static TOOL_ACTION filletLines
Fillet (i.e. adds an arc tangent to) all selected straight lines by a user defined radius.
static TOOL_ACTION highlightNetSelection
static TOOL_ACTION microwaveCreateFunctionShape
static TOOL_ACTION placeBarcode
static TOOL_ACTION placePoint
static TOOL_ACTION editLibFpInFpEditor
static TOOL_ACTION zoneMerge
static TOOL_ACTION addConstraintSymmetric
static TOOL_ACTION duplicateFootprint
static TOOL_ACTION closeOutline
static TOOL_ACTION addConstraintFixedPosition
Ground a point, and the cluster holding it.
static TOOL_ACTION changeFootprint
static TOOL_ACTION routerInlineDrag
Activation of the Push and Shove router (inline dragging mode)
static TOOL_ACTION pointEditorRemoveCorner
static TOOL_ACTION positionRelative
static TOOL_ACTION skip
static TOOL_ACTION amplIncrease
static TOOL_ACTION move
move or drag an item
static TOOL_ACTION mirrorV
static TOOL_ACTION cutFootprint
static TOOL_ACTION amplDecrease
static TOOL_ACTION drillSetOrigin
static TOOL_ACTION unlock
static TOOL_ACTION lengthTunerSettings
static TOOL_ACTION addConstraintPointOnLine
static TOOL_ACTION mergePolygons
Merge multiple polygons into a single polygon.
static TOOL_ACTION syncSelectionWithNets
Sets selection to specified items with connected nets, zooms to fit, if enabled.
Definition pcb_actions.h:64
static TOOL_ACTION spacingIncrease
static TOOL_ACTION layerInner30
static TOOL_ACTION boardReannotate
static TOOL_ACTION subtractPolygons
Subtract polygons from other polygons.
static TOOL_ACTION layerTop
static TOOL_ACTION updateDesignBlockFromSelection
static TOOL_ACTION cycleRouterMode
static TOOL_ACTION regenerateSelected
static TOOL_ACTION convertToArc
static TOOL_ACTION layerInner4
static TOOL_ACTION repairFootprint
static TOOL_ACTION changeTrackLayerNext
static TOOL_ACTION flip
Flipping of selected objects.
static TOOL_ACTION exportFootprints
static TOOL_ACTION alignCenterX
static TOOL_ACTION placeFootprint
static TOOL_ACTION pointEditorAddCorner
static TOOL_ACTION routeSingleTrack
Activation of the Push and Shove router.
static TOOL_ACTION layerInner13
static TOOL_ACTION editVertices
Edit polygon vertices in a table.
static TOOL_ACTION layerInner21
static TOOL_ACTION selectItemInteractively
Selection of reference points/items.
static TOOL_ACTION createArray
Tool for creating an array of objects.
static TOOL_ACTION boardStatistics
static TOOL_ACTION showDiffPhaseSkew
Display of phase skew between differential pair tracks.
static TOOL_ACTION saveFpToBoard
static TOOL_ACTION compareFpLibraryWithFile
static TOOL_ACTION deselectNet
Remove all connections belonging to a single net from the active selection.
Definition pcb_actions.h:83
static TOOL_ACTION editTeardrops
static TOOL_ACTION swapGateNets
static TOOL_ACTION layerNext
static TOOL_ACTION addConstraintCoincident
static TOOL_ACTION copyFootprint
static TOOL_ACTION extendLines
Extend selected lines to meet at a point.
static TOOL_ACTION drawLine
static TOOL_ACTION placeLinkedDesignBlock
static TOOL_ACTION distributeVerticallyGaps
static TOOL_ACTION placeStackup
static TOOL_ACTION localRatsnestTool
static TOOL_ACTION routerRouteSelected
static TOOL_ACTION showConstraints
Toggle the constraint diagnostics overlay.
static TOOL_ACTION cleanupGraphics
static TOOL_ACTION rotateCw
Rotation of selected objects.
static TOOL_ACTION rotateCcw
static TOOL_ACTION addConstraintParallel
static TOOL_ACTION drawAlignedDimension
static TOOL_ACTION addConstraintFixedRadius
static TOOL_ACTION addConstraintEqualLength
static TOOL_ACTION removeConstraints
static TOOL_ACTION layerInner23
static TOOL_ACTION distributeVerticallyCenters
static TOOL_ACTION drawZone
static TOOL_ACTION zonePriorityRaise
static TOOL_ACTION alignCenterY
static TOOL_ACTION rescueAutosave
static TOOL_ACTION importSpecctraSession
static TOOL_ACTION selectOnSchematic
Select symbols/pins on schematic corresponding to selected footprints/pads.
static TOOL_ACTION addConstraintMidpoint
static TOOL_ACTION lock
static TOOL_ACTION addConstraintConcentric
static TOOL_ACTION layerInner28
static const TOOL_EVENT & SnappingModeChangedByKeyEvent()
Hotkey feedback.
static const TOOL_EVENT & LayerPairPresetChangedByKeyEvent()
Build up the properties of a TOOL_ACTION in an incremental manner that is static-construction safe.
TOOL_ACTION_ARGS & FriendlyName(const std::string_view &aName)
Define a group that can be used to group actions (and their events) of similar operations.
Definition tool_action.h:75
Represent a single user action.
Generic, UI-independent tool event.
Definition tool_event.h:167
a few functions useful in geometry calculations.
@ DEG45
45 Degree only
@ DIRECT
Unconstrained point-to-point.
@ DEG90
90 Degree only
KIID niluuid(0)
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:56
@ In22_Cu
Definition layer_ids.h:83
@ In11_Cu
Definition layer_ids.h:72
@ In29_Cu
Definition layer_ids.h:90
@ In30_Cu
Definition layer_ids.h:91
@ In17_Cu
Definition layer_ids.h:78
@ In9_Cu
Definition layer_ids.h:70
@ In19_Cu
Definition layer_ids.h:80
@ In7_Cu
Definition layer_ids.h:68
@ In28_Cu
Definition layer_ids.h:89
@ In26_Cu
Definition layer_ids.h:87
@ B_Cu
Definition layer_ids.h:61
@ In21_Cu
Definition layer_ids.h:82
@ In23_Cu
Definition layer_ids.h:84
@ In15_Cu
Definition layer_ids.h:76
@ In2_Cu
Definition layer_ids.h:63
@ In10_Cu
Definition layer_ids.h:71
@ In4_Cu
Definition layer_ids.h:65
@ In16_Cu
Definition layer_ids.h:77
@ In24_Cu
Definition layer_ids.h:85
@ In1_Cu
Definition layer_ids.h:62
@ In13_Cu
Definition layer_ids.h:74
@ In8_Cu
Definition layer_ids.h:69
@ In14_Cu
Definition layer_ids.h:75
@ In12_Cu
Definition layer_ids.h:73
@ In27_Cu
Definition layer_ids.h:88
@ In6_Cu
Definition layer_ids.h:67
@ In5_Cu
Definition layer_ids.h:66
@ In3_Cu
Definition layer_ids.h:64
@ In20_Cu
Definition layer_ids.h:81
@ F_Cu
Definition layer_ids.h:60
@ In18_Cu
Definition layer_ids.h:79
@ In25_Cu
Definition layer_ids.h:86
@ RM_MarkObstacles
Ignore collisions, mark obstacles.
@ RM_Walkaround
Only walk around.
@ RM_Shove
Only shove.
@ PNS_MODE_ROUTE_SINGLE
Definition pns_router.h:68
@ PNS_MODE_ROUTE_DIFF_PAIR
Definition pns_router.h:69
@ PNS_MODE_TUNE_DIFF_PAIR
Definition pns_router.h:71
@ PNS_MODE_TUNE_SINGLE
Definition pns_router.h:70
@ PNS_MODE_TUNE_DIFF_PAIR_SKEW
Definition pns_router.h:72
@ DM_ANY
Definition pns_router.h:82
#define _(s)
@ SIMILAR
Add a new zone with the same settings as an existing one.
Definition pcb_actions.h:36
@ CUTOUT
Make a cutout to an existing zone.
Definition pcb_actions.h:35
@ GRAPHIC_POLYGON
Definition pcb_actions.h:37
@ ADD
Add a new zone/keepout with fresh settings.
Definition pcb_actions.h:34
@ CONCENTRIC
Two arcs/circles share a center.
@ SYMMETRIC
Two points are mirror images about an axis.
@ FIXED_POSITION
A point is locked at its current location.
@ VERTICAL
A segment (or two points) is vertical.
@ TANGENT
A line and a curve, or two curves, touch tangentially.
@ COINCIDENT
Two points are made to coincide.
@ PERPENDICULAR
Two segments are perpendicular.
@ FIXED_RADIUS
An arc/circle has a driving radius value.
@ HORIZONTAL
A segment (or two points) is horizontal.
@ EQUAL_RADIUS
Two arcs/circles have equal radius.
@ MIDPOINT
A point is the midpoint of a segment.
@ POINT_ON_LINE
A point lies on a segment's supporting line.
@ FIXED_LENGTH
A segment has a driving length value.
@ ANGULAR_DIMENSION
An angle between members (driving or reference).
@ COLLINEAR
Two segments lie on the same line.
@ ARC_ANGLE
An arc has a driving or reference swept-angle value.
@ PARALLEL
Two segments are parallel.
@ EQUAL_LENGTH
Two segments have equal length.
@ TOGGLE
Action is a toggle button on the toolbar.
Definition tool_action.h:60
@ HIDDEN
Action is hidden from the toolbar.
Definition tool_action.h:59
@ AS_GLOBAL
Global action (toolbar/main menu event, global shortcut)
Definition tool_action.h:45
@ AS_CONTEXT
Action belongs to a particular tool (i.e. a part of a pop-up menu)
Definition tool_action.h:43
@ AF_ACTIVATE
Action activates a tool.
Definition tool_action.h:52
@ AF_NOTIFY
Action is a notification (it is by default passed to all tools)
Definition tool_action.h:53
@ AF_NONE
Definition tool_action.h:51
@ TA_ACTION
Tool action (allows one to control tools).
Definition tool_event.h:108
@ MD_ALT
Definition tool_event.h:141
@ MD_CTRL
Definition tool_event.h:140
@ MD_SHIFT
Definition tool_event.h:139
@ TC_MESSAGE
Definition tool_event.h:54
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:683