KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_actions.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2013-2023 CERN
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 * @author Maciej Suminski <[email protected]>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22#include "pcb_actions.h"
23#include "tool/tool_action.h"
24#include "tool/tool_event.h"
25#include <pcbnew_id.h>
26#include <bitmaps.h>
27#include <layer_ids.h>
30#include <pcb_reference_image.h>
31#include <tool/tool_manager.h>
34#include <router/pns_router.h>
37
38// Actions, being statically-defined, require specialized I18N handling. We continue to
39// use the _() macro so that string harvesting by the I18N framework doesn't have to be
40// specialized, but we don't translate on initialization and instead do it in the getters.
41
42#undef _
43#define _(s) s
44
45// clang-format off
46
47// CONVERT_TOOL
48//
50 .Name( "pcbnew.Convert.convertToPoly" )
51 .Scope( AS_GLOBAL )
52 .FriendlyName( _( "Create Polygon from Selection..." ) )
53 .Tooltip( _( "Creates a graphic polygon from the selection" ) )
55
57 .Name( "pcbnew.Convert.convertToZone" )
58 .Scope( AS_GLOBAL )
59 .FriendlyName( _( "Create Zone from Selection..." ) )
60 .Tooltip( _( "Creates a copper zone from the selection" ) )
61 .Icon( BITMAPS::add_zone ) );
62
64 .Name( "pcbnew.Convert.convertToKeepout" )
65 .Scope( AS_GLOBAL )
66 .FriendlyName( _( "Create Rule Area from Selection..." ) )
67 .Tooltip( _( "Creates a rule area from the selection" ) )
69
71 .Name( "pcbnew.Convert.convertToLines" )
72 .Scope( AS_GLOBAL )
73 .FriendlyName( _( "Create Lines from Selection..." ) )
74 .Tooltip( _( "Creates graphic lines from the selection" ) )
75 .Icon( BITMAPS::add_line ) );
76
78 .Name( "pcbnew.Convert.convertToArc" )
79 .Scope( AS_GLOBAL )
80 .FriendlyName( _( "Create Arc from Selection" ) )
81 .Tooltip( _( "Creates an arc from the selected line segment" ) )
82 .Icon( BITMAPS::add_arc ) );
83
85 .Name( "pcbnew.Convert.convertToTracks" )
86 .Scope( AS_GLOBAL )
87 .FriendlyName( _( "Create Tracks from Selection" ) )
88 .Tooltip( _( "Creates tracks from the selected graphic lines" ) )
89 .Icon( BITMAPS::add_tracks ) );
90
92 .Name( "pcbnew.Convert.outsetItems" )
93 .Scope( AS_GLOBAL )
94 .FriendlyName( _( "Create Outsets from Selection..." ) )
95 .Tooltip( _( "Create outset lines from the selected item" ) )
97
98
99// DRAWING_TOOL
100//
102 .Name( "pcbnew.InteractiveDrawing.line" )
103 .Scope( AS_GLOBAL )
104 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'L' )
105 .LegacyHotkeyName( "Draw Line" )
106 .FriendlyName( _( "Draw Lines" ) )
107 .ToolbarState( TOOLBAR_STATE::TOGGLE )
109 .Flags( AF_ACTIVATE ) );
110
112 .Name( "pcbnew.InteractiveDrawing.graphicPolygon" )
113 .Scope( AS_GLOBAL )
114 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'P' )
115 .LegacyHotkeyName( "Draw Graphic Polygon" )
116 .FriendlyName( _( "Draw Polygons" ) )
117 .ToolbarState( TOOLBAR_STATE::TOGGLE )
119 .Flags( AF_ACTIVATE )
120 .Parameter( ZONE_MODE::GRAPHIC_POLYGON ) );
121
123 .Name( "pcbnew.InteractiveDrawing.rectangle" )
124 .Scope( AS_GLOBAL )
125 .FriendlyName( _( "Draw Rectangles" ) )
126 .ToolbarState( TOOLBAR_STATE::TOGGLE )
128 .Flags( AF_ACTIVATE ) );
129
131 .Name( "pcbnew.InteractiveDrawing.circle" )
132 .Scope( AS_GLOBAL )
133 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'C' )
134 .LegacyHotkeyName( "Draw Circle" )
135 .FriendlyName( _( "Draw Circles" ) )
136 .ToolbarState( TOOLBAR_STATE::TOGGLE )
137 .Icon( BITMAPS::add_circle )
138 .Flags( AF_ACTIVATE ) );
139
141 .Name( "pcbnew.InteractiveDrawing.ellipse" )
142 .Scope( AS_GLOBAL )
143 .FriendlyName( _( "Draw Ellipse" ) )
144 .Tooltip( _( "Draw an ellipse" ) )
145 .ToolbarState( TOOLBAR_STATE::TOGGLE )
146 .Icon( BITMAPS::add_ellipse )
147 .Flags( AF_ACTIVATE ) );
148
150 .Name( "pcbnew.InteractiveDrawing.ellipseArc" )
151 .Scope( AS_GLOBAL )
152 .FriendlyName( _( "Draw Elliptical Arcs" ) )
153 .Tooltip( _( "Draw an elliptical arc" ) )
154 .ToolbarState( TOOLBAR_STATE::TOGGLE )
156 .Flags( AF_ACTIVATE ) );
157
159 .Name( "pcbnew.InteractiveDrawing.arc" )
160 .Scope( AS_GLOBAL )
161 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'A' )
162 .LegacyHotkeyName( "Draw Arc" )
163 .FriendlyName( _( "Draw Arcs" ) )
164 .ToolbarState( TOOLBAR_STATE::TOGGLE )
165 .Icon( BITMAPS::add_arc )
166 .Flags( AF_ACTIVATE ) );
167
169 .Name( "pcbnew.InteractiveDrawing.bezier" )
170 .Scope( AS_GLOBAL )
171 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'B' )
172 .FriendlyName( _( "Draw Bezier Curve" ) )
173 .ToolbarState( TOOLBAR_STATE::TOGGLE )
174 .Icon( BITMAPS::add_bezier )
175 .Flags( AF_ACTIVATE ) );
176
178 .Name( "pcbnew.InteractiveDrawing.barcode" )
179 .Scope( AS_GLOBAL )
180 .LegacyHotkeyName( "Add Barcode" )
181 .FriendlyName( _( "Add Barcode" ) )
182 .Tooltip( _( "Add a barcode" ) )
183 .Icon( BITMAPS::add_barcode )
184 .Flags( AF_ACTIVATE ) );
185
186
188 .Name( "pcbnew.InteractiveDrawing.placeCharacteristics" )
189 .Scope( AS_GLOBAL )
190 .LegacyHotkeyName( "Add Board Characteristics" )
191 .FriendlyName( _( "Add Board Characteristics" ) )
192 .Tooltip( _( "Add a board characteristics table on a graphic layer" ) )
193 .ToolbarState( TOOLBAR_STATE::TOGGLE )
194 .Flags( AF_ACTIVATE ) );
195
197 .Name( "pcbnew.InteractiveDrawing.placeStackup" )
198 .Scope( AS_GLOBAL )
199 .LegacyHotkeyName( "Add Stackup Table" )
200 .FriendlyName( _( "Add Stackup Table" ) )
201 .Tooltip( _( "Add a board stackup table on a graphic layer" ) )
202 .ToolbarState( TOOLBAR_STATE::TOGGLE )
203 .Flags( AF_ACTIVATE ) );
204
206 .Name( "pcbnew.InteractiveDrawing.placePoint" )
207 .Scope( AS_GLOBAL )
208 .FriendlyName( _( "Place Point" ) )
209 .Tooltip( _( "Add reference/snap points" ) )
210 .ToolbarState( TOOLBAR_STATE::TOGGLE )
211 .Icon( BITMAPS::add_point )
212 .Flags( AF_ACTIVATE ) );
213
215 .Name( "pcbnew.InteractiveDrawing.placeReferenceImage" )
216 .Scope( AS_GLOBAL )
217 .FriendlyName( _( "Place Reference Images" ) )
218 .Tooltip( _( "Add bitmap images to be used as reference (images will not be included in any output)" ) )
219 .ToolbarState( TOOLBAR_STATE::TOGGLE )
220 .Icon( BITMAPS::image )
221 .Flags( AF_ACTIVATE )
222 .Parameter<PCB_REFERENCE_IMAGE*>( nullptr ) );
223
225 .Name( "pcbnew.InteractiveDrawing.text" )
226 .Scope( AS_GLOBAL )
227 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'T' )
228 .LegacyHotkeyName( "Add Text" )
229 .FriendlyName( _( "Draw Text" ) )
230 .ToolbarState( TOOLBAR_STATE::TOGGLE )
231 .Icon( BITMAPS::text )
232 .Flags( AF_ACTIVATE ) );
233
235 .Name( "pcbnew.InteractiveDrawing.textbox" )
236 .Scope( AS_GLOBAL )
237 .FriendlyName( _( "Draw Text Boxes" ) )
238 .ToolbarState( TOOLBAR_STATE::TOGGLE )
239 .Icon( BITMAPS::add_textbox )
240 .Flags( AF_ACTIVATE ) );
241
243 .Name( "pcbnew.InteractiveDrawing.drawTable" )
244 .Scope( AS_GLOBAL )
245 .FriendlyName( _( "Draw Tables" ) )
246 .ToolbarState( TOOLBAR_STATE::TOGGLE )
247 .Icon( BITMAPS::table )
248 .Flags( AF_ACTIVATE ) );
249
251 .Name( "pcbnew.lengthTuner.SpacingIncrease" )
252 .Scope( AS_GLOBAL )
253 .DefaultHotkey( '1' )
254 .LegacyHotkeyName( "Increase meander spacing by one step." )
255 .FriendlyName( _( "Increase Spacing" ) )
256 .Tooltip( _( "Increase tuning pattern spacing by one step." ) )
258
260 .Name( "pcbnew.lengthTuner.SpacingDecrease" )
261 .Scope( AS_GLOBAL )
262 .DefaultHotkey( '2' )
263 .LegacyHotkeyName( "Decrease meander spacing by one step." )
264 .FriendlyName( _( "Decrease Spacing" ) )
265 .Tooltip( _( "Decrease tuning pattern spacing by one step." ) )
267
269 .Name( "pcbnew.lengthTuner.AmplIncrease" )
270 .Scope( AS_GLOBAL )
271 .DefaultHotkey( '3' )
272 .LegacyHotkeyName( "Increase meander amplitude by one step." )
273 .FriendlyName( _( "Increase Amplitude" ) )
274 .Tooltip( _( "Increase tuning pattern amplitude by one step." ) )
276
278 .Name( "pcbnew.lengthTuner.AmplDecrease" )
279 .Scope( AS_GLOBAL )
280 .DefaultHotkey( '4' )
281 .LegacyHotkeyName( "Decrease meander amplitude by one step." )
282 .FriendlyName( _( "Decrease Amplitude" ) )
283 .Tooltip( _( "Decrease tuning pattern amplitude by one step." ) )
285
286
288 .Name( "pcbnew.InteractiveDrawing.alignedDimension" )
289 .Scope( AS_GLOBAL )
290 .LegacyHotkeyName( "Add Dimension" )
291 .FriendlyName( _( "Draw Aligned Dimensions" ) )
292 .ToolbarState( TOOLBAR_STATE::TOGGLE )
294 .Flags( AF_ACTIVATE ) );
295
297 .Name( "pcbnew.InteractiveDrawing.centerDimension" )
298 .Scope( AS_GLOBAL )
299 .FriendlyName( _( "Draw Center Dimensions" ) )
300 .ToolbarState( TOOLBAR_STATE::TOGGLE )
302 .Flags( AF_ACTIVATE ) );
303
305 .Name( "pcbnew.InteractiveDrawing.radialDimension" )
306 .Scope( AS_GLOBAL )
307 .FriendlyName( _( "Draw Radial Dimensions" ) )
308 .ToolbarState( TOOLBAR_STATE::TOGGLE )
310 .Flags( AF_ACTIVATE ) );
311
313 .Name( "pcbnew.InteractiveDrawing.orthogonalDimension" )
314 .Scope( AS_GLOBAL )
315 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'H' )
316 .FriendlyName( _( "Draw Orthogonal Dimensions" ) )
317 .ToolbarState( TOOLBAR_STATE::TOGGLE )
319 .Flags( AF_ACTIVATE ) );
320
322 .Name( "pcbnew.InteractiveDrawing.leader" )
323 .Scope( AS_GLOBAL )
324 .FriendlyName( _( "Draw Leaders" ) )
325 .ToolbarState( TOOLBAR_STATE::TOGGLE )
326 .Icon( BITMAPS::add_leader )
327 .Flags( AF_ACTIVATE ) );
328
330 .Name( "pcbnew.InteractiveDrawing.zone" )
331 .Scope( AS_GLOBAL )
332#ifdef __WXOSX_MAC__
333 .DefaultHotkey( MD_ALT + 'Z' )
334#else
335 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'Z' )
336#endif
337 .LegacyHotkeyName( "Add Filled Zone" )
338 .FriendlyName( _( "Draw Filled Zones" ) )
339 .ToolbarState( TOOLBAR_STATE::TOGGLE )
340 .Icon( BITMAPS::add_zone )
341 .Flags( AF_ACTIVATE )
342 .Parameter( ZONE_MODE::ADD ) );
343
345 .Name( "pcbnew.InteractiveDrawing.copperThievingZone" )
346 .Scope( AS_GLOBAL )
347 .FriendlyName( _( "Draw Copper Thieving Zone" ) )
348 .Tooltip( _( "Add a non-electrical thieving zone for plating-balance copper" ) )
349 .ToolbarState( TOOLBAR_STATE::TOGGLE )
350 .Icon( BITMAPS::add_zone )
351 .Flags( AF_ACTIVATE )
352 .Parameter( ZONE_MODE::ADD ) );
353
355 .Name( "pcbnew.InteractiveDrawing.via" )
356 .Scope( AS_GLOBAL )
357 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'X' )
358 .LegacyHotkeyName( "Add Vias" )
359 .FriendlyName( _( "Place Vias" ) )
360 .Tooltip( _( "Place free-standing vias" ) )
361 .ToolbarState( TOOLBAR_STATE::TOGGLE )
362 .Icon( BITMAPS::add_via )
363 .Flags( AF_ACTIVATE ) );
364
366 .Name( "pcbnew.InteractiveDrawing.ruleArea" )
367 .Scope( AS_GLOBAL )
368 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'K' )
369 .LegacyHotkeyName( "Add Keepout Area" )
370 .FriendlyName( _( "Draw Rule Areas" ) )
371 .ToolbarState( TOOLBAR_STATE::TOGGLE )
373 .Flags( AF_ACTIVATE )
374 .Parameter( ZONE_MODE::ADD ) );
375
377 .Name( "pcbnew.InteractiveDrawing.zoneCutout" )
378 .Scope( AS_GLOBAL )
379 .DefaultHotkey( MD_SHIFT + 'C' )
380 .LegacyHotkeyName( "Add a Zone Cutout" )
381 .FriendlyName( _( "Add a Zone Cutout" ) )
382 .Tooltip( _( "Add a cutout to an existing zone or rule area" ) )
383 .ToolbarState( TOOLBAR_STATE::TOGGLE )
385 .Flags( AF_ACTIVATE )
386 .Parameter( ZONE_MODE::CUTOUT ) );
387
389 .Name( "pcbnew.InteractiveDrawing.similarZone" )
390 .Scope( AS_GLOBAL )
391 .DefaultHotkey( MD_CTRL + MD_SHIFT + '.' )
392 .LegacyHotkeyName( "Add a Similar Zone" )
393 .FriendlyName( _( "Add a Similar Zone" ) )
394 .Tooltip( _( "Add a zone with the same settings as an existing zone" ) )
395 .Icon( BITMAPS::add_zone )
396 .Flags( AF_ACTIVATE )
397 .Parameter( ZONE_MODE::SIMILAR ) );
398
400 .Name( "pcbnew.InteractiveDrawing.placeImportedGraphics" )
401 .Scope( AS_GLOBAL )
402 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'F' )
403 .LegacyHotkeyName( "Place DXF" )
404 .FriendlyName( _( "Import Graphics..." ) )
405 .Tooltip( _( "Import 2D drawing file" ) )
407 .Flags( AF_ACTIVATE ) );
408
410 .Name( "pcbnew.InteractiveDrawing.setAnchor" )
411 .Scope( AS_GLOBAL )
412 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'N' )
413 .LegacyHotkeyName( "Place the Footprint Anchor" )
414 .FriendlyName( _( "Place the Footprint Anchor" ) )
415 .Tooltip( _( "Set the anchor point of the footprint" ) )
416 .ToolbarState( TOOLBAR_STATE::TOGGLE )
417 .Icon( BITMAPS::anchor )
418 .Flags( AF_ACTIVATE ) );
419
421 .Name( "pcbnew.InteractiveDrawing.incWidth" )
422 .Scope( AS_CONTEXT )
423 .DefaultHotkey( MD_CTRL + '+' )
424 .LegacyHotkeyName( "Increase Line Width" )
425 .FriendlyName( _( "Increase Line Width" ) ) );
426
428 .Name( "pcbnew.InteractiveDrawing.decWidth" )
429 .Scope( AS_CONTEXT )
430 .DefaultHotkey( MD_CTRL + '-' )
431 .LegacyHotkeyName( "Decrease Line Width" )
432 .FriendlyName( _( "Decrease Line Width" ) ) );
433
435 .Name( "pcbnew.InteractiveDrawing.arcPosture" )
436 .Scope( AS_CONTEXT )
437 .DefaultHotkey( '/' )
438 .LegacyHotkeyName( "Switch Track Posture" )
439 .FriendlyName( _( "Switch Arc Posture" ) ) );
440
442 .Name( "pcbnew.InteractiveDrawing.changeDimensionArrows" )
443 .Scope( AS_CONTEXT )
444 .FriendlyName( "Switch Dimension Arrows" )
445 .Tooltip( "Switch between inward and outward dimension arrows" ) );
446
447
449 .Name( "common.Control.magneticSnapActiveLayer" )
450 .Scope( AS_GLOBAL )
451 .FriendlyName( _( "Snap to Objects on the Active Layer Only" ) )
452 .Tooltip( _( "Enables snapping to objects on the active layer only" ) ) );
453
455 .Name( "common.Control.magneticSnapAllLayers" )
456 .Scope( AS_GLOBAL )
457 .FriendlyName( _( "Snap to Objects on All Layers" ) )
458 .Tooltip( _( "Enables snapping to objects on all visible layers" ) ) );
459
461 .Name( "common.Control.magneticSnapToggle" )
462 .Scope( AS_GLOBAL )
463 .DefaultHotkey( MD_SHIFT + 'S' )
464 .FriendlyName( _( "Toggle Snapping Between Active and All Layers" ) )
465 .Tooltip( _( "Toggles between snapping on all visible layers and only the active area" ) ) );
466
468 .Name( "pcbnew.InteractiveDrawing.deleteLastPoint" )
469 .Scope( AS_CONTEXT )
470 .DefaultHotkey( WXK_BACK )
471 .FriendlyName( _( "Delete Last Point" ) )
472 .Tooltip( _( "Delete the last point added to the current item" ) )
473 .Icon( BITMAPS::undo ) );
474
476 .Name( "pcbnew.InteractiveDrawing.closeOutline" )
477 .Scope( AS_CONTEXT )
478 .FriendlyName( _( "Close Outline" ) )
479 .Tooltip( _( "Close the in progress outline" ) )
480 .Icon( BITMAPS::checked_ok ) );
481
482// DRC
483//
485 .Name( "pcbnew.DRCTool.runDRC" )
486 .Scope( AS_GLOBAL )
487 .FriendlyName( _( "Design Rules Checker" ) )
488 .Tooltip( _( "Show the design rules checker window" ) )
489 .Icon( BITMAPS::erc ) );
490
491// PCB_DESIGN_BLOCK_CONTROL
493 .Name( "pcbnew.InteractiveDrawing.placeDesignBlock" )
494 .Scope( AS_GLOBAL )
495 .DefaultHotkey( MD_SHIFT + 'B' )
496 .FriendlyName( _( "Place Design Block" ) )
497 .Tooltip( _( "Add selected design block to current board" ) )
499 .Flags( AF_ACTIVATE )
500 .Parameter<DESIGN_BLOCK*>( nullptr ) );
501
503 .Name( "pcbnew.InteractiveDrawing.placeLinkedDesignBlock" )
504 .Scope( AS_GLOBAL )
505 .FriendlyName( _( "Place Linked Design Block" ) )
506 .Tooltip( _( "Place design block linked to selected group" ) )
508 .Flags( AF_ACTIVATE )
509 .Parameter<bool*>( nullptr ) );
510
512 .Name( "pcbnew.InteractiveDrawing.applyDesignBlockLayout" )
513 .Scope( AS_GLOBAL )
514 .FriendlyName( _( "Apply Design Block Layout" ) )
515 .Tooltip( _( "Apply linked design block layout to selected group" ) )
517 .Flags( AF_ACTIVATE ) );
518
520 .Name( "pcbnew.InteractiveDrawing.saveToLinkedDesignBlock" )
521 .Scope( AS_GLOBAL )
522 .FriendlyName( _( "Save to Linked Design Block" ) )
523 .Tooltip( _( "Save selected group to linked design block" ) )
525 .Flags( AF_ACTIVATE ) );
526
528 .Name( "pcbnew.PcbDesignBlockControl.showDesignBlockPanel" )
529 .Scope( AS_GLOBAL )
530 .FriendlyName( _( "Design Blocks" ) )
531 .Tooltip( _( "Show/hide design blocks library" ) )
532 .Icon( BITMAPS::search_tree ) );
533
535 .Name( "pcbnew.PcbDesignBlockControl.saveBoardAsDesignBlock" )
536 .Scope( AS_GLOBAL )
537 .FriendlyName( _( "Save Board as Design Block..." ) )
538 .Tooltip( _( "Create a new design block from the current board" ) )
539 .Icon( BITMAPS::new_component ) );
540
542 .Name( "pcbnew.PcbDesignBlockControl.saveSelectionAsDesignBlock" )
543 .Scope( AS_GLOBAL )
544 .FriendlyName( _( "Save Selection as Design Block..." ) )
545 .Tooltip( _( "Create a new design block from the current selection" ) )
546 .Icon( BITMAPS::new_component ) );
547
549 .Name( "pcbnew.PcbDesignBlockControl.updateDesignBlockFromBoard" )
550 .Scope( AS_GLOBAL )
551 .FriendlyName( _( "Update Design Block from Board" ) )
552 .Tooltip( _( "Set design block layout to current board" ) )
553 .Icon( BITMAPS::save ) );
554
556 .Name( "pcbnew.PcbDesignBlockControl.updateDesignBlockFromSelection" )
557 .Scope( AS_GLOBAL )
558 .FriendlyName( _( "Update Design Block from Selection" ) )
559 .Tooltip( _( "Set design block layout to current selection" ) )
560 .Icon( BITMAPS::save ) );
561
563 .Name( "pcbnew.PcbDesignBlockControl.deleteDesignBlock" )
564 .Scope( AS_GLOBAL )
565 .FriendlyName( _( "Delete Design Block" ) )
566 .Tooltip( _( "Remove the selected design block from its library" ) )
567 .Icon( BITMAPS::trash ) );
568
570 .Name( "pcbnew.PcbDesignBlockControl.editDesignBlockProperties" )
571 .Scope( AS_GLOBAL )
572 .FriendlyName( _( "Properties..." ) )
573 .Tooltip( _( "Edit properties of design block" ) )
574 .Icon( BITMAPS::edit ) );
575
576// EDIT_TOOL
577//
579 .Name( "pcbnew.EditorControl.EditFpInFpEditor" )
580 .Scope( AS_GLOBAL )
581 .DefaultHotkey( MD_CTRL + 'E' )
582 .LegacyHotkeyName( "Edit with Footprint Editor" )
583 .FriendlyName( _( "Open in Footprint Editor" ) )
584 .Icon( BITMAPS::module_editor ) );
585
587 .Name( "pcbnew.EditorControl.EditLibFpInFpEditor" )
588 .Scope( AS_GLOBAL )
589 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
590 .FriendlyName( _( "Edit Library Footprint..." ) )
591 .Icon( BITMAPS::module_editor ) );
592
594 .Name( "pcbnew.InteractiveEdit.toggleExcludeFromBOM" )
595 .Scope( AS_GLOBAL )
596 .FriendlyName( _( "Exclude from Bill of Materials" ) )
597 .Tooltip( _( "Toggle the exclude from bill of materials attribute" ) ) );
598
600 .Name( "pcbnew.InteractiveEdit.toggleExcludeFromPosFiles" )
601 .Scope( AS_GLOBAL )
602 .FriendlyName( _( "Exclude from Position Files" ) )
603 .Tooltip( _( "Toggle the exclude from position files attribute" ) ) );
604
606 .Name( "pcbnew.EditorControl.findByProperties" )
607 .Scope( AS_GLOBAL )
608 .FriendlyName( _( "Find by Properties..." ) )
609 .Tooltip( _( "Find board items matching property criteria or expressions" ) )
610 .Icon( BITMAPS::find ) );
611
613 .Name( "pcbnew.InteractiveEdit.FindMove" )
614 .Scope( AS_GLOBAL )
615 .DefaultHotkey( 'T' )
616 .LegacyHotkeyName( "Get and Move Footprint" )
617 .FriendlyName( _( "Get and Move Footprint" ) )
618 .Tooltip( _( "Selects a footprint by reference designator and places it under the cursor for moving" ) )
619 .Icon( BITMAPS::move )
620 .Flags( AF_ACTIVATE ) );
621
623 .Name( "pcbnew.InteractiveMove.move" )
624 .Scope( AS_GLOBAL )
625 .DefaultHotkey( 'M' )
626 .LegacyHotkeyName( "Move Item" )
627 .FriendlyName( _( "Move" ) )
628 .Icon( BITMAPS::move )
629 .Flags( AF_ACTIVATE )
631
633 .Name( "pcbnew.InteractiveMove.moveIndividually" )
634 .Scope( AS_GLOBAL )
635 .DefaultHotkey( MD_CTRL + 'M' )
636 .FriendlyName( _( "Move Individually" ) )
637 .Tooltip( _( "Moves the selected items one-by-one" ) )
638 .Icon( BITMAPS::move )
639 .Flags( AF_ACTIVATE )
641
643 .Name( "pcbnew.InteractiveMove.moveWithReference" )
644 .Scope( AS_GLOBAL )
645 .FriendlyName( _( "Move with Reference..." ) )
646 .Tooltip( _( "Moves the selected item(s) with a specified starting point" ) )
647 .Icon( BITMAPS::move )
648 .Flags( AF_ACTIVATE )
650
652 .Name( "pcbnew.InteractiveMove.copyWithReference" )
653 .Scope( AS_GLOBAL )
654 .FriendlyName( _( "Copy with Reference..." ) )
655 .Tooltip( _( "Copy selected item(s) to clipboard with a specified starting point" ) )
656 .Icon( BITMAPS::copy )
657 .Flags( AF_ACTIVATE ) );
658
660 .Name( "pcbnew.InteractiveEdit.duplicateIncrementPads" )
661 .Scope( AS_GLOBAL )
662 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'D' )
663 .LegacyHotkeyName( "Duplicate Item and Increment" )
664 .FriendlyName( _( "Duplicate and Increment" ) )
665 .Tooltip( _( "Duplicates the selected item(s), incrementing pad numbers" ) )
666 .Icon( BITMAPS::duplicate ) );
667
669 .Name( "pcbnew.InteractiveEdit.moveExact" )
670 .Scope( AS_GLOBAL )
671 .DefaultHotkey( MD_SHIFT + 'M' )
672 .LegacyHotkeyName( "Move Item Exactly" )
673 .FriendlyName( _( "Move Exactly..." ) )
674 .Tooltip( _( "Moves the selected item(s) by an exact amount" ) )
675 .Icon( BITMAPS::move_exactly ) );
676
678 .Name( "pcbnew.InteractiveEdit.moveCorner" )
679 .Scope( AS_GLOBAL )
680 .FriendlyName( _( "Move Corner To..." ) )
681 .Tooltip( _( "Move the active corner to an exact location" ) )
682 .Icon( BITMAPS::move_exactly ) );
683
685 .Name( "pcbnew.InteractiveEdit.moveMidpoint" )
686 .Scope( AS_GLOBAL )
687 .FriendlyName( _( "Move Midpoint To..." ) )
688 .Tooltip( _( "Move the active midpoint to an exact location" ) )
689 .Icon( BITMAPS::move_exactly ) );
690
692 .Name( "pcbnew.InteractiveEdit.rotateCw" )
693 .Scope( AS_GLOBAL )
694 .DefaultHotkey( MD_SHIFT + 'R' )
695 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
696 .LegacyHotkeyName( "Rotate Item Clockwise (Modern Toolset only)" )
697 .FriendlyName( _( "Rotate Clockwise" ) )
698 .Icon( BITMAPS::rotate_cw )
699 .Flags( AF_NONE )
700 .Parameter( -1 ) );
701
703 .Name( "pcbnew.InteractiveEdit.rotateCcw" )
704 .Scope( AS_GLOBAL )
705 .DefaultHotkey( 'R' )
706 .LegacyHotkeyName( "Rotate Item" )
707 .FriendlyName( _( "Rotate Counterclockwise" ) )
708 .Icon( BITMAPS::rotate_ccw )
709 .Flags( AF_NONE )
710 .Parameter( 1 ) );
711
713 .Name( "pcbnew.InteractiveEdit.flip" )
714 .Scope( AS_GLOBAL )
715 .DefaultHotkey( 'F' )
716 .LegacyHotkeyName( "Flip Item" )
717 .FriendlyName( _( "Change Side / Flip" ) )
718 .Tooltip( _( "Flips selected item(s) to opposite side of board" ) )
719 .Icon( BITMAPS::swap_layer ) );
720
722 .Name( "pcbnew.InteractiveEdit.mirrorHoriontally" )
723 .Scope( AS_GLOBAL )
724 .FriendlyName( _( "Mirror Horizontally" ) )
725 .Tooltip( _( "Mirrors selected item(s) across the Y axis" ) )
726 .Icon( BITMAPS::mirror_h ) );
727
729 .Name( "pcbnew.InteractiveEdit.mirrorVertically" )
730 .Scope( AS_GLOBAL )
731 .FriendlyName( _( "Mirror Vertically" ) )
732 .Tooltip( _( "Mirrors selected item(s) across the X axis" ) )
733 .Icon( BITMAPS::mirror_v ) );
734
736 .Name( "pcbnew.InteractiveEdit.swap" )
737 .Scope( AS_GLOBAL )
738 .DefaultHotkey( MD_ALT + 'S' )
739 .FriendlyName( _( "Swap" ) )
740 .Tooltip( _( "Swap positions of selected items" ) )
741 .Icon( BITMAPS::swap ) );
742
744 .Name( "pcbnew.InteractiveEdit.swapPadNets" )
745 .Scope( AS_GLOBAL )
746 .FriendlyName( _( "Swap Pad Nets" ) )
747 .Tooltip( _( "Swap nets between two selected pads and their connected copper" ) )
748 .Icon( BITMAPS::swap ) );
749
751 .Name( "pcbnew.InteractiveEdit.swapGateNets" )
752 .Scope( AS_GLOBAL )
753 .FriendlyName( _( "Swap Gate Nets" ) )
754 .Tooltip( _( "Swap nets between gates of a footprint and their connected copper" ) )
755 .Parameter<wxString>( wxString() )
756 .Icon( BITMAPS::swap ) );
757
759 .Name( "pcbnew.InteractiveEdit.packAndMoveFootprints" )
760 .Scope( AS_GLOBAL )
761 .DefaultHotkey( 'P' )
762 .FriendlyName( _( "Pack and Move Footprints" ) )
763 .Tooltip( _( "Sorts selected footprints by reference, packs based on size and initiates movement" ) )
764 .Icon( BITMAPS::pack_footprints ) );
765
767 .Name( "pcbnew.InteractiveEdit.skip" )
768 .Scope( AS_CONTEXT )
769 .DefaultHotkey( WXK_TAB )
770 .FriendlyName( _( "Skip" ) )
771 .Tooltip( _( "Skip to next item" ) )
772 .Icon( BITMAPS::right ) );
773
775 .Name( "pcbnew.InteractiveEdit.changeTrackWidth" )
776 .Scope( AS_GLOBAL )
777 .FriendlyName( _( "Change Track Width" ) )
778 .Tooltip( _( "Updates selected track & via sizes" ) ) );
779
781 .Name( "pcbnew.Control.changeTrackLayerNext" )
782 .Scope( AS_GLOBAL )
783 .DefaultHotkey( MD_CTRL + '+' )
784 .FriendlyName( "Switch Track to Next Layer" )
785 .Tooltip( _( "Switch track to next enabled copper layer" ) ) );
786
788 .Name( "pcbnew.Control.changeTrackLayerPrev" )
789 .Scope( AS_GLOBAL )
790 .DefaultHotkey( MD_CTRL + '-' )
791 .FriendlyName( "Switch Track to Previous Layer" )
792 .Tooltip( _( "Switch track to previous enabled copper layer" ) ) );
793
795 .Name( "pcbnew.InteractiveEdit.filletTracks" )
796 .Scope( AS_GLOBAL )
797 .FriendlyName( _( "Fillet Tracks" ) )
798 .Tooltip( _( "Adds arcs tangent to the selected straight track segments" ) ) );
799
801 .Name( "pcbnew.InteractiveEdit.filletLines" )
802 .Scope( AS_GLOBAL )
803 .FriendlyName( _( "Fillet Lines..." ) )
804 .Tooltip( _( "Adds arcs tangent to the selected lines" ) )
805 .Icon( BITMAPS::fillet ) );
806
808 .Name( "pcbnew.InteractiveEdit.chamferLines" )
809 .Scope( AS_GLOBAL )
810 .FriendlyName( _( "Chamfer Lines..." ) )
811 .Tooltip( _( "Cut away corners between selected lines" ) )
812 .Icon( BITMAPS::chamfer ) );
813
815 .Name( "pcbnew.InteractiveEdit.dogboneCorners" )
816 .Scope( AS_GLOBAL )
817 .FriendlyName( _( "Dogbone Corners..." ) )
818 .Tooltip( _( "Add dogbone corners to selected lines" ) ) );
819
821 .Name( "pcbnew.InteractiveEdit.simplifyPolygons" )
822 .Scope( AS_GLOBAL )
823 .FriendlyName( _( "Simplify Polygons" ) )
824 .Tooltip( _( "Simplify polygon outlines, removing superfluous points" ) ) );
825
827 .Name( "pcbnew.InteractiveEdit.editVertices" )
828 .Scope( AS_GLOBAL )
829 .FriendlyName( _( "Edit Corners..." ) )
830 .Tooltip( _( "Edit polygon corners using a table" ) )
831 .Icon( BITMAPS::edit ) );
832
834 .Name( "pcbnew.InteractiveEdit.healShapes" )
835 .Scope( AS_GLOBAL )
836 .FriendlyName( _( "Heal Shapes" ) )
837 .Tooltip( _( "Connect shapes, possibly extending or cutting them, or adding extra geometry" ) )
838 .Icon( BITMAPS::heal_shapes ) );
839
841 .Name( "pcbnew.InteractiveEdit.extendLines" )
842 .Scope( AS_GLOBAL )
843 .FriendlyName( _( "Extend Lines to Meet" ) )
844 .Tooltip( _( "Extend lines to meet each other" ) ) );
845
847 .Name( "pcbnew.InteractiveEdit.mergePolygons" )
848 .Scope( AS_GLOBAL )
849 .FriendlyName( _( "Merge Polygons" ) )
850 .Tooltip( _( "Merge selected polygons into a single polygon" ) )
851 .Icon( BITMAPS::merge_polygons ) );
852
854 .Name( "pcbnew.InteractiveEdit.subtractPolygons" )
855 .Scope( AS_GLOBAL )
856 .FriendlyName( _( "Subtract Polygons" ) )
857 .Tooltip( _( "Subtract selected polygons from the last one selected" ) )
859
861 .Name( "pcbnew.InteractiveEdit.intersectPolygons" )
862 .Scope( AS_GLOBAL )
863 .FriendlyName( _( "Intersect Polygons" ) )
864 .Tooltip( _( "Create the intersection of the selected polygons" ) )
866
868 .Name( "pcbnew.InteractiveEdit.deleteFull" )
869 .Scope( AS_GLOBAL )
870 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DELETE ) )
871 .LegacyHotkeyName( "Delete Full Track" )
872 .FriendlyName( _( "Delete Full Track" ) )
873 .Tooltip( _( "Deletes selected item(s) and copper connections" ) )
875 .Flags( AF_NONE )
876 .Parameter( PCB_ACTIONS::REMOVE_FLAGS::ALT ) );
877
879 .Name( "pcbnew.InteractiveEdit.properties" )
880 .Scope( AS_GLOBAL )
881 .DefaultHotkey( 'E' )
882 .LegacyHotkeyName( "Edit Item" )
883 .FriendlyName( _( "Properties..." ) )
884 .Icon( BITMAPS::edit ) );
885
886// ARRAY
887//
889 .Name( "pcbnew.Array.createArray" )
890 .Scope( AS_GLOBAL )
891 .DefaultHotkey( MD_CTRL + 'T' )
892 .LegacyHotkeyName( "Create Array" )
893 .FriendlyName( _( "Create Array..." ) )
894 .Icon( BITMAPS::array )
895 .Flags( AF_ACTIVATE ) );
896
897// FOOTPRINT_EDITOR_CONTROL
898//
900 .Name( "pcbnew.ModuleEditor.newFootprint" )
901 .Scope( AS_GLOBAL )
902 .DefaultHotkey( MD_CTRL + 'N' )
903 .LegacyHotkeyName( "New" )
904 .FriendlyName( _( "New Footprint" ) )
905 .Tooltip( _( "Create a new, empty footprint" ) )
906 .Icon( BITMAPS::new_footprint ) );
907
909 .Name( "pcbnew.ModuleEditor.createFootprint" )
910 .Scope( AS_GLOBAL )
911 .FriendlyName( _( "Create Footprint..." ) )
912 .Tooltip( _( "Create a new footprint using the Footprint Wizard" ) )
913 .Icon( BITMAPS::module_wizard ) );
914
916 .Name( "pcbnew.ModuleEditor.editFootprint" )
917 .Scope( AS_GLOBAL )
918 .FriendlyName( _( "Edit Footprint" ) )
919 .Tooltip( _( "Show selected footprint on editor canvas" ) )
920 .Icon( BITMAPS::edit ) );
921
923 .Name( "pcbnew.ModuleEditor.duplicateFootprint" )
924 .Scope( AS_GLOBAL )
925 .FriendlyName( _( "Duplicate Footprint" ) )
926 .Icon( BITMAPS::duplicate ) );
927
929 .Name( "pcbnew.ModuleEditor.renameFootprint" )
930 .Scope( AS_GLOBAL )
931 .FriendlyName( _( "Rename Footprint..." ) )
932 .Icon( BITMAPS::edit ) );
933
935 .Name( "pcbnew.ModuleEditor.deleteFootprint" )
936 .Scope( AS_GLOBAL )
937 .FriendlyName( _( "Delete Footprint from Library" ) )
938 .Icon( BITMAPS::trash ) );
939
941 .Name( "pcbnew.ModuleEditor.cutFootprint" )
942 .Scope( AS_GLOBAL )
943 .FriendlyName( _( "Cut Footprint" ) )
944 .Icon( BITMAPS::cut ) );
945
947 .Name( "pcbnew.ModuleEditor.copyFootprint" )
948 .Scope( AS_GLOBAL )
949 .FriendlyName( _( "Copy Footprint" ) )
950 .Icon( BITMAPS::copy ) );
951
953 .Name( "pcbnew.ModuleEditor.pasteFootprint" )
954 .Scope( AS_GLOBAL )
955 .FriendlyName( _( "Paste Footprint" ) )
956 .Icon( BITMAPS::paste ) );
957
959 .Name( "pcbnew.ModuleEditor.importFootprint" )
960 .Scope( AS_GLOBAL )
961 .FriendlyName( _( "Import Footprint..." ) )
962 .Tooltip( _( "Import footprint from file" ) )
963 .Icon( BITMAPS::import_module ) );
964
966 .Name( "pcbnew.ModuleEditor.exportFootprint" )
967 .Scope( AS_GLOBAL )
968 .FriendlyName( _( "Export Current Footprint..." ) )
969 .Tooltip( _( "Export edited footprint to file" ) )
970 .Icon( BITMAPS::export_module ) );
971
973 .Name( "pcbnew.ModuleEditor.CompareFpLibraryWithFile" )
974 .Scope( AS_GLOBAL )
975 .FriendlyName( _( "Compare Library with File..." ) )
976 .Tooltip( _( "Diff the current footprint library against another .pretty directory" ) )
977 .Icon( BITMAPS::library ) );
978
980 .Name( "pcbnew.ModuleEditor.footprintProperties" )
981 .Scope( AS_GLOBAL )
982 .FriendlyName( _( "Footprint Properties..." ) )
983 .Icon( BITMAPS::module_options ) );
984
986 .Name( "pcbnew.ModuleEditor.padTable" )
987 .Scope( AS_GLOBAL )
988 .FriendlyName( _( "Pad Table..." ) )
989 .Tooltip( _( "Displays pad table for bulk editing of pads" ) )
990 .Icon( BITMAPS::pin_table ) );
991
993 .Name( "pcbnew.ModuleEditor.checkFootprint" )
994 .Scope( AS_GLOBAL )
995 .FriendlyName( _( "Footprint Checker" ) )
996 .Tooltip( _( "Show the footprint checker window" ) )
997 .Icon( BITMAPS::erc ) );
998
1000 .Name( "pcbnew.ModuleEditor.loadFootprintFromBoard" )
1001 .Scope( AS_GLOBAL )
1002 .FriendlyName( _( "Load footprint from current PCB" ) )
1003 .Tooltip( _( "Load footprint from current board" ) )
1004 .Icon( BITMAPS::load_module_board ) );
1005
1007 .Name( "pcbnew.ModuleEditor.saveFootprintToBoard" )
1008 .Scope( AS_GLOBAL )
1009 .FriendlyName( _( "Insert footprint into PCB" ) )
1010 .Tooltip( _( "Insert footprint into current board" ) )
1012
1014 .Name( "pcbnew.Control.previousFootprint" )
1015 .Scope( AS_GLOBAL )
1016 .FriendlyName( _( "Display previous footprint" ) )
1017 .Icon( BITMAPS::lib_previous )
1018 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::PREVIOUS_PART ) );
1019
1021 .Name( "pcbnew.Control.nextFootprint" )
1022 .Scope( AS_GLOBAL )
1023 .FriendlyName( _( "Display next footprint" ) )
1024 .Icon( BITMAPS::lib_next )
1025 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::NEXT_PART ) );
1026
1027// GLOBAL_EDIT_TOOL
1028//
1030 .Name( "pcbnew.GlobalEdit.updateFootprint" )
1031 .Scope( AS_GLOBAL )
1032 .FriendlyName( _( "Update Footprint..." ) )
1033 .Tooltip( _( "Update footprint to include any changes from the library" ) )
1034 .Icon( BITMAPS::refresh ) );
1035
1037 .Name( "pcbnew.GlobalEdit.updateFootprints" )
1038 .Scope( AS_GLOBAL )
1039 .FriendlyName( _( "Update Footprints from Library..." ) )
1040 .Tooltip( _( "Update footprints to include any changes from the library" ) )
1041 .Icon( BITMAPS::refresh ) );
1042
1044 .Name( "pcbnew.GlobalEdit.migrate3DModels" )
1045 .Scope( AS_GLOBAL )
1046 .FriendlyName( _( "Migrate 3D Models..." ) )
1047 .Tooltip( _( "Replace obsolete WRL 3D model references with current STEP models" ) )
1048 .Icon( BITMAPS::refresh ) );
1049
1051 .Name( "pcbnew.GlobalEdit.removeUnusedPads" )
1052 .Scope( AS_GLOBAL )
1053 .FriendlyName( _( "Remove Unused Pads..." ) )
1054 .Tooltip( _( "Remove or restore the unconnected inner layers on through hole pads and vias" ) )
1055 .Icon( BITMAPS::pads_remove ) );
1056
1058 .Name( "pcbnew.GlobalEdit.changeFootprint" )
1059 .Scope( AS_GLOBAL )
1060 .FriendlyName( _( "Change Footprint..." ) )
1061 .Tooltip( _( "Assign a different footprint from the library" ) )
1062 .Icon( BITMAPS::exchange ) );
1063
1065 .Name( "pcbnew.GlobalEdit.changeFootprints" )
1066 .Scope( AS_GLOBAL )
1067 .FriendlyName( _( "Change Footprints..." ) )
1068 .Tooltip( _( "Assign different footprints from the library" ) )
1069 .Icon( BITMAPS::exchange ) );
1070
1072 .Name( "pcbnew.GlobalEdit.swapLayers" )
1073 .Scope( AS_GLOBAL )
1074 .FriendlyName( _( "Swap Layers..." ) )
1075 .Tooltip( _( "Move tracks or drawings from one layer to another" ) )
1076 .Icon( BITMAPS::swap_layer ) );
1077
1079 .Name( "pcbnew.GlobalEdit.editTracksAndVias" )
1080 .Scope( AS_GLOBAL )
1081 .FriendlyName( _( "Edit Track & Via Properties..." ) )
1082 .Tooltip( _( "Edit track and via properties globally across board" ) )
1083 .Icon( BITMAPS::width_track_via ) );
1084
1086 .Name( "pcbnew.GlobalEdit.editTextAndGraphics" )
1087 .Scope( AS_GLOBAL )
1088 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
1089 .Tooltip( _( "Edit Text and graphics properties globally across board" ) )
1090 .Icon( BITMAPS::text ) );
1091
1093 .Name( "pcbnew.GlobalEdit.editTeardrops" )
1094 .Scope( AS_GLOBAL )
1095 .FriendlyName( _( "Edit Teardrops..." ) )
1096 .Tooltip( _( "Add, remove or edit teardrops globally across board" ) )
1097 .Icon( BITMAPS::via ) );
1098
1100 .Name( "pcbnew.GlobalEdit.globalDeletions" )
1101 .Scope( AS_GLOBAL )
1102 .FriendlyName( _( "Global Deletions..." ) )
1103 .Tooltip( _( "Delete tracks, footprints and graphic items from board" ) )
1104 .Icon( BITMAPS::general_deletions ) );
1105
1107 .Name( "pcbnew.GlobalEdit.cleanupTracksAndVias" )
1108 .Scope( AS_GLOBAL )
1109 .FriendlyName( _( "Cleanup Tracks & Vias..." ) )
1110 .Tooltip( _( "Cleanup redundant items, shorting items, etc." ) )
1112
1114 .Name( "pcbnew.GlobalEdit.cleanupGraphics" )
1115 .Scope( AS_GLOBAL )
1116 .FriendlyName( _( "Cleanup Graphics..." ) )
1117 .Tooltip( _( "Cleanup redundant items, etc." ) )
1118 .Icon( BITMAPS::cleanup_graphics ) );
1119
1120// MICROWAVE_TOOL
1121//
1123 .Name( "pcbnew.MicrowaveTool.createGap" )
1124 .Scope( AS_GLOBAL )
1125 .FriendlyName( _( "Draw Microwave Gaps" ) )
1126 .Tooltip( _( "Create gap of specified length for microwave applications" ) )
1127 .Icon( BITMAPS::mw_add_gap )
1128 .Flags( AF_ACTIVATE )
1129 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::GAP ) );
1130
1132 .Name( "pcbnew.MicrowaveTool.createStub" )
1133 .Scope( AS_GLOBAL )
1134 .FriendlyName( _( "Draw Microwave Stubs" ) )
1135 .Tooltip( _( "Create stub of specified length for microwave applications" ) )
1136 .Icon( BITMAPS::mw_add_stub )
1137 .Flags( AF_ACTIVATE )
1138 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB ) );
1139
1141 .Name( "pcbnew.MicrowaveTool.createStubArc" )
1142 .Scope( AS_GLOBAL )
1143 .FriendlyName( _( "Draw Microwave Arc Stubs" ) )
1144 .Tooltip( _( "Create stub (arc) of specified size for microwave applications" ) )
1146 .Flags( AF_ACTIVATE )
1148
1150 .Name( "pcbnew.MicrowaveTool.createFunctionShape" )
1151 .Scope( AS_GLOBAL )
1152 .FriendlyName( _( "Draw Microwave Polygonal Shapes" ) )
1153 .Tooltip( _( "Create a microwave polygonal shape from a list of vertices" ) )
1154 .Icon( BITMAPS::mw_add_shape )
1155 .Flags( AF_ACTIVATE )
1157
1159 .Name( "pcbnew.MicrowaveTool.createLine" )
1160 .Scope( AS_GLOBAL )
1161 .FriendlyName( _( "Draw Microwave Lines" ) )
1162 .Tooltip( _( "Create line of specified length for microwave applications" ) )
1163 .Icon( BITMAPS::mw_add_line )
1164 .Flags( AF_ACTIVATE ) );
1165
1166
1167// PAD_TOOL
1168//
1170 .Name( "pcbnew.PadTool.CopyPadSettings" )
1171 .Scope( AS_GLOBAL )
1172 .FriendlyName( _( "Copy Pad Properties to Default" ) )
1173 .Tooltip( _( "Copy current pad's properties" ) )
1174 .Icon( BITMAPS::copy_pad_settings ) );
1175
1177 .Name( "pcbnew.PadTool.ApplyPadSettings" )
1178 .Scope( AS_GLOBAL )
1179 .FriendlyName( _( "Paste Default Pad Properties to Selected" ) )
1180 .Tooltip( _( "Replace the current pad's properties with those copied earlier" ) )
1181 .Icon( BITMAPS::apply_pad_settings ) );
1182
1184 .Name( "pcbnew.PadTool.PushPadSettings" )
1185 .Scope( AS_GLOBAL )
1186 .FriendlyName( _( "Push Pad Properties to Other Pads..." ) )
1187 .Tooltip( _( "Copy the current pad's properties to other pads" ) )
1188 .Icon( BITMAPS::push_pad_settings ) );
1189
1191 .Name( "pcbnew.PadTool.enumeratePads" )
1192 .Scope( AS_GLOBAL )
1193 .FriendlyName( _( "Renumber Pads..." ) )
1194 .Tooltip( _( "Renumber pads by clicking on them in the desired order" ) )
1195 .Icon( BITMAPS::pad_enumerate )
1196 .Flags( AF_ACTIVATE ) );
1197
1199 .Name( "pcbnew.PadTool.placePad" )
1200 .Scope( AS_GLOBAL )
1201 .FriendlyName( _( "Add Pad" ) )
1202 .Tooltip( _( "Add a pad" ) )
1203 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1204 .Icon( BITMAPS::pad )
1205 .Flags( AF_ACTIVATE ) );
1206
1208 .Name( "pcbnew.PadTool.explodePad" )
1209 .Scope( AS_GLOBAL )
1210 .DefaultHotkey( MD_CTRL + 'E' )
1211 .FriendlyName( _( "Edit Pad as Graphic Shapes" ) )
1212 .Tooltip( _( "Ungroups a custom-shaped pad for editing as individual graphic shapes" ) )
1214
1216 .Name( "pcbnew.PadTool.recombinePad" )
1217 .Scope( AS_GLOBAL )
1218 .DefaultHotkey( MD_CTRL + 'E' )
1219 .FriendlyName( _( "Finish Pad Edit" ) )
1220 .Tooltip( _( "Regroups all touching graphic shapes into the edited pad" ) )
1222
1224 .Name( "pcbnew.PadTool.defaultPadProperties" )
1225 .Scope( AS_GLOBAL )
1226 .FriendlyName( _( "Default Pad Properties..." ) )
1227 .Tooltip( _( "Edit the pad properties used when creating new pads" ) )
1228 .Icon( BITMAPS::options_pad ) );
1229
1230
1231// SCRIPTING TOOL
1232//
1233
1235 .Name( "pcbnew.ScriptingTool.pluginsShowFolder" )
1236 .Scope( AS_GLOBAL )
1237#ifdef __WXMAC__
1238 .FriendlyName( _( "Reveal Plugin Folder in Finder" ) )
1239 .Tooltip( _( "Reveals the plugins folder in a Finder window" ) )
1240#else
1241 .FriendlyName( _( "Open Plugin Directory" ) )
1242 .Tooltip( _( "Opens the directory in the default system file manager" ) )
1243#endif
1244 .Icon( BITMAPS::directory_open ) );
1245
1246// BOARD_EDITOR_CONTROL
1247//
1249 .Name( "pcbnew.EditorControl.appendBoard" )
1250 .Scope( AS_GLOBAL )
1251 .FriendlyName( _( "Append Board..." ) )
1252 .Tooltip( _( "Open another board and append its contents to this board" ) )
1253 .Icon( BITMAPS::add_board ) );
1254
1256 .Name( "pcbnew.EditorControl.rescueAutosave" )
1257 .Scope( AS_GLOBAL )
1258 .FriendlyName( _( "Rescue" ) )
1259 .Tooltip( _( "Clear board and get last rescue file automatically saved by PCB editor" ) )
1260 .Icon( BITMAPS::rescue ) );
1261
1263 .Name( "pcbnew.EditorControl.openNonKicadBoard" )
1264 .Scope( AS_GLOBAL )
1265 .FriendlyName( _( "Import Non-KiCad Board File..." ) )
1266 .Tooltip( _( "Import board file from other applications" ) )
1267 .Icon( BITMAPS::import_brd_file ) );
1268
1270 .Name( "pcbnew.EditorControl.exportFootprints" )
1271 .Scope( AS_GLOBAL )
1272 .FriendlyName( _( "Export Footprints..." ) )
1273 .Tooltip( _( "Add footprints from board to a new or an existing footprint library\n"
1274 "(does not remove other footprints from this library)" ) )
1275 .Icon( BITMAPS::library_archive ) );
1276
1278 .Name( "pcbnew.EditorControl.boardSetup" )
1279 .Scope( AS_GLOBAL )
1280 .FriendlyName( _( "Board Setup..." ) )
1281 .Tooltip( _( "Edit board setup including layers, design rules and various defaults" ) )
1282 .Icon( BITMAPS::options_board ) );
1283
1285 .Name( "pcbnew.EditorControl.importNetlist" )
1286 .Scope( AS_GLOBAL )
1287 .FriendlyName( _( "Import Netlist..." ) )
1288 .Tooltip( _( "Read netlist and update board connectivity" ) )
1289 .Icon( BITMAPS::netlist ) );
1290
1292 .Name( "pcbnew.EditorControl.importSpecctraSession" )
1293 .Scope( AS_GLOBAL )
1294 .FriendlyName( _( "Import Specctra Session..." ) )
1295 .Tooltip( _( "Import routed Specctra session (*.ses) file" ) )
1296 .Icon( BITMAPS::import ) );
1297
1299 .Name( "pcbnew.EditorControl.exportSpecctraDSN" )
1300 .Scope( AS_GLOBAL )
1301 .FriendlyName( _( "Export Specctra DSN..." ) )
1302 .Tooltip( _( "Export Specctra DSN routing info" ) )
1303 .Icon( BITMAPS::export_dsn ) );
1304
1306 .Name( "pcbnew.EditorControl.generateGerbers" )
1307 .Scope( AS_GLOBAL )
1308 .FriendlyName( _( "Gerbers (.gbr)..." ) )
1309 .Tooltip( _( "Generate Gerbers for fabrication" ) )
1310 .Icon( BITMAPS::post_gerber ) );
1311
1313 .Name( "pcbnew.EditorControl.generateDrillFiles" )
1314 .Scope( AS_GLOBAL )
1315 .FriendlyName( _( "Drill Files (.drl)..." ) )
1316 .Tooltip( _( "Generate Excellon drill file(s)" ) )
1317 .Icon( BITMAPS::post_drill ) );
1318
1320 .Name( "pcbnew.EditorControl.generatePosFile" )
1321 .Scope( AS_GLOBAL )
1322 .FriendlyName( _( "Component Placement (.pos, .gbr)..." ) )
1323 .Tooltip( _( "Generate component placement file(s) for pick and place" ) )
1324 .Icon( BITMAPS::post_compo ) );
1325
1327 .Name( "pcbnew.EditorControl.generateReportFile" )
1328 .Scope( AS_GLOBAL )
1329 .FriendlyName( _( "Footprint Report (.rpt)..." ) )
1330 .Tooltip( _( "Create report of all footprints from current board" ) )
1331 .Icon( BITMAPS::post_rpt ) );
1332
1334 .Name( "pcbnew.EditorControl.generateIPC2581File" )
1335 .Scope( AS_GLOBAL )
1336 .FriendlyName( _( "IPC-2581 File (.xml)..." ) )
1337 .Tooltip( _( "Generate an IPC-2581 file" ) )
1338 .Icon( BITMAPS::post_xml ) );
1339
1341 .Name( "pcbnew.EditorControl.generateODBPPFile" )
1342 .Scope( AS_GLOBAL )
1343 .FriendlyName( _( "ODB++ Output File..." ) )
1344 .Tooltip( _( "Generate ODB++ output files" ) )
1345 .Icon( BITMAPS::post_odb ) );
1346
1348 .Name( "pcbnew.EditorControl.generateD356File" )
1349 .Scope( AS_GLOBAL )
1350 .FriendlyName( _( "IPC-D-356 Netlist File..." ) )
1351 .Tooltip( _( "Generate IPC-D-356 netlist file" ) )
1352 .Icon( BITMAPS::post_d356 ) );
1353
1355 .Name( "pcbnew.EditorControl.generateBOM" )
1356 .Scope( AS_GLOBAL )
1357 .FriendlyName( _( "Bill of Materials..." ) )
1358 .Tooltip( _( "Create bill of materials from board" ) )
1359 .Icon( BITMAPS::post_bom ) );
1360
1362 .Name( "pcbnew.EditorControl.exportGenCAD" )
1363 .Scope( AS_GLOBAL )
1364 .FriendlyName( _( "Export GenCAD..." ) )
1365 .Tooltip( _( "Export GenCAD board representation" ) )
1366 .Icon( BITMAPS::post_gencad ) );
1367
1369 .Name( "pcbnew.EditorControl.exportVRML" )
1370 .Scope( AS_GLOBAL )
1371 .FriendlyName( _( "Export VRML..." ) )
1372 .Tooltip( _( "Export VRML 3D board representation" ) )
1373 .Icon( BITMAPS::export3d ) );
1374
1376 .Name( "pcbnew.EditorControl.exportIDF" )
1377 .Scope( AS_GLOBAL )
1378 .FriendlyName( _( "Export IDFv3..." ) )
1379 .Tooltip( _( "Export IDF 3D board representation" ) )
1380 .Icon( BITMAPS::export_idf ) );
1381
1383 .Name( "pcbnew.EditorControl.exportSTEP" )
1384 .Scope( AS_GLOBAL )
1385 .FriendlyName( _( "Export STEP/GLB/BREP/XAO/PLY/STL..." ) )
1386 .Tooltip( _( "Export STEP, GLB, BREP, XAO, PLY or STL 3D board representation" ) )
1387 .Icon( BITMAPS::export_step ) );
1388
1390 .Name( "pcbnew.EditorControl.exportFootprintAssociations" )
1391 .Scope( AS_GLOBAL )
1392 .FriendlyName( _( "Export Footprint Association (.cmp) File..." ) )
1393 .Tooltip( _( "Export footprint association file (*.cmp) for schematic back annotation" ) )
1394 .Icon( BITMAPS::export_cmp ) );
1395
1397 .Name( "pcbnew.EditorControl.exportHyperlynx" )
1398 .Scope( AS_GLOBAL )
1399 .FriendlyName( _( "Hyperlynx..." ) )
1400 .Icon( BITMAPS::export_step ) );
1401
1403 .Name( "pcbnew.EditorControl.collect3DModels" )
1404 .Scope( AS_GLOBAL )
1405 .FriendlyName( _( "Collect And Embed 3D Models" ) )
1406 .Tooltip( _( "Collect footprint 3D models and embed them into the board" ) )
1407 .Icon( BITMAPS::import3d ) );
1408
1409
1410// Track & via size control
1412 .Name( "pcbnew.EditorControl.trackWidthInc" )
1413 .Scope( AS_GLOBAL )
1414 .DefaultHotkey( 'W' )
1415 .LegacyHotkeyName( "Switch Track Width To Next" )
1416 .FriendlyName( _( "Switch Track Width to Next" ) )
1417 .Tooltip( _( "Change track width to next pre-defined size" ) ) );
1418
1420 .Name( "pcbnew.EditorControl.trackWidthDec" )
1421 .Scope( AS_GLOBAL )
1422 .DefaultHotkey( MD_SHIFT + 'W' )
1423 .LegacyHotkeyName( "Switch Track Width To Previous" )
1424 .FriendlyName( _( "Switch Track Width to Previous" ) )
1425 .Tooltip( _( "Change track width to previous pre-defined size" ) ) );
1426
1428 .Name( "pcbnew.EditorControl.viaSizeInc" )
1429 .Scope( AS_GLOBAL )
1430 .DefaultHotkey( '\'' )
1431 .LegacyHotkeyName( "Increase Via Size" )
1432 .FriendlyName( _( "Increase Via Size" ) )
1433 .Tooltip( _( "Change via size to next pre-defined size" ) ) );
1434
1436 .Name( "pcbnew.EditorControl.viaSizeDec" )
1437 .Scope( AS_GLOBAL )
1438 .DefaultHotkey( '\\' )
1439 .LegacyHotkeyName( "Decrease Via Size" )
1440 .FriendlyName( _( "Decrease Via Size" ) )
1441 .Tooltip( _( "Change via size to previous pre-defined size" ) ) );
1442
1444 .Name( "pcbnew.EditorControl.autoTrackWidth" )
1445 .Scope( AS_GLOBAL )
1446 .FriendlyName( _( "Automatically select track width" ) )
1447 .Tooltip( _( "When routing from an existing track use its width instead "
1448 "of the current width setting" ) )
1450 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1451
1453 .Name( "pcbnew.EditorControl.trackViaSizeChanged" )
1454 .Scope( AS_GLOBAL )
1455 .Flags( AF_NOTIFY ) );
1456
1458 .Name( "pcbnew.EditorControl.assignNetclass" )
1459 .Scope( AS_GLOBAL )
1460 .FriendlyName( _( "Assign Netclass..." ) )
1461 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
1462 .Icon( BITMAPS::netlist ) );
1463
1465 .Name( "pcbnew.EditorControl.zoneMerge" )
1466 .Scope( AS_GLOBAL )
1467 .FriendlyName( _( "Merge Zones" ) ) );
1468
1470 .Name( "pcbnew.EditorControl.zoneDuplicate" )
1471 .Scope( AS_GLOBAL )
1472 .FriendlyName( _( "Duplicate Zone onto Layer..." ) )
1473 .Icon( BITMAPS::zone_duplicate ) );
1474
1476 .Name( "pcbnew.EditorControl.zonePriorityMoveToTop" )
1477 .Scope( AS_GLOBAL )
1478 .FriendlyName( _( "Move to Top" ) )
1479 .Icon( BITMAPS::small_up ) );
1480
1482 .Name( "pcbnew.EditorControl.zonePriorityRaise" )
1483 .Scope( AS_GLOBAL )
1484 .FriendlyName( _( "Raise" ) )
1485 .Icon( BITMAPS::small_up ) );
1486
1488 .Name( "pcbnew.EditorControl.zonePriorityLower" )
1489 .Scope( AS_GLOBAL )
1490 .FriendlyName( _( "Lower" ) )
1491 .Icon( BITMAPS::small_down ) );
1492
1494 .Name( "pcbnew.EditorControl.zonePriorityMoveToBottom" )
1495 .Scope( AS_GLOBAL )
1496 .FriendlyName( _( "Move to Bottom" ) )
1497 .Icon( BITMAPS::small_down ) );
1498
1500 .Name( "pcbnew.EditorControl.placeFootprint" )
1501 .Scope( AS_GLOBAL )
1502 .DefaultHotkey( 'A' )
1503 .LegacyHotkeyName( "Add Footprint" )
1504 .FriendlyName( _( "Place Footprints" ) )
1505 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1506 .Icon( BITMAPS::module )
1507 .Flags( AF_ACTIVATE )
1508 .Parameter<FOOTPRINT*>( nullptr ) );
1509
1511 .Name( "pcbnew.EditorControl.drillOrigin" )
1512 .Scope( AS_GLOBAL )
1513 .FriendlyName( _( "Drill/Place File Origin" ) )
1514 .Tooltip( _( "Place origin point for drill files and component placement files" ) )
1515 .Icon( BITMAPS::set_origin )
1516 .Flags( AF_ACTIVATE ) );
1517
1519 .Name( "pcbnew.EditorControl.drillResetOrigin" )
1520 .Scope( AS_GLOBAL )
1521 .LegacyHotkeyName( "Reset Drill Origin" )
1522 .FriendlyName( _( "Reset Drill Origin" ) ) );
1523
1525 .Name( "pcbnew.EditorControl.drillSetOrigin" )
1526 .Scope( AS_CONTEXT )
1527 .Parameter( VECTOR2I() ) );
1528
1530 .Name( "pcbnew.EditorControl.toggleLock" )
1531 .Scope( AS_GLOBAL )
1532 .DefaultHotkey( 'L' )
1533 .LegacyHotkeyName( "Lock/Unlock Footprint" )
1534 .FriendlyName( _( "Toggle Lock" ) )
1535 .Tooltip( _( "Lock or unlock selected items" ) )
1536 .Icon( BITMAPS::lock_unlock ) );
1537
1538// Line mode grouping and events (for PCB and Footprint editors)
1540 .Name( "pcbnew.EditorControl.lineModeFree" )
1541 .Scope( AS_GLOBAL )
1542 .FriendlyName( _( "Line Modes" ) )
1543 .Tooltip( _( "Draw and drag at any angle" ) )
1544 .Icon( BITMAPS::lines_any )
1545 .Flags( AF_NONE )
1546 .Parameter( LEADER_MODE::DIRECT ) );
1547
1549 .Name( "pcbnew.EditorControl.lineModeOrthonal" )
1550 .Scope( AS_GLOBAL )
1551 .FriendlyName( _( "Line Modes" ) )
1552 .Tooltip( _( "Constrain drawing and dragging to horizontal or vertical motions" ) )
1553 .Icon( BITMAPS::lines90 )
1554 .Flags( AF_NONE )
1555 .Parameter( LEADER_MODE::DEG90 ) );
1556
1558 .Name( "pcbnew.EditorControl.lineMode45" )
1559 .Scope( AS_GLOBAL )
1560 .FriendlyName( _( "Line Modes" ) )
1561 .Tooltip( _( "Constrain drawing and dragging to horizontal, vertical, or 45-degree angle motions" ) )
1562 .Icon( BITMAPS::hv45mode )
1563 .Flags( AF_NONE )
1564 .Parameter( LEADER_MODE::DEG45 ) );
1565
1567 .Name( "pcbnew.EditorControl.lineModeNext" )
1568 .DefaultHotkey( MD_SHIFT + ' ' )
1569 .Scope( AS_GLOBAL )
1570 .FriendlyName( _( "Line Modes" ) )
1571 .Tooltip( _( "Switch to next angle snapping mode" ) ) );
1572
1574 .Name( "pcbnew.EditorControl.angleSnapModeChanged" )
1575 .Scope( AS_GLOBAL )
1576 .Flags( AF_NOTIFY ) );
1577
1579 .Name( "pcbnew.EditorControl.lock" )
1580 .Scope( AS_GLOBAL )
1581 .FriendlyName( _( "Lock" ) )
1582 .Tooltip( _( "Prevent items from being moved and/or resized on the canvas" ) )
1583 .Icon( BITMAPS::locked ) );
1584
1586 .Name( "pcbnew.EditorControl.unlock" )
1587 .Scope( AS_GLOBAL )
1588 .FriendlyName( _( "Unlock" ) )
1589 .Tooltip( _( "Allow items to be moved and/or resized on the canvas" ) )
1590 .Icon( BITMAPS::unlocked ) );
1591
1593 .Name( "pcbnew.EditorControl.highlightNet" )
1594 .Scope( AS_GLOBAL )
1595 .DefaultHotkey( '`' )
1596 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1597 .LegacyHotkeyName( "Toggle Highlight of Selected Net (Modern Toolset only)" )
1598 .FriendlyName( _( "Highlight Net" ) )
1599 .Tooltip( _( "Highlight net under cursor" ) )
1600 .Icon( BITMAPS::net_highlight )
1601 .Parameter<int>( 0 ) );
1602
1604 .Name( "pcbnew.EditorControl.toggleLastNetHighlight" )
1605 .Scope( AS_GLOBAL )
1606 .FriendlyName( _( "Toggle Last Net Highlight" ) )
1607 .Tooltip( _( "Toggle between last two highlighted nets" ) )
1608 .Parameter<int>( 0 ) );
1609
1611 .Name( "pcbnew.EditorControl.clearHighlight" )
1612 .Scope( AS_GLOBAL )
1613 .DefaultHotkey( '~' )
1614 .FriendlyName( _( "Clear Net Highlighting" ) ) );
1615
1617 .Name( "pcbnew.EditorControl.toggleNetHighlight" )
1618 .Scope( AS_GLOBAL )
1619 .DefaultHotkey( MD_ALT + '`' )
1620 .FriendlyName( _( "Toggle Net Highlight" ) )
1621 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1622 .Icon( BITMAPS::net_highlight )
1623 .Parameter<int>( 0 ) );
1624
1626 .Name( "pcbnew.EditorControl.highlightNetSelection" )
1627 .Scope( AS_GLOBAL )
1628 .FriendlyName( _( "Highlight Net" ) )
1629 .Tooltip( _( "Highlight all copper items on the selected net(s)" ) )
1630 .Icon( BITMAPS::net_highlight )
1631 .Parameter<int>( 0 ) );
1632
1634 .Name( "pcbnew.EditorControl.highlightNetChain" )
1635 .Scope( AS_GLOBAL )
1636 .FriendlyName( _( "Highlight Net Chain" ) )
1637 .Tooltip( _( "Highlight every net in the net chain" ) )
1638 .Icon( BITMAPS::net_highlight ) );
1639
1641 .Name( "pcbnew.EditorControl.setTerminalPad" )
1642 .Scope( AS_GLOBAL )
1643 .Parameter<std::pair<KIID, KIID>>( { niluuid, niluuid } )
1644 .FriendlyName( _( "Set Terminal Pad" ) ) );
1645
1647 .Name( "pcbnew.EditorControl.highlightItem" )
1648 .Scope( AS_GLOBAL ) );
1649
1651 .Name( "pcbnew.EditorControl.hideNet" )
1652 .Scope( AS_GLOBAL )
1653 .FriendlyName( _( "Hide Net in Ratsnest" ) )
1654 .Tooltip( _( "Hide the selected net in the ratsnest of unconnected net lines/arcs" ) )
1655 .Icon( BITMAPS::hide_ratsnest )
1656 .Parameter<int>( 0 ) ); // Default to hiding selected net
1657
1659 .Name( "pcbnew.EditorControl.showNet" )
1660 .Scope( AS_GLOBAL )
1661 .FriendlyName( _( "Show Net in Ratsnest" ) )
1662 .Tooltip( _( "Show the selected net in the ratsnest of unconnected net lines/arcs" ) )
1663 .Icon( BITMAPS::show_ratsnest )
1664 .Parameter<int>( 0 ) ); // Default to showing selected net
1665
1667 .Name( "pcbnew.EditorControl.showEeschema" )
1668 .Scope( AS_GLOBAL )
1669 .FriendlyName( _( "Switch to Schematic Editor" ) )
1670 .Tooltip( _( "Open schematic in schematic editor" ) )
1671 .Icon( BITMAPS::icon_eeschema_24 ) );
1672
1673// DESIGN RULE EDITOR
1675 .Name( "pcbnew.DRETool.drcRuleEditor" )
1676 .Scope( AS_GLOBAL )
1677 .FriendlyName( _( "DRC Rule Editor" ) )
1678 .Tooltip( _( "Open DRC rule editor window" ) ) );
1679
1680// PCB_CONTROL
1681//
1682
1684 .Name( "pcbnew.Control.localRatsnestTool" )
1685 .Scope( AS_GLOBAL )
1686 .FriendlyName( _( "Local Ratsnest" ) )
1687 .Tooltip( _( "Toggle ratsnest display of selected item(s)" ) )
1688 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1689 .Icon( BITMAPS::tool_ratsnest )
1690 .Flags( AF_ACTIVATE ) );
1691
1693 .Name( "pcbnew.Control.hideDynamicRatsnest" )
1694 .Scope( AS_GLOBAL ) );
1695
1697 .Name( "pcbnew.Control.updateLocalRatsnest" )
1698 .Scope( AS_GLOBAL )
1699 .Parameter( VECTOR2I() ) );
1700
1702 .Name( "pcbnew.Control.showLayersManager" )
1703 .Scope( AS_GLOBAL )
1704 .FriendlyName( _( "Appearance" ) )
1705 .Tooltip( _( "Show/hide the appearance manager" ) )
1706 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1707 .Icon( BITMAPS::layers_manager ) );
1708
1710 .Name( "pcbnew.Control.showNetInspector" )
1711 .Scope( AS_GLOBAL )
1712 .FriendlyName( _( "Net Inspector" ) )
1713 .Tooltip( _( "Show/hide the net inspector" ) )
1714 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1715 .Icon( BITMAPS::tools ) );
1716
1718 .Name( "pcbnew.Control.zonesManager" )
1719 .Scope( AS_GLOBAL )
1720 .FriendlyName( _( "Zone Manager..." ) )
1721 .Tooltip( _( "Show the zone manager dialog" ) )
1722 .Icon( BITMAPS::show_zone ) );
1723
1725 .Name( "pcbnew.Control.flipBoard" )
1726 .Scope( AS_GLOBAL )
1727 .FriendlyName( _( "Flip Board View" ) )
1728 .Tooltip( _( "View board from the opposite side" ) )
1729 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1730 .Icon( BITMAPS::flip_board ) );
1731
1733 .Name( "pcbnew.Control.rehatchShapes" )
1734 .Scope( AS_CONTEXT ) );
1735
1736
1737// Display modes
1739 .Name( "pcbnew.Control.showRatsnest" )
1740 .Scope( AS_GLOBAL )
1741 .FriendlyName( _( "Show Ratsnest" ) )
1742 .Tooltip( _( "Show lines/arcs representing missing connections on the board" ) )
1743 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1744 .Icon( BITMAPS::general_ratsnest ) );
1745
1747 .Name( "pcbnew.Control.ratsnestLineMode" )
1748 .Scope( AS_GLOBAL )
1749 .FriendlyName( _( "Curved Ratsnest Lines" ) )
1750 .Tooltip( _( "Show ratsnest with curved lines" ) )
1751 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1752 .Icon( BITMAPS::curved_ratsnest ) );
1753
1755 .Name( "pcbnew.Control.ratsnestModeCycle" )
1756 .Scope( AS_GLOBAL )
1757 .FriendlyName( _( "Ratsnest Mode (3-state)" ) )
1758 .Tooltip( _( "Cycle between showing ratsnests for all layers, just visible layers, and none" ) ) );
1759
1761 .Name( "pcbnew.Control.netColorMode" )
1762 .Scope( AS_GLOBAL )
1763 .FriendlyName( _( "Net Color Mode (3-state)" ) )
1764 .Tooltip( _( "Cycle between using net and netclass colors for all nets, just ratsnests, and none" ) ) );
1765
1767 .Name( "pcbnew.Control.trackDisplayMode" )
1768 .Scope( AS_GLOBAL )
1769 .DefaultHotkey( 'K' )
1770 .LegacyHotkeyName( "Track Display Mode" )
1771 .FriendlyName( _( "Sketch Tracks" ) )
1772 .Tooltip( _( "Show tracks in outline mode" ) )
1773 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1774 .Icon( BITMAPS::showtrack ) );
1775
1777 .Name( "pcbnew.Control.padDisplayMode" )
1778 .Scope( AS_GLOBAL )
1779 .FriendlyName( _( "Sketch Pads" ) )
1780 .Tooltip( _( "Show pads in outline mode" ) )
1781 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1782 .Icon( BITMAPS::pad_sketch ) );
1783
1785 .Name( "pcbnew.Control.viaDisplayMode" )
1786 .Scope( AS_GLOBAL )
1787 .FriendlyName( _( "Sketch Vias" ) )
1788 .Tooltip( _( "Show vias in outline mode" ) )
1789 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1790 .Icon( BITMAPS::via_sketch ) );
1791
1793 .Name( "pcbnew.Control.graphicOutlines" )
1794 .Scope( AS_GLOBAL )
1795 .FriendlyName( _( "Sketch Graphic Items" ) )
1796 .Tooltip( _( "Show graphic items in outline mode" ) )
1797 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1798 .Icon( BITMAPS::show_mod_edge ) );
1799
1801 .Name( "pcbnew.Control.textOutlines" )
1802 .Scope( AS_GLOBAL )
1803 .FriendlyName( _( "Sketch Text Items" ) )
1804 .Tooltip( _( "Show footprint texts in line mode" ) )
1805 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1806 .Icon( BITMAPS::text_sketch ) );
1807
1809 .Name( "pcbnew.Control.showPadNumbers" )
1810 .Scope( AS_GLOBAL )
1811 .FriendlyName( _( "Show Pad Numbers" ) )
1812 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1813 .Icon( BITMAPS::pad_number ) );
1814
1816 .Name( "pcbnew.Control.zoneDisplayEnable" )
1817 .Scope( AS_GLOBAL )
1818 .FriendlyName( _( "Draw Zone Fills" ) )
1819 .Tooltip( _( "Show filled areas of zones" ) )
1820 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1821 .Icon( BITMAPS::show_zone ) );
1822
1824 .Name( "pcbnew.Control.zoneDisplayDisable" )
1825 .Scope( AS_GLOBAL )
1826 .FriendlyName( _( "Draw Zone Outlines" ) )
1827 .Tooltip( _( "Show only zone boundaries" ) )
1828 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1829 .Icon( BITMAPS::show_zone_disable ) );
1830
1832 .Name( "pcbnew.Control.zoneDisplayOutlines" )
1833 .Scope( AS_GLOBAL )
1834 .FriendlyName( _( "Draw Zone Fill Fracture Borders" ) )
1835 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1837
1839 .Name( "pcbnew.Control.zoneDisplayTesselation" )
1840 .Scope( AS_GLOBAL )
1841 .FriendlyName( _( "Draw Zone Fill Triangulation" ) )
1842 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1844
1846 .Name( "pcbnew.Control.zoneDisplayToggle" )
1847 .Scope( AS_GLOBAL )
1848 .FriendlyName( _( "Toggle Zone Display" ) )
1849 .Tooltip( _( "Cycle between showing zone fills and just their outlines" ) )
1850 .Icon( BITMAPS::show_zone ) );
1851
1852
1854 .Name( "pcbnew.Control.fpAutoZoom" )
1855 .Scope( AS_GLOBAL )
1856 .FriendlyName( _( "Automatic zoom" ) )
1857 .Tooltip( _( "Automatic Zoom on footprint change" ) )
1859 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1860
1861// Layer control
1862
1863// Translate aLayer to the action that switches to it
1865{
1866 switch( aLayer )
1867 {
1868 case F_Cu: return &PCB_ACTIONS::layerTop;
1869 case In1_Cu: return &PCB_ACTIONS::layerInner1;
1870 case In2_Cu: return &PCB_ACTIONS::layerInner2;
1871 case In3_Cu: return &PCB_ACTIONS::layerInner3;
1872 case In4_Cu: return &PCB_ACTIONS::layerInner4;
1873 case In5_Cu: return &PCB_ACTIONS::layerInner5;
1874 case In6_Cu: return &PCB_ACTIONS::layerInner6;
1875 case In7_Cu: return &PCB_ACTIONS::layerInner7;
1876 case In8_Cu: return &PCB_ACTIONS::layerInner8;
1877 case In9_Cu: return &PCB_ACTIONS::layerInner9;
1878 case In10_Cu: return &PCB_ACTIONS::layerInner10;
1879 case In11_Cu: return &PCB_ACTIONS::layerInner11;
1880 case In12_Cu: return &PCB_ACTIONS::layerInner12;
1881 case In13_Cu: return &PCB_ACTIONS::layerInner13;
1882 case In14_Cu: return &PCB_ACTIONS::layerInner14;
1883 case In15_Cu: return &PCB_ACTIONS::layerInner15;
1884 case In16_Cu: return &PCB_ACTIONS::layerInner16;
1885 case In17_Cu: return &PCB_ACTIONS::layerInner17;
1886 case In18_Cu: return &PCB_ACTIONS::layerInner18;
1887 case In19_Cu: return &PCB_ACTIONS::layerInner19;
1888 case In20_Cu: return &PCB_ACTIONS::layerInner20;
1889 case In21_Cu: return &PCB_ACTIONS::layerInner21;
1890 case In22_Cu: return &PCB_ACTIONS::layerInner22;
1891 case In23_Cu: return &PCB_ACTIONS::layerInner23;
1892 case In24_Cu: return &PCB_ACTIONS::layerInner24;
1893 case In25_Cu: return &PCB_ACTIONS::layerInner25;
1894 case In26_Cu: return &PCB_ACTIONS::layerInner26;
1895 case In27_Cu: return &PCB_ACTIONS::layerInner27;
1896 case In28_Cu: return &PCB_ACTIONS::layerInner28;
1897 case In29_Cu: return &PCB_ACTIONS::layerInner29;
1898 case In30_Cu: return &PCB_ACTIONS::layerInner30;
1899 case B_Cu: return &PCB_ACTIONS::layerBottom;
1900 default: return nullptr;
1901 }
1902}
1903
1904// Implemented as an accessor + static variable to ensure it is initialized when used
1905// in static action constructors
1907{
1908 static TOOL_ACTION_GROUP s_toolActionGroup( "pcbnew.Control.DirectLayerActions" );
1909 return s_toolActionGroup;
1910}
1911
1913 .Name( "pcbnew.Control.layerTop" )
1914 .Scope( AS_GLOBAL )
1916 .DefaultHotkey( WXK_PAGEUP )
1917 .LegacyHotkeyName( "Switch to Component (F.Cu) layer" )
1918 .FriendlyName( _( "Switch to Component (F.Cu) layer" ) )
1919 .Flags( AF_NOTIFY )
1920 .Parameter( F_Cu ) );
1921
1923 .Name( "pcbnew.Control.layerInner1" )
1924 .Scope( AS_GLOBAL )
1926 .LegacyHotkeyName( "Switch to Inner layer 1" )
1927 .FriendlyName( _( "Switch to Inner Layer 1" ) )
1928 .Flags( AF_NOTIFY )
1929 .Parameter( In1_Cu ) );
1930
1932 .Name( "pcbnew.Control.layerInner2" )
1933 .Scope( AS_GLOBAL )
1935 .LegacyHotkeyName( "Switch to Inner layer 2" )
1936 .FriendlyName( _( "Switch to Inner Layer 2" ) )
1937 .Flags( AF_NOTIFY )
1938 .Parameter( In2_Cu ) );
1939
1941 .Name( "pcbnew.Control.layerInner3" )
1942 .Scope( AS_GLOBAL )
1944 .LegacyHotkeyName( "Switch to Inner layer 3" )
1945 .FriendlyName( _( "Switch to Inner Layer 3" ) )
1946 .Flags( AF_NOTIFY )
1947 .Parameter( In3_Cu ) );
1948
1950 .Name( "pcbnew.Control.layerInner4" )
1951 .Scope( AS_GLOBAL )
1953 .LegacyHotkeyName( "Switch to Inner layer 4" )
1954 .FriendlyName( _( "Switch to Inner Layer 4" ) )
1955 .Flags( AF_NOTIFY )
1956 .Parameter( In4_Cu ) );
1957
1959 .Name( "pcbnew.Control.layerInner5" )
1960 .Scope( AS_GLOBAL )
1962 .LegacyHotkeyName( "Switch to Inner layer 5" )
1963 .FriendlyName( _( "Switch to Inner Layer 5" ) )
1964 .Flags( AF_NOTIFY )
1965 .Parameter( In5_Cu ) );
1966
1968 .Name( "pcbnew.Control.layerInner6" )
1969 .Scope( AS_GLOBAL )
1971 .LegacyHotkeyName( "Switch to Inner layer 6" )
1972 .FriendlyName( _( "Switch to Inner Layer 6" ) )
1973 .Flags( AF_NOTIFY )
1974 .Parameter( In6_Cu ) );
1975
1977 .Name( "pcbnew.Control.layerInner7" )
1978 .Scope( AS_GLOBAL )
1980 .FriendlyName( _( "Switch to Inner Layer 7" ) )
1981 .Flags( AF_NOTIFY )
1982 .Parameter( In7_Cu ) );
1983
1985 .Name( "pcbnew.Control.layerInner8" )
1986 .Scope( AS_GLOBAL )
1988 .FriendlyName( _( "Switch to Inner Layer 8" ) )
1989 .Flags( AF_NOTIFY )
1990 .Parameter( In8_Cu ) );
1991
1993 .Name( "pcbnew.Control.layerInner9" )
1994 .Scope( AS_GLOBAL )
1996 .FriendlyName( _( "Switch to Inner Layer 9" ) )
1997 .Flags( AF_NOTIFY )
1998 .Parameter( In9_Cu ) );
1999
2001 .Name( "pcbnew.Control.layerInner10" )
2002 .Scope( AS_GLOBAL )
2004 .FriendlyName( _( "Switch to Inner Layer 10" ) )
2005 .Flags( AF_NOTIFY )
2006 .Parameter( In10_Cu ) );
2007
2009 .Name( "pcbnew.Control.layerInner11" )
2010 .Scope( AS_GLOBAL )
2012 .FriendlyName( _( "Switch to Inner Layer 11" ) )
2013 .Flags( AF_NOTIFY )
2014 .Parameter( In11_Cu ) );
2015
2017 .Name( "pcbnew.Control.layerInner12" )
2018 .Scope( AS_GLOBAL )
2020 .FriendlyName( _( "Switch to Inner Layer 12" ) )
2021 .Flags( AF_NOTIFY )
2022 .Parameter( In12_Cu ) );
2023
2025 .Name( "pcbnew.Control.layerInner13" )
2026 .Scope( AS_GLOBAL )
2028 .FriendlyName( _( "Switch to Inner Layer 13" ) )
2029 .Flags( AF_NOTIFY )
2030 .Parameter( In13_Cu ) );
2031
2033 .Name( "pcbnew.Control.layerInner14" )
2034 .Scope( AS_GLOBAL )
2036 .FriendlyName( _( "Switch to Inner Layer 14" ) )
2037 .Flags( AF_NOTIFY )
2038 .Parameter( In14_Cu ) );
2039
2041 .Name( "pcbnew.Control.layerInner15" )
2042 .Scope( AS_GLOBAL )
2044 .FriendlyName( _( "Switch to Inner Layer 15" ) )
2045 .Flags( AF_NOTIFY )
2046 .Parameter( In15_Cu ) );
2047
2049 .Name( "pcbnew.Control.layerInner16" )
2050 .Scope( AS_GLOBAL )
2052 .FriendlyName( _( "Switch to Inner Layer 16" ) )
2053 .Flags( AF_NOTIFY )
2054 .Parameter( In16_Cu ) );
2055
2057 .Name( "pcbnew.Control.layerInner17" )
2058 .Scope( AS_GLOBAL )
2060 .FriendlyName( _( "Switch to Inner Layer 17" ) )
2061 .Flags( AF_NOTIFY )
2062 .Parameter( In17_Cu ) );
2063
2065 .Name( "pcbnew.Control.layerInner18" )
2066 .Scope( AS_GLOBAL )
2068 .FriendlyName( _( "Switch to Inner Layer 18" ) )
2069 .Flags( AF_NOTIFY )
2070 .Parameter( In18_Cu ) );
2071
2073 .Name( "pcbnew.Control.layerInner19" )
2074 .Scope( AS_GLOBAL )
2076 .FriendlyName( _( "Switch to Inner Layer 19" ) )
2077 .Flags( AF_NOTIFY )
2078 .Parameter( In19_Cu ) );
2079
2081 .Name( "pcbnew.Control.layerInner20" )
2082 .Scope( AS_GLOBAL )
2084 .FriendlyName( _( "Switch to Inner Layer 20" ) )
2085 .Flags( AF_NOTIFY )
2086 .Parameter( In20_Cu ) );
2087
2089 .Name( "pcbnew.Control.layerInner21" )
2090 .Scope( AS_GLOBAL )
2092 .FriendlyName( _( "Switch to Inner Layer 21" ) )
2093 .Flags( AF_NOTIFY )
2094 .Parameter( In21_Cu ) );
2095
2097 .Name( "pcbnew.Control.layerInner22" )
2098 .Scope( AS_GLOBAL )
2100 .FriendlyName( _( "Switch to Inner Layer 22" ) )
2101 .Flags( AF_NOTIFY )
2102 .Parameter( In22_Cu ) );
2103
2105 .Name( "pcbnew.Control.layerInner23" )
2106 .Scope( AS_GLOBAL )
2108 .FriendlyName( _( "Switch to Inner Layer 23" ) )
2109 .Flags( AF_NOTIFY )
2110 .Parameter( In23_Cu ) );
2111
2113 .Name( "pcbnew.Control.layerInner24" )
2114 .Scope( AS_GLOBAL )
2116 .FriendlyName( _( "Switch to Inner Layer 24" ) )
2117 .Flags( AF_NOTIFY )
2118 .Parameter( In24_Cu ) );
2119
2121 .Name( "pcbnew.Control.layerInner25" )
2122 .Scope( AS_GLOBAL )
2124 .FriendlyName( _( "Switch to Inner Layer 25" ) )
2125 .Flags( AF_NOTIFY )
2126 .Parameter( In25_Cu ) );
2127
2129 .Name( "pcbnew.Control.layerInner26" )
2130 .Scope( AS_GLOBAL )
2132 .FriendlyName( _( "Switch to Inner Layer 26" ) )
2133 .Flags( AF_NOTIFY )
2134 .Parameter( In26_Cu ) );
2135
2137 .Name( "pcbnew.Control.layerInner27" )
2138 .Scope( AS_GLOBAL )
2140 .FriendlyName( _( "Switch to Inner Layer 27" ) )
2141 .Flags( AF_NOTIFY )
2142 .Parameter( In27_Cu ) );
2143
2145 .Name( "pcbnew.Control.layerInner28" )
2146 .Scope( AS_GLOBAL )
2148 .FriendlyName( _( "Switch to Inner Layer 28" ) )
2149 .Flags( AF_NOTIFY )
2150 .Parameter( In28_Cu ) );
2151
2153 .Name( "pcbnew.Control.layerInner29" )
2154 .Scope( AS_GLOBAL )
2156 .FriendlyName( _( "Switch to Inner Layer 29" ) )
2157 .Flags( AF_NOTIFY )
2158 .Parameter( In29_Cu ) );
2159
2161 .Name( "pcbnew.Control.layerInner30" )
2162 .Scope( AS_GLOBAL )
2164 .FriendlyName( _( "Switch to Inner Layer 30" ) )
2165 .Flags( AF_NOTIFY )
2166 .Parameter( In30_Cu ) );
2167
2169 .Name( "pcbnew.Control.layerBottom" )
2170 .Scope( AS_GLOBAL )
2172 .DefaultHotkey( WXK_PAGEDOWN )
2173 .LegacyHotkeyName( "Switch to Copper (B.Cu) layer" )
2174 .FriendlyName( _( "Switch to Copper (B.Cu) Layer" ) )
2175 .Flags( AF_NOTIFY )
2176 .Parameter( B_Cu ) );
2177
2179 .Name( "pcbnew.Control.layerNext" )
2180 .Scope( AS_GLOBAL )
2181 .DefaultHotkey( '+' )
2182 .LegacyHotkeyName( "Switch to Next Layer" )
2183 .FriendlyName( _( "Switch to Next Layer" ) )
2184 .Flags( AF_NOTIFY ) );
2185
2187 .Name( "pcbnew.Control.layerPrev" )
2188 .Scope( AS_GLOBAL )
2189 .DefaultHotkey( '-' )
2190 .LegacyHotkeyName( "Switch to Previous Layer" )
2191 .FriendlyName( _( "Switch to Previous Layer" ) )
2192 .Flags( AF_NOTIFY ) );
2193
2195 .Name( "pcbnew.Control.layerToggle" )
2196 .Scope( AS_GLOBAL )
2197 .DefaultHotkey( 'V' )
2198 .LegacyHotkeyName( "Add Through Via" )
2199 .FriendlyName( _( "Toggle Layer" ) )
2200 .Tooltip( _( "Switch between layers in active layer pair" ) )
2201 .Flags( AF_NOTIFY ) );
2202
2204 .Name( "pcbnew.Control.layerAlphaInc" )
2205 .Scope( AS_GLOBAL )
2206 .DefaultHotkey( '}' )
2207 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2208 .LegacyHotkeyName( "Increment Layer Transparency (Modern Toolset only)" )
2209 .FriendlyName( _( "Increase Layer Opacity" ) )
2210 .Tooltip( _( "Make the current layer less transparent" ) )
2211 .Icon( BITMAPS::contrast_mode ) );
2212
2214 .Name( "pcbnew.Control.layerAlphaDec" )
2215 .Scope( AS_GLOBAL )
2216 .DefaultHotkey( '{' )
2217 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2218 .LegacyHotkeyName( "Decrement Layer Transparency (Modern Toolset only)" )
2219 .FriendlyName( _( "Decrease Layer Opacity" ) )
2220 .Tooltip( _( "Make the current layer more transparent" ) )
2221 .Icon( BITMAPS::contrast_mode ) );
2222
2224 .Name( "pcbnew.Control.layerPairPresetCycle" )
2225 .Scope( AS_GLOBAL )
2226 .DefaultHotkey( MD_SHIFT + 'V' )
2227 .FriendlyName( _( "Cycle Layer Pair Presets" ) )
2228 .Tooltip( _( "Cycle between preset layer pairs" ) ) );
2229
2231 .Name( "pcbnew.Control.layerChanged" )
2232 .Scope( AS_GLOBAL )
2233 .Flags( AF_NOTIFY ) );
2234
2235//Show board statistics tool
2237 .Name( "pcbnew.InspectionTool.ShowBoardStatistics" )
2238 .Scope( AS_GLOBAL )
2239 .FriendlyName( _( "Show Board Statistics" ) )
2240 .Tooltip( _( "Shows board statistics" ) )
2241 .Icon( BITMAPS::editor ) );
2242
2244 .Name( "pcbnew.InspectionTool.InspectClearance" )
2245 .Scope( AS_GLOBAL )
2246 .FriendlyName( _( "Clearance Resolution" ) )
2247 .Tooltip( _( "Show clearance resolution for the active layer between two selected objects" ) )
2248 .Icon( BITMAPS::mw_add_gap ) );
2249
2251 .Name( "pcbnew.InspectionTool.InspectConstraints" )
2252 .Scope( AS_GLOBAL )
2253 .FriendlyName( _( "Constraints Resolution" ) )
2254 .Tooltip( _( "Show constraints resolution for the selected object" ) )
2255 .Icon( BITMAPS::mw_add_stub ) );
2256
2258 .Name( "pcbnew.InspectionTool.DiffFootprint" )
2259 .Scope( AS_GLOBAL )
2260 .FriendlyName( _( "Compare Footprint with Library" ) )
2261 .Tooltip( _( "Show differences between board footprint and its library equivalent" ) )
2262 .Icon( BITMAPS::library ) );
2263
2265 .Name( "pcbnew.InspectionTool.CompareBoardWithFile" )
2266 .Scope( AS_GLOBAL )
2267 .FriendlyName( _( "Compare Board with File..." ) )
2268 .Tooltip( _( "Diff the current PCB against another .kicad_pcb file" ) )
2269 .Icon( BITMAPS::library ) );
2270
2272 .Name( "pcbnew.InspectionTool.CompareBoardWithHistory" )
2273 .Scope( AS_GLOBAL )
2274 .FriendlyName( _( "Compare Board with Local History..." ) )
2275 .Tooltip( _( "Diff the current PCB against the most recent local-history snapshot" ) )
2276 .Icon( BITMAPS::library ) );
2277
2279 .Name( "pcbnew.InspectionTool.ShowFootprintAssociations" )
2280 .Scope( AS_GLOBAL )
2281 .FriendlyName( _( "Show Footprint Associations" ) )
2282 .Tooltip( _( "Show footprint library and schematic symbol associations" ) )
2284
2285//Geographic re-annotation tool
2287 .Name( "pcbnew.ReannotateTool.ShowReannotateDialog" )
2288 .Scope( AS_GLOBAL )
2289 .FriendlyName( _( "Geographical Reannotate..." ) )
2290 .Tooltip( _( "Reannotate PCB in geographical order" ) )
2291 .Icon( BITMAPS::annotate ) );
2292
2294 .Name( "pcbnew.Control.repairBoard" )
2295 .Scope( AS_GLOBAL )
2296 .FriendlyName( _( "Repair Board" ) )
2297 .Tooltip( _( "Run various diagnostics and attempt to repair board" ) )
2298 .Icon( BITMAPS::rescue )
2299 .Parameter( false ) ); // Don't repair quietly
2300
2302 .Name( "pcbnew.ModuleEditor.repairFootprint" )
2303 .Scope( AS_GLOBAL )
2304 .FriendlyName( _( "Repair Footprint" ) )
2305 .Tooltip( _( "Run various diagnostics and attempt to repair footprint" ) )
2306 .Icon( BITMAPS::rescue ) );
2307
2308// These carry no DefaultHotkey because GTK refuses WXK_TAB as a menu accelerator. Ctrl+Tab is
2309// routed through a frame char-hook handler instead.
2311 .Name( "pcbnew.ModuleEditor.nextFootprintTab" )
2312 .Scope( AS_GLOBAL )
2313 .FriendlyName( _( "Next Footprint Tab" ) )
2314 .Tooltip( _( "Switch to the next open footprint tab" ) ) );
2315
2317 .Name( "pcbnew.ModuleEditor.prevFootprintTab" )
2318 .Scope( AS_GLOBAL )
2319 .FriendlyName( _( "Previous Footprint Tab" ) )
2320 .Tooltip( _( "Switch to the previous open footprint tab" ) ) );
2321
2323 .Name( "pcbnew.ModuleEditor.closeFootprintTab" )
2324 .Scope( AS_GLOBAL )
2325 .FriendlyName( _( "Close Footprint Tab" ) )
2326 .Tooltip( _( "Close the active footprint tab" ) ) );
2327
2328
2329// PLACEMENT_TOOL
2330//
2332 .Name( "pcbnew.AlignAndDistribute.alignTop" )
2333 .Scope( AS_GLOBAL )
2334 .FriendlyName( _( "Align to Top" ) )
2335 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
2336 .Icon( BITMAPS::align_items_top ) );
2337
2339 .Name( "pcbnew.AlignAndDistribute.alignBottom" )
2340 .Scope( AS_GLOBAL )
2341 .FriendlyName( _( "Align to Bottom" ) )
2342 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
2343 .Icon( BITMAPS::align_items_bottom ) );
2344
2346 .Name( "pcbnew.AlignAndDistribute.alignLeft" )
2347 .Scope( AS_GLOBAL )
2348 .FriendlyName( _( "Align to Left" ) )
2349 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
2350 .Icon( BITMAPS::align_items_left ) );
2351
2353 .Name( "pcbnew.AlignAndDistribute.alignRight" )
2354 .Scope( AS_GLOBAL )
2355 .FriendlyName( _( "Align to Right" ) )
2356 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
2357 .Icon( BITMAPS::align_items_right ) );
2358
2360 .Name( "pcbnew.AlignAndDistribute.alignCenterY" )
2361 .Scope( AS_GLOBAL )
2362 .FriendlyName( _( "Align to Vertical Center" ) )
2363 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
2364 .Icon( BITMAPS::align_items_center ) );
2365
2367 .Name( "pcbnew.AlignAndDistribute.alignCenterX" )
2368 .Scope( AS_GLOBAL )
2369 .FriendlyName( _( "Align to Horizontal Center" ) )
2370 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
2371 .Icon( BITMAPS::align_items_middle ) );
2372
2374 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyCenters" )
2375 .Scope( AS_GLOBAL )
2376 .FriendlyName( _( "Distribute Horizontally by Centers" ) )
2377 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
2378 "so that the item centers are equally distributed" ) )
2380
2382 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyGaps" )
2383 .Scope( AS_GLOBAL )
2384 .FriendlyName( _( "Distribute Horizontally with Even Gaps" ) )
2385 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
2386 "so that the gaps between items are equal" ) )
2388
2390 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyGaps" )
2391 .Scope( AS_GLOBAL )
2392 .FriendlyName( _( "Distribute Vertically with Even Gaps" ) )
2393 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2394 "so that the gaps between items are equal" ) )
2396
2398 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyCenters" )
2399 .Scope( AS_GLOBAL )
2400 .FriendlyName( _( "Distribute Vertically by Centers" ) )
2401 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2402 "so that the item centers are equally distributed" ) )
2404
2405// PCB_POINT_EDITOR
2406//
2408 .Name( "pcbnew.PointEditor.addCorner" )
2409 .Scope( AS_GLOBAL )
2410#ifdef __WXMAC__
2411 .DefaultHotkey( WXK_F1 )
2412#else
2413 .DefaultHotkey( WXK_INSERT )
2414#endif
2415 .FriendlyName( _( "Create Corner" ) )
2416 .Tooltip( _( "Create a corner" ) )
2417 .Icon( BITMAPS::add_corner ) );
2418
2420 .Name( "pcbnew.PointEditor.removeCorner" )
2421 .Scope( AS_GLOBAL )
2422 .FriendlyName( _( "Remove Corner" ) )
2423 .Tooltip( _( "Remove corner" ) )
2424 .Icon( BITMAPS::delete_cursor ) );
2425
2427 .Name( "pcbnew.PointEditor.chamferCorner" )
2428 .Scope( AS_GLOBAL )
2429 .FriendlyName( _( "Chamfer Corner" ) )
2430 .Tooltip( _( "Chamfer corner" ) )
2431 .Icon( BITMAPS::chamfer ) );
2432
2433// POSITION_RELATIVE_TOOL
2434//
2436 .Name( "pcbnew.PositionRelative.positionRelative" )
2437 .Scope( AS_GLOBAL )
2438 .DefaultHotkey( MD_SHIFT + 'P' )
2439 .LegacyHotkeyName( "Position Item Relative" )
2440 .FriendlyName( _( "Position Relative To..." ) )
2441 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another" ) )
2442 .Icon( BITMAPS::move_relative ) );
2443
2445 .Name( "pcbnew.PositionRelative.interactiveOffsetTool" )
2446 .Scope( AS_GLOBAL )
2447 .FriendlyName( _( "Interactive Offset Tool" ) )
2448 .Tooltip( _( "Interactive tool for offsetting items by exact amounts" ) )
2449 .Icon( BITMAPS::move_relative ) );
2450
2451// PCIKER_TOOL
2452//
2454 .Name( "pcbnew.Picker.selectItemInteractively" )
2455 .Scope( AS_GLOBAL )
2456 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ) );
2457
2459 .Name( "pcbnew.Picker.selectPointInteractively" )
2460 .Scope( AS_GLOBAL )
2461 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ));
2462
2463
2465 .Name( "pcbnew.InteractiveSelection.SelectConnection" )
2466 .Scope( AS_GLOBAL )
2467 .DefaultHotkey( 'U' )
2468 .LegacyHotkeyName( "Select Single Track" )
2469 .FriendlyName( _( "Select/Expand Connection" ) )
2470 .Tooltip( _( "Selects a connection or expands an existing selection to junctions, pads, or entire connections" ) )
2471 .Icon( BITMAPS::add_tracks ) );
2472
2474 .Name( "pcbnew.InteractiveSelection.unrouteSelected" )
2475 .Scope( AS_GLOBAL )
2476 .FriendlyName( _( "Unroute Selected" ) )
2477 .Tooltip( _( "Unroutes selected items to the nearest pad." ) )
2478 .Icon( BITMAPS::general_deletions ) );
2479
2481 .Name( "pcbnew.InteractiveSelection.unrouteSegment" )
2482 .Scope( AS_GLOBAL )
2483 .DefaultHotkey( WXK_BACK )
2484 .FriendlyName( _( "Unroute Segment" ) )
2485 .Tooltip( _( "Unroutes segment to the nearest segment." ) )
2486 .Icon( BITMAPS::general_deletions ) );
2487
2489 .Name( "pcbnew.InteractiveSelection.SyncSelection" )
2490 .Scope( AS_GLOBAL ) );
2491
2493 .Name( "pcbnew.InteractiveSelection.SyncSelectionWithNets" )
2494 .Scope( AS_GLOBAL ) );
2495
2497 .Name( "pcbnew.InteractiveSelection.SelectNet" )
2498 .Scope( AS_GLOBAL )
2499 .FriendlyName( _( "Select All Tracks in Net" ) )
2500 .Tooltip( _( "Selects all tracks & vias belonging to the same net." ) )
2501 .Parameter<int>( 0 ) );
2502
2504 .Name( "pcbnew.InteractiveSelection.DeselectNet" )
2505 .Scope( AS_GLOBAL )
2506 .FriendlyName( _( "Deselect All Tracks in Net" ) )
2507 .Tooltip( _( "Deselects all tracks & vias belonging to the same net." ) )
2508 .Parameter<int>( 0 ) );
2509
2511 .Name( "pcbnew.InteractiveSelection.SelectNetChain" )
2512 .Scope( AS_GLOBAL )
2513 .FriendlyName( _( "Select All Tracks in Net Chain" ) )
2514 .Tooltip( _( "Selects all tracks & vias belonging to every net in the same net "
2515 "chain (nets joined through series passives)." ) ) );
2516
2518 .Name( "pcbnew.InteractiveSelection.SelectUnconnected" )
2519 .Scope( AS_GLOBAL )
2520 .DefaultHotkey( 'O' )
2521 .FriendlyName( _( "Select All Unconnected Footprints" ) )
2522 .Tooltip( _( "Selects all unconnected footprints belonging to each selected net." ) ) );
2523
2525 .Name( "pcbnew.InteractiveSelection.GrabUnconnected" )
2526 .Scope( AS_GLOBAL )
2527 .DefaultHotkey( MD_SHIFT + 'O' )
2528 .FriendlyName( _( "Grab Nearest Unconnected Footprints" ) )
2529 .Tooltip( _( "Selects and initiates moving the nearest unconnected footprint on each selected net." ) ) );
2530
2532 .Name( "pcbnew.InteractiveSelection.SelectOnSheet" )
2533 .Scope( AS_GLOBAL )
2534 .FriendlyName( _( "Sheet" ) )
2535 .Tooltip( _( "Selects all footprints and tracks in the schematic sheet" ) )
2536 .Icon( BITMAPS::select_same_sheet ) );
2537
2539 .Name( "pcbnew.InteractiveSelection.SelectSameSheet" )
2540 .Scope( AS_GLOBAL )
2541 .FriendlyName( _( "Items in Same Hierarchical Sheet" ) )
2542 .Tooltip( _( "Selects all footprints and tracks in the same schematic sheet" ) )
2543 .Icon( BITMAPS::select_same_sheet ) );
2544
2546 .Name( "pcbnew.InteractiveSelection.SelectOnSchematic" )
2547 .Scope( AS_GLOBAL )
2548 .FriendlyName( _( "Select on Schematic" ) )
2549 .Tooltip( _( "Selects corresponding items in Schematic editor" ) )
2550 .Icon( BITMAPS::select_same_sheet ) );
2551
2553 .Name( "pcbnew.InteractiveSelection.FilterSelection" )
2554 .Scope( AS_GLOBAL )
2555 .FriendlyName( _( "Filter Selected Items..." ) )
2556 .Tooltip( _( "Remove items from the selection by type" ) )
2557 .Icon( BITMAPS::filter ) );
2558
2559
2560// ZONE_FILLER_TOOL
2561//
2563 .Name( "pcbnew.ZoneFiller.zoneFill" )
2564 .Scope( AS_GLOBAL )
2565 .FriendlyName( _( "Draft Fill Selected Zone(s)" ) )
2566 .Tooltip( _( "Update copper fill of selected zone(s) without regard to other interacting zones" ) )
2567 .Icon( BITMAPS::fill_zone )
2568 .Parameter<ZONE*>( nullptr ) );
2569
2571 .Name( "pcbnew.ZoneFiller.zoneFillAll" )
2572 .Scope( AS_GLOBAL )
2573 .DefaultHotkey( 'B' )
2574 .LegacyHotkeyName( "Fill or Refill All Zones" )
2575 .FriendlyName( _( "Fill All Zones" ) )
2576 .Tooltip( _( "Update copper fill of all zones" ) )
2577 .Icon( BITMAPS::fill_zone ) );
2578
2580 .Name( "pcbnew.ZoneFiller.zoneFillDirty" )
2581 .Scope( AS_CONTEXT ) );
2582
2584 .Name( "pcbnew.ZoneFiller.zoneUnfill" )
2585 .Scope( AS_GLOBAL )
2586 .FriendlyName( _( "Unfill Selected Zone(s)" ) )
2587 .Tooltip( _( "Remove copper fill from selected zone(s)" ) )
2588 .Icon( BITMAPS::zone_unfill ) );
2589
2591 .Name( "pcbnew.ZoneFiller.zoneUnfillAll" )
2592 .Scope( AS_GLOBAL )
2593 .DefaultHotkey( MD_CTRL + 'B' )
2594 .LegacyHotkeyName( "Remove Filled Areas in All Zones" )
2595 .FriendlyName( _( "Unfill All Zones" ) )
2596 .Tooltip( _( "Remove copper fill from all zones" ) )
2597 .Icon( BITMAPS::zone_unfill ) );
2598
2599
2600// AUTOPLACER_TOOL
2601//
2603 .Name( "pcbnew.Autoplacer.autoplaceSelected" )
2604 .Scope( AS_GLOBAL )
2605 .FriendlyName( _( "Place Selected Footprints" ) )
2606 .Tooltip( _( "Performs automatic placement of selected components" ) ) );
2607
2609 .Name( "pcbnew.Autoplacer.autoplaceOffboard" )
2610 .Scope( AS_GLOBAL )
2611 .FriendlyName( _( "Place Off-Board Footprints" ) )
2612 .Tooltip( _( "Performs automatic placement of components outside board area" ) ) );
2613
2615 .Name( "pcbnew.Multichannel.generatePlacementRuleAreas" )
2616 .Scope( AS_GLOBAL )
2617 .FriendlyName( _( "Generate Placement Rule Areas..." ) )
2618 .Tooltip( _( "Creates best-fit placement rule areas" ) )
2620 .Flags( AF_ACTIVATE ) );
2621
2623 .Name( "pcbnew.Multichannel.repeatLayout" )
2624 .Scope( AS_GLOBAL )
2625 .FriendlyName( _( "Repeat Layout..." ) )
2626 .Tooltip( _( "Clones placement & routing across multiple identical channels" ) )
2627 .Icon( BITMAPS::copy )
2628 );
2629
2630// ROUTER_TOOL
2631//
2633 .Name( "pcbnew.InteractiveRouter.SingleTrack" )
2634 .Scope( AS_GLOBAL )
2635 .DefaultHotkey( 'X' )
2636 .LegacyHotkeyName( "Add New Track" )
2637 .FriendlyName( _( "Route Single Track" ) )
2638 .Tooltip( _( "Route tracks" ) )
2639 .Icon( BITMAPS::add_tracks )
2640 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2641 .Flags( AF_ACTIVATE )
2642 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2643
2645 .Name( "pcbnew.InteractiveRouter.DiffPair" )
2646 .Scope( AS_GLOBAL )
2647 .DefaultHotkey( '6' )
2648 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2649 .LegacyHotkeyName( "Route Differential Pair (Modern Toolset only)" )
2650 .FriendlyName( _( "Route Differential Pair" ) )
2651 .Tooltip( _( "Route differential pairs" ) )
2652 .Icon( BITMAPS::ps_diff_pair )
2653 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2654 .Flags( AF_ACTIVATE )
2655 .Parameter( PNS::PNS_MODE_ROUTE_DIFF_PAIR ) );
2656
2658 .Name( "pcbnew.InteractiveRouter.SettingsDialog" )
2659 .Scope( AS_GLOBAL )
2660 .DefaultHotkey( MD_CTRL + '<' )
2661 .LegacyHotkeyName( "Routing Options" )
2662 .FriendlyName( _( "Interactive Router Settings..." ) )
2663 .Tooltip( _( "Open Interactive Router settings" ) )
2664 .Icon( BITMAPS::tools ) );
2665
2667 .Name( "pcbnew.InteractiveRouter.DiffPairDialog" )
2668 .Scope( AS_GLOBAL )
2669 .FriendlyName( _( "Differential Pair Dimensions..." ) )
2670 .Tooltip( _( "Open Differential Pair Dimension settings" ) )
2671 .Icon( BITMAPS::ps_diff_pair_gap ) );
2672
2674 .Name( "pcbnew.InteractiveRouter.HighlightMode" )
2675 .Scope( AS_GLOBAL )
2676 .FriendlyName( _( "Router Highlight Mode" ) )
2677 .Tooltip( _( "Switch router to highlight mode" ) )
2678 .Flags( AF_NONE )
2679 .Parameter( PNS::RM_MarkObstacles ) );
2680
2682 .Name( "pcbnew.InteractiveRouter.ShoveMode" )
2683 .Scope( AS_GLOBAL )
2684 .FriendlyName( _( "Router Shove Mode" ) )
2685 .Tooltip( _( "Switch router to shove mode" ) )
2686 .Flags( AF_NONE )
2687 .Parameter( PNS::RM_Shove ) );
2688
2690 .Name( "pcbnew.InteractiveRouter.WalkaroundMode" )
2691 .Scope( AS_GLOBAL )
2692 .FriendlyName( _( "Router Walkaround Mode" ) )
2693 .Tooltip( _( "Switch router to walkaround mode" ) )
2694 .Flags( AF_NONE )
2695 .Parameter( PNS::RM_Walkaround ) );
2696
2698 .Name( "pcbnew.InteractiveRouter.CycleRouterMode" )
2699 .Scope( AS_GLOBAL )
2700 .FriendlyName( _( "Cycle Router Mode" ) )
2701 .Tooltip( _( "Cycle router to the next mode" ) ) );
2702
2704 .Name( "pcbnew.InteractiveRouter.SelectLayerPair" )
2705 .Scope( AS_GLOBAL )
2706 .FriendlyName( _( "Set Layer Pair..." ) )
2707 .Tooltip( _( "Change active layer pair for routing" ) )
2709 .Flags( AF_ACTIVATE ) );
2710
2712 .Name( "pcbnew.LengthTuner.TuneSingleTrack" )
2713 .Scope( AS_GLOBAL )
2714 .DefaultHotkey( '7' )
2715 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2716 .LegacyHotkeyName( "Tune Single Track (Modern Toolset only)" )
2717 .FriendlyName( _( "Tune Length of a Single Track" ) )
2719 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2720 .Flags( AF_ACTIVATE )
2721 .Parameter( PNS::PNS_MODE_TUNE_SINGLE ) );
2722
2724 .Name( "pcbnew.LengthTuner.TuneDiffPair" )
2725 .Scope( AS_GLOBAL )
2726 .DefaultHotkey( '8' )
2727 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2728 .LegacyHotkeyName( "Tune Differential Pair Length (Modern Toolset only)" )
2729 .FriendlyName( _( "Tune Length of a Differential Pair" ) )
2731 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2732 .Flags( AF_ACTIVATE )
2733 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR ) );
2734
2736 .Name( "pcbnew.LengthTuner.TuneDiffPairSkew" )
2737 .Scope( AS_GLOBAL )
2738 .DefaultHotkey( '9' )
2739 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2740 .LegacyHotkeyName( "Tune Differential Pair Skew (Modern Toolset only)" )
2741 .FriendlyName( _( "Tune Skew of a Differential Pair" ) )
2743 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2744 .Flags( AF_ACTIVATE )
2745 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW ) );
2746
2748 .Name( "pcbnew.InteractiveRouter.InlineDrag" )
2749 .Scope( AS_CONTEXT )
2750 .Parameter<int>( PNS::DM_ANY ) );
2751
2753 .Name( "pcbnew.InteractiveRouter.UndoLastSegment" )
2754 .Scope( AS_CONTEXT )
2755 .DefaultHotkey( WXK_BACK )
2756 .FriendlyName( _( "Undo Last Segment" ) )
2757 .Tooltip( _( "Walks the current track back one segment." ) ) );
2758
2760 .Name( "pcbnew.InteractiveRouter.ContinueFromEnd" )
2761 .Scope( AS_CONTEXT )
2762 .DefaultHotkey( MD_CTRL + 'E' )
2763 .FriendlyName( _( "Route From Other End" ) )
2764 .Tooltip( _( "Commits current segments and starts next segment from nearest ratsnest end." ) ) );
2765
2767 .Name( "pcbnew.InteractiveRouter.AttemptFinish" )
2768 .Scope( AS_CONTEXT )
2769 .DefaultHotkey( 'F' )
2770 .FriendlyName( _( "Attempt Finish" ) )
2771 .Tooltip( _( "Attempts to complete current route to nearest ratsnest end." ) )
2772 .Parameter<bool*>( nullptr ) );
2773
2775 .Name( "pcbnew.InteractiveRouter.RouteSelected" )
2776 .Scope( AS_GLOBAL )
2777 .DefaultHotkey( MD_SHIFT + 'X' )
2778 .FriendlyName( _( "Route Selected" ) )
2779 .Tooltip( _( "Sequentially route selected items from ratsnest anchor." ) )
2780 .Flags( AF_ACTIVATE )
2781 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2782
2784 .Name( "pcbnew.InteractiveRouter.RouteSelectedFromEnd" )
2785 .Scope( AS_GLOBAL )
2786 .DefaultHotkey( MD_SHIFT + 'E' )
2787 .FriendlyName( _( "Route Selected From Other End" ) )
2788 .Tooltip( _( "Sequentially route selected items from other end of ratsnest anchor." ) )
2789 .Flags( AF_ACTIVATE )
2790 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2791
2793 .Name( "pcbnew.InteractiveRouter.Autoroute" )
2794 .Scope( AS_GLOBAL )
2795 .DefaultHotkey( MD_SHIFT + 'F' )
2796 .FriendlyName( _( "Attempt Finish Selected (Autoroute)" ) )
2797 .Tooltip( _( "Sequentially attempt to automatically route all selected pads." ) )
2798 .Flags( AF_ACTIVATE )
2799 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2800
2802 .Name( "pcbnew.InteractiveRouter.CancelCurrentItem" )
2803 .Scope( AS_GLOBAL )
2804 .FriendlyName( _( "Cancel Current Item" ) )
2805 .Tooltip( _( "Skip current item and route next selected item." ) ) );
2806
2808 .Name( "pcbnew.InteractiveRouter.BreakTrack" )
2809 .Scope( AS_GLOBAL )
2810 .FriendlyName( _( "Break Track" ) )
2811 .Tooltip( _( "Splits the track segment into two segments connected at the cursor position." ) )
2812 .Icon( BITMAPS::break_line ) );
2813
2815 .Name( "pcbnew.InteractiveRouter.Drag45Degree" )
2816 .Scope( AS_GLOBAL )
2817 .DefaultHotkey( 'D' )
2818 .LegacyHotkeyName( "Drag Track Keep Slope" )
2819 .FriendlyName( _( "Drag 45 Degree Mode" ) )
2820 .Tooltip( _( "Drags the track segment while keeping connected tracks at 45 degrees." ) )
2822
2824 .Name( "pcbnew.InteractiveRouter.DragFreeAngle" )
2825 .Scope( AS_GLOBAL )
2826 .DefaultHotkey( 'G' )
2827 .LegacyHotkeyName( "Drag Item" )
2828 .FriendlyName( _( "Drag Free Angle" ) )
2829 .Tooltip( _( "Drags the nearest joint in the track without restricting the track angle." ) )
2830 .Icon( BITMAPS::drag_segment ) );
2831
2832
2833// GENERATOR_TOOL
2834//
2835
2837 .Name( "pcbnew.Generator.regenerateAllTuning" )
2838 .Scope( AS_GLOBAL )
2839 .FriendlyName( _( "Update All Tuning Patterns" ) )
2840 .Tooltip( _( "Attempt to re-tune existing tuning patterns within their bounds" ) )
2842 .Parameter( wxString( wxS( "tuning_pattern" ) ) ) );
2843
2845 .Name( "pcbnew.Generator.regenerateAll" )
2846 .Scope( AS_GLOBAL )
2847 .FriendlyName( _( "Rebuild All Generators" ) )
2848 .Tooltip( _( "Rebuilds geometry of all generators" ) )
2849 .Icon( BITMAPS::refresh )
2850 .Parameter( wxString( wxS( "*" ) ) ) );
2851
2853 .Name( "pcbnew.Generator.regenerateSelected" )
2854 .Scope( AS_GLOBAL )
2855 .FriendlyName( _( "Rebuild Selected Generators" ) )
2856 .Tooltip( _( "Rebuilds geometry of selected generator(s)" ) )
2857 .Icon( BITMAPS::refresh ) );
2858
2859
2861 .Name( "pcbnew.Generator.genStartEdit" )
2862 .Scope( AS_CONTEXT ) );
2863
2865 .Name( "pcbnew.Generator.genUpdateEdit" )
2866 .Scope( AS_CONTEXT ) );
2867
2869 .Name( "pcbnew.Generator.genFinishEdit" )
2870 .Scope( AS_CONTEXT ) );
2871
2873 .Name( "pcbnew.Generator.genCacnelEdit" )
2874 .Scope( AS_CONTEXT ) );
2875
2877 .Name( "pcbnew.Generator.genRemove" )
2878 .Scope( AS_CONTEXT ) );
2879
2880
2882 .Name( "pcbnew.Generator.showManager" )
2883 .Scope( AS_GLOBAL )
2884 .FriendlyName( _( "Generators Manager" ) )
2885 .Tooltip( _( "Show a manager dialog for Generator objects" ) )
2886 .Icon( BITMAPS::pin_table ) );
2887
2888
2889// LENGTH_TUNER_TOOL
2890//
2892 .Name( "pcbnew.LengthTuner.Settings" )
2893 .ToolbarState( TOOLBAR_STATE::HIDDEN )
2894 .Scope( AS_GLOBAL )
2895 .DefaultHotkey( MD_CTRL + 'L' )
2896 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2897 .LegacyHotkeyName( "Length Tuning Settings (Modern Toolset only)" )
2898 .FriendlyName( _( "Length Tuning Settings" ) )
2899 .MenuText( _( "Length Tuning Settings..." ) )
2900 .Tooltip( _( "Displays tuning pattern properties dialog" ) )
2902
2903// Drag and drop
2905 .Name( "pcbnew.Control.DdAppendBoard" )
2906 .Scope( AS_GLOBAL ) );
2907
2909 .Name( "pcbnew.Control.ddImportFootprint" )
2910 .Scope( AS_GLOBAL ) );
2911
2913 .Name( "pcbnew.InteractiveDrawing.ddImportGraphics" )
2914 .Scope( AS_GLOBAL ) );
2915
2916// actions for footprint wizard frame
2918 .Name( "pcbnew.FpWizard.showWizards" )
2919 .Scope( AS_GLOBAL )
2920 .FriendlyName( _( "Show wizards selector" ) )
2921 .Tooltip( _( "Select wizard script to run" ) )
2922 .Icon( BITMAPS::module_wizard ) );
2923
2925 .Name( "pcbnew.FpWizard.resetWizardPrms" )
2926 .Scope( AS_GLOBAL )
2927 .FriendlyName( _( "Reset wizard parameters" ) )
2928 .Tooltip( _( "Reset wizard parameters to default" ) )
2929 .Icon( BITMAPS::reload ) );
2930
2932 .Name( "pcbnew.FpWizard.exportFpToEditor" )
2933 .Scope( AS_GLOBAL )
2934 .FriendlyName( _( "Export footprint to editor" ) )
2935 .Tooltip( _( "Export footprint to editor" ) )
2937
2939 .Name( "pcbnew.InteractiveDiffPhaseSkew" )
2940 .Scope( AS_GLOBAL )
2941 .Flags( AF_ACTIVATE )
2942 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2943 .FriendlyName( _( "Show relative skew of diff pair tracks" ) )
2944 .Tooltip( _( "Show relative skew of diff pair tracks" ) )
2946
2947
2949{
2950 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
2951 "common.Interactive.snappingModeChangedByKey" );
2952
2953 return event;
2954}
2955
2956
2958{
2959 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
2960 "pcbnew.Control.layerPairPresetChangedByKey" );
2961
2962 return event;
2963}
@ 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
@ tune_diff_pair_skew_legend
@ 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:300
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:84
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:72
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:90
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 compareBoardWithHistory
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:93
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:69
static TOOL_ACTION assignNetClass
static TOOL_ACTION packAndMoveFootprints
Pack and start moving selected footprints.
static TOOL_ACTION alignRight
static TOOL_ACTION tuneSkew
static TOOL_ACTION copyWithReference
copy command with manual reference point selection
static TOOL_ACTION layerInner26
static TOOL_ACTION genCancelEdit
static TOOL_ACTION prevFootprintTab
static TOOL_ACTION layerInner18
static TOOL_ACTION incWidth
Increase width of currently drawn line.
static TOOL_ACTION repairBoard
static TOOL_ACTION layerInner14
static TOOL_ACTION healShapes
Connect selected shapes, possibly extending or cutting them, or adding extra geometry.
static TOOL_ACTION selectPointInteractively
static TOOL_ACTION toggleExcludeFromBOM
static TOOL_ACTION trackDisplayMode
static TOOL_ACTION exportSTEP
static TOOL_ACTION showNetInspector
static TOOL_ACTION selectLayerPair
static TOOL_ACTION magneticSnapToggle
static TOOL_ACTION microwaveCreateStubArc
static TOOL_ACTION layerInner6
static TOOL_ACTION applyDesignBlockLayout
static TOOL_ACTION dragFreeAngle
static TOOL_ACTION drawEllipse
static TOOL_ACTION findByProperties
Find items by property criteria or expression.
static TOOL_ACTION clearHighlight
static TOOL_ACTION generateGerbers
static TOOL_ACTION inspectClearance
static TOOL_ACTION convertToZone
static TOOL_ACTION ddImportFootprint
static TOOL_ACTION generatorsShowManager
static 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:87
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:75
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 compareBoardWithFile
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:59
static TOOL_ACTION boardSetup
static TOOL_ACTION showEeschema
static TOOL_ACTION loadFpFromBoard
static TOOL_ACTION showDesignBlockPanel
static TOOL_ACTION decWidth
Decrease width of currently drawn line.
static TOOL_ACTION drawCenterDimension
static TOOL_ACTION toggleExcludeFromPosFiles
static TOOL_ACTION zoneUnfillAll
static TOOL_ACTION pasteFootprint
static TOOL_ACTION zoneFillDirty
static TOOL_ACTION cancelCurrentItem
static TOOL_ACTION chamferLines
Chamfer (i.e. adds a straight line) all selected straight lines by a user defined setback.
static TOOL_ACTION appendBoard
static TOOL_ACTION netColorModeCycle
static TOOL_ACTION selectSameSheet
Select all components on the same sheet as the selected footprint.
Definition pcb_actions.h:96
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:78
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 closeFootprintTab
static TOOL_ACTION zoneDisplayOutline
static TOOL_ACTION ratsnestLineMode
static TOOL_ACTION showFootprintAssociations
static TOOL_ACTION layerInner19
static TOOL_ACTION layerInner9
static TOOL_ACTION nextFootprintTab
static TOOL_ACTION 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:62
static TOOL_ACTION spacingIncrease
static TOOL_ACTION layerInner30
static TOOL_ACTION boardReannotate
static TOOL_ACTION subtractPolygons
Subtract polygons from other polygons.
static TOOL_ACTION layerTop
static TOOL_ACTION updateDesignBlockFromSelection
static TOOL_ACTION cycleRouterMode
static TOOL_ACTION regenerateSelected
static TOOL_ACTION convertToArc
static TOOL_ACTION layerInner4
static TOOL_ACTION repairFootprint
static TOOL_ACTION changeTrackLayerNext
static TOOL_ACTION flip
Flipping of selected objects.
static TOOL_ACTION exportFootprints
static TOOL_ACTION alignCenterX
static TOOL_ACTION placeFootprint
static TOOL_ACTION pointEditorAddCorner
static TOOL_ACTION routeSingleTrack
Activation of the Push and Shove router.
static TOOL_ACTION layerInner13
static TOOL_ACTION editVertices
Edit polygon vertices in a table.
static TOOL_ACTION layerInner21
static TOOL_ACTION selectItemInteractively
Selection of reference points/items.
static TOOL_ACTION createArray
Tool for creating an array of objects.
static TOOL_ACTION boardStatistics
static TOOL_ACTION showDiffPhaseSkew
Display of phase skew between differential pair tracks.
static TOOL_ACTION saveFpToBoard
static TOOL_ACTION compareFpLibraryWithFile
static TOOL_ACTION deselectNet
Remove all connections belonging to a single net from the active selection.
Definition pcb_actions.h:81
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.
Definition pcb_actions.h:99
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:75
Represent a single user action.
Generic, UI-independent tool event.
Definition tool_event.h:167
a few functions useful in geometry calculations.
@ DEG45
45 Degree only
@ DIRECT
Unconstrained point-to-point.
@ DEG90
90 Degree only
KIID niluuid(0)
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:56
@ In22_Cu
Definition layer_ids.h:83
@ In11_Cu
Definition layer_ids.h:72
@ In29_Cu
Definition layer_ids.h:90
@ In30_Cu
Definition layer_ids.h:91
@ In17_Cu
Definition layer_ids.h:78
@ In9_Cu
Definition layer_ids.h:70
@ In19_Cu
Definition layer_ids.h:80
@ In7_Cu
Definition layer_ids.h:68
@ In28_Cu
Definition layer_ids.h:89
@ In26_Cu
Definition layer_ids.h:87
@ B_Cu
Definition layer_ids.h:61
@ In21_Cu
Definition layer_ids.h:82
@ In23_Cu
Definition layer_ids.h:84
@ In15_Cu
Definition layer_ids.h:76
@ In2_Cu
Definition layer_ids.h:63
@ In10_Cu
Definition layer_ids.h:71
@ In4_Cu
Definition layer_ids.h:65
@ In16_Cu
Definition layer_ids.h:77
@ In24_Cu
Definition layer_ids.h:85
@ In1_Cu
Definition layer_ids.h:62
@ In13_Cu
Definition layer_ids.h:74
@ In8_Cu
Definition layer_ids.h:69
@ In14_Cu
Definition layer_ids.h:75
@ In12_Cu
Definition layer_ids.h:73
@ In27_Cu
Definition layer_ids.h:88
@ In6_Cu
Definition layer_ids.h:67
@ In5_Cu
Definition layer_ids.h:66
@ In3_Cu
Definition layer_ids.h:64
@ In20_Cu
Definition layer_ids.h:81
@ F_Cu
Definition layer_ids.h:60
@ In18_Cu
Definition layer_ids.h:79
@ In25_Cu
Definition layer_ids.h:86
@ RM_MarkObstacles
Ignore collisions, mark obstacles.
@ RM_Walkaround
Only walk around.
@ RM_Shove
Only shove.
@ PNS_MODE_ROUTE_SINGLE
Definition pns_router.h:68
@ PNS_MODE_ROUTE_DIFF_PAIR
Definition pns_router.h:69
@ PNS_MODE_TUNE_DIFF_PAIR
Definition pns_router.h:71
@ PNS_MODE_TUNE_SINGLE
Definition pns_router.h:70
@ PNS_MODE_TUNE_DIFF_PAIR_SKEW
Definition pns_router.h:72
@ DM_ANY
Definition pns_router.h:82
#define _(s)
@ SIMILAR
Add a new zone with the same settings as an existing one.
Definition pcb_actions.h:34
@ CUTOUT
Make a cutout to an existing zone.
Definition pcb_actions.h:33
@ GRAPHIC_POLYGON
Definition pcb_actions.h:35
@ ADD
Add a new zone/keepout with fresh settings.
Definition pcb_actions.h:32
@ TOGGLE
Action is a toggle button on the toolbar.
Definition tool_action.h:60
@ HIDDEN
Action is hidden from the toolbar.
Definition tool_action.h:59
@ AS_GLOBAL
Global action (toolbar/main menu event, global shortcut)
Definition tool_action.h:45
@ AS_CONTEXT
Action belongs to a particular tool (i.e. a part of a pop-up menu)
Definition tool_action.h:43
@ AF_ACTIVATE
Action activates a tool.
Definition tool_action.h:52
@ AF_NOTIFY
Action is a notification (it is by default passed to all tools)
Definition tool_action.h:53
@ AF_NONE
Definition tool_action.h:51
@ TA_ACTION
Tool action (allows one to control tools).
Definition tool_event.h:108
@ MD_ALT
Definition tool_event.h:141
@ MD_CTRL
Definition tool_event.h:140
@ MD_SHIFT
Definition tool_event.h:139
@ TC_MESSAGE
Definition tool_event.h:54
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:683