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.drawViaStitchArea" )
350 .Scope( AS_GLOBAL )
351 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'N' )
352 .LegacyHotkeyName( "Draw Via Stitch area" )
353 .FriendlyName( _( "Draw Via Stitch area" ) )
354 .Tooltip( _( "Draw a via stitch area" ) )
356 .Flags( AF_ACTIVATE )
357 .Parameter( ZONE_MODE::STITCH ) );
358
360 .Name( "pcbnew.InteractiveDrawing.rectangle" )
361 .Scope( AS_GLOBAL )
362 .FriendlyName( _( "Draw Rectangles" ) )
363 .ToolbarState( TOOLBAR_STATE::TOGGLE )
365 .Flags( AF_ACTIVATE ) );
366
368 .Name( "pcbnew.InteractiveDrawing.circle" )
369 .Scope( AS_GLOBAL )
370 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'C' )
371 .LegacyHotkeyName( "Draw Circle" )
372 .FriendlyName( _( "Draw Circles" ) )
373 .ToolbarState( TOOLBAR_STATE::TOGGLE )
374 .Icon( BITMAPS::add_circle )
375 .Flags( AF_ACTIVATE ) );
376
378 .Name( "pcbnew.InteractiveDrawing.ellipse" )
379 .Scope( AS_GLOBAL )
380 .FriendlyName( _( "Draw Ellipse" ) )
381 .Tooltip( _( "Draw an ellipse" ) )
382 .ToolbarState( TOOLBAR_STATE::TOGGLE )
383 .Icon( BITMAPS::add_ellipse )
384 .Flags( AF_ACTIVATE ) );
385
387 .Name( "pcbnew.InteractiveDrawing.ellipseArc" )
388 .Scope( AS_GLOBAL )
389 .FriendlyName( _( "Draw Elliptical Arcs" ) )
390 .Tooltip( _( "Draw an elliptical arc" ) )
391 .ToolbarState( TOOLBAR_STATE::TOGGLE )
393 .Flags( AF_ACTIVATE ) );
394
396 .Name( "pcbnew.InteractiveDrawing.arc" )
397 .Scope( AS_GLOBAL )
398 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'A' )
399 .LegacyHotkeyName( "Draw Arc" )
400 .FriendlyName( _( "Draw Arcs" ) )
401 .ToolbarState( TOOLBAR_STATE::TOGGLE )
402 .Icon( BITMAPS::add_arc )
403 .Flags( AF_ACTIVATE ) );
404
406 .Name( "pcbnew.InteractiveDrawing.bezier" )
407 .Scope( AS_GLOBAL )
408 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'B' )
409 .FriendlyName( _( "Draw Bezier Curve" ) )
410 .ToolbarState( TOOLBAR_STATE::TOGGLE )
411 .Icon( BITMAPS::add_bezier )
412 .Flags( AF_ACTIVATE ) );
413
415 .Name( "pcbnew.InteractiveDrawing.barcode" )
416 .Scope( AS_GLOBAL )
417 .LegacyHotkeyName( "Add Barcode" )
418 .FriendlyName( _( "Add Barcode" ) )
419 .Tooltip( _( "Add a barcode" ) )
420 .Icon( BITMAPS::add_barcode )
421 .Flags( AF_ACTIVATE ) );
422
423
425 .Name( "pcbnew.InteractiveDrawing.placeCharacteristics" )
426 .Scope( AS_GLOBAL )
427 .LegacyHotkeyName( "Add Board Characteristics" )
428 .FriendlyName( _( "Add Board Characteristics" ) )
429 .Tooltip( _( "Add a board characteristics table on a graphic layer" ) )
430 .ToolbarState( TOOLBAR_STATE::TOGGLE )
431 .Flags( AF_ACTIVATE ) );
432
434 .Name( "pcbnew.InteractiveDrawing.placeStackup" )
435 .Scope( AS_GLOBAL )
436 .LegacyHotkeyName( "Add Stackup Table" )
437 .FriendlyName( _( "Add Stackup Table" ) )
438 .Tooltip( _( "Add a board stackup table on a graphic layer" ) )
439 .ToolbarState( TOOLBAR_STATE::TOGGLE )
440 .Flags( AF_ACTIVATE ) );
441
443 .Name( "pcbnew.InteractiveDrawing.placeDrillChart" )
444 .Scope( AS_GLOBAL )
445 .FriendlyName( _( "Add Drill Chart" ) )
446 .Tooltip( _( "Add a drill chart that tracks the board's holes" ) )
447 .ToolbarState( TOOLBAR_STATE::TOGGLE )
448 .Flags( AF_ACTIVATE ) );
449
451 .Name( "pcbnew.InteractiveDrawing.placeDrillMap" )
452 .Scope( AS_GLOBAL )
453 .FriendlyName( _( "Add Drill Map" ) )
454 .Tooltip( _( "Draw drill symbols at the holes on a documentation layer" ) )
455 .ToolbarState( TOOLBAR_STATE::TOGGLE )
456 .Flags( AF_ACTIVATE ) );
457
459 .Name( "pcbnew.InteractiveDrawing.showDrillGroups" )
460 .Scope( AS_GLOBAL )
461 .FriendlyName( _( "Drill Groups..." ) )
462 .Tooltip( _( "Inspect drill groups and assign symbols" ) ) );
463
465 .Name( "pcbnew.InteractiveDrawing.placePoint" )
466 .Scope( AS_GLOBAL )
467 .FriendlyName( _( "Place Point" ) )
468 .Tooltip( _( "Add reference/snap points" ) )
469 .ToolbarState( TOOLBAR_STATE::TOGGLE )
470 .Icon( BITMAPS::add_point )
471 .Flags( AF_ACTIVATE ) );
472
474 .Name( "pcbnew.InteractiveDrawing.placeReferenceImage" )
475 .Scope( AS_GLOBAL )
476 .FriendlyName( _( "Place Reference Images" ) )
477 .Tooltip( _( "Add bitmap images to be used as reference (images will not be included in any output)" ) )
478 .ToolbarState( TOOLBAR_STATE::TOGGLE )
479 .Icon( BITMAPS::image )
480 .Flags( AF_ACTIVATE )
481 .Parameter<PCB_REFERENCE_IMAGE*>( nullptr ) );
482
484 .Name( "pcbnew.InteractiveDrawing.text" )
485 .Scope( AS_GLOBAL )
486 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'T' )
487 .LegacyHotkeyName( "Add Text" )
488 .FriendlyName( _( "Draw Text" ) )
489 .ToolbarState( TOOLBAR_STATE::TOGGLE )
490 .Icon( BITMAPS::text )
491 .Flags( AF_ACTIVATE ) );
492
494 .Name( "pcbnew.InteractiveDrawing.textbox" )
495 .Scope( AS_GLOBAL )
496 .FriendlyName( _( "Draw Text Boxes" ) )
497 .ToolbarState( TOOLBAR_STATE::TOGGLE )
498 .Icon( BITMAPS::add_textbox )
499 .Flags( AF_ACTIVATE ) );
500
502 .Name( "pcbnew.InteractiveDrawing.drawTable" )
503 .Scope( AS_GLOBAL )
504 .FriendlyName( _( "Draw Tables" ) )
505 .ToolbarState( TOOLBAR_STATE::TOGGLE )
506 .Icon( BITMAPS::table )
507 .Flags( AF_ACTIVATE ) );
508
510 .Name( "pcbnew.lengthTuner.SpacingIncrease" )
511 .Scope( AS_GLOBAL )
512 .DefaultHotkey( '1' )
513 .LegacyHotkeyName( "Increase meander spacing by one step." )
514 .FriendlyName( _( "Increase Spacing" ) )
515 .Tooltip( _( "Increase tuning pattern spacing by one step." ) )
517
519 .Name( "pcbnew.lengthTuner.SpacingDecrease" )
520 .Scope( AS_GLOBAL )
521 .DefaultHotkey( '2' )
522 .LegacyHotkeyName( "Decrease meander spacing by one step." )
523 .FriendlyName( _( "Decrease Spacing" ) )
524 .Tooltip( _( "Decrease tuning pattern spacing by one step." ) )
526
528 .Name( "pcbnew.lengthTuner.AmplIncrease" )
529 .Scope( AS_GLOBAL )
530 .DefaultHotkey( '3' )
531 .LegacyHotkeyName( "Increase meander amplitude by one step." )
532 .FriendlyName( _( "Increase Amplitude" ) )
533 .Tooltip( _( "Increase tuning pattern amplitude by one step." ) )
535
537 .Name( "pcbnew.lengthTuner.AmplDecrease" )
538 .Scope( AS_GLOBAL )
539 .DefaultHotkey( '4' )
540 .LegacyHotkeyName( "Decrease meander amplitude by one step." )
541 .FriendlyName( _( "Decrease Amplitude" ) )
542 .Tooltip( _( "Decrease tuning pattern amplitude by one step." ) )
544
545
547 .Name( "pcbnew.InteractiveDrawing.alignedDimension" )
548 .Scope( AS_GLOBAL )
549 .LegacyHotkeyName( "Add Dimension" )
550 .FriendlyName( _( "Draw Aligned Dimensions" ) )
551 .ToolbarState( TOOLBAR_STATE::TOGGLE )
553 .Flags( AF_ACTIVATE ) );
554
556 .Name( "pcbnew.InteractiveDrawing.centerDimension" )
557 .Scope( AS_GLOBAL )
558 .FriendlyName( _( "Draw Center Dimensions" ) )
559 .ToolbarState( TOOLBAR_STATE::TOGGLE )
561 .Flags( AF_ACTIVATE ) );
562
564 .Name( "pcbnew.InteractiveDrawing.radialDimension" )
565 .Scope( AS_GLOBAL )
566 .FriendlyName( _( "Draw Radial Dimensions" ) )
567 .ToolbarState( TOOLBAR_STATE::TOGGLE )
569 .Flags( AF_ACTIVATE ) );
570
572 .Name( "pcbnew.InteractiveDrawing.orthogonalDimension" )
573 .Scope( AS_GLOBAL )
574 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'H' )
575 .FriendlyName( _( "Draw Orthogonal Dimensions" ) )
576 .ToolbarState( TOOLBAR_STATE::TOGGLE )
578 .Flags( AF_ACTIVATE ) );
579
581 .Name( "pcbnew.InteractiveDrawing.leader" )
582 .Scope( AS_GLOBAL )
583 .FriendlyName( _( "Draw Leaders" ) )
584 .ToolbarState( TOOLBAR_STATE::TOGGLE )
585 .Icon( BITMAPS::add_leader )
586 .Flags( AF_ACTIVATE ) );
587
589 .Name( "pcbnew.InteractiveDrawing.zone" )
590 .Scope( AS_GLOBAL )
591#ifdef __WXOSX_MAC__
592 .DefaultHotkey( MD_ALT + 'Z' )
593#else
594 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'Z' )
595#endif
596 .LegacyHotkeyName( "Add Filled Zone" )
597 .FriendlyName( _( "Draw Filled Zones" ) )
598 .ToolbarState( TOOLBAR_STATE::TOGGLE )
599 .Icon( BITMAPS::add_zone )
600 .Flags( AF_ACTIVATE )
601 .Parameter( ZONE_MODE::ADD ) );
602
604 .Name( "pcbnew.InteractiveDrawing.copperThievingZone" )
605 .Scope( AS_GLOBAL )
606 .FriendlyName( _( "Draw Copper Thieving Zone" ) )
607 .Tooltip( _( "Add a non-electrical thieving zone for plating-balance copper" ) )
608 .ToolbarState( TOOLBAR_STATE::TOGGLE )
609 .Icon( BITMAPS::add_zone )
610 .Flags( AF_ACTIVATE )
611 .Parameter( ZONE_MODE::ADD ) );
612
614 .Name( "pcbnew.InteractiveDrawing.via" )
615 .Scope( AS_GLOBAL )
616 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'X' )
617 .LegacyHotkeyName( "Add Vias" )
618 .FriendlyName( _( "Place Vias" ) )
619 .Tooltip( _( "Place free-standing vias" ) )
620 .ToolbarState( TOOLBAR_STATE::TOGGLE )
621 .Icon( BITMAPS::add_via )
622 .Flags( AF_ACTIVATE ) );
623
625 .Name( "pcbnew.InteractiveDrawing.viaStack" )
626 .Scope( AS_GLOBAL )
627 .FriendlyName( _( "Place Microvia Stack" ) )
628 .Tooltip( _( "Place a stacked or staggered microvia stack" ) )
629 .ToolbarState( TOOLBAR_STATE::TOGGLE )
631 .Flags( AF_ACTIVATE ) );
632
634 .Name( "pcbnew.Generator.makeViaStack" )
635 .Scope( AS_GLOBAL )
636 .FriendlyName( _( "Create Stack from Selection" ) )
637 .Tooltip( _( "Wrap the selected microvias and traces into a microvia stack" ) )
638 .Icon( BITMAPS::add_via_stack ) );
639
641 .Name( "pcbnew.InteractiveDrawing.ruleArea" )
642 .Scope( AS_GLOBAL )
643 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'K' )
644 .LegacyHotkeyName( "Add Keepout Area" )
645 .FriendlyName( _( "Draw Rule Areas" ) )
646 .ToolbarState( TOOLBAR_STATE::TOGGLE )
648 .Flags( AF_ACTIVATE )
649 .Parameter( ZONE_MODE::ADD ) );
650
652 .Name( "pcbnew.InteractiveDrawing.zoneCutout" )
653 .Scope( AS_GLOBAL )
654 .DefaultHotkey( MD_SHIFT + 'C' )
655 .LegacyHotkeyName( "Add a Zone Cutout" )
656 .FriendlyName( _( "Add a Zone Cutout" ) )
657 .Tooltip( _( "Add a cutout to an existing zone or rule area" ) )
658 .ToolbarState( TOOLBAR_STATE::TOGGLE )
660 .Flags( AF_ACTIVATE )
661 .Parameter( ZONE_MODE::CUTOUT ) );
662
664 .Name( "pcbnew.InteractiveDrawing.similarZone" )
665 .Scope( AS_GLOBAL )
666 .DefaultHotkey( MD_CTRL + MD_SHIFT + '.' )
667 .LegacyHotkeyName( "Add a Similar Zone" )
668 .FriendlyName( _( "Add a Similar Zone" ) )
669 .Tooltip( _( "Add a zone with the same settings as an existing zone" ) )
670 .Icon( BITMAPS::add_zone )
671 .Flags( AF_ACTIVATE )
672 .Parameter( ZONE_MODE::SIMILAR ) );
673
675 .Name( "pcbnew.InteractiveDrawing.placeImportedGraphics" )
676 .Scope( AS_GLOBAL )
677 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'F' )
678 .LegacyHotkeyName( "Place DXF" )
679 .FriendlyName( _( "Import Graphics..." ) )
680 .Tooltip( _( "Import 2D drawing file" ) )
682 .Flags( AF_ACTIVATE ) );
683
685 .Name( "pcbnew.InteractiveDrawing.setAnchor" )
686 .Scope( AS_GLOBAL )
687 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'N' )
688 .LegacyHotkeyName( "Place the Footprint Anchor" )
689 .FriendlyName( _( "Place the Footprint Anchor" ) )
690 .Tooltip( _( "Set the anchor point of the footprint" ) )
691 .ToolbarState( TOOLBAR_STATE::TOGGLE )
692 .Icon( BITMAPS::anchor )
693 .Flags( AF_ACTIVATE ) );
694
696 .Name( "pcbnew.InteractiveDrawing.incWidth" )
697 .Scope( AS_CONTEXT )
698 .DefaultHotkey( MD_CTRL + '+' )
699 .LegacyHotkeyName( "Increase Line Width" )
700 .FriendlyName( _( "Increase Line Width" ) ) );
701
703 .Name( "pcbnew.InteractiveDrawing.decWidth" )
704 .Scope( AS_CONTEXT )
705 .DefaultHotkey( MD_CTRL + '-' )
706 .LegacyHotkeyName( "Decrease Line Width" )
707 .FriendlyName( _( "Decrease Line Width" ) ) );
708
709
711 .Name( "pcbnew.InteractiveDrawing.changeDimensionArrows" )
712 .Scope( AS_CONTEXT )
713 .FriendlyName( "Switch Dimension Arrows" )
714 .Tooltip( "Switch between inward and outward dimension arrows" ) );
715
716
718 .Name( "common.Control.magneticSnapActiveLayer" )
719 .Scope( AS_GLOBAL )
720 .FriendlyName( _( "Snap to Objects on the Active Layer Only" ) )
721 .Tooltip( _( "Enables snapping to objects on the active layer only" ) ) );
722
724 .Name( "common.Control.magneticSnapAllLayers" )
725 .Scope( AS_GLOBAL )
726 .FriendlyName( _( "Snap to Objects on All Layers" ) )
727 .Tooltip( _( "Enables snapping to objects on all visible layers" ) ) );
728
730 .Name( "common.Control.magneticSnapToggle" )
731 .Scope( AS_GLOBAL )
732 .DefaultHotkey( MD_SHIFT + 'S' )
733 .FriendlyName( _( "Toggle Snapping Between Active and All Layers" ) )
734 .Tooltip( _( "Toggles between snapping on all visible layers and only the active area" ) ) );
735
737 .Name( "pcbnew.InteractiveDrawing.closeOutline" )
738 .Scope( AS_CONTEXT )
739 .FriendlyName( _( "Close Outline" ) )
740 .Tooltip( _( "Close the in progress outline" ) )
741 .Icon( BITMAPS::checked_ok ) );
742
743// DRC
744//
746 .Name( "pcbnew.DRCTool.runDRC" )
747 .Scope( AS_GLOBAL )
748 .FriendlyName( _( "Design Rules Checker" ) )
749 .Tooltip( _( "Show the design rules checker window" ) )
750 .Icon( BITMAPS::erc ) );
751
752// PCB_DESIGN_BLOCK_CONTROL
754 .Name( "pcbnew.InteractiveDrawing.placeDesignBlock" )
755 .Scope( AS_GLOBAL )
756 .DefaultHotkey( MD_SHIFT + 'B' )
757 .FriendlyName( _( "Place Design Block" ) )
758 .Tooltip( _( "Add selected design block to current board" ) )
760 .Flags( AF_ACTIVATE )
761 .Parameter<DESIGN_BLOCK*>( nullptr ) );
762
764 .Name( "pcbnew.InteractiveDrawing.placeLinkedDesignBlock" )
765 .Scope( AS_GLOBAL )
766 .FriendlyName( _( "Place Linked Design Block" ) )
767 .Tooltip( _( "Place design block linked to selected group" ) )
769 .Flags( AF_ACTIVATE )
770 .Parameter<bool*>( nullptr ) );
771
773 .Name( "pcbnew.InteractiveDrawing.applyDesignBlockLayout" )
774 .Scope( AS_GLOBAL )
775 .FriendlyName( _( "Apply Design Block Layout" ) )
776 .Tooltip( _( "Apply linked design block layout to selected group" ) )
778 .Flags( AF_ACTIVATE ) );
779
781 .Name( "pcbnew.InteractiveDrawing.saveToLinkedDesignBlock" )
782 .Scope( AS_GLOBAL )
783 .FriendlyName( _( "Save to Linked Design Block" ) )
784 .Tooltip( _( "Save selected group to linked design block" ) )
786 .Flags( AF_ACTIVATE ) );
787
789 .Name( "pcbnew.PcbDesignBlockControl.showDesignBlockPanel" )
790 .Scope( AS_GLOBAL )
791 .FriendlyName( _( "Design Blocks" ) )
792 .Tooltip( _( "Show/hide design blocks library" ) )
793 .Icon( BITMAPS::search_tree ) );
794
796 .Name( "pcbnew.PcbDesignBlockControl.saveBoardAsDesignBlock" )
797 .Scope( AS_GLOBAL )
798 .FriendlyName( _( "Save Board as Design Block..." ) )
799 .Tooltip( _( "Create a new design block from the current board" ) )
800 .Icon( BITMAPS::new_component ) );
801
803 .Name( "pcbnew.PcbDesignBlockControl.saveSelectionAsDesignBlock" )
804 .Scope( AS_GLOBAL )
805 .FriendlyName( _( "Save Selection as Design Block..." ) )
806 .Tooltip( _( "Create a new design block from the current selection" ) )
807 .Icon( BITMAPS::new_component ) );
808
810 .Name( "pcbnew.PcbDesignBlockControl.updateDesignBlockFromBoard" )
811 .Scope( AS_GLOBAL )
812 .FriendlyName( _( "Update Design Block from Board" ) )
813 .Tooltip( _( "Set design block layout to current board" ) )
814 .Icon( BITMAPS::save ) );
815
817 .Name( "pcbnew.PcbDesignBlockControl.updateDesignBlockFromSelection" )
818 .Scope( AS_GLOBAL )
819 .FriendlyName( _( "Update Design Block from Selection" ) )
820 .Tooltip( _( "Set design block layout to current selection" ) )
821 .Icon( BITMAPS::save ) );
822
824 .Name( "pcbnew.PcbDesignBlockControl.deleteDesignBlock" )
825 .Scope( AS_GLOBAL )
826 .FriendlyName( _( "Delete Design Block" ) )
827 .Tooltip( _( "Remove the selected design block from its library" ) )
828 .Icon( BITMAPS::trash ) );
829
831 .Name( "pcbnew.PcbDesignBlockControl.editDesignBlockProperties" )
832 .Scope( AS_GLOBAL )
833 .FriendlyName( _( "Properties..." ) )
834 .Tooltip( _( "Edit properties of design block" ) )
835 .Icon( BITMAPS::edit ) );
836
837// EDIT_TOOL
838//
840 .Name( "pcbnew.EditorControl.EditFpInFpEditor" )
841 .Scope( AS_GLOBAL )
842 .DefaultHotkey( MD_CTRL + 'E' )
843 .LegacyHotkeyName( "Edit with Footprint Editor" )
844 .FriendlyName( _( "Open in Footprint Editor" ) )
845 .Icon( BITMAPS::module_editor ) );
846
848 .Name( "pcbnew.EditorControl.EditLibFpInFpEditor" )
849 .Scope( AS_GLOBAL )
850 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
851 .FriendlyName( _( "Edit Library Footprint..." ) )
852 .Icon( BITMAPS::module_editor ) );
853
855 .Name( "pcbnew.InteractiveEdit.toggleExcludeFromBOM" )
856 .Scope( AS_GLOBAL )
857 .FriendlyName( _( "Exclude from Bill of Materials" ) )
858 .Tooltip( _( "Toggle the exclude from bill of materials attribute" ) ) );
859
861 .Name( "pcbnew.InteractiveEdit.toggleExcludeFromSim" )
862 .Scope( AS_GLOBAL )
863 .FriendlyName( _( "Exclude from Simulation" ) )
864 .Tooltip( _( "Toggle the exclude from simulation attribute" ) ) );
865
867 .Name( "pcbnew.InteractiveEdit.toggleExcludeFromPosFiles" )
868 .Scope( AS_GLOBAL )
869 .FriendlyName( _( "Exclude from Position Files" ) )
870 .Tooltip( _( "Toggle the exclude from position files attribute" ) ) );
871
873 .Name( "pcbnew.EditorControl.findByProperties" )
874 .Scope( AS_GLOBAL )
875 .FriendlyName( _( "Find by Properties..." ) )
876 .Tooltip( _( "Find board items matching property criteria or expressions" ) )
877 .Icon( BITMAPS::find ) );
878
880 .Name( "pcbnew.InteractiveEdit.FindMove" )
881 .Scope( AS_GLOBAL )
882 .DefaultHotkey( 'T' )
883 .LegacyHotkeyName( "Get and Move Footprint" )
884 .FriendlyName( _( "Get and Move Footprint" ) )
885 .Tooltip( _( "Selects a footprint by reference designator and places it under the cursor for moving" ) )
886 .Icon( BITMAPS::move )
887 .Flags( AF_ACTIVATE ) );
888
890 .Name( "pcbnew.InteractiveMove.move" )
891 .Scope( AS_GLOBAL )
892 .DefaultHotkey( 'M' )
893 .LegacyHotkeyName( "Move Item" )
894 .FriendlyName( _( "Move" ) )
895 .Icon( BITMAPS::move )
896 .Flags( AF_ACTIVATE )
898
900 .Name( "pcbnew.InteractiveMove.moveIndividually" )
901 .Scope( AS_GLOBAL )
902 .DefaultHotkey( MD_CTRL + 'M' )
903 .FriendlyName( _( "Move Individually" ) )
904 .Tooltip( _( "Moves the selected items one-by-one" ) )
905 .Icon( BITMAPS::move )
906 .Flags( AF_ACTIVATE )
908
910 .Name( "pcbnew.InteractiveMove.moveWithReference" )
911 .Scope( AS_GLOBAL )
912 .FriendlyName( _( "Move with Reference..." ) )
913 .Tooltip( _( "Moves the selected item(s) with a specified starting point" ) )
914 .Icon( BITMAPS::move )
915 .Flags( AF_ACTIVATE )
917
919 .Name( "pcbnew.InteractiveMove.copyWithReference" )
920 .Scope( AS_GLOBAL )
921 .FriendlyName( _( "Copy with Reference..." ) )
922 .Tooltip( _( "Copy selected item(s) to clipboard with a specified starting point" ) )
923 .Icon( BITMAPS::copy )
924 .Flags( AF_ACTIVATE ) );
925
927 .Name( "pcbnew.InteractiveEdit.duplicateIncrementPads" )
928 .Scope( AS_GLOBAL )
929 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'D' )
930 .LegacyHotkeyName( "Duplicate Item and Increment" )
931 .FriendlyName( _( "Duplicate and Increment" ) )
932 .Tooltip( _( "Duplicates the selected item(s), incrementing pad numbers" ) )
933 .Icon( BITMAPS::duplicate ) );
934
936 .Name( "pcbnew.InteractiveEdit.moveExact" )
937 .Scope( AS_GLOBAL )
938 .DefaultHotkey( MD_SHIFT + 'M' )
939 .LegacyHotkeyName( "Move Item Exactly" )
940 .FriendlyName( _( "Move Exactly..." ) )
941 .Tooltip( _( "Moves the selected item(s) by an exact amount" ) )
942 .Icon( BITMAPS::move_exactly ) );
943
945 .Name( "pcbnew.InteractiveEdit.moveCorner" )
946 .Scope( AS_GLOBAL )
947 .FriendlyName( _( "Move Corner To..." ) )
948 .Tooltip( _( "Move the active corner to an exact location" ) )
949 .Icon( BITMAPS::move_exactly ) );
950
952 .Name( "pcbnew.InteractiveEdit.moveMidpoint" )
953 .Scope( AS_GLOBAL )
954 .FriendlyName( _( "Move Midpoint To..." ) )
955 .Tooltip( _( "Move the active midpoint to an exact location" ) )
956 .Icon( BITMAPS::move_exactly ) );
957
959 .Name( "pcbnew.InteractiveEdit.rotateCw" )
960 .Scope( AS_GLOBAL )
961 .DefaultHotkey( MD_SHIFT + 'R' )
962 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
963 .LegacyHotkeyName( "Rotate Item Clockwise (Modern Toolset only)" )
964 .FriendlyName( _( "Rotate Clockwise" ) )
965 .Icon( BITMAPS::rotate_cw )
966 .Flags( AF_NONE )
967 .Parameter( -1 ) );
968
970 .Name( "pcbnew.InteractiveEdit.rotateCcw" )
971 .Scope( AS_GLOBAL )
972 .DefaultHotkey( 'R' )
973 .LegacyHotkeyName( "Rotate Item" )
974 .FriendlyName( _( "Rotate Counterclockwise" ) )
975 .Icon( BITMAPS::rotate_ccw )
976 .Flags( AF_NONE )
977 .Parameter( 1 ) );
978
980 .Name( "pcbnew.InteractiveEdit.flip" )
981 .Scope( AS_GLOBAL )
982 .DefaultHotkey( 'F' )
983 .LegacyHotkeyName( "Flip Item" )
984 .FriendlyName( _( "Change Side / Flip" ) )
985 .Tooltip( _( "Flips selected item(s) to opposite side of board" ) )
986 .Icon( BITMAPS::swap_layer ) );
987
989 .Name( "pcbnew.InteractiveEdit.mirrorHoriontally" )
990 .Scope( AS_GLOBAL )
991 .FriendlyName( _( "Mirror Horizontally" ) )
992 .Tooltip( _( "Mirrors selected item(s) across the Y axis" ) )
993 .Icon( BITMAPS::mirror_h ) );
994
996 .Name( "pcbnew.InteractiveEdit.mirrorVertically" )
997 .Scope( AS_GLOBAL )
998 .FriendlyName( _( "Mirror Vertically" ) )
999 .Tooltip( _( "Mirrors selected item(s) across the X axis" ) )
1000 .Icon( BITMAPS::mirror_v ) );
1001
1003 .Name( "pcbnew.InteractiveEdit.swap" )
1004 .Scope( AS_GLOBAL )
1005 .DefaultHotkey( MD_ALT + 'S' )
1006 .FriendlyName( _( "Swap" ) )
1007 .Tooltip( _( "Swap positions of selected items" ) )
1008 .Icon( BITMAPS::swap ) );
1009
1011 .Name( "pcbnew.InteractiveEdit.swapPadNets" )
1012 .Scope( AS_GLOBAL )
1013 .FriendlyName( _( "Swap Pad Nets" ) )
1014 .Tooltip( _( "Swap nets between two selected pads and their connected copper" ) )
1015 .Icon( BITMAPS::swap ) );
1016
1018 .Name( "pcbnew.InteractiveEdit.swapGateNets" )
1019 .Scope( AS_GLOBAL )
1020 .FriendlyName( _( "Swap Gate Nets" ) )
1021 .Tooltip( _( "Swap nets between gates of a footprint and their connected copper" ) )
1022 .Parameter<wxString>( wxString() )
1023 .Icon( BITMAPS::swap ) );
1024
1026 .Name( "pcbnew.InteractiveEdit.packAndMoveFootprints" )
1027 .Scope( AS_GLOBAL )
1028 .DefaultHotkey( 'P' )
1029 .FriendlyName( _( "Pack and Move Footprints" ) )
1030 .Tooltip( _( "Sorts selected footprints by reference, packs based on size and initiates movement" ) )
1031 .Icon( BITMAPS::pack_footprints ) );
1032
1034 .Name( "pcbnew.InteractiveEdit.skip" )
1035 .Scope( AS_CONTEXT )
1036 .DefaultHotkey( WXK_TAB )
1037 .FriendlyName( _( "Skip" ) )
1038 .Tooltip( _( "Skip to next item" ) )
1039 .Icon( BITMAPS::right ) );
1040
1042 .Name( "pcbnew.InteractiveEdit.changeTrackWidth" )
1043 .Scope( AS_GLOBAL )
1044 .FriendlyName( _( "Change Track Width" ) )
1045 .Tooltip( _( "Updates selected track & via sizes" ) ) );
1046
1048 .Name( "pcbnew.Control.changeTrackLayerNext" )
1049 .Scope( AS_GLOBAL )
1050 .DefaultHotkey( MD_CTRL + '+' )
1051 .FriendlyName( "Switch Track to Next Layer" )
1052 .Tooltip( _( "Switch track to next enabled copper layer" ) ) );
1053
1055 .Name( "pcbnew.Control.changeTrackLayerPrev" )
1056 .Scope( AS_GLOBAL )
1057 .DefaultHotkey( MD_CTRL + '-' )
1058 .FriendlyName( "Switch Track to Previous Layer" )
1059 .Tooltip( _( "Switch track to previous enabled copper layer" ) ) );
1060
1062 .Name( "pcbnew.InteractiveEdit.filletTracks" )
1063 .Scope( AS_GLOBAL )
1064 .FriendlyName( _( "Fillet Tracks" ) )
1065 .Tooltip( _( "Adds arcs tangent to the selected straight track segments" ) ) );
1066
1068 .Name( "pcbnew.InteractiveEdit.filletLines" )
1069 .Scope( AS_GLOBAL )
1070 .FriendlyName( _( "Fillet Lines..." ) )
1071 .Tooltip( _( "Adds arcs tangent to the selected lines" ) )
1072 .Icon( BITMAPS::fillet ) );
1073
1075 .Name( "pcbnew.InteractiveEdit.chamferLines" )
1076 .Scope( AS_GLOBAL )
1077 .FriendlyName( _( "Chamfer Lines..." ) )
1078 .Tooltip( _( "Cut away corners between selected lines" ) )
1079 .Icon( BITMAPS::chamfer ) );
1080
1082 .Name( "pcbnew.InteractiveEdit.dogboneCorners" )
1083 .Scope( AS_GLOBAL )
1084 .FriendlyName( _( "Dogbone Corners..." ) )
1085 .Tooltip( _( "Add dogbone corners to selected lines" ) ) );
1086
1088 .Name( "pcbnew.InteractiveEdit.simplifyPolygons" )
1089 .Scope( AS_GLOBAL )
1090 .FriendlyName( _( "Simplify Polygons" ) )
1091 .Tooltip( _( "Simplify polygon outlines, removing superfluous points" ) ) );
1092
1094 .Name( "pcbnew.InteractiveEdit.editVertices" )
1095 .Scope( AS_GLOBAL )
1096 .FriendlyName( _( "Edit Corners..." ) )
1097 .Tooltip( _( "Edit polygon corners using a table" ) )
1098 .Icon( BITMAPS::edit ) );
1099
1101 .Name( "pcbnew.InteractiveEdit.healShapes" )
1102 .Scope( AS_GLOBAL )
1103 .FriendlyName( _( "Heal Shapes" ) )
1104 .Tooltip( _( "Connect shapes, possibly extending or cutting them, or adding extra geometry" ) )
1105 .Icon( BITMAPS::heal_shapes ) );
1106
1108 .Name( "pcbnew.InteractiveEdit.extendLines" )
1109 .Scope( AS_GLOBAL )
1110 .FriendlyName( _( "Extend Lines to Meet" ) )
1111 .Tooltip( _( "Extend lines to meet each other" ) ) );
1112
1114 .Name( "pcbnew.GraphicEdit.extend" )
1115 .Scope( AS_GLOBAL )
1116 .FriendlyName( _( "Extend Line or Arc" ) )
1117 .Tooltip( _( "Hover a graphical line or arc to extend it until it meets another" ) )
1118 .Flags( AF_ACTIVATE ) );
1119
1121 .Name( "pcbnew.GraphicEdit.trim" )
1122 .Scope( AS_GLOBAL )
1123 .FriendlyName( _( "Trim Shape" ) )
1124 .Tooltip( _( "Hover the part of a graphical shape to remove between the nearest crossings" ) )
1125 .Flags( AF_ACTIVATE ) );
1126
1128 .Name( "pcbnew.InteractiveEdit.mergePolygons" )
1129 .Scope( AS_GLOBAL )
1130 .FriendlyName( _( "Merge Polygons" ) )
1131 .Tooltip( _( "Merge selected polygons into a single polygon" ) )
1132 .Icon( BITMAPS::merge_polygons ) );
1133
1135 .Name( "pcbnew.InteractiveEdit.subtractPolygons" )
1136 .Scope( AS_GLOBAL )
1137 .FriendlyName( _( "Subtract Polygons" ) )
1138 .Tooltip( _( "Subtract selected polygons from the last one selected" ) )
1139 .Icon( BITMAPS::subtract_polygons ) );
1140
1142 .Name( "pcbnew.InteractiveEdit.intersectPolygons" )
1143 .Scope( AS_GLOBAL )
1144 .FriendlyName( _( "Intersect Polygons" ) )
1145 .Tooltip( _( "Create the intersection of the selected polygons" ) )
1146 .Icon( BITMAPS::intersect_polygons ) );
1147
1149 .Name( "pcbnew.InteractiveEdit.deleteFull" )
1150 .Scope( AS_GLOBAL )
1151 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DELETE ) )
1152 .LegacyHotkeyName( "Delete Full Track" )
1153 .FriendlyName( _( "Delete Full Track" ) )
1154 .Tooltip( _( "Deletes selected item(s) and copper connections" ) )
1155 .Icon( BITMAPS::delete_cursor )
1156 .Flags( AF_NONE )
1157 .Parameter( PCB_ACTIONS::REMOVE_FLAGS::ALT ) );
1158
1160 .Name( "pcbnew.InteractiveEdit.properties" )
1161 .Scope( AS_GLOBAL )
1162 .DefaultHotkey( 'E' )
1163 .LegacyHotkeyName( "Edit Item" )
1164 .FriendlyName( _( "Properties..." ) )
1165 .Icon( BITMAPS::edit ) );
1166
1168 .Name( "pcbnew.MatchProperties.match" )
1169 .Scope( AS_GLOBAL )
1170 .FriendlyName( _( "Match Properties" ) )
1171 .Tooltip( _( "Copy selected properties from a source item to compatible target items" ) )
1172 .Flags( AF_ACTIVATE ) );
1173
1174// Context scope so the hotkey only takes over from Preferences while the tool has the pointer.
1176 .Name( "pcbnew.MatchProperties.settings" )
1177 .Scope( AS_CONTEXT )
1178 .DefaultHotkey( MD_CTRL + ',' )
1179 .FriendlyName( _( "Match Properties Settings..." ) )
1180 .Tooltip( _( "Choose the properties copied by Match Properties" ) ) );
1181
1182// ARRAY
1183//
1185 .Name( "pcbnew.Array.createArray" )
1186 .Scope( AS_GLOBAL )
1187 .DefaultHotkey( MD_CTRL + 'T' )
1188 .LegacyHotkeyName( "Create Array" )
1189 .FriendlyName( _( "Create Array..." ) )
1190 .Icon( BITMAPS::array )
1191 .Flags( AF_ACTIVATE ) );
1192
1193// FOOTPRINT_EDITOR_CONTROL
1194//
1196 .Name( "pcbnew.ModuleEditor.newFootprint" )
1197 .Scope( AS_GLOBAL )
1198 .DefaultHotkey( MD_CTRL + 'N' )
1199 .LegacyHotkeyName( "New" )
1200 .FriendlyName( _( "New Footprint" ) )
1201 .Tooltip( _( "Create a new, empty footprint" ) )
1202 .Icon( BITMAPS::new_footprint ) );
1203
1205 .Name( "pcbnew.ModuleEditor.createFootprint" )
1206 .Scope( AS_GLOBAL )
1207 .FriendlyName( _( "Create Footprint..." ) )
1208 .Tooltip( _( "Create a new footprint using the Footprint Wizard" ) )
1209 .Icon( BITMAPS::module_wizard ) );
1210
1212 .Name( "pcbnew.ModuleEditor.editFootprint" )
1213 .Scope( AS_GLOBAL )
1214 .FriendlyName( _( "Edit Footprint" ) )
1215 .Tooltip( _( "Show selected footprint on editor canvas" ) )
1216 .Icon( BITMAPS::edit ) );
1217
1219 .Name( "pcbnew.ModuleEditor.duplicateFootprint" )
1220 .Scope( AS_GLOBAL )
1221 .FriendlyName( _( "Duplicate Footprint" ) )
1222 .Icon( BITMAPS::duplicate ) );
1223
1225 .Name( "pcbnew.ModuleEditor.renameFootprint" )
1226 .Scope( AS_GLOBAL )
1227 .FriendlyName( _( "Rename Footprint..." ) )
1228 .Icon( BITMAPS::edit ) );
1229
1231 .Name( "pcbnew.ModuleEditor.deleteFootprint" )
1232 .Scope( AS_GLOBAL )
1233 .FriendlyName( _( "Delete Footprint from Library" ) )
1234 .Icon( BITMAPS::trash ) );
1235
1237 .Name( "pcbnew.ModuleEditor.cutFootprint" )
1238 .Scope( AS_GLOBAL )
1239 .FriendlyName( _( "Cut Footprint" ) )
1240 .Icon( BITMAPS::cut ) );
1241
1243 .Name( "pcbnew.ModuleEditor.copyFootprint" )
1244 .Scope( AS_GLOBAL )
1245 .FriendlyName( _( "Copy Footprint" ) )
1246 .Icon( BITMAPS::copy ) );
1247
1249 .Name( "pcbnew.ModuleEditor.pasteFootprint" )
1250 .Scope( AS_GLOBAL )
1251 .FriendlyName( _( "Paste Footprint" ) )
1252 .Icon( BITMAPS::paste ) );
1253
1255 .Name( "pcbnew.ModuleEditor.importFootprint" )
1256 .Scope( AS_GLOBAL )
1257 .FriendlyName( _( "Import Footprint..." ) )
1258 .Tooltip( _( "Import footprint from file" ) )
1259 .Icon( BITMAPS::import_module ) );
1260
1262 .Name( "pcbnew.ModuleEditor.exportFootprint" )
1263 .Scope( AS_GLOBAL )
1264 .FriendlyName( _( "Export Current Footprint..." ) )
1265 .Tooltip( _( "Export edited footprint to file" ) )
1266 .Icon( BITMAPS::export_module ) );
1267
1269 .Name( "pcbnew.ModuleEditor.exportFootprintAsSVG" )
1270 .Scope( AS_GLOBAL )
1271 .FriendlyName( _( "Export Current Footprint as SVG..." ) )
1272 .Tooltip( _( "Export the current footprint to an SVG file" ) )
1273 .Icon( BITMAPS::export_svg ) );
1274
1276 .Name( "pcbnew.ModuleEditor.CompareFpLibraryWithFile" )
1277 .Scope( AS_GLOBAL )
1278 .FriendlyName( _( "Compare Library with File..." ) )
1279 .Tooltip( _( "Diff the current footprint library against another .pretty directory" ) )
1280 .Icon( BITMAPS::library ) );
1281
1283 .Name( "pcbnew.ModuleEditor.showLibraryFootprintFieldsTable" )
1284 .Scope( AS_GLOBAL )
1285 .FriendlyName( _( "Bulk Edit Footprint Fields..." ) )
1286 .Tooltip( _( "Edit a table of fields from all footprints in the library" ) )
1287 .Icon( BITMAPS::table ) );
1288
1290 .Name( "pcbnew.ModuleEditor.footprintProperties" )
1291 .Scope( AS_GLOBAL )
1292 .FriendlyName( _( "Footprint Properties..." ) )
1293 .Icon( BITMAPS::module_options ) );
1294
1296 .Name( "pcbnew.ModuleEditor.padTable" )
1297 .Scope( AS_GLOBAL )
1298 .FriendlyName( _( "Pad Table..." ) )
1299 .Tooltip( _( "Displays pad table for bulk editing of pads" ) )
1300 .Icon( BITMAPS::pad_table ) );
1301
1303 .Name( "pcbnew.ModuleEditor.checkFootprint" )
1304 .Scope( AS_GLOBAL )
1305 .FriendlyName( _( "Footprint Checker" ) )
1306 .Tooltip( _( "Show the footprint checker window" ) )
1307 .Icon( BITMAPS::erc ) );
1308
1310 .Name( "pcbnew.ModuleEditor.loadFootprintFromBoard" )
1311 .Scope( AS_GLOBAL )
1312 .FriendlyName( _( "Load footprint from current PCB" ) )
1313 .Tooltip( _( "Load footprint from current board" ) )
1314 .Icon( BITMAPS::load_module_board ) );
1315
1317 .Name( "pcbnew.ModuleEditor.saveFootprintToBoard" )
1318 .Scope( AS_GLOBAL )
1319 .FriendlyName( _( "Insert footprint into PCB" ) )
1320 .Tooltip( _( "Insert footprint into current board" ) )
1322
1324 .Name( "pcbnew.Control.previousFootprint" )
1325 .Scope( AS_GLOBAL )
1326 .FriendlyName( _( "Display previous footprint" ) )
1327 .Icon( BITMAPS::lib_previous )
1328 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::PREVIOUS_PART ) );
1329
1331 .Name( "pcbnew.Control.nextFootprint" )
1332 .Scope( AS_GLOBAL )
1333 .FriendlyName( _( "Display next footprint" ) )
1334 .Icon( BITMAPS::lib_next )
1335 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::NEXT_PART ) );
1336
1337// GLOBAL_EDIT_TOOL
1338//
1340 .Name( "pcbnew.GlobalEdit.updateFootprint" )
1341 .Scope( AS_GLOBAL )
1342 .FriendlyName( _( "Update Footprint..." ) )
1343 .Tooltip( _( "Update footprint to include any changes from the library" ) )
1344 .Icon( BITMAPS::refresh ) );
1345
1347 .Name( "pcbnew.GlobalEdit.updateFootprints" )
1348 .Scope( AS_GLOBAL )
1349 .FriendlyName( _( "Update Footprints from Library..." ) )
1350 .Tooltip( _( "Update footprints to include any changes from the library" ) )
1351 .Icon( BITMAPS::refresh ) );
1352
1354 .Name( "pcbnew.GlobalEdit.migrate3DModels" )
1355 .Scope( AS_GLOBAL )
1356 .FriendlyName( _( "Migrate 3D Models..." ) )
1357 .Tooltip( _( "Replace obsolete WRL 3D model references with current STEP models" ) )
1358 .Icon( BITMAPS::refresh ) );
1359
1361 .Name( "pcbnew.GlobalEdit.removeUnusedPads" )
1362 .Scope( AS_GLOBAL )
1363 .FriendlyName( _( "Remove Unused Pads..." ) )
1364 .Tooltip( _( "Remove or restore the unconnected inner layers on through hole pads and vias" ) )
1365 .Icon( BITMAPS::pads_remove ) );
1366
1368 .Name( "pcbnew.GlobalEdit.changeFootprint" )
1369 .Scope( AS_GLOBAL )
1370 .FriendlyName( _( "Change Footprint..." ) )
1371 .Tooltip( _( "Assign a different footprint from the library" ) )
1372 .Icon( BITMAPS::exchange ) );
1373
1375 .Name( "pcbnew.GlobalEdit.changeFootprints" )
1376 .Scope( AS_GLOBAL )
1377 .FriendlyName( _( "Change Footprints..." ) )
1378 .Tooltip( _( "Assign different footprints from the library" ) )
1379 .Icon( BITMAPS::exchange ) );
1380
1382 .Name( "pcbnew.GlobalEdit.swapLayers" )
1383 .Scope( AS_GLOBAL )
1384 .FriendlyName( _( "Swap Layers..." ) )
1385 .Tooltip( _( "Move tracks or drawings from one layer to another" ) )
1386 .Icon( BITMAPS::swap_layer ) );
1387
1389 .Name( "pcbnew.GlobalEdit.editTracksAndVias" )
1390 .Scope( AS_GLOBAL )
1391 .FriendlyName( _( "Edit Track & Via Properties..." ) )
1392 .Tooltip( _( "Edit track and via properties globally across board" ) )
1393 .Icon( BITMAPS::width_track_via ) );
1394
1396 .Name( "pcbnew.GlobalEdit.editTextAndGraphics" )
1397 .Scope( AS_GLOBAL )
1398 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
1399 .Tooltip( _( "Edit Text and graphics properties globally across board" ) )
1400 .Icon( BITMAPS::text ) );
1401
1403 .Name( "pcbnew.GlobalEdit.editTeardrops" )
1404 .Scope( AS_GLOBAL )
1405 .FriendlyName( _( "Edit Teardrops..." ) )
1406 .Tooltip( _( "Add, remove or edit teardrops globally across board" ) )
1407 .Icon( BITMAPS::via ) );
1408
1410 .Name( "pcbnew.GlobalEdit.globalDeletions" )
1411 .Scope( AS_GLOBAL )
1412 .FriendlyName( _( "Global Deletions..." ) )
1413 .Tooltip( _( "Delete tracks, footprints and graphic items from board" ) )
1414 .Icon( BITMAPS::general_deletions ) );
1415
1417 .Name( "pcbnew.GlobalEdit.cleanupTracksAndVias" )
1418 .Scope( AS_GLOBAL )
1419 .FriendlyName( _( "Cleanup Tracks & Vias..." ) )
1420 .Tooltip( _( "Cleanup redundant items, shorting items, etc." ) )
1422
1424 .Name( "pcbnew.GlobalEdit.cleanupGraphics" )
1425 .Scope( AS_GLOBAL )
1426 .FriendlyName( _( "Cleanup Graphics..." ) )
1427 .Tooltip( _( "Cleanup redundant items, etc." ) )
1428 .Icon( BITMAPS::cleanup_graphics ) );
1429
1430// MICROWAVE_TOOL
1431//
1433 .Name( "pcbnew.MicrowaveTool.createGap" )
1434 .Scope( AS_GLOBAL )
1435 .FriendlyName( _( "Draw Microwave Gaps" ) )
1436 .Tooltip( _( "Create gap of specified length for microwave applications" ) )
1437 .Icon( BITMAPS::mw_add_gap )
1438 .Flags( AF_ACTIVATE )
1439 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::GAP ) );
1440
1442 .Name( "pcbnew.MicrowaveTool.createStub" )
1443 .Scope( AS_GLOBAL )
1444 .FriendlyName( _( "Draw Microwave Stubs" ) )
1445 .Tooltip( _( "Create stub of specified length for microwave applications" ) )
1446 .Icon( BITMAPS::mw_add_stub )
1447 .Flags( AF_ACTIVATE )
1448 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB ) );
1449
1451 .Name( "pcbnew.MicrowaveTool.createStubArc" )
1452 .Scope( AS_GLOBAL )
1453 .FriendlyName( _( "Draw Microwave Arc Stubs" ) )
1454 .Tooltip( _( "Create stub (arc) of specified size for microwave applications" ) )
1456 .Flags( AF_ACTIVATE )
1458
1460 .Name( "pcbnew.MicrowaveTool.createFunctionShape" )
1461 .Scope( AS_GLOBAL )
1462 .FriendlyName( _( "Draw Microwave Polygonal Shapes" ) )
1463 .Tooltip( _( "Create a microwave polygonal shape from a list of vertices" ) )
1464 .Icon( BITMAPS::mw_add_shape )
1465 .Flags( AF_ACTIVATE )
1467
1469 .Name( "pcbnew.MicrowaveTool.createLine" )
1470 .Scope( AS_GLOBAL )
1471 .FriendlyName( _( "Draw Microwave Lines" ) )
1472 .Tooltip( _( "Create line of specified length for microwave applications" ) )
1473 .Icon( BITMAPS::mw_add_line )
1474 .Flags( AF_ACTIVATE ) );
1475
1476
1477// PAD_TOOL
1478//
1480 .Name( "pcbnew.PadTool.CopyPadSettings" )
1481 .Scope( AS_GLOBAL )
1482 .FriendlyName( _( "Copy Pad Properties to Default" ) )
1483 .Tooltip( _( "Copy current pad's properties" ) )
1484 .Icon( BITMAPS::copy_pad_settings ) );
1485
1487 .Name( "pcbnew.PadTool.ApplyPadSettings" )
1488 .Scope( AS_GLOBAL )
1489 .FriendlyName( _( "Paste Default Pad Properties to Selected" ) )
1490 .Tooltip( _( "Replace the current pad's properties with those copied earlier" ) )
1491 .Icon( BITMAPS::apply_pad_settings ) );
1492
1494 .Name( "pcbnew.PadTool.PushPadSettings" )
1495 .Scope( AS_GLOBAL )
1496 .FriendlyName( _( "Push Pad Properties to Other Pads..." ) )
1497 .Tooltip( _( "Copy the current pad's properties to other pads" ) )
1498 .Icon( BITMAPS::push_pad_settings ) );
1499
1501 .Name( "pcbnew.PadTool.enumeratePads" )
1502 .Scope( AS_GLOBAL )
1503 .FriendlyName( _( "Renumber Pads..." ) )
1504 .Tooltip( _( "Renumber pads by clicking on them in the desired order" ) )
1505 .Icon( BITMAPS::pad_enumerate )
1506 .Flags( AF_ACTIVATE ) );
1507
1509 .Name( "pcbnew.PadTool.placePad" )
1510 .Scope( AS_GLOBAL )
1511 .FriendlyName( _( "Add Pad" ) )
1512 .Tooltip( _( "Add a pad" ) )
1513 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1514 .Icon( BITMAPS::pad )
1515 .Flags( AF_ACTIVATE ) );
1516
1518 .Name( "pcbnew.PadTool.explodePad" )
1519 .Scope( AS_GLOBAL )
1520 .DefaultHotkey( MD_CTRL + 'E' )
1521 .FriendlyName( _( "Edit Pad as Graphic Shapes" ) )
1522 .Tooltip( _( "Ungroups a custom-shaped pad for editing as individual graphic shapes" ) )
1524
1526 .Name( "pcbnew.PadTool.recombinePad" )
1527 .Scope( AS_GLOBAL )
1528 .DefaultHotkey( MD_CTRL + 'E' )
1529 .FriendlyName( _( "Finish Pad Edit" ) )
1530 .Tooltip( _( "Regroups all touching graphic shapes into the edited pad" ) )
1532
1534 .Name( "pcbnew.PadTool.defaultPadProperties" )
1535 .Scope( AS_GLOBAL )
1536 .FriendlyName( _( "Default Pad Properties..." ) )
1537 .Tooltip( _( "Edit the pad properties used when creating new pads" ) )
1538 .Icon( BITMAPS::options_pad ) );
1539
1540
1541// SCRIPTING TOOL
1542//
1543
1545 .Name( "pcbnew.ScriptingTool.pluginsShowFolder" )
1546 .Scope( AS_GLOBAL )
1547#ifdef __WXMAC__
1548 .FriendlyName( _( "Reveal Plugin Folder in Finder" ) )
1549 .Tooltip( _( "Reveals the plugins folder in a Finder window" ) )
1550#else
1551 .FriendlyName( _( "Open Plugin Directory" ) )
1552 .Tooltip( _( "Opens the directory in the default system file manager" ) )
1553#endif
1554 .Icon( BITMAPS::directory_open ) );
1555
1556// BOARD_EDITOR_CONTROL
1557//
1559 .Name( "pcbnew.EditorControl.appendBoard" )
1560 .Scope( AS_GLOBAL )
1561 .FriendlyName( _( "Append Board..." ) )
1562 .Tooltip( _( "Open another board and append its contents to this board" ) )
1563 .Icon( BITMAPS::add_board ) );
1564
1566 .Name( "pcbnew.EditorControl.rescueAutosave" )
1567 .Scope( AS_GLOBAL )
1568 .FriendlyName( _( "Rescue" ) )
1569 .Tooltip( _( "Clear board and get last rescue file automatically saved by PCB editor" ) )
1570 .Icon( BITMAPS::rescue ) );
1571
1573 .Name( "pcbnew.EditorControl.openNonKicadBoard" )
1574 .Scope( AS_GLOBAL )
1575 .FriendlyName( _( "Import Non-KiCad Board File..." ) )
1576 .Tooltip( _( "Import board file from other applications" ) )
1577 .Icon( BITMAPS::import_brd_file ) );
1578
1580 .Name( "pcbnew.EditorControl.exportFootprints" )
1581 .Scope( AS_GLOBAL )
1582 .FriendlyName( _( "Export Footprints..." ) )
1583 .Tooltip( _( "Add footprints from board to a new or an existing footprint library\n"
1584 "(does not remove other footprints from this library)" ) )
1585 .Icon( BITMAPS::library_archive ) );
1586
1588 .Name( "pcbnew.EditorControl.boardSetup" )
1589 .Scope( AS_GLOBAL )
1590 .FriendlyName( _( "Board Setup..." ) )
1591 .Tooltip( _( "Edit board setup including layers, design rules and various defaults" ) )
1592 .Icon( BITMAPS::options_board ) );
1593
1595 .Name( "pcbnew.EditorControl.importNetlist" )
1596 .Scope( AS_GLOBAL )
1597 .FriendlyName( _( "Import Netlist..." ) )
1598 .Tooltip( _( "Read netlist and update board connectivity" ) )
1599 .Icon( BITMAPS::netlist ) );
1600
1602 .Name( "pcbnew.EditorControl.importSpecctraSession" )
1603 .Scope( AS_GLOBAL )
1604 .FriendlyName( _( "Import Specctra Session..." ) )
1605 .Tooltip( _( "Import routed Specctra session (*.ses) file" ) )
1606 .Icon( BITMAPS::import ) );
1607
1609 .Name( "pcbnew.EditorControl.exportSpecctraDSN" )
1610 .Scope( AS_GLOBAL )
1611 .FriendlyName( _( "Export Specctra DSN..." ) )
1612 .Tooltip( _( "Export Specctra DSN routing info" ) )
1613 .Icon( BITMAPS::export_dsn ) );
1614
1616 .Name( "pcbnew.EditorControl.editFootprintFields" )
1617 .Scope( AS_GLOBAL )
1618 .FriendlyName( _( "Bulk Edit Footprint Fields..." ) )
1619 .Tooltip( _( "Edit a table of fields from all footprints in the board" ) )
1620 .Icon( BITMAPS::spreadsheet ) );
1621
1623 .Name( "pcbnew.EditorControl.generateGerbers" )
1624 .Scope( AS_GLOBAL )
1625 .FriendlyName( _( "Gerbers (.gbr)..." ) )
1626 .Tooltip( _( "Generate Gerbers for fabrication" ) )
1627 .Icon( BITMAPS::post_gerber ) );
1628
1630 .Name( "pcbnew.EditorControl.generateDrillFiles" )
1631 .Scope( AS_GLOBAL )
1632 .FriendlyName( _( "Drill Files (.drl)..." ) )
1633 .Tooltip( _( "Generate Excellon drill file(s)" ) )
1634 .Icon( BITMAPS::post_drill ) );
1635
1637 .Name( "pcbnew.EditorControl.generatePosFile" )
1638 .Scope( AS_GLOBAL )
1639 .FriendlyName( _( "Component Placement (.pos, .gbr)..." ) )
1640 .Tooltip( _( "Generate component placement file(s) for pick and place" ) )
1641 .Icon( BITMAPS::post_compo ) );
1642
1644 .Name( "pcbnew.EditorControl.generateReportFile" )
1645 .Scope( AS_GLOBAL )
1646 .FriendlyName( _( "Footprint Report (.rpt)..." ) )
1647 .Tooltip( _( "Create report of all footprints from current board" ) )
1648 .Icon( BITMAPS::post_rpt ) );
1649
1651 .Name( "pcbnew.EditorControl.generateIPC2581File" )
1652 .Scope( AS_GLOBAL )
1653 .FriendlyName( _( "IPC-2581 File (.xml)..." ) )
1654 .Tooltip( _( "Generate an IPC-2581 file" ) )
1655 .Icon( BITMAPS::post_xml ) );
1656
1658 .Name( "pcbnew.EditorControl.generateODBPPFile" )
1659 .Scope( AS_GLOBAL )
1660 .FriendlyName( _( "ODB++ Output File..." ) )
1661 .Tooltip( _( "Generate ODB++ output files" ) )
1662 .Icon( BITMAPS::post_odb ) );
1663
1665 .Name( "pcbnew.EditorControl.generateD356File" )
1666 .Scope( AS_GLOBAL )
1667 .FriendlyName( _( "IPC-D-356 Netlist File..." ) )
1668 .Tooltip( _( "Generate IPC-D-356 netlist file" ) )
1669 .Icon( BITMAPS::post_d356 ) );
1670
1672 .Name( "pcbnew.EditorControl.generateBOM" )
1673 .Scope( AS_GLOBAL )
1674 .FriendlyName( _( "Bill of Materials..." ) )
1675 .Tooltip( _( "Create bill of materials from board" ) )
1676 .Icon( BITMAPS::post_bom ) );
1677
1679 .Name( "pcbnew.EditorControl.generateBOMLegacy" )
1680 .Scope( AS_GLOBAL )
1681 .FriendlyName( _( "Generate Legacy Bill of Materials..." ) )
1682 .Tooltip( _( "Generate a bill of materials for the current board using the legacy exporter" ) )
1683 .Icon( BITMAPS::file_bom ) );
1684
1686 .Name( "pcbnew.EditorControl.exportGenCAD" )
1687 .Scope( AS_GLOBAL )
1688 .FriendlyName( _( "Export GenCAD..." ) )
1689 .Tooltip( _( "Export GenCAD board representation" ) )
1690 .Icon( BITMAPS::post_gencad ) );
1691
1693 .Name( "pcbnew.EditorControl.exportVRML" )
1694 .Scope( AS_GLOBAL )
1695 .FriendlyName( _( "Export VRML..." ) )
1696 .Tooltip( _( "Export VRML 3D board representation" ) )
1697 .Icon( BITMAPS::export3d ) );
1698
1700 .Name( "pcbnew.EditorControl.exportIDF" )
1701 .Scope( AS_GLOBAL )
1702 .FriendlyName( _( "Export IDFv3..." ) )
1703 .Tooltip( _( "Export IDF 3D board representation" ) )
1704 .Icon( BITMAPS::export_idf ) );
1705
1707 .Name( "pcbnew.EditorControl.exportSTEP" )
1708 .Scope( AS_GLOBAL )
1709 .FriendlyName( _( "Export STEP/GLB/BREP/XAO/PLY/STL..." ) )
1710 .Tooltip( _( "Export STEP, GLB, BREP, XAO, PLY or STL 3D board representation" ) )
1711 .Icon( BITMAPS::export_step ) );
1712
1714 .Name( "pcbnew.EditorControl.exportFootprintAssociations" )
1715 .Scope( AS_GLOBAL )
1716 .FriendlyName( _( "Export Footprint Association (.cmp) File..." ) )
1717 .Tooltip( _( "Export footprint association file (*.cmp) for schematic back annotation" ) )
1718 .Icon( BITMAPS::export_cmp ) );
1719
1721 .Name( "pcbnew.EditorControl.exportHyperlynx" )
1722 .Scope( AS_GLOBAL )
1723 .FriendlyName( _( "Hyperlynx..." ) )
1724 .Icon( BITMAPS::export_step ) );
1725
1727 .Name( "pcbnew.EditorControl.collect3DModels" )
1728 .Scope( AS_GLOBAL )
1729 .FriendlyName( _( "Collect And Embed 3D Models" ) )
1730 .Tooltip( _( "Collect footprint 3D models and embed them into the board" ) )
1731 .Icon( BITMAPS::import3d ) );
1732
1733
1734// Track & via size control
1736 .Name( "pcbnew.EditorControl.trackWidthInc" )
1737 .Scope( AS_GLOBAL )
1738 .DefaultHotkey( 'W' )
1739 .LegacyHotkeyName( "Switch Track Width To Next" )
1740 .FriendlyName( _( "Switch Track Width to Next" ) )
1741 .Tooltip( _( "Change track width to next pre-defined size" ) ) );
1742
1744 .Name( "pcbnew.EditorControl.trackWidthDec" )
1745 .Scope( AS_GLOBAL )
1746 .DefaultHotkey( MD_SHIFT + 'W' )
1747 .LegacyHotkeyName( "Switch Track Width To Previous" )
1748 .FriendlyName( _( "Switch Track Width to Previous" ) )
1749 .Tooltip( _( "Change track width to previous pre-defined size" ) ) );
1750
1752 .Name( "pcbnew.EditorControl.viaSizeInc" )
1753 .Scope( AS_GLOBAL )
1754 .DefaultHotkey( '\'' )
1755 .LegacyHotkeyName( "Increase Via Size" )
1756 .FriendlyName( _( "Increase Via Size" ) )
1757 .Tooltip( _( "Change via size to next pre-defined size" ) ) );
1758
1760 .Name( "pcbnew.EditorControl.viaSizeDec" )
1761 .Scope( AS_GLOBAL )
1762 .DefaultHotkey( '\\' )
1763 .LegacyHotkeyName( "Decrease Via Size" )
1764 .FriendlyName( _( "Decrease Via Size" ) )
1765 .Tooltip( _( "Change via size to previous pre-defined size" ) ) );
1766
1768 .Name( "pcbnew.EditorControl.autoTrackWidth" )
1769 .Scope( AS_GLOBAL )
1770 .FriendlyName( _( "Automatically select track width" ) )
1771 .Tooltip( _( "When routing from an existing track use its width instead "
1772 "of the current width setting" ) )
1774 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1775
1777 .Name( "pcbnew.EditorControl.trackViaSizeChanged" )
1778 .Scope( AS_GLOBAL )
1779 .Flags( AF_NOTIFY ) );
1780
1782 .Name( "pcbnew.EditorControl.assignNetclass" )
1783 .Scope( AS_GLOBAL )
1784 .FriendlyName( _( "Assign Netclass..." ) )
1785 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
1786 .Icon( BITMAPS::netlist ) );
1787
1789 .Name( "pcbnew.EditorControl.zoneMerge" )
1790 .Scope( AS_GLOBAL )
1791 .FriendlyName( _( "Merge Zones" ) ) );
1792
1794 .Name( "pcbnew.EditorControl.zoneDuplicate" )
1795 .Scope( AS_GLOBAL )
1796 .FriendlyName( _( "Duplicate Zone onto Layer..." ) )
1797 .Icon( BITMAPS::zone_duplicate ) );
1798
1800 .Name( "pcbnew.EditorControl.zonePriorityMoveToTop" )
1801 .Scope( AS_GLOBAL )
1802 .FriendlyName( _( "Move to Top" ) )
1803 .Icon( BITMAPS::small_up ) );
1804
1806 .Name( "pcbnew.EditorControl.zonePriorityRaise" )
1807 .Scope( AS_GLOBAL )
1808 .FriendlyName( _( "Raise" ) )
1809 .Icon( BITMAPS::small_up ) );
1810
1812 .Name( "pcbnew.EditorControl.zonePriorityLower" )
1813 .Scope( AS_GLOBAL )
1814 .FriendlyName( _( "Lower" ) )
1815 .Icon( BITMAPS::small_down ) );
1816
1818 .Name( "pcbnew.EditorControl.zonePriorityMoveToBottom" )
1819 .Scope( AS_GLOBAL )
1820 .FriendlyName( _( "Move to Bottom" ) )
1821 .Icon( BITMAPS::small_down ) );
1822
1824 .Name( "pcbnew.EditorControl.placeFootprint" )
1825 .Scope( AS_GLOBAL )
1826 .DefaultHotkey( 'A' )
1827 .LegacyHotkeyName( "Add Footprint" )
1828 .FriendlyName( _( "Place Footprints" ) )
1829 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1830 .Icon( BITMAPS::module )
1831 .Flags( AF_ACTIVATE )
1832 .Parameter<FOOTPRINT*>( nullptr ) );
1833
1835 .Name( "pcbnew.EditorControl.drillOrigin" )
1836 .Scope( AS_GLOBAL )
1837 .FriendlyName( _( "Drill/Place File Origin" ) )
1838 .Tooltip( _( "Place origin point for drill files and component placement files" ) )
1839 .Icon( BITMAPS::set_origin )
1840 .Flags( AF_ACTIVATE ) );
1841
1843 .Name( "pcbnew.EditorControl.drillResetOrigin" )
1844 .Scope( AS_GLOBAL )
1845 .LegacyHotkeyName( "Reset Drill Origin" )
1846 .FriendlyName( _( "Reset Drill Origin" ) ) );
1847
1849 .Name( "pcbnew.EditorControl.drillSetOrigin" )
1850 .Scope( AS_CONTEXT )
1851 .Parameter( VECTOR2I() ) );
1852
1854 .Name( "pcbnew.EditorControl.toggleLock" )
1855 .Scope( AS_GLOBAL )
1856 .DefaultHotkey( 'L' )
1857 .LegacyHotkeyName( "Lock/Unlock Footprint" )
1858 .FriendlyName( _( "Toggle Lock" ) )
1859 .Tooltip( _( "Lock or unlock selected items" ) )
1860 .Icon( BITMAPS::lock_unlock ) );
1861
1862// Line mode grouping and events (for PCB and Footprint editors)
1864 .Name( "pcbnew.EditorControl.lineModeFree" )
1865 .Scope( AS_GLOBAL )
1866 .FriendlyName( _( "Line Modes" ) )
1867 .Tooltip( _( "Draw and drag at any angle" ) )
1868 .Icon( BITMAPS::lines_any )
1869 .Flags( AF_NONE )
1870 .Parameter( LEADER_MODE::DIRECT ) );
1871
1873 .Name( "pcbnew.EditorControl.lineModeOrthonal" )
1874 .Scope( AS_GLOBAL )
1875 .FriendlyName( _( "Line Modes" ) )
1876 .Tooltip( _( "Constrain drawing and dragging to horizontal or vertical motions" ) )
1877 .Icon( BITMAPS::lines90 )
1878 .Flags( AF_NONE )
1879 .Parameter( LEADER_MODE::DEG90 ) );
1880
1882 .Name( "pcbnew.EditorControl.lineMode45" )
1883 .Scope( AS_GLOBAL )
1884 .FriendlyName( _( "Line Modes" ) )
1885 .Tooltip( _( "Constrain drawing and dragging to horizontal, vertical, or 45-degree angle motions" ) )
1886 .Icon( BITMAPS::hv45mode )
1887 .Flags( AF_NONE )
1888 .Parameter( LEADER_MODE::DEG45 ) );
1889
1891 .Name( "pcbnew.EditorControl.lineModeNext" )
1892 .DefaultHotkey( MD_SHIFT + ' ' )
1893 .Scope( AS_GLOBAL )
1894 .FriendlyName( _( "Line Modes" ) )
1895 .Tooltip( _( "Switch to next angle snapping mode" ) ) );
1896
1898 .Name( "pcbnew.EditorControl.angleSnapModeChanged" )
1899 .Scope( AS_GLOBAL )
1900 .Flags( AF_NOTIFY ) );
1901
1903 .Name( "pcbnew.EditorControl.lock" )
1904 .Scope( AS_GLOBAL )
1905 .FriendlyName( _( "Lock" ) )
1906 .Tooltip( _( "Prevent items from being moved and/or resized on the canvas" ) )
1907 .Icon( BITMAPS::locked ) );
1908
1910 .Name( "pcbnew.EditorControl.unlock" )
1911 .Scope( AS_GLOBAL )
1912 .FriendlyName( _( "Unlock" ) )
1913 .Tooltip( _( "Allow items to be moved and/or resized on the canvas" ) )
1914 .Icon( BITMAPS::unlocked ) );
1915
1917 .Name( "pcbnew.EditorControl.highlightNet" )
1918 .Scope( AS_GLOBAL )
1919 .DefaultHotkey( '`' )
1920 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1921 .LegacyHotkeyName( "Toggle Highlight of Selected Net (Modern Toolset only)" )
1922 .FriendlyName( _( "Highlight Net" ) )
1923 .Tooltip( _( "Highlight net under cursor" ) )
1924 .Icon( BITMAPS::net_highlight )
1925 .Parameter<int>( 0 ) );
1926
1928 .Name( "pcbnew.EditorControl.toggleLastNetHighlight" )
1929 .Scope( AS_GLOBAL )
1930 .FriendlyName( _( "Toggle Last Net Highlight" ) )
1931 .Tooltip( _( "Toggle between last two highlighted nets" ) )
1932 .Parameter<int>( 0 ) );
1933
1935 .Name( "pcbnew.EditorControl.clearHighlight" )
1936 .Scope( AS_GLOBAL )
1937 .DefaultHotkey( '~' )
1938 .FriendlyName( _( "Clear Net Highlighting" ) ) );
1939
1941 .Name( "pcbnew.EditorControl.toggleNetHighlight" )
1942 .Scope( AS_GLOBAL )
1943 .DefaultHotkey( MD_ALT + '`' )
1944 .FriendlyName( _( "Toggle Net Highlight" ) )
1945 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1946 .Icon( BITMAPS::net_highlight )
1947 .Parameter<int>( 0 ) );
1948
1950 .Name( "pcbnew.EditorControl.highlightNetSelection" )
1951 .Scope( AS_GLOBAL )
1952 .FriendlyName( _( "Highlight Net" ) )
1953 .Tooltip( _( "Highlight all copper items on the selected net(s)" ) )
1954 .Icon( BITMAPS::net_highlight )
1955 .Parameter<int>( 0 ) );
1956
1958 .Name( "pcbnew.EditorControl.highlightNetChain" )
1959 .Scope( AS_GLOBAL )
1960 .FriendlyName( _( "Highlight Net Chain" ) )
1961 .Tooltip( _( "Highlight every net in the net chain" ) )
1962 .Icon( BITMAPS::net_highlight ) );
1963
1965 .Name( "pcbnew.EditorControl.setTerminalPad" )
1966 .Scope( AS_GLOBAL )
1967 .Parameter<std::pair<KIID, KIID>>( { niluuid, niluuid } )
1968 .FriendlyName( _( "Set Terminal Pad" ) ) );
1969
1971 .Name( "pcbnew.EditorControl.highlightItem" )
1972 .Scope( AS_GLOBAL ) );
1973
1975 .Name( "pcbnew.EditorControl.hideNet" )
1976 .Scope( AS_GLOBAL )
1977 .FriendlyName( _( "Hide Net in Ratsnest" ) )
1978 .Tooltip( _( "Hide the selected net in the ratsnest of unconnected net lines/arcs" ) )
1979 .Icon( BITMAPS::hide_ratsnest )
1980 .Parameter<int>( 0 ) ); // Default to hiding selected net
1981
1983 .Name( "pcbnew.EditorControl.showNet" )
1984 .Scope( AS_GLOBAL )
1985 .FriendlyName( _( "Show Net in Ratsnest" ) )
1986 .Tooltip( _( "Show the selected net in the ratsnest of unconnected net lines/arcs" ) )
1987 .Icon( BITMAPS::show_ratsnest )
1988 .Parameter<int>( 0 ) ); // Default to showing selected net
1989
1991 .Name( "pcbnew.EditorControl.showEeschema" )
1992 .Scope( AS_GLOBAL )
1993 .FriendlyName( _( "Switch to Schematic Editor" ) )
1994 .Tooltip( _( "Open schematic in schematic editor" ) )
1995 .Icon( BITMAPS::icon_eeschema_24 ) );
1996
1997// DESIGN RULE EDITOR
1999 .Name( "pcbnew.DRETool.drcRuleEditor" )
2000 .Scope( AS_GLOBAL )
2001 .FriendlyName( _( "DRC Rule Editor" ) )
2002 .Tooltip( _( "Open DRC rule editor window" ) ) );
2003
2004// PCB_CONTROL
2005//
2006
2008 .Name( "pcbnew.Control.localRatsnestTool" )
2009 .Scope( AS_GLOBAL )
2010 .FriendlyName( _( "Local Ratsnest" ) )
2011 .Tooltip( _( "Toggle ratsnest display of selected item(s)" ) )
2012 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2013 .Icon( BITMAPS::tool_ratsnest )
2014 .Flags( AF_ACTIVATE ) );
2015
2017 .Name( "pcbnew.Control.hideDynamicRatsnest" )
2018 .Scope( AS_GLOBAL ) );
2019
2021 .Name( "pcbnew.Control.updateLocalRatsnest" )
2022 .Scope( AS_GLOBAL )
2023 .Parameter( VECTOR2I() ) );
2024
2026 .Name( "pcbnew.Control.showLayersManager" )
2027 .Scope( AS_GLOBAL )
2028 .FriendlyName( _( "Appearance" ) )
2029 .Tooltip( _( "Show/hide the appearance manager" ) )
2030 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2031 .Icon( BITMAPS::layers_manager ) );
2032
2034 .Name( "pcbnew.Control.showNetInspector" )
2035 .Scope( AS_GLOBAL )
2036 .FriendlyName( _( "Net Inspector" ) )
2037 .Tooltip( _( "Show/hide the net inspector" ) )
2038 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2039 .Icon( BITMAPS::tools ) );
2040
2042 .Name( "pcbnew.Control.zonesManager" )
2043 .Scope( AS_GLOBAL )
2044 .FriendlyName( _( "Zone Manager..." ) )
2045 .Tooltip( _( "Show the zone manager dialog" ) )
2046 .Icon( BITMAPS::show_zone ) );
2047
2049 .Name( "pcbnew.Control.flipBoard" )
2050 .Scope( AS_GLOBAL )
2051 .FriendlyName( _( "Flip Board View" ) )
2052 .Tooltip( _( "View board from the opposite side" ) )
2053 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2054 .Icon( BITMAPS::flip_board ) );
2055
2057 .Name( "pcbnew.Control.rehatchShapes" )
2058 .Scope( AS_CONTEXT ) );
2059
2060
2061// Display modes
2063 .Name( "pcbnew.Control.showRatsnest" )
2064 .Scope( AS_GLOBAL )
2065 .FriendlyName( _( "Show Ratsnest" ) )
2066 .Tooltip( _( "Show lines/arcs representing missing connections on the board" ) )
2067 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2068 .Icon( BITMAPS::general_ratsnest ) );
2069
2071 .Name( "pcbnew.Control.ratsnestLineMode" )
2072 .Scope( AS_GLOBAL )
2073 .FriendlyName( _( "Curved Ratsnest Lines" ) )
2074 .Tooltip( _( "Show ratsnest with curved lines" ) )
2075 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2076 .Icon( BITMAPS::curved_ratsnest ) );
2077
2079 .Name( "pcbnew.Control.ratsnestModeCycle" )
2080 .Scope( AS_GLOBAL )
2081 .FriendlyName( _( "Ratsnest Mode (3-state)" ) )
2082 .Tooltip( _( "Cycle between showing ratsnests for all layers, just visible layers, and none" ) ) );
2083
2085 .Name( "pcbnew.Control.netColorMode" )
2086 .Scope( AS_GLOBAL )
2087 .FriendlyName( _( "Net Color Mode (3-state)" ) )
2088 .Tooltip( _( "Cycle between using net and netclass colors for all nets, just ratsnests, and none" ) ) );
2089
2091 .Name( "pcbnew.Control.trackDisplayMode" )
2092 .Scope( AS_GLOBAL )
2093 .DefaultHotkey( 'K' )
2094 .LegacyHotkeyName( "Track Display Mode" )
2095 .FriendlyName( _( "Sketch Tracks" ) )
2096 .Tooltip( _( "Show tracks in outline mode" ) )
2097 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2098 .Icon( BITMAPS::showtrack ) );
2099
2101 .Name( "pcbnew.Control.padDisplayMode" )
2102 .Scope( AS_GLOBAL )
2103 .FriendlyName( _( "Sketch Pads" ) )
2104 .Tooltip( _( "Show pads in outline mode" ) )
2105 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2106 .Icon( BITMAPS::pad_sketch ) );
2107
2109 .Name( "pcbnew.Control.viaDisplayMode" )
2110 .Scope( AS_GLOBAL )
2111 .FriendlyName( _( "Sketch Vias" ) )
2112 .Tooltip( _( "Show vias in outline mode" ) )
2113 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2114 .Icon( BITMAPS::via_sketch ) );
2115
2117 .Name( "pcbnew.Control.graphicOutlines" )
2118 .Scope( AS_GLOBAL )
2119 .FriendlyName( _( "Sketch Graphic Items" ) )
2120 .Tooltip( _( "Show graphic items in outline mode" ) )
2121 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2122 .Icon( BITMAPS::show_mod_edge ) );
2123
2125 .Name( "pcbnew.Control.textOutlines" )
2126 .Scope( AS_GLOBAL )
2127 .FriendlyName( _( "Sketch Text Items" ) )
2128 .Tooltip( _( "Show footprint texts in line mode" ) )
2129 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2130 .Icon( BITMAPS::text_sketch ) );
2131
2133 .Name( "pcbnew.Control.showPadNumbers" )
2134 .Scope( AS_GLOBAL )
2135 .FriendlyName( _( "Show Pad Numbers" ) )
2136 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2137 .Icon( BITMAPS::pad_number ) );
2138
2140 .Name( "pcbnew.Control.zoneDisplayEnable" )
2141 .Scope( AS_GLOBAL )
2142 .FriendlyName( _( "Draw Zone Fills" ) )
2143 .Tooltip( _( "Show filled areas of zones" ) )
2144 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2145 .Icon( BITMAPS::show_zone ) );
2146
2148 .Name( "pcbnew.Control.zoneDisplayDisable" )
2149 .Scope( AS_GLOBAL )
2150 .FriendlyName( _( "Draw Zone Outlines" ) )
2151 .Tooltip( _( "Show only zone boundaries" ) )
2152 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2153 .Icon( BITMAPS::show_zone_disable ) );
2154
2156 .Name( "pcbnew.Control.zoneDisplayOutlines" )
2157 .Scope( AS_GLOBAL )
2158 .FriendlyName( _( "Draw Zone Fill Fracture Borders" ) )
2159 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2161
2163 .Name( "pcbnew.Control.zoneDisplayTesselation" )
2164 .Scope( AS_GLOBAL )
2165 .FriendlyName( _( "Draw Zone Fill Triangulation" ) )
2166 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2168
2170 .Name( "pcbnew.Control.zoneDisplayToggle" )
2171 .Scope( AS_GLOBAL )
2172 .FriendlyName( _( "Toggle Zone Display" ) )
2173 .Tooltip( _( "Cycle between showing zone fills and just their outlines" ) )
2174 .Icon( BITMAPS::show_zone ) );
2175
2176
2178 .Name( "pcbnew.Control.fpAutoZoom" )
2179 .Scope( AS_GLOBAL )
2180 .FriendlyName( _( "Automatic zoom" ) )
2181 .Tooltip( _( "Automatic Zoom on footprint change" ) )
2183 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
2184
2185// Layer control
2186
2187// Translate aLayer to the action that switches to it
2189{
2190 switch( aLayer )
2191 {
2192 case F_Cu: return &PCB_ACTIONS::layerTop;
2193 case In1_Cu: return &PCB_ACTIONS::layerInner1;
2194 case In2_Cu: return &PCB_ACTIONS::layerInner2;
2195 case In3_Cu: return &PCB_ACTIONS::layerInner3;
2196 case In4_Cu: return &PCB_ACTIONS::layerInner4;
2197 case In5_Cu: return &PCB_ACTIONS::layerInner5;
2198 case In6_Cu: return &PCB_ACTIONS::layerInner6;
2199 case In7_Cu: return &PCB_ACTIONS::layerInner7;
2200 case In8_Cu: return &PCB_ACTIONS::layerInner8;
2201 case In9_Cu: return &PCB_ACTIONS::layerInner9;
2202 case In10_Cu: return &PCB_ACTIONS::layerInner10;
2203 case In11_Cu: return &PCB_ACTIONS::layerInner11;
2204 case In12_Cu: return &PCB_ACTIONS::layerInner12;
2205 case In13_Cu: return &PCB_ACTIONS::layerInner13;
2206 case In14_Cu: return &PCB_ACTIONS::layerInner14;
2207 case In15_Cu: return &PCB_ACTIONS::layerInner15;
2208 case In16_Cu: return &PCB_ACTIONS::layerInner16;
2209 case In17_Cu: return &PCB_ACTIONS::layerInner17;
2210 case In18_Cu: return &PCB_ACTIONS::layerInner18;
2211 case In19_Cu: return &PCB_ACTIONS::layerInner19;
2212 case In20_Cu: return &PCB_ACTIONS::layerInner20;
2213 case In21_Cu: return &PCB_ACTIONS::layerInner21;
2214 case In22_Cu: return &PCB_ACTIONS::layerInner22;
2215 case In23_Cu: return &PCB_ACTIONS::layerInner23;
2216 case In24_Cu: return &PCB_ACTIONS::layerInner24;
2217 case In25_Cu: return &PCB_ACTIONS::layerInner25;
2218 case In26_Cu: return &PCB_ACTIONS::layerInner26;
2219 case In27_Cu: return &PCB_ACTIONS::layerInner27;
2220 case In28_Cu: return &PCB_ACTIONS::layerInner28;
2221 case In29_Cu: return &PCB_ACTIONS::layerInner29;
2222 case In30_Cu: return &PCB_ACTIONS::layerInner30;
2223 case B_Cu: return &PCB_ACTIONS::layerBottom;
2224 default: return nullptr;
2225 }
2226}
2227
2228// Implemented as an accessor + static variable to ensure it is initialized when used
2229// in static action constructors
2231{
2232 static TOOL_ACTION_GROUP s_toolActionGroup( "pcbnew.Control.DirectLayerActions" );
2233 return s_toolActionGroup;
2234}
2235
2237 .Name( "pcbnew.Control.layerTop" )
2238 .Scope( AS_GLOBAL )
2240 .DefaultHotkey( WXK_PAGEUP )
2241 .LegacyHotkeyName( "Switch to Component (F.Cu) layer" )
2242 .FriendlyName( _( "Switch to Component (F.Cu) layer" ) )
2243 .Flags( AF_NOTIFY )
2244 .Parameter( F_Cu ) );
2245
2247 .Name( "pcbnew.Control.layerInner1" )
2248 .Scope( AS_GLOBAL )
2250 .LegacyHotkeyName( "Switch to Inner layer 1" )
2251 .FriendlyName( _( "Switch to Inner Layer 1" ) )
2252 .Flags( AF_NOTIFY )
2253 .Parameter( In1_Cu ) );
2254
2256 .Name( "pcbnew.Control.layerInner2" )
2257 .Scope( AS_GLOBAL )
2259 .LegacyHotkeyName( "Switch to Inner layer 2" )
2260 .FriendlyName( _( "Switch to Inner Layer 2" ) )
2261 .Flags( AF_NOTIFY )
2262 .Parameter( In2_Cu ) );
2263
2265 .Name( "pcbnew.Control.layerInner3" )
2266 .Scope( AS_GLOBAL )
2268 .LegacyHotkeyName( "Switch to Inner layer 3" )
2269 .FriendlyName( _( "Switch to Inner Layer 3" ) )
2270 .Flags( AF_NOTIFY )
2271 .Parameter( In3_Cu ) );
2272
2274 .Name( "pcbnew.Control.layerInner4" )
2275 .Scope( AS_GLOBAL )
2277 .LegacyHotkeyName( "Switch to Inner layer 4" )
2278 .FriendlyName( _( "Switch to Inner Layer 4" ) )
2279 .Flags( AF_NOTIFY )
2280 .Parameter( In4_Cu ) );
2281
2283 .Name( "pcbnew.Control.layerInner5" )
2284 .Scope( AS_GLOBAL )
2286 .LegacyHotkeyName( "Switch to Inner layer 5" )
2287 .FriendlyName( _( "Switch to Inner Layer 5" ) )
2288 .Flags( AF_NOTIFY )
2289 .Parameter( In5_Cu ) );
2290
2292 .Name( "pcbnew.Control.layerInner6" )
2293 .Scope( AS_GLOBAL )
2295 .LegacyHotkeyName( "Switch to Inner layer 6" )
2296 .FriendlyName( _( "Switch to Inner Layer 6" ) )
2297 .Flags( AF_NOTIFY )
2298 .Parameter( In6_Cu ) );
2299
2301 .Name( "pcbnew.Control.layerInner7" )
2302 .Scope( AS_GLOBAL )
2304 .FriendlyName( _( "Switch to Inner Layer 7" ) )
2305 .Flags( AF_NOTIFY )
2306 .Parameter( In7_Cu ) );
2307
2309 .Name( "pcbnew.Control.layerInner8" )
2310 .Scope( AS_GLOBAL )
2312 .FriendlyName( _( "Switch to Inner Layer 8" ) )
2313 .Flags( AF_NOTIFY )
2314 .Parameter( In8_Cu ) );
2315
2317 .Name( "pcbnew.Control.layerInner9" )
2318 .Scope( AS_GLOBAL )
2320 .FriendlyName( _( "Switch to Inner Layer 9" ) )
2321 .Flags( AF_NOTIFY )
2322 .Parameter( In9_Cu ) );
2323
2325 .Name( "pcbnew.Control.layerInner10" )
2326 .Scope( AS_GLOBAL )
2328 .FriendlyName( _( "Switch to Inner Layer 10" ) )
2329 .Flags( AF_NOTIFY )
2330 .Parameter( In10_Cu ) );
2331
2333 .Name( "pcbnew.Control.layerInner11" )
2334 .Scope( AS_GLOBAL )
2336 .FriendlyName( _( "Switch to Inner Layer 11" ) )
2337 .Flags( AF_NOTIFY )
2338 .Parameter( In11_Cu ) );
2339
2341 .Name( "pcbnew.Control.layerInner12" )
2342 .Scope( AS_GLOBAL )
2344 .FriendlyName( _( "Switch to Inner Layer 12" ) )
2345 .Flags( AF_NOTIFY )
2346 .Parameter( In12_Cu ) );
2347
2349 .Name( "pcbnew.Control.layerInner13" )
2350 .Scope( AS_GLOBAL )
2352 .FriendlyName( _( "Switch to Inner Layer 13" ) )
2353 .Flags( AF_NOTIFY )
2354 .Parameter( In13_Cu ) );
2355
2357 .Name( "pcbnew.Control.layerInner14" )
2358 .Scope( AS_GLOBAL )
2360 .FriendlyName( _( "Switch to Inner Layer 14" ) )
2361 .Flags( AF_NOTIFY )
2362 .Parameter( In14_Cu ) );
2363
2365 .Name( "pcbnew.Control.layerInner15" )
2366 .Scope( AS_GLOBAL )
2368 .FriendlyName( _( "Switch to Inner Layer 15" ) )
2369 .Flags( AF_NOTIFY )
2370 .Parameter( In15_Cu ) );
2371
2373 .Name( "pcbnew.Control.layerInner16" )
2374 .Scope( AS_GLOBAL )
2376 .FriendlyName( _( "Switch to Inner Layer 16" ) )
2377 .Flags( AF_NOTIFY )
2378 .Parameter( In16_Cu ) );
2379
2381 .Name( "pcbnew.Control.layerInner17" )
2382 .Scope( AS_GLOBAL )
2384 .FriendlyName( _( "Switch to Inner Layer 17" ) )
2385 .Flags( AF_NOTIFY )
2386 .Parameter( In17_Cu ) );
2387
2389 .Name( "pcbnew.Control.layerInner18" )
2390 .Scope( AS_GLOBAL )
2392 .FriendlyName( _( "Switch to Inner Layer 18" ) )
2393 .Flags( AF_NOTIFY )
2394 .Parameter( In18_Cu ) );
2395
2397 .Name( "pcbnew.Control.layerInner19" )
2398 .Scope( AS_GLOBAL )
2400 .FriendlyName( _( "Switch to Inner Layer 19" ) )
2401 .Flags( AF_NOTIFY )
2402 .Parameter( In19_Cu ) );
2403
2405 .Name( "pcbnew.Control.layerInner20" )
2406 .Scope( AS_GLOBAL )
2408 .FriendlyName( _( "Switch to Inner Layer 20" ) )
2409 .Flags( AF_NOTIFY )
2410 .Parameter( In20_Cu ) );
2411
2413 .Name( "pcbnew.Control.layerInner21" )
2414 .Scope( AS_GLOBAL )
2416 .FriendlyName( _( "Switch to Inner Layer 21" ) )
2417 .Flags( AF_NOTIFY )
2418 .Parameter( In21_Cu ) );
2419
2421 .Name( "pcbnew.Control.layerInner22" )
2422 .Scope( AS_GLOBAL )
2424 .FriendlyName( _( "Switch to Inner Layer 22" ) )
2425 .Flags( AF_NOTIFY )
2426 .Parameter( In22_Cu ) );
2427
2429 .Name( "pcbnew.Control.layerInner23" )
2430 .Scope( AS_GLOBAL )
2432 .FriendlyName( _( "Switch to Inner Layer 23" ) )
2433 .Flags( AF_NOTIFY )
2434 .Parameter( In23_Cu ) );
2435
2437 .Name( "pcbnew.Control.layerInner24" )
2438 .Scope( AS_GLOBAL )
2440 .FriendlyName( _( "Switch to Inner Layer 24" ) )
2441 .Flags( AF_NOTIFY )
2442 .Parameter( In24_Cu ) );
2443
2445 .Name( "pcbnew.Control.layerInner25" )
2446 .Scope( AS_GLOBAL )
2448 .FriendlyName( _( "Switch to Inner Layer 25" ) )
2449 .Flags( AF_NOTIFY )
2450 .Parameter( In25_Cu ) );
2451
2453 .Name( "pcbnew.Control.layerInner26" )
2454 .Scope( AS_GLOBAL )
2456 .FriendlyName( _( "Switch to Inner Layer 26" ) )
2457 .Flags( AF_NOTIFY )
2458 .Parameter( In26_Cu ) );
2459
2461 .Name( "pcbnew.Control.layerInner27" )
2462 .Scope( AS_GLOBAL )
2464 .FriendlyName( _( "Switch to Inner Layer 27" ) )
2465 .Flags( AF_NOTIFY )
2466 .Parameter( In27_Cu ) );
2467
2469 .Name( "pcbnew.Control.layerInner28" )
2470 .Scope( AS_GLOBAL )
2472 .FriendlyName( _( "Switch to Inner Layer 28" ) )
2473 .Flags( AF_NOTIFY )
2474 .Parameter( In28_Cu ) );
2475
2477 .Name( "pcbnew.Control.layerInner29" )
2478 .Scope( AS_GLOBAL )
2480 .FriendlyName( _( "Switch to Inner Layer 29" ) )
2481 .Flags( AF_NOTIFY )
2482 .Parameter( In29_Cu ) );
2483
2485 .Name( "pcbnew.Control.layerInner30" )
2486 .Scope( AS_GLOBAL )
2488 .FriendlyName( _( "Switch to Inner Layer 30" ) )
2489 .Flags( AF_NOTIFY )
2490 .Parameter( In30_Cu ) );
2491
2493 .Name( "pcbnew.Control.layerBottom" )
2494 .Scope( AS_GLOBAL )
2496 .DefaultHotkey( WXK_PAGEDOWN )
2497 .LegacyHotkeyName( "Switch to Copper (B.Cu) layer" )
2498 .FriendlyName( _( "Switch to Copper (B.Cu) Layer" ) )
2499 .Flags( AF_NOTIFY )
2500 .Parameter( B_Cu ) );
2501
2503 .Name( "pcbnew.Control.layerNext" )
2504 .Scope( AS_GLOBAL )
2505 .DefaultHotkey( '+' )
2506 .LegacyHotkeyName( "Switch to Next Layer" )
2507 .FriendlyName( _( "Switch to Next Layer" ) )
2508 .Flags( AF_NOTIFY ) );
2509
2511 .Name( "pcbnew.Control.layerPrev" )
2512 .Scope( AS_GLOBAL )
2513 .DefaultHotkey( '-' )
2514 .LegacyHotkeyName( "Switch to Previous Layer" )
2515 .FriendlyName( _( "Switch to Previous Layer" ) )
2516 .Flags( AF_NOTIFY ) );
2517
2519 .Name( "pcbnew.Control.layerToggle" )
2520 .Scope( AS_GLOBAL )
2521 .DefaultHotkey( 'V' )
2522 .LegacyHotkeyName( "Add Through Via" )
2523 .FriendlyName( _( "Toggle Layer" ) )
2524 .Tooltip( _( "Switch between layers in active layer pair" ) )
2525 .Flags( AF_NOTIFY ) );
2526
2528 .Name( "pcbnew.Control.layerAlphaInc" )
2529 .Scope( AS_GLOBAL )
2530 .DefaultHotkey( '}' )
2531 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2532 .LegacyHotkeyName( "Increment Layer Transparency (Modern Toolset only)" )
2533 .FriendlyName( _( "Increase Layer Opacity" ) )
2534 .Tooltip( _( "Make the current layer less transparent" ) )
2535 .Icon( BITMAPS::contrast_mode ) );
2536
2538 .Name( "pcbnew.Control.layerAlphaDec" )
2539 .Scope( AS_GLOBAL )
2540 .DefaultHotkey( '{' )
2541 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2542 .LegacyHotkeyName( "Decrement Layer Transparency (Modern Toolset only)" )
2543 .FriendlyName( _( "Decrease Layer Opacity" ) )
2544 .Tooltip( _( "Make the current layer more transparent" ) )
2545 .Icon( BITMAPS::contrast_mode ) );
2546
2548 .Name( "pcbnew.Control.layerPairPresetCycle" )
2549 .Scope( AS_GLOBAL )
2550 .DefaultHotkey( MD_SHIFT + 'V' )
2551 .FriendlyName( _( "Cycle Layer Pair Presets" ) )
2552 .Tooltip( _( "Cycle between preset layer pairs" ) ) );
2553
2555 .Name( "pcbnew.Control.layerChanged" )
2556 .Scope( AS_GLOBAL )
2557 .Flags( AF_NOTIFY ) );
2558
2559//Show board statistics tool
2561 .Name( "pcbnew.InspectionTool.ShowBoardStatistics" )
2562 .Scope( AS_GLOBAL )
2563 .FriendlyName( _( "Show Board Statistics" ) )
2564 .Tooltip( _( "Shows board statistics" ) )
2565 .Icon( BITMAPS::editor ) );
2566
2568 .Name( "pcbnew.InspectionTool.InspectClearance" )
2569 .Scope( AS_GLOBAL )
2570 .FriendlyName( _( "Clearance Resolution" ) )
2571 .Tooltip( _( "Show clearance resolution for the active layer between two selected objects" ) )
2572 .Icon( BITMAPS::mw_add_gap ) );
2573
2575 .Name( "pcbnew.InspectionTool.InspectConstraints" )
2576 .Scope( AS_GLOBAL )
2577 .FriendlyName( _( "Constraints Resolution" ) )
2578 .Tooltip( _( "Show constraints resolution for the selected object" ) )
2579 .Icon( BITMAPS::mw_add_stub ) );
2580
2582 .Name( "pcbnew.InspectionTool.DiffFootprint" )
2583 .Scope( AS_GLOBAL )
2584 .FriendlyName( _( "Compare Footprint with Library" ) )
2585 .Tooltip( _( "Show differences between board footprint and its library equivalent" ) )
2586 .Icon( BITMAPS::library ) );
2587
2589 .Name( "pcbnew.InspectionTool.CompareBoardWithFile" )
2590 .Scope( AS_GLOBAL )
2591 .FriendlyName( _( "Compare Board with File..." ) )
2592 .Tooltip( _( "Diff the current PCB against another .kicad_pcb file" ) )
2593 .Icon( BITMAPS::library ) );
2594
2596 .Name( "pcbnew.InspectionTool.CompareBoardWithHistory" )
2597 .Scope( AS_GLOBAL )
2598 .FriendlyName( _( "Compare Board with Local History..." ) )
2599 .Tooltip( _( "Diff the current PCB against the most recent local-history snapshot" ) )
2600 .Icon( BITMAPS::library ) );
2601
2603 .Name( "pcbnew.InspectionTool.ShowFootprintAssociations" )
2604 .Scope( AS_GLOBAL )
2605 .FriendlyName( _( "Show Footprint Associations" ) )
2606 .Tooltip( _( "Show footprint library and schematic symbol associations" ) )
2608
2609//Geographic re-annotation tool
2611 .Name( "pcbnew.ReannotateTool.ShowReannotateDialog" )
2612 .Scope( AS_GLOBAL )
2613 .FriendlyName( _( "Geographical Reannotate..." ) )
2614 .Tooltip( _( "Reannotate PCB in geographical order" ) )
2615 .Icon( BITMAPS::annotate ) );
2616
2618 .Name( "pcbnew.Control.repairBoard" )
2619 .Scope( AS_GLOBAL )
2620 .FriendlyName( _( "Repair Board" ) )
2621 .Tooltip( _( "Run various diagnostics and attempt to repair board" ) )
2622 .Icon( BITMAPS::rescue )
2623 .Parameter( false ) ); // Don't repair quietly
2624
2626 .Name( "pcbnew.ModuleEditor.repairFootprint" )
2627 .Scope( AS_GLOBAL )
2628 .FriendlyName( _( "Repair Footprint" ) )
2629 .Tooltip( _( "Run various diagnostics and attempt to repair footprint" ) )
2630 .Icon( BITMAPS::rescue ) );
2631
2632// These carry no DefaultHotkey because GTK refuses WXK_TAB as a menu accelerator. Ctrl+Tab is
2633// routed through a frame char-hook handler instead.
2635 .Name( "pcbnew.ModuleEditor.nextFootprintTab" )
2636 .Scope( AS_GLOBAL )
2637 .FriendlyName( _( "Next Footprint Tab" ) )
2638 .Tooltip( _( "Switch to the next open footprint tab" ) ) );
2639
2641 .Name( "pcbnew.ModuleEditor.prevFootprintTab" )
2642 .Scope( AS_GLOBAL )
2643 .FriendlyName( _( "Previous Footprint Tab" ) )
2644 .Tooltip( _( "Switch to the previous open footprint tab" ) ) );
2645
2647 .Name( "pcbnew.ModuleEditor.closeFootprintTab" )
2648 .Scope( AS_GLOBAL )
2649 .FriendlyName( _( "Close Footprint Tab" ) )
2650 .Tooltip( _( "Close the active footprint tab" ) ) );
2651
2652
2653// PLACEMENT_TOOL
2654//
2656 .Name( "pcbnew.AlignAndDistribute.alignTop" )
2657 .Scope( AS_GLOBAL )
2658 .FriendlyName( _( "Align to Top" ) )
2659 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
2660 .Icon( BITMAPS::align_items_top ) );
2661
2663 .Name( "pcbnew.AlignAndDistribute.alignBottom" )
2664 .Scope( AS_GLOBAL )
2665 .FriendlyName( _( "Align to Bottom" ) )
2666 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
2667 .Icon( BITMAPS::align_items_bottom ) );
2668
2670 .Name( "pcbnew.AlignAndDistribute.alignLeft" )
2671 .Scope( AS_GLOBAL )
2672 .FriendlyName( _( "Align to Left" ) )
2673 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
2674 .Icon( BITMAPS::align_items_left ) );
2675
2677 .Name( "pcbnew.AlignAndDistribute.alignRight" )
2678 .Scope( AS_GLOBAL )
2679 .FriendlyName( _( "Align to Right" ) )
2680 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
2681 .Icon( BITMAPS::align_items_right ) );
2682
2684 .Name( "pcbnew.AlignAndDistribute.alignCenterY" )
2685 .Scope( AS_GLOBAL )
2686 .FriendlyName( _( "Align to Vertical Center" ) )
2687 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
2688 .Icon( BITMAPS::align_items_center ) );
2689
2691 .Name( "pcbnew.AlignAndDistribute.alignCenterX" )
2692 .Scope( AS_GLOBAL )
2693 .FriendlyName( _( "Align to Horizontal Center" ) )
2694 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
2695 .Icon( BITMAPS::align_items_middle ) );
2696
2698 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyCenters" )
2699 .Scope( AS_GLOBAL )
2700 .FriendlyName( _( "Distribute Horizontally by Centers" ) )
2701 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
2702 "so that the item centers are equally distributed" ) )
2704
2706 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyGaps" )
2707 .Scope( AS_GLOBAL )
2708 .FriendlyName( _( "Distribute Horizontally with Even Gaps" ) )
2709 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
2710 "so that the gaps between items are equal" ) )
2712
2714 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyGaps" )
2715 .Scope( AS_GLOBAL )
2716 .FriendlyName( _( "Distribute Vertically with Even Gaps" ) )
2717 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2718 "so that the gaps between items are equal" ) )
2720
2722 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyCenters" )
2723 .Scope( AS_GLOBAL )
2724 .FriendlyName( _( "Distribute Vertically by Centers" ) )
2725 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2726 "so that the item centers are equally distributed" ) )
2728
2729// PCB_POINT_EDITOR
2730//
2732 .Name( "pcbnew.PointEditor.addCorner" )
2733 .Scope( AS_GLOBAL )
2734#ifdef __WXMAC__
2735 .DefaultHotkey( WXK_F1 )
2736#else
2737 .DefaultHotkey( WXK_INSERT )
2738#endif
2739 .FriendlyName( _( "Create Corner" ) )
2740 .Tooltip( _( "Create a corner" ) )
2741 .Icon( BITMAPS::add_corner ) );
2742
2744 .Name( "pcbnew.PointEditor.removeCorner" )
2745 .Scope( AS_GLOBAL )
2746 .FriendlyName( _( "Remove Corner" ) )
2747 .Tooltip( _( "Remove corner" ) )
2748 .Icon( BITMAPS::delete_cursor ) );
2749
2751 .Name( "pcbnew.PointEditor.chamferCorner" )
2752 .Scope( AS_GLOBAL )
2753 .FriendlyName( _( "Chamfer Corner" ) )
2754 .Tooltip( _( "Chamfer corner" ) )
2755 .Icon( BITMAPS::chamfer ) );
2756
2757// POSITION_RELATIVE_TOOL
2758//
2760 .Name( "pcbnew.PositionRelative.positionRelative" )
2761 .Scope( AS_GLOBAL )
2762 .DefaultHotkey( MD_SHIFT + 'P' )
2763 .LegacyHotkeyName( "Position Item Relative" )
2764 .FriendlyName( _( "Position Relative To..." ) )
2765 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another" ) )
2766 .Icon( BITMAPS::move_relative ) );
2767
2769 .Name( "pcbnew.PositionRelative.interactiveOffsetTool" )
2770 .Scope( AS_GLOBAL )
2771 .FriendlyName( _( "Interactive Offset Tool" ) )
2772 .Tooltip( _( "Interactive tool for offsetting items by exact amounts" ) )
2773 .Icon( BITMAPS::move_relative ) );
2774
2775// PCIKER_TOOL
2776//
2778 .Name( "pcbnew.Picker.selectItemInteractively" )
2779 .Scope( AS_GLOBAL )
2780 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ) );
2781
2783 .Name( "pcbnew.Picker.selectPointInteractively" )
2784 .Scope( AS_GLOBAL )
2785 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ));
2786
2787
2789 .Name( "pcbnew.InteractiveSelection.SelectConnection" )
2790 .Scope( AS_GLOBAL )
2791 .DefaultHotkey( 'U' )
2792 .LegacyHotkeyName( "Select Single Track" )
2793 .FriendlyName( _( "Select/Expand Connection" ) )
2794 .Tooltip( _( "Selects a connection or expands an existing selection to junctions, pads, or entire connections" ) )
2795 .Icon( BITMAPS::add_tracks ) );
2796
2798 .Name( "pcbnew.InteractiveSelection.unrouteSelected" )
2799 .Scope( AS_GLOBAL )
2800 .FriendlyName( _( "Unroute Selected" ) )
2801 .Tooltip( _( "Unroutes selected items to the nearest pad." ) )
2802 .Icon( BITMAPS::general_deletions ) );
2803
2805 .Name( "pcbnew.InteractiveSelection.unrouteSegment" )
2806 .Scope( AS_GLOBAL )
2807 .DefaultHotkey( WXK_BACK )
2808 .FriendlyName( _( "Unroute Segment" ) )
2809 .Tooltip( _( "Unroutes segment to the nearest segment." ) )
2810 .Icon( BITMAPS::general_deletions ) );
2811
2813 .Name( "pcbnew.InteractiveSelection.SyncSelection" )
2814 .Scope( AS_GLOBAL ) );
2815
2817 .Name( "pcbnew.InteractiveSelection.SyncSelectionWithNets" )
2818 .Scope( AS_GLOBAL ) );
2819
2821 .Name( "pcbnew.InteractiveSelection.SelectNet" )
2822 .Scope( AS_GLOBAL )
2823 .FriendlyName( _( "Select All Tracks in Net" ) )
2824 .Tooltip( _( "Selects all tracks & vias belonging to the same net." ) )
2825 .Parameter<int>( 0 ) );
2826
2828 .Name( "pcbnew.InteractiveSelection.DeselectNet" )
2829 .Scope( AS_GLOBAL )
2830 .FriendlyName( _( "Deselect All Tracks in Net" ) )
2831 .Tooltip( _( "Deselects all tracks & vias belonging to the same net." ) )
2832 .Parameter<int>( 0 ) );
2833
2835 .Name( "pcbnew.InteractiveSelection.SelectNetChain" )
2836 .Scope( AS_GLOBAL )
2837 .FriendlyName( _( "Select All Tracks in Net Chain" ) )
2838 .Tooltip( _( "Selects all tracks & vias belonging to every net in the same net "
2839 "chain (nets joined through series passives)." ) ) );
2840
2842 .Name( "pcbnew.InteractiveSelection.SelectUnconnected" )
2843 .Scope( AS_GLOBAL )
2844 .DefaultHotkey( 'O' )
2845 .FriendlyName( _( "Select All Unconnected Footprints" ) )
2846 .Tooltip( _( "Selects all unconnected footprints belonging to each selected net." ) ) );
2847
2849 .Name( "pcbnew.InteractiveSelection.GrabUnconnected" )
2850 .Scope( AS_GLOBAL )
2851 .DefaultHotkey( MD_SHIFT + 'O' )
2852 .FriendlyName( _( "Grab Nearest Unconnected Footprints" ) )
2853 .Tooltip( _( "Selects and initiates moving the nearest unconnected footprint on each selected net." ) ) );
2854
2856 .Name( "pcbnew.InteractiveSelection.SelectOnSheet" )
2857 .Scope( AS_GLOBAL )
2858 .FriendlyName( _( "Sheet" ) )
2859 .Tooltip( _( "Selects all footprints and tracks in the schematic sheet" ) )
2860 .Icon( BITMAPS::select_same_sheet ) );
2861
2863 .Name( "pcbnew.InteractiveSelection.SelectSameSheet" )
2864 .Scope( AS_GLOBAL )
2865 .FriendlyName( _( "Items in Same Hierarchical Sheet" ) )
2866 .Tooltip( _( "Selects all footprints and tracks in the same schematic sheet" ) )
2867 .Icon( BITMAPS::select_same_sheet ) );
2868
2870 .Name( "pcbnew.InteractiveSelection.SelectOnSchematic" )
2871 .Scope( AS_GLOBAL )
2872 .FriendlyName( _( "Select on Schematic" ) )
2873 .Tooltip( _( "Selects corresponding items in Schematic editor" ) )
2874 .Icon( BITMAPS::select_same_sheet ) );
2875
2877 .Name( "pcbnew.InteractiveSelection.FilterSelection" )
2878 .Scope( AS_GLOBAL )
2879 .FriendlyName( _( "Filter Selected Items..." ) )
2880 .Tooltip( _( "Remove items from the selection by type" ) )
2881 .Icon( BITMAPS::filter ) );
2882
2883
2884// ZONE_FILLER_TOOL
2885//
2887 .Name( "pcbnew.ZoneFiller.zoneFill" )
2888 .Scope( AS_GLOBAL )
2889 .FriendlyName( _( "Draft Fill Selected Zone(s)" ) )
2890 .Tooltip( _( "Update copper fill of selected zone(s) without regard to other interacting zones" ) )
2891 .Icon( BITMAPS::fill_zone )
2892 .Parameter<ZONE*>( nullptr ) );
2893
2895 .Name( "pcbnew.ZoneFiller.zoneFillAll" )
2896 .Scope( AS_GLOBAL )
2897 .DefaultHotkey( 'B' )
2898 .LegacyHotkeyName( "Fill or Refill All Zones" )
2899 .FriendlyName( _( "Fill All Zones" ) )
2900 .Tooltip( _( "Update copper fill of all zones" ) )
2901 .Icon( BITMAPS::fill_zone ) );
2902
2904 .Name( "pcbnew.ZoneFiller.zoneFillDirty" )
2905 .Scope( AS_CONTEXT ) );
2906
2908 .Name( "pcbnew.ZoneFiller.zoneUnfill" )
2909 .Scope( AS_GLOBAL )
2910 .FriendlyName( _( "Unfill Selected Zone(s)" ) )
2911 .Tooltip( _( "Remove copper fill from selected zone(s)" ) )
2912 .Icon( BITMAPS::zone_unfill ) );
2913
2915 .Name( "pcbnew.ZoneFiller.zoneUnfillAll" )
2916 .Scope( AS_GLOBAL )
2917 .DefaultHotkey( MD_CTRL + 'B' )
2918 .LegacyHotkeyName( "Remove Filled Areas in All Zones" )
2919 .FriendlyName( _( "Unfill All Zones" ) )
2920 .Tooltip( _( "Remove copper fill from all zones" ) )
2921 .Icon( BITMAPS::zone_unfill ) );
2922
2923
2924// AUTOPLACER_TOOL
2925//
2927 .Name( "pcbnew.Autoplacer.autoplaceSelected" )
2928 .Scope( AS_GLOBAL )
2929 .FriendlyName( _( "Place Selected Footprints" ) )
2930 .Tooltip( _( "Performs automatic placement of selected components" ) ) );
2931
2933 .Name( "pcbnew.Autoplacer.autoplaceOffboard" )
2934 .Scope( AS_GLOBAL )
2935 .FriendlyName( _( "Place Off-Board Footprints" ) )
2936 .Tooltip( _( "Performs automatic placement of components outside board area" ) ) );
2937
2939 .Name( "pcbnew.Multichannel.generatePlacementRuleAreas" )
2940 .Scope( AS_GLOBAL )
2941 .FriendlyName( _( "Generate Placement Rule Areas..." ) )
2942 .Tooltip( _( "Creates best-fit placement rule areas" ) )
2944 .Flags( AF_ACTIVATE ) );
2945
2947 .Name( "pcbnew.Multichannel.repeatLayout" )
2948 .Scope( AS_GLOBAL )
2949 .FriendlyName( _( "Repeat Layout..." ) )
2950 .Tooltip( _( "Clones placement & routing across multiple identical channels" ) )
2951 .Icon( BITMAPS::copy )
2952 );
2953
2954// ROUTER_TOOL
2955//
2957 .Name( "pcbnew.InteractiveRouter.SingleTrack" )
2958 .Scope( AS_GLOBAL )
2959 .DefaultHotkey( 'X' )
2960 .LegacyHotkeyName( "Add New Track" )
2961 .FriendlyName( _( "Route Single Track" ) )
2962 .Tooltip( _( "Route tracks" ) )
2963 .Icon( BITMAPS::add_tracks )
2964 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2965 .Flags( AF_ACTIVATE )
2966 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2967
2969 .Name( "pcbnew.InteractiveRouter.DiffPair" )
2970 .Scope( AS_GLOBAL )
2971 .DefaultHotkey( '6' )
2972 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2973 .LegacyHotkeyName( "Route Differential Pair (Modern Toolset only)" )
2974 .FriendlyName( _( "Route Differential Pair" ) )
2975 .Tooltip( _( "Route differential pairs" ) )
2976 .Icon( BITMAPS::ps_diff_pair )
2977 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2978 .Flags( AF_ACTIVATE )
2979 .Parameter( PNS::PNS_MODE_ROUTE_DIFF_PAIR ) );
2980
2982 .Name( "pcbnew.InteractiveRouter.SettingsDialog" )
2983 .Scope( AS_GLOBAL )
2984 .DefaultHotkey( MD_CTRL + '<' )
2985 .LegacyHotkeyName( "Routing Options" )
2986 .FriendlyName( _( "Interactive Router Settings..." ) )
2987 .Tooltip( _( "Open Interactive Router settings" ) )
2988 .Icon( BITMAPS::tools ) );
2989
2991 .Name( "pcbnew.InteractiveRouter.DiffPairDialog" )
2992 .Scope( AS_GLOBAL )
2993 .FriendlyName( _( "Differential Pair Dimensions..." ) )
2994 .Tooltip( _( "Open Differential Pair Dimension settings" ) )
2995 .Icon( BITMAPS::ps_diff_pair_gap ) );
2996
2998 .Name( "pcbnew.InteractiveRouter.HighlightMode" )
2999 .Scope( AS_GLOBAL )
3000 .FriendlyName( _( "Router Highlight Mode" ) )
3001 .Tooltip( _( "Switch router to highlight mode" ) )
3002 .Flags( AF_NONE )
3003 .Parameter( PNS::RM_MarkObstacles ) );
3004
3006 .Name( "pcbnew.InteractiveRouter.ShoveMode" )
3007 .Scope( AS_GLOBAL )
3008 .FriendlyName( _( "Router Shove Mode" ) )
3009 .Tooltip( _( "Switch router to shove mode" ) )
3010 .Flags( AF_NONE )
3011 .Parameter( PNS::RM_Shove ) );
3012
3014 .Name( "pcbnew.InteractiveRouter.WalkaroundMode" )
3015 .Scope( AS_GLOBAL )
3016 .FriendlyName( _( "Router Walkaround Mode" ) )
3017 .Tooltip( _( "Switch router to walkaround mode" ) )
3018 .Flags( AF_NONE )
3019 .Parameter( PNS::RM_Walkaround ) );
3020
3022 .Name( "pcbnew.InteractiveRouter.CycleRouterMode" )
3023 .Scope( AS_GLOBAL )
3024 .FriendlyName( _( "Cycle Router Mode" ) )
3025 .Tooltip( _( "Cycle router to the next mode" ) ) );
3026
3028 .Name( "pcbnew.InteractiveRouter.SelectLayerPair" )
3029 .Scope( AS_GLOBAL )
3030 .FriendlyName( _( "Set Layer Pair..." ) )
3031 .Tooltip( _( "Change active layer pair for routing" ) )
3033 .Flags( AF_ACTIVATE ) );
3034
3036 .Name( "pcbnew.LengthTuner.TuneSingleTrack" )
3037 .Scope( AS_GLOBAL )
3038 .DefaultHotkey( '7' )
3039 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
3040 .LegacyHotkeyName( "Tune Single Track (Modern Toolset only)" )
3041 .FriendlyName( _( "Tune Length of a Single Track" ) )
3043 .ToolbarState( TOOLBAR_STATE::TOGGLE )
3044 .Flags( AF_ACTIVATE )
3045 .Parameter( PNS::PNS_MODE_TUNE_SINGLE ) );
3046
3048 .Name( "pcbnew.LengthTuner.TuneDiffPair" )
3049 .Scope( AS_GLOBAL )
3050 .DefaultHotkey( '8' )
3051 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
3052 .LegacyHotkeyName( "Tune Differential Pair Length (Modern Toolset only)" )
3053 .FriendlyName( _( "Tune Length of a Differential Pair" ) )
3055 .ToolbarState( TOOLBAR_STATE::TOGGLE )
3056 .Flags( AF_ACTIVATE )
3057 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR ) );
3058
3060 .Name( "pcbnew.LengthTuner.TuneDiffPairSkew" )
3061 .Scope( AS_GLOBAL )
3062 .DefaultHotkey( '9' )
3063 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
3064 .LegacyHotkeyName( "Tune Differential Pair Skew (Modern Toolset only)" )
3065 .FriendlyName( _( "Tune Skew of a Differential Pair" ) )
3067 .ToolbarState( TOOLBAR_STATE::TOGGLE )
3068 .Flags( AF_ACTIVATE )
3069 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW ) );
3070
3072 .Name( "pcbnew.InteractiveRouter.InlineDrag" )
3073 .Scope( AS_CONTEXT )
3074 .Parameter<int>( PNS::DM_ANY ) );
3075
3077 .Name( "pcbnew.InteractiveRouter.UndoLastSegment" )
3078 .Scope( AS_CONTEXT )
3079 .DefaultHotkey( WXK_BACK )
3080 .FriendlyName( _( "Undo Last Segment" ) )
3081 .Tooltip( _( "Walks the current track back one segment." ) ) );
3082
3084 .Name( "pcbnew.InteractiveRouter.ContinueFromEnd" )
3085 .Scope( AS_CONTEXT )
3086 .DefaultHotkey( MD_CTRL + 'E' )
3087 .FriendlyName( _( "Route From Other End" ) )
3088 .Tooltip( _( "Commits current segments and starts next segment from nearest ratsnest end." ) ) );
3089
3091 .Name( "pcbnew.InteractiveRouter.AttemptFinish" )
3092 .Scope( AS_CONTEXT )
3093 .DefaultHotkey( 'F' )
3094 .FriendlyName( _( "Attempt Finish" ) )
3095 .Tooltip( _( "Attempts to complete current route to nearest ratsnest end." ) )
3096 .Parameter<bool*>( nullptr ) );
3097
3099 .Name( "pcbnew.InteractiveRouter.RouteSelected" )
3100 .Scope( AS_GLOBAL )
3101 .DefaultHotkey( MD_SHIFT + 'X' )
3102 .FriendlyName( _( "Route Selected" ) )
3103 .Tooltip( _( "Sequentially route selected items from ratsnest anchor." ) )
3104 .Flags( AF_ACTIVATE )
3105 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
3106
3108 .Name( "pcbnew.InteractiveRouter.RouteSelectedFromEnd" )
3109 .Scope( AS_GLOBAL )
3110 .DefaultHotkey( MD_SHIFT + 'E' )
3111 .FriendlyName( _( "Route Selected From Other End" ) )
3112 .Tooltip( _( "Sequentially route selected items from other end of ratsnest anchor." ) )
3113 .Flags( AF_ACTIVATE )
3114 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
3115
3117 .Name( "pcbnew.InteractiveRouter.Autoroute" )
3118 .Scope( AS_GLOBAL )
3119 .DefaultHotkey( MD_SHIFT + 'F' )
3120 .FriendlyName( _( "Attempt Finish Selected (Autoroute)" ) )
3121 .Tooltip( _( "Sequentially attempt to automatically route all selected pads." ) )
3122 .Flags( AF_ACTIVATE )
3123 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
3124
3126 .Name( "pcbnew.InteractiveRouter.OptimizeSelected" )
3127 .Scope( AS_GLOBAL )
3128 .DefaultHotkey( MD_SHIFT + 'T' )
3129 .FriendlyName( _( "Optimize Selected Track(s)" ) )
3130 .Tooltip( _( "Simplify selected routed track(s)." ) )
3131 .Flags( AF_ACTIVATE )
3132 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
3133
3135 .Name( "pcbnew.InteractiveRouter.CancelCurrentItem" )
3136 .Scope( AS_GLOBAL )
3137 .FriendlyName( _( "Cancel Current Item" ) )
3138 .Tooltip( _( "Skip current item and route next selected item." ) ) );
3139
3141 .Name( "pcbnew.InteractiveRouter.BreakTrack" )
3142 .Scope( AS_GLOBAL )
3143 .FriendlyName( _( "Break Track" ) )
3144 .Tooltip( _( "Splits the track segment into two segments connected at the cursor position." ) )
3145 .Icon( BITMAPS::break_line ) );
3146
3148 .Name( "pcbnew.InteractiveRouter.Drag45Degree" )
3149 .Scope( AS_GLOBAL )
3150 .DefaultHotkey( 'D' )
3151 .LegacyHotkeyName( "Drag Track Keep Slope" )
3152 .FriendlyName( _( "Drag 45 Degree Mode" ) )
3153 .Tooltip( _( "Drags the track segment while keeping connected tracks at 45 degrees." ) )
3155
3157 .Name( "pcbnew.InteractiveRouter.DragFreeAngle" )
3158 .Scope( AS_GLOBAL )
3159 .DefaultHotkey( 'G' )
3160 .LegacyHotkeyName( "Drag Item" )
3161 .FriendlyName( _( "Drag Free Angle" ) )
3162 .Tooltip( _( "Drags the nearest joint in the track without restricting the track angle." ) )
3163 .Icon( BITMAPS::drag_segment ) );
3164
3165
3166// GENERATOR_TOOL
3167//
3168
3170 .Name( "pcbnew.Generator.regenerateAllTuning" )
3171 .Scope( AS_GLOBAL )
3172 .FriendlyName( _( "Update All Tuning Patterns" ) )
3173 .Tooltip( _( "Attempt to re-tune existing tuning patterns within their bounds" ) )
3175 .Parameter( wxString( wxS( "tuning_pattern" ) ) ) );
3176
3178 .Name( "pcbnew.Generator.regenerateAll" )
3179 .Scope( AS_GLOBAL )
3180 .FriendlyName( _( "Rebuild All Generators" ) )
3181 .Tooltip( _( "Rebuilds geometry of all generators" ) )
3182 .Icon( BITMAPS::refresh )
3183 .Parameter( wxString( wxS( "*" ) ) ) );
3184
3186 .Name( "pcbnew.Generator.regenerateSelected" )
3187 .Scope( AS_GLOBAL )
3188 .FriendlyName( _( "Rebuild Selected Generators" ) )
3189 .Tooltip( _( "Rebuilds geometry of selected generator(s)" ) )
3190 .Icon( BITMAPS::refresh ) );
3191
3192
3194 .Name( "pcbnew.Generator.genStartEdit" )
3195 .Scope( AS_CONTEXT ) );
3196
3198 .Name( "pcbnew.Generator.genUpdateEdit" )
3199 .Scope( AS_CONTEXT ) );
3200
3202 .Name( "pcbnew.Generator.genFinishEdit" )
3203 .Scope( AS_CONTEXT ) );
3204
3206 .Name( "pcbnew.Generator.genCacnelEdit" )
3207 .Scope( AS_CONTEXT ) );
3208
3210 .Name( "pcbnew.Generator.genRemove" )
3211 .Scope( AS_CONTEXT ) );
3212
3213
3215 .Name( "pcbnew.Generator.showManager" )
3216 .Scope( AS_GLOBAL )
3217 .FriendlyName( _( "Generators Manager" ) )
3218 .Tooltip( _( "Show a manager dialog for Generator objects" ) )
3219 .Icon( BITMAPS::pin_table ) );
3220
3222 .Name( "pcbnew.Generator.excludeStitchVia" )
3223 .Scope( AS_GLOBAL )
3224 .FriendlyName( _( "Exclude From Stitching" ) )
3225 .Tooltip( _( "Remove the selected via from its via-stitch generator and prevent "
3226 "it from being regenerated" ) ) );
3227
3229 .Name( "pcbnew.Generator.clearStitchViaExclusions" )
3230 .Scope( AS_GLOBAL )
3231 .FriendlyName( _( "Clear Via Stitching Exclusions" ) )
3232 .Tooltip( _( "Restore all vias previously excluded from the selected via-stitch "
3233 "generators" ) ) );
3234
3235
3236// LENGTH_TUNER_TOOL
3237//
3239 .Name( "pcbnew.LengthTuner.Settings" )
3240 .ToolbarState( TOOLBAR_STATE::HIDDEN )
3241 .Scope( AS_GLOBAL )
3242 .DefaultHotkey( MD_CTRL + 'L' )
3243 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
3244 .LegacyHotkeyName( "Length Tuning Settings (Modern Toolset only)" )
3245 .FriendlyName( _( "Length Tuning Settings" ) )
3246 .MenuText( _( "Length Tuning Settings..." ) )
3247 .Tooltip( _( "Displays tuning pattern properties dialog" ) )
3249
3250// Drag and drop
3252 .Name( "pcbnew.Control.DdAppendBoard" )
3253 .Scope( AS_GLOBAL ) );
3254
3256 .Name( "pcbnew.Control.ddImportFootprint" )
3257 .Scope( AS_GLOBAL ) );
3258
3260 .Name( "pcbnew.InteractiveDrawing.ddImportGraphics" )
3261 .Scope( AS_GLOBAL ) );
3262
3263// actions for footprint wizard frame
3265 .Name( "pcbnew.FpWizard.showWizards" )
3266 .Scope( AS_GLOBAL )
3267 .FriendlyName( _( "Show wizards selector" ) )
3268 .Tooltip( _( "Select wizard script to run" ) )
3269 .Icon( BITMAPS::module_wizard ) );
3270
3272 .Name( "pcbnew.FpWizard.resetWizardPrms" )
3273 .Scope( AS_GLOBAL )
3274 .FriendlyName( _( "Reset wizard parameters" ) )
3275 .Tooltip( _( "Reset wizard parameters to default" ) )
3276 .Icon( BITMAPS::reload ) );
3277
3279 .Name( "pcbnew.FpWizard.exportFpToEditor" )
3280 .Scope( AS_GLOBAL )
3281 .FriendlyName( _( "Export footprint to editor" ) )
3282 .Tooltip( _( "Export footprint to editor" ) )
3284
3286 .Name( "pcbnew.InteractiveDiffPhaseSkew" )
3287 .Scope( AS_GLOBAL )
3288 .Flags( AF_ACTIVATE )
3289 .ToolbarState( TOOLBAR_STATE::TOGGLE )
3290 .FriendlyName( _( "Show relative skew of diff pair tracks" ) )
3291 .Tooltip( _( "Show relative skew of diff pair tracks" ) )
3293
3294
3297 .Name( "pcbnew.GridItem.place" )
3298 .Scope( AS_GLOBAL )
3299 .FriendlyName( _( "Place Grid Item" ) )
3300 .Tooltip( _( "Adds a grid item to the board" ) )
3301 .Icon( BITMAPS::add_grid_item ) );
3302
3303
3305{
3306 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
3307 "common.Interactive.snappingModeChangedByKey" );
3308
3309 return event;
3310}
3311
3312
3314{
3315 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
3316 "pcbnew.Control.layerPairPresetChangedByKey" );
3317
3318 return event;
3319}
3320
3321
@ 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_via_stack
@ 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
@ add_grid_item
@ load_module_board
@ import_brd_file
@ show_zone_triangulation
@ router_len_tuner
@ select_layer_pair
@ router_len_tuner_amplitude_incr
@ select_same_sheet
@ add_via_stitch
@ 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:87
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:75
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:93
static TOOL_ACTION filterSelection
Filter the items in the current selection (invokes dialog)
static TOOL_ACTION placeDrillMap
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 toggleExcludeFromSim
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 drawViaStitchArea
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 routerOptimizeSelected
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 generateBOMLegacy
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:96
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:72
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 extendGraphic
Extend one graphical line or arc to the nearest boundary.
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:90
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 matchPropertiesSettings
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:78
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:62
static TOOL_ACTION boardSetup
static TOOL_ACTION showEeschema
static TOOL_ACTION excludeStitchVia
Exclude selected stitching vias from their parent via-stitch generator.
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 makeViaStack
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:99
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:81
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 editFootprintFields
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 matchProperties
static TOOL_ACTION footprintProperties
static TOOL_ACTION layerInner17
static TOOL_ACTION flipBoard
static TOOL_ACTION layerBottom
static TOOL_ACTION placeGridItem
Grid Item.
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 showDrillGroups
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 showLibFootprintFieldsTable
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 placeDrillChart
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:65
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 exportFootprintAsSVG
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:84
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 placeViaStack
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 clearStitchViaExclusions
Restore every manually-excluded via in the selected via-stitch generators.
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 trimGraphic
Trim a section from one graphical line or arc.
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