KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_actions.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2013-2023 CERN
5 * Copyright (C) 2016-2023 KiCad Developers, see AUTHORS.txt for contributors.
6 * @author Maciej Suminski <[email protected]>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, you may find one here:
20 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21 * or you may search the http://www.gnu.org website for the version 2 license,
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
26#include "pcb_actions.h"
27#include "tool/tool_action.h"
28#include "tool/tool_event.h"
29#include <pcbnew_id.h>
30#include <bitmaps.h>
31#include <layer_ids.h>
33#include <pcb_reference_image.h>
34#include <tool/tool_manager.h>
36#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.Convert.convertToKeepout" )
66 .Scope( AS_GLOBAL )
67 .FriendlyName( _( "Create Rule Area from Selection..." ) )
68 .Tooltip( _( "Creates a rule area from the selection" ) )
70
72 .Name( "pcbnew.Convert.convertToLines" )
73 .Scope( AS_GLOBAL )
74 .FriendlyName( _( "Create Lines from Selection..." ) )
75 .Tooltip( _( "Creates graphic lines from the selection" ) )
76 .Icon( BITMAPS::add_line ) );
77
79 .Name( "pcbnew.Convert.convertToArc" )
80 .Scope( AS_GLOBAL )
81 .FriendlyName( _( "Create Arc from Selection" ) )
82 .Tooltip( _( "Creates an arc from the selected line segment" ) )
83 .Icon( BITMAPS::add_arc ) );
84
86 .Name( "pcbnew.Convert.convertToTracks" )
87 .Scope( AS_GLOBAL )
88 .FriendlyName( _( "Create Tracks from Selection" ) )
89 .Tooltip( _( "Creates tracks from the selected graphic lines" ) )
90 .Icon( BITMAPS::add_tracks ) );
91
92
93// DRAWING_TOOL
94//
96 .Name( "pcbnew.InteractiveDrawing.line" )
97 .Scope( AS_GLOBAL )
98 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'L' )
99 .LegacyHotkeyName( "Draw Line" )
100 .FriendlyName( _( "Draw Line" ) )
101 .Tooltip( _( "Draw a line" ) )
103 .Flags( AF_ACTIVATE ) );
104
106 .Name( "pcbnew.InteractiveDrawing.graphicPolygon" )
107 .Scope( AS_GLOBAL )
108 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'P' )
109 .LegacyHotkeyName( "Draw Graphic Polygon" )
110 .FriendlyName( _( "Draw Graphic Polygon" ) )
111 .Tooltip( _( "Draw a graphic polygon" ) )
113 .Flags( AF_ACTIVATE )
114 .Parameter( ZONE_MODE::GRAPHIC_POLYGON ) );
115
117 .Name( "pcbnew.InteractiveDrawing.rectangle" )
118 .Scope( AS_GLOBAL )
119 .FriendlyName( _( "Draw Rectangle" ) )
120 .Tooltip( _( "Draw a rectangle" ) )
122 .Flags( AF_ACTIVATE ) );
123
125 .Name( "pcbnew.InteractiveDrawing.circle" )
126 .Scope( AS_GLOBAL )
127 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'C' )
128 .LegacyHotkeyName( "Draw Circle" )
129 .FriendlyName( _( "Draw Circle" ) )
130 .Tooltip( _( "Draw a circle" ) )
131 .Icon( BITMAPS::add_circle )
132 .Flags( AF_ACTIVATE ) );
133
135 .Name( "pcbnew.InteractiveDrawing.arc" )
136 .Scope( AS_GLOBAL )
137 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'A' )
138 .LegacyHotkeyName( "Draw Arc" )
139 .FriendlyName( _( "Draw Arc" ) )
140 .Tooltip( _( "Draw an arc" ) )
141 .Icon( BITMAPS::add_arc )
142 .Flags( AF_ACTIVATE ) );
143
145 .Name( "pcbnew.InteractiveDrawing.placeCharacteristics" )
146 .Scope( AS_GLOBAL )
147 .LegacyHotkeyName( "Add Board Characteristics" )
148 .FriendlyName( _( "Add Board Characteristics" ) )
149 .Tooltip( _( "Add a board characteristics table on a graphic layer" ) )
150 .Flags( AF_ACTIVATE ) );
151
153 .Name( "pcbnew.InteractiveDrawing.placeStackup" )
154 .Scope( AS_GLOBAL )
155 .LegacyHotkeyName( "Add Stackup Table" )
156 .FriendlyName( _( "Add Stackup Table" ) )
157 .Tooltip( _( "Add a board stackup table on a graphic layer" ) )
158 .Flags( AF_ACTIVATE ) );
159
161 .Name( "pcbnew.InteractiveDrawing.placeReferenceImage" )
162 .Scope( AS_GLOBAL )
163 .FriendlyName( _( "Add Reference Image" ) )
164 .Tooltip( _( "Add a bitmap image to be used as a reference (image will not be included in any output)" ) )
165 .Icon( BITMAPS::image )
166 .Flags( AF_ACTIVATE )
167 .Parameter<PCB_REFERENCE_IMAGE*>( nullptr ) );
168
170 .Name( "pcbnew.InteractiveDrawing.text" )
171 .Scope( AS_GLOBAL )
172 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'T' )
173 .LegacyHotkeyName( "Add Text" )
174 .FriendlyName( _( "Add Text" ) )
175 .Tooltip( _( "Add a text item" ) )
176 .Icon( BITMAPS::text )
177 .Flags( AF_ACTIVATE ) );
178
180 .Name( "pcbnew.InteractiveDrawing.textbox" )
181 .Scope( AS_GLOBAL )
182 .FriendlyName( _( "Add Text Box" ) )
183 .Tooltip( _( "Add a line-wrapped text item" ) )
184 .Icon( BITMAPS::add_textbox )
185 .Flags( AF_ACTIVATE ) );
186
188 .Name( "pcbnew.InteractiveDrawing.drawTable" )
189 .Scope( AS_GLOBAL )
190 .FriendlyName( _( "Add Table" ) )
191 .Tooltip( _( "Draw table" ) )
192 .Icon( BITMAPS::spreadsheet ) // JEY TODO
193 .Flags( AF_ACTIVATE ) );
194
196 .Name( "pcbnew.lengthTuner.SpacingIncrease" )
197 .Scope( AS_GLOBAL )
198 .DefaultHotkey( '1' )
199 .LegacyHotkeyName( "Increase meander spacing by one step." )
200 .FriendlyName( _( "Increase Spacing" ) )
201 .Tooltip( _( "Increase tuning pattern spacing by one step." ) )
203
205 .Name( "pcbnew.lengthTuner.SpacingDecrease" )
206 .Scope( AS_GLOBAL )
207 .DefaultHotkey( '2' )
208 .LegacyHotkeyName( "Decrease meander spacing by one step." )
209 .FriendlyName( _( "Decrease Spacing" ) )
210 .Tooltip( _( "Decrease tuning pattern spacing by one step." ) )
212
214 .Name( "pcbnew.lengthTuner.AmplIncrease" )
215 .Scope( AS_GLOBAL )
216 .DefaultHotkey( '3' )
217 .LegacyHotkeyName( "Increase meander amplitude by one step." )
218 .FriendlyName( _( "Increase Amplitude" ) )
219 .Tooltip( _( "Increase tuning pattern amplitude by one step." ) )
221
223 .Name( "pcbnew.lengthTuner.AmplDecrease" )
224 .Scope( AS_GLOBAL )
225 .DefaultHotkey( '4' )
226 .LegacyHotkeyName( "Decrease meander amplitude by one step." )
227 .FriendlyName( _( "Decrease Amplitude" ) )
228 .Tooltip( _( "Decrease tuning pattern amplitude by one step." ) )
230
231
233 .Name( "pcbnew.InteractiveDrawing.alignedDimension" )
234 .Scope( AS_GLOBAL )
235 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'H' )
236 .LegacyHotkeyName( "Add Dimension" )
237 .FriendlyName( _( "Add Aligned Dimension" ) )
238 .Tooltip( _( "Add an aligned linear dimension" ) )
240 .Flags( AF_ACTIVATE ) );
241
243 .Name( "pcbnew.InteractiveDrawing.centerDimension" )
244 .Scope( AS_GLOBAL )
245 .FriendlyName( _( "Add Center Dimension" ) )
246 .Tooltip( _( "Add a center dimension" ) )
248 .Flags( AF_ACTIVATE ) );
249
251 .Name( "pcbnew.InteractiveDrawing.radialDimension" )
252 .Scope( AS_GLOBAL )
253 .FriendlyName( _( "Add Radial Dimension" ) )
254 .Tooltip( _( "Add a radial dimension" ) )
256 .Flags( AF_ACTIVATE ) );
257
259 .Name( "pcbnew.InteractiveDrawing.orthogonalDimension" )
260 .Scope( AS_GLOBAL )
261 .FriendlyName( _( "Add Orthogonal Dimension" ) )
262 .Tooltip( _( "Add an orthogonal dimension" ) )
264 .Flags( AF_ACTIVATE ) );
265
267 .Name( "pcbnew.InteractiveDrawing.leader" )
268 .Scope( AS_GLOBAL )
269 .FriendlyName( _( "Add Leader" ) )
270 .Tooltip( _( "Add a leader dimension" ) )
271 .Icon( BITMAPS::add_leader )
272 .Flags( AF_ACTIVATE ) );
273
275 .Name( "pcbnew.InteractiveDrawing.zone" )
276 .Scope( AS_GLOBAL )
277#ifdef __WXOSX_MAC__
278 .DefaultHotkey( MD_ALT + 'Z' )
279#else
280 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'Z' )
281#endif
282 .LegacyHotkeyName( "Add Filled Zone" )
283 .FriendlyName( _( "Add Filled Zone" ) )
284 .Tooltip( _( "Add a filled zone" ) )
285 .Icon( BITMAPS::add_zone )
286 .Flags( AF_ACTIVATE )
287 .Parameter( ZONE_MODE::ADD ) );
288
290 .Name( "pcbnew.InteractiveDrawing.via" )
291 .Scope( AS_GLOBAL )
292 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'V' )
293 .LegacyHotkeyName( "Add Vias" )
294 .FriendlyName( _( "Add Vias" ) )
295 .Tooltip( _( "Add free-standing vias" ) )
296 .Icon( BITMAPS::add_via )
297 .Flags( AF_ACTIVATE ) );
298
300 .Name( "pcbnew.InteractiveDrawing.ruleArea" )
301 .Scope( AS_GLOBAL )
302 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'K' )
303 .LegacyHotkeyName( "Add Keepout Area" )
304 .FriendlyName( _( "Add Rule Area" ) )
305 .Tooltip( _( "Add a rule area (keepout)" ) )
307 .Flags( AF_ACTIVATE )
308 .Parameter( ZONE_MODE::ADD ) );
309
311 .Name( "pcbnew.InteractiveDrawing.zoneCutout" )
312 .Scope( AS_GLOBAL )
313 .DefaultHotkey( MD_SHIFT + 'C' )
314 .LegacyHotkeyName( "Add a Zone Cutout" )
315 .FriendlyName( _( "Add a Zone Cutout" ) )
316 .Tooltip( _( "Add a cutout area of an existing zone" ) )
318 .Flags( AF_ACTIVATE )
319 .Parameter( ZONE_MODE::CUTOUT ) );
320
322 .Name( "pcbnew.InteractiveDrawing.similarZone" )
323 .Scope( AS_GLOBAL )
324 .DefaultHotkey( MD_SHIFT + MD_CTRL + '.' )
325 .LegacyHotkeyName( "Add a Similar Zone" )
326 .FriendlyName( _( "Add a Similar Zone" ) )
327 .Tooltip( _( "Add a zone with the same settings as an existing zone" ) )
328 .Icon( BITMAPS::add_zone )
329 .Flags( AF_ACTIVATE )
330 .Parameter( ZONE_MODE::SIMILAR ) );
331
333 .Name( "pcbnew.InteractiveDrawing.placeImportedGraphics" )
334 .Scope( AS_GLOBAL )
335 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'F' )
336 .LegacyHotkeyName( "Place DXF" )
337 .FriendlyName( _( "Import Graphics..." ) )
338 .Tooltip( _( "Import 2D drawing file" ) )
340 .Flags( AF_ACTIVATE ) );
341
343 .Name( "pcbnew.InteractiveDrawing.setAnchor" )
344 .Scope( AS_GLOBAL )
345 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'N' )
346 .LegacyHotkeyName( "Place the Footprint Anchor" )
347 .FriendlyName( _( "Place the Footprint Anchor" ) )
348 .Tooltip( _( "Set the coordinate origin point (anchor) of the footprint" ) )
349 .Icon( BITMAPS::anchor )
350 .Flags( AF_ACTIVATE ) );
351
353 .Name( "pcbnew.InteractiveDrawing.incWidth" )
354 .Scope( AS_CONTEXT )
355 .DefaultHotkey( MD_CTRL + '+' )
356 .LegacyHotkeyName( "Increase Line Width" )
357 .FriendlyName( _( "Increase Line Width" ) )
358 .Tooltip( _( "Increase the line width" ) ) );
359
361 .Name( "pcbnew.InteractiveDrawing.decWidth" )
362 .Scope( AS_CONTEXT )
363 .DefaultHotkey( MD_CTRL + '-' )
364 .LegacyHotkeyName( "Decrease Line Width" )
365 .FriendlyName( _( "Decrease Line Width" ) )
366 .Tooltip( _( "Decrease the line width" ) ) );
367
369 .Name( "pcbnew.InteractiveDrawing.arcPosture" )
370 .Scope( AS_CONTEXT )
371 .DefaultHotkey( '/' )
372 .LegacyHotkeyName( "Switch Track Posture" )
373 .FriendlyName( _( "Switch Arc Posture" ) )
374 .Tooltip( _( "Switch the arc posture" ) ) );
375
376
378 .Name( "common.Control.magneticSnapActiveLayer" )
379 .Scope( AS_GLOBAL )
380 .FriendlyName( _( "Snap to Objects on the Active Layer Only" ) )
381 .Tooltip( _( "Enables snapping to objects on the active layer only" ) ) );
382
384 .Name( "common.Control.magneticSnapAllLayers" )
385 .Scope( AS_GLOBAL )
386 .FriendlyName( _( "Snap to Objects on All Layers" ) )
387 .Tooltip( _( "Enables snapping to objects on all visible layers" ) ) );
388
390 .Name( "common.Control.magneticSnapToggle" )
391 .Scope( AS_GLOBAL )
392 .DefaultHotkey( MD_SHIFT + 'S' )
393 .FriendlyName( _( "Toggle Snapping Between Active and All Layers" ) )
394 .Tooltip( _( "Toggles between snapping on all visible layers and only the active area" ) ) );
395
397 .Name( "pcbnew.InteractiveDrawing.deleteLastPoint" )
398 .Scope( AS_CONTEXT )
399 .DefaultHotkey( WXK_BACK )
400 .FriendlyName( _( "Delete Last Point" ) )
401 .Tooltip( _( "Delete the last point added to the current item" ) )
402 .Icon( BITMAPS::undo ) );
403
405 .Name( "pcbnew.InteractiveDrawing.closeOutline" )
406 .Scope( AS_CONTEXT )
407 .FriendlyName( _( "Close Outline" ) )
408 .Tooltip( _( "Close the in progress outline" ) )
409 .Icon( BITMAPS::checked_ok ) );
410
411// DRC
412//
414 .Name( "pcbnew.DRCTool.runDRC" )
415 .Scope( AS_GLOBAL )
416 .FriendlyName( _( "Design Rules Checker" ) )
417 .Tooltip( _( "Show the design rules checker window" ) )
418 .Icon( BITMAPS::erc ) );
419
420
421// EDIT_TOOL
422//
424 .Name( "pcbnew.EditorControl.EditFpInFpEditor" )
425 .Scope( AS_GLOBAL )
426 .DefaultHotkey( MD_CTRL + 'E' )
427 .LegacyHotkeyName( "Edit with Footprint Editor" )
428 .FriendlyName( _( "Open in Footprint Editor" ) )
429 .Tooltip( _( "Opens the selected footprint in the Footprint Editor" ) )
430 .Icon( BITMAPS::module_editor ) );
431
433 .Name( "pcbnew.EditorControl.EditLibFpInFpEditor" )
434 .Scope( AS_GLOBAL )
435 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
436 .FriendlyName( _( "Edit Library Footprint..." ) )
437 .Tooltip( _( "Opens the selected footprint in the Footprint Editor" ) )
438 .Icon( BITMAPS::module_editor ) );
439
441 .Name( "pcbnew.InteractiveEdit.FindMove" )
442 .Scope( AS_GLOBAL )
443 .DefaultHotkey( 'T' )
444 .LegacyHotkeyName( "Get and Move Footprint" )
445 .FriendlyName( _( "Get and Move Footprint" ) )
446 .Tooltip( _( "Selects a footprint by reference designator and places it under the cursor for moving" ) )
447 .Icon( BITMAPS::move )
448 .Flags( AF_ACTIVATE ) );
449
451 .Name( "pcbnew.InteractiveMove.move" )
452 .Scope( AS_GLOBAL )
453 .DefaultHotkey( 'M' )
454 .LegacyHotkeyName( "Move Item" )
455 .FriendlyName( _( "Move" ) )
456 .Tooltip( _( "Moves the selected item(s)" ) )
457 .Icon( BITMAPS::move )
458 .Flags( AF_ACTIVATE )
460
462 .Name( "pcbnew.InteractiveMove.moveIndividually" )
463 .Scope( AS_GLOBAL )
464 .DefaultHotkey( MD_CTRL + 'M' )
465 .FriendlyName( _( "Move Individually" ) )
466 .Tooltip( _( "Moves the selected items one-by-one" ) )
467 .Icon( BITMAPS::move )
468 .Flags( AF_ACTIVATE )
470
472 .Name( "pcbnew.InteractiveMove.moveWithReference" )
473 .Scope( AS_GLOBAL )
474 .FriendlyName( _( "Move with Reference" ) )
475 .Tooltip( _( "Moves the selected item(s) with a specified starting point" ) )
476 .Icon( BITMAPS::move )
477 .Flags( AF_ACTIVATE )
479
481 .Name( "pcbnew.InteractiveMove.copyWithReference" )
482 .Scope( AS_GLOBAL )
483 .FriendlyName( _( "Copy with Reference" ) )
484 .Tooltip( _( "Copy selected item(s) to clipboard with a specified starting point" ) )
485 .Icon( BITMAPS::copy )
486 .Flags( AF_ACTIVATE ) );
487
489 .Name( "pcbnew.InteractiveEdit.duplicateIncrementPads" )
490 .Scope( AS_GLOBAL )
491 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'D' )
492 .LegacyHotkeyName( "Duplicate Item and Increment" )
493 .FriendlyName( _( "Duplicate and Increment" ) )
494 .Tooltip( _( "Duplicates the selected item(s), incrementing pad numbers" ) )
495 .Icon( BITMAPS::duplicate ) );
496
498 .Name( "pcbnew.InteractiveEdit.moveExact" )
499 .Scope( AS_GLOBAL )
500 .DefaultHotkey( MD_SHIFT + 'M' )
501 .LegacyHotkeyName( "Move Item Exactly" )
502 .FriendlyName( _( "Move Exactly..." ) )
503 .Tooltip( _( "Moves the selected item(s) by an exact amount" ) )
504 .Icon( BITMAPS::move_exactly ) );
505
507 .Name( "pcbnew.InteractiveEdit.moveCorner" )
508 .Scope( AS_GLOBAL )
509 .FriendlyName( _( "Move Corner To..." ) )
510 .Tooltip( _( "Move the active corner to an exact location" ) )
511 .Icon( BITMAPS::move_exactly ) );
512
514 .Name( "pcbnew.InteractiveEdit.moveMidpoint" )
515 .Scope( AS_GLOBAL )
516 .FriendlyName( _( "Move Midpoint To..." ) )
517 .Tooltip( _( "Move the active midpoint to an exact location" ) )
518 .Icon( BITMAPS::move_exactly ) );
519
521 .Name( "pcbnew.InteractiveEdit.createArray" )
522 .Scope( AS_GLOBAL )
523 .DefaultHotkey( MD_CTRL + 'T' )
524 .LegacyHotkeyName( "Create Array" )
525 .FriendlyName( _( "Create Array..." ) )
526 .Icon( BITMAPS::array )
527 .Flags( AF_ACTIVATE ) );
528
530 .Name( "pcbnew.InteractiveEdit.rotateCw" )
531 .Scope( AS_GLOBAL )
532 .DefaultHotkey( MD_SHIFT + 'R' )
533 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
534 .LegacyHotkeyName( "Rotate Item Clockwise (Modern Toolset only)" )
535 .FriendlyName( _( "Rotate Clockwise" ) )
536 .Tooltip( _( "Rotates selected item(s) clockwise" ) )
537 .Icon( BITMAPS::rotate_cw )
538 .Flags( AF_NONE )
539 .Parameter( -1 ) );
540
542 .Name( "pcbnew.InteractiveEdit.rotateCcw" )
543 .Scope( AS_GLOBAL )
544 .DefaultHotkey( 'R' )
545 .LegacyHotkeyName( "Rotate Item" )
546 .FriendlyName( _( "Rotate Counterclockwise" ) )
547 .Tooltip( _( "Rotates selected item(s) counterclockwise" ) )
548 .Icon( BITMAPS::rotate_ccw )
549 .Flags( AF_NONE )
550 .Parameter( 1 ) );
551
553 .Name( "pcbnew.InteractiveEdit.flip" )
554 .Scope( AS_GLOBAL )
555 .DefaultHotkey( 'F' )
556 .LegacyHotkeyName( "Flip Item" )
557 .FriendlyName( _( "Change Side / Flip" ) )
558 .Tooltip( _( "Flips selected item(s) to opposite side of board" ) )
559 .Icon( BITMAPS::swap_layer ) );
560
562 .Name( "pcbnew.InteractiveEdit.mirrorHoriontally" )
563 .Scope( AS_GLOBAL )
564 .FriendlyName( _( "Mirror Horizontally" ) )
565 .Tooltip( _( "Mirrors selected item across the Y axis" ) )
566 .Icon( BITMAPS::mirror_h ) );
567
569 .Name( "pcbnew.InteractiveEdit.mirrorVertically" )
570 .Scope( AS_GLOBAL )
571 .FriendlyName( _( "Mirror Vertically" ) )
572 .Tooltip( _( "Mirrors selected item across the X axis" ) )
573 .Icon( BITMAPS::mirror_v ) );
574
576 .Name( "pcbnew.InteractiveEdit.swap" )
577 .Scope( AS_GLOBAL )
578 .DefaultHotkey( 'S' )
579 .FriendlyName( _( "Swap" ) )
580 .Tooltip( _( "Swaps selected items' positions" ) )
581 .Icon( BITMAPS::swap ) );
582
584 .Name( "pcbnew.InteractiveEdit.packAndMoveFootprints" )
585 .Scope( AS_GLOBAL )
586 .DefaultHotkey( 'P' )
587 .FriendlyName( _( "Pack and Move Footprints" ) )
588 .Tooltip( _( "Sorts selected footprints by reference, packs based on size and initiates movement" ) )
589 .Icon( BITMAPS::pack_footprints ) );
590
592 .Name( "pcbnew.InteractiveEdit.skip" )
593 .Scope( AS_CONTEXT )
594 .DefaultHotkey( WXK_TAB )
595 .FriendlyName( _( "Skip" ) )
596 .Tooltip( _( "Skip item" ) )
597 .Icon( BITMAPS::right ) );
598
600 .Name( "pcbnew.InteractiveEdit.changeTrackWidth" )
601 .Scope( AS_GLOBAL )
602 .FriendlyName( _( "Change Track Width" ) )
603 .Tooltip( _( "Updates selected track & via sizes" ) ) );
604
606 .Name( "pcbnew.InteractiveEdit.filletTracks" )
607 .Scope( AS_GLOBAL )
608 .FriendlyName( _( "Fillet Tracks" ) )
609 .Tooltip( _( "Adds arcs tangent to the selected straight track segments" ) ) );
610
612 .Name( "pcbnew.InteractiveEdit.filletLines" )
613 .Scope( AS_GLOBAL )
614 .FriendlyName( _( "Fillet Lines..." ) )
615 .Tooltip( _( "Adds arcs tangent to the selected lines" ) )
616 .Icon( BITMAPS::fillet ) );
617
619 .Name( "pcbnew.InteractiveEdit.chamferLines" )
620 .Scope( AS_GLOBAL )
621 .FriendlyName( _( "Chamfer Lines..." ) )
622 .Tooltip( _( "Cut away corners between selected lines" ) )
623 .Icon( BITMAPS::chamfer ) );
624
626 .Name( "pcbnew.InteractiveEdit.simplifyPolygons" )
627 .Scope( AS_GLOBAL )
628 .FriendlyName( _( "Simplify Polygons" ) )
629 .Tooltip( _( "Simplify polygon outlines, removing superfluous points" ) ) );
630
632 .Name( "pcbnew.InteractiveEdit.healShapes" )
633 .Scope( AS_GLOBAL )
634 .FriendlyName( _( "Heal Shapes" ) )
635 .Tooltip( _( "Connect shapes, possibly extending or cutting them, or adding extra geometry" ) )
636 .Icon( BITMAPS::heal_shapes ) );
637
639 .Name( "pcbnew.InteractiveEdit.extendLines" )
640 .Scope( AS_GLOBAL )
641 .FriendlyName( _( "Extend Lines to Meet" ) )
642 .Tooltip( _( "Extend lines to meet each other" ) ) );
643
645 .Name( "pcbnew.InteractiveEdit.mergePolygons" )
646 .Scope( AS_GLOBAL )
647 .FriendlyName( _( "Merge Polygons" ) )
648 .Tooltip( _( "Merge selected polygons into a single polygon" ) )
649 .Icon( BITMAPS::merge_polygons ) );
650
652 .Name( "pcbnew.InteractiveEdit.subtractPolygons" )
653 .Scope( AS_GLOBAL )
654 .FriendlyName( _( "Subtract Polygons" ) )
655 .Tooltip( _( "Subtract selected polygons from the last one selected" ) )
657
659 .Name( "pcbnew.InteractiveEdit.intersectPolygons" )
660 .Scope( AS_GLOBAL )
661 .FriendlyName( _( "Intersect Polygons" ) )
662 .Tooltip( _( "Create the intersection of the selected polygons" ) )
664
666 .Name( "pcbnew.InteractiveEdit.deleteFull" )
667 .Scope( AS_GLOBAL )
668 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DELETE ) )
669 .LegacyHotkeyName( "Delete Full Track" )
670 .FriendlyName( _( "Delete Full Track" ) )
671 .Tooltip( _( "Deletes selected item(s) and copper connections" ) )
673 .Flags( AF_NONE )
674 .Parameter( PCB_ACTIONS::REMOVE_FLAGS::ALT ) );
675
677 .Name( "pcbnew.InteractiveEdit.properties" )
678 .Scope( AS_GLOBAL )
679 .DefaultHotkey( 'E' )
680 .LegacyHotkeyName( "Edit Item" )
681 .FriendlyName( _( "Properties..." ) )
682 .Tooltip( _( "Displays item properties dialog" ) )
683 .Icon( BITMAPS::edit ) );
684
685
686// FOOTPRINT_EDITOR_CONTROL
687//
689 .Name( "pcbnew.ModuleEditor.newFootprint" )
690 .Scope( AS_GLOBAL )
691 .DefaultHotkey( MD_CTRL + 'N' )
692 .LegacyHotkeyName( "New" )
693 .FriendlyName( _( "New Footprint" ) )
694 .Tooltip( _( "Create a new, empty footprint" ) )
695 .Icon( BITMAPS::new_footprint ) );
696
698 .Name( "pcbnew.ModuleEditor.createFootprint" )
699 .Scope( AS_GLOBAL )
700 .FriendlyName( _( "Create Footprint..." ) )
701 .Tooltip( _( "Create a new footprint using the Footprint Wizard" ) )
702 .Icon( BITMAPS::module_wizard ) );
703
705 .Name( "pcbnew.ModuleEditor.editFootprint" )
706 .Scope( AS_GLOBAL )
707 .FriendlyName( _( "Edit Footprint" ) )
708 .Tooltip( _( "Show selected footprint on editor canvas" ) )
709 .Icon( BITMAPS::edit ) );
710
712 .Name( "pcbnew.ModuleEditor.duplicateFootprint" )
713 .Scope( AS_GLOBAL )
714 .FriendlyName( _( "Duplicate Footprint" ) )
715 .Tooltip( _( "Make a copy of the selected footprint" ) )
716 .Icon( BITMAPS::duplicate ) );
717
719 .Name( "pcbnew.ModuleEditor.renameFootprint" )
720 .Scope( AS_GLOBAL )
721 .FriendlyName( _( "Rename Footprint..." ) )
722 .Tooltip( _( "Rename the selected footprint" ) )
723 .Icon( BITMAPS::edit ) );
724
726 .Name( "pcbnew.ModuleEditor.deleteFootprint" )
727 .Scope( AS_GLOBAL )
728 .FriendlyName( _( "Delete Footprint from Library" ) )
729 .Tooltip( _( "Delete Footprint from Library" ) )
730 .Icon( BITMAPS::trash ) );
731
733 .Name( "pcbnew.ModuleEditor.cutFootprint" )
734 .Scope( AS_GLOBAL )
735 .FriendlyName( _( "Cut Footprint" ) )
736 .Icon( BITMAPS::cut ) );
737
739 .Name( "pcbnew.ModuleEditor.copyFootprint" )
740 .Scope( AS_GLOBAL )
741 .FriendlyName( _( "Copy Footprint" ) )
742 .Icon( BITMAPS::copy ) );
743
745 .Name( "pcbnew.ModuleEditor.pasteFootprint" )
746 .Scope( AS_GLOBAL )
747 .FriendlyName( _( "Paste Footprint" ) )
748 .Icon( BITMAPS::paste ) );
749
751 .Name( "pcbnew.ModuleEditor.importFootprint" )
752 .Scope( AS_GLOBAL )
753 .FriendlyName( _( "Import Footprint..." ) )
754 .Tooltip( _( "Import footprint from file" ) )
755 .Icon( BITMAPS::import_module ) );
756
758 .Name( "pcbnew.ModuleEditor.exportFootprint" )
759 .Scope( AS_GLOBAL )
760 .FriendlyName( _( "Export Current Footprint..." ) )
761 .Tooltip( _( "Export edited footprint to file" ) )
762 .Icon( BITMAPS::export_module ) );
763
765 .Name( "pcbnew.ModuleEditor.footprintProperties" )
766 .Scope( AS_GLOBAL )
767 .FriendlyName( _( "Footprint Properties..." ) )
768 .Icon( BITMAPS::module_options ) );
769
771 .Name( "pcbnew.ModuleEditor.checkFootprint" )
772 .Scope( AS_GLOBAL )
773 .FriendlyName( _( "Footprint Checker" ) )
774 .Tooltip( _( "Show the footprint checker window" ) )
775 .Icon( BITMAPS::erc ) );
776
777// GLOBAL_EDIT_TOOL
778//
780 .Name( "pcbnew.GlobalEdit.updateFootprint" )
781 .Scope( AS_GLOBAL )
782 .FriendlyName( _( "Update Footprint..." ) )
783 .Tooltip( _( "Update footprint to include any changes from the library" ) )
784 .Icon( BITMAPS::refresh ) );
785
787 .Name( "pcbnew.GlobalEdit.updateFootprints" )
788 .Scope( AS_GLOBAL )
789 .FriendlyName( _( "Update Footprints from Library..." ) )
790 .Tooltip( _( "Update footprints to include any changes from the library" ) )
791 .Icon( BITMAPS::refresh ) );
792
794 .Name( "pcbnew.GlobalEdit.removeUnusedPads" )
795 .Scope( AS_GLOBAL )
796 .FriendlyName( _( "Remove Unused Pads..." ) )
797 .Tooltip( _( "Remove or restore the unconnected inner layers on through hole pads and vias" ) )
798 .Icon( BITMAPS::pads_remove ) );
799
801 .Name( "pcbnew.GlobalEdit.changeFootprint" )
802 .Scope( AS_GLOBAL )
803 .FriendlyName( _( "Change Footprint..." ) )
804 .Tooltip( _( "Assign a different footprint from the library" ) )
805 .Icon( BITMAPS::exchange ) );
806
808 .Name( "pcbnew.GlobalEdit.changeFootprints" )
809 .Scope( AS_GLOBAL )
810 .FriendlyName( _( "Change Footprints..." ) )
811 .Tooltip( _( "Assign different footprints from the library" ) )
812 .Icon( BITMAPS::exchange ) );
813
815 .Name( "pcbnew.GlobalEdit.swapLayers" )
816 .Scope( AS_GLOBAL )
817 .FriendlyName( _( "Swap Layers..." ) )
818 .Tooltip( _( "Move tracks or drawings from one layer to another" ) )
819 .Icon( BITMAPS::swap_layer ) );
820
822 .Name( "pcbnew.GlobalEdit.editTracksAndVias" )
823 .Scope( AS_GLOBAL )
824 .FriendlyName( _( "Edit Track & Via Properties..." ) )
825 .Tooltip( _( "Edit track and via properties globally across board" ) )
826 .Icon( BITMAPS::width_track_via ) );
827
829 .Name( "pcbnew.GlobalEdit.editTextAndGraphics" )
830 .Scope( AS_GLOBAL )
831 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
832 .Tooltip( _( "Edit Text and graphics properties globally across board" ) )
833 .Icon( BITMAPS::text ) );
834
836 .Name( "pcbnew.GlobalEdit.editTeardrops" )
837 .Scope( AS_GLOBAL )
838 .FriendlyName( _( "Edit Teardrops..." ) )
839 .Tooltip( _( "Add, remove or edit teardrops globally across board" ) )
840 .Icon( BITMAPS::via ) );
841
843 .Name( "pcbnew.GlobalEdit.globalDeletions" )
844 .Scope( AS_GLOBAL )
845 .FriendlyName( _( "Global Deletions..." ) )
846 .Tooltip( _( "Delete tracks, footprints and graphic items from board" ) )
848
850 .Name( "pcbnew.GlobalEdit.cleanupTracksAndVias" )
851 .Scope( AS_GLOBAL )
852 .FriendlyName( _( "Cleanup Tracks & Vias..." ) )
853 .Tooltip( _( "Cleanup redundant items, shorting items, etc." ) )
855
857 .Name( "pcbnew.GlobalEdit.cleanupGraphics" )
858 .Scope( AS_GLOBAL )
859 .FriendlyName( _( "Cleanup Graphics..." ) )
860 .Tooltip( _( "Cleanup redundant items, etc." ) )
861 .Icon( BITMAPS::cleanup_graphics ) );
862
863// MICROWAVE_TOOL
864//
866 .Name( "pcbnew.MicrowaveTool.createGap" )
867 .Scope( AS_GLOBAL )
868 .FriendlyName( _( "Add Microwave Gap" ) )
869 .Tooltip( _( "Create gap of specified length for microwave applications" ) )
870 .Icon( BITMAPS::mw_add_gap )
871 .Flags( AF_ACTIVATE )
872 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::GAP ) );
873
875 .Name( "pcbnew.MicrowaveTool.createStub" )
876 .Scope( AS_GLOBAL )
877 .FriendlyName( _( "Add Microwave Stub" ) )
878 .Tooltip( _( "Create stub of specified length for microwave applications" ) )
879 .Icon( BITMAPS::mw_add_stub )
880 .Flags( AF_ACTIVATE )
881 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB ) );
882
884 .Name( "pcbnew.MicrowaveTool.createStubArc" )
885 .Scope( AS_GLOBAL )
886 .FriendlyName( _( "Add Microwave Arc Stub" ) )
887 .Tooltip( _( "Create stub (arc) of specified size for microwave applications" ) )
889 .Flags( AF_ACTIVATE )
891
893 .Name( "pcbnew.MicrowaveTool.createFunctionShape" )
894 .Scope( AS_GLOBAL )
895 .FriendlyName( _( "Add Microwave Polygonal Shape" ) )
896 .Tooltip( _( "Create a microwave polygonal shape from a list of vertices" ) )
897 .Icon( BITMAPS::mw_add_shape )
898 .Flags( AF_ACTIVATE )
900
902 .Name( "pcbnew.MicrowaveTool.createLine" )
903 .Scope( AS_GLOBAL )
904 .FriendlyName( _( "Add Microwave Line" ) )
905 .Tooltip( _( "Create line of specified length for microwave applications" ) )
906 .Icon( BITMAPS::mw_add_line )
907 .Flags( AF_ACTIVATE ) );
908
909
910// PAD_TOOL
911//
913 .Name( "pcbnew.PadTool.CopyPadSettings" )
914 .Scope( AS_GLOBAL )
915 .FriendlyName( _( "Copy Pad Properties to Default" ) )
916 .Tooltip( _( "Copy current pad's properties" ) )
918
920 .Name( "pcbnew.PadTool.ApplyPadSettings" )
921 .Scope( AS_GLOBAL )
922 .FriendlyName( _( "Paste Default Pad Properties to Selected" ) )
923 .Tooltip( _( "Replace the current pad's properties with those copied earlier" ) )
925
927 .Name( "pcbnew.PadTool.PushPadSettings" )
928 .Scope( AS_GLOBAL )
929 .FriendlyName( _( "Push Pad Properties to Other Pads..." ) )
930 .Tooltip( _( "Copy the current pad's properties to other pads" ) )
932
934 .Name( "pcbnew.PadTool.enumeratePads" )
935 .Scope( AS_GLOBAL )
936 .FriendlyName( _( "Renumber Pads..." ) )
937 .Tooltip( _( "Renumber pads by clicking on them in the desired order" ) )
939 .Flags( AF_ACTIVATE ) );
940
942 .Name( "pcbnew.PadTool.placePad" )
943 .Scope( AS_GLOBAL )
944 .FriendlyName( _( "Add Pad" ) )
945 .Tooltip( _( "Add a pad" ) )
946 .Icon( BITMAPS::pad )
947 .Flags( AF_ACTIVATE ) );
948
950 .Name( "pcbnew.PadTool.explodePad" )
951 .Scope( AS_GLOBAL )
952 .DefaultHotkey( MD_CTRL + 'E' )
953 .FriendlyName( _( "Edit Pad as Graphic Shapes" ) )
954 .Tooltip( _( "Ungroups a custom-shaped pad for editing as individual graphic shapes" ) )
956
958 .Name( "pcbnew.PadTool.recombinePad" )
959 .Scope( AS_GLOBAL )
960 .DefaultHotkey( MD_CTRL + 'E' )
961 .FriendlyName( _( "Finish Pad Edit" ) )
962 .Tooltip( _( "Regroups all touching graphic shapes into the edited pad" ) )
964
966 .Name( "pcbnew.PadTool.defaultPadProperties" )
967 .Scope( AS_GLOBAL )
968 .FriendlyName( _( "Default Pad Properties..." ) )
969 .Tooltip( _( "Edit the pad properties used when creating new pads" ) )
970 .Icon( BITMAPS::options_pad ) );
971
972
973// SCRIPTING TOOL
974//
975
977 .Name( "pcbnew.ScriptingTool.pluginsShowFolder" )
978 .Scope( AS_GLOBAL )
979#ifdef __WXMAC__
980 .FriendlyName( _( "Reveal Plugin Folder in Finder" ) )
981 .Tooltip( _( "Reveals the plugins folder in a Finder window" ) )
982#else
983 .FriendlyName( _( "Open Plugin Directory" ) )
984 .Tooltip( _( "Opens the directory in the default system file manager" ) )
985#endif
986 .Icon( BITMAPS::directory_open ) );
987
988// BOARD_EDITOR_CONTROL
989//
991 .Name( "pcbnew.EditorControl.boardSetup" )
992 .Scope( AS_GLOBAL )
993 .FriendlyName( _( "Board Setup..." ) )
994 .Tooltip( _( "Edit board setup including layers, design rules and various defaults" ) )
995 .Icon( BITMAPS::options_board ) );
996
998 .Name( "pcbnew.EditorControl.importNetlist" )
999 .Scope( AS_GLOBAL )
1000 .FriendlyName( _( "Import Netlist..." ) )
1001 .Tooltip( _( "Read netlist and update board connectivity" ) )
1002 .Icon( BITMAPS::netlist ) );
1003
1005 .Name( "pcbnew.EditorControl.importSpecctraSession" )
1006 .Scope( AS_GLOBAL )
1007 .FriendlyName( _( "Import Specctra Session..." ) )
1008 .Tooltip( _( "Import routed Specctra session (*.ses) file" ) )
1009 .Icon( BITMAPS::import ) );
1010
1012 .Name( "pcbnew.EditorControl.exportSpecctraDSN" )
1013 .Scope( AS_GLOBAL )
1014 .FriendlyName( _( "Export Specctra DSN..." ) )
1015 .Tooltip( _( "Export Specctra DSN routing info" ) )
1016 .Icon( BITMAPS::export_dsn ) );
1017
1019 .Name( "pcbnew.EditorControl.generateGerbers" )
1020 .Scope( AS_GLOBAL )
1021 .FriendlyName( _( "Gerbers (.gbr)..." ) )
1022 .Tooltip( _( "Generate Gerbers for fabrication" ) )
1023 .Icon( BITMAPS::post_gerber ) );
1024
1026 .Name( "pcbnew.EditorControl.generateDrillFiles" )
1027 .Scope( AS_GLOBAL )
1028 .FriendlyName( _( "Drill Files (.drl)..." ) )
1029 .Tooltip( _( "Generate Excellon drill file(s)" ) )
1030 .Icon( BITMAPS::post_drill ) );
1031
1033 .Name( "pcbnew.EditorControl.generatePosFile" )
1034 .Scope( AS_GLOBAL )
1035 .FriendlyName( _( "Component Placement (.pos, .gbr)..." ) )
1036 .Tooltip( _( "Generate component placement file(s) for pick and place" ) )
1037 .Icon( BITMAPS::post_compo ) );
1038
1040 .Name( "pcbnew.EditorControl.generateReportFile" )
1041 .Scope( AS_GLOBAL )
1042 .FriendlyName( _( "Footprint Report (.rpt)..." ) )
1043 .Tooltip( _( "Create report of all footprints from current board" ) )
1044 .Icon( BITMAPS::post_rpt ) );
1045
1047 .Name( "pcbnew.EditorControl.generateIPC2581File" )
1048 .Scope( AS_GLOBAL )
1049 .FriendlyName( _( "IPC-2581 File (.xml)..." ) )
1050 .Tooltip( _( "Generate an IPC-2581 file" ) )
1051 .Icon( BITMAPS::post_xml ) );
1052
1054 .Name( "pcbnew.EditorControl.generateD356File" )
1055 .Scope( AS_GLOBAL )
1056 .FriendlyName( _( "IPC-D-356 Netlist File..." ) )
1057 .Tooltip( _( "Generate IPC-D-356 netlist file" ) )
1058 .Icon( BITMAPS::post_d356 ) );
1059
1061 .Name( "pcbnew.EditorControl.generateBOM" )
1062 .Scope( AS_GLOBAL )
1063 .FriendlyName( _( "Bill of Materials..." ) )
1064 .Tooltip( _( "Create bill of materials from board" ) )
1065 .Icon( BITMAPS::post_bom ) );
1066
1067// Track & via size control
1069 .Name( "pcbnew.EditorControl.trackWidthInc" )
1070 .Scope( AS_GLOBAL )
1071 .DefaultHotkey( 'W' )
1072 .LegacyHotkeyName( "Switch Track Width To Next" )
1073 .FriendlyName( _( "Switch Track Width to Next" ) )
1074 .Tooltip( _( "Change track width to next pre-defined size" ) ) );
1075
1077 .Name( "pcbnew.EditorControl.trackWidthDec" )
1078 .Scope( AS_GLOBAL )
1079 .DefaultHotkey( MD_SHIFT + 'W' )
1080 .LegacyHotkeyName( "Switch Track Width To Previous" )
1081 .FriendlyName( _( "Switch Track Width to Previous" ) )
1082 .Tooltip( _( "Change track width to previous pre-defined size" ) ) );
1083
1085 .Name( "pcbnew.EditorControl.viaSizeInc" )
1086 .Scope( AS_GLOBAL )
1087 .DefaultHotkey( '\'' )
1088 .LegacyHotkeyName( "Increase Via Size" )
1089 .FriendlyName( _( "Increase Via Size" ) )
1090 .Tooltip( _( "Change via size to next pre-defined size" ) ) );
1091
1093 .Name( "pcbnew.EditorControl.viaSizeDec" )
1094 .Scope( AS_GLOBAL )
1095 .DefaultHotkey( '\\' )
1096 .LegacyHotkeyName( "Decrease Via Size" )
1097 .FriendlyName( _( "Decrease Via Size" ) )
1098 .Tooltip( _( "Change via size to previous pre-defined size" ) ) );
1099
1101 .Name( "pcbnew.EditorControl.trackViaSizeChanged" )
1102 .Scope( AS_GLOBAL )
1103 .Flags( AF_NOTIFY ) );
1104
1106 .Name( "pcbnew.EditorControl.assignNetclass" )
1107 .Scope( AS_GLOBAL )
1108 .FriendlyName( _( "Assign Netclass..." ) )
1109 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
1110 .Icon( BITMAPS::netlist ) );
1111
1113 .Name( "pcbnew.EditorControl.zoneMerge" )
1114 .Scope( AS_GLOBAL )
1115 .FriendlyName( _( "Merge Zones" ) )
1116 .Tooltip( _( "Merge zones" ) ) );
1117
1119 .Name( "pcbnew.EditorControl.zoneDuplicate" )
1120 .Scope( AS_GLOBAL )
1121 .FriendlyName( _( "Duplicate Zone onto Layer..." ) )
1122 .Tooltip( _( "Duplicate zone outline onto a different layer" ) )
1123 .Icon( BITMAPS::zone_duplicate ) );
1124
1126 .Name( "pcbnew.EditorControl.placeFootprint" )
1127 .Scope( AS_GLOBAL )
1128 .DefaultHotkey( 'A' )
1129 .LegacyHotkeyName( "Add Footprint" )
1130 .FriendlyName( _( "Add Footprint" ) )
1131 .Tooltip( _( "Add a footprint" ) )
1132 .Icon( BITMAPS::module )
1133 .Flags( AF_ACTIVATE )
1134 .Parameter<FOOTPRINT*>( nullptr ) );
1135
1137 .Name( "pcbnew.EditorControl.drillOrigin" )
1138 .Scope( AS_GLOBAL )
1139 .FriendlyName( _( "Drill/Place File Origin" ) )
1140 .Tooltip( _( "Place origin point for drill files and component placement files" ) )
1141 .Icon( BITMAPS::set_origin )
1142 .Flags( AF_ACTIVATE ) );
1143
1145 .Name( "pcbnew.EditorControl.drillResetOrigin" )
1146 .Scope( AS_GLOBAL )
1147 .LegacyHotkeyName( "Reset Drill Origin" )
1148 .FriendlyName( _( "Reset Drill Origin" ) ) );
1149
1151 .Name( "pcbnew.EditorControl.toggleLock" )
1152 .Scope( AS_GLOBAL )
1153 .DefaultHotkey( 'L' )
1154 .LegacyHotkeyName( "Lock/Unlock Footprint" )
1155 .FriendlyName( _( "Toggle Lock" ) )
1156 .Tooltip( _( "Lock or unlock selected items" ) )
1157 .Icon( BITMAPS::lock_unlock ) );
1158
1160 .Name( "pcbnew.EditorControl.toggle45" )
1161 .Scope( AS_GLOBAL )
1162 .DefaultHotkey( MD_SHIFT + ' ' )
1163 .FriendlyName( _( "Constrain to H, V, 45" ) )
1164 .Tooltip( _( "Limit actions to horizontal, vertical, or 45 degrees from the starting point" ) )
1165 .Icon( BITMAPS::hv45mode ) );
1166
1168 .Name( "pcbnew.EditorControl.lock" )
1169 .Scope( AS_GLOBAL )
1170 .FriendlyName( _( "Lock" ) )
1171 .Tooltip( _( "Prevent items from being moved and/or resized on the canvas" ) )
1172 .Icon( BITMAPS::locked ) );
1173
1175 .Name( "pcbnew.EditorControl.unlock" )
1176 .Scope( AS_GLOBAL )
1177 .FriendlyName( _( "Unlock" ) )
1178 .Tooltip( _( "Allow items to be moved and/or resized on the canvas" ) )
1179 .Icon( BITMAPS::unlocked ) );
1180
1182 .Name( "pcbnew.EditorControl.group" )
1183 .Scope( AS_GLOBAL )
1184 .FriendlyName( _( "Group Items" ) )
1185 .Tooltip( _( "Group the selected items so that they are treated as a single item" ) )
1186 .Icon( BITMAPS::group ) );
1187
1189 .Name( "pcbnew.EditorControl.ungroup" )
1190 .Scope( AS_GLOBAL )
1191 .FriendlyName( _( "Ungroup Items" ) )
1192 .Tooltip( _( "Ungroup any selected groups" ) )
1193 .Icon( BITMAPS::group_ungroup ) );
1194
1196 .Name( "pcbnew.EditorControl.removeFromGroup" )
1197 .Scope( AS_GLOBAL )
1198 .FriendlyName( _( "Remove Items" ) )
1199 .Tooltip( _( "Remove items from group" ) )
1200 .Icon( BITMAPS::group_remove ) );
1201
1203 .Name( "pcbnew.EditorControl.groupEnter" )
1204 .Scope( AS_GLOBAL )
1205 .FriendlyName( _( "Enter Group" ) )
1206 .Tooltip( _( "Enter the group to edit items" ) )
1207 .Icon( BITMAPS::group_enter ) );
1208
1210 .Name( "pcbnew.EditorControl.groupLeave" )
1211 .Scope( AS_GLOBAL )
1212 .FriendlyName( _( "Leave Group" ) )
1213 .Tooltip( _( "Leave the current group" ) )
1214 .Icon( BITMAPS::group_leave ) );
1215
1217 .Name( "pcbnew.EditorControl.appendBoard" )
1218 .Scope( AS_GLOBAL )
1219 .FriendlyName( _( "Append Board..." ) )
1220 .Tooltip( _( "Open another board and append its contents to this board" ) )
1221 .Icon( BITMAPS::add_board ) );
1222
1224 .Name( "pcbnew.EditorControl.highlightNet" )
1225 .Scope( AS_GLOBAL )
1226 .DefaultHotkey( '`' )
1227 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1228 .LegacyHotkeyName( "Toggle Highlight of Selected Net (Modern Toolset only)" )
1229 .FriendlyName( _( "Highlight Net" ) )
1230 .Tooltip( _( "Highlight net under cursor" ) )
1231 .Icon( BITMAPS::net_highlight )
1232 .Parameter<int>( 0 ) );
1233
1235 .Name( "pcbnew.EditorControl.toggleLastNetHighlight" )
1236 .Scope( AS_GLOBAL )
1237 .FriendlyName( _( "Toggle Last Net Highlight" ) )
1238 .Tooltip( _( "Toggle between last two highlighted nets" ) )
1239 .Parameter<int>( 0 ) );
1240
1242 .Name( "pcbnew.EditorControl.clearHighlight" )
1243 .Scope( AS_GLOBAL )
1244 .DefaultHotkey( '~' )
1245 .FriendlyName( _( "Clear Net Highlighting" ) )
1246 .Tooltip( _( "Clear any existing net highlighting" ) ) );
1247
1249 .Name( "pcbnew.EditorControl.toggleNetHighlight" )
1250 .Scope( AS_GLOBAL )
1251 .DefaultHotkey( MD_ALT + '`' )
1252 .FriendlyName( _( "Toggle Net Highlight" ) )
1253 .Tooltip( _( "Toggle net highlighting" ) )
1254 .Icon( BITMAPS::net_highlight )
1255 .Parameter<int>( 0 ) );
1256
1258 .Name( "pcbnew.EditorControl.highlightNetSelection" )
1259 .Scope( AS_GLOBAL )
1260 .FriendlyName( _( "Highlight Net" ) )
1261 .Tooltip( _( "Highlight all copper items on the selected net(s)" ) )
1262 .Icon( BITMAPS::net_highlight )
1263 .Parameter<int>( 0 ) );
1264
1266 .Name( "pcbnew.EditorControl.highlightItem" )
1267 .Scope( AS_GLOBAL ) );
1268
1270 .Name( "pcbnew.EditorControl.hideNet" )
1271 .Scope( AS_GLOBAL )
1272 .FriendlyName( _( "Hide Net in Ratsnest" ) )
1273 .Tooltip( _( "Hide the selected net in the ratsnest of unconnected net lines/arcs" ) )
1274 .Icon( BITMAPS::hide_ratsnest )
1275 .Parameter<int>( 0 ) ); // Default to hiding selected net
1276
1278 .Name( "pcbnew.EditorControl.showNet" )
1279 .Scope( AS_GLOBAL )
1280 .FriendlyName( _( "Show Net in Ratsnest" ) )
1281 .Tooltip( _( "Show the selected net in the ratsnest of unconnected net lines/arcs" ) )
1282 .Icon( BITMAPS::show_ratsnest )
1283 .Parameter<int>( 0 ) ); // Default to showing selected net
1284
1286 .Name( "pcbnew.EditorControl.showEeschema" )
1287 .Scope( AS_GLOBAL )
1288 .FriendlyName( _( "Switch to Schematic Editor" ) )
1289 .Tooltip( _( "Open schematic in schematic editor" ) )
1290 .Icon( BITMAPS::icon_eeschema_24 ) );
1291
1292
1293// PCB_CONTROL
1294//
1295
1297 .Name( "pcbnew.Control.localRatsnestTool" )
1298 .Scope( AS_GLOBAL )
1299 .FriendlyName( _( "Local Ratsnest" ) )
1300 .Tooltip( _( "Toggle ratsnest display of selected item(s)" ) )
1301 .Icon( BITMAPS::tool_ratsnest )
1302 .Flags( AF_ACTIVATE ) );
1303
1305 .Name( "pcbnew.Control.hideDynamicRatsnest" )
1306 .Scope( AS_GLOBAL ) );
1307
1309 .Name( "pcbnew.Control.updateLocalRatsnest" )
1310 .Scope( AS_GLOBAL )
1311 .Parameter( VECTOR2I() ) );
1312
1314 .Name( "pcbnew.Control.showPythonConsole" )
1315 .Scope( AS_GLOBAL )
1316 .FriendlyName( _( "Scripting Console" ) )
1317 .Tooltip( _( "Show the Python scripting console" ) )
1318 .Icon( BITMAPS::py_script ) );
1319
1321 .Name( "pcbnew.Control.showLayersManager" )
1322 .Scope( AS_GLOBAL )
1323 .FriendlyName( _( "Show Appearance Manager" ) )
1324 .Tooltip( _( "Show/hide the appearance manager" ) )
1325 .Icon( BITMAPS::layers_manager ) );
1326
1328 .Name( "pcbnew.Control.showNetInspector" )
1329 .Scope( AS_GLOBAL )
1330 .FriendlyName( _( "Show Net Inspector" ) )
1331 .Tooltip( _( "Show/hide the net inspector" ) )
1332 .Icon( BITMAPS::tools ) );
1333
1334TOOL_ACTION PCB_ACTIONS::zonesManager( "pcbnew.Control.zonesManager",
1335 AS_GLOBAL, 0, "",
1336 _( "Zone Manager" ), _( "Show the zone manager dialog" ),
1338
1340 .Name( "pcbnew.Control.flipBoard" )
1341 .Scope( AS_GLOBAL )
1342 .FriendlyName( _( "Flip Board View" ) )
1343 .Tooltip( _( "View board from the opposite side" ) )
1344 .Icon( BITMAPS::flip_board ) );
1345
1346// Display modes
1348 .Name( "pcbnew.Control.showRatsnest" )
1349 .Scope( AS_GLOBAL )
1350 .FriendlyName( _( "Show Ratsnest" ) )
1351 .Tooltip( _( "Show board ratsnest" ) )
1352 .Icon( BITMAPS::general_ratsnest ) );
1353
1355 .Name( "pcbnew.Control.ratsnestLineMode" )
1356 .Scope( AS_GLOBAL )
1357 .FriendlyName( _( "Curved Ratsnest Lines" ) )
1358 .Tooltip( _( "Show ratsnest with curved lines" ) )
1359 .Icon( BITMAPS::curved_ratsnest ) );
1360
1362 .Name( "pcbnew.Control.ratsnestModeCycle" )
1363 .Scope( AS_GLOBAL )
1364 .FriendlyName( _( "Ratsnest Mode (3-state)" ) )
1365 .Tooltip( _( "Cycle between showing ratsnests for all layers, just visible layers, and none" ) ) );
1366
1368 .Name( "pcbnew.Control.netColorMode" )
1369 .Scope( AS_GLOBAL )
1370 .FriendlyName( _( "Net Color Mode (3-state)" ) )
1371 .Tooltip( _( "Cycle between using net and netclass colors for all nets, just ratsnests, and none" ) ) );
1372
1374 .Name( "pcbnew.Control.trackDisplayMode" )
1375 .Scope( AS_GLOBAL )
1376 .DefaultHotkey( 'K' )
1377 .LegacyHotkeyName( "Track Display Mode" )
1378 .FriendlyName( _( "Sketch Tracks" ) )
1379 .Tooltip( _( "Show tracks in outline mode" ) )
1380 .Icon( BITMAPS::showtrack ) );
1381
1383 .Name( "pcbnew.Control.padDisplayMode" )
1384 .Scope( AS_GLOBAL )
1385 .FriendlyName( _( "Sketch Pads" ) )
1386 .Tooltip( _( "Show pads in outline mode" ) )
1387 .Icon( BITMAPS::pad_sketch ) );
1388
1390 .Name( "pcbnew.Control.viaDisplayMode" )
1391 .Scope( AS_GLOBAL )
1392 .FriendlyName( _( "Sketch Vias" ) )
1393 .Tooltip( _( "Show vias in outline mode" ) )
1394 .Icon( BITMAPS::via_sketch ) );
1395
1397 .Name( "pcbnew.Control.graphicOutlines" )
1398 .Scope( AS_GLOBAL )
1399 .FriendlyName( _( "Sketch Graphic Items" ) )
1400 .Tooltip( _( "Show graphic items in outline mode" ) )
1401 .Icon( BITMAPS::show_mod_edge ) );
1402
1404 .Name( "pcbnew.Control.textOutlines" )
1405 .Scope( AS_GLOBAL )
1406 .FriendlyName( _( "Sketch Text Items" ) )
1407 .Tooltip( _( "Show footprint texts in line mode" ) )
1408 .Icon( BITMAPS::text_sketch ) );
1409
1411 .Name( "pcbnew.Control.showPadNumbers" )
1412 .Scope( AS_GLOBAL )
1413 .FriendlyName( _( "Show Pad Numbers" ) )
1414 .Tooltip( _( "Show pad numbers" ) )
1415 .Icon( BITMAPS::pad_number ) );
1416
1418 .Name( "pcbnew.Control.zoneDisplayEnable" )
1419 .Scope( AS_GLOBAL )
1420 .FriendlyName( _( "Draw Zone Fills" ) )
1421 .Tooltip( _( "Show filled areas of zones" ) )
1422 .Icon( BITMAPS::show_zone ) );
1423
1425 .Name( "pcbnew.Control.zoneDisplayDisable" )
1426 .Scope( AS_GLOBAL )
1427 .FriendlyName( _( "Draw Zone Outlines" ) )
1428 .Tooltip( _( "Show only zone boundaries" ) )
1429 .Icon( BITMAPS::show_zone_disable ) );
1430
1432 .Name( "pcbnew.Control.zoneDisplayOutlines" )
1433 .Scope( AS_GLOBAL )
1434 .FriendlyName( _( "Draw Zone Fill Fracture Borders" ) )
1436
1438 .Name( "pcbnew.Control.zoneDisplayTesselation" )
1439 .Scope( AS_GLOBAL )
1440 .FriendlyName( _( "Draw Zone Fill Triangulation" ) )
1442
1444 .Name( "pcbnew.Control.zoneDisplayToggle" )
1445 .Scope( AS_GLOBAL )
1446 .FriendlyName( _( "Toggle Zone Display" ) )
1447 .Tooltip( _( "Cycle between showing zone fills and just their outlines" ) )
1448 .Icon( BITMAPS::show_zone ) );
1449
1450
1451// Layer control
1452
1453// Translate aLayer to the action that switches to it
1455{
1456 switch( aLayer )
1457 {
1458 case F_Cu: return &PCB_ACTIONS::layerTop;
1459 case In1_Cu: return &PCB_ACTIONS::layerInner1;
1460 case In2_Cu: return &PCB_ACTIONS::layerInner2;
1461 case In3_Cu: return &PCB_ACTIONS::layerInner3;
1462 case In4_Cu: return &PCB_ACTIONS::layerInner4;
1463 case In5_Cu: return &PCB_ACTIONS::layerInner5;
1464 case In6_Cu: return &PCB_ACTIONS::layerInner6;
1465 case In7_Cu: return &PCB_ACTIONS::layerInner7;
1466 case In8_Cu: return &PCB_ACTIONS::layerInner8;
1467 case In9_Cu: return &PCB_ACTIONS::layerInner9;
1468 case In10_Cu: return &PCB_ACTIONS::layerInner10;
1469 case In11_Cu: return &PCB_ACTIONS::layerInner11;
1470 case In12_Cu: return &PCB_ACTIONS::layerInner12;
1471 case In13_Cu: return &PCB_ACTIONS::layerInner13;
1472 case In14_Cu: return &PCB_ACTIONS::layerInner14;
1473 case In15_Cu: return &PCB_ACTIONS::layerInner15;
1474 case In16_Cu: return &PCB_ACTIONS::layerInner16;
1475 case In17_Cu: return &PCB_ACTIONS::layerInner17;
1476 case In18_Cu: return &PCB_ACTIONS::layerInner18;
1477 case In19_Cu: return &PCB_ACTIONS::layerInner19;
1478 case In20_Cu: return &PCB_ACTIONS::layerInner20;
1479 case In21_Cu: return &PCB_ACTIONS::layerInner21;
1480 case In22_Cu: return &PCB_ACTIONS::layerInner22;
1481 case In23_Cu: return &PCB_ACTIONS::layerInner23;
1482 case In24_Cu: return &PCB_ACTIONS::layerInner24;
1483 case In25_Cu: return &PCB_ACTIONS::layerInner25;
1484 case In26_Cu: return &PCB_ACTIONS::layerInner26;
1485 case In27_Cu: return &PCB_ACTIONS::layerInner27;
1486 case In28_Cu: return &PCB_ACTIONS::layerInner28;
1487 case In29_Cu: return &PCB_ACTIONS::layerInner29;
1488 case In30_Cu: return &PCB_ACTIONS::layerInner30;
1489 case B_Cu: return &PCB_ACTIONS::layerBottom;
1490 default: return nullptr;
1491 }
1492}
1493
1494// Implemented as an accessor + static variable to ensure it is initialized when used
1495// in static action constructors
1497{
1498 static TOOL_ACTION_GROUP s_toolActionGroup( "pcbnew.Control.DirectLayerActions" );
1499 return s_toolActionGroup;
1500}
1501
1503 .Name( "pcbnew.Control.layerTop" )
1504 .Scope( AS_GLOBAL )
1506 .DefaultHotkey( WXK_PAGEUP )
1507 .LegacyHotkeyName( "Switch to Component (F.Cu) layer" )
1508 .FriendlyName( _( "Switch to Component (F.Cu) layer" ) )
1509 .Flags( AF_NOTIFY )
1510 .Parameter( F_Cu ) );
1511
1513 .Name( "pcbnew.Control.layerInner1" )
1514 .Scope( AS_GLOBAL )
1516 .LegacyHotkeyName( "Switch to Inner layer 1" )
1517 .FriendlyName( _( "Switch to Inner Layer 1" ) )
1518 .Flags( AF_NOTIFY )
1519 .Parameter( In1_Cu ) );
1520
1522 .Name( "pcbnew.Control.layerInner2" )
1523 .Scope( AS_GLOBAL )
1525 .LegacyHotkeyName( "Switch to Inner layer 2" )
1526 .FriendlyName( _( "Switch to Inner Layer 2" ) )
1527 .Flags( AF_NOTIFY )
1528 .Parameter( In2_Cu ) );
1529
1531 .Name( "pcbnew.Control.layerInner3" )
1532 .Scope( AS_GLOBAL )
1534 .LegacyHotkeyName( "Switch to Inner layer 3" )
1535 .FriendlyName( _( "Switch to Inner Layer 3" ) )
1536 .Flags( AF_NOTIFY )
1537 .Parameter( In3_Cu ) );
1538
1540 .Name( "pcbnew.Control.layerInner4" )
1541 .Scope( AS_GLOBAL )
1543 .LegacyHotkeyName( "Switch to Inner layer 4" )
1544 .FriendlyName( _( "Switch to Inner Layer 4" ) )
1545 .Flags( AF_NOTIFY )
1546 .Parameter( In4_Cu ) );
1547
1549 .Name( "pcbnew.Control.layerInner5" )
1550 .Scope( AS_GLOBAL )
1552 .LegacyHotkeyName( "Switch to Inner layer 5" )
1553 .FriendlyName( _( "Switch to Inner Layer 5" ) )
1554 .Flags( AF_NOTIFY )
1555 .Parameter( In5_Cu ) );
1556
1558 .Name( "pcbnew.Control.layerInner6" )
1559 .Scope( AS_GLOBAL )
1561 .LegacyHotkeyName( "Switch to Inner layer 6" )
1562 .FriendlyName( _( "Switch to Inner Layer 6" ) )
1563 .Flags( AF_NOTIFY )
1564 .Parameter( In6_Cu ) );
1565
1567 .Name( "pcbnew.Control.layerInner7" )
1568 .Scope( AS_GLOBAL )
1570 .FriendlyName( _( "Switch to Inner Layer 7" ) )
1571 .Flags( AF_NOTIFY )
1572 .Parameter( In7_Cu ) );
1573
1575 .Name( "pcbnew.Control.layerInner8" )
1576 .Scope( AS_GLOBAL )
1578 .FriendlyName( _( "Switch to Inner Layer 8" ) )
1579 .Flags( AF_NOTIFY )
1580 .Parameter( In8_Cu ) );
1581
1583 .Name( "pcbnew.Control.layerInner9" )
1584 .Scope( AS_GLOBAL )
1586 .FriendlyName( _( "Switch to Inner Layer 9" ) )
1587 .Flags( AF_NOTIFY )
1588 .Parameter( In9_Cu ) );
1589
1591 .Name( "pcbnew.Control.layerInner10" )
1592 .Scope( AS_GLOBAL )
1594 .FriendlyName( _( "Switch to Inner Layer 10" ) )
1595 .Flags( AF_NOTIFY )
1596 .Parameter( In10_Cu ) );
1597
1599 .Name( "pcbnew.Control.layerInner11" )
1600 .Scope( AS_GLOBAL )
1602 .FriendlyName( _( "Switch to Inner Layer 11" ) )
1603 .Flags( AF_NOTIFY )
1604 .Parameter( In11_Cu ) );
1605
1607 .Name( "pcbnew.Control.layerInner12" )
1608 .Scope( AS_GLOBAL )
1610 .FriendlyName( _( "Switch to Inner Layer 12" ) )
1611 .Flags( AF_NOTIFY )
1612 .Parameter( In12_Cu ) );
1613
1615 .Name( "pcbnew.Control.layerInner13" )
1616 .Scope( AS_GLOBAL )
1618 .FriendlyName( _( "Switch to Inner Layer 13" ) )
1619 .Flags( AF_NOTIFY )
1620 .Parameter( In13_Cu ) );
1621
1623 .Name( "pcbnew.Control.layerInner14" )
1624 .Scope( AS_GLOBAL )
1626 .FriendlyName( _( "Switch to Inner Layer 14" ) )
1627 .Flags( AF_NOTIFY )
1628 .Parameter( In14_Cu ) );
1629
1631 .Name( "pcbnew.Control.layerInner15" )
1632 .Scope( AS_GLOBAL )
1634 .FriendlyName( _( "Switch to Inner Layer 15" ) )
1635 .Flags( AF_NOTIFY )
1636 .Parameter( In15_Cu ) );
1637
1639 .Name( "pcbnew.Control.layerInner16" )
1640 .Scope( AS_GLOBAL )
1642 .FriendlyName( _( "Switch to Inner Layer 16" ) )
1643 .Flags( AF_NOTIFY )
1644 .Parameter( In16_Cu ) );
1645
1647 .Name( "pcbnew.Control.layerInner17" )
1648 .Scope( AS_GLOBAL )
1650 .FriendlyName( _( "Switch to Inner Layer 17" ) )
1651 .Flags( AF_NOTIFY )
1652 .Parameter( In17_Cu ) );
1653
1655 .Name( "pcbnew.Control.layerInner18" )
1656 .Scope( AS_GLOBAL )
1658 .FriendlyName( _( "Switch to Inner Layer 18" ) )
1659 .Flags( AF_NOTIFY )
1660 .Parameter( In18_Cu ) );
1661
1663 .Name( "pcbnew.Control.layerInner19" )
1664 .Scope( AS_GLOBAL )
1666 .FriendlyName( _( "Switch to Inner Layer 19" ) )
1667 .Flags( AF_NOTIFY )
1668 .Parameter( In19_Cu ) );
1669
1671 .Name( "pcbnew.Control.layerInner20" )
1672 .Scope( AS_GLOBAL )
1674 .FriendlyName( _( "Switch to Inner Layer 20" ) )
1675 .Flags( AF_NOTIFY )
1676 .Parameter( In20_Cu ) );
1677
1679 .Name( "pcbnew.Control.layerInner21" )
1680 .Scope( AS_GLOBAL )
1682 .FriendlyName( _( "Switch to Inner Layer 21" ) )
1683 .Flags( AF_NOTIFY )
1684 .Parameter( In21_Cu ) );
1685
1687 .Name( "pcbnew.Control.layerInner22" )
1688 .Scope( AS_GLOBAL )
1690 .FriendlyName( _( "Switch to Inner Layer 22" ) )
1691 .Flags( AF_NOTIFY )
1692 .Parameter( In22_Cu ) );
1693
1695 .Name( "pcbnew.Control.layerInner23" )
1696 .Scope( AS_GLOBAL )
1698 .FriendlyName( _( "Switch to Inner Layer 23" ) )
1699 .Flags( AF_NOTIFY )
1700 .Parameter( In23_Cu ) );
1701
1703 .Name( "pcbnew.Control.layerInner24" )
1704 .Scope( AS_GLOBAL )
1706 .FriendlyName( _( "Switch to Inner Layer 24" ) )
1707 .Flags( AF_NOTIFY )
1708 .Parameter( In24_Cu ) );
1709
1711 .Name( "pcbnew.Control.layerInner25" )
1712 .Scope( AS_GLOBAL )
1714 .FriendlyName( _( "Switch to Inner Layer 25" ) )
1715 .Flags( AF_NOTIFY )
1716 .Parameter( In25_Cu ) );
1717
1719 .Name( "pcbnew.Control.layerInner26" )
1720 .Scope( AS_GLOBAL )
1722 .FriendlyName( _( "Switch to Inner Layer 26" ) )
1723 .Flags( AF_NOTIFY )
1724 .Parameter( In26_Cu ) );
1725
1727 .Name( "pcbnew.Control.layerInner27" )
1728 .Scope( AS_GLOBAL )
1730 .FriendlyName( _( "Switch to Inner Layer 27" ) )
1731 .Flags( AF_NOTIFY )
1732 .Parameter( In27_Cu ) );
1733
1735 .Name( "pcbnew.Control.layerInner28" )
1736 .Scope( AS_GLOBAL )
1738 .FriendlyName( _( "Switch to Inner Layer 28" ) )
1739 .Flags( AF_NOTIFY )
1740 .Parameter( In28_Cu ) );
1741
1743 .Name( "pcbnew.Control.layerInner29" )
1744 .Scope( AS_GLOBAL )
1746 .FriendlyName( _( "Switch to Inner Layer 29" ) )
1747 .Flags( AF_NOTIFY )
1748 .Parameter( In29_Cu ) );
1749
1751 .Name( "pcbnew.Control.layerInner30" )
1752 .Scope( AS_GLOBAL )
1754 .FriendlyName( _( "Switch to Inner Layer 30" ) )
1755 .Flags( AF_NOTIFY )
1756 .Parameter( In30_Cu ) );
1757
1759 .Name( "pcbnew.Control.layerBottom" )
1760 .Scope( AS_GLOBAL )
1762 .DefaultHotkey( WXK_PAGEDOWN )
1763 .LegacyHotkeyName( "Switch to Copper (B.Cu) layer" )
1764 .FriendlyName( _( "Switch to Copper (B.Cu) Layer" ) )
1765 .Flags( AF_NOTIFY )
1766 .Parameter( B_Cu ) );
1767
1769 .Name( "pcbnew.Control.layerNext" )
1770 .Scope( AS_GLOBAL )
1771 .DefaultHotkey( '+' )
1772 .LegacyHotkeyName( "Switch to Next Layer" )
1773 .FriendlyName( _( "Switch to Next Layer" ) )
1774 .Flags( AF_NOTIFY ) );
1775
1777 .Name( "pcbnew.Control.layerPrev" )
1778 .Scope( AS_GLOBAL )
1779 .DefaultHotkey( '-' )
1780 .LegacyHotkeyName( "Switch to Previous Layer" )
1781 .FriendlyName( _( "Switch to Previous Layer" ) )
1782 .Flags( AF_NOTIFY ) );
1783
1785 .Name( "pcbnew.Control.layerToggle" )
1786 .Scope( AS_GLOBAL )
1787 .DefaultHotkey( 'V' )
1788 .LegacyHotkeyName( "Add Through Via" )
1789 .FriendlyName( _( "Toggle Layer" ) )
1790 .Tooltip( _( "Switch between layers in active layer pair" ) )
1791 .Flags( AF_NOTIFY ) );
1792
1794 .Name( "pcbnew.Control.layerAlphaInc" )
1795 .Scope( AS_GLOBAL )
1796 .DefaultHotkey( '}' )
1797 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1798 .LegacyHotkeyName( "Increment Layer Transparency (Modern Toolset only)" )
1799 .FriendlyName( _( "Increase Layer Opacity" ) )
1800 .Tooltip( _( "Make the current layer less transparent" ) )
1801 .Icon( BITMAPS::contrast_mode ) );
1802
1804 .Name( "pcbnew.Control.layerAlphaDec" )
1805 .Scope( AS_GLOBAL )
1806 .DefaultHotkey( '{' )
1807 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1808 .LegacyHotkeyName( "Decrement Layer Transparency (Modern Toolset only)" )
1809 .FriendlyName( _( "Decrease Layer Opacity" ) )
1810 .Tooltip( _( "Make the current layer more transparent" ) )
1811 .Icon( BITMAPS::contrast_mode ) );
1812
1814 .Name( "pcbnew.Control.layerChanged" )
1815 .Scope( AS_GLOBAL )
1816 .Flags( AF_NOTIFY ) );
1817
1818//Show board statistics tool
1820 .Name( "pcbnew.InspectionTool.ShowBoardStatistics" )
1821 .Scope( AS_GLOBAL )
1822 .FriendlyName( _( "Show Board Statistics" ) )
1823 .Tooltip( _( "Shows board statistics" ) ) );
1824
1826 .Name( "pcbnew.InspectionTool.InspectClearance" )
1827 .Scope( AS_GLOBAL )
1828 .FriendlyName( _( "Clearance Resolution" ) )
1829 .Tooltip( _( "Show clearance resolution for the active layer between two selected objects" ) )
1830 .Icon( BITMAPS::mw_add_gap ) );
1831
1833 .Name( "pcbnew.InspectionTool.InspectConstraints" )
1834 .Scope( AS_GLOBAL )
1835 .FriendlyName( _( "Constraints Resolution" ) )
1836 .Tooltip( _( "Show constraints resolution for the selected object" ) )
1837 .Icon( BITMAPS::mw_add_gap ) );
1838
1840 .Name( "pcbnew.InspectionTool.DiffFootprint" )
1841 .Scope( AS_GLOBAL )
1842 .FriendlyName( _( "Compare Footprint with Library" ) )
1843 .Tooltip( _( "Show differences between board footprint and its library equivalent" ) )
1844 .Icon( BITMAPS::library ) );
1845
1847 .Name( "pcbnew.InspectionTool.ShowFootprintAssociations" )
1848 .Scope( AS_GLOBAL )
1849 .FriendlyName( _( "Show Footprint Associations" ) )
1850 .Tooltip( _( "Show footprint library and schematic symbol associations" ) )
1852
1853//Geographic re-annotation tool
1855 .Name( "pcbnew.ReannotateTool.ShowReannotateDialog" )
1856 .Scope( AS_GLOBAL )
1857 .FriendlyName( _( "Geographical Reannotate..." ) )
1858 .Tooltip( _( "Reannotate PCB in geographical order" ) )
1859 .Icon( BITMAPS::annotate ) );
1860
1862 .Name( "pcbnew.Control.repairBoard" )
1863 .Scope( AS_GLOBAL )
1864 .FriendlyName( _( "Repair Board" ) )
1865 .Tooltip( _( "Run various diagnostics and attempt to repair board" ) )
1866 .Icon( BITMAPS::rescue )
1867 .Parameter( false ) ); // Don't repair quietly
1868
1870 .Name( "pcbnew.ModuleEditor.repairFootprint" )
1871 .Scope( AS_GLOBAL )
1872 .FriendlyName( _( "Repair Footprint" ) )
1873 .Tooltip( _( "Run various diagnostics and attempt to repair footprint" ) ) );
1874
1875
1876// PLACEMENT_TOOL
1877//
1879 .Name( "pcbnew.AlignAndDistribute.alignTop" )
1880 .Scope( AS_GLOBAL )
1881 .FriendlyName( _( "Align to Top" ) )
1882 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
1883 .Icon( BITMAPS::align_items_top ) );
1884
1886 .Name( "pcbnew.AlignAndDistribute.alignBottom" )
1887 .Scope( AS_GLOBAL )
1888 .FriendlyName( _( "Align to Bottom" ) )
1889 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
1890 .Icon( BITMAPS::align_items_bottom ) );
1891
1893 .Name( "pcbnew.AlignAndDistribute.alignLeft" )
1894 .Scope( AS_GLOBAL )
1895 .FriendlyName( _( "Align to Left" ) )
1896 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
1897 .Icon( BITMAPS::align_items_left ) );
1898
1900 .Name( "pcbnew.AlignAndDistribute.alignRight" )
1901 .Scope( AS_GLOBAL )
1902 .FriendlyName( _( "Align to Right" ) )
1903 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
1904 .Icon( BITMAPS::align_items_right ) );
1905
1907 .Name( "pcbnew.AlignAndDistribute.alignCenterY" )
1908 .Scope( AS_GLOBAL )
1909 .FriendlyName( _( "Align to Vertical Center" ) )
1910 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
1911 .Icon( BITMAPS::align_items_center ) );
1912
1914 .Name( "pcbnew.AlignAndDistribute.alignCenterX" )
1915 .Scope( AS_GLOBAL )
1916 .FriendlyName( _( "Align to Horizontal Center" ) )
1917 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
1918 .Icon( BITMAPS::align_items_middle ) );
1919
1921 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyCenters" )
1922 .Scope( AS_GLOBAL )
1923 .FriendlyName( _( "Distribute Horizontally by Centers" ) )
1924 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item"
1925 "so that the item centers are equally distributed" ) )
1927
1929 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyGaps" )
1930 .Scope( AS_GLOBAL )
1931 .FriendlyName( _( "Distribute Horizontally with Even Gaps" ) )
1932 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
1933 "so that the gaps between items are equal" ) )
1935
1937 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyGaps" )
1938 .Scope( AS_GLOBAL )
1939 .FriendlyName( _( "Distribute Vertically with Even Gaps" ) )
1940 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
1941 "so that the gaps between items are equal" ) )
1943
1945 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyCenters" )
1946 .Scope( AS_GLOBAL )
1947 .FriendlyName( _( "Distribute Vertically by Centers" ) )
1948 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
1949 "so that the item centers are equally distributed" ) )
1951
1952// PCB_POINT_EDITOR
1953//
1955 .Name( "pcbnew.PointEditor.addCorner" )
1956 .Scope( AS_GLOBAL )
1957#ifdef __WXMAC__
1958 .DefaultHotkey( WXK_F1 )
1959#else
1960 .DefaultHotkey( WXK_INSERT )
1961#endif
1962 .FriendlyName( _( "Create Corner" ) )
1963 .Tooltip( _( "Create a corner" ) )
1964 .Icon( BITMAPS::add_corner ) );
1965
1967 .Name( "pcbnew.PointEditor.removeCorner" )
1968 .Scope( AS_GLOBAL )
1969 .FriendlyName( _( "Remove Corner" ) )
1970 .Tooltip( _( "Remove corner" ) )
1971 .Icon( BITMAPS::delete_cursor ) );
1972
1974 .Name( "pcbnew.PointEditor.arcKeepCenter" )
1975 .Scope( AS_GLOBAL )
1976 .FriendlyName( _( "Keep Arc Center, Adjust Radius" ) )
1977 .Tooltip( _( "Switch arc editing mode to keep center, adjust radius and endpoints" ) )
1979
1981 .Name( "pcbnew.PointEditor.arcKeepEndpoint" )
1982 .Scope( AS_GLOBAL )
1983 .FriendlyName( _( "Keep Arc Endpoints or Direction of Starting Point" ) )
1984 .Tooltip( _( "Switch arc editing mode to keep endpoints, or to keep direction of the other point" ) )
1986
1987
1988// GROUP_TOOL
1989//
1991 .Name( "pcbnew.Groups.groupProperties" )
1992 .Scope( AS_GLOBAL ) );
1993
1995 .Name( "pcbnew.Groups.selectNewGroupMember" )
1996 .Scope( AS_GLOBAL ) );
1997
1998
1999
2000// POSITION_RELATIVE_TOOL
2001//
2003 .Name( "pcbnew.PositionRelative.positionRelative" )
2004 .Scope( AS_GLOBAL )
2005 .DefaultHotkey( MD_SHIFT + 'P' )
2006 .LegacyHotkeyName( "Position Item Relative" )
2007 .FriendlyName( _( "Position Relative To..." ) )
2008 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another" ) )
2009 .Icon( BITMAPS::move_relative ) );
2010
2012 .Name( "pcbnew.PositionRelative.selectpositionRelativeItem" )
2013 .Scope( AS_GLOBAL ) );
2014
2015
2016// PCB_SELECTION_TOOL
2017//
2019 .Name( "pcbnew.InteractiveSelection" )
2020 .Scope( AS_GLOBAL )
2021 // No description, not shown anywhere
2022 .Flags( AF_ACTIVATE ) );
2023
2025 .Name( "pcbnew.InteractiveSelection.Cursor" )
2026 .Scope( AS_GLOBAL )
2027 .Parameter<CLIENT_SELECTION_FILTER>( nullptr ) );
2028
2030 .Name( "pcbnew.InteractiveSelection.SelectItem" )
2031 .Scope( AS_GLOBAL ) );
2032
2034 .Name( "pcbnew.InteractiveSelection.SelectItems" )
2035 .Scope( AS_GLOBAL ) );
2036
2038 .Name( "pcbnew.InteractiveSelection.UnselectItem" )
2039 .Scope( AS_GLOBAL ) );
2040
2042 .Name( "pcbnew.InteractiveSelection.UnselectItems" )
2043 .Scope( AS_GLOBAL ) );
2044
2046 .Name( "pcbnew.InteractiveSelection.ReselectItem" )
2047 .Scope( AS_GLOBAL ) );
2048
2050 .Name( "pcbnew.InteractiveSelection.Clear" )
2051 .Scope( AS_GLOBAL ) );
2052
2054 .Name( "pcbnew.InteractiveSelection.SelectionMenu" )
2055 .Scope( AS_GLOBAL ) );
2056
2058 .Name( "pcbnew.InteractiveSelection.SelectConnection" )
2059 .Scope( AS_GLOBAL )
2060 .DefaultHotkey( 'U' )
2061 .LegacyHotkeyName( "Select Single Track" )
2062 .FriendlyName( _( "Select/Expand Connection" ) )
2063 .Tooltip( _( "Selects a connection or expands an existing selection to junctions, pads, or entire connections" ) )
2064 .Icon( BITMAPS::add_tracks ) );
2065
2067 .Name( "pcbnew.InteractiveSelection.unrouteSelected" )
2068 .Scope( AS_GLOBAL )
2069 .FriendlyName( _( "Unroute Selected" ) )
2070 .Tooltip( _( "Unroutes selected items to the nearest pad." ) )
2071 .Icon( BITMAPS::general_deletions ) );
2072
2074 .Name( "pcbnew.InteractiveSelection.SyncSelection" )
2075 .Scope( AS_GLOBAL ) );
2076
2078 .Name( "pcbnew.InteractiveSelection.SyncSelectionWithNets" )
2079 .Scope( AS_GLOBAL ) );
2080
2082 .Name( "pcbnew.InteractiveSelection.SelectNet" )
2083 .Scope( AS_GLOBAL )
2084 .FriendlyName( _( "Select All Tracks in Net" ) )
2085 .Tooltip( _( "Selects all tracks & vias belonging to the same net." ) )
2086 .Parameter<int>( 0 ) );
2087
2089 .Name( "pcbnew.InteractiveSelection.DeselectNet" )
2090 .Scope( AS_GLOBAL )
2091 .FriendlyName( _( "Deselect All Tracks in Net" ) )
2092 .Tooltip( _( "Deselects all tracks & vias belonging to the same net." ) )
2093 .Parameter<int>( 0 ) );
2094
2096 .Name( "pcbnew.InteractiveSelection.SelectUnconnected" )
2097 .Scope( AS_GLOBAL )
2098 .DefaultHotkey( 'O' )
2099 .FriendlyName( _( "Select All Unconnected Footprints" ) )
2100 .Tooltip( _( "Selects all unconnected footprints belonging to each selected net." ) ) );
2101
2103 .Name( "pcbnew.InteractiveSelection.GrabUnconnected" )
2104 .Scope( AS_GLOBAL )
2105 .DefaultHotkey( MD_SHIFT + 'O' )
2106 .FriendlyName( _( "Grab Nearest Unconnected Footprints" ) )
2107 .Tooltip( _( "Selects and initiates moving the nearest unconnected footprint on each selected net." ) ) );
2108
2110 .Name( "pcbnew.InteractiveSelection.SelectOnSheet" )
2111 .Scope( AS_GLOBAL )
2112 .FriendlyName( _( "Sheet" ) )
2113 .Tooltip( _( "Selects all footprints and tracks in the schematic sheet" ) )
2114 .Icon( BITMAPS::select_same_sheet ) );
2115
2117 .Name( "pcbnew.InteractiveSelection.SelectSameSheet" )
2118 .Scope( AS_GLOBAL )
2119 .FriendlyName( _( "Items in Same Hierarchical Sheet" ) )
2120 .Tooltip( _( "Selects all footprints and tracks in the same schematic sheet" ) )
2121 .Icon( BITMAPS::select_same_sheet ) );
2122
2124 .Name( "pcbnew.InteractiveSelection.SelectOnSchematic" )
2125 .Scope( AS_GLOBAL )
2126 .FriendlyName( _( "Select on Schematic" ) )
2127 .Tooltip( _( "Selects corresponding items in Schematic editor" ) )
2128 .Icon( BITMAPS::select_same_sheet ) );
2129
2131 .Name( "pcbnew.InteractiveSelection.FilterSelection" )
2132 .Scope( AS_GLOBAL )
2133 .FriendlyName( _( "Filter Selected Items..." ) )
2134 .Tooltip( _( "Remove items from the selection by type" ) )
2135 .Icon( BITMAPS::filter ) );
2136
2137
2138// ZONE_FILLER_TOOL
2139//
2141 .Name( "pcbnew.ZoneFiller.zoneFill" )
2142 .Scope( AS_GLOBAL )
2143 .FriendlyName( _( "Draft Fill Selected Zone(s)" ) )
2144 .Tooltip( _( "Update copper fill of selected zone(s) without regard to other interacting zones" ) )
2145 .Icon( BITMAPS::fill_zone )
2146 .Parameter<ZONE*>( nullptr ) );
2147
2149 .Name( "pcbnew.ZoneFiller.zoneFillAll" )
2150 .Scope( AS_GLOBAL )
2151 .DefaultHotkey( 'B' )
2152 .LegacyHotkeyName( "Fill or Refill All Zones" )
2153 .FriendlyName( _( "Fill All Zones" ) )
2154 .Tooltip( _( "Update copper fill of all zones" ) )
2155 .Icon( BITMAPS::fill_zone ) );
2156
2158 .Name( "pcbnew.ZoneFiller.zoneFillDirty" )
2159 .Scope( AS_CONTEXT ) );
2160
2162 .Name( "pcbnew.ZoneFiller.zoneUnfill" )
2163 .Scope( AS_GLOBAL )
2164 .FriendlyName( _( "Unfill Selected Zone(s)" ) )
2165 .Tooltip( _( "Remove copper fill from selected zone(s)" ) )
2166 .Icon( BITMAPS::zone_unfill ) );
2167
2169 .Name( "pcbnew.ZoneFiller.zoneUnfillAll" )
2170 .Scope( AS_GLOBAL )
2171 .DefaultHotkey( MD_CTRL + 'B' )
2172 .LegacyHotkeyName( "Remove Filled Areas in All Zones" )
2173 .FriendlyName( _( "Unfill All Zones" ) )
2174 .Tooltip( _( "Remove copper fill from all zones" ) )
2175 .Icon( BITMAPS::zone_unfill ) );
2176
2177
2178// AUTOPLACER_TOOL
2179//
2181 .Name( "pcbnew.Autoplacer.autoplaceSelected" )
2182 .Scope( AS_GLOBAL )
2183 .FriendlyName( _( "Place Selected Footprints" ) )
2184 .Tooltip( _( "Performs automatic placement of selected components" ) ) );
2185
2187 .Name( "pcbnew.Autoplacer.autoplaceOffboard" )
2188 .Scope( AS_GLOBAL )
2189 .FriendlyName( _( "Place Off-Board Footprints" ) )
2190 .Tooltip( _( "Performs automatic placement of components outside board area" ) ) );
2191
2192
2193// ROUTER_TOOL
2194//
2196 .Name( "pcbnew.InteractiveRouter.SingleTrack" )
2197 .Scope( AS_GLOBAL )
2198 .DefaultHotkey( 'X' )
2199 .LegacyHotkeyName( "Add New Track" )
2200 .FriendlyName( _( "Route Single Track" ) )
2201 .Tooltip( _( "Route tracks" ) )
2202 .Icon( BITMAPS::add_tracks )
2203 .Flags( AF_ACTIVATE )
2204 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2205
2207 .Name( "pcbnew.InteractiveRouter.DiffPair" )
2208 .Scope( AS_GLOBAL )
2209 .DefaultHotkey( '6' )
2210 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2211 .LegacyHotkeyName( "Route Differential Pair (Modern Toolset only)" )
2212 .FriendlyName( _( "Route Differential Pair" ) )
2213 .Tooltip( _( "Route differential pairs" ) )
2214 .Icon( BITMAPS::ps_diff_pair )
2215 .Flags( AF_ACTIVATE )
2216 .Parameter( PNS::PNS_MODE_ROUTE_DIFF_PAIR ) );
2217
2219 .Name( "pcbnew.InteractiveRouter.SettingsDialog" )
2220 .Scope( AS_GLOBAL )
2221 .DefaultHotkey( MD_CTRL + '<' )
2222 .LegacyHotkeyName( "Routing Options" )
2223 .FriendlyName( _( "Interactive Router Settings..." ) )
2224 .Tooltip( _( "Open Interactive Router settings" ) )
2225 .Icon( BITMAPS::tools ) );
2226
2228 .Name( "pcbnew.InteractiveRouter.DiffPairDialog" )
2229 .Scope( AS_GLOBAL )
2230 .FriendlyName( _( "Differential Pair Dimensions..." ) )
2231 .Tooltip( _( "Open Differential Pair Dimension settings" ) )
2232 .Icon( BITMAPS::ps_diff_pair_gap ) );
2233
2235 .Name( "pcbnew.InteractiveRouter.HighlightMode" )
2236 .Scope( AS_GLOBAL )
2237 .FriendlyName( _( "Router Highlight Mode" ) )
2238 .Tooltip( _( "Switch router to highlight mode" ) )
2239 .Flags( AF_NONE )
2240 .Parameter( PNS::RM_MarkObstacles ) );
2241
2243 .Name( "pcbnew.InteractiveRouter.ShoveMode" )
2244 .Scope( AS_GLOBAL )
2245 .FriendlyName( _( "Router Shove Mode" ) )
2246 .Tooltip( _( "Switch router to shove mode" ) )
2247 .Flags( AF_NONE )
2248 .Parameter( PNS::RM_Shove ) );
2249
2251 .Name( "pcbnew.InteractiveRouter.WalkaroundMode" )
2252 .Scope( AS_GLOBAL )
2253 .FriendlyName( _( "Router Walkaround Mode" ) )
2254 .Tooltip( _( "Switch router to walkaround mode" ) )
2255 .Flags( AF_NONE )
2256 .Parameter( PNS::RM_Walkaround ) );
2257
2259 .Name( "pcbnew.InteractiveRouter.CycleRouterMode" )
2260 .Scope( AS_GLOBAL )
2261 .FriendlyName( _( "Cycle Router Mode" ) )
2262 .Tooltip( _( "Cycle router to the next mode" ) ) );
2263
2265 .Name( "pcbnew.InteractiveRouter.SelectLayerPair" )
2266 .Scope( AS_GLOBAL )
2267 .FriendlyName( _( "Set Layer Pair..." ) )
2268 .Tooltip( _( "Change active layer pair for routing" ) )
2270 .Flags( AF_ACTIVATE ) );
2271
2273 .Name( "pcbnew.LengthTuner.TuneSingleTrack" )
2274 .Scope( AS_GLOBAL )
2275 .DefaultHotkey( '7' )
2276 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2277 .LegacyHotkeyName( "Tune Single Track (Modern Toolset only)" )
2278 .FriendlyName( _( "Tune Length of a Single Track" ) )
2279 .Tooltip( _( "Tune length of a single track" ) )
2281 .Flags( AF_ACTIVATE )
2282 .Parameter( PNS::PNS_MODE_TUNE_SINGLE ) );
2283
2285 .Name( "pcbnew.LengthTuner.TuneDiffPair" )
2286 .Scope( AS_GLOBAL )
2287 .DefaultHotkey( '8' )
2288 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2289 .LegacyHotkeyName( "Tune Differential Pair Length (Modern Toolset only)" )
2290 .FriendlyName( _( "Tune Length of a Differential Pair" ) )
2291 .Tooltip( _( "Tune length of a differential pair" ) )
2293 .Flags( AF_ACTIVATE )
2294 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR ) );
2295
2297 .Name( "pcbnew.LengthTuner.TuneDiffPairSkew" )
2298 .Scope( AS_GLOBAL )
2299 .DefaultHotkey( '9' )
2300 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2301 .LegacyHotkeyName( "Tune Differential Pair Skew (Modern Toolset only)" )
2302 .FriendlyName( _( "Tune Skew of a Differential Pair" ) )
2303 .Tooltip( _( "Tune skew of a differential pair" ) )
2305 .Flags( AF_ACTIVATE )
2306 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW ) );
2307
2309 .Name( "pcbnew.InteractiveRouter.InlineDrag" )
2310 .Scope( AS_CONTEXT )
2311 .Parameter<int>( PNS::DM_ANY ) );
2312
2314 .Name( "pcbnew.InteractiveRouter.UndoLastSegment" )
2315 .Scope( AS_CONTEXT )
2316 .DefaultHotkey( WXK_BACK )
2317 .FriendlyName( _( "Undo Last Segment" ) )
2318 .Tooltip( _( "Walks the current track back one segment." ) ) );
2319
2321 .Name( "pcbnew.InteractiveRouter.ContinueFromEnd" )
2322 .Scope( AS_CONTEXT )
2323 .DefaultHotkey( MD_CTRL + 'E' )
2324 .FriendlyName( _( "Route From Other End" ) )
2325 .Tooltip( _( "Commits current segments and starts next segment from nearest ratsnest end." ) ) );
2326
2328 .Name( "pcbnew.InteractiveRouter.AttemptFinish" )
2329 .Scope( AS_CONTEXT )
2330 .DefaultHotkey( 'F' )
2331 .FriendlyName( _( "Attempt Finish" ) )
2332 .Tooltip( _( "Attempts to complete current route to nearest ratsnest end." ) )
2333 .Parameter<bool*>( nullptr ) );
2334
2336 .Name( "pcbnew.InteractiveRouter.RouteSelected" )
2337 .Scope( AS_GLOBAL )
2338 .DefaultHotkey( MD_SHIFT + 'X' )
2339 .FriendlyName( _( "Route Selected" ) )
2340 .Tooltip( _( "Sequentially route selected items from ratsnest anchor." ) )
2341 .Flags( AF_ACTIVATE )
2342 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2343
2345 .Name( "pcbnew.InteractiveRouter.RouteSelectedFromEnd" )
2346 .Scope( AS_GLOBAL )
2347 .DefaultHotkey( MD_SHIFT + 'E' )
2348 .FriendlyName( _( "Route Selected From Other End" ) )
2349 .Tooltip( _( "Sequentially route selected items from other end of ratsnest anchor." ) )
2350 .Flags( AF_ACTIVATE )
2351 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2352
2354 .Name( "pcbnew.InteractiveRouter.Autoroute" )
2355 .Scope( AS_GLOBAL )
2356 .DefaultHotkey( MD_SHIFT + 'F' )
2357 .FriendlyName( _( "Attempt Finish Selected (Autoroute)" ) )
2358 .Tooltip( _( "Sequentially attempt to automatically route all selected pads." ) )
2359 .Flags( AF_ACTIVATE )
2360 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2361
2363 .Name( "pcbnew.InteractiveRouter.BreakTrack" )
2364 .Scope( AS_GLOBAL )
2365 .FriendlyName( _( "Break Track" ) )
2366 .Tooltip( _( "Splits the track segment into two segments connected at the cursor position." ) )
2367 .Icon( BITMAPS::break_line ) );
2368
2370 .Name( "pcbnew.InteractiveRouter.Drag45Degree" )
2371 .Scope( AS_GLOBAL )
2372 .DefaultHotkey( 'D' )
2373 .LegacyHotkeyName( "Drag Track Keep Slope" )
2374 .FriendlyName( _( "Drag 45 Degree Mode" ) )
2375 .Tooltip( _( "Drags the track segment while keeping connected tracks at 45 degrees." ) )
2377
2379 .Name( "pcbnew.InteractiveRouter.DragFreeAngle" )
2380 .Scope( AS_GLOBAL )
2381 .DefaultHotkey( 'G' )
2382 .LegacyHotkeyName( "Drag Item" )
2383 .FriendlyName( _( "Drag Free Angle" ) )
2384 .Tooltip( _( "Drags the nearest joint in the track without restricting the track angle." ) )
2385 .Icon( BITMAPS::drag_segment ) );
2386
2387
2388// GENERATOR_TOOL
2389//
2390
2392 .Name( "pcbnew.Generator.regenerateAllTuning" )
2393 .Scope( AS_GLOBAL )
2394 .FriendlyName( _( "Update All Tuning Patterns" ) )
2395 .Tooltip( _( "Attempt to re-tune existing tuning patterns within their bounds" ) )
2397 .Parameter( wxString( wxS( "tuning_pattern" ) ) ) );
2398
2400 .Name( "pcbnew.Generator.regenerateAll" )
2401 .Scope( AS_GLOBAL )
2402 .FriendlyName( _( "Rebuild All Generators" ) )
2403 .Tooltip( _( "Rebuilds geometry of all generators" ) )
2404 .Icon( BITMAPS::refresh )
2405 .Parameter( wxString( wxS( "*" ) ) ) );
2406
2408 .Name( "pcbnew.Generator.regenerateSelected" )
2409 .Scope( AS_GLOBAL )
2410 .FriendlyName( _( "Rebuild Selected Generators" ) )
2411 .Tooltip( _( "Rebuilds geometry of selected generator(s)" ) )
2412 .Icon( BITMAPS::refresh ) );
2413
2414
2416 .Name( "pcbnew.Generator.genStartEdit" )
2417 .Scope( AS_CONTEXT ) );
2418
2420 .Name( "pcbnew.Generator.genUpdateEdit" )
2421 .Scope( AS_CONTEXT ) );
2422
2424 .Name( "pcbnew.Generator.genPushEdit" )
2425 .Scope( AS_CONTEXT ) );
2426
2428 .Name( "pcbnew.Generator.genRevertEdit" )
2429 .Scope( AS_CONTEXT ) );
2430
2432 .Name( "pcbnew.Generator.genRemove" )
2433 .Scope( AS_CONTEXT ) );
2434
2435
2437 .Name( "pcbnew.Generator.showManager" )
2438 .Scope( AS_GLOBAL )
2439 .FriendlyName( _( "Generators Manager" ) )
2440 .Tooltip( _( "Show a manager dialog for Generator objects" ) )
2441 .Icon( BITMAPS::pin_table ) );
2442
2443
2444// LENGTH_TUNER_TOOL
2445//
2447 .Name( "pcbnew.LengthTuner.Settings" )
2448 .Scope( AS_GLOBAL )
2449 .DefaultHotkey( MD_CTRL + 'L' )
2450 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2451 .LegacyHotkeyName( "Length Tuning Settings (Modern Toolset only)" )
2452 .MenuText( _( "Length Tuning Settings..." ) )
2453 .Tooltip( _( "Displays tuning pattern properties dialog" ) )
2455
2457 .Name( "pcbnew.Control.DdAppendBoard" )
2458 .Scope( AS_GLOBAL ) );
2459
2460
2462 .Name( "pcbnew.Control.ddImportFootprint" )
2463 .Scope( AS_GLOBAL ) );
2464
2465
2467 "common.Interactive.snappingModeChangedByKey" );
@ KEEP_ENDPOINTS_OR_START_DIRECTION
@ KEEP_CENTER_ADJUST_ANGLE_RADIUS
@ new_footprint
@ copy_pad_settings
@ add_zone_cutout
@ cleanup_tracks_and_vias
@ show_mod_edge
@ general_deletions
@ align_items_bottom
@ hide_ratsnest
@ align_items_left
@ show_zone_outline_only
@ push_pad_settings
@ distribute_horizontal_centers
@ distribute_vertical_centers
@ delete_cursor
@ ps_diff_pair_tune_length
@ module_options
@ add_graphical_polygon
@ move_exactly
@ align_items_middle
@ distribute_horizontal_gaps
@ add_radial_dimension
@ ps_tune_length
@ zone_duplicate
@ import_module
@ ps_diff_pair
@ router_len_tuner_dist_incr
@ drag_segment
@ module_editor
@ subtract_polygons
@ align_items_top
@ export_module
@ pad_enumerate
@ move_relative
@ curved_ratsnest
@ router_len_tuner_dist_decr
@ add_aligned_dimension
@ general_ratsnest
@ add_rectangle
@ mw_add_stub_arc
@ align_items_right
@ apply_pad_settings
@ mw_add_shape
@ icon_eeschema_24
@ add_center_dimension
@ show_ratsnest
@ drag_segment_withslope
@ width_track_via
@ merge_polygons
@ add_graphical_segments
@ intersect_polygons
@ distribute_vertical_gaps
@ ps_diff_pair_tune_phase
@ contrast_mode
@ add_orthogonal_dimension
@ add_keepout_area
@ group_ungroup
@ group_remove
@ pack_footprints
@ custom_pad_to_primitives
@ directory_open
@ show_zone_disable
@ align_items_center
@ layers_manager
@ net_highlight
@ options_board
@ show_zone_triangulation
@ router_len_tuner
@ select_layer_pair
@ router_len_tuner_amplitude_incr
@ select_same_sheet
@ router_len_tuner_setup
@ cleanup_graphics
@ module_wizard
@ import_vector
@ router_len_tuner_amplitude_decr
@ tool_ratsnest
@ edit_cmp_symb_links
@ ps_diff_pair_gap
@ CURSOR_NONE
Definition: actions.h:239
static TOOL_ACTION deleteLastPoint
Definition: pcb_actions.h:226
static TOOL_ACTION toggleHV45Mode
Definition: pcb_actions.h:512
static TOOL_ACTION editTracksAndVias
Definition: pcb_actions.h:411
static TOOL_ACTION_GROUP layerDirectSwitchActions()
static TOOL_ACTION deleteFootprint
Definition: pcb_actions.h:459
static TOOL_ACTION drawRuleArea
Definition: pcb_actions.h:218
static TOOL_ACTION layerToggle
Definition: pcb_actions.h:376
static TOOL_ACTION drag45Degree
Definition: pcb_actions.h:193
static TOOL_ACTION duplicateIncrement
Activation of the duplication tool with incrementing (e.g. pad number)
Definition: pcb_actions.h:182
static TOOL_ACTION layerInner12
Definition: pcb_actions.h:352
static TOOL_ACTION microwaveCreateGap
Definition: pcb_actions.h:501
static TOOL_ACTION recombinePad
Definition: pcb_actions.h:475
static TOOL_ACTION renameFootprint
Definition: pcb_actions.h:458
static TOOL_ACTION routerUndoLastSegment
Definition: pcb_actions.h:255
static TOOL_ACTION placeText
Definition: pcb_actions.h:203
static TOOL_ACTION layerInner8
Definition: pcb_actions.h:348
static TOOL_ACTION swapLayers
Definition: pcb_actions.h:421
static TOOL_ACTION zonesManager
Definition: pcb_actions.h:445
static TOOL_ACTION generateBOM
Definition: pcb_actions.h:435
static TOOL_ACTION pointEditorArcKeepCenter
Definition: pcb_actions.h:293
static TOOL_ACTION highlightItem
Definition: pcb_actions.h:550
static TOOL_ACTION drawOrthogonalDimension
Definition: pcb_actions.h:214
static TOOL_ACTION zoneDisplayToggle
Definition: pcb_actions.h:336
static TOOL_ACTION enumeratePads
Tool for quick pad enumeration.
Definition: pcb_actions.h:478
static TOOL_ACTION drawRectangle
Definition: pcb_actions.h:199
static TOOL_ACTION layerInner3
Definition: pcb_actions.h:343
static TOOL_ACTION layerPrev
Definition: pcb_actions.h:373
static TOOL_ACTION setAnchor
Definition: pcb_actions.h:225
static TOOL_ACTION padDisplayMode
Definition: pcb_actions.h:330
static TOOL_ACTION placeReferenceImage
Definition: pcb_actions.h:202
static TOOL_ACTION routerSettingsDialog
Activation of the Push and Shove settings dialogs.
Definition: pcb_actions.h:264
static TOOL_ACTION showRatsnest
Definition: pcb_actions.h:325
static TOOL_ACTION zoneFillAll
Definition: pcb_actions.h:397
static TOOL_ACTION layerInner2
Definition: pcb_actions.h:342
static TOOL_ACTION showLayersManager
Definition: pcb_actions.h:442
static TOOL_ACTION changeTrackWidth
Update selected tracks & vias to the current track & via dimensions.
Definition: pcb_actions.h:152
static TOOL_ACTION trackWidthDec
Definition: pcb_actions.h:387
static TOOL_ACTION routerAttemptFinish
Definition: pcb_actions.h:258
static TOOL_ACTION convertToKeepout
Definition: pcb_actions.h:571
static TOOL_ACTION toggleNetHighlight
Definition: pcb_actions.h:548
static TOOL_ACTION generateDrillFiles
Definition: pcb_actions.h:430
static TOOL_ACTION pushPadSettings
Copy the current pad's settings to other pads in the footprint or on the board.
Definition: pcb_actions.h:498
static TOOL_ACTION unrouteSelected
Removes all tracks from the selected items to the first pad.
Definition: pcb_actions.h:93
static TOOL_ACTION drawCircle
Definition: pcb_actions.h:200
static TOOL_ACTION magneticSnapAllLayers
Definition: pcb_actions.h:240
static TOOL_ACTION mirrorH
Mirroring of selected items.
Definition: pcb_actions.h:139
static TOOL_ACTION routeDiffPair
Activation of the Push and Shove router (differential pair mode)
Definition: pcb_actions.h:249
static TOOL_ACTION selectionCursor
Select a single item under the cursor position.
Definition: pcb_actions.h:65
static TOOL_ACTION generateD356File
Definition: pcb_actions.h:434
static TOOL_ACTION groupLeave
Definition: pcb_actions.h:524
static TOOL_ACTION updateFootprint
Definition: pcb_actions.h:417
static TOOL_ACTION tuneDiffPair
Definition: pcb_actions.h:252
static TOOL_ACTION convertToTracks
Definition: pcb_actions.h:574
static TOOL_ACTION alignTop
Definition: pcb_actions.h:306
static TOOL_ACTION trackViaSizeChanged
Definition: pcb_actions.h:391
static TOOL_ACTION exportSpecctraDSN
Definition: pcb_actions.h:427
static TOOL_ACTION createFootprint
Definition: pcb_actions.h:454
static TOOL_ACTION layerChanged
Definition: pcb_actions.h:381
static TOOL_ACTION trackWidthInc
Definition: pcb_actions.h:386
static TOOL_ACTION grabUnconnected
Select and move nearest unconnected footprint from ratsnest of selection.
Definition: pcb_actions.h:105
static TOOL_ACTION filterSelection
Filter the items in the current selection (invokes dialog)
Definition: pcb_actions.h:117
static TOOL_ACTION ddAppendBoard
Drag and drop.
Definition: pcb_actions.h:577
static TOOL_ACTION editFootprint
Definition: pcb_actions.h:456
static TOOL_ACTION exportFootprint
Definition: pcb_actions.h:464
static TOOL_ACTION layerInner25
Definition: pcb_actions.h:365
static TOOL_ACTION breakTrack
Break a single track into two segments at the cursor.
Definition: pcb_actions.h:191
static TOOL_ACTION pointEditorMoveMidpoint
Definition: pcb_actions.h:297
static TOOL_ACTION highlightNet
Definition: pcb_actions.h:546
static TOOL_ACTION magneticSnapActiveLayer
Snapping controls.
Definition: pcb_actions.h:239
static TOOL_ACTION generateIPC2581File
Definition: pcb_actions.h:433
static TOOL_ACTION getAndPlace
Find an item and start moving.
Definition: pcb_actions.h:563
static TOOL_ACTION drawTable
Definition: pcb_actions.h:205
static TOOL_ACTION drawTextBox
Definition: pcb_actions.h:204
static TOOL_ACTION copyPadSettings
Copy the selected pad's settings to the board design settings.
Definition: pcb_actions.h:492
static TOOL_ACTION layerAlphaDec
Definition: pcb_actions.h:375
static TOOL_ACTION unselectItem
Definition: pcb_actions.h:72
static TOOL_ACTION routerRouteSelectedFromEnd
Definition: pcb_actions.h:260
static TOOL_ACTION routerHighlightMode
Actions to enable switching modes via hotkey assignments.
Definition: pcb_actions.h:268
static TOOL_ACTION routerWalkaroundMode
Definition: pcb_actions.h:270
static TOOL_ACTION routerShoveMode
Definition: pcb_actions.h:269
static TOOL_ACTION convertToLines
Definition: pcb_actions.h:572
static TOOL_ACTION drawZoneCutout
Definition: pcb_actions.h:219
static TOOL_ACTION genPushEdit
Definition: pcb_actions.h:283
static TOOL_ACTION drawPolygon
Definition: pcb_actions.h:198
static TOOL_ACTION placePad
Activation of the drawing tool (placing a PAD)
Definition: pcb_actions.h:472
static TOOL_ACTION hideNetInRatsnest
Definition: pcb_actions.h:553
static TOOL_ACTION hideLocalRatsnest
Definition: pcb_actions.h:556
static TOOL_ACTION group
Definition: pcb_actions.h:520
static TOOL_ACTION distributeHorizontallyGaps
Definition: pcb_actions.h:313
static TOOL_ACTION zoneDisplayFilled
Definition: pcb_actions.h:332
static TOOL_ACTION layerInner24
Definition: pcb_actions.h:364
static TOOL_ACTION viaSizeDec
Definition: pcb_actions.h:389
static TOOL_ACTION showNetInRatsnest
Definition: pcb_actions.h:554
static TOOL_ACTION drawRadialDimension
Definition: pcb_actions.h:213
static TOOL_ACTION genStartEdit
Definition: pcb_actions.h:281
static TOOL_ACTION tuneSingleTrack
Definition: pcb_actions.h:251
static TOOL_ACTION zoneFill
Definition: pcb_actions.h:396
static TOOL_ACTION cleanupTracksAndVias
Definition: pcb_actions.h:415
static TOOL_ACTION viaDisplayMode
Definition: pcb_actions.h:331
static TOOL_ACTION editTextAndGraphics
Definition: pcb_actions.h:412
static TOOL_ACTION properties
Activation of the edit tool.
Definition: pcb_actions.h:176
static TOOL_ACTION drawLeader
Definition: pcb_actions.h:215
static TOOL_ACTION editFpInFpEditor
Definition: pcb_actions.h:439
static TOOL_ACTION selectionClear
Clear the current selection.
Definition: pcb_actions.h:68
static TOOL_ACTION moveWithReference
move with a reference point
Definition: pcb_actions.h:126
static TOOL_ACTION toggleLock
Definition: pcb_actions.h:515
static TOOL_ACTION swap
Swapping of selected items.
Definition: pcb_actions.h:143
static TOOL_ACTION toggleLastNetHighlight
Definition: pcb_actions.h:547
static TOOL_ACTION layerInner29
Definition: pcb_actions.h:369
static TOOL_ACTION * LayerIDToAction(PCB_LAYER_ID aLayerID)
Translate a layer ID into the action that switches to that layer.
static TOOL_ACTION drillResetOrigin
Definition: pcb_actions.h:531
static TOOL_ACTION placeCharacteristics
Definition: pcb_actions.h:221
static TOOL_ACTION pluginsShowFolder
Scripting Actions.
Definition: pcb_actions.h:407
static TOOL_ACTION viaSizeInc
Definition: pcb_actions.h:388
static TOOL_ACTION routerAutorouteSelected
Definition: pcb_actions.h:261
static TOOL_ACTION moveExact
Activation of the exact move tool.
Definition: pcb_actions.h:179
static TOOL_ACTION autoplaceOffboardComponents
Definition: pcb_actions.h:565
static TOOL_ACTION layerInner11
Definition: pcb_actions.h:351
static TOOL_ACTION routerDiffPairDialog
Definition: pcb_actions.h:265
static TOOL_ACTION explodePad
Definition: pcb_actions.h:474
static TOOL_ACTION routerContinueFromEnd
Definition: pcb_actions.h:257
static TOOL_ACTION zoneUnfill
Definition: pcb_actions.h:399
static TOOL_ACTION intersectPolygons
Intersection of multiple polygons.
Definition: pcb_actions.h:173
static TOOL_ACTION pointEditorMoveCorner
Definition: pcb_actions.h:296
static TOOL_ACTION layerAlphaInc
Definition: pcb_actions.h:374
static TOOL_ACTION distributeHorizontallyCenters
Definition: pcb_actions.h:312
static TOOL_ACTION inspectConstraints
Definition: pcb_actions.h:540
static TOOL_ACTION generatePosFile
Definition: pcb_actions.h:431
static TOOL_ACTION globalDeletions
Definition: pcb_actions.h:414
static TOOL_ACTION newFootprint
Definition: pcb_actions.h:451
static TOOL_ACTION genRemove
Definition: pcb_actions.h:285
static TOOL_ACTION drillOrigin
Definition: pcb_actions.h:530
static TOOL_ACTION selectOnSheetFromEeschema
Select all components on sheet from Eeschema crossprobing.
Definition: pcb_actions.h:108
static TOOL_ACTION layerInner16
Definition: pcb_actions.h:356
static TOOL_ACTION defaultPadProperties
Definition: pcb_actions.h:467
static TOOL_ACTION selectConnection
Select tracks between junctions or expands an existing selection to pads or the entire connection.
Definition: pcb_actions.h:90
static TOOL_ACTION assignNetClass
Definition: pcb_actions.h:393
static TOOL_ACTION packAndMoveFootprints
Pack and start moving selected footprints.
Definition: pcb_actions.h:146
static TOOL_ACTION alignRight
Definition: pcb_actions.h:309
static TOOL_ACTION tuneSkew
Definition: pcb_actions.h:253
static TOOL_ACTION copyWithReference
copy command with manual reference point selection
Definition: pcb_actions.h:129
static TOOL_ACTION layerInner26
Definition: pcb_actions.h:366
static TOOL_ACTION layerInner18
Definition: pcb_actions.h:358
static TOOL_ACTION incWidth
Increase width of currently drawn line.
Definition: pcb_actions.h:230
static TOOL_ACTION repairBoard
Definition: pcb_actions.h:537
static TOOL_ACTION layerInner14
Definition: pcb_actions.h:354
static TOOL_ACTION healShapes
Connect selected shapes, possibly extending or cutting them, or adding extra geometry.
Definition: pcb_actions.h:162
static TOOL_ACTION trackDisplayMode
Definition: pcb_actions.h:329
static TOOL_ACTION showNetInspector
Definition: pcb_actions.h:443
static TOOL_ACTION selectLayerPair
Definition: pcb_actions.h:188
static TOOL_ACTION magneticSnapToggle
Definition: pcb_actions.h:241
static TOOL_ACTION microwaveCreateStubArc
Definition: pcb_actions.h:505
static TOOL_ACTION layerInner6
Definition: pcb_actions.h:346
static TOOL_ACTION dragFreeAngle
Definition: pcb_actions.h:194
static TOOL_ACTION clearHighlight
Definition: pcb_actions.h:545
static TOOL_ACTION generateGerbers
Definition: pcb_actions.h:429
static TOOL_ACTION inspectClearance
Definition: pcb_actions.h:539
static TOOL_ACTION convertToZone
Definition: pcb_actions.h:570
static TOOL_ACTION ddImportFootprint
Definition: pcb_actions.h:578
static TOOL_ACTION generatorsShowManager
Definition: pcb_actions.h:287
static TOOL_ACTION unselectItems
Definition: pcb_actions.h:77
static TOOL_ACTION zoneDisplayTriangulated
Definition: pcb_actions.h:335
static TOOL_ACTION genUpdateEdit
Definition: pcb_actions.h:282
static TOOL_ACTION generateReportFile
Definition: pcb_actions.h:432
static TOOL_ACTION updateLocalRatsnest
Definition: pcb_actions.h:557
static TOOL_ACTION spacingDecrease
Definition: pcb_actions.h:207
static TOOL_ACTION updateFootprints
Definition: pcb_actions.h:418
static TOOL_ACTION ungroup
Definition: pcb_actions.h:521
static TOOL_ACTION groupProperties
Definition: pcb_actions.h:301
static TOOL_ACTION importFootprint
Definition: pcb_actions.h:463
static TOOL_ACTION autoplaceSelectedComponents
Definition: pcb_actions.h:566
static TOOL_ACTION layerInner22
Definition: pcb_actions.h:362
static TOOL_ACTION alignBottom
Definition: pcb_actions.h:307
static TOOL_ACTION pickNewGroupMember
Definition: pcb_actions.h:302
static TOOL_ACTION selectUnconnected
Select unconnected footprints from ratsnest of selection.
Definition: pcb_actions.h:102
static TOOL_ACTION placeImportedGraphics
Definition: pcb_actions.h:224
static TOOL_ACTION layerInner5
Definition: pcb_actions.h:345
static TOOL_ACTION removeUnusedPads
Definition: pcb_actions.h:422
static TOOL_ACTION zoneDisplayFractured
Definition: pcb_actions.h:334
static TOOL_ACTION ratsnestModeCycle
Definition: pcb_actions.h:328
static TOOL_ACTION drawVia
Definition: pcb_actions.h:217
static TOOL_ACTION regenerateAll
Definition: pcb_actions.h:278
static TOOL_ACTION applyPadSettings
Copy the default pad settings to the selected pad.
Definition: pcb_actions.h:495
static TOOL_ACTION alignLeft
Definition: pcb_actions.h:308
static TOOL_ACTION drawArc
Definition: pcb_actions.h:201
static TOOL_ACTION deleteFull
Definition: pcb_actions.h:186
static TOOL_ACTION runDRC
Definition: pcb_actions.h:437
static TOOL_ACTION convertToPoly
Definition: pcb_actions.h:569
static TOOL_ACTION zoneDuplicate
Duplicate zone onto another layer.
Definition: pcb_actions.h:404
static TOOL_ACTION regenerateAllTuning
Generator tool.
Definition: pcb_actions.h:277
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
Definition: pcb_actions.h:484
static TOOL_ACTION importNetlist
Definition: pcb_actions.h:424
static TOOL_ACTION layerInner20
Definition: pcb_actions.h:360
static TOOL_ACTION layerInner7
Definition: pcb_actions.h:347
static TOOL_ACTION layerInner27
Definition: pcb_actions.h:367
static TOOL_ACTION diffFootprint
Definition: pcb_actions.h:541
static TOOL_ACTION moveIndividually
move items one-by-one
Definition: pcb_actions.h:123
static TOOL_ACTION changeFootprints
Definition: pcb_actions.h:420
static TOOL_ACTION drawSimilarZone
Definition: pcb_actions.h:220
static TOOL_ACTION pointEditorArcKeepEndpoint
Definition: pcb_actions.h:294
static TOOL_ACTION syncSelection
Sets selection to specified items, zooms to fit, if enabled.
Definition: pcb_actions.h:80
static TOOL_ACTION boardSetup
Definition: pcb_actions.h:410
static TOOL_ACTION showEeschema
Definition: pcb_actions.h:534
static TOOL_ACTION decWidth
Decrease width of currently drawn line.
Definition: pcb_actions.h:233
static TOOL_ACTION drawCenterDimension
Definition: pcb_actions.h:212
static TOOL_ACTION groupEnter
Definition: pcb_actions.h:523
static TOOL_ACTION zoneUnfillAll
Definition: pcb_actions.h:400
static TOOL_ACTION pasteFootprint
Definition: pcb_actions.h:462
static TOOL_ACTION zoneFillDirty
Definition: pcb_actions.h:398
static TOOL_ACTION selectItem
Select an item (specified as the event parameter).
Definition: pcb_actions.h:71
static TOOL_ACTION chamferLines
Chamfer (i.e. adds a straight line) all selected straight lines by a user defined setback.
Definition: pcb_actions.h:160
static TOOL_ACTION appendBoard
Definition: pcb_actions.h:533
static TOOL_ACTION netColorModeCycle
Definition: pcb_actions.h:327
static TOOL_ACTION selectSameSheet
Select all components on the same sheet as the selected footprint.
Definition: pcb_actions.h:111
static TOOL_ACTION layerInner1
Definition: pcb_actions.h:341
static TOOL_ACTION layerInner10
Definition: pcb_actions.h:350
static TOOL_ACTION microwaveCreateStub
Definition: pcb_actions.h:503
static TOOL_ACTION selectNet
Select all connections belonging to a single net.
Definition: pcb_actions.h:96
static TOOL_ACTION filletTracks
Fillet (i.e. adds an arc tangent to) all selected straight tracks by a user defined radius.
Definition: pcb_actions.h:155
static TOOL_ACTION layerInner15
Definition: pcb_actions.h:355
static TOOL_ACTION simplifyPolygons
Simplify polygon outlines.
Definition: pcb_actions.h:166
static TOOL_ACTION arcPosture
Switch posture when drawing arc.
Definition: pcb_actions.h:236
static TOOL_ACTION microwaveCreateLine
Definition: pcb_actions.h:509
static TOOL_ACTION footprintProperties
Definition: pcb_actions.h:466
static TOOL_ACTION layerInner17
Definition: pcb_actions.h:357
static TOOL_ACTION flipBoard
Definition: pcb_actions.h:383
static TOOL_ACTION layerBottom
Definition: pcb_actions.h:371
static TOOL_ACTION zoneDisplayOutline
Definition: pcb_actions.h:333
static TOOL_ACTION selectionActivate
Activation of the selection tool.
Definition: pcb_actions.h:62
static TOOL_ACTION ratsnestLineMode
Definition: pcb_actions.h:326
static TOOL_ACTION showFootprintAssociations
Definition: pcb_actions.h:542
static TOOL_ACTION layerInner19
Definition: pcb_actions.h:359
static TOOL_ACTION layerInner9
Definition: pcb_actions.h:349
static TOOL_ACTION textOutlines
Display texts as lines.
Definition: pcb_actions.h:487
static TOOL_ACTION showPadNumbers
Definition: pcb_actions.h:337
static TOOL_ACTION checkFootprint
Definition: pcb_actions.h:469
static TOOL_ACTION filletLines
Fillet (i.e. adds an arc tangent to) all selected straight lines by a user defined radius.
Definition: pcb_actions.h:158
static TOOL_ACTION highlightNetSelection
Definition: pcb_actions.h:549
static TOOL_ACTION microwaveCreateFunctionShape
Definition: pcb_actions.h:507
static TOOL_ACTION editLibFpInFpEditor
Definition: pcb_actions.h:440
static TOOL_ACTION zoneMerge
Definition: pcb_actions.h:401
static TOOL_ACTION duplicateFootprint
Definition: pcb_actions.h:457
static TOOL_ACTION closeOutline
Definition: pcb_actions.h:227
static TOOL_ACTION changeFootprint
Definition: pcb_actions.h:419
static TOOL_ACTION routerInlineDrag
Activation of the Push and Shove router (inline dragging mode)
Definition: pcb_actions.h:274
static TOOL_ACTION pointEditorRemoveCorner
Definition: pcb_actions.h:291
static TOOL_ACTION positionRelative
Activation of the position relative tool.
Definition: pcb_actions.h:319
static TOOL_ACTION skip
Definition: pcb_actions.h:149
static TOOL_ACTION amplIncrease
Definition: pcb_actions.h:208
static TOOL_ACTION move
move or drag an item
Definition: pcb_actions.h:120
static TOOL_ACTION mirrorV
Definition: pcb_actions.h:140
static TOOL_ACTION cutFootprint
Definition: pcb_actions.h:460
static TOOL_ACTION amplDecrease
Definition: pcb_actions.h:209
static TOOL_ACTION unlock
Definition: pcb_actions.h:517
static TOOL_ACTION lengthTunerSettings
Definition: pcb_actions.h:210
static TOOL_ACTION mergePolygons
Merge multiple polygons into a single polygon.
Definition: pcb_actions.h:169
static TOOL_ACTION syncSelectionWithNets
Sets selection to specified items with connected nets, zooms to fit, if enabled.
Definition: pcb_actions.h:83
static TOOL_ACTION spacingIncrease
Definition: pcb_actions.h:206
static TOOL_ACTION layerInner30
Definition: pcb_actions.h:370
static TOOL_ACTION boardReannotate
Definition: pcb_actions.h:536
static TOOL_ACTION subtractPolygons
Subtract polygons from other polygons.
Definition: pcb_actions.h:171
static TOOL_ACTION layerTop
Definition: pcb_actions.h:340
static TOOL_ACTION selectItems
Select a list of items (specified as the event parameter)
Definition: pcb_actions.h:76
static TOOL_ACTION cycleRouterMode
Definition: pcb_actions.h:271
static TOOL_ACTION regenerateSelected
Definition: pcb_actions.h:279
static TOOL_ACTION convertToArc
Definition: pcb_actions.h:573
static TOOL_ACTION layerInner4
Definition: pcb_actions.h:344
static TOOL_ACTION repairFootprint
Definition: pcb_actions.h:538
static TOOL_ACTION flip
Flipping of selected objects.
Definition: pcb_actions.h:136
static TOOL_ACTION alignCenterX
Definition: pcb_actions.h:310
static TOOL_ACTION placeFootprint
Definition: pcb_actions.h:223
static TOOL_ACTION pointEditorAddCorner
Definition: pcb_actions.h:290
static TOOL_ACTION routeSingleTrack
Activation of the Push and Shove router.
Definition: pcb_actions.h:246
static TOOL_ACTION layerInner13
Definition: pcb_actions.h:353
static TOOL_ACTION selectpositionRelativeItem
Selection of anchor item for position relative tool.
Definition: pcb_actions.h:322
static TOOL_ACTION layerInner21
Definition: pcb_actions.h:361
static TOOL_ACTION removeFromGroup
Definition: pcb_actions.h:522
static TOOL_ACTION createArray
Tool for creating an array of objects.
Definition: pcb_actions.h:481
static TOOL_ACTION boardStatistics
Definition: pcb_actions.h:535
static TOOL_ACTION deselectNet
Remove all connections belonging to a single net from the active selection.
Definition: pcb_actions.h:99
static TOOL_ACTION editTeardrops
Definition: pcb_actions.h:413
static TOOL_ACTION layerNext
Definition: pcb_actions.h:372
static TOOL_ACTION selectionMenu
Run a selection menu to select from a list of items.
Definition: pcb_actions.h:86
static TOOL_ACTION showPythonConsole
Definition: pcb_actions.h:444
static TOOL_ACTION copyFootprint
Definition: pcb_actions.h:461
static TOOL_ACTION reselectItem
Definition: pcb_actions.h:73
static TOOL_ACTION extendLines
Extend selected lines to meet at a point.
Definition: pcb_actions.h:164
static TOOL_ACTION drawLine
Definition: pcb_actions.h:197
static TOOL_ACTION distributeVerticallyGaps
Definition: pcb_actions.h:315
static TOOL_ACTION placeStackup
Definition: pcb_actions.h:222
static TOOL_ACTION localRatsnestTool
Definition: pcb_actions.h:555
static TOOL_ACTION routerRouteSelected
Definition: pcb_actions.h:259
static TOOL_ACTION cleanupGraphics
Definition: pcb_actions.h:416
static TOOL_ACTION rotateCw
Rotation of selected objects.
Definition: pcb_actions.h:132
static TOOL_ACTION rotateCcw
Definition: pcb_actions.h:133
static TOOL_ACTION drawAlignedDimension
Definition: pcb_actions.h:211
static TOOL_ACTION genRevertEdit
Definition: pcb_actions.h:284
static TOOL_ACTION layerInner23
Definition: pcb_actions.h:363
static TOOL_ACTION distributeVerticallyCenters
Definition: pcb_actions.h:314
static TOOL_ACTION drawZone
Definition: pcb_actions.h:216
static TOOL_ACTION alignCenterY
Definition: pcb_actions.h:311
static TOOL_ACTION importSpecctraSession
Definition: pcb_actions.h:426
static TOOL_ACTION selectOnSchematic
Select symbols/pins on schematic corresponding to selected footprints/pads.
Definition: pcb_actions.h:114
static TOOL_ACTION lock
Definition: pcb_actions.h:516
static TOOL_ACTION layerInner28
Definition: pcb_actions.h:368
static const TOOL_EVENT SnappingModeChangedByKeyEvent
Hotkey feedback.
Definition: pcb_actions.h:587
Build up the properties of a TOOL_ACTION in an incremental manner that is static-construction safe.
Definition: tool_action.h:102
Define a group that can be used to group actions (and their events) of similar operations.
Definition: tool_action.h:63
Represent a single user action.
Definition: tool_action.h:269
Generic, UI-independent tool event.
Definition: tool_event.h:167
PCB_LAYER_ID
A quick note on layer IDs:
Definition: layer_ids.h:60
@ In22_Cu
Definition: layer_ids.h:86
@ In11_Cu
Definition: layer_ids.h:75
@ In29_Cu
Definition: layer_ids.h:93
@ In30_Cu
Definition: layer_ids.h:94
@ In17_Cu
Definition: layer_ids.h:81
@ In9_Cu
Definition: layer_ids.h:73
@ In19_Cu
Definition: layer_ids.h:83
@ In7_Cu
Definition: layer_ids.h:71
@ In28_Cu
Definition: layer_ids.h:92
@ In26_Cu
Definition: layer_ids.h:90
@ B_Cu
Definition: layer_ids.h:95
@ In21_Cu
Definition: layer_ids.h:85
@ In23_Cu
Definition: layer_ids.h:87
@ In15_Cu
Definition: layer_ids.h:79
@ In2_Cu
Definition: layer_ids.h:66
@ In10_Cu
Definition: layer_ids.h:74
@ In4_Cu
Definition: layer_ids.h:68
@ In16_Cu
Definition: layer_ids.h:80
@ In24_Cu
Definition: layer_ids.h:88
@ In1_Cu
Definition: layer_ids.h:65
@ In13_Cu
Definition: layer_ids.h:77
@ In8_Cu
Definition: layer_ids.h:72
@ In14_Cu
Definition: layer_ids.h:78
@ In12_Cu
Definition: layer_ids.h:76
@ In27_Cu
Definition: layer_ids.h:91
@ In6_Cu
Definition: layer_ids.h:70
@ In5_Cu
Definition: layer_ids.h:69
@ In3_Cu
Definition: layer_ids.h:67
@ In20_Cu
Definition: layer_ids.h:84
@ F_Cu
Definition: layer_ids.h:64
@ In18_Cu
Definition: layer_ids.h:82
@ In25_Cu
Definition: layer_ids.h:89
@ RM_MarkObstacles
Ignore collisions, mark obstacles.
@ RM_Walkaround
Only walk around.
@ RM_Shove
Only shove.
@ PNS_MODE_ROUTE_SINGLE
Definition: pns_router.h:63
@ PNS_MODE_ROUTE_DIFF_PAIR
Definition: pns_router.h:64
@ PNS_MODE_TUNE_DIFF_PAIR
Definition: pns_router.h:66
@ PNS_MODE_TUNE_SINGLE
Definition: pns_router.h:65
@ PNS_MODE_TUNE_DIFF_PAIR_SKEW
Definition: pns_router.h:67
@ DM_ANY
Definition: pns_router.h:77
#define _(s)
Definition: pcb_actions.cpp:44
@ SIMILAR
Add a new zone with the same settings as an existing one.
@ CUTOUT
Make a cutout to an existing zone.
@ ADD
Add a new zone/keepout with fresh settings.
@ AS_GLOBAL
Global action (toolbar/main menu event, global shortcut)
Definition: tool_action.h:48
@ AS_CONTEXT
Action belongs to a particular tool (i.e. a part of a pop-up menu)
Definition: tool_action.h:46
@ AF_ACTIVATE
Action activates a tool.
Definition: tool_action.h:55
@ AF_NOTIFY
Action is a notification (it is by default passed to all tools)
Definition: tool_action.h:56
@ AF_NONE
Definition: tool_action.h:54
@ TA_ACTION
Definition: tool_event.h:111
@ TC_MESSAGE
Definition: tool_event.h:57
@ MD_ALT
Definition: tool_event.h:144
@ MD_CTRL
Definition: tool_event.h:143
@ MD_SHIFT
Definition: tool_event.h:142
VECTOR2< int32_t > VECTOR2I
Definition: vector2d.h:673