KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_actions.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2013-2023 CERN
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 * @author Maciej Suminski <[email protected]>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, you may find one here:
20 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21 * or you may search the http://www.gnu.org website for the version 2 license,
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
26#include "pcb_actions.h"
27#include "tool/tool_action.h"
28#include "tool/tool_event.h"
29#include <pcbnew_id.h>
30#include <bitmaps.h>
31#include <layer_ids.h>
34#include <pcb_reference_image.h>
35#include <tool/tool_manager.h>
38#include <router/pns_router.h>
41
42// Actions, being statically-defined, require specialized I18N handling. We continue to
43// use the _() macro so that string harvesting by the I18N framework doesn't have to be
44// specialized, but we don't translate on initialization and instead do it in the getters.
45
46#undef _
47#define _(s) s
48
49// clang-format off
50
51// CONVERT_TOOL
52//
54 .Name( "pcbnew.Convert.convertToPoly" )
55 .Scope( AS_GLOBAL )
56 .FriendlyName( _( "Create Polygon from Selection..." ) )
57 .Tooltip( _( "Creates a graphic polygon from the selection" ) )
59
61 .Name( "pcbnew.Convert.convertToZone" )
62 .Scope( AS_GLOBAL )
63 .FriendlyName( _( "Create Zone from Selection..." ) )
64 .Tooltip( _( "Creates a copper zone from the selection" ) )
65 .Icon( BITMAPS::add_zone ) );
66
68 .Name( "pcbnew.Convert.convertToKeepout" )
69 .Scope( AS_GLOBAL )
70 .FriendlyName( _( "Create Rule Area from Selection..." ) )
71 .Tooltip( _( "Creates a rule area from the selection" ) )
73
75 .Name( "pcbnew.Convert.convertToLines" )
76 .Scope( AS_GLOBAL )
77 .FriendlyName( _( "Create Lines from Selection..." ) )
78 .Tooltip( _( "Creates graphic lines from the selection" ) )
79 .Icon( BITMAPS::add_line ) );
80
82 .Name( "pcbnew.Convert.convertToArc" )
83 .Scope( AS_GLOBAL )
84 .FriendlyName( _( "Create Arc from Selection" ) )
85 .Tooltip( _( "Creates an arc from the selected line segment" ) )
86 .Icon( BITMAPS::add_arc ) );
87
89 .Name( "pcbnew.Convert.convertToTracks" )
90 .Scope( AS_GLOBAL )
91 .FriendlyName( _( "Create Tracks from Selection" ) )
92 .Tooltip( _( "Creates tracks from the selected graphic lines" ) )
93 .Icon( BITMAPS::add_tracks ) );
94
96 .Name( "pcbnew.Convert.outsetItems" )
97 .Scope( AS_GLOBAL )
98 .FriendlyName( _( "Create Outsets from Selection..." ) )
99 .Tooltip( _( "Create outset lines from the selected item" ) )
101
102
103// DRAWING_TOOL
104//
106 .Name( "pcbnew.InteractiveDrawing.line" )
107 .Scope( AS_GLOBAL )
108 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'L' )
109 .LegacyHotkeyName( "Draw Line" )
110 .FriendlyName( _( "Draw Lines" ) )
111 .ToolbarState( TOOLBAR_STATE::TOGGLE )
113 .Flags( AF_ACTIVATE ) );
114
116 .Name( "pcbnew.InteractiveDrawing.graphicPolygon" )
117 .Scope( AS_GLOBAL )
118 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'P' )
119 .LegacyHotkeyName( "Draw Graphic Polygon" )
120 .FriendlyName( _( "Draw Polygons" ) )
121 .ToolbarState( TOOLBAR_STATE::TOGGLE )
123 .Flags( AF_ACTIVATE )
124 .Parameter( ZONE_MODE::GRAPHIC_POLYGON ) );
125
127 .Name( "pcbnew.InteractiveDrawing.rectangle" )
128 .Scope( AS_GLOBAL )
129 .FriendlyName( _( "Draw Rectangles" ) )
130 .ToolbarState( TOOLBAR_STATE::TOGGLE )
132 .Flags( AF_ACTIVATE ) );
133
135 .Name( "pcbnew.InteractiveDrawing.circle" )
136 .Scope( AS_GLOBAL )
137 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'C' )
138 .LegacyHotkeyName( "Draw Circle" )
139 .FriendlyName( _( "Draw Circles" ) )
140 .ToolbarState( TOOLBAR_STATE::TOGGLE )
141 .Icon( BITMAPS::add_circle )
142 .Flags( AF_ACTIVATE ) );
143
145 .Name( "pcbnew.InteractiveDrawing.arc" )
146 .Scope( AS_GLOBAL )
147 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'A' )
148 .LegacyHotkeyName( "Draw Arc" )
149 .FriendlyName( _( "Draw Arcs" ) )
150 .ToolbarState( TOOLBAR_STATE::TOGGLE )
151 .Icon( BITMAPS::add_arc )
152 .Flags( AF_ACTIVATE ) );
153
155 .Name( "pcbnew.InteractiveDrawing.bezier" )
156 .Scope( AS_GLOBAL )
157 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'B' )
158 .FriendlyName( _( "Draw Bezier Curve" ) )
159 .ToolbarState( TOOLBAR_STATE::TOGGLE )
160 .Icon( BITMAPS::add_bezier )
161 .Flags( AF_ACTIVATE ) );
162
164 .Name( "pcbnew.InteractiveDrawing.barcode" )
165 .Scope( AS_GLOBAL )
166 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'B' )
167 .LegacyHotkeyName( "Add Barcode" )
168 .FriendlyName( _( "Add Barcode" ) )
169 .Tooltip( _( "Add a barcode" ) )
170 .Icon( BITMAPS::add_barcode )
171 .Flags( AF_ACTIVATE ) );
172
173
175 .Name( "pcbnew.InteractiveDrawing.placeCharacteristics" )
176 .Scope( AS_GLOBAL )
177 .LegacyHotkeyName( "Add Board Characteristics" )
178 .FriendlyName( _( "Add Board Characteristics" ) )
179 .Tooltip( _( "Add a board characteristics table on a graphic layer" ) )
180 .ToolbarState( TOOLBAR_STATE::TOGGLE )
181 .Flags( AF_ACTIVATE ) );
182
184 .Name( "pcbnew.InteractiveDrawing.placeStackup" )
185 .Scope( AS_GLOBAL )
186 .LegacyHotkeyName( "Add Stackup Table" )
187 .FriendlyName( _( "Add Stackup Table" ) )
188 .Tooltip( _( "Add a board stackup table on a graphic layer" ) )
189 .ToolbarState( TOOLBAR_STATE::TOGGLE )
190 .Flags( AF_ACTIVATE ) );
191
193 .Name( "pcbnew.InteractiveDrawing.placePoint" )
194 .Scope( AS_GLOBAL )
195 .FriendlyName( _( "Place Point" ) )
196 .Tooltip( _( "Add reference/snap points" ) )
197 .ToolbarState( TOOLBAR_STATE::TOGGLE )
198 .Icon( BITMAPS::add_point )
199 .Flags( AF_ACTIVATE ) );
200
202 .Name( "pcbnew.InteractiveDrawing.placeReferenceImage" )
203 .Scope( AS_GLOBAL )
204 .FriendlyName( _( "Place Reference Images" ) )
205 .Tooltip( _( "Add bitmap images to be used as reference (images will not be included in any output)" ) )
206 .ToolbarState( TOOLBAR_STATE::TOGGLE )
207 .Icon( BITMAPS::image )
208 .Flags( AF_ACTIVATE )
209 .Parameter<PCB_REFERENCE_IMAGE*>( nullptr ) );
210
212 .Name( "pcbnew.InteractiveDrawing.text" )
213 .Scope( AS_GLOBAL )
214 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'T' )
215 .LegacyHotkeyName( "Add Text" )
216 .FriendlyName( _( "Draw Text" ) )
217 .ToolbarState( TOOLBAR_STATE::TOGGLE )
218 .Icon( BITMAPS::text )
219 .Flags( AF_ACTIVATE ) );
220
222 .Name( "pcbnew.InteractiveDrawing.textbox" )
223 .Scope( AS_GLOBAL )
224 .FriendlyName( _( "Draw Text Boxes" ) )
225 .ToolbarState( TOOLBAR_STATE::TOGGLE )
226 .Icon( BITMAPS::add_textbox )
227 .Flags( AF_ACTIVATE ) );
228
230 .Name( "pcbnew.InteractiveDrawing.drawTable" )
231 .Scope( AS_GLOBAL )
232 .FriendlyName( _( "Draw Tables" ) )
233 .ToolbarState( TOOLBAR_STATE::TOGGLE )
234 .Icon( BITMAPS::table )
235 .Flags( AF_ACTIVATE ) );
236
238 .Name( "pcbnew.lengthTuner.SpacingIncrease" )
239 .Scope( AS_GLOBAL )
240 .DefaultHotkey( '1' )
241 .LegacyHotkeyName( "Increase meander spacing by one step." )
242 .FriendlyName( _( "Increase Spacing" ) )
243 .Tooltip( _( "Increase tuning pattern spacing by one step." ) )
245
247 .Name( "pcbnew.lengthTuner.SpacingDecrease" )
248 .Scope( AS_GLOBAL )
249 .DefaultHotkey( '2' )
250 .LegacyHotkeyName( "Decrease meander spacing by one step." )
251 .FriendlyName( _( "Decrease Spacing" ) )
252 .Tooltip( _( "Decrease tuning pattern spacing by one step." ) )
254
256 .Name( "pcbnew.lengthTuner.AmplIncrease" )
257 .Scope( AS_GLOBAL )
258 .DefaultHotkey( '3' )
259 .LegacyHotkeyName( "Increase meander amplitude by one step." )
260 .FriendlyName( _( "Increase Amplitude" ) )
261 .Tooltip( _( "Increase tuning pattern amplitude by one step." ) )
263
265 .Name( "pcbnew.lengthTuner.AmplDecrease" )
266 .Scope( AS_GLOBAL )
267 .DefaultHotkey( '4' )
268 .LegacyHotkeyName( "Decrease meander amplitude by one step." )
269 .FriendlyName( _( "Decrease Amplitude" ) )
270 .Tooltip( _( "Decrease tuning pattern amplitude by one step." ) )
272
273
275 .Name( "pcbnew.InteractiveDrawing.alignedDimension" )
276 .Scope( AS_GLOBAL )
277 .LegacyHotkeyName( "Add Dimension" )
278 .FriendlyName( _( "Draw Aligned Dimensions" ) )
279 .ToolbarState( TOOLBAR_STATE::TOGGLE )
281 .Flags( AF_ACTIVATE ) );
282
284 .Name( "pcbnew.InteractiveDrawing.centerDimension" )
285 .Scope( AS_GLOBAL )
286 .FriendlyName( _( "Draw Center Dimensions" ) )
287 .ToolbarState( TOOLBAR_STATE::TOGGLE )
289 .Flags( AF_ACTIVATE ) );
290
292 .Name( "pcbnew.InteractiveDrawing.radialDimension" )
293 .Scope( AS_GLOBAL )
294 .FriendlyName( _( "Draw Radial Dimensions" ) )
295 .ToolbarState( TOOLBAR_STATE::TOGGLE )
297 .Flags( AF_ACTIVATE ) );
298
300 .Name( "pcbnew.InteractiveDrawing.orthogonalDimension" )
301 .Scope( AS_GLOBAL )
302 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'H' )
303 .FriendlyName( _( "Draw Orthogonal Dimensions" ) )
304 .ToolbarState( TOOLBAR_STATE::TOGGLE )
306 .Flags( AF_ACTIVATE ) );
307
309 .Name( "pcbnew.InteractiveDrawing.leader" )
310 .Scope( AS_GLOBAL )
311 .FriendlyName( _( "Draw Leaders" ) )
312 .ToolbarState( TOOLBAR_STATE::TOGGLE )
313 .Icon( BITMAPS::add_leader )
314 .Flags( AF_ACTIVATE ) );
315
317 .Name( "pcbnew.InteractiveDrawing.zone" )
318 .Scope( AS_GLOBAL )
319#ifdef __WXOSX_MAC__
320 .DefaultHotkey( MD_ALT + 'Z' )
321#else
322 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'Z' )
323#endif
324 .LegacyHotkeyName( "Add Filled Zone" )
325 .FriendlyName( _( "Draw Filled Zones" ) )
326 .ToolbarState( TOOLBAR_STATE::TOGGLE )
327 .Icon( BITMAPS::add_zone )
328 .Flags( AF_ACTIVATE )
329 .Parameter( ZONE_MODE::ADD ) );
330
332 .Name( "pcbnew.InteractiveDrawing.via" )
333 .Scope( AS_GLOBAL )
334 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'X' )
335 .LegacyHotkeyName( "Add Vias" )
336 .FriendlyName( _( "Place Vias" ) )
337 .Tooltip( _( "Place free-standing vias" ) )
338 .ToolbarState( TOOLBAR_STATE::TOGGLE )
339 .Icon( BITMAPS::add_via )
340 .Flags( AF_ACTIVATE ) );
341
343 .Name( "pcbnew.InteractiveDrawing.ruleArea" )
344 .Scope( AS_GLOBAL )
345 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'K' )
346 .LegacyHotkeyName( "Add Keepout Area" )
347 .FriendlyName( _( "Draw Rule Areas" ) )
348 .ToolbarState( TOOLBAR_STATE::TOGGLE )
350 .Flags( AF_ACTIVATE )
351 .Parameter( ZONE_MODE::ADD ) );
352
354 .Name( "pcbnew.InteractiveDrawing.zoneCutout" )
355 .Scope( AS_GLOBAL )
356 .DefaultHotkey( MD_SHIFT + 'C' )
357 .LegacyHotkeyName( "Add a Zone Cutout" )
358 .FriendlyName( _( "Add a Zone Cutout" ) )
359 .Tooltip( _( "Add a cutout to an existing zone or rule area" ) )
360 .ToolbarState( TOOLBAR_STATE::TOGGLE )
362 .Flags( AF_ACTIVATE )
363 .Parameter( ZONE_MODE::CUTOUT ) );
364
366 .Name( "pcbnew.InteractiveDrawing.similarZone" )
367 .Scope( AS_GLOBAL )
368 .DefaultHotkey( MD_CTRL + MD_SHIFT + '.' )
369 .LegacyHotkeyName( "Add a Similar Zone" )
370 .FriendlyName( _( "Add a Similar Zone" ) )
371 .Tooltip( _( "Add a zone with the same settings as an existing zone" ) )
372 .Icon( BITMAPS::add_zone )
373 .Flags( AF_ACTIVATE )
374 .Parameter( ZONE_MODE::SIMILAR ) );
375
377 .Name( "pcbnew.InteractiveDrawing.placeImportedGraphics" )
378 .Scope( AS_GLOBAL )
379 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'F' )
380 .LegacyHotkeyName( "Place DXF" )
381 .FriendlyName( _( "Import Graphics..." ) )
382 .Tooltip( _( "Import 2D drawing file" ) )
384 .Flags( AF_ACTIVATE ) );
385
387 .Name( "pcbnew.InteractiveDrawing.setAnchor" )
388 .Scope( AS_GLOBAL )
389 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'N' )
390 .LegacyHotkeyName( "Place the Footprint Anchor" )
391 .FriendlyName( _( "Place the Footprint Anchor" ) )
392 .Tooltip( _( "Set the anchor point of the footprint" ) )
393 .ToolbarState( TOOLBAR_STATE::TOGGLE )
394 .Icon( BITMAPS::anchor )
395 .Flags( AF_ACTIVATE ) );
396
398 .Name( "pcbnew.InteractiveDrawing.incWidth" )
399 .Scope( AS_CONTEXT )
400 .DefaultHotkey( MD_CTRL + '+' )
401 .LegacyHotkeyName( "Increase Line Width" )
402 .FriendlyName( _( "Increase Line Width" ) ) );
403
405 .Name( "pcbnew.InteractiveDrawing.decWidth" )
406 .Scope( AS_CONTEXT )
407 .DefaultHotkey( MD_CTRL + '-' )
408 .LegacyHotkeyName( "Decrease Line Width" )
409 .FriendlyName( _( "Decrease Line Width" ) ) );
410
412 .Name( "pcbnew.InteractiveDrawing.arcPosture" )
413 .Scope( AS_CONTEXT )
414 .DefaultHotkey( '/' )
415 .LegacyHotkeyName( "Switch Track Posture" )
416 .FriendlyName( _( "Switch Arc Posture" ) ) );
417
419 .Name( "pcbnew.InteractiveDrawing.changeDimensionArrows" )
420 .Scope( AS_CONTEXT )
421 .FriendlyName( "Switch Dimension Arrows" )
422 .Tooltip( "Switch between inward and outward dimension arrows" ) );
423
424
426 .Name( "common.Control.magneticSnapActiveLayer" )
427 .Scope( AS_GLOBAL )
428 .FriendlyName( _( "Snap to Objects on the Active Layer Only" ) )
429 .Tooltip( _( "Enables snapping to objects on the active layer only" ) ) );
430
432 .Name( "common.Control.magneticSnapAllLayers" )
433 .Scope( AS_GLOBAL )
434 .FriendlyName( _( "Snap to Objects on All Layers" ) )
435 .Tooltip( _( "Enables snapping to objects on all visible layers" ) ) );
436
438 .Name( "common.Control.magneticSnapToggle" )
439 .Scope( AS_GLOBAL )
440 .DefaultHotkey( MD_SHIFT + 'S' )
441 .FriendlyName( _( "Toggle Snapping Between Active and All Layers" ) )
442 .Tooltip( _( "Toggles between snapping on all visible layers and only the active area" ) ) );
443
445 .Name( "pcbnew.InteractiveDrawing.deleteLastPoint" )
446 .Scope( AS_CONTEXT )
447 .DefaultHotkey( WXK_BACK )
448 .FriendlyName( _( "Delete Last Point" ) )
449 .Tooltip( _( "Delete the last point added to the current item" ) )
450 .Icon( BITMAPS::undo ) );
451
453 .Name( "pcbnew.InteractiveDrawing.closeOutline" )
454 .Scope( AS_CONTEXT )
455 .FriendlyName( _( "Close Outline" ) )
456 .Tooltip( _( "Close the in progress outline" ) )
457 .Icon( BITMAPS::checked_ok ) );
458
459// DRC
460//
462 .Name( "pcbnew.DRCTool.runDRC" )
463 .Scope( AS_GLOBAL )
464 .FriendlyName( _( "Design Rules Checker" ) )
465 .Tooltip( _( "Show the design rules checker window" ) )
466 .Icon( BITMAPS::erc ) );
467
468// PCB_DESIGN_BLOCK_CONTROL
470 .Name( "pcbnew.InteractiveDrawing.placeDesignBlock" )
471 .Scope( AS_GLOBAL )
472 .DefaultHotkey( MD_SHIFT + 'B' )
473 .FriendlyName( _( "Place Design Block" ) )
474 .Tooltip( _( "Add selected design block to current board" ) )
476 .Flags( AF_ACTIVATE )
477 .Parameter<DESIGN_BLOCK*>( nullptr ) );
478
480 .Name( "pcbnew.InteractiveDrawing.placeLinkedDesignBlock" )
481 .Scope( AS_GLOBAL )
482 .FriendlyName( _( "Place Linked Design Block" ) )
483 .Tooltip( _( "Place design block linked to selected group" ) )
485 .Flags( AF_ACTIVATE )
486 .Parameter<bool*>( nullptr ) );
487
489 .Name( "pcbnew.InteractiveDrawing.applyDesignBlockLayout" )
490 .Scope( AS_GLOBAL )
491 .FriendlyName( _( "Apply Design Block Layout" ) )
492 .Tooltip( _( "Apply linked design block layout to selected group" ) )
494 .Flags( AF_ACTIVATE ) );
495
497 .Name( "pcbnew.InteractiveDrawing.saveToLinkedDesignBlock" )
498 .Scope( AS_GLOBAL )
499 .FriendlyName( _( "Save to Linked Design Block" ) )
500 .Tooltip( _( "Save selected group to linked design block" ) )
502 .Flags( AF_ACTIVATE ) );
503
505 .Name( "pcbnew.PcbDesignBlockControl.showDesignBlockPanel" )
506 .Scope( AS_GLOBAL )
507 .FriendlyName( _( "Design Blocks" ) )
508 .Tooltip( _( "Show/hide design blocks library" ) )
509 .Icon( BITMAPS::search_tree ) );
510
512 .Name( "pcbnew.PcbDesignBlockControl.saveBoardAsDesignBlock" )
513 .Scope( AS_GLOBAL )
514 .FriendlyName( _( "Save Current Board as Design Block..." ) )
515 .Tooltip( _( "Create a new design block from the current board" ) )
516 .Icon( BITMAPS::new_component ) );
517
519 .Name( "pcbnew.PcbDesignBlockControl.saveSelectionAsDesignBlock" )
520 .Scope( AS_GLOBAL )
521 .FriendlyName( _( "Save Selection as Design Block..." ) )
522 .Tooltip( _( "Create a new design block from the current selection" ) )
523 .Icon( BITMAPS::new_component ) );
524
526 .Name( "pcbnew.PcbDesignBlockControl.saveBoardToDesignBlock" )
527 .Scope( AS_GLOBAL )
528 .FriendlyName( _( "Save Current Board to Design Block..." ) )
529 .Tooltip( _( "Add current board to design block" ) )
530 .Icon( BITMAPS::save ) );
531
533 .Name( "pcbnew.PcbDesignBlockControl.saveSelectionToDesignBlock" )
534 .Scope( AS_GLOBAL )
535 .FriendlyName( _( "Save Selection to Design Block..." ) )
536 .Tooltip( _( "Add current selection to design block" ) )
537 .Icon( BITMAPS::save ) );
538
540 .Name( "pcbnew.PcbDesignBlockControl.saveDeleteDesignBlock" )
541 .Scope( AS_GLOBAL )
542 .FriendlyName( _( "Delete Design Block" ) )
543 .Tooltip( _( "Remove the selected design block from its library" ) )
544 .Icon( BITMAPS::trash ) );
545
547 .Name( "pcbnew.PcbDesignBlockControl.editDesignBlockProperties" )
548 .Scope( AS_GLOBAL )
549 .FriendlyName( _( "Properties..." ) )
550 .Tooltip( _( "Edit properies of design block" ) )
551 .Icon( BITMAPS::edit ) );
552
553// EDIT_TOOL
554//
556 .Name( "pcbnew.EditorControl.EditFpInFpEditor" )
557 .Scope( AS_GLOBAL )
558 .DefaultHotkey( MD_CTRL + 'E' )
559 .LegacyHotkeyName( "Edit with Footprint Editor" )
560 .FriendlyName( _( "Open in Footprint Editor" ) )
561 .Icon( BITMAPS::module_editor ) );
562
564 .Name( "pcbnew.EditorControl.EditLibFpInFpEditor" )
565 .Scope( AS_GLOBAL )
566 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
567 .FriendlyName( _( "Edit Library Footprint..." ) )
568 .Icon( BITMAPS::module_editor ) );
569
571 .Name( "pcbnew.InteractiveEdit.FindMove" )
572 .Scope( AS_GLOBAL )
573 .DefaultHotkey( 'T' )
574 .LegacyHotkeyName( "Get and Move Footprint" )
575 .FriendlyName( _( "Get and Move Footprint" ) )
576 .Tooltip( _( "Selects a footprint by reference designator and places it under the cursor for moving" ) )
577 .Icon( BITMAPS::move )
578 .Flags( AF_ACTIVATE ) );
579
581 .Name( "pcbnew.InteractiveMove.move" )
582 .Scope( AS_GLOBAL )
583 .DefaultHotkey( 'M' )
584 .LegacyHotkeyName( "Move Item" )
585 .FriendlyName( _( "Move" ) )
586 .Icon( BITMAPS::move )
587 .Flags( AF_ACTIVATE )
589
591 .Name( "pcbnew.InteractiveMove.moveIndividually" )
592 .Scope( AS_GLOBAL )
593 .DefaultHotkey( MD_CTRL + 'M' )
594 .FriendlyName( _( "Move Individually" ) )
595 .Tooltip( _( "Moves the selected items one-by-one" ) )
596 .Icon( BITMAPS::move )
597 .Flags( AF_ACTIVATE )
599
601 .Name( "pcbnew.InteractiveMove.moveWithReference" )
602 .Scope( AS_GLOBAL )
603 .FriendlyName( _( "Move with Reference" ) )
604 .Tooltip( _( "Moves the selected item(s) with a specified starting point" ) )
605 .Icon( BITMAPS::move )
606 .Flags( AF_ACTIVATE )
608
610 .Name( "pcbnew.InteractiveMove.copyWithReference" )
611 .Scope( AS_GLOBAL )
612 .FriendlyName( _( "Copy with Reference" ) )
613 .Tooltip( _( "Copy selected item(s) to clipboard with a specified starting point" ) )
614 .Icon( BITMAPS::copy )
615 .Flags( AF_ACTIVATE ) );
616
618 .Name( "pcbnew.InteractiveEdit.duplicateIncrementPads" )
619 .Scope( AS_GLOBAL )
620 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'D' )
621 .LegacyHotkeyName( "Duplicate Item and Increment" )
622 .FriendlyName( _( "Duplicate and Increment" ) )
623 .Tooltip( _( "Duplicates the selected item(s), incrementing pad numbers" ) )
624 .Icon( BITMAPS::duplicate ) );
625
627 .Name( "pcbnew.InteractiveEdit.moveExact" )
628 .Scope( AS_GLOBAL )
629 .DefaultHotkey( MD_SHIFT + 'M' )
630 .LegacyHotkeyName( "Move Item Exactly" )
631 .FriendlyName( _( "Move Exactly..." ) )
632 .Tooltip( _( "Moves the selected item(s) by an exact amount" ) )
633 .Icon( BITMAPS::move_exactly ) );
634
636 .Name( "pcbnew.InteractiveEdit.moveCorner" )
637 .Scope( AS_GLOBAL )
638 .FriendlyName( _( "Move Corner To..." ) )
639 .Tooltip( _( "Move the active corner to an exact location" ) )
640 .Icon( BITMAPS::move_exactly ) );
641
643 .Name( "pcbnew.InteractiveEdit.moveMidpoint" )
644 .Scope( AS_GLOBAL )
645 .FriendlyName( _( "Move Midpoint To..." ) )
646 .Tooltip( _( "Move the active midpoint to an exact location" ) )
647 .Icon( BITMAPS::move_exactly ) );
648
650 .Name( "pcbnew.InteractiveEdit.rotateCw" )
651 .Scope( AS_GLOBAL )
652 .DefaultHotkey( MD_SHIFT + 'R' )
653 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
654 .LegacyHotkeyName( "Rotate Item Clockwise (Modern Toolset only)" )
655 .FriendlyName( _( "Rotate Clockwise" ) )
656 .Icon( BITMAPS::rotate_cw )
657 .Flags( AF_NONE )
658 .Parameter( -1 ) );
659
661 .Name( "pcbnew.InteractiveEdit.rotateCcw" )
662 .Scope( AS_GLOBAL )
663 .DefaultHotkey( 'R' )
664 .LegacyHotkeyName( "Rotate Item" )
665 .FriendlyName( _( "Rotate Counterclockwise" ) )
666 .Icon( BITMAPS::rotate_ccw )
667 .Flags( AF_NONE )
668 .Parameter( 1 ) );
669
671 .Name( "pcbnew.InteractiveEdit.flip" )
672 .Scope( AS_GLOBAL )
673 .DefaultHotkey( 'F' )
674 .LegacyHotkeyName( "Flip Item" )
675 .FriendlyName( _( "Change Side / Flip" ) )
676 .Tooltip( _( "Flips selected item(s) to opposite side of board" ) )
677 .Icon( BITMAPS::swap_layer ) );
678
680 .Name( "pcbnew.InteractiveEdit.mirrorHoriontally" )
681 .Scope( AS_GLOBAL )
682 .FriendlyName( _( "Mirror Horizontally" ) )
683 .Tooltip( _( "Mirrors selected item(s) across the Y axis" ) )
684 .Icon( BITMAPS::mirror_h ) );
685
687 .Name( "pcbnew.InteractiveEdit.mirrorVertically" )
688 .Scope( AS_GLOBAL )
689 .FriendlyName( _( "Mirror Vertically" ) )
690 .Tooltip( _( "Mirrors selected item(s) across the X axis" ) )
691 .Icon( BITMAPS::mirror_v ) );
692
694 .Name( "pcbnew.InteractiveEdit.swap" )
695 .Scope( AS_GLOBAL )
696 .DefaultHotkey( MD_ALT + 'S' )
697 .FriendlyName( _( "Swap" ) )
698 .Tooltip( _( "Swap positions of selected items" ) )
699 .Icon( BITMAPS::swap ) );
700
702 .Name( "pcbnew.InteractiveEdit.swapPadNets" )
703 .Scope( AS_GLOBAL )
704 .FriendlyName( _( "Swap Pad Nets" ) )
705 .Tooltip( _( "Swap nets between two selected pads and their connected copper" ) )
706 .Icon( BITMAPS::swap ) );
707
709 .Name( "pcbnew.InteractiveEdit.swapGateNets" )
710 .Scope( AS_GLOBAL )
711 .FriendlyName( _( "Swap Gate Nets" ) )
712 .Tooltip( _( "Swap nets between gates of a footprint and their connected copper" ) )
713 .Parameter<wxString>( wxString() )
714 .Icon( BITMAPS::swap ) );
715
717 .Name( "pcbnew.InteractiveEdit.packAndMoveFootprints" )
718 .Scope( AS_GLOBAL )
719 .DefaultHotkey( 'P' )
720 .FriendlyName( _( "Pack and Move Footprints" ) )
721 .Tooltip( _( "Sorts selected footprints by reference, packs based on size and initiates movement" ) )
722 .Icon( BITMAPS::pack_footprints ) );
723
725 .Name( "pcbnew.InteractiveEdit.skip" )
726 .Scope( AS_CONTEXT )
727 .DefaultHotkey( WXK_TAB )
728 .FriendlyName( _( "Skip" ) )
729 .Tooltip( _( "Skip to next item" ) )
730 .Icon( BITMAPS::right ) );
731
733 .Name( "pcbnew.InteractiveEdit.changeTrackWidth" )
734 .Scope( AS_GLOBAL )
735 .FriendlyName( _( "Change Track Width" ) )
736 .Tooltip( _( "Updates selected track & via sizes" ) ) );
737
739 .Name( "pcbnew.Control.changeTrackLayerNext" )
740 .Scope( AS_GLOBAL )
741 .DefaultHotkey( MD_CTRL + '+' )
742 .FriendlyName( "Switch Track to Next Layer" )
743 .Tooltip( _( "Switch track to next enabled copper layer" ) ) );
744
746 .Name( "pcbnew.Control.changeTrackLayerPrev" )
747 .Scope( AS_GLOBAL )
748 .DefaultHotkey( MD_CTRL + '-' )
749 .FriendlyName( "Switch Track to Previous Layer" )
750 .Tooltip( _( "Switch track to previous enabled copper layer" ) ) );
751
753 .Name( "pcbnew.InteractiveEdit.filletTracks" )
754 .Scope( AS_GLOBAL )
755 .FriendlyName( _( "Fillet Tracks" ) )
756 .Tooltip( _( "Adds arcs tangent to the selected straight track segments" ) ) );
757
759 .Name( "pcbnew.InteractiveEdit.filletLines" )
760 .Scope( AS_GLOBAL )
761 .FriendlyName( _( "Fillet Lines..." ) )
762 .Tooltip( _( "Adds arcs tangent to the selected lines" ) )
763 .Icon( BITMAPS::fillet ) );
764
766 .Name( "pcbnew.InteractiveEdit.chamferLines" )
767 .Scope( AS_GLOBAL )
768 .FriendlyName( _( "Chamfer Lines..." ) )
769 .Tooltip( _( "Cut away corners between selected lines" ) )
770 .Icon( BITMAPS::chamfer ) );
771
773 .Name( "pcbnew.InteractiveEdit.dogboneCorners" )
774 .Scope( AS_GLOBAL )
775 .FriendlyName( _( "Dogbone Corners..." ) )
776 .Tooltip( _( "Add dogbone corners to selected lines" ) ) );
777
779 .Name( "pcbnew.InteractiveEdit.simplifyPolygons" )
780 .Scope( AS_GLOBAL )
781 .FriendlyName( _( "Simplify Polygons" ) )
782 .Tooltip( _( "Simplify polygon outlines, removing superfluous points" ) ) );
783
785 .Name( "pcbnew.InteractiveEdit.editVertices" )
786 .Scope( AS_GLOBAL )
787 .FriendlyName( _( "Edit Vertices..." ) )
788 .Tooltip( _( "Edit polygon vertices using a table" ) )
789 .Icon( BITMAPS::edit ) );
790
792 .Name( "pcbnew.InteractiveEdit.healShapes" )
793 .Scope( AS_GLOBAL )
794 .FriendlyName( _( "Heal Shapes" ) )
795 .Tooltip( _( "Connect shapes, possibly extending or cutting them, or adding extra geometry" ) )
796 .Icon( BITMAPS::heal_shapes ) );
797
799 .Name( "pcbnew.InteractiveEdit.extendLines" )
800 .Scope( AS_GLOBAL )
801 .FriendlyName( _( "Extend Lines to Meet" ) )
802 .Tooltip( _( "Extend lines to meet each other" ) ) );
803
805 .Name( "pcbnew.InteractiveEdit.mergePolygons" )
806 .Scope( AS_GLOBAL )
807 .FriendlyName( _( "Merge Polygons" ) )
808 .Tooltip( _( "Merge selected polygons into a single polygon" ) )
809 .Icon( BITMAPS::merge_polygons ) );
810
812 .Name( "pcbnew.InteractiveEdit.subtractPolygons" )
813 .Scope( AS_GLOBAL )
814 .FriendlyName( _( "Subtract Polygons" ) )
815 .Tooltip( _( "Subtract selected polygons from the last one selected" ) )
817
819 .Name( "pcbnew.InteractiveEdit.intersectPolygons" )
820 .Scope( AS_GLOBAL )
821 .FriendlyName( _( "Intersect Polygons" ) )
822 .Tooltip( _( "Create the intersection of the selected polygons" ) )
824
826 .Name( "pcbnew.InteractiveEdit.deleteFull" )
827 .Scope( AS_GLOBAL )
828 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DELETE ) )
829 .LegacyHotkeyName( "Delete Full Track" )
830 .FriendlyName( _( "Delete Full Track" ) )
831 .Tooltip( _( "Deletes selected item(s) and copper connections" ) )
833 .Flags( AF_NONE )
834 .Parameter( PCB_ACTIONS::REMOVE_FLAGS::ALT ) );
835
837 .Name( "pcbnew.InteractiveEdit.properties" )
838 .Scope( AS_GLOBAL )
839 .DefaultHotkey( 'E' )
840 .LegacyHotkeyName( "Edit Item" )
841 .FriendlyName( _( "Properties..." ) )
842 .Icon( BITMAPS::edit ) );
843
844// ARRAY
845//
847 .Name( "pcbnew.Array.createArray" )
848 .Scope( AS_GLOBAL )
849 .DefaultHotkey( MD_CTRL + 'T' )
850 .LegacyHotkeyName( "Create Array" )
851 .FriendlyName( _( "Create Array..." ) )
852 .Icon( BITMAPS::array )
853 .Flags( AF_ACTIVATE ) );
854
855// FOOTPRINT_EDITOR_CONTROL
856//
858 .Name( "pcbnew.ModuleEditor.newFootprint" )
859 .Scope( AS_GLOBAL )
860 .DefaultHotkey( MD_CTRL + 'N' )
861 .LegacyHotkeyName( "New" )
862 .FriendlyName( _( "New Footprint" ) )
863 .Tooltip( _( "Create a new, empty footprint" ) )
864 .Icon( BITMAPS::new_footprint ) );
865
867 .Name( "pcbnew.ModuleEditor.createFootprint" )
868 .Scope( AS_GLOBAL )
869 .FriendlyName( _( "Create Footprint..." ) )
870 .Tooltip( _( "Create a new footprint using the Footprint Wizard" ) )
871 .Icon( BITMAPS::module_wizard ) );
872
874 .Name( "pcbnew.ModuleEditor.editFootprint" )
875 .Scope( AS_GLOBAL )
876 .FriendlyName( _( "Edit Footprint" ) )
877 .Tooltip( _( "Show selected footprint on editor canvas" ) )
878 .Icon( BITMAPS::edit ) );
879
881 .Name( "pcbnew.ModuleEditor.duplicateFootprint" )
882 .Scope( AS_GLOBAL )
883 .FriendlyName( _( "Duplicate Footprint" ) )
884 .Icon( BITMAPS::duplicate ) );
885
887 .Name( "pcbnew.ModuleEditor.renameFootprint" )
888 .Scope( AS_GLOBAL )
889 .FriendlyName( _( "Rename Footprint..." ) )
890 .Icon( BITMAPS::edit ) );
891
893 .Name( "pcbnew.ModuleEditor.deleteFootprint" )
894 .Scope( AS_GLOBAL )
895 .FriendlyName( _( "Delete Footprint from Library" ) )
896 .Icon( BITMAPS::trash ) );
897
899 .Name( "pcbnew.ModuleEditor.cutFootprint" )
900 .Scope( AS_GLOBAL )
901 .FriendlyName( _( "Cut Footprint" ) )
902 .Icon( BITMAPS::cut ) );
903
905 .Name( "pcbnew.ModuleEditor.copyFootprint" )
906 .Scope( AS_GLOBAL )
907 .FriendlyName( _( "Copy Footprint" ) )
908 .Icon( BITMAPS::copy ) );
909
911 .Name( "pcbnew.ModuleEditor.pasteFootprint" )
912 .Scope( AS_GLOBAL )
913 .FriendlyName( _( "Paste Footprint" ) )
914 .Icon( BITMAPS::paste ) );
915
917 .Name( "pcbnew.ModuleEditor.importFootprint" )
918 .Scope( AS_GLOBAL )
919 .FriendlyName( _( "Import Footprint..." ) )
920 .Tooltip( _( "Import footprint from file" ) )
921 .Icon( BITMAPS::import_module ) );
922
924 .Name( "pcbnew.ModuleEditor.exportFootprint" )
925 .Scope( AS_GLOBAL )
926 .FriendlyName( _( "Export Current Footprint..." ) )
927 .Tooltip( _( "Export edited footprint to file" ) )
928 .Icon( BITMAPS::export_module ) );
929
931 .Name( "pcbnew.ModuleEditor.footprintProperties" )
932 .Scope( AS_GLOBAL )
933 .FriendlyName( _( "Footprint Properties..." ) )
934 .Icon( BITMAPS::module_options ) );
935
937 .Name( "pcbnew.ModuleEditor.padTable" )
938 .Scope( AS_GLOBAL )
939 .FriendlyName( _( "Pad Table..." ) )
940 .Tooltip( _( "Displays pad table for bulk editing of pads" ) )
941 .Icon( BITMAPS::pin_table ) );
942
944 .Name( "pcbnew.ModuleEditor.checkFootprint" )
945 .Scope( AS_GLOBAL )
946 .FriendlyName( _( "Footprint Checker" ) )
947 .Tooltip( _( "Show the footprint checker window" ) )
948 .Icon( BITMAPS::erc ) );
949
951 .Name( "pcbnew.ModuleEditor.loadFootprintFromBoard" )
952 .Scope( AS_GLOBAL )
953 .FriendlyName( _( "Load footprint from current PCB" ) )
954 .Tooltip( _( "Load footprint from current board" ) )
956
958 .Name( "pcbnew.ModuleEditor.saveFootprintToBoard" )
959 .Scope( AS_GLOBAL )
960 .FriendlyName( _( "Insert footprint into PCB" ) )
961 .Tooltip( _( "Insert footprint into current board" ) )
963
965 .Name( "pcbnew.Control.previousFootprint" )
966 .Scope( AS_GLOBAL )
967 .FriendlyName( _( "Display previous footprint" ) )
968 .Icon( BITMAPS::lib_previous )
969 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::PREVIOUS_PART ) );
970
972 .Name( "pcbnew.Control.nextFootprint" )
973 .Scope( AS_GLOBAL )
974 .FriendlyName( _( "Display next footprint" ) )
975 .Icon( BITMAPS::lib_next )
976 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::NEXT_PART ) );
977
978// GLOBAL_EDIT_TOOL
979//
981 .Name( "pcbnew.GlobalEdit.updateFootprint" )
982 .Scope( AS_GLOBAL )
983 .FriendlyName( _( "Update Footprint..." ) )
984 .Tooltip( _( "Update footprint to include any changes from the library" ) )
985 .Icon( BITMAPS::refresh ) );
986
988 .Name( "pcbnew.GlobalEdit.updateFootprints" )
989 .Scope( AS_GLOBAL )
990 .FriendlyName( _( "Update Footprints from Library..." ) )
991 .Tooltip( _( "Update footprints to include any changes from the library" ) )
992 .Icon( BITMAPS::refresh ) );
993
995 .Name( "pcbnew.GlobalEdit.removeUnusedPads" )
996 .Scope( AS_GLOBAL )
997 .FriendlyName( _( "Remove Unused Pads..." ) )
998 .Tooltip( _( "Remove or restore the unconnected inner layers on through hole pads and vias" ) )
999 .Icon( BITMAPS::pads_remove ) );
1000
1002 .Name( "pcbnew.GlobalEdit.changeFootprint" )
1003 .Scope( AS_GLOBAL )
1004 .FriendlyName( _( "Change Footprint..." ) )
1005 .Tooltip( _( "Assign a different footprint from the library" ) )
1006 .Icon( BITMAPS::exchange ) );
1007
1009 .Name( "pcbnew.GlobalEdit.changeFootprints" )
1010 .Scope( AS_GLOBAL )
1011 .FriendlyName( _( "Change Footprints..." ) )
1012 .Tooltip( _( "Assign different footprints from the library" ) )
1013 .Icon( BITMAPS::exchange ) );
1014
1016 .Name( "pcbnew.GlobalEdit.swapLayers" )
1017 .Scope( AS_GLOBAL )
1018 .FriendlyName( _( "Swap Layers..." ) )
1019 .Tooltip( _( "Move tracks or drawings from one layer to another" ) )
1020 .Icon( BITMAPS::swap_layer ) );
1021
1023 .Name( "pcbnew.GlobalEdit.editTracksAndVias" )
1024 .Scope( AS_GLOBAL )
1025 .FriendlyName( _( "Edit Track & Via Properties..." ) )
1026 .Tooltip( _( "Edit track and via properties globally across board" ) )
1027 .Icon( BITMAPS::width_track_via ) );
1028
1030 .Name( "pcbnew.GlobalEdit.editTextAndGraphics" )
1031 .Scope( AS_GLOBAL )
1032 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
1033 .Tooltip( _( "Edit Text and graphics properties globally across board" ) )
1034 .Icon( BITMAPS::text ) );
1035
1037 .Name( "pcbnew.GlobalEdit.editTeardrops" )
1038 .Scope( AS_GLOBAL )
1039 .FriendlyName( _( "Edit Teardrops..." ) )
1040 .Tooltip( _( "Add, remove or edit teardrops globally across board" ) )
1041 .Icon( BITMAPS::via ) );
1042
1044 .Name( "pcbnew.GlobalEdit.globalDeletions" )
1045 .Scope( AS_GLOBAL )
1046 .FriendlyName( _( "Global Deletions..." ) )
1047 .Tooltip( _( "Delete tracks, footprints and graphic items from board" ) )
1048 .Icon( BITMAPS::general_deletions ) );
1049
1051 .Name( "pcbnew.GlobalEdit.cleanupTracksAndVias" )
1052 .Scope( AS_GLOBAL )
1053 .FriendlyName( _( "Cleanup Tracks & Vias..." ) )
1054 .Tooltip( _( "Cleanup redundant items, shorting items, etc." ) )
1056
1058 .Name( "pcbnew.GlobalEdit.cleanupGraphics" )
1059 .Scope( AS_GLOBAL )
1060 .FriendlyName( _( "Cleanup Graphics..." ) )
1061 .Tooltip( _( "Cleanup redundant items, etc." ) )
1062 .Icon( BITMAPS::cleanup_graphics ) );
1063
1064// MICROWAVE_TOOL
1065//
1067 .Name( "pcbnew.MicrowaveTool.createGap" )
1068 .Scope( AS_GLOBAL )
1069 .FriendlyName( _( "Draw Microwave Gaps" ) )
1070 .Tooltip( _( "Create gap of specified length for microwave applications" ) )
1071 .Icon( BITMAPS::mw_add_gap )
1072 .Flags( AF_ACTIVATE )
1073 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::GAP ) );
1074
1076 .Name( "pcbnew.MicrowaveTool.createStub" )
1077 .Scope( AS_GLOBAL )
1078 .FriendlyName( _( "Draw Microwave Stubs" ) )
1079 .Tooltip( _( "Create stub of specified length for microwave applications" ) )
1080 .Icon( BITMAPS::mw_add_stub )
1081 .Flags( AF_ACTIVATE )
1082 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB ) );
1083
1085 .Name( "pcbnew.MicrowaveTool.createStubArc" )
1086 .Scope( AS_GLOBAL )
1087 .FriendlyName( _( "Draw Microwave Arc Stubs" ) )
1088 .Tooltip( _( "Create stub (arc) of specified size for microwave applications" ) )
1090 .Flags( AF_ACTIVATE )
1092
1094 .Name( "pcbnew.MicrowaveTool.createFunctionShape" )
1095 .Scope( AS_GLOBAL )
1096 .FriendlyName( _( "Draw Microwave Polygonal Shapes" ) )
1097 .Tooltip( _( "Create a microwave polygonal shape from a list of vertices" ) )
1098 .Icon( BITMAPS::mw_add_shape )
1099 .Flags( AF_ACTIVATE )
1101
1103 .Name( "pcbnew.MicrowaveTool.createLine" )
1104 .Scope( AS_GLOBAL )
1105 .FriendlyName( _( "Draw Microwave Lines" ) )
1106 .Tooltip( _( "Create line of specified length for microwave applications" ) )
1107 .Icon( BITMAPS::mw_add_line )
1108 .Flags( AF_ACTIVATE ) );
1109
1110
1111// PAD_TOOL
1112//
1114 .Name( "pcbnew.PadTool.CopyPadSettings" )
1115 .Scope( AS_GLOBAL )
1116 .FriendlyName( _( "Copy Pad Properties to Default" ) )
1117 .Tooltip( _( "Copy current pad's properties" ) )
1118 .Icon( BITMAPS::copy_pad_settings ) );
1119
1121 .Name( "pcbnew.PadTool.ApplyPadSettings" )
1122 .Scope( AS_GLOBAL )
1123 .FriendlyName( _( "Paste Default Pad Properties to Selected" ) )
1124 .Tooltip( _( "Replace the current pad's properties with those copied earlier" ) )
1125 .Icon( BITMAPS::apply_pad_settings ) );
1126
1128 .Name( "pcbnew.PadTool.PushPadSettings" )
1129 .Scope( AS_GLOBAL )
1130 .FriendlyName( _( "Push Pad Properties to Other Pads..." ) )
1131 .Tooltip( _( "Copy the current pad's properties to other pads" ) )
1132 .Icon( BITMAPS::push_pad_settings ) );
1133
1135 .Name( "pcbnew.PadTool.enumeratePads" )
1136 .Scope( AS_GLOBAL )
1137 .FriendlyName( _( "Renumber Pads..." ) )
1138 .Tooltip( _( "Renumber pads by clicking on them in the desired order" ) )
1139 .Icon( BITMAPS::pad_enumerate )
1140 .Flags( AF_ACTIVATE ) );
1141
1143 .Name( "pcbnew.PadTool.placePad" )
1144 .Scope( AS_GLOBAL )
1145 .FriendlyName( _( "Add Pad" ) )
1146 .Tooltip( _( "Add a pad" ) )
1147 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1148 .Icon( BITMAPS::pad )
1149 .Flags( AF_ACTIVATE ) );
1150
1152 .Name( "pcbnew.PadTool.explodePad" )
1153 .Scope( AS_GLOBAL )
1154 .DefaultHotkey( MD_CTRL + 'E' )
1155 .FriendlyName( _( "Edit Pad as Graphic Shapes" ) )
1156 .Tooltip( _( "Ungroups a custom-shaped pad for editing as individual graphic shapes" ) )
1158
1160 .Name( "pcbnew.PadTool.recombinePad" )
1161 .Scope( AS_GLOBAL )
1162 .DefaultHotkey( MD_CTRL + 'E' )
1163 .FriendlyName( _( "Finish Pad Edit" ) )
1164 .Tooltip( _( "Regroups all touching graphic shapes into the edited pad" ) )
1166
1168 .Name( "pcbnew.PadTool.defaultPadProperties" )
1169 .Scope( AS_GLOBAL )
1170 .FriendlyName( _( "Default Pad Properties..." ) )
1171 .Tooltip( _( "Edit the pad properties used when creating new pads" ) )
1172 .Icon( BITMAPS::options_pad ) );
1173
1174
1175// SCRIPTING TOOL
1176//
1177
1179 .Name( "pcbnew.ScriptingTool.pluginsShowFolder" )
1180 .Scope( AS_GLOBAL )
1181#ifdef __WXMAC__
1182 .FriendlyName( _( "Reveal Plugin Folder in Finder" ) )
1183 .Tooltip( _( "Reveals the plugins folder in a Finder window" ) )
1184#else
1185 .FriendlyName( _( "Open Plugin Directory" ) )
1186 .Tooltip( _( "Opens the directory in the default system file manager" ) )
1187#endif
1188 .Icon( BITMAPS::directory_open ) );
1189
1190// BOARD_EDITOR_CONTROL
1191//
1193 .Name( "pcbnew.EditorControl.appendBoard" )
1194 .Scope( AS_GLOBAL )
1195 .FriendlyName( _( "Append Board..." ) )
1196 .Tooltip( _( "Open another board and append its contents to this board" ) )
1197 .Icon( BITMAPS::add_board ) );
1198
1200 .Name( "pcbnew.EditorControl.rescueAutosave" )
1201 .Scope( AS_GLOBAL )
1202 .FriendlyName( _( "Rescue" ) )
1203 .Tooltip( _( "Clear board and get last rescue file automatically saved by PCB editor" ) )
1204 .Icon( BITMAPS::rescue ) );
1205
1207 .Name( "pcbnew.EditorControl.openNonKicadBoard" )
1208 .Scope( AS_GLOBAL )
1209 .FriendlyName( _( "Non-KiCad Board File..." ) )
1210 .Tooltip( _( "Import board file from other applications" ) )
1211 .Icon( BITMAPS::import_brd_file ) );
1212
1214 .Name( "pcbnew.EditorControl.exportFootprints" )
1215 .Scope( AS_GLOBAL )
1216 .FriendlyName( _( "Export Footprints..." ) )
1217 .Tooltip( _( "Add footprints from board to a new or an existing footprint library\n"
1218 "(does not remove other footprints from this library)" ) )
1219 .Icon( BITMAPS::library_archive ) );
1220
1222 .Name( "pcbnew.EditorControl.boardSetup" )
1223 .Scope( AS_GLOBAL )
1224 .FriendlyName( _( "Board Setup..." ) )
1225 .Tooltip( _( "Edit board setup including layers, design rules and various defaults" ) )
1226 .Icon( BITMAPS::options_board ) );
1227
1229 .Name( "pcbnew.EditorControl.importNetlist" )
1230 .Scope( AS_GLOBAL )
1231 .FriendlyName( _( "Import Netlist..." ) )
1232 .Tooltip( _( "Read netlist and update board connectivity" ) )
1233 .Icon( BITMAPS::netlist ) );
1234
1236 .Name( "pcbnew.EditorControl.importSpecctraSession" )
1237 .Scope( AS_GLOBAL )
1238 .FriendlyName( _( "Import Specctra Session..." ) )
1239 .Tooltip( _( "Import routed Specctra session (*.ses) file" ) )
1240 .Icon( BITMAPS::import ) );
1241
1243 .Name( "pcbnew.EditorControl.exportSpecctraDSN" )
1244 .Scope( AS_GLOBAL )
1245 .FriendlyName( _( "Export Specctra DSN..." ) )
1246 .Tooltip( _( "Export Specctra DSN routing info" ) )
1247 .Icon( BITMAPS::export_dsn ) );
1248
1250 .Name( "pcbnew.EditorControl.generateGerbers" )
1251 .Scope( AS_GLOBAL )
1252 .FriendlyName( _( "Gerbers (.gbr)..." ) )
1253 .Tooltip( _( "Generate Gerbers for fabrication" ) )
1254 .Icon( BITMAPS::post_gerber ) );
1255
1257 .Name( "pcbnew.EditorControl.generateDrillFiles" )
1258 .Scope( AS_GLOBAL )
1259 .FriendlyName( _( "Drill Files (.drl)..." ) )
1260 .Tooltip( _( "Generate Excellon drill file(s)" ) )
1261 .Icon( BITMAPS::post_drill ) );
1262
1264 .Name( "pcbnew.EditorControl.generatePosFile" )
1265 .Scope( AS_GLOBAL )
1266 .FriendlyName( _( "Component Placement (.pos, .gbr)..." ) )
1267 .Tooltip( _( "Generate component placement file(s) for pick and place" ) )
1268 .Icon( BITMAPS::post_compo ) );
1269
1271 .Name( "pcbnew.EditorControl.generateReportFile" )
1272 .Scope( AS_GLOBAL )
1273 .FriendlyName( _( "Footprint Report (.rpt)..." ) )
1274 .Tooltip( _( "Create report of all footprints from current board" ) )
1275 .Icon( BITMAPS::post_rpt ) );
1276
1278 .Name( "pcbnew.EditorControl.generateIPC2581File" )
1279 .Scope( AS_GLOBAL )
1280 .FriendlyName( _( "IPC-2581 File (.xml)..." ) )
1281 .Tooltip( _( "Generate an IPC-2581 file" ) )
1282 .Icon( BITMAPS::post_xml ) );
1283
1285 .Name( "pcbnew.EditorControl.generateODBPPFile" )
1286 .Scope( AS_GLOBAL )
1287 .FriendlyName( _( "ODB++ Output File..." ) )
1288 .Tooltip( _( "Generate ODB++ output files" ) )
1289 .Icon( BITMAPS::post_odb ) );
1290
1292 .Name( "pcbnew.EditorControl.generateD356File" )
1293 .Scope( AS_GLOBAL )
1294 .FriendlyName( _( "IPC-D-356 Netlist File..." ) )
1295 .Tooltip( _( "Generate IPC-D-356 netlist file" ) )
1296 .Icon( BITMAPS::post_d356 ) );
1297
1299 .Name( "pcbnew.EditorControl.generateBOM" )
1300 .Scope( AS_GLOBAL )
1301 .FriendlyName( _( "Bill of Materials..." ) )
1302 .Tooltip( _( "Create bill of materials from board" ) )
1303 .Icon( BITMAPS::post_bom ) );
1304
1306 .Name( "pcbnew.EditorControl.exportGenCAD" )
1307 .Scope( AS_GLOBAL )
1308 .FriendlyName( _( "Export GenCAD..." ) )
1309 .Tooltip( _( "Export GenCAD board representation" ) )
1310 .Icon( BITMAPS::post_gencad ) );
1311
1313 .Name( "pcbnew.EditorControl.exportVRML" )
1314 .Scope( AS_GLOBAL )
1315 .FriendlyName( _( "Export VRML..." ) )
1316 .Tooltip( _( "Export VRML 3D board representation" ) )
1317 .Icon( BITMAPS::export3d ) );
1318
1320 .Name( "pcbnew.EditorControl.exportIDF" )
1321 .Scope( AS_GLOBAL )
1322 .FriendlyName( _( "Export IDFv3..." ) )
1323 .Tooltip( _( "Export IDF 3D board representation" ) )
1324 .Icon( BITMAPS::export_idf ) );
1325
1327 .Name( "pcbnew.EditorControl.exportSTEP" )
1328 .Scope( AS_GLOBAL )
1329 .FriendlyName( _( "Export STEP/GLB/BREP/XAO/PLY/STL..." ) )
1330 .Tooltip( _( "Export STEP, GLB, BREP, XAO, PLY or STL 3D board representation" ) )
1331 .Icon( BITMAPS::export_step ) );
1332
1334 .Name( "pcbnew.EditorControl.exportFootprintAssociations" )
1335 .Scope( AS_GLOBAL )
1336 .FriendlyName( _( "Export Footprint Association (.cmp) File..." ) )
1337 .Tooltip( _( "Export footprint association file (*.cmp) for schematic back annotation" ) )
1338 .Icon( BITMAPS::export_cmp ) );
1339
1341 .Name( "pcbnew.EditorControl.exportHyperlynx" )
1342 .Scope( AS_GLOBAL )
1343 .FriendlyName( _( "Hyperlynx..." ) )
1344 .Icon( BITMAPS::export_step ) );
1345
1347 .Name( "pcbnew.EditorControl.collect3DModels" )
1348 .Scope( AS_GLOBAL )
1349 .FriendlyName( _( "Collect And Embed 3D Models" ) )
1350 .Tooltip( _( "Collect footprint 3D models and embed them into the board" ) ) );
1351
1352
1353// Track & via size control
1355 .Name( "pcbnew.EditorControl.trackWidthInc" )
1356 .Scope( AS_GLOBAL )
1357 .DefaultHotkey( 'W' )
1358 .LegacyHotkeyName( "Switch Track Width To Next" )
1359 .FriendlyName( _( "Switch Track Width to Next" ) )
1360 .Tooltip( _( "Change track width to next pre-defined size" ) ) );
1361
1363 .Name( "pcbnew.EditorControl.trackWidthDec" )
1364 .Scope( AS_GLOBAL )
1365 .DefaultHotkey( MD_SHIFT + 'W' )
1366 .LegacyHotkeyName( "Switch Track Width To Previous" )
1367 .FriendlyName( _( "Switch Track Width to Previous" ) )
1368 .Tooltip( _( "Change track width to previous pre-defined size" ) ) );
1369
1371 .Name( "pcbnew.EditorControl.viaSizeInc" )
1372 .Scope( AS_GLOBAL )
1373 .DefaultHotkey( '\'' )
1374 .LegacyHotkeyName( "Increase Via Size" )
1375 .FriendlyName( _( "Increase Via Size" ) )
1376 .Tooltip( _( "Change via size to next pre-defined size" ) ) );
1377
1379 .Name( "pcbnew.EditorControl.viaSizeDec" )
1380 .Scope( AS_GLOBAL )
1381 .DefaultHotkey( '\\' )
1382 .LegacyHotkeyName( "Decrease Via Size" )
1383 .FriendlyName( _( "Decrease Via Size" ) )
1384 .Tooltip( _( "Change via size to previous pre-defined size" ) ) );
1385
1387 .Name( "pcbnew.EditorControl.autoTrackWidth" )
1388 .Scope( AS_GLOBAL )
1389 .FriendlyName( _( "Automatically select track width" ) )
1390 .Tooltip( _( "When routing from an existing track use its width instead "
1391 "of the current width setting" ) )
1393 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1394
1396 .Name( "pcbnew.EditorControl.trackViaSizeChanged" )
1397 .Scope( AS_GLOBAL )
1398 .Flags( AF_NOTIFY ) );
1399
1401 .Name( "pcbnew.EditorControl.assignNetclass" )
1402 .Scope( AS_GLOBAL )
1403 .FriendlyName( _( "Assign Netclass..." ) )
1404 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
1405 .Icon( BITMAPS::netlist ) );
1406
1408 .Name( "pcbnew.EditorControl.zoneMerge" )
1409 .Scope( AS_GLOBAL )
1410 .FriendlyName( _( "Merge Zones" ) ) );
1411
1413 .Name( "pcbnew.EditorControl.zoneDuplicate" )
1414 .Scope( AS_GLOBAL )
1415 .FriendlyName( _( "Duplicate Zone onto Layer..." ) )
1416 .Icon( BITMAPS::zone_duplicate ) );
1417
1419 .Name( "pcbnew.EditorControl.placeFootprint" )
1420 .Scope( AS_GLOBAL )
1421 .DefaultHotkey( 'A' )
1422 .LegacyHotkeyName( "Add Footprint" )
1423 .FriendlyName( _( "Place Footprints" ) )
1424 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1425 .Icon( BITMAPS::module )
1426 .Flags( AF_ACTIVATE )
1427 .Parameter<FOOTPRINT*>( nullptr ) );
1428
1430 .Name( "pcbnew.EditorControl.drillOrigin" )
1431 .Scope( AS_GLOBAL )
1432 .FriendlyName( _( "Drill/Place File Origin" ) )
1433 .Tooltip( _( "Place origin point for drill files and component placement files" ) )
1434 .Icon( BITMAPS::set_origin )
1435 .Flags( AF_ACTIVATE ) );
1436
1438 .Name( "pcbnew.EditorControl.drillResetOrigin" )
1439 .Scope( AS_GLOBAL )
1440 .LegacyHotkeyName( "Reset Drill Origin" )
1441 .FriendlyName( _( "Reset Drill Origin" ) ) );
1442
1444 .Name( "pcbnew.EditorControl.drillSetOrigin" )
1445 .Scope( AS_CONTEXT )
1446 .Parameter( VECTOR2I() ) );
1447
1449 .Name( "pcbnew.EditorControl.toggleLock" )
1450 .Scope( AS_GLOBAL )
1451 .DefaultHotkey( 'L' )
1452 .LegacyHotkeyName( "Lock/Unlock Footprint" )
1453 .FriendlyName( _( "Toggle Lock" ) )
1454 .Tooltip( _( "Lock or unlock selected items" ) )
1455 .Icon( BITMAPS::lock_unlock ) );
1456
1457// Line mode grouping and events (for PCB and Footprint editors)
1459 .Name( "pcbnew.EditorControl.lineModeFree" )
1460 .Scope( AS_GLOBAL )
1461 .FriendlyName( _( "Line Modes" ) )
1462 .Tooltip( _( "Draw and drag at any angle" ) )
1463 .Icon( BITMAPS::lines_any )
1464 .Flags( AF_NONE )
1465 .Parameter( LEADER_MODE::DIRECT ) );
1466
1468 .Name( "pcbnew.EditorControl.lineModeOrthonal" )
1469 .Scope( AS_GLOBAL )
1470 .FriendlyName( _( "Line Modes" ) )
1471 .Tooltip( _( "Constrain drawing and dragging to horizontal or vertical motions" ) )
1472 .Icon( BITMAPS::lines90 )
1473 .Flags( AF_NONE )
1474 .Parameter( LEADER_MODE::DEG90 ) );
1475
1477 .Name( "pcbnew.EditorControl.lineMode45" )
1478 .Scope( AS_GLOBAL )
1479 .FriendlyName( _( "Line Modes" ) )
1480 .Tooltip( _( "Constrain drawing and dragging to horizontal, vertical, or 45-degree angle motions" ) )
1481 .Icon( BITMAPS::hv45mode )
1482 .Flags( AF_NONE )
1483 .Parameter( LEADER_MODE::DEG45 ) );
1484
1486 .Name( "pcbnew.EditorControl.lineModeNext" )
1487 .DefaultHotkey( MD_SHIFT + ' ' )
1488 .Scope( AS_GLOBAL )
1489 .FriendlyName( _( "Line Modes" ) )
1490 .Tooltip( _( "Switch to next angle snapping mode" ) ) );
1491
1493 .Name( "pcbnew.EditorControl.angleSnapModeChanged" )
1494 .Scope( AS_GLOBAL )
1495 .Flags( AF_NOTIFY ) );
1496
1498 .Name( "pcbnew.EditorControl.lock" )
1499 .Scope( AS_GLOBAL )
1500 .FriendlyName( _( "Lock" ) )
1501 .Tooltip( _( "Prevent items from being moved and/or resized on the canvas" ) )
1502 .Icon( BITMAPS::locked ) );
1503
1505 .Name( "pcbnew.EditorControl.unlock" )
1506 .Scope( AS_GLOBAL )
1507 .FriendlyName( _( "Unlock" ) )
1508 .Tooltip( _( "Allow items to be moved and/or resized on the canvas" ) )
1509 .Icon( BITMAPS::unlocked ) );
1510
1512 .Name( "pcbnew.EditorControl.highlightNet" )
1513 .Scope( AS_GLOBAL )
1514 .DefaultHotkey( '`' )
1515 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1516 .LegacyHotkeyName( "Toggle Highlight of Selected Net (Modern Toolset only)" )
1517 .FriendlyName( _( "Highlight Net" ) )
1518 .Tooltip( _( "Highlight net under cursor" ) )
1519 .Icon( BITMAPS::net_highlight )
1520 .Parameter<int>( 0 ) );
1521
1523 .Name( "pcbnew.EditorControl.toggleLastNetHighlight" )
1524 .Scope( AS_GLOBAL )
1525 .FriendlyName( _( "Toggle Last Net Highlight" ) )
1526 .Tooltip( _( "Toggle between last two highlighted nets" ) )
1527 .Parameter<int>( 0 ) );
1528
1530 .Name( "pcbnew.EditorControl.clearHighlight" )
1531 .Scope( AS_GLOBAL )
1532 .DefaultHotkey( '~' )
1533 .FriendlyName( _( "Clear Net Highlighting" ) ) );
1534
1536 .Name( "pcbnew.EditorControl.toggleNetHighlight" )
1537 .Scope( AS_GLOBAL )
1538 .DefaultHotkey( MD_ALT + '`' )
1539 .FriendlyName( _( "Toggle Net Highlight" ) )
1540 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1541 .Icon( BITMAPS::net_highlight )
1542 .Parameter<int>( 0 ) );
1543
1545 .Name( "pcbnew.EditorControl.highlightNetSelection" )
1546 .Scope( AS_GLOBAL )
1547 .FriendlyName( _( "Highlight Net" ) )
1548 .Tooltip( _( "Highlight all copper items on the selected net(s)" ) )
1549 .Icon( BITMAPS::net_highlight )
1550 .Parameter<int>( 0 ) );
1551
1553 .Name( "pcbnew.EditorControl.highlightItem" )
1554 .Scope( AS_GLOBAL ) );
1555
1557 .Name( "pcbnew.EditorControl.hideNet" )
1558 .Scope( AS_GLOBAL )
1559 .FriendlyName( _( "Hide Net in Ratsnest" ) )
1560 .Tooltip( _( "Hide the selected net in the ratsnest of unconnected net lines/arcs" ) )
1561 .Icon( BITMAPS::hide_ratsnest )
1562 .Parameter<int>( 0 ) ); // Default to hiding selected net
1563
1565 .Name( "pcbnew.EditorControl.showNet" )
1566 .Scope( AS_GLOBAL )
1567 .FriendlyName( _( "Show Net in Ratsnest" ) )
1568 .Tooltip( _( "Show the selected net in the ratsnest of unconnected net lines/arcs" ) )
1569 .Icon( BITMAPS::show_ratsnest )
1570 .Parameter<int>( 0 ) ); // Default to showing selected net
1571
1573 .Name( "pcbnew.EditorControl.showEeschema" )
1574 .Scope( AS_GLOBAL )
1575 .FriendlyName( _( "Switch to Schematic Editor" ) )
1576 .Tooltip( _( "Open schematic in schematic editor" ) )
1577 .Icon( BITMAPS::icon_eeschema_24 ) );
1578
1579
1580// PCB_CONTROL
1581//
1582
1584 .Name( "pcbnew.Control.localRatsnestTool" )
1585 .Scope( AS_GLOBAL )
1586 .FriendlyName( _( "Local Ratsnest" ) )
1587 .Tooltip( _( "Toggle ratsnest display of selected item(s)" ) )
1588 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1589 .Icon( BITMAPS::tool_ratsnest )
1590 .Flags( AF_ACTIVATE ) );
1591
1593 .Name( "pcbnew.Control.hideDynamicRatsnest" )
1594 .Scope( AS_GLOBAL ) );
1595
1597 .Name( "pcbnew.Control.updateLocalRatsnest" )
1598 .Scope( AS_GLOBAL )
1599 .Parameter( VECTOR2I() ) );
1600
1602 .Name( "pcbnew.Control.showPythonConsole" )
1603 .Scope( AS_GLOBAL )
1604 .FriendlyName( _( "Scripting Console" ) )
1605 .Tooltip( _( "Show the Python scripting console" ) )
1606 .Icon( BITMAPS::py_script )
1607 .ToolbarState( TOOLBAR_STATE::TOGGLE) );
1608
1610 .Name( "pcbnew.Control.showLayersManager" )
1611 .Scope( AS_GLOBAL )
1612 .FriendlyName( _( "Appearance" ) )
1613 .Tooltip( _( "Show/hide the appearance manager" ) )
1614 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1615 .Icon( BITMAPS::layers_manager ) );
1616
1618 .Name( "pcbnew.Control.showNetInspector" )
1619 .Scope( AS_GLOBAL )
1620 .FriendlyName( _( "Net Inspector" ) )
1621 .Tooltip( _( "Show/hide the net inspector" ) )
1622 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1623 .Icon( BITMAPS::tools ) );
1624
1625TOOL_ACTION PCB_ACTIONS::zonesManager( "pcbnew.Control.zonesManager",
1626 AS_GLOBAL, 0, "",
1627 _( "Zone Manager..." ),
1628 _( "Show the zone manager dialog" ),
1630
1632 .Name( "pcbnew.Control.flipBoard" )
1633 .Scope( AS_GLOBAL )
1634 .FriendlyName( _( "Flip Board View" ) )
1635 .Tooltip( _( "View board from the opposite side" ) )
1636 .Icon( BITMAPS::flip_board ) );
1637
1639 .Name( "pcbnew.Control.rehatchShapes" )
1640 .Scope( AS_CONTEXT ) );
1641
1642
1643// Display modes
1645 .Name( "pcbnew.Control.showRatsnest" )
1646 .Scope( AS_GLOBAL )
1647 .FriendlyName( _( "Show Ratsnest" ) )
1648 .Tooltip( _( "Show lines/arcs representing missing connections on the board" ) )
1649 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1650 .Icon( BITMAPS::general_ratsnest ) );
1651
1653 .Name( "pcbnew.Control.ratsnestLineMode" )
1654 .Scope( AS_GLOBAL )
1655 .FriendlyName( _( "Curved Ratsnest Lines" ) )
1656 .Tooltip( _( "Show ratsnest with curved lines" ) )
1657 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1658 .Icon( BITMAPS::curved_ratsnest ) );
1659
1661 .Name( "pcbnew.Control.ratsnestModeCycle" )
1662 .Scope( AS_GLOBAL )
1663 .FriendlyName( _( "Ratsnest Mode (3-state)" ) )
1664 .Tooltip( _( "Cycle between showing ratsnests for all layers, just visible layers, and none" ) ) );
1665
1667 .Name( "pcbnew.Control.netColorMode" )
1668 .Scope( AS_GLOBAL )
1669 .FriendlyName( _( "Net Color Mode (3-state)" ) )
1670 .Tooltip( _( "Cycle between using net and netclass colors for all nets, just ratsnests, and none" ) ) );
1671
1673 .Name( "pcbnew.Control.trackDisplayMode" )
1674 .Scope( AS_GLOBAL )
1675 .DefaultHotkey( 'K' )
1676 .LegacyHotkeyName( "Track Display Mode" )
1677 .FriendlyName( _( "Sketch Tracks" ) )
1678 .Tooltip( _( "Show tracks in outline mode" ) )
1679 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1680 .Icon( BITMAPS::showtrack ) );
1681
1683 .Name( "pcbnew.Control.padDisplayMode" )
1684 .Scope( AS_GLOBAL )
1685 .FriendlyName( _( "Sketch Pads" ) )
1686 .Tooltip( _( "Show pads in outline mode" ) )
1687 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1688 .Icon( BITMAPS::pad_sketch ) );
1689
1691 .Name( "pcbnew.Control.viaDisplayMode" )
1692 .Scope( AS_GLOBAL )
1693 .FriendlyName( _( "Sketch Vias" ) )
1694 .Tooltip( _( "Show vias in outline mode" ) )
1695 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1696 .Icon( BITMAPS::via_sketch ) );
1697
1699 .Name( "pcbnew.Control.graphicOutlines" )
1700 .Scope( AS_GLOBAL )
1701 .FriendlyName( _( "Sketch Graphic Items" ) )
1702 .Tooltip( _( "Show graphic items in outline mode" ) )
1703 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1704 .Icon( BITMAPS::show_mod_edge ) );
1705
1707 .Name( "pcbnew.Control.textOutlines" )
1708 .Scope( AS_GLOBAL )
1709 .FriendlyName( _( "Sketch Text Items" ) )
1710 .Tooltip( _( "Show footprint texts in line mode" ) )
1711 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1712 .Icon( BITMAPS::text_sketch ) );
1713
1715 .Name( "pcbnew.Control.showPadNumbers" )
1716 .Scope( AS_GLOBAL )
1717 .FriendlyName( _( "Show Pad Numbers" ) )
1718 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1719 .Icon( BITMAPS::pad_number ) );
1720
1722 .Name( "pcbnew.Control.zoneDisplayEnable" )
1723 .Scope( AS_GLOBAL )
1724 .FriendlyName( _( "Draw Zone Fills" ) )
1725 .Tooltip( _( "Show filled areas of zones" ) )
1726 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1727 .Icon( BITMAPS::show_zone ) );
1728
1730 .Name( "pcbnew.Control.zoneDisplayDisable" )
1731 .Scope( AS_GLOBAL )
1732 .FriendlyName( _( "Draw Zone Outlines" ) )
1733 .Tooltip( _( "Show only zone boundaries" ) )
1734 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1735 .Icon( BITMAPS::show_zone_disable ) );
1736
1738 .Name( "pcbnew.Control.zoneDisplayOutlines" )
1739 .Scope( AS_GLOBAL )
1740 .FriendlyName( _( "Draw Zone Fill Fracture Borders" ) )
1741 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1743
1745 .Name( "pcbnew.Control.zoneDisplayTesselation" )
1746 .Scope( AS_GLOBAL )
1747 .FriendlyName( _( "Draw Zone Fill Triangulation" ) )
1748 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1750
1752 .Name( "pcbnew.Control.zoneDisplayToggle" )
1753 .Scope( AS_GLOBAL )
1754 .FriendlyName( _( "Toggle Zone Display" ) )
1755 .Tooltip( _( "Cycle between showing zone fills and just their outlines" ) )
1756 .Icon( BITMAPS::show_zone ) );
1757
1758
1760 .Name( "pcbnew.Control.fpAutoZoom" )
1761 .Scope( AS_GLOBAL )
1762 .FriendlyName( _( "Automatic zoom" ) )
1763 .Tooltip( _( "Automatic Zoom on footprint change" ) )
1765 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1766
1767// Layer control
1768
1769// Translate aLayer to the action that switches to it
1771{
1772 switch( aLayer )
1773 {
1774 case F_Cu: return &PCB_ACTIONS::layerTop;
1775 case In1_Cu: return &PCB_ACTIONS::layerInner1;
1776 case In2_Cu: return &PCB_ACTIONS::layerInner2;
1777 case In3_Cu: return &PCB_ACTIONS::layerInner3;
1778 case In4_Cu: return &PCB_ACTIONS::layerInner4;
1779 case In5_Cu: return &PCB_ACTIONS::layerInner5;
1780 case In6_Cu: return &PCB_ACTIONS::layerInner6;
1781 case In7_Cu: return &PCB_ACTIONS::layerInner7;
1782 case In8_Cu: return &PCB_ACTIONS::layerInner8;
1783 case In9_Cu: return &PCB_ACTIONS::layerInner9;
1784 case In10_Cu: return &PCB_ACTIONS::layerInner10;
1785 case In11_Cu: return &PCB_ACTIONS::layerInner11;
1786 case In12_Cu: return &PCB_ACTIONS::layerInner12;
1787 case In13_Cu: return &PCB_ACTIONS::layerInner13;
1788 case In14_Cu: return &PCB_ACTIONS::layerInner14;
1789 case In15_Cu: return &PCB_ACTIONS::layerInner15;
1790 case In16_Cu: return &PCB_ACTIONS::layerInner16;
1791 case In17_Cu: return &PCB_ACTIONS::layerInner17;
1792 case In18_Cu: return &PCB_ACTIONS::layerInner18;
1793 case In19_Cu: return &PCB_ACTIONS::layerInner19;
1794 case In20_Cu: return &PCB_ACTIONS::layerInner20;
1795 case In21_Cu: return &PCB_ACTIONS::layerInner21;
1796 case In22_Cu: return &PCB_ACTIONS::layerInner22;
1797 case In23_Cu: return &PCB_ACTIONS::layerInner23;
1798 case In24_Cu: return &PCB_ACTIONS::layerInner24;
1799 case In25_Cu: return &PCB_ACTIONS::layerInner25;
1800 case In26_Cu: return &PCB_ACTIONS::layerInner26;
1801 case In27_Cu: return &PCB_ACTIONS::layerInner27;
1802 case In28_Cu: return &PCB_ACTIONS::layerInner28;
1803 case In29_Cu: return &PCB_ACTIONS::layerInner29;
1804 case In30_Cu: return &PCB_ACTIONS::layerInner30;
1805 case B_Cu: return &PCB_ACTIONS::layerBottom;
1806 default: return nullptr;
1807 }
1808}
1809
1810// Implemented as an accessor + static variable to ensure it is initialized when used
1811// in static action constructors
1813{
1814 static TOOL_ACTION_GROUP s_toolActionGroup( "pcbnew.Control.DirectLayerActions" );
1815 return s_toolActionGroup;
1816}
1817
1819 .Name( "pcbnew.Control.layerTop" )
1820 .Scope( AS_GLOBAL )
1822 .DefaultHotkey( WXK_PAGEUP )
1823 .LegacyHotkeyName( "Switch to Component (F.Cu) layer" )
1824 .FriendlyName( _( "Switch to Component (F.Cu) layer" ) )
1825 .Flags( AF_NOTIFY )
1826 .Parameter( F_Cu ) );
1827
1829 .Name( "pcbnew.Control.layerInner1" )
1830 .Scope( AS_GLOBAL )
1832 .LegacyHotkeyName( "Switch to Inner layer 1" )
1833 .FriendlyName( _( "Switch to Inner Layer 1" ) )
1834 .Flags( AF_NOTIFY )
1835 .Parameter( In1_Cu ) );
1836
1838 .Name( "pcbnew.Control.layerInner2" )
1839 .Scope( AS_GLOBAL )
1841 .LegacyHotkeyName( "Switch to Inner layer 2" )
1842 .FriendlyName( _( "Switch to Inner Layer 2" ) )
1843 .Flags( AF_NOTIFY )
1844 .Parameter( In2_Cu ) );
1845
1847 .Name( "pcbnew.Control.layerInner3" )
1848 .Scope( AS_GLOBAL )
1850 .LegacyHotkeyName( "Switch to Inner layer 3" )
1851 .FriendlyName( _( "Switch to Inner Layer 3" ) )
1852 .Flags( AF_NOTIFY )
1853 .Parameter( In3_Cu ) );
1854
1856 .Name( "pcbnew.Control.layerInner4" )
1857 .Scope( AS_GLOBAL )
1859 .LegacyHotkeyName( "Switch to Inner layer 4" )
1860 .FriendlyName( _( "Switch to Inner Layer 4" ) )
1861 .Flags( AF_NOTIFY )
1862 .Parameter( In4_Cu ) );
1863
1865 .Name( "pcbnew.Control.layerInner5" )
1866 .Scope( AS_GLOBAL )
1868 .LegacyHotkeyName( "Switch to Inner layer 5" )
1869 .FriendlyName( _( "Switch to Inner Layer 5" ) )
1870 .Flags( AF_NOTIFY )
1871 .Parameter( In5_Cu ) );
1872
1874 .Name( "pcbnew.Control.layerInner6" )
1875 .Scope( AS_GLOBAL )
1877 .LegacyHotkeyName( "Switch to Inner layer 6" )
1878 .FriendlyName( _( "Switch to Inner Layer 6" ) )
1879 .Flags( AF_NOTIFY )
1880 .Parameter( In6_Cu ) );
1881
1883 .Name( "pcbnew.Control.layerInner7" )
1884 .Scope( AS_GLOBAL )
1886 .FriendlyName( _( "Switch to Inner Layer 7" ) )
1887 .Flags( AF_NOTIFY )
1888 .Parameter( In7_Cu ) );
1889
1891 .Name( "pcbnew.Control.layerInner8" )
1892 .Scope( AS_GLOBAL )
1894 .FriendlyName( _( "Switch to Inner Layer 8" ) )
1895 .Flags( AF_NOTIFY )
1896 .Parameter( In8_Cu ) );
1897
1899 .Name( "pcbnew.Control.layerInner9" )
1900 .Scope( AS_GLOBAL )
1902 .FriendlyName( _( "Switch to Inner Layer 9" ) )
1903 .Flags( AF_NOTIFY )
1904 .Parameter( In9_Cu ) );
1905
1907 .Name( "pcbnew.Control.layerInner10" )
1908 .Scope( AS_GLOBAL )
1910 .FriendlyName( _( "Switch to Inner Layer 10" ) )
1911 .Flags( AF_NOTIFY )
1912 .Parameter( In10_Cu ) );
1913
1915 .Name( "pcbnew.Control.layerInner11" )
1916 .Scope( AS_GLOBAL )
1918 .FriendlyName( _( "Switch to Inner Layer 11" ) )
1919 .Flags( AF_NOTIFY )
1920 .Parameter( In11_Cu ) );
1921
1923 .Name( "pcbnew.Control.layerInner12" )
1924 .Scope( AS_GLOBAL )
1926 .FriendlyName( _( "Switch to Inner Layer 12" ) )
1927 .Flags( AF_NOTIFY )
1928 .Parameter( In12_Cu ) );
1929
1931 .Name( "pcbnew.Control.layerInner13" )
1932 .Scope( AS_GLOBAL )
1934 .FriendlyName( _( "Switch to Inner Layer 13" ) )
1935 .Flags( AF_NOTIFY )
1936 .Parameter( In13_Cu ) );
1937
1939 .Name( "pcbnew.Control.layerInner14" )
1940 .Scope( AS_GLOBAL )
1942 .FriendlyName( _( "Switch to Inner Layer 14" ) )
1943 .Flags( AF_NOTIFY )
1944 .Parameter( In14_Cu ) );
1945
1947 .Name( "pcbnew.Control.layerInner15" )
1948 .Scope( AS_GLOBAL )
1950 .FriendlyName( _( "Switch to Inner Layer 15" ) )
1951 .Flags( AF_NOTIFY )
1952 .Parameter( In15_Cu ) );
1953
1955 .Name( "pcbnew.Control.layerInner16" )
1956 .Scope( AS_GLOBAL )
1958 .FriendlyName( _( "Switch to Inner Layer 16" ) )
1959 .Flags( AF_NOTIFY )
1960 .Parameter( In16_Cu ) );
1961
1963 .Name( "pcbnew.Control.layerInner17" )
1964 .Scope( AS_GLOBAL )
1966 .FriendlyName( _( "Switch to Inner Layer 17" ) )
1967 .Flags( AF_NOTIFY )
1968 .Parameter( In17_Cu ) );
1969
1971 .Name( "pcbnew.Control.layerInner18" )
1972 .Scope( AS_GLOBAL )
1974 .FriendlyName( _( "Switch to Inner Layer 18" ) )
1975 .Flags( AF_NOTIFY )
1976 .Parameter( In18_Cu ) );
1977
1979 .Name( "pcbnew.Control.layerInner19" )
1980 .Scope( AS_GLOBAL )
1982 .FriendlyName( _( "Switch to Inner Layer 19" ) )
1983 .Flags( AF_NOTIFY )
1984 .Parameter( In19_Cu ) );
1985
1987 .Name( "pcbnew.Control.layerInner20" )
1988 .Scope( AS_GLOBAL )
1990 .FriendlyName( _( "Switch to Inner Layer 20" ) )
1991 .Flags( AF_NOTIFY )
1992 .Parameter( In20_Cu ) );
1993
1995 .Name( "pcbnew.Control.layerInner21" )
1996 .Scope( AS_GLOBAL )
1998 .FriendlyName( _( "Switch to Inner Layer 21" ) )
1999 .Flags( AF_NOTIFY )
2000 .Parameter( In21_Cu ) );
2001
2003 .Name( "pcbnew.Control.layerInner22" )
2004 .Scope( AS_GLOBAL )
2006 .FriendlyName( _( "Switch to Inner Layer 22" ) )
2007 .Flags( AF_NOTIFY )
2008 .Parameter( In22_Cu ) );
2009
2011 .Name( "pcbnew.Control.layerInner23" )
2012 .Scope( AS_GLOBAL )
2014 .FriendlyName( _( "Switch to Inner Layer 23" ) )
2015 .Flags( AF_NOTIFY )
2016 .Parameter( In23_Cu ) );
2017
2019 .Name( "pcbnew.Control.layerInner24" )
2020 .Scope( AS_GLOBAL )
2022 .FriendlyName( _( "Switch to Inner Layer 24" ) )
2023 .Flags( AF_NOTIFY )
2024 .Parameter( In24_Cu ) );
2025
2027 .Name( "pcbnew.Control.layerInner25" )
2028 .Scope( AS_GLOBAL )
2030 .FriendlyName( _( "Switch to Inner Layer 25" ) )
2031 .Flags( AF_NOTIFY )
2032 .Parameter( In25_Cu ) );
2033
2035 .Name( "pcbnew.Control.layerInner26" )
2036 .Scope( AS_GLOBAL )
2038 .FriendlyName( _( "Switch to Inner Layer 26" ) )
2039 .Flags( AF_NOTIFY )
2040 .Parameter( In26_Cu ) );
2041
2043 .Name( "pcbnew.Control.layerInner27" )
2044 .Scope( AS_GLOBAL )
2046 .FriendlyName( _( "Switch to Inner Layer 27" ) )
2047 .Flags( AF_NOTIFY )
2048 .Parameter( In27_Cu ) );
2049
2051 .Name( "pcbnew.Control.layerInner28" )
2052 .Scope( AS_GLOBAL )
2054 .FriendlyName( _( "Switch to Inner Layer 28" ) )
2055 .Flags( AF_NOTIFY )
2056 .Parameter( In28_Cu ) );
2057
2059 .Name( "pcbnew.Control.layerInner29" )
2060 .Scope( AS_GLOBAL )
2062 .FriendlyName( _( "Switch to Inner Layer 29" ) )
2063 .Flags( AF_NOTIFY )
2064 .Parameter( In29_Cu ) );
2065
2067 .Name( "pcbnew.Control.layerInner30" )
2068 .Scope( AS_GLOBAL )
2070 .FriendlyName( _( "Switch to Inner Layer 30" ) )
2071 .Flags( AF_NOTIFY )
2072 .Parameter( In30_Cu ) );
2073
2075 .Name( "pcbnew.Control.layerBottom" )
2076 .Scope( AS_GLOBAL )
2078 .DefaultHotkey( WXK_PAGEDOWN )
2079 .LegacyHotkeyName( "Switch to Copper (B.Cu) layer" )
2080 .FriendlyName( _( "Switch to Copper (B.Cu) Layer" ) )
2081 .Flags( AF_NOTIFY )
2082 .Parameter( B_Cu ) );
2083
2085 .Name( "pcbnew.Control.layerNext" )
2086 .Scope( AS_GLOBAL )
2087 .DefaultHotkey( '+' )
2088 .LegacyHotkeyName( "Switch to Next Layer" )
2089 .FriendlyName( _( "Switch to Next Layer" ) )
2090 .Flags( AF_NOTIFY ) );
2091
2093 .Name( "pcbnew.Control.layerPrev" )
2094 .Scope( AS_GLOBAL )
2095 .DefaultHotkey( '-' )
2096 .LegacyHotkeyName( "Switch to Previous Layer" )
2097 .FriendlyName( _( "Switch to Previous Layer" ) )
2098 .Flags( AF_NOTIFY ) );
2099
2101 .Name( "pcbnew.Control.layerToggle" )
2102 .Scope( AS_GLOBAL )
2103 .DefaultHotkey( 'V' )
2104 .LegacyHotkeyName( "Add Through Via" )
2105 .FriendlyName( _( "Toggle Layer" ) )
2106 .Tooltip( _( "Switch between layers in active layer pair" ) )
2107 .Flags( AF_NOTIFY ) );
2108
2110 .Name( "pcbnew.Control.layerAlphaInc" )
2111 .Scope( AS_GLOBAL )
2112 .DefaultHotkey( '}' )
2113 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2114 .LegacyHotkeyName( "Increment Layer Transparency (Modern Toolset only)" )
2115 .FriendlyName( _( "Increase Layer Opacity" ) )
2116 .Tooltip( _( "Make the current layer less transparent" ) )
2117 .Icon( BITMAPS::contrast_mode ) );
2118
2120 .Name( "pcbnew.Control.layerAlphaDec" )
2121 .Scope( AS_GLOBAL )
2122 .DefaultHotkey( '{' )
2123 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2124 .LegacyHotkeyName( "Decrement Layer Transparency (Modern Toolset only)" )
2125 .FriendlyName( _( "Decrease Layer Opacity" ) )
2126 .Tooltip( _( "Make the current layer more transparent" ) )
2127 .Icon( BITMAPS::contrast_mode ) );
2128
2130 .Name( "pcbnew.Control.layerPairPresetCycle" )
2131 .Scope( AS_GLOBAL )
2132 .DefaultHotkey( MD_SHIFT + 'V' )
2133 .FriendlyName( _( "Cycle Layer Pair Presets" ) )
2134 .Tooltip( _( "Cycle between preset layer pairs" ) ) );
2135
2137 .Name( "pcbnew.Control.layerChanged" )
2138 .Scope( AS_GLOBAL )
2139 .Flags( AF_NOTIFY ) );
2140
2141//Show board statistics tool
2143 .Name( "pcbnew.InspectionTool.ShowBoardStatistics" )
2144 .Scope( AS_GLOBAL )
2145 .FriendlyName( _( "Show Board Statistics" ) )
2146 .Tooltip( _( "Shows board statistics" ) )
2147 .Icon( BITMAPS::editor ) );
2148
2150 .Name( "pcbnew.InspectionTool.InspectClearance" )
2151 .Scope( AS_GLOBAL )
2152 .FriendlyName( _( "Clearance Resolution" ) )
2153 .Tooltip( _( "Show clearance resolution for the active layer between two selected objects" ) )
2154 .Icon( BITMAPS::mw_add_gap ) );
2155
2157 .Name( "pcbnew.InspectionTool.InspectConstraints" )
2158 .Scope( AS_GLOBAL )
2159 .FriendlyName( _( "Constraints Resolution" ) )
2160 .Tooltip( _( "Show constraints resolution for the selected object" ) )
2161 .Icon( BITMAPS::mw_add_stub ) );
2162
2164 .Name( "pcbnew.InspectionTool.DiffFootprint" )
2165 .Scope( AS_GLOBAL )
2166 .FriendlyName( _( "Compare Footprint with Library" ) )
2167 .Tooltip( _( "Show differences between board footprint and its library equivalent" ) )
2168 .Icon( BITMAPS::library ) );
2169
2171 .Name( "pcbnew.InspectionTool.ShowFootprintAssociations" )
2172 .Scope( AS_GLOBAL )
2173 .FriendlyName( _( "Show Footprint Associations" ) )
2174 .Tooltip( _( "Show footprint library and schematic symbol associations" ) )
2176
2177//Geographic re-annotation tool
2179 .Name( "pcbnew.ReannotateTool.ShowReannotateDialog" )
2180 .Scope( AS_GLOBAL )
2181 .FriendlyName( _( "Geographical Reannotate..." ) )
2182 .Tooltip( _( "Reannotate PCB in geographical order" ) )
2183 .Icon( BITMAPS::annotate ) );
2184
2186 .Name( "pcbnew.Control.repairBoard" )
2187 .Scope( AS_GLOBAL )
2188 .FriendlyName( _( "Repair Board" ) )
2189 .Tooltip( _( "Run various diagnostics and attempt to repair board" ) )
2190 .Icon( BITMAPS::rescue )
2191 .Parameter( false ) ); // Don't repair quietly
2192
2194 .Name( "pcbnew.ModuleEditor.repairFootprint" )
2195 .Scope( AS_GLOBAL )
2196 .FriendlyName( _( "Repair Footprint" ) )
2197 .Tooltip( _( "Run various diagnostics and attempt to repair footprint" ) )
2198 .Icon( BITMAPS::rescue ) );
2199
2200
2201// PLACEMENT_TOOL
2202//
2204 .Name( "pcbnew.AlignAndDistribute.alignTop" )
2205 .Scope( AS_GLOBAL )
2206 .FriendlyName( _( "Align to Top" ) )
2207 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
2208 .Icon( BITMAPS::align_items_top ) );
2209
2211 .Name( "pcbnew.AlignAndDistribute.alignBottom" )
2212 .Scope( AS_GLOBAL )
2213 .FriendlyName( _( "Align to Bottom" ) )
2214 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
2215 .Icon( BITMAPS::align_items_bottom ) );
2216
2218 .Name( "pcbnew.AlignAndDistribute.alignLeft" )
2219 .Scope( AS_GLOBAL )
2220 .FriendlyName( _( "Align to Left" ) )
2221 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
2222 .Icon( BITMAPS::align_items_left ) );
2223
2225 .Name( "pcbnew.AlignAndDistribute.alignRight" )
2226 .Scope( AS_GLOBAL )
2227 .FriendlyName( _( "Align to Right" ) )
2228 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
2229 .Icon( BITMAPS::align_items_right ) );
2230
2232 .Name( "pcbnew.AlignAndDistribute.alignCenterY" )
2233 .Scope( AS_GLOBAL )
2234 .FriendlyName( _( "Align to Vertical Center" ) )
2235 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
2236 .Icon( BITMAPS::align_items_center ) );
2237
2239 .Name( "pcbnew.AlignAndDistribute.alignCenterX" )
2240 .Scope( AS_GLOBAL )
2241 .FriendlyName( _( "Align to Horizontal Center" ) )
2242 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
2243 .Icon( BITMAPS::align_items_middle ) );
2244
2246 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyCenters" )
2247 .Scope( AS_GLOBAL )
2248 .FriendlyName( _( "Distribute Horizontally by Centers" ) )
2249 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item"
2250 "so that the item centers are equally distributed" ) )
2252
2254 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyGaps" )
2255 .Scope( AS_GLOBAL )
2256 .FriendlyName( _( "Distribute Horizontally with Even Gaps" ) )
2257 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
2258 "so that the gaps between items are equal" ) )
2260
2262 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyGaps" )
2263 .Scope( AS_GLOBAL )
2264 .FriendlyName( _( "Distribute Vertically with Even Gaps" ) )
2265 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2266 "so that the gaps between items are equal" ) )
2268
2270 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyCenters" )
2271 .Scope( AS_GLOBAL )
2272 .FriendlyName( _( "Distribute Vertically by Centers" ) )
2273 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2274 "so that the item centers are equally distributed" ) )
2276
2277// PCB_POINT_EDITOR
2278//
2280 .Name( "pcbnew.PointEditor.addCorner" )
2281 .Scope( AS_GLOBAL )
2282#ifdef __WXMAC__
2283 .DefaultHotkey( WXK_F1 )
2284#else
2285 .DefaultHotkey( WXK_INSERT )
2286#endif
2287 .FriendlyName( _( "Create Corner" ) )
2288 .Tooltip( _( "Create a corner" ) )
2289 .Icon( BITMAPS::add_corner ) );
2290
2292 .Name( "pcbnew.PointEditor.removeCorner" )
2293 .Scope( AS_GLOBAL )
2294 .FriendlyName( _( "Remove Corner" ) )
2295 .Tooltip( _( "Remove corner" ) )
2296 .Icon( BITMAPS::delete_cursor ) );
2297
2299 .Name( "pcbnew.PointEditor.chamferCorner" )
2300 .Scope( AS_GLOBAL )
2301 .FriendlyName( _( "Chamfer Corner" ) )
2302 .Tooltip( _( "Chamfer corner" ) )
2303 .Icon( BITMAPS::chamfer ) );
2304
2305// POSITION_RELATIVE_TOOL
2306//
2308 .Name( "pcbnew.PositionRelative.positionRelative" )
2309 .Scope( AS_GLOBAL )
2310 .DefaultHotkey( MD_SHIFT + 'P' )
2311 .LegacyHotkeyName( "Position Item Relative" )
2312 .FriendlyName( _( "Position Relative To..." ) )
2313 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another" ) )
2314 .Icon( BITMAPS::move_relative ) );
2315
2317 .Name( "pcbnew.PositionRelative.positionRelativeInteractively" )
2318 .Scope( AS_GLOBAL )
2319 .FriendlyName( _( "Position Interactively..." ) )
2320 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another, interactively" ) )
2321 .Icon( BITMAPS::move_relative ) );
2322
2323// PCIKER_TOOL
2324//
2326 .Name( "pcbnew.Picker.selectItemInteractively" )
2327 .Scope( AS_GLOBAL )
2328 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ) );
2329
2331 .Name( "pcbnew.Picker.selectPointInteractively" )
2332 .Scope( AS_GLOBAL )
2333 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ));
2334
2335
2337 .Name( "pcbnew.InteractiveSelection.SelectConnection" )
2338 .Scope( AS_GLOBAL )
2339 .DefaultHotkey( 'U' )
2340 .LegacyHotkeyName( "Select Single Track" )
2341 .FriendlyName( _( "Select/Expand Connection" ) )
2342 .Tooltip( _( "Selects a connection or expands an existing selection to junctions, pads, or entire connections" ) )
2343 .Icon( BITMAPS::add_tracks ) );
2344
2346 .Name( "pcbnew.InteractiveSelection.unrouteSelected" )
2347 .Scope( AS_GLOBAL )
2348 .FriendlyName( _( "Unroute Selected" ) )
2349 .Tooltip( _( "Unroutes selected items to the nearest pad." ) )
2350 .Icon( BITMAPS::general_deletions ) );
2351
2353 .Name( "pcbnew.InteractiveSelection.unrouteSegment" )
2354 .Scope( AS_GLOBAL )
2355 .DefaultHotkey( WXK_BACK )
2356 .FriendlyName( _( "Unroute Segment" ) )
2357 .Tooltip( _( "Unroutes segment to the nearest segment." ) )
2358 .Icon( BITMAPS::general_deletions ) );
2359
2361 .Name( "pcbnew.InteractiveSelection.SyncSelection" )
2362 .Scope( AS_GLOBAL ) );
2363
2365 .Name( "pcbnew.InteractiveSelection.SyncSelectionWithNets" )
2366 .Scope( AS_GLOBAL ) );
2367
2369 .Name( "pcbnew.InteractiveSelection.SelectNet" )
2370 .Scope( AS_GLOBAL )
2371 .FriendlyName( _( "Select All Tracks in Net" ) )
2372 .Tooltip( _( "Selects all tracks & vias belonging to the same net." ) )
2373 .Parameter<int>( 0 ) );
2374
2376 .Name( "pcbnew.InteractiveSelection.DeselectNet" )
2377 .Scope( AS_GLOBAL )
2378 .FriendlyName( _( "Deselect All Tracks in Net" ) )
2379 .Tooltip( _( "Deselects all tracks & vias belonging to the same net." ) )
2380 .Parameter<int>( 0 ) );
2381
2383 .Name( "pcbnew.InteractiveSelection.SelectUnconnected" )
2384 .Scope( AS_GLOBAL )
2385 .DefaultHotkey( 'O' )
2386 .FriendlyName( _( "Select All Unconnected Footprints" ) )
2387 .Tooltip( _( "Selects all unconnected footprints belonging to each selected net." ) ) );
2388
2390 .Name( "pcbnew.InteractiveSelection.GrabUnconnected" )
2391 .Scope( AS_GLOBAL )
2392 .DefaultHotkey( MD_SHIFT + 'O' )
2393 .FriendlyName( _( "Grab Nearest Unconnected Footprints" ) )
2394 .Tooltip( _( "Selects and initiates moving the nearest unconnected footprint on each selected net." ) ) );
2395
2397 .Name( "pcbnew.InteractiveSelection.SelectOnSheet" )
2398 .Scope( AS_GLOBAL )
2399 .FriendlyName( _( "Sheet" ) )
2400 .Tooltip( _( "Selects all footprints and tracks in the schematic sheet" ) )
2401 .Icon( BITMAPS::select_same_sheet ) );
2402
2404 .Name( "pcbnew.InteractiveSelection.SelectSameSheet" )
2405 .Scope( AS_GLOBAL )
2406 .FriendlyName( _( "Items in Same Hierarchical Sheet" ) )
2407 .Tooltip( _( "Selects all footprints and tracks in the same schematic sheet" ) )
2408 .Icon( BITMAPS::select_same_sheet ) );
2409
2411 .Name( "pcbnew.InteractiveSelection.SelectOnSchematic" )
2412 .Scope( AS_GLOBAL )
2413 .FriendlyName( _( "Select on Schematic" ) )
2414 .Tooltip( _( "Selects corresponding items in Schematic editor" ) )
2415 .Icon( BITMAPS::select_same_sheet ) );
2416
2418 .Name( "pcbnew.InteractiveSelection.FilterSelection" )
2419 .Scope( AS_GLOBAL )
2420 .FriendlyName( _( "Filter Selected Items..." ) )
2421 .Tooltip( _( "Remove items from the selection by type" ) )
2422 .Icon( BITMAPS::filter ) );
2423
2424
2425// ZONE_FILLER_TOOL
2426//
2428 .Name( "pcbnew.ZoneFiller.zoneFill" )
2429 .Scope( AS_GLOBAL )
2430 .FriendlyName( _( "Draft Fill Selected Zone(s)" ) )
2431 .Tooltip( _( "Update copper fill of selected zone(s) without regard to other interacting zones" ) )
2432 .Icon( BITMAPS::fill_zone )
2433 .Parameter<ZONE*>( nullptr ) );
2434
2436 .Name( "pcbnew.ZoneFiller.zoneFillAll" )
2437 .Scope( AS_GLOBAL )
2438 .DefaultHotkey( 'B' )
2439 .LegacyHotkeyName( "Fill or Refill All Zones" )
2440 .FriendlyName( _( "Fill All Zones" ) )
2441 .Tooltip( _( "Update copper fill of all zones" ) )
2442 .Icon( BITMAPS::fill_zone ) );
2443
2445 .Name( "pcbnew.ZoneFiller.zoneFillDirty" )
2446 .Scope( AS_CONTEXT ) );
2447
2449 .Name( "pcbnew.ZoneFiller.zoneUnfill" )
2450 .Scope( AS_GLOBAL )
2451 .FriendlyName( _( "Unfill Selected Zone(s)" ) )
2452 .Tooltip( _( "Remove copper fill from selected zone(s)" ) )
2453 .Icon( BITMAPS::zone_unfill ) );
2454
2456 .Name( "pcbnew.ZoneFiller.zoneUnfillAll" )
2457 .Scope( AS_GLOBAL )
2458 .DefaultHotkey( MD_CTRL + 'B' )
2459 .LegacyHotkeyName( "Remove Filled Areas in All Zones" )
2460 .FriendlyName( _( "Unfill All Zones" ) )
2461 .Tooltip( _( "Remove copper fill from all zones" ) )
2462 .Icon( BITMAPS::zone_unfill ) );
2463
2464
2465// AUTOPLACER_TOOL
2466//
2468 .Name( "pcbnew.Autoplacer.autoplaceSelected" )
2469 .Scope( AS_GLOBAL )
2470 .FriendlyName( _( "Place Selected Footprints" ) )
2471 .Tooltip( _( "Performs automatic placement of selected components" ) ) );
2472
2474 .Name( "pcbnew.Autoplacer.autoplaceOffboard" )
2475 .Scope( AS_GLOBAL )
2476 .FriendlyName( _( "Place Off-Board Footprints" ) )
2477 .Tooltip( _( "Performs automatic placement of components outside board area" ) ) );
2478
2480 .Name( "pcbnew.Multichannel.generatePlacementRuleAreas" )
2481 .Scope( AS_GLOBAL )
2482 .FriendlyName( _( "Generate Placement Rule Areas..." ) )
2483 .Tooltip( _( "Creates best-fit placement rule areas" ) )
2485 .Flags( AF_ACTIVATE ) );
2486
2488 .Name( "pcbnew.Multichannel.repeatLayout" )
2489 .Scope( AS_GLOBAL )
2490 .FriendlyName( _( "Repeat Layout..." ) )
2491 .Tooltip( _( "Clones placement & routing across multiple identical channels" ) )
2492 .Icon( BITMAPS::copy )
2493 );
2494
2495// ROUTER_TOOL
2496//
2498 .Name( "pcbnew.InteractiveRouter.SingleTrack" )
2499 .Scope( AS_GLOBAL )
2500 .DefaultHotkey( 'X' )
2501 .LegacyHotkeyName( "Add New Track" )
2502 .FriendlyName( _( "Route Single Track" ) )
2503 .Tooltip( _( "Route tracks" ) )
2504 .Icon( BITMAPS::add_tracks )
2505 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2506 .Flags( AF_ACTIVATE )
2507 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2508
2510 .Name( "pcbnew.InteractiveRouter.DiffPair" )
2511 .Scope( AS_GLOBAL )
2512 .DefaultHotkey( '6' )
2513 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2514 .LegacyHotkeyName( "Route Differential Pair (Modern Toolset only)" )
2515 .FriendlyName( _( "Route Differential Pair" ) )
2516 .Tooltip( _( "Route differential pairs" ) )
2517 .Icon( BITMAPS::ps_diff_pair )
2518 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2519 .Flags( AF_ACTIVATE )
2520 .Parameter( PNS::PNS_MODE_ROUTE_DIFF_PAIR ) );
2521
2523 .Name( "pcbnew.InteractiveRouter.SettingsDialog" )
2524 .Scope( AS_GLOBAL )
2525 .DefaultHotkey( MD_CTRL + '<' )
2526 .LegacyHotkeyName( "Routing Options" )
2527 .FriendlyName( _( "Interactive Router Settings..." ) )
2528 .Tooltip( _( "Open Interactive Router settings" ) )
2529 .Icon( BITMAPS::tools ) );
2530
2532 .Name( "pcbnew.InteractiveRouter.DiffPairDialog" )
2533 .Scope( AS_GLOBAL )
2534 .FriendlyName( _( "Differential Pair Dimensions..." ) )
2535 .Tooltip( _( "Open Differential Pair Dimension settings" ) )
2536 .Icon( BITMAPS::ps_diff_pair_gap ) );
2537
2539 .Name( "pcbnew.InteractiveRouter.HighlightMode" )
2540 .Scope( AS_GLOBAL )
2541 .FriendlyName( _( "Router Highlight Mode" ) )
2542 .Tooltip( _( "Switch router to highlight mode" ) )
2543 .Flags( AF_NONE )
2544 .Parameter( PNS::RM_MarkObstacles ) );
2545
2547 .Name( "pcbnew.InteractiveRouter.ShoveMode" )
2548 .Scope( AS_GLOBAL )
2549 .FriendlyName( _( "Router Shove Mode" ) )
2550 .Tooltip( _( "Switch router to shove mode" ) )
2551 .Flags( AF_NONE )
2552 .Parameter( PNS::RM_Shove ) );
2553
2555 .Name( "pcbnew.InteractiveRouter.WalkaroundMode" )
2556 .Scope( AS_GLOBAL )
2557 .FriendlyName( _( "Router Walkaround Mode" ) )
2558 .Tooltip( _( "Switch router to walkaround mode" ) )
2559 .Flags( AF_NONE )
2560 .Parameter( PNS::RM_Walkaround ) );
2561
2563 .Name( "pcbnew.InteractiveRouter.CycleRouterMode" )
2564 .Scope( AS_GLOBAL )
2565 .FriendlyName( _( "Cycle Router Mode" ) )
2566 .Tooltip( _( "Cycle router to the next mode" ) ) );
2567
2569 .Name( "pcbnew.InteractiveRouter.SelectLayerPair" )
2570 .Scope( AS_GLOBAL )
2571 .FriendlyName( _( "Set Layer Pair..." ) )
2572 .Tooltip( _( "Change active layer pair for routing" ) )
2574 .Flags( AF_ACTIVATE ) );
2575
2577 .Name( "pcbnew.LengthTuner.TuneSingleTrack" )
2578 .Scope( AS_GLOBAL )
2579 .DefaultHotkey( '7' )
2580 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2581 .LegacyHotkeyName( "Tune Single Track (Modern Toolset only)" )
2582 .FriendlyName( _( "Tune Length of a Single Track" ) )
2584 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2585 .Flags( AF_ACTIVATE )
2586 .Parameter( PNS::PNS_MODE_TUNE_SINGLE ) );
2587
2589 .Name( "pcbnew.LengthTuner.TuneDiffPair" )
2590 .Scope( AS_GLOBAL )
2591 .DefaultHotkey( '8' )
2592 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2593 .LegacyHotkeyName( "Tune Differential Pair Length (Modern Toolset only)" )
2594 .FriendlyName( _( "Tune Length of a Differential Pair" ) )
2596 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2597 .Flags( AF_ACTIVATE )
2598 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR ) );
2599
2601 .Name( "pcbnew.LengthTuner.TuneDiffPairSkew" )
2602 .Scope( AS_GLOBAL )
2603 .DefaultHotkey( '9' )
2604 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2605 .LegacyHotkeyName( "Tune Differential Pair Skew (Modern Toolset only)" )
2606 .FriendlyName( _( "Tune Skew of a Differential Pair" ) )
2608 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2609 .Flags( AF_ACTIVATE )
2610 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW ) );
2611
2613 .Name( "pcbnew.InteractiveRouter.InlineDrag" )
2614 .Scope( AS_CONTEXT )
2615 .Parameter<int>( PNS::DM_ANY ) );
2616
2618 .Name( "pcbnew.InteractiveRouter.UndoLastSegment" )
2619 .Scope( AS_CONTEXT )
2620 .DefaultHotkey( WXK_BACK )
2621 .FriendlyName( _( "Undo Last Segment" ) )
2622 .Tooltip( _( "Walks the current track back one segment." ) ) );
2623
2625 .Name( "pcbnew.InteractiveRouter.ContinueFromEnd" )
2626 .Scope( AS_CONTEXT )
2627 .DefaultHotkey( MD_CTRL + 'E' )
2628 .FriendlyName( _( "Route From Other End" ) )
2629 .Tooltip( _( "Commits current segments and starts next segment from nearest ratsnest end." ) ) );
2630
2632 .Name( "pcbnew.InteractiveRouter.AttemptFinish" )
2633 .Scope( AS_CONTEXT )
2634 .DefaultHotkey( 'F' )
2635 .FriendlyName( _( "Attempt Finish" ) )
2636 .Tooltip( _( "Attempts to complete current route to nearest ratsnest end." ) )
2637 .Parameter<bool*>( nullptr ) );
2638
2640 .Name( "pcbnew.InteractiveRouter.RouteSelected" )
2641 .Scope( AS_GLOBAL )
2642 .DefaultHotkey( MD_SHIFT + 'X' )
2643 .FriendlyName( _( "Route Selected" ) )
2644 .Tooltip( _( "Sequentially route selected items from ratsnest anchor." ) )
2645 .Flags( AF_ACTIVATE )
2646 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2647
2649 .Name( "pcbnew.InteractiveRouter.RouteSelectedFromEnd" )
2650 .Scope( AS_GLOBAL )
2651 .DefaultHotkey( MD_SHIFT + 'E' )
2652 .FriendlyName( _( "Route Selected From Other End" ) )
2653 .Tooltip( _( "Sequentially route selected items from other end of ratsnest anchor." ) )
2654 .Flags( AF_ACTIVATE )
2655 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2656
2658 .Name( "pcbnew.InteractiveRouter.Autoroute" )
2659 .Scope( AS_GLOBAL )
2660 .DefaultHotkey( MD_SHIFT + 'F' )
2661 .FriendlyName( _( "Attempt Finish Selected (Autoroute)" ) )
2662 .Tooltip( _( "Sequentially attempt to automatically route all selected pads." ) )
2663 .Flags( AF_ACTIVATE )
2664 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2665
2667 .Name( "pcbnew.InteractiveRouter.BreakTrack" )
2668 .Scope( AS_GLOBAL )
2669 .FriendlyName( _( "Break Track" ) )
2670 .Tooltip( _( "Splits the track segment into two segments connected at the cursor position." ) )
2671 .Icon( BITMAPS::break_line ) );
2672
2674 .Name( "pcbnew.InteractiveRouter.Drag45Degree" )
2675 .Scope( AS_GLOBAL )
2676 .DefaultHotkey( 'D' )
2677 .LegacyHotkeyName( "Drag Track Keep Slope" )
2678 .FriendlyName( _( "Drag 45 Degree Mode" ) )
2679 .Tooltip( _( "Drags the track segment while keeping connected tracks at 45 degrees." ) )
2681
2683 .Name( "pcbnew.InteractiveRouter.DragFreeAngle" )
2684 .Scope( AS_GLOBAL )
2685 .DefaultHotkey( 'G' )
2686 .LegacyHotkeyName( "Drag Item" )
2687 .FriendlyName( _( "Drag Free Angle" ) )
2688 .Tooltip( _( "Drags the nearest joint in the track without restricting the track angle." ) )
2689 .Icon( BITMAPS::drag_segment ) );
2690
2691
2692// GENERATOR_TOOL
2693//
2694
2696 .Name( "pcbnew.Generator.regenerateAllTuning" )
2697 .Scope( AS_GLOBAL )
2698 .FriendlyName( _( "Update All Tuning Patterns" ) )
2699 .Tooltip( _( "Attempt to re-tune existing tuning patterns within their bounds" ) )
2701 .Parameter( wxString( wxS( "tuning_pattern" ) ) ) );
2702
2704 .Name( "pcbnew.Generator.regenerateAll" )
2705 .Scope( AS_GLOBAL )
2706 .FriendlyName( _( "Rebuild All Generators" ) )
2707 .Tooltip( _( "Rebuilds geometry of all generators" ) )
2708 .Icon( BITMAPS::refresh )
2709 .Parameter( wxString( wxS( "*" ) ) ) );
2710
2712 .Name( "pcbnew.Generator.regenerateSelected" )
2713 .Scope( AS_GLOBAL )
2714 .FriendlyName( _( "Rebuild Selected Generators" ) )
2715 .Tooltip( _( "Rebuilds geometry of selected generator(s)" ) )
2716 .Icon( BITMAPS::refresh ) );
2717
2718
2720 .Name( "pcbnew.Generator.genStartEdit" )
2721 .Scope( AS_CONTEXT ) );
2722
2724 .Name( "pcbnew.Generator.genUpdateEdit" )
2725 .Scope( AS_CONTEXT ) );
2726
2728 .Name( "pcbnew.Generator.genFinishEdit" )
2729 .Scope( AS_CONTEXT ) );
2730
2732 .Name( "pcbnew.Generator.genCacnelEdit" )
2733 .Scope( AS_CONTEXT ) );
2734
2736 .Name( "pcbnew.Generator.genRemove" )
2737 .Scope( AS_CONTEXT ) );
2738
2739
2741 .Name( "pcbnew.Generator.showManager" )
2742 .Scope( AS_GLOBAL )
2743 .FriendlyName( _( "Generators Manager" ) )
2744 .Tooltip( _( "Show a manager dialog for Generator objects" ) )
2745 .Icon( BITMAPS::pin_table ) );
2746
2747
2748// LENGTH_TUNER_TOOL
2749//
2751 .Name( "pcbnew.LengthTuner.Settings" )
2752 .Scope( AS_GLOBAL )
2753 .DefaultHotkey( MD_CTRL + 'L' )
2754 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2755 .LegacyHotkeyName( "Length Tuning Settings (Modern Toolset only)" )
2756 .MenuText( _( "Length Tuning Settings..." ) )
2757 .Tooltip( _( "Displays tuning pattern properties dialog" ) )
2759
2760// Drag and drop
2762 .Name( "pcbnew.Control.DdAppendBoard" )
2763 .Scope( AS_GLOBAL ) );
2764
2766 .Name( "pcbnew.Control.ddImportFootprint" )
2767 .Scope( AS_GLOBAL ) );
2768
2770 .Name( "pcbnew.InteractiveDrawing.ddImportGraphics" )
2771 .Scope( AS_GLOBAL ) );
2772
2773// actions for footprint wizard frame
2775 .Name( "pcbnew.FpWizard.showWizards" )
2776 .Scope( AS_GLOBAL )
2777 .FriendlyName( _( "Show wizards selector" ) )
2778 .Tooltip( _( "Select wizard script to run" ) )
2779 .Icon( BITMAPS::module_wizard ) );
2780
2782 .Name( "pcbnew.FpWizard.resetWizardPrms" )
2783 .Scope( AS_GLOBAL )
2784 .FriendlyName( _( "Reset wizard parameters" ) )
2785 .Tooltip( _( "Reset wizard parameters to default" ) )
2786 .Icon( BITMAPS::reload ) );
2787
2789 .Name( "pcbnew.FpWizard.selectPreviousWizardPage" )
2790 .Scope( AS_GLOBAL )
2791 .FriendlyName( _( "Select previous wizard page" ) )
2792 .Tooltip( _( "Select previous parameters page" ) )
2793 .Icon( BITMAPS::lib_previous ) );
2794
2796 .Name( "pcbnew.FpWizard.selectNextWizardPage" )
2797 .Scope( AS_GLOBAL )
2798 .FriendlyName( _( "Select next wizard page" ) )
2799 .Tooltip( _( "Select next parameters page" ) )
2800 .Icon( BITMAPS::lib_next ) );
2801
2803 .Name( "pcbnew.FpWizard.exportFpToEditor" )
2804 .Scope( AS_GLOBAL )
2805 .FriendlyName( _( "Export footprint to editor" ) )
2806 .Tooltip( _( "Export footprint to editor" ) )
2808
2809
2811{
2812 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
2813 "common.Interactive.snappingModeChangedByKey" );
2814
2815 return event;
2816}
2817
2818
2820{
2821 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
2822 "pcbnew.Control.layerPairPresetChangedByKey" );
2823
2824 return event;
2825}
@ copy_pad_settings
@ add_zone_cutout
@ cleanup_tracks_and_vias
@ general_deletions
@ align_items_bottom
@ align_items_left
@ show_zone_outline_only
@ push_pad_settings
@ distribute_horizontal_centers
@ distribute_vertical_centers
@ ps_diff_pair_tune_length
@ add_graphical_polygon
@ align_items_middle
@ distribute_horizontal_gaps
@ add_radial_dimension
@ auto_track_width
@ router_len_tuner_dist_incr
@ subtract_polygons
@ align_items_top
@ curved_ratsnest
@ router_len_tuner_dist_decr
@ add_aligned_dimension
@ general_ratsnest
@ add_rectangle
@ outset_from_selection
@ mw_add_stub_arc
@ align_items_right
@ insert_module_board
@ apply_pad_settings
@ 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:305
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 drawOrthogonalDimension
static TOOL_ACTION zoneDisplayToggle
static TOOL_ACTION enumeratePads
Tool for quick pad enumeration.
static TOOL_ACTION drawRectangle
static TOOL_ACTION previousFootprint
static TOOL_ACTION layerInner3
static TOOL_ACTION layerPrev
static TOOL_ACTION setAnchor
static TOOL_ACTION padDisplayMode
static TOOL_ACTION placeReferenceImage
static TOOL_ACTION routerSettingsDialog
Activation of the Push and Shove settings dialogs.
static TOOL_ACTION showRatsnest
static TOOL_ACTION exportGenCAD
static TOOL_ACTION zoneFillAll
static TOOL_ACTION layerInner2
static TOOL_ACTION showLayersManager
static TOOL_ACTION changeTrackWidth
Update selected tracks & vias to the current track & via dimensions.
static TOOL_ACTION trackWidthDec
static TOOL_ACTION routerAttemptFinish
static TOOL_ACTION convertToKeepout
static TOOL_ACTION toggleNetHighlight
static TOOL_ACTION generateDrillFiles
static TOOL_ACTION pushPadSettings
Copy the current pad's settings to other pads in the footprint or on the board.
static TOOL_ACTION unrouteSelected
Removes all tracks from the selected items to the first pad.
Definition pcb_actions.h:76
static TOOL_ACTION saveSelectionAsDesignBlock
static TOOL_ACTION drawCircle
static TOOL_ACTION magneticSnapAllLayers
static TOOL_ACTION mirrorH
Mirroring of selected items.
static TOOL_ACTION routeDiffPair
Activation of the Push and Shove router (differential pair mode)
static TOOL_ACTION exportVRML
static TOOL_ACTION generateD356File
static TOOL_ACTION updateFootprint
static TOOL_ACTION collect3DModels
static TOOL_ACTION tuneDiffPair
static TOOL_ACTION convertToTracks
static TOOL_ACTION exportCmpFile
static TOOL_ACTION saveToLinkedDesignBlock
static TOOL_ACTION alignTop
static TOOL_ACTION trackViaSizeChanged
static TOOL_ACTION exportSpecctraDSN
static TOOL_ACTION createFootprint
static TOOL_ACTION layerChanged
static TOOL_ACTION trackWidthInc
static TOOL_ACTION grabUnconnected
Select and move nearest unconnected footprint from ratsnest of selection.
Definition pcb_actions.h:91
static TOOL_ACTION filterSelection
Filter the items in the current selection (invokes dialog)
static TOOL_ACTION ddAppendBoard
Drag and drop.
static TOOL_ACTION editFootprint
static TOOL_ACTION exportFootprint
static TOOL_ACTION layerInner25
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 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 changeTrackLayerPrev
static TOOL_ACTION swap
Swapping of selected items.
static TOOL_ACTION toggleLastNetHighlight
static TOOL_ACTION layerInner29
static TOOL_ACTION * LayerIDToAction(PCB_LAYER_ID aLayerID)
Translate a layer ID into the action that switches to that layer.
static TOOL_ACTION drillResetOrigin
static TOOL_ACTION lineMode45
45-degree-or-orthogonal mode (icon hv45mode)
static TOOL_ACTION deleteDesignBlock
static TOOL_ACTION placeCharacteristics
static TOOL_ACTION pluginsShowFolder
Scripting Actions.
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 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:94
static TOOL_ACTION layerInner16
static TOOL_ACTION defaultPadProperties
static TOOL_ACTION selectConnection
Select tracks between junctions or expands an existing selection to pads or the entire connection.
Definition pcb_actions.h:73
static TOOL_ACTION assignNetClass
static TOOL_ACTION packAndMoveFootprints
Pack and start moving selected footprints.
static TOOL_ACTION alignRight
static TOOL_ACTION tuneSkew
static TOOL_ACTION copyWithReference
copy command with manual reference point selection
static TOOL_ACTION layerInner26
static TOOL_ACTION genCancelEdit
static TOOL_ACTION layerInner18
static TOOL_ACTION incWidth
Increase width of currently drawn line.
static TOOL_ACTION repairBoard
static TOOL_ACTION layerInner14
static TOOL_ACTION healShapes
Connect selected shapes, possibly extending or cutting them, or adding extra geometry.
static TOOL_ACTION selectPointInteractively
static TOOL_ACTION trackDisplayMode
static TOOL_ACTION exportSTEP
static TOOL_ACTION showNetInspector
static TOOL_ACTION selectLayerPair
static TOOL_ACTION magneticSnapToggle
static TOOL_ACTION microwaveCreateStubArc
static TOOL_ACTION layerInner6
static TOOL_ACTION applyDesignBlockLayout
static TOOL_ACTION dragFreeAngle
static TOOL_ACTION positionRelativeInteractively
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 placeDesignBlock
static TOOL_ACTION alignBottom
static TOOL_ACTION selectUnconnected
Select unconnected footprints from ratsnest of selection.
Definition pcb_actions.h:88
static TOOL_ACTION placeImportedGraphics
static TOOL_ACTION layerInner5
static TOOL_ACTION removeUnusedPads
static TOOL_ACTION zoneDisplayFractured
static TOOL_ACTION ratsnestModeCycle
static TOOL_ACTION drawVia
static TOOL_ACTION regenerateAll
static TOOL_ACTION showWizards
Footprint wizard frame actions:
static TOOL_ACTION applyPadSettings
Copy the default pad settings to the selected pad.
static TOOL_ACTION alignLeft
static TOOL_ACTION drawArc
static TOOL_ACTION deleteFull
static TOOL_ACTION exportIDF
static TOOL_ACTION runDRC
static TOOL_ACTION convertToPoly
static TOOL_ACTION zoneDuplicate
Duplicate zone onto another layer.
static TOOL_ACTION unrouteSegment
Removes track segment from the selected item to the next segment.
Definition pcb_actions.h:79
static TOOL_ACTION regenerateAllTuning
Generator tool.
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
static TOOL_ACTION importNetlist
static TOOL_ACTION generatePlacementRuleAreas
static TOOL_ACTION layerInner20
static TOOL_ACTION selectNextWizardPage
static TOOL_ACTION layerInner7
static TOOL_ACTION layerInner27
static TOOL_ACTION diffFootprint
static TOOL_ACTION moveIndividually
move items one-by-one
static TOOL_ACTION changeFootprints
static TOOL_ACTION outsetItems
Create outset items from selection.
static TOOL_ACTION drawSimilarZone
static TOOL_ACTION syncSelection
Sets selection to specified items, zooms to fit, if enabled.
Definition pcb_actions.h:63
static TOOL_ACTION boardSetup
static TOOL_ACTION showEeschema
static TOOL_ACTION loadFpFromBoard
static TOOL_ACTION showDesignBlockPanel
static TOOL_ACTION decWidth
Decrease width of currently drawn line.
static TOOL_ACTION drawCenterDimension
static TOOL_ACTION zoneUnfillAll
static TOOL_ACTION pasteFootprint
static TOOL_ACTION zoneFillDirty
static TOOL_ACTION 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:97
static TOOL_ACTION layerInner1
static TOOL_ACTION layerInner10
static TOOL_ACTION dogboneCorners
Add "dogbone" corners to selected lines to allow routing with a cutter radius.
static TOOL_ACTION microwaveCreateStub
static TOOL_ACTION selectNet
Select all connections belonging to a single net.
Definition pcb_actions.h:82
static TOOL_ACTION filletTracks
Fillet (i.e. adds an arc tangent to) all selected straight tracks by a user defined radius.
static TOOL_ACTION layerInner15
static TOOL_ACTION simplifyPolygons
Simplify polygon outlines.
static TOOL_ACTION arcPosture
Switch posture when drawing arc.
static TOOL_ACTION ddImportGraphics
static TOOL_ACTION microwaveCreateLine
static TOOL_ACTION footprintProperties
static TOOL_ACTION layerInner17
static TOOL_ACTION flipBoard
static TOOL_ACTION layerBottom
static TOOL_ACTION lineMode90
90-degree-only mode (icon lines90)
static TOOL_ACTION zoneDisplayOutline
static TOOL_ACTION ratsnestLineMode
static TOOL_ACTION showFootprintAssociations
static TOOL_ACTION layerInner19
static TOOL_ACTION layerInner9
static TOOL_ACTION fpAutoZoom
static TOOL_ACTION pointEditorChamferCorner
static TOOL_ACTION textOutlines
Display texts as lines.
static TOOL_ACTION resetWizardPrms
static TOOL_ACTION showPadNumbers
static TOOL_ACTION checkFootprint
static TOOL_ACTION filletLines
Fillet (i.e. adds an arc tangent to) all selected straight lines by a user defined radius.
static TOOL_ACTION highlightNetSelection
static TOOL_ACTION microwaveCreateFunctionShape
static TOOL_ACTION placeBarcode
static TOOL_ACTION saveSelectionToDesignBlock
static TOOL_ACTION placePoint
static TOOL_ACTION editLibFpInFpEditor
static TOOL_ACTION zoneMerge
static TOOL_ACTION duplicateFootprint
static TOOL_ACTION closeOutline
static TOOL_ACTION changeFootprint
static TOOL_ACTION routerInlineDrag
Activation of the Push and Shove router (inline dragging mode)
static TOOL_ACTION pointEditorRemoveCorner
static TOOL_ACTION positionRelative
static TOOL_ACTION skip
static TOOL_ACTION amplIncrease
static TOOL_ACTION move
move or drag an item
static TOOL_ACTION mirrorV
static TOOL_ACTION cutFootprint
static TOOL_ACTION amplDecrease
static TOOL_ACTION drillSetOrigin
static TOOL_ACTION unlock
static TOOL_ACTION lengthTunerSettings
static TOOL_ACTION mergePolygons
Merge multiple polygons into a single polygon.
static TOOL_ACTION syncSelectionWithNets
Sets selection to specified items with connected nets, zooms to fit, if enabled.
Definition pcb_actions.h:66
static TOOL_ACTION spacingIncrease
static TOOL_ACTION layerInner30
static TOOL_ACTION boardReannotate
static TOOL_ACTION subtractPolygons
Subtract polygons from other polygons.
static TOOL_ACTION layerTop
static TOOL_ACTION 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 saveBoardToDesignBlock
static TOOL_ACTION boardStatistics
static TOOL_ACTION saveFpToBoard
static TOOL_ACTION deselectNet
Remove all connections belonging to a single net from the active selection.
Definition pcb_actions.h:85
static TOOL_ACTION editTeardrops
static TOOL_ACTION swapGateNets
static TOOL_ACTION layerNext
static TOOL_ACTION showPythonConsole
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 alignCenterY
static TOOL_ACTION rescueAutosave
static TOOL_ACTION importSpecctraSession
static TOOL_ACTION selectPreviousWizardPage
static TOOL_ACTION selectOnSchematic
Select symbols/pins on schematic corresponding to selected footprints/pads.
static TOOL_ACTION lock
static TOOL_ACTION layerInner28
static const TOOL_EVENT & SnappingModeChangedByKeyEvent()
Hotkey feedback.
static const TOOL_EVENT & LayerPairPresetChangedByKeyEvent()
Build up the properties of a TOOL_ACTION in an incremental manner that is static-construction safe.
Define a group that can be used to group actions (and their events) of similar operations.
Definition tool_action.h:79
Represent a single user action.
Generic, UI-independent tool event.
Definition tool_event.h:171
a few functions useful in geometry calculations.
@ DEG45
45 Degree only
@ DIRECT
Unconstrained point-to-point.
@ DEG90
90 Degree only
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:60
@ In22_Cu
Definition layer_ids.h:87
@ In11_Cu
Definition layer_ids.h:76
@ In29_Cu
Definition layer_ids.h:94
@ In30_Cu
Definition layer_ids.h:95
@ In17_Cu
Definition layer_ids.h:82
@ In9_Cu
Definition layer_ids.h:74
@ In19_Cu
Definition layer_ids.h:84
@ In7_Cu
Definition layer_ids.h:72
@ In28_Cu
Definition layer_ids.h:93
@ In26_Cu
Definition layer_ids.h:91
@ B_Cu
Definition layer_ids.h:65
@ In21_Cu
Definition layer_ids.h:86
@ In23_Cu
Definition layer_ids.h:88
@ In15_Cu
Definition layer_ids.h:80
@ In2_Cu
Definition layer_ids.h:67
@ In10_Cu
Definition layer_ids.h:75
@ In4_Cu
Definition layer_ids.h:69
@ In16_Cu
Definition layer_ids.h:81
@ In24_Cu
Definition layer_ids.h:89
@ In1_Cu
Definition layer_ids.h:66
@ In13_Cu
Definition layer_ids.h:78
@ In8_Cu
Definition layer_ids.h:73
@ In14_Cu
Definition layer_ids.h:79
@ In12_Cu
Definition layer_ids.h:77
@ In27_Cu
Definition layer_ids.h:92
@ In6_Cu
Definition layer_ids.h:71
@ In5_Cu
Definition layer_ids.h:70
@ In3_Cu
Definition layer_ids.h:68
@ In20_Cu
Definition layer_ids.h:85
@ F_Cu
Definition layer_ids.h:64
@ In18_Cu
Definition layer_ids.h:83
@ In25_Cu
Definition layer_ids.h:90
@ RM_MarkObstacles
Ignore collisions, mark obstacles.
@ RM_Walkaround
Only walk around.
@ RM_Shove
Only shove.
@ PNS_MODE_ROUTE_SINGLE
Definition pns_router.h:63
@ PNS_MODE_ROUTE_DIFF_PAIR
Definition pns_router.h:64
@ PNS_MODE_TUNE_DIFF_PAIR
Definition pns_router.h:66
@ PNS_MODE_TUNE_SINGLE
Definition pns_router.h:65
@ PNS_MODE_TUNE_DIFF_PAIR_SKEW
Definition pns_router.h:67
@ DM_ANY
Definition pns_router.h:77
#define _(s)
@ SIMILAR
Add a new zone with the same settings as an existing one.
Definition pcb_actions.h:38
@ CUTOUT
Make a cutout to an existing zone.
Definition pcb_actions.h:37
@ GRAPHIC_POLYGON
Definition pcb_actions.h:39
@ ADD
Add a new zone/keepout with fresh settings.
Definition pcb_actions.h:36
@ TOGGLE
Action is a toggle button on the toolbar.
Definition tool_action.h:64
@ AS_GLOBAL
Global action (toolbar/main menu event, global shortcut)
Definition tool_action.h:49
@ AS_CONTEXT
Action belongs to a particular tool (i.e. a part of a pop-up menu)
Definition tool_action.h:47
@ AF_ACTIVATE
Action activates a tool.
Definition tool_action.h:56
@ AF_NOTIFY
Action is a notification (it is by default passed to all tools)
Definition tool_action.h:57
@ AF_NONE
Definition tool_action.h:55
@ TA_ACTION
Tool action (allows one to control tools).
Definition tool_event.h:112
@ TC_MESSAGE
Definition tool_event.h:58
@ MD_ALT
Definition tool_event.h:145
@ MD_CTRL
Definition tool_event.h:144
@ MD_SHIFT
Definition tool_event.h:143
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:695