KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_actions.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2013-2023 CERN
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 * @author Maciej Suminski <[email protected]>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, 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>
34#include <pcb_reference_image.h>
35#include <tool/tool_manager.h>
38#include <router/pns_router.h>
41
42// Actions, being statically-defined, require specialized I18N handling. We continue to
43// use the _() macro so that string harvesting by the I18N framework doesn't have to be
44// specialized, but we don't translate on initialization and instead do it in the getters.
45
46#undef _
47#define _(s) s
48
49// clang-format off
50
51// CONVERT_TOOL
52//
54 .Name( "pcbnew.Convert.convertToPoly" )
55 .Scope( AS_GLOBAL )
56 .FriendlyName( _( "Create Polygon from Selection..." ) )
57 .Tooltip( _( "Creates a graphic polygon from the selection" ) )
59
61 .Name( "pcbnew.Convert.convertToZone" )
62 .Scope( AS_GLOBAL )
63 .FriendlyName( _( "Create Zone from Selection..." ) )
64 .Tooltip( _( "Creates a copper zone from the selection" ) )
65 .Icon( BITMAPS::add_zone ) );
66
68 .Name( "pcbnew.Convert.convertToKeepout" )
69 .Scope( AS_GLOBAL )
70 .FriendlyName( _( "Create Rule Area from Selection..." ) )
71 .Tooltip( _( "Creates a rule area from the selection" ) )
73
75 .Name( "pcbnew.Convert.convertToLines" )
76 .Scope( AS_GLOBAL )
77 .FriendlyName( _( "Create Lines from Selection..." ) )
78 .Tooltip( _( "Creates graphic lines from the selection" ) )
79 .Icon( BITMAPS::add_line ) );
80
82 .Name( "pcbnew.Convert.convertToArc" )
83 .Scope( AS_GLOBAL )
84 .FriendlyName( _( "Create Arc from Selection" ) )
85 .Tooltip( _( "Creates an arc from the selected line segment" ) )
86 .Icon( BITMAPS::add_arc ) );
87
89 .Name( "pcbnew.Convert.convertToTracks" )
90 .Scope( AS_GLOBAL )
91 .FriendlyName( _( "Create Tracks from Selection" ) )
92 .Tooltip( _( "Creates tracks from the selected graphic lines" ) )
93 .Icon( BITMAPS::add_tracks ) );
94
96 .Name( "pcbnew.Convert.outsetItems" )
97 .Scope( AS_GLOBAL )
98 .FriendlyName( _( "Create Outsets from Selection..." ) )
99 .Tooltip( _( "Create outset lines from the selected item" ) )
101
102
103// DRAWING_TOOL
104//
106 .Name( "pcbnew.InteractiveDrawing.line" )
107 .Scope( AS_GLOBAL )
108 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'L' )
109 .LegacyHotkeyName( "Draw Line" )
110 .FriendlyName( _( "Draw Lines" ) )
111 .ToolbarState( TOOLBAR_STATE::TOGGLE )
113 .Flags( AF_ACTIVATE ) );
114
116 .Name( "pcbnew.InteractiveDrawing.graphicPolygon" )
117 .Scope( AS_GLOBAL )
118 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'P' )
119 .LegacyHotkeyName( "Draw Graphic Polygon" )
120 .FriendlyName( _( "Draw Polygons" ) )
121 .ToolbarState( TOOLBAR_STATE::TOGGLE )
123 .Flags( AF_ACTIVATE )
124 .Parameter( ZONE_MODE::GRAPHIC_POLYGON ) );
125
127 .Name( "pcbnew.InteractiveDrawing.rectangle" )
128 .Scope( AS_GLOBAL )
129 .FriendlyName( _( "Draw Rectangles" ) )
130 .ToolbarState( TOOLBAR_STATE::TOGGLE )
132 .Flags( AF_ACTIVATE ) );
133
135 .Name( "pcbnew.InteractiveDrawing.circle" )
136 .Scope( AS_GLOBAL )
137 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'C' )
138 .LegacyHotkeyName( "Draw Circle" )
139 .FriendlyName( _( "Draw Circles" ) )
140 .ToolbarState( TOOLBAR_STATE::TOGGLE )
141 .Icon( BITMAPS::add_circle )
142 .Flags( AF_ACTIVATE ) );
143
145 .Name( "pcbnew.InteractiveDrawing.ellipse" )
146 .Scope( AS_GLOBAL )
147 .FriendlyName( _( "Draw Ellipse" ) )
148 .Tooltip( _( "Draw an ellipse" ) )
149 .ToolbarState( TOOLBAR_STATE::TOGGLE )
150 .Icon( BITMAPS::add_ellipse )
151 .Flags( AF_ACTIVATE ) );
152
154 .Name( "pcbnew.InteractiveDrawing.ellipseArc" )
155 .Scope( AS_GLOBAL )
156 .FriendlyName( _( "Draw Elliptical Arcs" ) )
157 .Tooltip( _( "Draw an elliptical arc" ) )
158 .ToolbarState( TOOLBAR_STATE::TOGGLE )
160 .Flags( AF_ACTIVATE ) );
161
163 .Name( "pcbnew.InteractiveDrawing.arc" )
164 .Scope( AS_GLOBAL )
165 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'A' )
166 .LegacyHotkeyName( "Draw Arc" )
167 .FriendlyName( _( "Draw Arcs" ) )
168 .ToolbarState( TOOLBAR_STATE::TOGGLE )
169 .Icon( BITMAPS::add_arc )
170 .Flags( AF_ACTIVATE ) );
171
173 .Name( "pcbnew.InteractiveDrawing.bezier" )
174 .Scope( AS_GLOBAL )
175 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'B' )
176 .FriendlyName( _( "Draw Bezier Curve" ) )
177 .ToolbarState( TOOLBAR_STATE::TOGGLE )
178 .Icon( BITMAPS::add_bezier )
179 .Flags( AF_ACTIVATE ) );
180
182 .Name( "pcbnew.InteractiveDrawing.barcode" )
183 .Scope( AS_GLOBAL )
184 .LegacyHotkeyName( "Add Barcode" )
185 .FriendlyName( _( "Add Barcode" ) )
186 .Tooltip( _( "Add a barcode" ) )
187 .Icon( BITMAPS::add_barcode )
188 .Flags( AF_ACTIVATE ) );
189
190
192 .Name( "pcbnew.InteractiveDrawing.placeCharacteristics" )
193 .Scope( AS_GLOBAL )
194 .LegacyHotkeyName( "Add Board Characteristics" )
195 .FriendlyName( _( "Add Board Characteristics" ) )
196 .Tooltip( _( "Add a board characteristics table on a graphic layer" ) )
197 .ToolbarState( TOOLBAR_STATE::TOGGLE )
198 .Flags( AF_ACTIVATE ) );
199
201 .Name( "pcbnew.InteractiveDrawing.placeStackup" )
202 .Scope( AS_GLOBAL )
203 .LegacyHotkeyName( "Add Stackup Table" )
204 .FriendlyName( _( "Add Stackup Table" ) )
205 .Tooltip( _( "Add a board stackup table on a graphic layer" ) )
206 .ToolbarState( TOOLBAR_STATE::TOGGLE )
207 .Flags( AF_ACTIVATE ) );
208
210 .Name( "pcbnew.InteractiveDrawing.placePoint" )
211 .Scope( AS_GLOBAL )
212 .FriendlyName( _( "Place Point" ) )
213 .Tooltip( _( "Add reference/snap points" ) )
214 .ToolbarState( TOOLBAR_STATE::TOGGLE )
215 .Icon( BITMAPS::add_point )
216 .Flags( AF_ACTIVATE ) );
217
219 .Name( "pcbnew.InteractiveDrawing.placeReferenceImage" )
220 .Scope( AS_GLOBAL )
221 .FriendlyName( _( "Place Reference Images" ) )
222 .Tooltip( _( "Add bitmap images to be used as reference (images will not be included in any output)" ) )
223 .ToolbarState( TOOLBAR_STATE::TOGGLE )
224 .Icon( BITMAPS::image )
225 .Flags( AF_ACTIVATE )
226 .Parameter<PCB_REFERENCE_IMAGE*>( nullptr ) );
227
229 .Name( "pcbnew.InteractiveDrawing.text" )
230 .Scope( AS_GLOBAL )
231 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'T' )
232 .LegacyHotkeyName( "Add Text" )
233 .FriendlyName( _( "Draw Text" ) )
234 .ToolbarState( TOOLBAR_STATE::TOGGLE )
235 .Icon( BITMAPS::text )
236 .Flags( AF_ACTIVATE ) );
237
239 .Name( "pcbnew.InteractiveDrawing.textbox" )
240 .Scope( AS_GLOBAL )
241 .FriendlyName( _( "Draw Text Boxes" ) )
242 .ToolbarState( TOOLBAR_STATE::TOGGLE )
243 .Icon( BITMAPS::add_textbox )
244 .Flags( AF_ACTIVATE ) );
245
247 .Name( "pcbnew.InteractiveDrawing.drawTable" )
248 .Scope( AS_GLOBAL )
249 .FriendlyName( _( "Draw Tables" ) )
250 .ToolbarState( TOOLBAR_STATE::TOGGLE )
251 .Icon( BITMAPS::table )
252 .Flags( AF_ACTIVATE ) );
253
255 .Name( "pcbnew.lengthTuner.SpacingIncrease" )
256 .Scope( AS_GLOBAL )
257 .DefaultHotkey( '1' )
258 .LegacyHotkeyName( "Increase meander spacing by one step." )
259 .FriendlyName( _( "Increase Spacing" ) )
260 .Tooltip( _( "Increase tuning pattern spacing by one step." ) )
262
264 .Name( "pcbnew.lengthTuner.SpacingDecrease" )
265 .Scope( AS_GLOBAL )
266 .DefaultHotkey( '2' )
267 .LegacyHotkeyName( "Decrease meander spacing by one step." )
268 .FriendlyName( _( "Decrease Spacing" ) )
269 .Tooltip( _( "Decrease tuning pattern spacing by one step." ) )
271
273 .Name( "pcbnew.lengthTuner.AmplIncrease" )
274 .Scope( AS_GLOBAL )
275 .DefaultHotkey( '3' )
276 .LegacyHotkeyName( "Increase meander amplitude by one step." )
277 .FriendlyName( _( "Increase Amplitude" ) )
278 .Tooltip( _( "Increase tuning pattern amplitude by one step." ) )
280
282 .Name( "pcbnew.lengthTuner.AmplDecrease" )
283 .Scope( AS_GLOBAL )
284 .DefaultHotkey( '4' )
285 .LegacyHotkeyName( "Decrease meander amplitude by one step." )
286 .FriendlyName( _( "Decrease Amplitude" ) )
287 .Tooltip( _( "Decrease tuning pattern amplitude by one step." ) )
289
290
292 .Name( "pcbnew.InteractiveDrawing.alignedDimension" )
293 .Scope( AS_GLOBAL )
294 .LegacyHotkeyName( "Add Dimension" )
295 .FriendlyName( _( "Draw Aligned Dimensions" ) )
296 .ToolbarState( TOOLBAR_STATE::TOGGLE )
298 .Flags( AF_ACTIVATE ) );
299
301 .Name( "pcbnew.InteractiveDrawing.centerDimension" )
302 .Scope( AS_GLOBAL )
303 .FriendlyName( _( "Draw Center Dimensions" ) )
304 .ToolbarState( TOOLBAR_STATE::TOGGLE )
306 .Flags( AF_ACTIVATE ) );
307
309 .Name( "pcbnew.InteractiveDrawing.radialDimension" )
310 .Scope( AS_GLOBAL )
311 .FriendlyName( _( "Draw Radial Dimensions" ) )
312 .ToolbarState( TOOLBAR_STATE::TOGGLE )
314 .Flags( AF_ACTIVATE ) );
315
317 .Name( "pcbnew.InteractiveDrawing.orthogonalDimension" )
318 .Scope( AS_GLOBAL )
319 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'H' )
320 .FriendlyName( _( "Draw Orthogonal Dimensions" ) )
321 .ToolbarState( TOOLBAR_STATE::TOGGLE )
323 .Flags( AF_ACTIVATE ) );
324
326 .Name( "pcbnew.InteractiveDrawing.leader" )
327 .Scope( AS_GLOBAL )
328 .FriendlyName( _( "Draw Leaders" ) )
329 .ToolbarState( TOOLBAR_STATE::TOGGLE )
330 .Icon( BITMAPS::add_leader )
331 .Flags( AF_ACTIVATE ) );
332
334 .Name( "pcbnew.InteractiveDrawing.zone" )
335 .Scope( AS_GLOBAL )
336#ifdef __WXOSX_MAC__
337 .DefaultHotkey( MD_ALT + 'Z' )
338#else
339 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'Z' )
340#endif
341 .LegacyHotkeyName( "Add Filled Zone" )
342 .FriendlyName( _( "Draw Filled Zones" ) )
343 .ToolbarState( TOOLBAR_STATE::TOGGLE )
344 .Icon( BITMAPS::add_zone )
345 .Flags( AF_ACTIVATE )
346 .Parameter( ZONE_MODE::ADD ) );
347
349 .Name( "pcbnew.InteractiveDrawing.copperThievingZone" )
350 .Scope( AS_GLOBAL )
351 .FriendlyName( _( "Draw Copper Thieving Zone" ) )
352 .Tooltip( _( "Add a non-electrical thieving zone for plating-balance copper" ) )
353 .ToolbarState( TOOLBAR_STATE::TOGGLE )
354 .Icon( BITMAPS::add_zone )
355 .Flags( AF_ACTIVATE )
356 .Parameter( ZONE_MODE::ADD ) );
357
359 .Name( "pcbnew.InteractiveDrawing.via" )
360 .Scope( AS_GLOBAL )
361 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'X' )
362 .LegacyHotkeyName( "Add Vias" )
363 .FriendlyName( _( "Place Vias" ) )
364 .Tooltip( _( "Place free-standing vias" ) )
365 .ToolbarState( TOOLBAR_STATE::TOGGLE )
366 .Icon( BITMAPS::add_via )
367 .Flags( AF_ACTIVATE ) );
368
370 .Name( "pcbnew.InteractiveDrawing.ruleArea" )
371 .Scope( AS_GLOBAL )
372 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'K' )
373 .LegacyHotkeyName( "Add Keepout Area" )
374 .FriendlyName( _( "Draw Rule Areas" ) )
375 .ToolbarState( TOOLBAR_STATE::TOGGLE )
377 .Flags( AF_ACTIVATE )
378 .Parameter( ZONE_MODE::ADD ) );
379
381 .Name( "pcbnew.InteractiveDrawing.zoneCutout" )
382 .Scope( AS_GLOBAL )
383 .DefaultHotkey( MD_SHIFT + 'C' )
384 .LegacyHotkeyName( "Add a Zone Cutout" )
385 .FriendlyName( _( "Add a Zone Cutout" ) )
386 .Tooltip( _( "Add a cutout to an existing zone or rule area" ) )
387 .ToolbarState( TOOLBAR_STATE::TOGGLE )
389 .Flags( AF_ACTIVATE )
390 .Parameter( ZONE_MODE::CUTOUT ) );
391
393 .Name( "pcbnew.InteractiveDrawing.similarZone" )
394 .Scope( AS_GLOBAL )
395 .DefaultHotkey( MD_CTRL + MD_SHIFT + '.' )
396 .LegacyHotkeyName( "Add a Similar Zone" )
397 .FriendlyName( _( "Add a Similar Zone" ) )
398 .Tooltip( _( "Add a zone with the same settings as an existing zone" ) )
399 .Icon( BITMAPS::add_zone )
400 .Flags( AF_ACTIVATE )
401 .Parameter( ZONE_MODE::SIMILAR ) );
402
404 .Name( "pcbnew.InteractiveDrawing.placeImportedGraphics" )
405 .Scope( AS_GLOBAL )
406 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'F' )
407 .LegacyHotkeyName( "Place DXF" )
408 .FriendlyName( _( "Import Graphics..." ) )
409 .Tooltip( _( "Import 2D drawing file" ) )
411 .Flags( AF_ACTIVATE ) );
412
414 .Name( "pcbnew.InteractiveDrawing.setAnchor" )
415 .Scope( AS_GLOBAL )
416 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'N' )
417 .LegacyHotkeyName( "Place the Footprint Anchor" )
418 .FriendlyName( _( "Place the Footprint Anchor" ) )
419 .Tooltip( _( "Set the anchor point of the footprint" ) )
420 .ToolbarState( TOOLBAR_STATE::TOGGLE )
421 .Icon( BITMAPS::anchor )
422 .Flags( AF_ACTIVATE ) );
423
425 .Name( "pcbnew.InteractiveDrawing.incWidth" )
426 .Scope( AS_CONTEXT )
427 .DefaultHotkey( MD_CTRL + '+' )
428 .LegacyHotkeyName( "Increase Line Width" )
429 .FriendlyName( _( "Increase Line Width" ) ) );
430
432 .Name( "pcbnew.InteractiveDrawing.decWidth" )
433 .Scope( AS_CONTEXT )
434 .DefaultHotkey( MD_CTRL + '-' )
435 .LegacyHotkeyName( "Decrease Line Width" )
436 .FriendlyName( _( "Decrease Line Width" ) ) );
437
439 .Name( "pcbnew.InteractiveDrawing.arcPosture" )
440 .Scope( AS_CONTEXT )
441 .DefaultHotkey( '/' )
442 .LegacyHotkeyName( "Switch Track Posture" )
443 .FriendlyName( _( "Switch Arc Posture" ) ) );
444
446 .Name( "pcbnew.InteractiveDrawing.changeDimensionArrows" )
447 .Scope( AS_CONTEXT )
448 .FriendlyName( "Switch Dimension Arrows" )
449 .Tooltip( "Switch between inward and outward dimension arrows" ) );
450
451
453 .Name( "common.Control.magneticSnapActiveLayer" )
454 .Scope( AS_GLOBAL )
455 .FriendlyName( _( "Snap to Objects on the Active Layer Only" ) )
456 .Tooltip( _( "Enables snapping to objects on the active layer only" ) ) );
457
459 .Name( "common.Control.magneticSnapAllLayers" )
460 .Scope( AS_GLOBAL )
461 .FriendlyName( _( "Snap to Objects on All Layers" ) )
462 .Tooltip( _( "Enables snapping to objects on all visible layers" ) ) );
463
465 .Name( "common.Control.magneticSnapToggle" )
466 .Scope( AS_GLOBAL )
467 .DefaultHotkey( MD_SHIFT + 'S' )
468 .FriendlyName( _( "Toggle Snapping Between Active and All Layers" ) )
469 .Tooltip( _( "Toggles between snapping on all visible layers and only the active area" ) ) );
470
472 .Name( "pcbnew.InteractiveDrawing.deleteLastPoint" )
473 .Scope( AS_CONTEXT )
474 .DefaultHotkey( WXK_BACK )
475 .FriendlyName( _( "Delete Last Point" ) )
476 .Tooltip( _( "Delete the last point added to the current item" ) )
477 .Icon( BITMAPS::undo ) );
478
480 .Name( "pcbnew.InteractiveDrawing.closeOutline" )
481 .Scope( AS_CONTEXT )
482 .FriendlyName( _( "Close Outline" ) )
483 .Tooltip( _( "Close the in progress outline" ) )
484 .Icon( BITMAPS::checked_ok ) );
485
486// DRC
487//
489 .Name( "pcbnew.DRCTool.runDRC" )
490 .Scope( AS_GLOBAL )
491 .FriendlyName( _( "Design Rules Checker" ) )
492 .Tooltip( _( "Show the design rules checker window" ) )
493 .Icon( BITMAPS::erc ) );
494
495// PCB_DESIGN_BLOCK_CONTROL
497 .Name( "pcbnew.InteractiveDrawing.placeDesignBlock" )
498 .Scope( AS_GLOBAL )
499 .DefaultHotkey( MD_SHIFT + 'B' )
500 .FriendlyName( _( "Place Design Block" ) )
501 .Tooltip( _( "Add selected design block to current board" ) )
503 .Flags( AF_ACTIVATE )
504 .Parameter<DESIGN_BLOCK*>( nullptr ) );
505
507 .Name( "pcbnew.InteractiveDrawing.placeLinkedDesignBlock" )
508 .Scope( AS_GLOBAL )
509 .FriendlyName( _( "Place Linked Design Block" ) )
510 .Tooltip( _( "Place design block linked to selected group" ) )
512 .Flags( AF_ACTIVATE )
513 .Parameter<bool*>( nullptr ) );
514
516 .Name( "pcbnew.InteractiveDrawing.applyDesignBlockLayout" )
517 .Scope( AS_GLOBAL )
518 .FriendlyName( _( "Apply Design Block Layout" ) )
519 .Tooltip( _( "Apply linked design block layout to selected group" ) )
521 .Flags( AF_ACTIVATE ) );
522
524 .Name( "pcbnew.InteractiveDrawing.saveToLinkedDesignBlock" )
525 .Scope( AS_GLOBAL )
526 .FriendlyName( _( "Save to Linked Design Block" ) )
527 .Tooltip( _( "Save selected group to linked design block" ) )
529 .Flags( AF_ACTIVATE ) );
530
532 .Name( "pcbnew.PcbDesignBlockControl.showDesignBlockPanel" )
533 .Scope( AS_GLOBAL )
534 .FriendlyName( _( "Design Blocks" ) )
535 .Tooltip( _( "Show/hide design blocks library" ) )
536 .Icon( BITMAPS::search_tree ) );
537
539 .Name( "pcbnew.PcbDesignBlockControl.saveBoardAsDesignBlock" )
540 .Scope( AS_GLOBAL )
541 .FriendlyName( _( "Save Board as Design Block..." ) )
542 .Tooltip( _( "Create a new design block from the current board" ) )
543 .Icon( BITMAPS::new_component ) );
544
546 .Name( "pcbnew.PcbDesignBlockControl.saveSelectionAsDesignBlock" )
547 .Scope( AS_GLOBAL )
548 .FriendlyName( _( "Save Selection as Design Block..." ) )
549 .Tooltip( _( "Create a new design block from the current selection" ) )
550 .Icon( BITMAPS::new_component ) );
551
553 .Name( "pcbnew.PcbDesignBlockControl.updateDesignBlockFromBoard" )
554 .Scope( AS_GLOBAL )
555 .FriendlyName( _( "Update Design Block from Board" ) )
556 .Tooltip( _( "Set design block layout to current board" ) )
557 .Icon( BITMAPS::save ) );
558
560 .Name( "pcbnew.PcbDesignBlockControl.updateDesignBlockFromSelection" )
561 .Scope( AS_GLOBAL )
562 .FriendlyName( _( "Update Design Block from Selection" ) )
563 .Tooltip( _( "Set design block layout to current selection" ) )
564 .Icon( BITMAPS::save ) );
565
567 .Name( "pcbnew.PcbDesignBlockControl.deleteDesignBlock" )
568 .Scope( AS_GLOBAL )
569 .FriendlyName( _( "Delete Design Block" ) )
570 .Tooltip( _( "Remove the selected design block from its library" ) )
571 .Icon( BITMAPS::trash ) );
572
574 .Name( "pcbnew.PcbDesignBlockControl.editDesignBlockProperties" )
575 .Scope( AS_GLOBAL )
576 .FriendlyName( _( "Properties..." ) )
577 .Tooltip( _( "Edit properties of design block" ) )
578 .Icon( BITMAPS::edit ) );
579
580// EDIT_TOOL
581//
583 .Name( "pcbnew.EditorControl.EditFpInFpEditor" )
584 .Scope( AS_GLOBAL )
585 .DefaultHotkey( MD_CTRL + 'E' )
586 .LegacyHotkeyName( "Edit with Footprint Editor" )
587 .FriendlyName( _( "Open in Footprint Editor" ) )
588 .Icon( BITMAPS::module_editor ) );
589
591 .Name( "pcbnew.EditorControl.EditLibFpInFpEditor" )
592 .Scope( AS_GLOBAL )
593 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
594 .FriendlyName( _( "Edit Library Footprint..." ) )
595 .Icon( BITMAPS::module_editor ) );
596
598 .Name( "pcbnew.EditorControl.findByProperties" )
599 .Scope( AS_GLOBAL )
600 .FriendlyName( _( "Find by Properties..." ) )
601 .Tooltip( _( "Find board items matching property criteria or expressions" ) )
602 .Icon( BITMAPS::find ) );
603
605 .Name( "pcbnew.InteractiveEdit.FindMove" )
606 .Scope( AS_GLOBAL )
607 .DefaultHotkey( 'T' )
608 .LegacyHotkeyName( "Get and Move Footprint" )
609 .FriendlyName( _( "Get and Move Footprint" ) )
610 .Tooltip( _( "Selects a footprint by reference designator and places it under the cursor for moving" ) )
611 .Icon( BITMAPS::move )
612 .Flags( AF_ACTIVATE ) );
613
615 .Name( "pcbnew.InteractiveMove.move" )
616 .Scope( AS_GLOBAL )
617 .DefaultHotkey( 'M' )
618 .LegacyHotkeyName( "Move Item" )
619 .FriendlyName( _( "Move" ) )
620 .Icon( BITMAPS::move )
621 .Flags( AF_ACTIVATE )
623
625 .Name( "pcbnew.InteractiveMove.moveIndividually" )
626 .Scope( AS_GLOBAL )
627 .DefaultHotkey( MD_CTRL + 'M' )
628 .FriendlyName( _( "Move Individually" ) )
629 .Tooltip( _( "Moves the selected items one-by-one" ) )
630 .Icon( BITMAPS::move )
631 .Flags( AF_ACTIVATE )
633
635 .Name( "pcbnew.InteractiveMove.moveWithReference" )
636 .Scope( AS_GLOBAL )
637 .FriendlyName( _( "Move with Reference..." ) )
638 .Tooltip( _( "Moves the selected item(s) with a specified starting point" ) )
639 .Icon( BITMAPS::move )
640 .Flags( AF_ACTIVATE )
642
644 .Name( "pcbnew.InteractiveMove.copyWithReference" )
645 .Scope( AS_GLOBAL )
646 .FriendlyName( _( "Copy with Reference..." ) )
647 .Tooltip( _( "Copy selected item(s) to clipboard with a specified starting point" ) )
648 .Icon( BITMAPS::copy )
649 .Flags( AF_ACTIVATE ) );
650
652 .Name( "pcbnew.InteractiveEdit.duplicateIncrementPads" )
653 .Scope( AS_GLOBAL )
654 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'D' )
655 .LegacyHotkeyName( "Duplicate Item and Increment" )
656 .FriendlyName( _( "Duplicate and Increment" ) )
657 .Tooltip( _( "Duplicates the selected item(s), incrementing pad numbers" ) )
658 .Icon( BITMAPS::duplicate ) );
659
661 .Name( "pcbnew.InteractiveEdit.moveExact" )
662 .Scope( AS_GLOBAL )
663 .DefaultHotkey( MD_SHIFT + 'M' )
664 .LegacyHotkeyName( "Move Item Exactly" )
665 .FriendlyName( _( "Move Exactly..." ) )
666 .Tooltip( _( "Moves the selected item(s) by an exact amount" ) )
667 .Icon( BITMAPS::move_exactly ) );
668
670 .Name( "pcbnew.InteractiveEdit.moveCorner" )
671 .Scope( AS_GLOBAL )
672 .FriendlyName( _( "Move Corner To..." ) )
673 .Tooltip( _( "Move the active corner to an exact location" ) )
674 .Icon( BITMAPS::move_exactly ) );
675
677 .Name( "pcbnew.InteractiveEdit.moveMidpoint" )
678 .Scope( AS_GLOBAL )
679 .FriendlyName( _( "Move Midpoint To..." ) )
680 .Tooltip( _( "Move the active midpoint to an exact location" ) )
681 .Icon( BITMAPS::move_exactly ) );
682
684 .Name( "pcbnew.InteractiveEdit.rotateCw" )
685 .Scope( AS_GLOBAL )
686 .DefaultHotkey( MD_SHIFT + 'R' )
687 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
688 .LegacyHotkeyName( "Rotate Item Clockwise (Modern Toolset only)" )
689 .FriendlyName( _( "Rotate Clockwise" ) )
690 .Icon( BITMAPS::rotate_cw )
691 .Flags( AF_NONE )
692 .Parameter( -1 ) );
693
695 .Name( "pcbnew.InteractiveEdit.rotateCcw" )
696 .Scope( AS_GLOBAL )
697 .DefaultHotkey( 'R' )
698 .LegacyHotkeyName( "Rotate Item" )
699 .FriendlyName( _( "Rotate Counterclockwise" ) )
700 .Icon( BITMAPS::rotate_ccw )
701 .Flags( AF_NONE )
702 .Parameter( 1 ) );
703
705 .Name( "pcbnew.InteractiveEdit.flip" )
706 .Scope( AS_GLOBAL )
707 .DefaultHotkey( 'F' )
708 .LegacyHotkeyName( "Flip Item" )
709 .FriendlyName( _( "Change Side / Flip" ) )
710 .Tooltip( _( "Flips selected item(s) to opposite side of board" ) )
711 .Icon( BITMAPS::swap_layer ) );
712
714 .Name( "pcbnew.InteractiveEdit.mirrorHoriontally" )
715 .Scope( AS_GLOBAL )
716 .FriendlyName( _( "Mirror Horizontally" ) )
717 .Tooltip( _( "Mirrors selected item(s) across the Y axis" ) )
718 .Icon( BITMAPS::mirror_h ) );
719
721 .Name( "pcbnew.InteractiveEdit.mirrorVertically" )
722 .Scope( AS_GLOBAL )
723 .FriendlyName( _( "Mirror Vertically" ) )
724 .Tooltip( _( "Mirrors selected item(s) across the X axis" ) )
725 .Icon( BITMAPS::mirror_v ) );
726
728 .Name( "pcbnew.InteractiveEdit.swap" )
729 .Scope( AS_GLOBAL )
730 .DefaultHotkey( MD_ALT + 'S' )
731 .FriendlyName( _( "Swap" ) )
732 .Tooltip( _( "Swap positions of selected items" ) )
733 .Icon( BITMAPS::swap ) );
734
736 .Name( "pcbnew.InteractiveEdit.swapPadNets" )
737 .Scope( AS_GLOBAL )
738 .FriendlyName( _( "Swap Pad Nets" ) )
739 .Tooltip( _( "Swap nets between two selected pads and their connected copper" ) )
740 .Icon( BITMAPS::swap ) );
741
743 .Name( "pcbnew.InteractiveEdit.swapGateNets" )
744 .Scope( AS_GLOBAL )
745 .FriendlyName( _( "Swap Gate Nets" ) )
746 .Tooltip( _( "Swap nets between gates of a footprint and their connected copper" ) )
747 .Parameter<wxString>( wxString() )
748 .Icon( BITMAPS::swap ) );
749
751 .Name( "pcbnew.InteractiveEdit.packAndMoveFootprints" )
752 .Scope( AS_GLOBAL )
753 .DefaultHotkey( 'P' )
754 .FriendlyName( _( "Pack and Move Footprints" ) )
755 .Tooltip( _( "Sorts selected footprints by reference, packs based on size and initiates movement" ) )
756 .Icon( BITMAPS::pack_footprints ) );
757
759 .Name( "pcbnew.InteractiveEdit.skip" )
760 .Scope( AS_CONTEXT )
761 .DefaultHotkey( WXK_TAB )
762 .FriendlyName( _( "Skip" ) )
763 .Tooltip( _( "Skip to next item" ) )
764 .Icon( BITMAPS::right ) );
765
767 .Name( "pcbnew.InteractiveEdit.changeTrackWidth" )
768 .Scope( AS_GLOBAL )
769 .FriendlyName( _( "Change Track Width" ) )
770 .Tooltip( _( "Updates selected track & via sizes" ) ) );
771
773 .Name( "pcbnew.Control.changeTrackLayerNext" )
774 .Scope( AS_GLOBAL )
775 .DefaultHotkey( MD_CTRL + '+' )
776 .FriendlyName( "Switch Track to Next Layer" )
777 .Tooltip( _( "Switch track to next enabled copper layer" ) ) );
778
780 .Name( "pcbnew.Control.changeTrackLayerPrev" )
781 .Scope( AS_GLOBAL )
782 .DefaultHotkey( MD_CTRL + '-' )
783 .FriendlyName( "Switch Track to Previous Layer" )
784 .Tooltip( _( "Switch track to previous enabled copper layer" ) ) );
785
787 .Name( "pcbnew.InteractiveEdit.filletTracks" )
788 .Scope( AS_GLOBAL )
789 .FriendlyName( _( "Fillet Tracks" ) )
790 .Tooltip( _( "Adds arcs tangent to the selected straight track segments" ) ) );
791
793 .Name( "pcbnew.InteractiveEdit.filletLines" )
794 .Scope( AS_GLOBAL )
795 .FriendlyName( _( "Fillet Lines..." ) )
796 .Tooltip( _( "Adds arcs tangent to the selected lines" ) )
797 .Icon( BITMAPS::fillet ) );
798
800 .Name( "pcbnew.InteractiveEdit.chamferLines" )
801 .Scope( AS_GLOBAL )
802 .FriendlyName( _( "Chamfer Lines..." ) )
803 .Tooltip( _( "Cut away corners between selected lines" ) )
804 .Icon( BITMAPS::chamfer ) );
805
807 .Name( "pcbnew.InteractiveEdit.dogboneCorners" )
808 .Scope( AS_GLOBAL )
809 .FriendlyName( _( "Dogbone Corners..." ) )
810 .Tooltip( _( "Add dogbone corners to selected lines" ) ) );
811
813 .Name( "pcbnew.InteractiveEdit.simplifyPolygons" )
814 .Scope( AS_GLOBAL )
815 .FriendlyName( _( "Simplify Polygons" ) )
816 .Tooltip( _( "Simplify polygon outlines, removing superfluous points" ) ) );
817
819 .Name( "pcbnew.InteractiveEdit.editVertices" )
820 .Scope( AS_GLOBAL )
821 .FriendlyName( _( "Edit Corners..." ) )
822 .Tooltip( _( "Edit polygon corners using a table" ) )
823 .Icon( BITMAPS::edit ) );
824
826 .Name( "pcbnew.InteractiveEdit.healShapes" )
827 .Scope( AS_GLOBAL )
828 .FriendlyName( _( "Heal Shapes" ) )
829 .Tooltip( _( "Connect shapes, possibly extending or cutting them, or adding extra geometry" ) )
830 .Icon( BITMAPS::heal_shapes ) );
831
833 .Name( "pcbnew.InteractiveEdit.extendLines" )
834 .Scope( AS_GLOBAL )
835 .FriendlyName( _( "Extend Lines to Meet" ) )
836 .Tooltip( _( "Extend lines to meet each other" ) ) );
837
839 .Name( "pcbnew.InteractiveEdit.mergePolygons" )
840 .Scope( AS_GLOBAL )
841 .FriendlyName( _( "Merge Polygons" ) )
842 .Tooltip( _( "Merge selected polygons into a single polygon" ) )
843 .Icon( BITMAPS::merge_polygons ) );
844
846 .Name( "pcbnew.InteractiveEdit.subtractPolygons" )
847 .Scope( AS_GLOBAL )
848 .FriendlyName( _( "Subtract Polygons" ) )
849 .Tooltip( _( "Subtract selected polygons from the last one selected" ) )
851
853 .Name( "pcbnew.InteractiveEdit.intersectPolygons" )
854 .Scope( AS_GLOBAL )
855 .FriendlyName( _( "Intersect Polygons" ) )
856 .Tooltip( _( "Create the intersection of the selected polygons" ) )
858
860 .Name( "pcbnew.InteractiveEdit.deleteFull" )
861 .Scope( AS_GLOBAL )
862 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DELETE ) )
863 .LegacyHotkeyName( "Delete Full Track" )
864 .FriendlyName( _( "Delete Full Track" ) )
865 .Tooltip( _( "Deletes selected item(s) and copper connections" ) )
867 .Flags( AF_NONE )
868 .Parameter( PCB_ACTIONS::REMOVE_FLAGS::ALT ) );
869
871 .Name( "pcbnew.InteractiveEdit.properties" )
872 .Scope( AS_GLOBAL )
873 .DefaultHotkey( 'E' )
874 .LegacyHotkeyName( "Edit Item" )
875 .FriendlyName( _( "Properties..." ) )
876 .Icon( BITMAPS::edit ) );
877
878// ARRAY
879//
881 .Name( "pcbnew.Array.createArray" )
882 .Scope( AS_GLOBAL )
883 .DefaultHotkey( MD_CTRL + 'T' )
884 .LegacyHotkeyName( "Create Array" )
885 .FriendlyName( _( "Create Array..." ) )
886 .Icon( BITMAPS::array )
887 .Flags( AF_ACTIVATE ) );
888
889// FOOTPRINT_EDITOR_CONTROL
890//
892 .Name( "pcbnew.ModuleEditor.newFootprint" )
893 .Scope( AS_GLOBAL )
894 .DefaultHotkey( MD_CTRL + 'N' )
895 .LegacyHotkeyName( "New" )
896 .FriendlyName( _( "New Footprint" ) )
897 .Tooltip( _( "Create a new, empty footprint" ) )
898 .Icon( BITMAPS::new_footprint ) );
899
901 .Name( "pcbnew.ModuleEditor.createFootprint" )
902 .Scope( AS_GLOBAL )
903 .FriendlyName( _( "Create Footprint..." ) )
904 .Tooltip( _( "Create a new footprint using the Footprint Wizard" ) )
905 .Icon( BITMAPS::module_wizard ) );
906
908 .Name( "pcbnew.ModuleEditor.editFootprint" )
909 .Scope( AS_GLOBAL )
910 .FriendlyName( _( "Edit Footprint" ) )
911 .Tooltip( _( "Show selected footprint on editor canvas" ) )
912 .Icon( BITMAPS::edit ) );
913
915 .Name( "pcbnew.ModuleEditor.duplicateFootprint" )
916 .Scope( AS_GLOBAL )
917 .FriendlyName( _( "Duplicate Footprint" ) )
918 .Icon( BITMAPS::duplicate ) );
919
921 .Name( "pcbnew.ModuleEditor.renameFootprint" )
922 .Scope( AS_GLOBAL )
923 .FriendlyName( _( "Rename Footprint..." ) )
924 .Icon( BITMAPS::edit ) );
925
927 .Name( "pcbnew.ModuleEditor.deleteFootprint" )
928 .Scope( AS_GLOBAL )
929 .FriendlyName( _( "Delete Footprint from Library" ) )
930 .Icon( BITMAPS::trash ) );
931
933 .Name( "pcbnew.ModuleEditor.cutFootprint" )
934 .Scope( AS_GLOBAL )
935 .FriendlyName( _( "Cut Footprint" ) )
936 .Icon( BITMAPS::cut ) );
937
939 .Name( "pcbnew.ModuleEditor.copyFootprint" )
940 .Scope( AS_GLOBAL )
941 .FriendlyName( _( "Copy Footprint" ) )
942 .Icon( BITMAPS::copy ) );
943
945 .Name( "pcbnew.ModuleEditor.pasteFootprint" )
946 .Scope( AS_GLOBAL )
947 .FriendlyName( _( "Paste Footprint" ) )
948 .Icon( BITMAPS::paste ) );
949
951 .Name( "pcbnew.ModuleEditor.importFootprint" )
952 .Scope( AS_GLOBAL )
953 .FriendlyName( _( "Import Footprint..." ) )
954 .Tooltip( _( "Import footprint from file" ) )
955 .Icon( BITMAPS::import_module ) );
956
958 .Name( "pcbnew.ModuleEditor.exportFootprint" )
959 .Scope( AS_GLOBAL )
960 .FriendlyName( _( "Export Current Footprint..." ) )
961 .Tooltip( _( "Export edited footprint to file" ) )
962 .Icon( BITMAPS::export_module ) );
963
965 .Name( "pcbnew.ModuleEditor.footprintProperties" )
966 .Scope( AS_GLOBAL )
967 .FriendlyName( _( "Footprint Properties..." ) )
968 .Icon( BITMAPS::module_options ) );
969
971 .Name( "pcbnew.ModuleEditor.padTable" )
972 .Scope( AS_GLOBAL )
973 .FriendlyName( _( "Pad Table..." ) )
974 .Tooltip( _( "Displays pad table for bulk editing of pads" ) )
975 .Icon( BITMAPS::pin_table ) );
976
978 .Name( "pcbnew.ModuleEditor.checkFootprint" )
979 .Scope( AS_GLOBAL )
980 .FriendlyName( _( "Footprint Checker" ) )
981 .Tooltip( _( "Show the footprint checker window" ) )
982 .Icon( BITMAPS::erc ) );
983
985 .Name( "pcbnew.ModuleEditor.loadFootprintFromBoard" )
986 .Scope( AS_GLOBAL )
987 .FriendlyName( _( "Load footprint from current PCB" ) )
988 .Tooltip( _( "Load footprint from current board" ) )
990
992 .Name( "pcbnew.ModuleEditor.saveFootprintToBoard" )
993 .Scope( AS_GLOBAL )
994 .FriendlyName( _( "Insert footprint into PCB" ) )
995 .Tooltip( _( "Insert footprint into current board" ) )
997
999 .Name( "pcbnew.Control.previousFootprint" )
1000 .Scope( AS_GLOBAL )
1001 .FriendlyName( _( "Display previous footprint" ) )
1002 .Icon( BITMAPS::lib_previous )
1003 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::PREVIOUS_PART ) );
1004
1006 .Name( "pcbnew.Control.nextFootprint" )
1007 .Scope( AS_GLOBAL )
1008 .FriendlyName( _( "Display next footprint" ) )
1009 .Icon( BITMAPS::lib_next )
1010 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::NEXT_PART ) );
1011
1012// GLOBAL_EDIT_TOOL
1013//
1015 .Name( "pcbnew.GlobalEdit.updateFootprint" )
1016 .Scope( AS_GLOBAL )
1017 .FriendlyName( _( "Update Footprint..." ) )
1018 .Tooltip( _( "Update footprint to include any changes from the library" ) )
1019 .Icon( BITMAPS::refresh ) );
1020
1022 .Name( "pcbnew.GlobalEdit.updateFootprints" )
1023 .Scope( AS_GLOBAL )
1024 .FriendlyName( _( "Update Footprints from Library..." ) )
1025 .Tooltip( _( "Update footprints to include any changes from the library" ) )
1026 .Icon( BITMAPS::refresh ) );
1027
1029 .Name( "pcbnew.GlobalEdit.migrate3DModels" )
1030 .Scope( AS_GLOBAL )
1031 .FriendlyName( _( "Migrate 3D Models..." ) )
1032 .Tooltip( _( "Replace obsolete WRL 3D model references with current STEP models" ) )
1033 .Icon( BITMAPS::refresh ) );
1034
1036 .Name( "pcbnew.GlobalEdit.removeUnusedPads" )
1037 .Scope( AS_GLOBAL )
1038 .FriendlyName( _( "Remove Unused Pads..." ) )
1039 .Tooltip( _( "Remove or restore the unconnected inner layers on through hole pads and vias" ) )
1040 .Icon( BITMAPS::pads_remove ) );
1041
1043 .Name( "pcbnew.GlobalEdit.changeFootprint" )
1044 .Scope( AS_GLOBAL )
1045 .FriendlyName( _( "Change Footprint..." ) )
1046 .Tooltip( _( "Assign a different footprint from the library" ) )
1047 .Icon( BITMAPS::exchange ) );
1048
1050 .Name( "pcbnew.GlobalEdit.changeFootprints" )
1051 .Scope( AS_GLOBAL )
1052 .FriendlyName( _( "Change Footprints..." ) )
1053 .Tooltip( _( "Assign different footprints from the library" ) )
1054 .Icon( BITMAPS::exchange ) );
1055
1057 .Name( "pcbnew.GlobalEdit.swapLayers" )
1058 .Scope( AS_GLOBAL )
1059 .FriendlyName( _( "Swap Layers..." ) )
1060 .Tooltip( _( "Move tracks or drawings from one layer to another" ) )
1061 .Icon( BITMAPS::swap_layer ) );
1062
1064 .Name( "pcbnew.GlobalEdit.editTracksAndVias" )
1065 .Scope( AS_GLOBAL )
1066 .FriendlyName( _( "Edit Track & Via Properties..." ) )
1067 .Tooltip( _( "Edit track and via properties globally across board" ) )
1068 .Icon( BITMAPS::width_track_via ) );
1069
1071 .Name( "pcbnew.GlobalEdit.editTextAndGraphics" )
1072 .Scope( AS_GLOBAL )
1073 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
1074 .Tooltip( _( "Edit Text and graphics properties globally across board" ) )
1075 .Icon( BITMAPS::text ) );
1076
1078 .Name( "pcbnew.GlobalEdit.editTeardrops" )
1079 .Scope( AS_GLOBAL )
1080 .FriendlyName( _( "Edit Teardrops..." ) )
1081 .Tooltip( _( "Add, remove or edit teardrops globally across board" ) )
1082 .Icon( BITMAPS::via ) );
1083
1085 .Name( "pcbnew.GlobalEdit.globalDeletions" )
1086 .Scope( AS_GLOBAL )
1087 .FriendlyName( _( "Global Deletions..." ) )
1088 .Tooltip( _( "Delete tracks, footprints and graphic items from board" ) )
1089 .Icon( BITMAPS::general_deletions ) );
1090
1092 .Name( "pcbnew.GlobalEdit.cleanupTracksAndVias" )
1093 .Scope( AS_GLOBAL )
1094 .FriendlyName( _( "Cleanup Tracks & Vias..." ) )
1095 .Tooltip( _( "Cleanup redundant items, shorting items, etc." ) )
1097
1099 .Name( "pcbnew.GlobalEdit.cleanupGraphics" )
1100 .Scope( AS_GLOBAL )
1101 .FriendlyName( _( "Cleanup Graphics..." ) )
1102 .Tooltip( _( "Cleanup redundant items, etc." ) )
1103 .Icon( BITMAPS::cleanup_graphics ) );
1104
1105// MICROWAVE_TOOL
1106//
1108 .Name( "pcbnew.MicrowaveTool.createGap" )
1109 .Scope( AS_GLOBAL )
1110 .FriendlyName( _( "Draw Microwave Gaps" ) )
1111 .Tooltip( _( "Create gap of specified length for microwave applications" ) )
1112 .Icon( BITMAPS::mw_add_gap )
1113 .Flags( AF_ACTIVATE )
1114 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::GAP ) );
1115
1117 .Name( "pcbnew.MicrowaveTool.createStub" )
1118 .Scope( AS_GLOBAL )
1119 .FriendlyName( _( "Draw Microwave Stubs" ) )
1120 .Tooltip( _( "Create stub of specified length for microwave applications" ) )
1121 .Icon( BITMAPS::mw_add_stub )
1122 .Flags( AF_ACTIVATE )
1123 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB ) );
1124
1126 .Name( "pcbnew.MicrowaveTool.createStubArc" )
1127 .Scope( AS_GLOBAL )
1128 .FriendlyName( _( "Draw Microwave Arc Stubs" ) )
1129 .Tooltip( _( "Create stub (arc) of specified size for microwave applications" ) )
1131 .Flags( AF_ACTIVATE )
1133
1135 .Name( "pcbnew.MicrowaveTool.createFunctionShape" )
1136 .Scope( AS_GLOBAL )
1137 .FriendlyName( _( "Draw Microwave Polygonal Shapes" ) )
1138 .Tooltip( _( "Create a microwave polygonal shape from a list of vertices" ) )
1139 .Icon( BITMAPS::mw_add_shape )
1140 .Flags( AF_ACTIVATE )
1142
1144 .Name( "pcbnew.MicrowaveTool.createLine" )
1145 .Scope( AS_GLOBAL )
1146 .FriendlyName( _( "Draw Microwave Lines" ) )
1147 .Tooltip( _( "Create line of specified length for microwave applications" ) )
1148 .Icon( BITMAPS::mw_add_line )
1149 .Flags( AF_ACTIVATE ) );
1150
1151
1152// PAD_TOOL
1153//
1155 .Name( "pcbnew.PadTool.CopyPadSettings" )
1156 .Scope( AS_GLOBAL )
1157 .FriendlyName( _( "Copy Pad Properties to Default" ) )
1158 .Tooltip( _( "Copy current pad's properties" ) )
1159 .Icon( BITMAPS::copy_pad_settings ) );
1160
1162 .Name( "pcbnew.PadTool.ApplyPadSettings" )
1163 .Scope( AS_GLOBAL )
1164 .FriendlyName( _( "Paste Default Pad Properties to Selected" ) )
1165 .Tooltip( _( "Replace the current pad's properties with those copied earlier" ) )
1166 .Icon( BITMAPS::apply_pad_settings ) );
1167
1169 .Name( "pcbnew.PadTool.PushPadSettings" )
1170 .Scope( AS_GLOBAL )
1171 .FriendlyName( _( "Push Pad Properties to Other Pads..." ) )
1172 .Tooltip( _( "Copy the current pad's properties to other pads" ) )
1173 .Icon( BITMAPS::push_pad_settings ) );
1174
1176 .Name( "pcbnew.PadTool.enumeratePads" )
1177 .Scope( AS_GLOBAL )
1178 .FriendlyName( _( "Renumber Pads..." ) )
1179 .Tooltip( _( "Renumber pads by clicking on them in the desired order" ) )
1180 .Icon( BITMAPS::pad_enumerate )
1181 .Flags( AF_ACTIVATE ) );
1182
1184 .Name( "pcbnew.PadTool.placePad" )
1185 .Scope( AS_GLOBAL )
1186 .FriendlyName( _( "Add Pad" ) )
1187 .Tooltip( _( "Add a pad" ) )
1188 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1189 .Icon( BITMAPS::pad )
1190 .Flags( AF_ACTIVATE ) );
1191
1193 .Name( "pcbnew.PadTool.explodePad" )
1194 .Scope( AS_GLOBAL )
1195 .DefaultHotkey( MD_CTRL + 'E' )
1196 .FriendlyName( _( "Edit Pad as Graphic Shapes" ) )
1197 .Tooltip( _( "Ungroups a custom-shaped pad for editing as individual graphic shapes" ) )
1199
1201 .Name( "pcbnew.PadTool.recombinePad" )
1202 .Scope( AS_GLOBAL )
1203 .DefaultHotkey( MD_CTRL + 'E' )
1204 .FriendlyName( _( "Finish Pad Edit" ) )
1205 .Tooltip( _( "Regroups all touching graphic shapes into the edited pad" ) )
1207
1209 .Name( "pcbnew.PadTool.defaultPadProperties" )
1210 .Scope( AS_GLOBAL )
1211 .FriendlyName( _( "Default Pad Properties..." ) )
1212 .Tooltip( _( "Edit the pad properties used when creating new pads" ) )
1213 .Icon( BITMAPS::options_pad ) );
1214
1215
1216// SCRIPTING TOOL
1217//
1218
1220 .Name( "pcbnew.ScriptingTool.pluginsShowFolder" )
1221 .Scope( AS_GLOBAL )
1222#ifdef __WXMAC__
1223 .FriendlyName( _( "Reveal Plugin Folder in Finder" ) )
1224 .Tooltip( _( "Reveals the plugins folder in a Finder window" ) )
1225#else
1226 .FriendlyName( _( "Open Plugin Directory" ) )
1227 .Tooltip( _( "Opens the directory in the default system file manager" ) )
1228#endif
1229 .Icon( BITMAPS::directory_open ) );
1230
1231// BOARD_EDITOR_CONTROL
1232//
1234 .Name( "pcbnew.EditorControl.appendBoard" )
1235 .Scope( AS_GLOBAL )
1236 .FriendlyName( _( "Append Board..." ) )
1237 .Tooltip( _( "Open another board and append its contents to this board" ) )
1238 .Icon( BITMAPS::add_board ) );
1239
1241 .Name( "pcbnew.EditorControl.rescueAutosave" )
1242 .Scope( AS_GLOBAL )
1243 .FriendlyName( _( "Rescue" ) )
1244 .Tooltip( _( "Clear board and get last rescue file automatically saved by PCB editor" ) )
1245 .Icon( BITMAPS::rescue ) );
1246
1248 .Name( "pcbnew.EditorControl.openNonKicadBoard" )
1249 .Scope( AS_GLOBAL )
1250 .FriendlyName( _( "Import Non-KiCad Board File..." ) )
1251 .Tooltip( _( "Import board file from other applications" ) )
1252 .Icon( BITMAPS::import_brd_file ) );
1253
1255 .Name( "pcbnew.EditorControl.exportFootprints" )
1256 .Scope( AS_GLOBAL )
1257 .FriendlyName( _( "Export Footprints..." ) )
1258 .Tooltip( _( "Add footprints from board to a new or an existing footprint library\n"
1259 "(does not remove other footprints from this library)" ) )
1260 .Icon( BITMAPS::library_archive ) );
1261
1263 .Name( "pcbnew.EditorControl.boardSetup" )
1264 .Scope( AS_GLOBAL )
1265 .FriendlyName( _( "Board Setup..." ) )
1266 .Tooltip( _( "Edit board setup including layers, design rules and various defaults" ) )
1267 .Icon( BITMAPS::options_board ) );
1268
1270 .Name( "pcbnew.EditorControl.importNetlist" )
1271 .Scope( AS_GLOBAL )
1272 .FriendlyName( _( "Import Netlist..." ) )
1273 .Tooltip( _( "Read netlist and update board connectivity" ) )
1274 .Icon( BITMAPS::netlist ) );
1275
1277 .Name( "pcbnew.EditorControl.importSpecctraSession" )
1278 .Scope( AS_GLOBAL )
1279 .FriendlyName( _( "Import Specctra Session..." ) )
1280 .Tooltip( _( "Import routed Specctra session (*.ses) file" ) )
1281 .Icon( BITMAPS::import ) );
1282
1284 .Name( "pcbnew.EditorControl.exportSpecctraDSN" )
1285 .Scope( AS_GLOBAL )
1286 .FriendlyName( _( "Export Specctra DSN..." ) )
1287 .Tooltip( _( "Export Specctra DSN routing info" ) )
1288 .Icon( BITMAPS::export_dsn ) );
1289
1291 .Name( "pcbnew.EditorControl.generateGerbers" )
1292 .Scope( AS_GLOBAL )
1293 .FriendlyName( _( "Gerbers (.gbr)..." ) )
1294 .Tooltip( _( "Generate Gerbers for fabrication" ) )
1295 .Icon( BITMAPS::post_gerber ) );
1296
1298 .Name( "pcbnew.EditorControl.generateDrillFiles" )
1299 .Scope( AS_GLOBAL )
1300 .FriendlyName( _( "Drill Files (.drl)..." ) )
1301 .Tooltip( _( "Generate Excellon drill file(s)" ) )
1302 .Icon( BITMAPS::post_drill ) );
1303
1305 .Name( "pcbnew.EditorControl.generatePosFile" )
1306 .Scope( AS_GLOBAL )
1307 .FriendlyName( _( "Component Placement (.pos, .gbr)..." ) )
1308 .Tooltip( _( "Generate component placement file(s) for pick and place" ) )
1309 .Icon( BITMAPS::post_compo ) );
1310
1312 .Name( "pcbnew.EditorControl.generateReportFile" )
1313 .Scope( AS_GLOBAL )
1314 .FriendlyName( _( "Footprint Report (.rpt)..." ) )
1315 .Tooltip( _( "Create report of all footprints from current board" ) )
1316 .Icon( BITMAPS::post_rpt ) );
1317
1319 .Name( "pcbnew.EditorControl.generateIPC2581File" )
1320 .Scope( AS_GLOBAL )
1321 .FriendlyName( _( "IPC-2581 File (.xml)..." ) )
1322 .Tooltip( _( "Generate an IPC-2581 file" ) )
1323 .Icon( BITMAPS::post_xml ) );
1324
1326 .Name( "pcbnew.EditorControl.generateODBPPFile" )
1327 .Scope( AS_GLOBAL )
1328 .FriendlyName( _( "ODB++ Output File..." ) )
1329 .Tooltip( _( "Generate ODB++ output files" ) )
1330 .Icon( BITMAPS::post_odb ) );
1331
1333 .Name( "pcbnew.EditorControl.generateD356File" )
1334 .Scope( AS_GLOBAL )
1335 .FriendlyName( _( "IPC-D-356 Netlist File..." ) )
1336 .Tooltip( _( "Generate IPC-D-356 netlist file" ) )
1337 .Icon( BITMAPS::post_d356 ) );
1338
1340 .Name( "pcbnew.EditorControl.generateBOM" )
1341 .Scope( AS_GLOBAL )
1342 .FriendlyName( _( "Bill of Materials..." ) )
1343 .Tooltip( _( "Create bill of materials from board" ) )
1344 .Icon( BITMAPS::post_bom ) );
1345
1347 .Name( "pcbnew.EditorControl.exportGenCAD" )
1348 .Scope( AS_GLOBAL )
1349 .FriendlyName( _( "Export GenCAD..." ) )
1350 .Tooltip( _( "Export GenCAD board representation" ) )
1351 .Icon( BITMAPS::post_gencad ) );
1352
1354 .Name( "pcbnew.EditorControl.exportVRML" )
1355 .Scope( AS_GLOBAL )
1356 .FriendlyName( _( "Export VRML..." ) )
1357 .Tooltip( _( "Export VRML 3D board representation" ) )
1358 .Icon( BITMAPS::export3d ) );
1359
1361 .Name( "pcbnew.EditorControl.exportIDF" )
1362 .Scope( AS_GLOBAL )
1363 .FriendlyName( _( "Export IDFv3..." ) )
1364 .Tooltip( _( "Export IDF 3D board representation" ) )
1365 .Icon( BITMAPS::export_idf ) );
1366
1368 .Name( "pcbnew.EditorControl.exportSTEP" )
1369 .Scope( AS_GLOBAL )
1370 .FriendlyName( _( "Export STEP/GLB/BREP/XAO/PLY/STL..." ) )
1371 .Tooltip( _( "Export STEP, GLB, BREP, XAO, PLY or STL 3D board representation" ) )
1372 .Icon( BITMAPS::export_step ) );
1373
1375 .Name( "pcbnew.EditorControl.exportFootprintAssociations" )
1376 .Scope( AS_GLOBAL )
1377 .FriendlyName( _( "Export Footprint Association (.cmp) File..." ) )
1378 .Tooltip( _( "Export footprint association file (*.cmp) for schematic back annotation" ) )
1379 .Icon( BITMAPS::export_cmp ) );
1380
1382 .Name( "pcbnew.EditorControl.exportHyperlynx" )
1383 .Scope( AS_GLOBAL )
1384 .FriendlyName( _( "Hyperlynx..." ) )
1385 .Icon( BITMAPS::export_step ) );
1386
1388 .Name( "pcbnew.EditorControl.collect3DModels" )
1389 .Scope( AS_GLOBAL )
1390 .FriendlyName( _( "Collect And Embed 3D Models" ) )
1391 .Tooltip( _( "Collect footprint 3D models and embed them into the board" ) )
1392 .Icon( BITMAPS::import3d ) );
1393
1394
1395// Track & via size control
1397 .Name( "pcbnew.EditorControl.trackWidthInc" )
1398 .Scope( AS_GLOBAL )
1399 .DefaultHotkey( 'W' )
1400 .LegacyHotkeyName( "Switch Track Width To Next" )
1401 .FriendlyName( _( "Switch Track Width to Next" ) )
1402 .Tooltip( _( "Change track width to next pre-defined size" ) ) );
1403
1405 .Name( "pcbnew.EditorControl.trackWidthDec" )
1406 .Scope( AS_GLOBAL )
1407 .DefaultHotkey( MD_SHIFT + 'W' )
1408 .LegacyHotkeyName( "Switch Track Width To Previous" )
1409 .FriendlyName( _( "Switch Track Width to Previous" ) )
1410 .Tooltip( _( "Change track width to previous pre-defined size" ) ) );
1411
1413 .Name( "pcbnew.EditorControl.viaSizeInc" )
1414 .Scope( AS_GLOBAL )
1415 .DefaultHotkey( '\'' )
1416 .LegacyHotkeyName( "Increase Via Size" )
1417 .FriendlyName( _( "Increase Via Size" ) )
1418 .Tooltip( _( "Change via size to next pre-defined size" ) ) );
1419
1421 .Name( "pcbnew.EditorControl.viaSizeDec" )
1422 .Scope( AS_GLOBAL )
1423 .DefaultHotkey( '\\' )
1424 .LegacyHotkeyName( "Decrease Via Size" )
1425 .FriendlyName( _( "Decrease Via Size" ) )
1426 .Tooltip( _( "Change via size to previous pre-defined size" ) ) );
1427
1429 .Name( "pcbnew.EditorControl.autoTrackWidth" )
1430 .Scope( AS_GLOBAL )
1431 .FriendlyName( _( "Automatically select track width" ) )
1432 .Tooltip( _( "When routing from an existing track use its width instead "
1433 "of the current width setting" ) )
1435 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1436
1438 .Name( "pcbnew.EditorControl.trackViaSizeChanged" )
1439 .Scope( AS_GLOBAL )
1440 .Flags( AF_NOTIFY ) );
1441
1443 .Name( "pcbnew.EditorControl.assignNetclass" )
1444 .Scope( AS_GLOBAL )
1445 .FriendlyName( _( "Assign Netclass..." ) )
1446 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
1447 .Icon( BITMAPS::netlist ) );
1448
1450 .Name( "pcbnew.EditorControl.zoneMerge" )
1451 .Scope( AS_GLOBAL )
1452 .FriendlyName( _( "Merge Zones" ) ) );
1453
1455 .Name( "pcbnew.EditorControl.zoneDuplicate" )
1456 .Scope( AS_GLOBAL )
1457 .FriendlyName( _( "Duplicate Zone onto Layer..." ) )
1458 .Icon( BITMAPS::zone_duplicate ) );
1459
1461 .Name( "pcbnew.EditorControl.zonePriorityMoveToTop" )
1462 .Scope( AS_GLOBAL )
1463 .FriendlyName( _( "Move to Top" ) )
1464 .Icon( BITMAPS::small_up ) );
1465
1467 .Name( "pcbnew.EditorControl.zonePriorityRaise" )
1468 .Scope( AS_GLOBAL )
1469 .FriendlyName( _( "Raise" ) )
1470 .Icon( BITMAPS::small_up ) );
1471
1473 .Name( "pcbnew.EditorControl.zonePriorityLower" )
1474 .Scope( AS_GLOBAL )
1475 .FriendlyName( _( "Lower" ) )
1476 .Icon( BITMAPS::small_down ) );
1477
1479 .Name( "pcbnew.EditorControl.zonePriorityMoveToBottom" )
1480 .Scope( AS_GLOBAL )
1481 .FriendlyName( _( "Move to Bottom" ) )
1482 .Icon( BITMAPS::small_down ) );
1483
1485 .Name( "pcbnew.EditorControl.placeFootprint" )
1486 .Scope( AS_GLOBAL )
1487 .DefaultHotkey( 'A' )
1488 .LegacyHotkeyName( "Add Footprint" )
1489 .FriendlyName( _( "Place Footprints" ) )
1490 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1491 .Icon( BITMAPS::module )
1492 .Flags( AF_ACTIVATE )
1493 .Parameter<FOOTPRINT*>( nullptr ) );
1494
1496 .Name( "pcbnew.EditorControl.drillOrigin" )
1497 .Scope( AS_GLOBAL )
1498 .FriendlyName( _( "Drill/Place File Origin" ) )
1499 .Tooltip( _( "Place origin point for drill files and component placement files" ) )
1500 .Icon( BITMAPS::set_origin )
1501 .Flags( AF_ACTIVATE ) );
1502
1504 .Name( "pcbnew.EditorControl.drillResetOrigin" )
1505 .Scope( AS_GLOBAL )
1506 .LegacyHotkeyName( "Reset Drill Origin" )
1507 .FriendlyName( _( "Reset Drill Origin" ) ) );
1508
1510 .Name( "pcbnew.EditorControl.drillSetOrigin" )
1511 .Scope( AS_CONTEXT )
1512 .Parameter( VECTOR2I() ) );
1513
1515 .Name( "pcbnew.EditorControl.toggleLock" )
1516 .Scope( AS_GLOBAL )
1517 .DefaultHotkey( 'L' )
1518 .LegacyHotkeyName( "Lock/Unlock Footprint" )
1519 .FriendlyName( _( "Toggle Lock" ) )
1520 .Tooltip( _( "Lock or unlock selected items" ) )
1521 .Icon( BITMAPS::lock_unlock ) );
1522
1523// Line mode grouping and events (for PCB and Footprint editors)
1525 .Name( "pcbnew.EditorControl.lineModeFree" )
1526 .Scope( AS_GLOBAL )
1527 .FriendlyName( _( "Line Modes" ) )
1528 .Tooltip( _( "Draw and drag at any angle" ) )
1529 .Icon( BITMAPS::lines_any )
1530 .Flags( AF_NONE )
1531 .Parameter( LEADER_MODE::DIRECT ) );
1532
1534 .Name( "pcbnew.EditorControl.lineModeOrthonal" )
1535 .Scope( AS_GLOBAL )
1536 .FriendlyName( _( "Line Modes" ) )
1537 .Tooltip( _( "Constrain drawing and dragging to horizontal or vertical motions" ) )
1538 .Icon( BITMAPS::lines90 )
1539 .Flags( AF_NONE )
1540 .Parameter( LEADER_MODE::DEG90 ) );
1541
1543 .Name( "pcbnew.EditorControl.lineMode45" )
1544 .Scope( AS_GLOBAL )
1545 .FriendlyName( _( "Line Modes" ) )
1546 .Tooltip( _( "Constrain drawing and dragging to horizontal, vertical, or 45-degree angle motions" ) )
1547 .Icon( BITMAPS::hv45mode )
1548 .Flags( AF_NONE )
1549 .Parameter( LEADER_MODE::DEG45 ) );
1550
1552 .Name( "pcbnew.EditorControl.lineModeNext" )
1553 .DefaultHotkey( MD_SHIFT + ' ' )
1554 .Scope( AS_GLOBAL )
1555 .FriendlyName( _( "Line Modes" ) )
1556 .Tooltip( _( "Switch to next angle snapping mode" ) ) );
1557
1559 .Name( "pcbnew.EditorControl.angleSnapModeChanged" )
1560 .Scope( AS_GLOBAL )
1561 .Flags( AF_NOTIFY ) );
1562
1564 .Name( "pcbnew.EditorControl.lock" )
1565 .Scope( AS_GLOBAL )
1566 .FriendlyName( _( "Lock" ) )
1567 .Tooltip( _( "Prevent items from being moved and/or resized on the canvas" ) )
1568 .Icon( BITMAPS::locked ) );
1569
1571 .Name( "pcbnew.EditorControl.unlock" )
1572 .Scope( AS_GLOBAL )
1573 .FriendlyName( _( "Unlock" ) )
1574 .Tooltip( _( "Allow items to be moved and/or resized on the canvas" ) )
1575 .Icon( BITMAPS::unlocked ) );
1576
1578 .Name( "pcbnew.EditorControl.highlightNet" )
1579 .Scope( AS_GLOBAL )
1580 .DefaultHotkey( '`' )
1581 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1582 .LegacyHotkeyName( "Toggle Highlight of Selected Net (Modern Toolset only)" )
1583 .FriendlyName( _( "Highlight Net" ) )
1584 .Tooltip( _( "Highlight net under cursor" ) )
1585 .Icon( BITMAPS::net_highlight )
1586 .Parameter<int>( 0 ) );
1587
1589 .Name( "pcbnew.EditorControl.toggleLastNetHighlight" )
1590 .Scope( AS_GLOBAL )
1591 .FriendlyName( _( "Toggle Last Net Highlight" ) )
1592 .Tooltip( _( "Toggle between last two highlighted nets" ) )
1593 .Parameter<int>( 0 ) );
1594
1596 .Name( "pcbnew.EditorControl.clearHighlight" )
1597 .Scope( AS_GLOBAL )
1598 .DefaultHotkey( '~' )
1599 .FriendlyName( _( "Clear Net Highlighting" ) ) );
1600
1602 .Name( "pcbnew.EditorControl.toggleNetHighlight" )
1603 .Scope( AS_GLOBAL )
1604 .DefaultHotkey( MD_ALT + '`' )
1605 .FriendlyName( _( "Toggle Net Highlight" ) )
1606 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1607 .Icon( BITMAPS::net_highlight )
1608 .Parameter<int>( 0 ) );
1609
1611 .Name( "pcbnew.EditorControl.highlightNetSelection" )
1612 .Scope( AS_GLOBAL )
1613 .FriendlyName( _( "Highlight Net" ) )
1614 .Tooltip( _( "Highlight all copper items on the selected net(s)" ) )
1615 .Icon( BITMAPS::net_highlight )
1616 .Parameter<int>( 0 ) );
1617
1619 .Name( "pcbnew.EditorControl.highlightNetChain" )
1620 .Scope( AS_GLOBAL )
1621 .FriendlyName( _( "Highlight Net Chain" ) )
1622 .Tooltip( _( "Highlight every net in the net chain" ) )
1623 .Icon( BITMAPS::net_highlight ) );
1624
1626 .Name( "pcbnew.EditorControl.setTerminalPad" )
1627 .Scope( AS_GLOBAL )
1628 .Parameter<std::pair<KIID, KIID>>( { niluuid, niluuid } )
1629 .FriendlyName( _( "Set Terminal Pad" ) ) );
1630
1632 .Name( "pcbnew.EditorControl.highlightItem" )
1633 .Scope( AS_GLOBAL ) );
1634
1636 .Name( "pcbnew.EditorControl.hideNet" )
1637 .Scope( AS_GLOBAL )
1638 .FriendlyName( _( "Hide Net in Ratsnest" ) )
1639 .Tooltip( _( "Hide the selected net in the ratsnest of unconnected net lines/arcs" ) )
1640 .Icon( BITMAPS::hide_ratsnest )
1641 .Parameter<int>( 0 ) ); // Default to hiding selected net
1642
1644 .Name( "pcbnew.EditorControl.showNet" )
1645 .Scope( AS_GLOBAL )
1646 .FriendlyName( _( "Show Net in Ratsnest" ) )
1647 .Tooltip( _( "Show the selected net in the ratsnest of unconnected net lines/arcs" ) )
1648 .Icon( BITMAPS::show_ratsnest )
1649 .Parameter<int>( 0 ) ); // Default to showing selected net
1650
1652 .Name( "pcbnew.EditorControl.showEeschema" )
1653 .Scope( AS_GLOBAL )
1654 .FriendlyName( _( "Switch to Schematic Editor" ) )
1655 .Tooltip( _( "Open schematic in schematic editor" ) )
1656 .Icon( BITMAPS::icon_eeschema_24 ) );
1657
1658// DESIGN RULE EDITOR
1660 .Name( "pcbnew.DRETool.drcRuleEditor" )
1661 .Scope( AS_GLOBAL )
1662 .FriendlyName( _( "DRC Rule Editor" ) )
1663 .Tooltip( _( "Open DRC rule editor window" ) ) );
1664
1665// PCB_CONTROL
1666//
1667
1669 .Name( "pcbnew.Control.localRatsnestTool" )
1670 .Scope( AS_GLOBAL )
1671 .FriendlyName( _( "Local Ratsnest" ) )
1672 .Tooltip( _( "Toggle ratsnest display of selected item(s)" ) )
1673 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1674 .Icon( BITMAPS::tool_ratsnest )
1675 .Flags( AF_ACTIVATE ) );
1676
1678 .Name( "pcbnew.Control.hideDynamicRatsnest" )
1679 .Scope( AS_GLOBAL ) );
1680
1682 .Name( "pcbnew.Control.updateLocalRatsnest" )
1683 .Scope( AS_GLOBAL )
1684 .Parameter( VECTOR2I() ) );
1685
1687 .Name( "pcbnew.Control.showLayersManager" )
1688 .Scope( AS_GLOBAL )
1689 .FriendlyName( _( "Appearance" ) )
1690 .Tooltip( _( "Show/hide the appearance manager" ) )
1691 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1692 .Icon( BITMAPS::layers_manager ) );
1693
1695 .Name( "pcbnew.Control.showNetInspector" )
1696 .Scope( AS_GLOBAL )
1697 .FriendlyName( _( "Net Inspector" ) )
1698 .Tooltip( _( "Show/hide the net inspector" ) )
1699 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1700 .Icon( BITMAPS::tools ) );
1701
1703 .Name( "pcbnew.Control.zonesManager" )
1704 .Scope( AS_GLOBAL )
1705 .FriendlyName( _( "Zone Manager..." ) )
1706 .Tooltip( _( "Show the zone manager dialog" ) )
1707 .Icon( BITMAPS::show_zone ) );
1708
1710 .Name( "pcbnew.Control.flipBoard" )
1711 .Scope( AS_GLOBAL )
1712 .FriendlyName( _( "Flip Board View" ) )
1713 .Tooltip( _( "View board from the opposite side" ) )
1714 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1715 .Icon( BITMAPS::flip_board ) );
1716
1718 .Name( "pcbnew.Control.rehatchShapes" )
1719 .Scope( AS_CONTEXT ) );
1720
1721
1722// Display modes
1724 .Name( "pcbnew.Control.showRatsnest" )
1725 .Scope( AS_GLOBAL )
1726 .FriendlyName( _( "Show Ratsnest" ) )
1727 .Tooltip( _( "Show lines/arcs representing missing connections on the board" ) )
1728 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1729 .Icon( BITMAPS::general_ratsnest ) );
1730
1732 .Name( "pcbnew.Control.ratsnestLineMode" )
1733 .Scope( AS_GLOBAL )
1734 .FriendlyName( _( "Curved Ratsnest Lines" ) )
1735 .Tooltip( _( "Show ratsnest with curved lines" ) )
1736 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1737 .Icon( BITMAPS::curved_ratsnest ) );
1738
1740 .Name( "pcbnew.Control.ratsnestModeCycle" )
1741 .Scope( AS_GLOBAL )
1742 .FriendlyName( _( "Ratsnest Mode (3-state)" ) )
1743 .Tooltip( _( "Cycle between showing ratsnests for all layers, just visible layers, and none" ) ) );
1744
1746 .Name( "pcbnew.Control.netColorMode" )
1747 .Scope( AS_GLOBAL )
1748 .FriendlyName( _( "Net Color Mode (3-state)" ) )
1749 .Tooltip( _( "Cycle between using net and netclass colors for all nets, just ratsnests, and none" ) ) );
1750
1752 .Name( "pcbnew.Control.trackDisplayMode" )
1753 .Scope( AS_GLOBAL )
1754 .DefaultHotkey( 'K' )
1755 .LegacyHotkeyName( "Track Display Mode" )
1756 .FriendlyName( _( "Sketch Tracks" ) )
1757 .Tooltip( _( "Show tracks in outline mode" ) )
1758 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1759 .Icon( BITMAPS::showtrack ) );
1760
1762 .Name( "pcbnew.Control.padDisplayMode" )
1763 .Scope( AS_GLOBAL )
1764 .FriendlyName( _( "Sketch Pads" ) )
1765 .Tooltip( _( "Show pads in outline mode" ) )
1766 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1767 .Icon( BITMAPS::pad_sketch ) );
1768
1770 .Name( "pcbnew.Control.viaDisplayMode" )
1771 .Scope( AS_GLOBAL )
1772 .FriendlyName( _( "Sketch Vias" ) )
1773 .Tooltip( _( "Show vias in outline mode" ) )
1774 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1775 .Icon( BITMAPS::via_sketch ) );
1776
1778 .Name( "pcbnew.Control.graphicOutlines" )
1779 .Scope( AS_GLOBAL )
1780 .FriendlyName( _( "Sketch Graphic Items" ) )
1781 .Tooltip( _( "Show graphic items in outline mode" ) )
1782 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1783 .Icon( BITMAPS::show_mod_edge ) );
1784
1786 .Name( "pcbnew.Control.textOutlines" )
1787 .Scope( AS_GLOBAL )
1788 .FriendlyName( _( "Sketch Text Items" ) )
1789 .Tooltip( _( "Show footprint texts in line mode" ) )
1790 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1791 .Icon( BITMAPS::text_sketch ) );
1792
1794 .Name( "pcbnew.Control.showPadNumbers" )
1795 .Scope( AS_GLOBAL )
1796 .FriendlyName( _( "Show Pad Numbers" ) )
1797 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1798 .Icon( BITMAPS::pad_number ) );
1799
1801 .Name( "pcbnew.Control.zoneDisplayEnable" )
1802 .Scope( AS_GLOBAL )
1803 .FriendlyName( _( "Draw Zone Fills" ) )
1804 .Tooltip( _( "Show filled areas of zones" ) )
1805 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1806 .Icon( BITMAPS::show_zone ) );
1807
1809 .Name( "pcbnew.Control.zoneDisplayDisable" )
1810 .Scope( AS_GLOBAL )
1811 .FriendlyName( _( "Draw Zone Outlines" ) )
1812 .Tooltip( _( "Show only zone boundaries" ) )
1813 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1814 .Icon( BITMAPS::show_zone_disable ) );
1815
1817 .Name( "pcbnew.Control.zoneDisplayOutlines" )
1818 .Scope( AS_GLOBAL )
1819 .FriendlyName( _( "Draw Zone Fill Fracture Borders" ) )
1820 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1822
1824 .Name( "pcbnew.Control.zoneDisplayTesselation" )
1825 .Scope( AS_GLOBAL )
1826 .FriendlyName( _( "Draw Zone Fill Triangulation" ) )
1827 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1829
1831 .Name( "pcbnew.Control.zoneDisplayToggle" )
1832 .Scope( AS_GLOBAL )
1833 .FriendlyName( _( "Toggle Zone Display" ) )
1834 .Tooltip( _( "Cycle between showing zone fills and just their outlines" ) )
1835 .Icon( BITMAPS::show_zone ) );
1836
1837
1839 .Name( "pcbnew.Control.fpAutoZoom" )
1840 .Scope( AS_GLOBAL )
1841 .FriendlyName( _( "Automatic zoom" ) )
1842 .Tooltip( _( "Automatic Zoom on footprint change" ) )
1844 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1845
1846// Layer control
1847
1848// Translate aLayer to the action that switches to it
1850{
1851 switch( aLayer )
1852 {
1853 case F_Cu: return &PCB_ACTIONS::layerTop;
1854 case In1_Cu: return &PCB_ACTIONS::layerInner1;
1855 case In2_Cu: return &PCB_ACTIONS::layerInner2;
1856 case In3_Cu: return &PCB_ACTIONS::layerInner3;
1857 case In4_Cu: return &PCB_ACTIONS::layerInner4;
1858 case In5_Cu: return &PCB_ACTIONS::layerInner5;
1859 case In6_Cu: return &PCB_ACTIONS::layerInner6;
1860 case In7_Cu: return &PCB_ACTIONS::layerInner7;
1861 case In8_Cu: return &PCB_ACTIONS::layerInner8;
1862 case In9_Cu: return &PCB_ACTIONS::layerInner9;
1863 case In10_Cu: return &PCB_ACTIONS::layerInner10;
1864 case In11_Cu: return &PCB_ACTIONS::layerInner11;
1865 case In12_Cu: return &PCB_ACTIONS::layerInner12;
1866 case In13_Cu: return &PCB_ACTIONS::layerInner13;
1867 case In14_Cu: return &PCB_ACTIONS::layerInner14;
1868 case In15_Cu: return &PCB_ACTIONS::layerInner15;
1869 case In16_Cu: return &PCB_ACTIONS::layerInner16;
1870 case In17_Cu: return &PCB_ACTIONS::layerInner17;
1871 case In18_Cu: return &PCB_ACTIONS::layerInner18;
1872 case In19_Cu: return &PCB_ACTIONS::layerInner19;
1873 case In20_Cu: return &PCB_ACTIONS::layerInner20;
1874 case In21_Cu: return &PCB_ACTIONS::layerInner21;
1875 case In22_Cu: return &PCB_ACTIONS::layerInner22;
1876 case In23_Cu: return &PCB_ACTIONS::layerInner23;
1877 case In24_Cu: return &PCB_ACTIONS::layerInner24;
1878 case In25_Cu: return &PCB_ACTIONS::layerInner25;
1879 case In26_Cu: return &PCB_ACTIONS::layerInner26;
1880 case In27_Cu: return &PCB_ACTIONS::layerInner27;
1881 case In28_Cu: return &PCB_ACTIONS::layerInner28;
1882 case In29_Cu: return &PCB_ACTIONS::layerInner29;
1883 case In30_Cu: return &PCB_ACTIONS::layerInner30;
1884 case B_Cu: return &PCB_ACTIONS::layerBottom;
1885 default: return nullptr;
1886 }
1887}
1888
1889// Implemented as an accessor + static variable to ensure it is initialized when used
1890// in static action constructors
1892{
1893 static TOOL_ACTION_GROUP s_toolActionGroup( "pcbnew.Control.DirectLayerActions" );
1894 return s_toolActionGroup;
1895}
1896
1898 .Name( "pcbnew.Control.layerTop" )
1899 .Scope( AS_GLOBAL )
1901 .DefaultHotkey( WXK_PAGEUP )
1902 .LegacyHotkeyName( "Switch to Component (F.Cu) layer" )
1903 .FriendlyName( _( "Switch to Component (F.Cu) layer" ) )
1904 .Flags( AF_NOTIFY )
1905 .Parameter( F_Cu ) );
1906
1908 .Name( "pcbnew.Control.layerInner1" )
1909 .Scope( AS_GLOBAL )
1911 .LegacyHotkeyName( "Switch to Inner layer 1" )
1912 .FriendlyName( _( "Switch to Inner Layer 1" ) )
1913 .Flags( AF_NOTIFY )
1914 .Parameter( In1_Cu ) );
1915
1917 .Name( "pcbnew.Control.layerInner2" )
1918 .Scope( AS_GLOBAL )
1920 .LegacyHotkeyName( "Switch to Inner layer 2" )
1921 .FriendlyName( _( "Switch to Inner Layer 2" ) )
1922 .Flags( AF_NOTIFY )
1923 .Parameter( In2_Cu ) );
1924
1926 .Name( "pcbnew.Control.layerInner3" )
1927 .Scope( AS_GLOBAL )
1929 .LegacyHotkeyName( "Switch to Inner layer 3" )
1930 .FriendlyName( _( "Switch to Inner Layer 3" ) )
1931 .Flags( AF_NOTIFY )
1932 .Parameter( In3_Cu ) );
1933
1935 .Name( "pcbnew.Control.layerInner4" )
1936 .Scope( AS_GLOBAL )
1938 .LegacyHotkeyName( "Switch to Inner layer 4" )
1939 .FriendlyName( _( "Switch to Inner Layer 4" ) )
1940 .Flags( AF_NOTIFY )
1941 .Parameter( In4_Cu ) );
1942
1944 .Name( "pcbnew.Control.layerInner5" )
1945 .Scope( AS_GLOBAL )
1947 .LegacyHotkeyName( "Switch to Inner layer 5" )
1948 .FriendlyName( _( "Switch to Inner Layer 5" ) )
1949 .Flags( AF_NOTIFY )
1950 .Parameter( In5_Cu ) );
1951
1953 .Name( "pcbnew.Control.layerInner6" )
1954 .Scope( AS_GLOBAL )
1956 .LegacyHotkeyName( "Switch to Inner layer 6" )
1957 .FriendlyName( _( "Switch to Inner Layer 6" ) )
1958 .Flags( AF_NOTIFY )
1959 .Parameter( In6_Cu ) );
1960
1962 .Name( "pcbnew.Control.layerInner7" )
1963 .Scope( AS_GLOBAL )
1965 .FriendlyName( _( "Switch to Inner Layer 7" ) )
1966 .Flags( AF_NOTIFY )
1967 .Parameter( In7_Cu ) );
1968
1970 .Name( "pcbnew.Control.layerInner8" )
1971 .Scope( AS_GLOBAL )
1973 .FriendlyName( _( "Switch to Inner Layer 8" ) )
1974 .Flags( AF_NOTIFY )
1975 .Parameter( In8_Cu ) );
1976
1978 .Name( "pcbnew.Control.layerInner9" )
1979 .Scope( AS_GLOBAL )
1981 .FriendlyName( _( "Switch to Inner Layer 9" ) )
1982 .Flags( AF_NOTIFY )
1983 .Parameter( In9_Cu ) );
1984
1986 .Name( "pcbnew.Control.layerInner10" )
1987 .Scope( AS_GLOBAL )
1989 .FriendlyName( _( "Switch to Inner Layer 10" ) )
1990 .Flags( AF_NOTIFY )
1991 .Parameter( In10_Cu ) );
1992
1994 .Name( "pcbnew.Control.layerInner11" )
1995 .Scope( AS_GLOBAL )
1997 .FriendlyName( _( "Switch to Inner Layer 11" ) )
1998 .Flags( AF_NOTIFY )
1999 .Parameter( In11_Cu ) );
2000
2002 .Name( "pcbnew.Control.layerInner12" )
2003 .Scope( AS_GLOBAL )
2005 .FriendlyName( _( "Switch to Inner Layer 12" ) )
2006 .Flags( AF_NOTIFY )
2007 .Parameter( In12_Cu ) );
2008
2010 .Name( "pcbnew.Control.layerInner13" )
2011 .Scope( AS_GLOBAL )
2013 .FriendlyName( _( "Switch to Inner Layer 13" ) )
2014 .Flags( AF_NOTIFY )
2015 .Parameter( In13_Cu ) );
2016
2018 .Name( "pcbnew.Control.layerInner14" )
2019 .Scope( AS_GLOBAL )
2021 .FriendlyName( _( "Switch to Inner Layer 14" ) )
2022 .Flags( AF_NOTIFY )
2023 .Parameter( In14_Cu ) );
2024
2026 .Name( "pcbnew.Control.layerInner15" )
2027 .Scope( AS_GLOBAL )
2029 .FriendlyName( _( "Switch to Inner Layer 15" ) )
2030 .Flags( AF_NOTIFY )
2031 .Parameter( In15_Cu ) );
2032
2034 .Name( "pcbnew.Control.layerInner16" )
2035 .Scope( AS_GLOBAL )
2037 .FriendlyName( _( "Switch to Inner Layer 16" ) )
2038 .Flags( AF_NOTIFY )
2039 .Parameter( In16_Cu ) );
2040
2042 .Name( "pcbnew.Control.layerInner17" )
2043 .Scope( AS_GLOBAL )
2045 .FriendlyName( _( "Switch to Inner Layer 17" ) )
2046 .Flags( AF_NOTIFY )
2047 .Parameter( In17_Cu ) );
2048
2050 .Name( "pcbnew.Control.layerInner18" )
2051 .Scope( AS_GLOBAL )
2053 .FriendlyName( _( "Switch to Inner Layer 18" ) )
2054 .Flags( AF_NOTIFY )
2055 .Parameter( In18_Cu ) );
2056
2058 .Name( "pcbnew.Control.layerInner19" )
2059 .Scope( AS_GLOBAL )
2061 .FriendlyName( _( "Switch to Inner Layer 19" ) )
2062 .Flags( AF_NOTIFY )
2063 .Parameter( In19_Cu ) );
2064
2066 .Name( "pcbnew.Control.layerInner20" )
2067 .Scope( AS_GLOBAL )
2069 .FriendlyName( _( "Switch to Inner Layer 20" ) )
2070 .Flags( AF_NOTIFY )
2071 .Parameter( In20_Cu ) );
2072
2074 .Name( "pcbnew.Control.layerInner21" )
2075 .Scope( AS_GLOBAL )
2077 .FriendlyName( _( "Switch to Inner Layer 21" ) )
2078 .Flags( AF_NOTIFY )
2079 .Parameter( In21_Cu ) );
2080
2082 .Name( "pcbnew.Control.layerInner22" )
2083 .Scope( AS_GLOBAL )
2085 .FriendlyName( _( "Switch to Inner Layer 22" ) )
2086 .Flags( AF_NOTIFY )
2087 .Parameter( In22_Cu ) );
2088
2090 .Name( "pcbnew.Control.layerInner23" )
2091 .Scope( AS_GLOBAL )
2093 .FriendlyName( _( "Switch to Inner Layer 23" ) )
2094 .Flags( AF_NOTIFY )
2095 .Parameter( In23_Cu ) );
2096
2098 .Name( "pcbnew.Control.layerInner24" )
2099 .Scope( AS_GLOBAL )
2101 .FriendlyName( _( "Switch to Inner Layer 24" ) )
2102 .Flags( AF_NOTIFY )
2103 .Parameter( In24_Cu ) );
2104
2106 .Name( "pcbnew.Control.layerInner25" )
2107 .Scope( AS_GLOBAL )
2109 .FriendlyName( _( "Switch to Inner Layer 25" ) )
2110 .Flags( AF_NOTIFY )
2111 .Parameter( In25_Cu ) );
2112
2114 .Name( "pcbnew.Control.layerInner26" )
2115 .Scope( AS_GLOBAL )
2117 .FriendlyName( _( "Switch to Inner Layer 26" ) )
2118 .Flags( AF_NOTIFY )
2119 .Parameter( In26_Cu ) );
2120
2122 .Name( "pcbnew.Control.layerInner27" )
2123 .Scope( AS_GLOBAL )
2125 .FriendlyName( _( "Switch to Inner Layer 27" ) )
2126 .Flags( AF_NOTIFY )
2127 .Parameter( In27_Cu ) );
2128
2130 .Name( "pcbnew.Control.layerInner28" )
2131 .Scope( AS_GLOBAL )
2133 .FriendlyName( _( "Switch to Inner Layer 28" ) )
2134 .Flags( AF_NOTIFY )
2135 .Parameter( In28_Cu ) );
2136
2138 .Name( "pcbnew.Control.layerInner29" )
2139 .Scope( AS_GLOBAL )
2141 .FriendlyName( _( "Switch to Inner Layer 29" ) )
2142 .Flags( AF_NOTIFY )
2143 .Parameter( In29_Cu ) );
2144
2146 .Name( "pcbnew.Control.layerInner30" )
2147 .Scope( AS_GLOBAL )
2149 .FriendlyName( _( "Switch to Inner Layer 30" ) )
2150 .Flags( AF_NOTIFY )
2151 .Parameter( In30_Cu ) );
2152
2154 .Name( "pcbnew.Control.layerBottom" )
2155 .Scope( AS_GLOBAL )
2157 .DefaultHotkey( WXK_PAGEDOWN )
2158 .LegacyHotkeyName( "Switch to Copper (B.Cu) layer" )
2159 .FriendlyName( _( "Switch to Copper (B.Cu) Layer" ) )
2160 .Flags( AF_NOTIFY )
2161 .Parameter( B_Cu ) );
2162
2164 .Name( "pcbnew.Control.layerNext" )
2165 .Scope( AS_GLOBAL )
2166 .DefaultHotkey( '+' )
2167 .LegacyHotkeyName( "Switch to Next Layer" )
2168 .FriendlyName( _( "Switch to Next Layer" ) )
2169 .Flags( AF_NOTIFY ) );
2170
2172 .Name( "pcbnew.Control.layerPrev" )
2173 .Scope( AS_GLOBAL )
2174 .DefaultHotkey( '-' )
2175 .LegacyHotkeyName( "Switch to Previous Layer" )
2176 .FriendlyName( _( "Switch to Previous Layer" ) )
2177 .Flags( AF_NOTIFY ) );
2178
2180 .Name( "pcbnew.Control.layerToggle" )
2181 .Scope( AS_GLOBAL )
2182 .DefaultHotkey( 'V' )
2183 .LegacyHotkeyName( "Add Through Via" )
2184 .FriendlyName( _( "Toggle Layer" ) )
2185 .Tooltip( _( "Switch between layers in active layer pair" ) )
2186 .Flags( AF_NOTIFY ) );
2187
2189 .Name( "pcbnew.Control.layerAlphaInc" )
2190 .Scope( AS_GLOBAL )
2191 .DefaultHotkey( '}' )
2192 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2193 .LegacyHotkeyName( "Increment Layer Transparency (Modern Toolset only)" )
2194 .FriendlyName( _( "Increase Layer Opacity" ) )
2195 .Tooltip( _( "Make the current layer less transparent" ) )
2196 .Icon( BITMAPS::contrast_mode ) );
2197
2199 .Name( "pcbnew.Control.layerAlphaDec" )
2200 .Scope( AS_GLOBAL )
2201 .DefaultHotkey( '{' )
2202 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2203 .LegacyHotkeyName( "Decrement Layer Transparency (Modern Toolset only)" )
2204 .FriendlyName( _( "Decrease Layer Opacity" ) )
2205 .Tooltip( _( "Make the current layer more transparent" ) )
2206 .Icon( BITMAPS::contrast_mode ) );
2207
2209 .Name( "pcbnew.Control.layerPairPresetCycle" )
2210 .Scope( AS_GLOBAL )
2211 .DefaultHotkey( MD_SHIFT + 'V' )
2212 .FriendlyName( _( "Cycle Layer Pair Presets" ) )
2213 .Tooltip( _( "Cycle between preset layer pairs" ) ) );
2214
2216 .Name( "pcbnew.Control.layerChanged" )
2217 .Scope( AS_GLOBAL )
2218 .Flags( AF_NOTIFY ) );
2219
2220//Show board statistics tool
2222 .Name( "pcbnew.InspectionTool.ShowBoardStatistics" )
2223 .Scope( AS_GLOBAL )
2224 .FriendlyName( _( "Show Board Statistics" ) )
2225 .Tooltip( _( "Shows board statistics" ) )
2226 .Icon( BITMAPS::editor ) );
2227
2229 .Name( "pcbnew.InspectionTool.InspectClearance" )
2230 .Scope( AS_GLOBAL )
2231 .FriendlyName( _( "Clearance Resolution" ) )
2232 .Tooltip( _( "Show clearance resolution for the active layer between two selected objects" ) )
2233 .Icon( BITMAPS::mw_add_gap ) );
2234
2236 .Name( "pcbnew.InspectionTool.InspectConstraints" )
2237 .Scope( AS_GLOBAL )
2238 .FriendlyName( _( "Constraints Resolution" ) )
2239 .Tooltip( _( "Show constraints resolution for the selected object" ) )
2240 .Icon( BITMAPS::mw_add_stub ) );
2241
2243 .Name( "pcbnew.InspectionTool.DiffFootprint" )
2244 .Scope( AS_GLOBAL )
2245 .FriendlyName( _( "Compare Footprint with Library" ) )
2246 .Tooltip( _( "Show differences between board footprint and its library equivalent" ) )
2247 .Icon( BITMAPS::library ) );
2248
2250 .Name( "pcbnew.InspectionTool.ShowFootprintAssociations" )
2251 .Scope( AS_GLOBAL )
2252 .FriendlyName( _( "Show Footprint Associations" ) )
2253 .Tooltip( _( "Show footprint library and schematic symbol associations" ) )
2255
2256//Geographic re-annotation tool
2258 .Name( "pcbnew.ReannotateTool.ShowReannotateDialog" )
2259 .Scope( AS_GLOBAL )
2260 .FriendlyName( _( "Geographical Reannotate..." ) )
2261 .Tooltip( _( "Reannotate PCB in geographical order" ) )
2262 .Icon( BITMAPS::annotate ) );
2263
2265 .Name( "pcbnew.Control.repairBoard" )
2266 .Scope( AS_GLOBAL )
2267 .FriendlyName( _( "Repair Board" ) )
2268 .Tooltip( _( "Run various diagnostics and attempt to repair board" ) )
2269 .Icon( BITMAPS::rescue )
2270 .Parameter( false ) ); // Don't repair quietly
2271
2273 .Name( "pcbnew.ModuleEditor.repairFootprint" )
2274 .Scope( AS_GLOBAL )
2275 .FriendlyName( _( "Repair Footprint" ) )
2276 .Tooltip( _( "Run various diagnostics and attempt to repair footprint" ) )
2277 .Icon( BITMAPS::rescue ) );
2278
2279
2280// PLACEMENT_TOOL
2281//
2283 .Name( "pcbnew.AlignAndDistribute.alignTop" )
2284 .Scope( AS_GLOBAL )
2285 .FriendlyName( _( "Align to Top" ) )
2286 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
2287 .Icon( BITMAPS::align_items_top ) );
2288
2290 .Name( "pcbnew.AlignAndDistribute.alignBottom" )
2291 .Scope( AS_GLOBAL )
2292 .FriendlyName( _( "Align to Bottom" ) )
2293 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
2294 .Icon( BITMAPS::align_items_bottom ) );
2295
2297 .Name( "pcbnew.AlignAndDistribute.alignLeft" )
2298 .Scope( AS_GLOBAL )
2299 .FriendlyName( _( "Align to Left" ) )
2300 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
2301 .Icon( BITMAPS::align_items_left ) );
2302
2304 .Name( "pcbnew.AlignAndDistribute.alignRight" )
2305 .Scope( AS_GLOBAL )
2306 .FriendlyName( _( "Align to Right" ) )
2307 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
2308 .Icon( BITMAPS::align_items_right ) );
2309
2311 .Name( "pcbnew.AlignAndDistribute.alignCenterY" )
2312 .Scope( AS_GLOBAL )
2313 .FriendlyName( _( "Align to Vertical Center" ) )
2314 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
2315 .Icon( BITMAPS::align_items_center ) );
2316
2318 .Name( "pcbnew.AlignAndDistribute.alignCenterX" )
2319 .Scope( AS_GLOBAL )
2320 .FriendlyName( _( "Align to Horizontal Center" ) )
2321 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
2322 .Icon( BITMAPS::align_items_middle ) );
2323
2325 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyCenters" )
2326 .Scope( AS_GLOBAL )
2327 .FriendlyName( _( "Distribute Horizontally by Centers" ) )
2328 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
2329 "so that the item centers are equally distributed" ) )
2331
2333 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyGaps" )
2334 .Scope( AS_GLOBAL )
2335 .FriendlyName( _( "Distribute Horizontally with Even Gaps" ) )
2336 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
2337 "so that the gaps between items are equal" ) )
2339
2341 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyGaps" )
2342 .Scope( AS_GLOBAL )
2343 .FriendlyName( _( "Distribute Vertically with Even Gaps" ) )
2344 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2345 "so that the gaps between items are equal" ) )
2347
2349 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyCenters" )
2350 .Scope( AS_GLOBAL )
2351 .FriendlyName( _( "Distribute Vertically by Centers" ) )
2352 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2353 "so that the item centers are equally distributed" ) )
2355
2356// PCB_POINT_EDITOR
2357//
2359 .Name( "pcbnew.PointEditor.addCorner" )
2360 .Scope( AS_GLOBAL )
2361#ifdef __WXMAC__
2362 .DefaultHotkey( WXK_F1 )
2363#else
2364 .DefaultHotkey( WXK_INSERT )
2365#endif
2366 .FriendlyName( _( "Create Corner" ) )
2367 .Tooltip( _( "Create a corner" ) )
2368 .Icon( BITMAPS::add_corner ) );
2369
2371 .Name( "pcbnew.PointEditor.removeCorner" )
2372 .Scope( AS_GLOBAL )
2373 .FriendlyName( _( "Remove Corner" ) )
2374 .Tooltip( _( "Remove corner" ) )
2375 .Icon( BITMAPS::delete_cursor ) );
2376
2378 .Name( "pcbnew.PointEditor.chamferCorner" )
2379 .Scope( AS_GLOBAL )
2380 .FriendlyName( _( "Chamfer Corner" ) )
2381 .Tooltip( _( "Chamfer corner" ) )
2382 .Icon( BITMAPS::chamfer ) );
2383
2384// POSITION_RELATIVE_TOOL
2385//
2387 .Name( "pcbnew.PositionRelative.positionRelative" )
2388 .Scope( AS_GLOBAL )
2389 .DefaultHotkey( MD_SHIFT + 'P' )
2390 .LegacyHotkeyName( "Position Item Relative" )
2391 .FriendlyName( _( "Position Relative To..." ) )
2392 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another" ) )
2393 .Icon( BITMAPS::move_relative ) );
2394
2396 .Name( "pcbnew.PositionRelative.interactiveOffsetTool" )
2397 .Scope( AS_GLOBAL )
2398 .FriendlyName( _( "Interactive Offset Tool" ) )
2399 .Tooltip( _( "Interactive tool for offsetting items by exact amounts" ) )
2400 .Icon( BITMAPS::move_relative ) );
2401
2402// PCIKER_TOOL
2403//
2405 .Name( "pcbnew.Picker.selectItemInteractively" )
2406 .Scope( AS_GLOBAL )
2407 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ) );
2408
2410 .Name( "pcbnew.Picker.selectPointInteractively" )
2411 .Scope( AS_GLOBAL )
2412 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ));
2413
2414
2416 .Name( "pcbnew.InteractiveSelection.SelectConnection" )
2417 .Scope( AS_GLOBAL )
2418 .DefaultHotkey( 'U' )
2419 .LegacyHotkeyName( "Select Single Track" )
2420 .FriendlyName( _( "Select/Expand Connection" ) )
2421 .Tooltip( _( "Selects a connection or expands an existing selection to junctions, pads, or entire connections" ) )
2422 .Icon( BITMAPS::add_tracks ) );
2423
2425 .Name( "pcbnew.InteractiveSelection.unrouteSelected" )
2426 .Scope( AS_GLOBAL )
2427 .FriendlyName( _( "Unroute Selected" ) )
2428 .Tooltip( _( "Unroutes selected items to the nearest pad." ) )
2429 .Icon( BITMAPS::general_deletions ) );
2430
2432 .Name( "pcbnew.InteractiveSelection.unrouteSegment" )
2433 .Scope( AS_GLOBAL )
2434 .DefaultHotkey( WXK_BACK )
2435 .FriendlyName( _( "Unroute Segment" ) )
2436 .Tooltip( _( "Unroutes segment to the nearest segment." ) )
2437 .Icon( BITMAPS::general_deletions ) );
2438
2440 .Name( "pcbnew.InteractiveSelection.SyncSelection" )
2441 .Scope( AS_GLOBAL ) );
2442
2444 .Name( "pcbnew.InteractiveSelection.SyncSelectionWithNets" )
2445 .Scope( AS_GLOBAL ) );
2446
2448 .Name( "pcbnew.InteractiveSelection.SelectNet" )
2449 .Scope( AS_GLOBAL )
2450 .FriendlyName( _( "Select All Tracks in Net" ) )
2451 .Tooltip( _( "Selects all tracks & vias belonging to the same net." ) )
2452 .Parameter<int>( 0 ) );
2453
2455 .Name( "pcbnew.InteractiveSelection.DeselectNet" )
2456 .Scope( AS_GLOBAL )
2457 .FriendlyName( _( "Deselect All Tracks in Net" ) )
2458 .Tooltip( _( "Deselects all tracks & vias belonging to the same net." ) )
2459 .Parameter<int>( 0 ) );
2460
2462 .Name( "pcbnew.InteractiveSelection.SelectNetChain" )
2463 .Scope( AS_GLOBAL )
2464 .FriendlyName( _( "Select All Tracks in Net Chain" ) )
2465 .Tooltip( _( "Selects all tracks & vias belonging to every net in the same net "
2466 "chain (nets joined through series passives)." ) ) );
2467
2469 .Name( "pcbnew.InteractiveSelection.SelectUnconnected" )
2470 .Scope( AS_GLOBAL )
2471 .DefaultHotkey( 'O' )
2472 .FriendlyName( _( "Select All Unconnected Footprints" ) )
2473 .Tooltip( _( "Selects all unconnected footprints belonging to each selected net." ) ) );
2474
2476 .Name( "pcbnew.InteractiveSelection.GrabUnconnected" )
2477 .Scope( AS_GLOBAL )
2478 .DefaultHotkey( MD_SHIFT + 'O' )
2479 .FriendlyName( _( "Grab Nearest Unconnected Footprints" ) )
2480 .Tooltip( _( "Selects and initiates moving the nearest unconnected footprint on each selected net." ) ) );
2481
2483 .Name( "pcbnew.InteractiveSelection.SelectOnSheet" )
2484 .Scope( AS_GLOBAL )
2485 .FriendlyName( _( "Sheet" ) )
2486 .Tooltip( _( "Selects all footprints and tracks in the schematic sheet" ) )
2487 .Icon( BITMAPS::select_same_sheet ) );
2488
2490 .Name( "pcbnew.InteractiveSelection.SelectSameSheet" )
2491 .Scope( AS_GLOBAL )
2492 .FriendlyName( _( "Items in Same Hierarchical Sheet" ) )
2493 .Tooltip( _( "Selects all footprints and tracks in the same schematic sheet" ) )
2494 .Icon( BITMAPS::select_same_sheet ) );
2495
2497 .Name( "pcbnew.InteractiveSelection.SelectOnSchematic" )
2498 .Scope( AS_GLOBAL )
2499 .FriendlyName( _( "Select on Schematic" ) )
2500 .Tooltip( _( "Selects corresponding items in Schematic editor" ) )
2501 .Icon( BITMAPS::select_same_sheet ) );
2502
2504 .Name( "pcbnew.InteractiveSelection.FilterSelection" )
2505 .Scope( AS_GLOBAL )
2506 .FriendlyName( _( "Filter Selected Items..." ) )
2507 .Tooltip( _( "Remove items from the selection by type" ) )
2508 .Icon( BITMAPS::filter ) );
2509
2510
2511// ZONE_FILLER_TOOL
2512//
2514 .Name( "pcbnew.ZoneFiller.zoneFill" )
2515 .Scope( AS_GLOBAL )
2516 .FriendlyName( _( "Draft Fill Selected Zone(s)" ) )
2517 .Tooltip( _( "Update copper fill of selected zone(s) without regard to other interacting zones" ) )
2518 .Icon( BITMAPS::fill_zone )
2519 .Parameter<ZONE*>( nullptr ) );
2520
2522 .Name( "pcbnew.ZoneFiller.zoneFillAll" )
2523 .Scope( AS_GLOBAL )
2524 .DefaultHotkey( 'B' )
2525 .LegacyHotkeyName( "Fill or Refill All Zones" )
2526 .FriendlyName( _( "Fill All Zones" ) )
2527 .Tooltip( _( "Update copper fill of all zones" ) )
2528 .Icon( BITMAPS::fill_zone ) );
2529
2531 .Name( "pcbnew.ZoneFiller.zoneFillDirty" )
2532 .Scope( AS_CONTEXT ) );
2533
2535 .Name( "pcbnew.ZoneFiller.zoneUnfill" )
2536 .Scope( AS_GLOBAL )
2537 .FriendlyName( _( "Unfill Selected Zone(s)" ) )
2538 .Tooltip( _( "Remove copper fill from selected zone(s)" ) )
2539 .Icon( BITMAPS::zone_unfill ) );
2540
2542 .Name( "pcbnew.ZoneFiller.zoneUnfillAll" )
2543 .Scope( AS_GLOBAL )
2544 .DefaultHotkey( MD_CTRL + 'B' )
2545 .LegacyHotkeyName( "Remove Filled Areas in All Zones" )
2546 .FriendlyName( _( "Unfill All Zones" ) )
2547 .Tooltip( _( "Remove copper fill from all zones" ) )
2548 .Icon( BITMAPS::zone_unfill ) );
2549
2550
2551// AUTOPLACER_TOOL
2552//
2554 .Name( "pcbnew.Autoplacer.autoplaceSelected" )
2555 .Scope( AS_GLOBAL )
2556 .FriendlyName( _( "Place Selected Footprints" ) )
2557 .Tooltip( _( "Performs automatic placement of selected components" ) ) );
2558
2560 .Name( "pcbnew.Autoplacer.autoplaceOffboard" )
2561 .Scope( AS_GLOBAL )
2562 .FriendlyName( _( "Place Off-Board Footprints" ) )
2563 .Tooltip( _( "Performs automatic placement of components outside board area" ) ) );
2564
2566 .Name( "pcbnew.Multichannel.generatePlacementRuleAreas" )
2567 .Scope( AS_GLOBAL )
2568 .FriendlyName( _( "Generate Placement Rule Areas..." ) )
2569 .Tooltip( _( "Creates best-fit placement rule areas" ) )
2571 .Flags( AF_ACTIVATE ) );
2572
2574 .Name( "pcbnew.Multichannel.repeatLayout" )
2575 .Scope( AS_GLOBAL )
2576 .FriendlyName( _( "Repeat Layout..." ) )
2577 .Tooltip( _( "Clones placement & routing across multiple identical channels" ) )
2578 .Icon( BITMAPS::copy )
2579 );
2580
2581// ROUTER_TOOL
2582//
2584 .Name( "pcbnew.InteractiveRouter.SingleTrack" )
2585 .Scope( AS_GLOBAL )
2586 .DefaultHotkey( 'X' )
2587 .LegacyHotkeyName( "Add New Track" )
2588 .FriendlyName( _( "Route Single Track" ) )
2589 .Tooltip( _( "Route tracks" ) )
2590 .Icon( BITMAPS::add_tracks )
2591 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2592 .Flags( AF_ACTIVATE )
2593 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2594
2596 .Name( "pcbnew.InteractiveRouter.DiffPair" )
2597 .Scope( AS_GLOBAL )
2598 .DefaultHotkey( '6' )
2599 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2600 .LegacyHotkeyName( "Route Differential Pair (Modern Toolset only)" )
2601 .FriendlyName( _( "Route Differential Pair" ) )
2602 .Tooltip( _( "Route differential pairs" ) )
2603 .Icon( BITMAPS::ps_diff_pair )
2604 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2605 .Flags( AF_ACTIVATE )
2606 .Parameter( PNS::PNS_MODE_ROUTE_DIFF_PAIR ) );
2607
2609 .Name( "pcbnew.InteractiveRouter.SettingsDialog" )
2610 .Scope( AS_GLOBAL )
2611 .DefaultHotkey( MD_CTRL + '<' )
2612 .LegacyHotkeyName( "Routing Options" )
2613 .FriendlyName( _( "Interactive Router Settings..." ) )
2614 .Tooltip( _( "Open Interactive Router settings" ) )
2615 .Icon( BITMAPS::tools ) );
2616
2618 .Name( "pcbnew.InteractiveRouter.DiffPairDialog" )
2619 .Scope( AS_GLOBAL )
2620 .FriendlyName( _( "Differential Pair Dimensions..." ) )
2621 .Tooltip( _( "Open Differential Pair Dimension settings" ) )
2622 .Icon( BITMAPS::ps_diff_pair_gap ) );
2623
2625 .Name( "pcbnew.InteractiveRouter.HighlightMode" )
2626 .Scope( AS_GLOBAL )
2627 .FriendlyName( _( "Router Highlight Mode" ) )
2628 .Tooltip( _( "Switch router to highlight mode" ) )
2629 .Flags( AF_NONE )
2630 .Parameter( PNS::RM_MarkObstacles ) );
2631
2633 .Name( "pcbnew.InteractiveRouter.ShoveMode" )
2634 .Scope( AS_GLOBAL )
2635 .FriendlyName( _( "Router Shove Mode" ) )
2636 .Tooltip( _( "Switch router to shove mode" ) )
2637 .Flags( AF_NONE )
2638 .Parameter( PNS::RM_Shove ) );
2639
2641 .Name( "pcbnew.InteractiveRouter.WalkaroundMode" )
2642 .Scope( AS_GLOBAL )
2643 .FriendlyName( _( "Router Walkaround Mode" ) )
2644 .Tooltip( _( "Switch router to walkaround mode" ) )
2645 .Flags( AF_NONE )
2646 .Parameter( PNS::RM_Walkaround ) );
2647
2649 .Name( "pcbnew.InteractiveRouter.CycleRouterMode" )
2650 .Scope( AS_GLOBAL )
2651 .FriendlyName( _( "Cycle Router Mode" ) )
2652 .Tooltip( _( "Cycle router to the next mode" ) ) );
2653
2655 .Name( "pcbnew.InteractiveRouter.SelectLayerPair" )
2656 .Scope( AS_GLOBAL )
2657 .FriendlyName( _( "Set Layer Pair..." ) )
2658 .Tooltip( _( "Change active layer pair for routing" ) )
2660 .Flags( AF_ACTIVATE ) );
2661
2663 .Name( "pcbnew.LengthTuner.TuneSingleTrack" )
2664 .Scope( AS_GLOBAL )
2665 .DefaultHotkey( '7' )
2666 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2667 .LegacyHotkeyName( "Tune Single Track (Modern Toolset only)" )
2668 .FriendlyName( _( "Tune Length of a Single Track" ) )
2670 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2671 .Flags( AF_ACTIVATE )
2672 .Parameter( PNS::PNS_MODE_TUNE_SINGLE ) );
2673
2675 .Name( "pcbnew.LengthTuner.TuneDiffPair" )
2676 .Scope( AS_GLOBAL )
2677 .DefaultHotkey( '8' )
2678 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2679 .LegacyHotkeyName( "Tune Differential Pair Length (Modern Toolset only)" )
2680 .FriendlyName( _( "Tune Length of a Differential Pair" ) )
2682 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2683 .Flags( AF_ACTIVATE )
2684 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR ) );
2685
2687 .Name( "pcbnew.LengthTuner.TuneDiffPairSkew" )
2688 .Scope( AS_GLOBAL )
2689 .DefaultHotkey( '9' )
2690 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2691 .LegacyHotkeyName( "Tune Differential Pair Skew (Modern Toolset only)" )
2692 .FriendlyName( _( "Tune Skew of a Differential Pair" ) )
2694 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2695 .Flags( AF_ACTIVATE )
2696 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW ) );
2697
2699 .Name( "pcbnew.InteractiveRouter.InlineDrag" )
2700 .Scope( AS_CONTEXT )
2701 .Parameter<int>( PNS::DM_ANY ) );
2702
2704 .Name( "pcbnew.InteractiveRouter.UndoLastSegment" )
2705 .Scope( AS_CONTEXT )
2706 .DefaultHotkey( WXK_BACK )
2707 .FriendlyName( _( "Undo Last Segment" ) )
2708 .Tooltip( _( "Walks the current track back one segment." ) ) );
2709
2711 .Name( "pcbnew.InteractiveRouter.ContinueFromEnd" )
2712 .Scope( AS_CONTEXT )
2713 .DefaultHotkey( MD_CTRL + 'E' )
2714 .FriendlyName( _( "Route From Other End" ) )
2715 .Tooltip( _( "Commits current segments and starts next segment from nearest ratsnest end." ) ) );
2716
2718 .Name( "pcbnew.InteractiveRouter.AttemptFinish" )
2719 .Scope( AS_CONTEXT )
2720 .DefaultHotkey( 'F' )
2721 .FriendlyName( _( "Attempt Finish" ) )
2722 .Tooltip( _( "Attempts to complete current route to nearest ratsnest end." ) )
2723 .Parameter<bool*>( nullptr ) );
2724
2726 .Name( "pcbnew.InteractiveRouter.RouteSelected" )
2727 .Scope( AS_GLOBAL )
2728 .DefaultHotkey( MD_SHIFT + 'X' )
2729 .FriendlyName( _( "Route Selected" ) )
2730 .Tooltip( _( "Sequentially route selected items from ratsnest anchor." ) )
2731 .Flags( AF_ACTIVATE )
2732 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2733
2735 .Name( "pcbnew.InteractiveRouter.RouteSelectedFromEnd" )
2736 .Scope( AS_GLOBAL )
2737 .DefaultHotkey( MD_SHIFT + 'E' )
2738 .FriendlyName( _( "Route Selected From Other End" ) )
2739 .Tooltip( _( "Sequentially route selected items from other end of ratsnest anchor." ) )
2740 .Flags( AF_ACTIVATE )
2741 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2742
2744 .Name( "pcbnew.InteractiveRouter.Autoroute" )
2745 .Scope( AS_GLOBAL )
2746 .DefaultHotkey( MD_SHIFT + 'F' )
2747 .FriendlyName( _( "Attempt Finish Selected (Autoroute)" ) )
2748 .Tooltip( _( "Sequentially attempt to automatically route all selected pads." ) )
2749 .Flags( AF_ACTIVATE )
2750 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2751
2753 .Name( "pcbnew.InteractiveRouter.CancelCurrentItem" )
2754 .Scope( AS_GLOBAL )
2755 .FriendlyName( _( "Cancel Current Item" ) )
2756 .Tooltip( _( "Skip current item and route next selected item." ) ) );
2757
2759 .Name( "pcbnew.InteractiveRouter.BreakTrack" )
2760 .Scope( AS_GLOBAL )
2761 .FriendlyName( _( "Break Track" ) )
2762 .Tooltip( _( "Splits the track segment into two segments connected at the cursor position." ) )
2763 .Icon( BITMAPS::break_line ) );
2764
2766 .Name( "pcbnew.InteractiveRouter.Drag45Degree" )
2767 .Scope( AS_GLOBAL )
2768 .DefaultHotkey( 'D' )
2769 .LegacyHotkeyName( "Drag Track Keep Slope" )
2770 .FriendlyName( _( "Drag 45 Degree Mode" ) )
2771 .Tooltip( _( "Drags the track segment while keeping connected tracks at 45 degrees." ) )
2773
2775 .Name( "pcbnew.InteractiveRouter.DragFreeAngle" )
2776 .Scope( AS_GLOBAL )
2777 .DefaultHotkey( 'G' )
2778 .LegacyHotkeyName( "Drag Item" )
2779 .FriendlyName( _( "Drag Free Angle" ) )
2780 .Tooltip( _( "Drags the nearest joint in the track without restricting the track angle." ) )
2781 .Icon( BITMAPS::drag_segment ) );
2782
2783
2784// GENERATOR_TOOL
2785//
2786
2788 .Name( "pcbnew.Generator.regenerateAllTuning" )
2789 .Scope( AS_GLOBAL )
2790 .FriendlyName( _( "Update All Tuning Patterns" ) )
2791 .Tooltip( _( "Attempt to re-tune existing tuning patterns within their bounds" ) )
2793 .Parameter( wxString( wxS( "tuning_pattern" ) ) ) );
2794
2796 .Name( "pcbnew.Generator.regenerateAll" )
2797 .Scope( AS_GLOBAL )
2798 .FriendlyName( _( "Rebuild All Generators" ) )
2799 .Tooltip( _( "Rebuilds geometry of all generators" ) )
2800 .Icon( BITMAPS::refresh )
2801 .Parameter( wxString( wxS( "*" ) ) ) );
2802
2804 .Name( "pcbnew.Generator.regenerateSelected" )
2805 .Scope( AS_GLOBAL )
2806 .FriendlyName( _( "Rebuild Selected Generators" ) )
2807 .Tooltip( _( "Rebuilds geometry of selected generator(s)" ) )
2808 .Icon( BITMAPS::refresh ) );
2809
2810
2812 .Name( "pcbnew.Generator.genStartEdit" )
2813 .Scope( AS_CONTEXT ) );
2814
2816 .Name( "pcbnew.Generator.genUpdateEdit" )
2817 .Scope( AS_CONTEXT ) );
2818
2820 .Name( "pcbnew.Generator.genFinishEdit" )
2821 .Scope( AS_CONTEXT ) );
2822
2824 .Name( "pcbnew.Generator.genCacnelEdit" )
2825 .Scope( AS_CONTEXT ) );
2826
2828 .Name( "pcbnew.Generator.genRemove" )
2829 .Scope( AS_CONTEXT ) );
2830
2831
2833 .Name( "pcbnew.Generator.showManager" )
2834 .Scope( AS_GLOBAL )
2835 .FriendlyName( _( "Generators Manager" ) )
2836 .Tooltip( _( "Show a manager dialog for Generator objects" ) )
2837 .Icon( BITMAPS::pin_table ) );
2838
2839
2840// LENGTH_TUNER_TOOL
2841//
2843 .Name( "pcbnew.LengthTuner.Settings" )
2844 .ToolbarState( TOOLBAR_STATE::HIDDEN )
2845 .Scope( AS_GLOBAL )
2846 .DefaultHotkey( MD_CTRL + 'L' )
2847 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2848 .LegacyHotkeyName( "Length Tuning Settings (Modern Toolset only)" )
2849 .FriendlyName( _( "Length Tuning Settings" ) )
2850 .MenuText( _( "Length Tuning Settings..." ) )
2851 .Tooltip( _( "Displays tuning pattern properties dialog" ) )
2853
2854// Drag and drop
2856 .Name( "pcbnew.Control.DdAppendBoard" )
2857 .Scope( AS_GLOBAL ) );
2858
2860 .Name( "pcbnew.Control.ddImportFootprint" )
2861 .Scope( AS_GLOBAL ) );
2862
2864 .Name( "pcbnew.InteractiveDrawing.ddImportGraphics" )
2865 .Scope( AS_GLOBAL ) );
2866
2867// actions for footprint wizard frame
2869 .Name( "pcbnew.FpWizard.showWizards" )
2870 .Scope( AS_GLOBAL )
2871 .FriendlyName( _( "Show wizards selector" ) )
2872 .Tooltip( _( "Select wizard script to run" ) )
2873 .Icon( BITMAPS::module_wizard ) );
2874
2876 .Name( "pcbnew.FpWizard.resetWizardPrms" )
2877 .Scope( AS_GLOBAL )
2878 .FriendlyName( _( "Reset wizard parameters" ) )
2879 .Tooltip( _( "Reset wizard parameters to default" ) )
2880 .Icon( BITMAPS::reload ) );
2881
2883 .Name( "pcbnew.FpWizard.exportFpToEditor" )
2884 .Scope( AS_GLOBAL )
2885 .FriendlyName( _( "Export footprint to editor" ) )
2886 .Tooltip( _( "Export footprint to editor" ) )
2888
2889
2891{
2892 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
2893 "common.Interactive.snappingModeChangedByKey" );
2894
2895 return event;
2896}
2897
2898
2900{
2901 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
2902 "pcbnew.Control.layerPairPresetChangedByKey" );
2903
2904 return event;
2905}
@ copy_pad_settings
@ add_zone_cutout
@ cleanup_tracks_and_vias
@ general_deletions
@ align_items_bottom
@ align_items_left
@ show_zone_outline_only
@ push_pad_settings
@ distribute_horizontal_centers
@ distribute_vertical_centers
@ ps_diff_pair_tune_length
@ add_graphical_polygon
@ align_items_middle
@ distribute_horizontal_gaps
@ add_radial_dimension
@ auto_track_width
@ router_len_tuner_dist_incr
@ subtract_polygons
@ align_items_top
@ curved_ratsnest
@ router_len_tuner_dist_decr
@ add_aligned_dimension
@ general_ratsnest
@ add_rectangle
@ outset_from_selection
@ mw_add_stub_arc
@ align_items_right
@ insert_module_board
@ apply_pad_settings
@ add_ellipse_arc
@ icon_eeschema_24
@ add_center_dimension
@ drag_segment_withslope
@ width_track_via
@ export_footprint_names
@ add_graphical_segments
@ intersect_polygons
@ distribute_vertical_gaps
@ ps_diff_pair_tune_phase
@ add_orthogonal_dimension
@ add_component
@ add_keepout_area
@ pack_footprints
@ custom_pad_to_primitives
@ zoom_auto_fit_in_page
@ show_zone_disable
@ align_items_center
@ load_module_board
@ import_brd_file
@ show_zone_triangulation
@ router_len_tuner
@ select_layer_pair
@ router_len_tuner_amplitude_incr
@ select_same_sheet
@ library_archive
@ router_len_tuner_setup
@ cleanup_graphics
@ router_len_tuner_amplitude_decr
@ edit_cmp_symb_links
@ ps_diff_pair_gap
@ CURSOR_NONE
Definition actions.h:304
static TOOL_ACTION deleteLastPoint
static TOOL_ACTION editTracksAndVias
static TOOL_ACTION lineModeFree
Unconstrained angle mode (icon lines_any)
static TOOL_ACTION_GROUP layerDirectSwitchActions()
static TOOL_ACTION deleteFootprint
static TOOL_ACTION drawRuleArea
static TOOL_ACTION layerToggle
static TOOL_ACTION drag45Degree
static TOOL_ACTION duplicateIncrement
Activation of the duplication tool with incrementing (e.g. pad number)
static TOOL_ACTION layerInner12
static TOOL_ACTION changeDimensionArrows
Switch between dimension arrow directions.
static TOOL_ACTION microwaveCreateGap
static TOOL_ACTION recombinePad
static TOOL_ACTION drawBezier
static TOOL_ACTION renameFootprint
static TOOL_ACTION routerUndoLastSegment
static TOOL_ACTION nextFootprint
static TOOL_ACTION placeText
static TOOL_ACTION layerInner8
static TOOL_ACTION swapLayers
static TOOL_ACTION zonesManager
static TOOL_ACTION generateBOM
static TOOL_ACTION highlightItem
static TOOL_ACTION selectNetChain
Select all connections belonging to every net in the current item's net chain.
Definition pcb_actions.h:88
static TOOL_ACTION drawOrthogonalDimension
static TOOL_ACTION drcRuleEditor
static TOOL_ACTION zoneDisplayToggle
static TOOL_ACTION enumeratePads
Tool for quick pad enumeration.
static TOOL_ACTION drawRectangle
static TOOL_ACTION previousFootprint
static TOOL_ACTION layerInner3
static TOOL_ACTION layerPrev
static TOOL_ACTION setAnchor
static TOOL_ACTION padDisplayMode
static TOOL_ACTION placeReferenceImage
static TOOL_ACTION routerSettingsDialog
Activation of the Push and Shove settings dialogs.
static TOOL_ACTION showRatsnest
static TOOL_ACTION exportGenCAD
static TOOL_ACTION zoneFillAll
static TOOL_ACTION layerInner2
static TOOL_ACTION showLayersManager
static TOOL_ACTION changeTrackWidth
Update selected tracks & vias to the current track & via dimensions.
static TOOL_ACTION trackWidthDec
static TOOL_ACTION routerAttemptFinish
static TOOL_ACTION convertToKeepout
static TOOL_ACTION toggleNetHighlight
static TOOL_ACTION generateDrillFiles
static TOOL_ACTION pushPadSettings
Copy the current pad's settings to other pads in the footprint or on the board.
static TOOL_ACTION unrouteSelected
Removes all tracks from the selected items to the first pad.
Definition pcb_actions.h:76
static TOOL_ACTION saveSelectionAsDesignBlock
static TOOL_ACTION drawCircle
static TOOL_ACTION magneticSnapAllLayers
static TOOL_ACTION mirrorH
Mirroring of selected items.
static TOOL_ACTION routeDiffPair
Activation of the Push and Shove router (differential pair mode)
static TOOL_ACTION exportVRML
static TOOL_ACTION generateD356File
static TOOL_ACTION updateFootprint
static TOOL_ACTION collect3DModels
static TOOL_ACTION tuneDiffPair
static TOOL_ACTION convertToTracks
static TOOL_ACTION exportCmpFile
static TOOL_ACTION saveToLinkedDesignBlock
static TOOL_ACTION alignTop
static TOOL_ACTION trackViaSizeChanged
static TOOL_ACTION exportSpecctraDSN
static TOOL_ACTION createFootprint
static TOOL_ACTION layerChanged
static TOOL_ACTION trackWidthInc
static TOOL_ACTION grabUnconnected
Select and move nearest unconnected footprint from ratsnest of selection.
Definition pcb_actions.h:94
static TOOL_ACTION filterSelection
Filter the items in the current selection (invokes dialog)
static TOOL_ACTION setTerminalPad
static TOOL_ACTION ddAppendBoard
Drag and drop.
static TOOL_ACTION editFootprint
static TOOL_ACTION exportFootprint
static TOOL_ACTION layerInner25
static TOOL_ACTION drawEllipseArc
static TOOL_ACTION editDesignBlockProperties
static TOOL_ACTION breakTrack
Break a single track into two segments at the cursor.
static TOOL_ACTION pointEditorMoveMidpoint
static TOOL_ACTION highlightNet
static TOOL_ACTION magneticSnapActiveLayer
Snapping controls.
static TOOL_ACTION autoTrackWidth
static TOOL_ACTION generateIPC2581File
static TOOL_ACTION getAndPlace
Find an item and start moving.
static TOOL_ACTION drawTable
static TOOL_ACTION drawTextBox
static TOOL_ACTION generateODBPPFile
static TOOL_ACTION repeatLayout
static TOOL_ACTION copyPadSettings
Copy the selected pad's settings to the board design settings.
static TOOL_ACTION layerAlphaDec
static TOOL_ACTION routerRouteSelectedFromEnd
static TOOL_ACTION routerHighlightMode
Actions to enable switching modes via hotkey assignments.
static TOOL_ACTION routerWalkaroundMode
static TOOL_ACTION genFinishEdit
static TOOL_ACTION routerShoveMode
static TOOL_ACTION migrate3DModels
static TOOL_ACTION convertToLines
static TOOL_ACTION drawZoneCutout
static TOOL_ACTION drawPolygon
static TOOL_ACTION placePad
Activation of the drawing tool (placing a PAD)
static TOOL_ACTION openNonKicadBoard
static TOOL_ACTION hideNetInRatsnest
static TOOL_ACTION hideLocalRatsnest
static TOOL_ACTION swapPadNets
Swap nets between selected pads/gates (and connected copper)
static TOOL_ACTION exportFpToEditor
static TOOL_ACTION distributeHorizontallyGaps
static TOOL_ACTION zoneDisplayFilled
static TOOL_ACTION layerInner24
static TOOL_ACTION viaSizeDec
static TOOL_ACTION showNetInRatsnest
static TOOL_ACTION drawRadialDimension
static TOOL_ACTION genStartEdit
static TOOL_ACTION padTable
static TOOL_ACTION tuneSingleTrack
static TOOL_ACTION zoneFill
static TOOL_ACTION cleanupTracksAndVias
static TOOL_ACTION viaDisplayMode
static TOOL_ACTION editTextAndGraphics
static TOOL_ACTION properties
Activation of the edit tool.
static TOOL_ACTION drawLeader
static TOOL_ACTION editFpInFpEditor
static TOOL_ACTION moveWithReference
move with a reference point
static TOOL_ACTION toggleLock
static TOOL_ACTION highlightNetChain
static TOOL_ACTION changeTrackLayerPrev
static TOOL_ACTION swap
Swapping of selected items.
static TOOL_ACTION toggleLastNetHighlight
static TOOL_ACTION layerInner29
static TOOL_ACTION * LayerIDToAction(PCB_LAYER_ID aLayerID)
Translate a layer ID into the action that switches to that layer.
static TOOL_ACTION drillResetOrigin
static TOOL_ACTION lineMode45
45-degree-or-orthogonal mode (icon hv45mode)
static TOOL_ACTION deleteDesignBlock
static TOOL_ACTION placeCharacteristics
static TOOL_ACTION zonePriorityMoveToBottom
static TOOL_ACTION pluginsShowFolder
Scripting Actions.
static TOOL_ACTION zonePriorityMoveToTop
static TOOL_ACTION viaSizeInc
static TOOL_ACTION angleSnapModeChanged
Notification event when angle mode changes.
static TOOL_ACTION routerAutorouteSelected
static TOOL_ACTION moveExact
Activation of the exact move tool.
static TOOL_ACTION autoplaceOffboardComponents
static TOOL_ACTION layerInner11
static TOOL_ACTION routerDiffPairDialog
static TOOL_ACTION explodePad
static TOOL_ACTION routerContinueFromEnd
static TOOL_ACTION zoneUnfill
static TOOL_ACTION intersectPolygons
Intersection of multiple polygons.
static TOOL_ACTION pointEditorMoveCorner
static TOOL_ACTION layerAlphaInc
static TOOL_ACTION saveBoardAsDesignBlock
static TOOL_ACTION drawCopperThievingZone
static TOOL_ACTION layerPairPresetsCycle
static TOOL_ACTION distributeHorizontallyCenters
static TOOL_ACTION inspectConstraints
static TOOL_ACTION generatePosFile
static TOOL_ACTION globalDeletions
static TOOL_ACTION lineModeNext
Cycle through angle modes.
static TOOL_ACTION newFootprint
static TOOL_ACTION genRemove
static TOOL_ACTION drillOrigin
static TOOL_ACTION selectOnSheetFromEeschema
Select all components on sheet from Eeschema crossprobing.
Definition pcb_actions.h:97
static TOOL_ACTION layerInner16
static TOOL_ACTION defaultPadProperties
static TOOL_ACTION selectConnection
Select tracks between junctions or expands an existing selection to pads or the entire connection.
Definition pcb_actions.h:73
static TOOL_ACTION assignNetClass
static TOOL_ACTION packAndMoveFootprints
Pack and start moving selected footprints.
static TOOL_ACTION alignRight
static TOOL_ACTION tuneSkew
static TOOL_ACTION copyWithReference
copy command with manual reference point selection
static TOOL_ACTION layerInner26
static TOOL_ACTION genCancelEdit
static TOOL_ACTION layerInner18
static TOOL_ACTION incWidth
Increase width of currently drawn line.
static TOOL_ACTION repairBoard
static TOOL_ACTION layerInner14
static TOOL_ACTION healShapes
Connect selected shapes, possibly extending or cutting them, or adding extra geometry.
static TOOL_ACTION selectPointInteractively
static TOOL_ACTION trackDisplayMode
static TOOL_ACTION exportSTEP
static TOOL_ACTION showNetInspector
static TOOL_ACTION selectLayerPair
static TOOL_ACTION magneticSnapToggle
static TOOL_ACTION microwaveCreateStubArc
static TOOL_ACTION layerInner6
static TOOL_ACTION applyDesignBlockLayout
static TOOL_ACTION dragFreeAngle
static TOOL_ACTION drawEllipse
static TOOL_ACTION findByProperties
Find items by property criteria or expression.
static TOOL_ACTION clearHighlight
static TOOL_ACTION generateGerbers
static TOOL_ACTION inspectClearance
static TOOL_ACTION convertToZone
static TOOL_ACTION ddImportFootprint
static TOOL_ACTION generatorsShowManager
static TOOL_ACTION zoneDisplayTriangulated
static TOOL_ACTION genUpdateEdit
static TOOL_ACTION generateReportFile
static TOOL_ACTION rehatchShapes
static TOOL_ACTION updateLocalRatsnest
static TOOL_ACTION spacingDecrease
static TOOL_ACTION updateFootprints
static TOOL_ACTION exportHyperlynx
static TOOL_ACTION importFootprint
static TOOL_ACTION autoplaceSelectedComponents
static TOOL_ACTION layerInner22
static TOOL_ACTION zonePriorityLower
static TOOL_ACTION placeDesignBlock
static TOOL_ACTION alignBottom
static TOOL_ACTION selectUnconnected
Select unconnected footprints from ratsnest of selection.
Definition pcb_actions.h:91
static TOOL_ACTION placeImportedGraphics
static TOOL_ACTION layerInner5
static TOOL_ACTION removeUnusedPads
static TOOL_ACTION zoneDisplayFractured
static TOOL_ACTION ratsnestModeCycle
static TOOL_ACTION drawVia
static TOOL_ACTION regenerateAll
static TOOL_ACTION showWizards
Footprint wizard frame actions:
static TOOL_ACTION applyPadSettings
Copy the default pad settings to the selected pad.
static TOOL_ACTION alignLeft
static TOOL_ACTION drawArc
static TOOL_ACTION deleteFull
static TOOL_ACTION exportIDF
static TOOL_ACTION runDRC
static TOOL_ACTION convertToPoly
static TOOL_ACTION zoneDuplicate
Duplicate zone onto another layer.
static TOOL_ACTION unrouteSegment
Removes track segment from the selected item to the next segment.
Definition pcb_actions.h:79
static TOOL_ACTION regenerateAllTuning
Generator tool.
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
static TOOL_ACTION importNetlist
static TOOL_ACTION generatePlacementRuleAreas
static TOOL_ACTION layerInner20
static TOOL_ACTION layerInner7
static TOOL_ACTION layerInner27
static TOOL_ACTION diffFootprint
static TOOL_ACTION moveIndividually
move items one-by-one
static TOOL_ACTION changeFootprints
static TOOL_ACTION outsetItems
Create outset items from selection.
static TOOL_ACTION drawSimilarZone
static TOOL_ACTION syncSelection
Sets selection to specified items, zooms to fit, if enabled.
Definition pcb_actions.h:63
static TOOL_ACTION boardSetup
static TOOL_ACTION showEeschema
static TOOL_ACTION loadFpFromBoard
static TOOL_ACTION showDesignBlockPanel
static TOOL_ACTION decWidth
Decrease width of currently drawn line.
static TOOL_ACTION drawCenterDimension
static TOOL_ACTION zoneUnfillAll
static TOOL_ACTION pasteFootprint
static TOOL_ACTION zoneFillDirty
static TOOL_ACTION cancelCurrentItem
static TOOL_ACTION chamferLines
Chamfer (i.e. adds a straight line) all selected straight lines by a user defined setback.
static TOOL_ACTION appendBoard
static TOOL_ACTION netColorModeCycle
static TOOL_ACTION selectSameSheet
Select all components on the same sheet as the selected footprint.
static TOOL_ACTION layerInner1
static TOOL_ACTION layerInner10
static TOOL_ACTION dogboneCorners
Add "dogbone" corners to selected lines to allow routing with a cutter radius.
static TOOL_ACTION microwaveCreateStub
static TOOL_ACTION selectNet
Select all connections belonging to a single net.
Definition pcb_actions.h:82
static TOOL_ACTION filletTracks
Fillet (i.e. adds an arc tangent to) all selected straight tracks by a user defined radius.
static TOOL_ACTION updateDesignBlockFromBoard
static TOOL_ACTION layerInner15
static TOOL_ACTION simplifyPolygons
Simplify polygon outlines.
static TOOL_ACTION arcPosture
Switch posture when drawing arc.
static TOOL_ACTION ddImportGraphics
static TOOL_ACTION interactiveOffsetTool
static TOOL_ACTION microwaveCreateLine
static TOOL_ACTION footprintProperties
static TOOL_ACTION layerInner17
static TOOL_ACTION flipBoard
static TOOL_ACTION layerBottom
static TOOL_ACTION lineMode90
90-degree-only mode (icon lines90)
static TOOL_ACTION zoneDisplayOutline
static TOOL_ACTION ratsnestLineMode
static TOOL_ACTION showFootprintAssociations
static TOOL_ACTION layerInner19
static TOOL_ACTION layerInner9
static TOOL_ACTION fpAutoZoom
static TOOL_ACTION pointEditorChamferCorner
static TOOL_ACTION textOutlines
Display texts as lines.
static TOOL_ACTION resetWizardPrms
static TOOL_ACTION showPadNumbers
static TOOL_ACTION checkFootprint
static TOOL_ACTION filletLines
Fillet (i.e. adds an arc tangent to) all selected straight lines by a user defined radius.
static TOOL_ACTION highlightNetSelection
static TOOL_ACTION microwaveCreateFunctionShape
static TOOL_ACTION placeBarcode
static TOOL_ACTION placePoint
static TOOL_ACTION editLibFpInFpEditor
static TOOL_ACTION zoneMerge
static TOOL_ACTION duplicateFootprint
static TOOL_ACTION closeOutline
static TOOL_ACTION changeFootprint
static TOOL_ACTION routerInlineDrag
Activation of the Push and Shove router (inline dragging mode)
static TOOL_ACTION pointEditorRemoveCorner
static TOOL_ACTION positionRelative
static TOOL_ACTION skip
static TOOL_ACTION amplIncrease
static TOOL_ACTION move
move or drag an item
static TOOL_ACTION mirrorV
static TOOL_ACTION cutFootprint
static TOOL_ACTION amplDecrease
static TOOL_ACTION drillSetOrigin
static TOOL_ACTION unlock
static TOOL_ACTION lengthTunerSettings
static TOOL_ACTION mergePolygons
Merge multiple polygons into a single polygon.
static TOOL_ACTION syncSelectionWithNets
Sets selection to specified items with connected nets, zooms to fit, if enabled.
Definition pcb_actions.h:66
static TOOL_ACTION spacingIncrease
static TOOL_ACTION layerInner30
static TOOL_ACTION boardReannotate
static TOOL_ACTION subtractPolygons
Subtract polygons from other polygons.
static TOOL_ACTION layerTop
static TOOL_ACTION updateDesignBlockFromSelection
static TOOL_ACTION cycleRouterMode
static TOOL_ACTION regenerateSelected
static TOOL_ACTION convertToArc
static TOOL_ACTION layerInner4
static TOOL_ACTION repairFootprint
static TOOL_ACTION changeTrackLayerNext
static TOOL_ACTION flip
Flipping of selected objects.
static TOOL_ACTION exportFootprints
static TOOL_ACTION alignCenterX
static TOOL_ACTION placeFootprint
static TOOL_ACTION pointEditorAddCorner
static TOOL_ACTION routeSingleTrack
Activation of the Push and Shove router.
static TOOL_ACTION layerInner13
static TOOL_ACTION editVertices
Edit polygon vertices in a table.
static TOOL_ACTION layerInner21
static TOOL_ACTION selectItemInteractively
Selection of reference points/items.
static TOOL_ACTION createArray
Tool for creating an array of objects.
static TOOL_ACTION boardStatistics
static TOOL_ACTION saveFpToBoard
static TOOL_ACTION deselectNet
Remove all connections belonging to a single net from the active selection.
Definition pcb_actions.h:85
static TOOL_ACTION editTeardrops
static TOOL_ACTION swapGateNets
static TOOL_ACTION layerNext
static TOOL_ACTION copyFootprint
static TOOL_ACTION extendLines
Extend selected lines to meet at a point.
static TOOL_ACTION drawLine
static TOOL_ACTION placeLinkedDesignBlock
static TOOL_ACTION distributeVerticallyGaps
static TOOL_ACTION placeStackup
static TOOL_ACTION localRatsnestTool
static TOOL_ACTION routerRouteSelected
static TOOL_ACTION cleanupGraphics
static TOOL_ACTION rotateCw
Rotation of selected objects.
static TOOL_ACTION rotateCcw
static TOOL_ACTION drawAlignedDimension
static TOOL_ACTION layerInner23
static TOOL_ACTION distributeVerticallyCenters
static TOOL_ACTION drawZone
static TOOL_ACTION zonePriorityRaise
static TOOL_ACTION alignCenterY
static TOOL_ACTION rescueAutosave
static TOOL_ACTION importSpecctraSession
static TOOL_ACTION selectOnSchematic
Select symbols/pins on schematic corresponding to selected footprints/pads.
static TOOL_ACTION lock
static TOOL_ACTION layerInner28
static const TOOL_EVENT & SnappingModeChangedByKeyEvent()
Hotkey feedback.
static const TOOL_EVENT & LayerPairPresetChangedByKeyEvent()
Build up the properties of a TOOL_ACTION in an incremental manner that is static-construction safe.
TOOL_ACTION_ARGS & FriendlyName(const std::string_view &aName)
Define a group that can be used to group actions (and their events) of similar operations.
Definition tool_action.h:79
Represent a single user action.
Generic, UI-independent tool event.
Definition tool_event.h:171
a few functions useful in geometry calculations.
@ DEG45
45 Degree only
@ DIRECT
Unconstrained point-to-point.
@ DEG90
90 Degree only
KIID niluuid(0)
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:60
@ In22_Cu
Definition layer_ids.h:87
@ In11_Cu
Definition layer_ids.h:76
@ In29_Cu
Definition layer_ids.h:94
@ In30_Cu
Definition layer_ids.h:95
@ In17_Cu
Definition layer_ids.h:82
@ In9_Cu
Definition layer_ids.h:74
@ In19_Cu
Definition layer_ids.h:84
@ In7_Cu
Definition layer_ids.h:72
@ In28_Cu
Definition layer_ids.h:93
@ In26_Cu
Definition layer_ids.h:91
@ B_Cu
Definition layer_ids.h:65
@ In21_Cu
Definition layer_ids.h:86
@ In23_Cu
Definition layer_ids.h:88
@ In15_Cu
Definition layer_ids.h:80
@ In2_Cu
Definition layer_ids.h:67
@ In10_Cu
Definition layer_ids.h:75
@ In4_Cu
Definition layer_ids.h:69
@ In16_Cu
Definition layer_ids.h:81
@ In24_Cu
Definition layer_ids.h:89
@ In1_Cu
Definition layer_ids.h:66
@ In13_Cu
Definition layer_ids.h:78
@ In8_Cu
Definition layer_ids.h:73
@ In14_Cu
Definition layer_ids.h:79
@ In12_Cu
Definition layer_ids.h:77
@ In27_Cu
Definition layer_ids.h:92
@ In6_Cu
Definition layer_ids.h:71
@ In5_Cu
Definition layer_ids.h:70
@ In3_Cu
Definition layer_ids.h:68
@ In20_Cu
Definition layer_ids.h:85
@ F_Cu
Definition layer_ids.h:64
@ In18_Cu
Definition layer_ids.h:83
@ In25_Cu
Definition layer_ids.h:90
@ RM_MarkObstacles
Ignore collisions, mark obstacles.
@ RM_Walkaround
Only walk around.
@ RM_Shove
Only shove.
@ PNS_MODE_ROUTE_SINGLE
Definition pns_router.h:68
@ PNS_MODE_ROUTE_DIFF_PAIR
Definition pns_router.h:69
@ PNS_MODE_TUNE_DIFF_PAIR
Definition pns_router.h:71
@ PNS_MODE_TUNE_SINGLE
Definition pns_router.h:70
@ PNS_MODE_TUNE_DIFF_PAIR_SKEW
Definition pns_router.h:72
@ DM_ANY
Definition pns_router.h:82
#define _(s)
@ SIMILAR
Add a new zone with the same settings as an existing one.
Definition pcb_actions.h:38
@ CUTOUT
Make a cutout to an existing zone.
Definition pcb_actions.h:37
@ GRAPHIC_POLYGON
Definition pcb_actions.h:39
@ ADD
Add a new zone/keepout with fresh settings.
Definition pcb_actions.h:36
@ TOGGLE
Action is a toggle button on the toolbar.
Definition tool_action.h:64
@ HIDDEN
Action is hidden from the toolbar.
Definition tool_action.h:63
@ AS_GLOBAL
Global action (toolbar/main menu event, global shortcut)
Definition tool_action.h:49
@ AS_CONTEXT
Action belongs to a particular tool (i.e. a part of a pop-up menu)
Definition tool_action.h:47
@ AF_ACTIVATE
Action activates a tool.
Definition tool_action.h:56
@ AF_NOTIFY
Action is a notification (it is by default passed to all tools)
Definition tool_action.h:57
@ AF_NONE
Definition tool_action.h:55
@ TA_ACTION
Tool action (allows one to control tools).
Definition tool_event.h:112
@ MD_ALT
Definition tool_event.h:145
@ MD_CTRL
Definition tool_event.h:144
@ MD_SHIFT
Definition tool_event.h:143
@ TC_MESSAGE
Definition tool_event.h:58
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:687