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>
40
41// Actions, being statically-defined, require specialized I18N handling. We continue to
42// use the _() macro so that string harvesting by the I18N framework doesn't have to be
43// specialized, but we don't translate on initialization and instead do it in the getters.
44
45#undef _
46#define _(s) s
47
48// clang-format off
49
50// CONVERT_TOOL
51//
53 .Name( "pcbnew.Convert.convertToPoly" )
54 .Scope( AS_GLOBAL )
55 .FriendlyName( _( "Create Polygon from Selection..." ) )
56 .Tooltip( _( "Creates a graphic polygon from the selection" ) )
58
60 .Name( "pcbnew.Convert.convertToZone" )
61 .Scope( AS_GLOBAL )
62 .FriendlyName( _( "Create Zone from Selection..." ) )
63 .Tooltip( _( "Creates a copper zone from the selection" ) )
64 .Icon( BITMAPS::add_zone ) );
65
67 .Name( "pcbnew.Convert.convertToKeepout" )
68 .Scope( AS_GLOBAL )
69 .FriendlyName( _( "Create Rule Area from Selection..." ) )
70 .Tooltip( _( "Creates a rule area from the selection" ) )
72
74 .Name( "pcbnew.Convert.convertToLines" )
75 .Scope( AS_GLOBAL )
76 .FriendlyName( _( "Create Lines from Selection..." ) )
77 .Tooltip( _( "Creates graphic lines from the selection" ) )
78 .Icon( BITMAPS::add_line ) );
79
81 .Name( "pcbnew.Convert.convertToArc" )
82 .Scope( AS_GLOBAL )
83 .FriendlyName( _( "Create Arc from Selection" ) )
84 .Tooltip( _( "Creates an arc from the selected line segment" ) )
85 .Icon( BITMAPS::add_arc ) );
86
88 .Name( "pcbnew.Convert.convertToTracks" )
89 .Scope( AS_GLOBAL )
90 .FriendlyName( _( "Create Tracks from Selection" ) )
91 .Tooltip( _( "Creates tracks from the selected graphic lines" ) )
92 .Icon( BITMAPS::add_tracks ) );
93
95 .Name( "pcbnew.Convert.outsetItems" )
96 .Scope( AS_GLOBAL )
97 .FriendlyName( _( "Create Outsets from Selection..." ) )
98 .Tooltip( _( "Create outset lines from the selected item" ) )
100
101
102// DRAWING_TOOL
103//
105 .Name( "pcbnew.InteractiveDrawing.line" )
106 .Scope( AS_GLOBAL )
107 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'L' )
108 .LegacyHotkeyName( "Draw Line" )
109 .FriendlyName( _( "Draw Lines" ) )
110 .ToolbarState( TOOLBAR_STATE::TOGGLE )
112 .Flags( AF_ACTIVATE ) );
113
115 .Name( "pcbnew.InteractiveDrawing.graphicPolygon" )
116 .Scope( AS_GLOBAL )
117 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'P' )
118 .LegacyHotkeyName( "Draw Graphic Polygon" )
119 .FriendlyName( _( "Draw Polygons" ) )
120 .ToolbarState( TOOLBAR_STATE::TOGGLE )
122 .Flags( AF_ACTIVATE )
123 .Parameter( ZONE_MODE::GRAPHIC_POLYGON ) );
124
126 .Name( "pcbnew.InteractiveDrawing.rectangle" )
127 .Scope( AS_GLOBAL )
128 .FriendlyName( _( "Draw Rectangles" ) )
129 .ToolbarState( TOOLBAR_STATE::TOGGLE )
131 .Flags( AF_ACTIVATE ) );
132
134 .Name( "pcbnew.InteractiveDrawing.circle" )
135 .Scope( AS_GLOBAL )
136 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'C' )
137 .LegacyHotkeyName( "Draw Circle" )
138 .FriendlyName( _( "Draw Circles" ) )
139 .ToolbarState( TOOLBAR_STATE::TOGGLE )
140 .Icon( BITMAPS::add_circle )
141 .Flags( AF_ACTIVATE ) );
142
144 .Name( "pcbnew.InteractiveDrawing.arc" )
145 .Scope( AS_GLOBAL )
146 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'A' )
147 .LegacyHotkeyName( "Draw Arc" )
148 .FriendlyName( _( "Draw Arcs" ) )
149 .ToolbarState( TOOLBAR_STATE::TOGGLE )
150 .Icon( BITMAPS::add_arc )
151 .Flags( AF_ACTIVATE ) );
152
154 .Name( "pcbnew.InteractiveDrawing.bezier" )
155 .Scope( AS_GLOBAL )
156 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'B' )
157 .FriendlyName( _( "Draw Bezier Curve" ) )
158 .ToolbarState( TOOLBAR_STATE::TOGGLE )
159 .Icon( BITMAPS::add_bezier )
160 .Flags( AF_ACTIVATE ) );
161
163 .Name( "pcbnew.InteractiveDrawing.placeCharacteristics" )
164 .Scope( AS_GLOBAL )
165 .LegacyHotkeyName( "Add Board Characteristics" )
166 .FriendlyName( _( "Add Board Characteristics" ) )
167 .Tooltip( _( "Add a board characteristics table on a graphic layer" ) )
168 .ToolbarState( TOOLBAR_STATE::TOGGLE )
169 .Flags( AF_ACTIVATE ) );
170
172 .Name( "pcbnew.InteractiveDrawing.placeStackup" )
173 .Scope( AS_GLOBAL )
174 .LegacyHotkeyName( "Add Stackup Table" )
175 .FriendlyName( _( "Add Stackup Table" ) )
176 .Tooltip( _( "Add a board stackup table on a graphic layer" ) )
177 .ToolbarState( TOOLBAR_STATE::TOGGLE )
178 .Flags( AF_ACTIVATE ) );
179
181 .Name( "pcbnew.InteractiveDrawing.placePoint" )
182 .Scope( AS_GLOBAL )
183 .FriendlyName( _( "Place Point" ) )
184 .Tooltip( _( "Add reference/snap points" ) )
185 .ToolbarState( TOOLBAR_STATE::TOGGLE )
186 .Icon( BITMAPS::add_point )
187 .Flags( AF_ACTIVATE ) );
188
190 .Name( "pcbnew.InteractiveDrawing.placeReferenceImage" )
191 .Scope( AS_GLOBAL )
192 .FriendlyName( _( "Place Reference Images" ) )
193 .Tooltip( _( "Add bitmap images to be used as reference (images will not be included in any output)" ) )
194 .ToolbarState( TOOLBAR_STATE::TOGGLE )
195 .Icon( BITMAPS::image )
196 .Flags( AF_ACTIVATE )
197 .Parameter<PCB_REFERENCE_IMAGE*>( nullptr ) );
198
200 .Name( "pcbnew.InteractiveDrawing.text" )
201 .Scope( AS_GLOBAL )
202 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'T' )
203 .LegacyHotkeyName( "Add Text" )
204 .FriendlyName( _( "Draw Text" ) )
205 .ToolbarState( TOOLBAR_STATE::TOGGLE )
206 .Icon( BITMAPS::text )
207 .Flags( AF_ACTIVATE ) );
208
210 .Name( "pcbnew.InteractiveDrawing.textbox" )
211 .Scope( AS_GLOBAL )
212 .FriendlyName( _( "Draw Text Boxes" ) )
213 .ToolbarState( TOOLBAR_STATE::TOGGLE )
214 .Icon( BITMAPS::add_textbox )
215 .Flags( AF_ACTIVATE ) );
216
218 .Name( "pcbnew.InteractiveDrawing.drawTable" )
219 .Scope( AS_GLOBAL )
220 .FriendlyName( _( "Draw Tables" ) )
221 .ToolbarState( TOOLBAR_STATE::TOGGLE )
222 .Icon( BITMAPS::table )
223 .Flags( AF_ACTIVATE ) );
224
226 .Name( "pcbnew.lengthTuner.SpacingIncrease" )
227 .Scope( AS_GLOBAL )
228 .DefaultHotkey( '1' )
229 .LegacyHotkeyName( "Increase meander spacing by one step." )
230 .FriendlyName( _( "Increase Spacing" ) )
231 .Tooltip( _( "Increase tuning pattern spacing by one step." ) )
233
235 .Name( "pcbnew.lengthTuner.SpacingDecrease" )
236 .Scope( AS_GLOBAL )
237 .DefaultHotkey( '2' )
238 .LegacyHotkeyName( "Decrease meander spacing by one step." )
239 .FriendlyName( _( "Decrease Spacing" ) )
240 .Tooltip( _( "Decrease tuning pattern spacing by one step." ) )
242
244 .Name( "pcbnew.lengthTuner.AmplIncrease" )
245 .Scope( AS_GLOBAL )
246 .DefaultHotkey( '3' )
247 .LegacyHotkeyName( "Increase meander amplitude by one step." )
248 .FriendlyName( _( "Increase Amplitude" ) )
249 .Tooltip( _( "Increase tuning pattern amplitude by one step." ) )
251
253 .Name( "pcbnew.lengthTuner.AmplDecrease" )
254 .Scope( AS_GLOBAL )
255 .DefaultHotkey( '4' )
256 .LegacyHotkeyName( "Decrease meander amplitude by one step." )
257 .FriendlyName( _( "Decrease Amplitude" ) )
258 .Tooltip( _( "Decrease tuning pattern amplitude by one step." ) )
260
261
263 .Name( "pcbnew.InteractiveDrawing.alignedDimension" )
264 .Scope( AS_GLOBAL )
265 .LegacyHotkeyName( "Add Dimension" )
266 .FriendlyName( _( "Draw Aligned Dimensions" ) )
267 .ToolbarState( TOOLBAR_STATE::TOGGLE )
269 .Flags( AF_ACTIVATE ) );
270
272 .Name( "pcbnew.InteractiveDrawing.centerDimension" )
273 .Scope( AS_GLOBAL )
274 .FriendlyName( _( "Draw Center Dimensions" ) )
275 .ToolbarState( TOOLBAR_STATE::TOGGLE )
277 .Flags( AF_ACTIVATE ) );
278
280 .Name( "pcbnew.InteractiveDrawing.radialDimension" )
281 .Scope( AS_GLOBAL )
282 .FriendlyName( _( "Draw Radial Dimensions" ) )
283 .ToolbarState( TOOLBAR_STATE::TOGGLE )
285 .Flags( AF_ACTIVATE ) );
286
288 .Name( "pcbnew.InteractiveDrawing.orthogonalDimension" )
289 .Scope( AS_GLOBAL )
290 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'H' )
291 .FriendlyName( _( "Draw Orthogonal Dimensions" ) )
292 .ToolbarState( TOOLBAR_STATE::TOGGLE )
294 .Flags( AF_ACTIVATE ) );
295
297 .Name( "pcbnew.InteractiveDrawing.leader" )
298 .Scope( AS_GLOBAL )
299 .FriendlyName( _( "Draw Leaders" ) )
300 .ToolbarState( TOOLBAR_STATE::TOGGLE )
301 .Icon( BITMAPS::add_leader )
302 .Flags( AF_ACTIVATE ) );
303
305 .Name( "pcbnew.InteractiveDrawing.zone" )
306 .Scope( AS_GLOBAL )
307#ifdef __WXOSX_MAC__
308 .DefaultHotkey( MD_ALT + 'Z' )
309#else
310 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'Z' )
311#endif
312 .LegacyHotkeyName( "Add Filled Zone" )
313 .FriendlyName( _( "Draw Filled Zones" ) )
314 .ToolbarState( TOOLBAR_STATE::TOGGLE )
315 .Icon( BITMAPS::add_zone )
316 .Flags( AF_ACTIVATE )
317 .Parameter( ZONE_MODE::ADD ) );
318
320 .Name( "pcbnew.InteractiveDrawing.via" )
321 .Scope( AS_GLOBAL )
322 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'X' )
323 .LegacyHotkeyName( "Add Vias" )
324 .FriendlyName( _( "Place Vias" ) )
325 .Tooltip( _( "Place free-standing vias" ) )
326 .ToolbarState( TOOLBAR_STATE::TOGGLE )
327 .Icon( BITMAPS::add_via )
328 .Flags( AF_ACTIVATE ) );
329
331 .Name( "pcbnew.InteractiveDrawing.ruleArea" )
332 .Scope( AS_GLOBAL )
333 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'K' )
334 .LegacyHotkeyName( "Add Keepout Area" )
335 .FriendlyName( _( "Draw Rule Areas" ) )
336 .ToolbarState( TOOLBAR_STATE::TOGGLE )
338 .Flags( AF_ACTIVATE )
339 .Parameter( ZONE_MODE::ADD ) );
340
342 .Name( "pcbnew.InteractiveDrawing.zoneCutout" )
343 .Scope( AS_GLOBAL )
344 .DefaultHotkey( MD_SHIFT + 'C' )
345 .LegacyHotkeyName( "Add a Zone Cutout" )
346 .FriendlyName( _( "Add a Zone Cutout" ) )
347 .Tooltip( _( "Add a cutout to an existing zone or rule area" ) )
348 .ToolbarState( TOOLBAR_STATE::TOGGLE )
350 .Flags( AF_ACTIVATE )
351 .Parameter( ZONE_MODE::CUTOUT ) );
352
354 .Name( "pcbnew.InteractiveDrawing.similarZone" )
355 .Scope( AS_GLOBAL )
356 .DefaultHotkey( MD_CTRL + MD_SHIFT + '.' )
357 .LegacyHotkeyName( "Add a Similar Zone" )
358 .FriendlyName( _( "Add a Similar Zone" ) )
359 .Tooltip( _( "Add a zone with the same settings as an existing zone" ) )
360 .Icon( BITMAPS::add_zone )
361 .Flags( AF_ACTIVATE )
362 .Parameter( ZONE_MODE::SIMILAR ) );
363
365 .Name( "pcbnew.InteractiveDrawing.placeImportedGraphics" )
366 .Scope( AS_GLOBAL )
367 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'F' )
368 .LegacyHotkeyName( "Place DXF" )
369 .FriendlyName( _( "Import Graphics..." ) )
370 .Tooltip( _( "Import 2D drawing file" ) )
372 .Flags( AF_ACTIVATE ) );
373
375 .Name( "pcbnew.InteractiveDrawing.setAnchor" )
376 .Scope( AS_GLOBAL )
377 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'N' )
378 .LegacyHotkeyName( "Place the Footprint Anchor" )
379 .FriendlyName( _( "Place the Footprint Anchor" ) )
380 .Tooltip( _( "Set the anchor point of the footprint" ) )
381 .ToolbarState( TOOLBAR_STATE::TOGGLE )
382 .Icon( BITMAPS::anchor )
383 .Flags( AF_ACTIVATE ) );
384
386 .Name( "pcbnew.InteractiveDrawing.incWidth" )
387 .Scope( AS_CONTEXT )
388 .DefaultHotkey( MD_CTRL + '+' )
389 .LegacyHotkeyName( "Increase Line Width" )
390 .FriendlyName( _( "Increase Line Width" ) ) );
391
393 .Name( "pcbnew.InteractiveDrawing.decWidth" )
394 .Scope( AS_CONTEXT )
395 .DefaultHotkey( MD_CTRL + '-' )
396 .LegacyHotkeyName( "Decrease Line Width" )
397 .FriendlyName( _( "Decrease Line Width" ) ) );
398
400 .Name( "pcbnew.InteractiveDrawing.arcPosture" )
401 .Scope( AS_CONTEXT )
402 .DefaultHotkey( '/' )
403 .LegacyHotkeyName( "Switch Track Posture" )
404 .FriendlyName( _( "Switch Arc Posture" ) ) );
405
407 .Name( "pcbnew.InteractiveDrawing.changeDimensionArrows" )
408 .Scope( AS_CONTEXT )
409 .FriendlyName( "Switch Dimension Arrows" )
410 .Tooltip( "Switch between inward and outward dimension arrows" ) );
411
412
414 .Name( "common.Control.magneticSnapActiveLayer" )
415 .Scope( AS_GLOBAL )
416 .FriendlyName( _( "Snap to Objects on the Active Layer Only" ) )
417 .Tooltip( _( "Enables snapping to objects on the active layer only" ) ) );
418
420 .Name( "common.Control.magneticSnapAllLayers" )
421 .Scope( AS_GLOBAL )
422 .FriendlyName( _( "Snap to Objects on All Layers" ) )
423 .Tooltip( _( "Enables snapping to objects on all visible layers" ) ) );
424
426 .Name( "common.Control.magneticSnapToggle" )
427 .Scope( AS_GLOBAL )
428 .DefaultHotkey( MD_SHIFT + 'S' )
429 .FriendlyName( _( "Toggle Snapping Between Active and All Layers" ) )
430 .Tooltip( _( "Toggles between snapping on all visible layers and only the active area" ) ) );
431
433 .Name( "pcbnew.InteractiveDrawing.deleteLastPoint" )
434 .Scope( AS_CONTEXT )
435 .DefaultHotkey( WXK_BACK )
436 .FriendlyName( _( "Delete Last Point" ) )
437 .Tooltip( _( "Delete the last point added to the current item" ) )
438 .Icon( BITMAPS::undo ) );
439
441 .Name( "pcbnew.InteractiveDrawing.closeOutline" )
442 .Scope( AS_CONTEXT )
443 .FriendlyName( _( "Close Outline" ) )
444 .Tooltip( _( "Close the in progress outline" ) )
445 .Icon( BITMAPS::checked_ok ) );
446
447// DRC
448//
450 .Name( "pcbnew.DRCTool.runDRC" )
451 .Scope( AS_GLOBAL )
452 .FriendlyName( _( "Design Rules Checker" ) )
453 .Tooltip( _( "Show the design rules checker window" ) )
454 .Icon( BITMAPS::erc ) );
455
456// PCB_DESIGN_BLOCK_CONTROL
458 .Name( "pcbnew.InteractiveDrawing.placeDesignBlock" )
459 .Scope( AS_GLOBAL )
460 .DefaultHotkey( MD_SHIFT + 'B' )
461 .FriendlyName( _( "Place Design Block" ) )
462 .Tooltip( _( "Add selected design block to current board" ) )
464 .Flags( AF_ACTIVATE )
465 .Parameter<DESIGN_BLOCK*>( nullptr ) );
466
468 .Name( "pcbnew.InteractiveDrawing.placeLinkedDesignBlock" )
469 .Scope( AS_GLOBAL )
470 .FriendlyName( _( "Place Linked Design Block" ) )
471 .Tooltip( _( "Place design block linked to selected group" ) )
473 .Flags( AF_ACTIVATE )
474 .Parameter<bool*>( nullptr ) );
475
477 .Name( "pcbnew.InteractiveDrawing.applyDesignBlockLayout" )
478 .Scope( AS_GLOBAL )
479 .FriendlyName( _( "Apply Design Block Layout" ) )
480 .Tooltip( _( "Apply linked design block layout to selected group" ) )
482 .Flags( AF_ACTIVATE ) );
483
485 .Name( "pcbnew.InteractiveDrawing.saveToLinkedDesignBlock" )
486 .Scope( AS_GLOBAL )
487 .FriendlyName( _( "Save to Linked Design Block" ) )
488 .Tooltip( _( "Save selected group to linked design block" ) )
490 .Flags( AF_ACTIVATE ) );
491
493 .Name( "pcbnew.PcbDesignBlockControl.showDesignBlockPanel" )
494 .Scope( AS_GLOBAL )
495 .FriendlyName( _( "Design Blocks" ) )
496 .Tooltip( _( "Show/hide design blocks library" ) )
497 .Icon( BITMAPS::search_tree ) );
498
500 .Name( "pcbnew.PcbDesignBlockControl.saveBoardAsDesignBlock" )
501 .Scope( AS_GLOBAL )
502 .FriendlyName( _( "Save Current Board as Design Block..." ) )
503 .Tooltip( _( "Create a new design block from the current board" ) )
504 .Icon( BITMAPS::new_component ) );
505
507 .Name( "pcbnew.PcbDesignBlockControl.saveSelectionAsDesignBlock" )
508 .Scope( AS_GLOBAL )
509 .FriendlyName( _( "Save Selection as Design Block..." ) )
510 .Tooltip( _( "Create a new design block from the current selection" ) )
511 .Icon( BITMAPS::new_component ) );
512
514 .Name( "pcbnew.PcbDesignBlockControl.saveBoardToDesignBlock" )
515 .Scope( AS_GLOBAL )
516 .FriendlyName( _( "Save Current Board to Design Block..." ) )
517 .Tooltip( _( "Add current board to design block" ) )
518 .Icon( BITMAPS::save ) );
519
521 .Name( "pcbnew.PcbDesignBlockControl.saveSelectionToDesignBlock" )
522 .Scope( AS_GLOBAL )
523 .FriendlyName( _( "Save Selection to Design Block..." ) )
524 .Tooltip( _( "Add current selection to design block" ) )
525 .Icon( BITMAPS::save ) );
526
528 .Name( "pcbnew.PcbDesignBlockControl.saveDeleteDesignBlock" )
529 .Scope( AS_GLOBAL )
530 .FriendlyName( _( "Delete Design Block" ) )
531 .Tooltip( _( "Remove the selected design block from its library" ) )
532 .Icon( BITMAPS::trash ) );
533
535 .Name( "pcbnew.PcbDesignBlockControl.editDesignBlockProperties" )
536 .Scope( AS_GLOBAL )
537 .FriendlyName( _( "Properties..." ) )
538 .Tooltip( _( "Edit properies of design block" ) )
539 .Icon( BITMAPS::edit ) );
540
541// EDIT_TOOL
542//
544 .Name( "pcbnew.EditorControl.EditFpInFpEditor" )
545 .Scope( AS_GLOBAL )
546 .DefaultHotkey( MD_CTRL + 'E' )
547 .LegacyHotkeyName( "Edit with Footprint Editor" )
548 .FriendlyName( _( "Open in Footprint Editor" ) )
549 .Icon( BITMAPS::module_editor ) );
550
552 .Name( "pcbnew.EditorControl.EditLibFpInFpEditor" )
553 .Scope( AS_GLOBAL )
554 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
555 .FriendlyName( _( "Edit Library Footprint..." ) )
556 .Icon( BITMAPS::module_editor ) );
557
559 .Name( "pcbnew.InteractiveEdit.FindMove" )
560 .Scope( AS_GLOBAL )
561 .DefaultHotkey( 'T' )
562 .LegacyHotkeyName( "Get and Move Footprint" )
563 .FriendlyName( _( "Get and Move Footprint" ) )
564 .Tooltip( _( "Selects a footprint by reference designator and places it under the cursor for moving" ) )
565 .Icon( BITMAPS::move )
566 .Flags( AF_ACTIVATE ) );
567
569 .Name( "pcbnew.InteractiveMove.move" )
570 .Scope( AS_GLOBAL )
571 .DefaultHotkey( 'M' )
572 .LegacyHotkeyName( "Move Item" )
573 .FriendlyName( _( "Move" ) )
574 .Icon( BITMAPS::move )
575 .Flags( AF_ACTIVATE )
577
579 .Name( "pcbnew.InteractiveMove.moveIndividually" )
580 .Scope( AS_GLOBAL )
581 .DefaultHotkey( MD_CTRL + 'M' )
582 .FriendlyName( _( "Move Individually" ) )
583 .Tooltip( _( "Moves the selected items one-by-one" ) )
584 .Icon( BITMAPS::move )
585 .Flags( AF_ACTIVATE )
587
589 .Name( "pcbnew.InteractiveMove.moveWithReference" )
590 .Scope( AS_GLOBAL )
591 .FriendlyName( _( "Move with Reference" ) )
592 .Tooltip( _( "Moves the selected item(s) with a specified starting point" ) )
593 .Icon( BITMAPS::move )
594 .Flags( AF_ACTIVATE )
596
598 .Name( "pcbnew.InteractiveMove.copyWithReference" )
599 .Scope( AS_GLOBAL )
600 .FriendlyName( _( "Copy with Reference" ) )
601 .Tooltip( _( "Copy selected item(s) to clipboard with a specified starting point" ) )
602 .Icon( BITMAPS::copy )
603 .Flags( AF_ACTIVATE ) );
604
606 .Name( "pcbnew.InteractiveEdit.duplicateIncrementPads" )
607 .Scope( AS_GLOBAL )
608 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'D' )
609 .LegacyHotkeyName( "Duplicate Item and Increment" )
610 .FriendlyName( _( "Duplicate and Increment" ) )
611 .Tooltip( _( "Duplicates the selected item(s), incrementing pad numbers" ) )
612 .Icon( BITMAPS::duplicate ) );
613
615 .Name( "pcbnew.InteractiveEdit.moveExact" )
616 .Scope( AS_GLOBAL )
617 .DefaultHotkey( MD_SHIFT + 'M' )
618 .LegacyHotkeyName( "Move Item Exactly" )
619 .FriendlyName( _( "Move Exactly..." ) )
620 .Tooltip( _( "Moves the selected item(s) by an exact amount" ) )
621 .Icon( BITMAPS::move_exactly ) );
622
624 .Name( "pcbnew.InteractiveEdit.moveCorner" )
625 .Scope( AS_GLOBAL )
626 .FriendlyName( _( "Move Corner To..." ) )
627 .Tooltip( _( "Move the active corner to an exact location" ) )
628 .Icon( BITMAPS::move_exactly ) );
629
631 .Name( "pcbnew.InteractiveEdit.moveMidpoint" )
632 .Scope( AS_GLOBAL )
633 .FriendlyName( _( "Move Midpoint To..." ) )
634 .Tooltip( _( "Move the active midpoint to an exact location" ) )
635 .Icon( BITMAPS::move_exactly ) );
636
638 .Name( "pcbnew.InteractiveEdit.rotateCw" )
639 .Scope( AS_GLOBAL )
640 .DefaultHotkey( MD_SHIFT + 'R' )
641 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
642 .LegacyHotkeyName( "Rotate Item Clockwise (Modern Toolset only)" )
643 .FriendlyName( _( "Rotate Clockwise" ) )
644 .Icon( BITMAPS::rotate_cw )
645 .Flags( AF_NONE )
646 .Parameter( -1 ) );
647
649 .Name( "pcbnew.InteractiveEdit.rotateCcw" )
650 .Scope( AS_GLOBAL )
651 .DefaultHotkey( 'R' )
652 .LegacyHotkeyName( "Rotate Item" )
653 .FriendlyName( _( "Rotate Counterclockwise" ) )
654 .Icon( BITMAPS::rotate_ccw )
655 .Flags( AF_NONE )
656 .Parameter( 1 ) );
657
659 .Name( "pcbnew.InteractiveEdit.flip" )
660 .Scope( AS_GLOBAL )
661 .DefaultHotkey( 'F' )
662 .LegacyHotkeyName( "Flip Item" )
663 .FriendlyName( _( "Change Side / Flip" ) )
664 .Tooltip( _( "Flips selected item(s) to opposite side of board" ) )
665 .Icon( BITMAPS::swap_layer ) );
666
668 .Name( "pcbnew.InteractiveEdit.mirrorHoriontally" )
669 .Scope( AS_GLOBAL )
670 .FriendlyName( _( "Mirror Horizontally" ) )
671 .Tooltip( _( "Mirrors selected item(s) across the Y axis" ) )
672 .Icon( BITMAPS::mirror_h ) );
673
675 .Name( "pcbnew.InteractiveEdit.mirrorVertically" )
676 .Scope( AS_GLOBAL )
677 .FriendlyName( _( "Mirror Vertically" ) )
678 .Tooltip( _( "Mirrors selected item(s) across the X axis" ) )
679 .Icon( BITMAPS::mirror_v ) );
680
682 .Name( "pcbnew.InteractiveEdit.swap" )
683 .Scope( AS_GLOBAL )
684 .DefaultHotkey( MD_ALT + 'S' )
685 .FriendlyName( _( "Swap" ) )
686 .Tooltip( _( "Swap positions of selected items" ) )
687 .Icon( BITMAPS::swap ) );
688
690 .Name( "pcbnew.InteractiveEdit.packAndMoveFootprints" )
691 .Scope( AS_GLOBAL )
692 .DefaultHotkey( 'P' )
693 .FriendlyName( _( "Pack and Move Footprints" ) )
694 .Tooltip( _( "Sorts selected footprints by reference, packs based on size and initiates movement" ) )
695 .Icon( BITMAPS::pack_footprints ) );
696
698 .Name( "pcbnew.InteractiveEdit.skip" )
699 .Scope( AS_CONTEXT )
700 .DefaultHotkey( WXK_TAB )
701 .FriendlyName( _( "Skip" ) )
702 .Tooltip( _( "Skip to next item" ) )
703 .Icon( BITMAPS::right ) );
704
706 .Name( "pcbnew.InteractiveEdit.changeTrackWidth" )
707 .Scope( AS_GLOBAL )
708 .FriendlyName( _( "Change Track Width" ) )
709 .Tooltip( _( "Updates selected track & via sizes" ) ) );
710
712 .Name( "pcbnew.Control.changeTrackLayerNext" )
713 .Scope( AS_GLOBAL )
714 .DefaultHotkey( MD_CTRL + '+' )
715 .FriendlyName( "Switch Track to Next Layer" )
716 .Tooltip( _( "Switch track to next enabled copper layer" ) ) );
717
719 .Name( "pcbnew.Control.changeTrackLayerPrev" )
720 .Scope( AS_GLOBAL )
721 .DefaultHotkey( MD_CTRL + '-' )
722 .FriendlyName( "Switch Track to Previous Layer" )
723 .Tooltip( _( "Switch track to previous enabled copper layer" ) ) );
724
726 .Name( "pcbnew.InteractiveEdit.filletTracks" )
727 .Scope( AS_GLOBAL )
728 .FriendlyName( _( "Fillet Tracks" ) )
729 .Tooltip( _( "Adds arcs tangent to the selected straight track segments" ) ) );
730
732 .Name( "pcbnew.InteractiveEdit.filletLines" )
733 .Scope( AS_GLOBAL )
734 .FriendlyName( _( "Fillet Lines..." ) )
735 .Tooltip( _( "Adds arcs tangent to the selected lines" ) )
736 .Icon( BITMAPS::fillet ) );
737
739 .Name( "pcbnew.InteractiveEdit.chamferLines" )
740 .Scope( AS_GLOBAL )
741 .FriendlyName( _( "Chamfer Lines..." ) )
742 .Tooltip( _( "Cut away corners between selected lines" ) )
743 .Icon( BITMAPS::chamfer ) );
744
746 .Name( "pcbnew.InteractiveEdit.dogboneCorners" )
747 .Scope( AS_GLOBAL )
748 .FriendlyName( _( "Dogbone Corners..." ) )
749 .Tooltip( _( "Add dogbone corners to selected lines" ) ) );
750
752 .Name( "pcbnew.InteractiveEdit.simplifyPolygons" )
753 .Scope( AS_GLOBAL )
754 .FriendlyName( _( "Simplify Polygons" ) )
755 .Tooltip( _( "Simplify polygon outlines, removing superfluous points" ) ) );
756
758 .Name( "pcbnew.InteractiveEdit.healShapes" )
759 .Scope( AS_GLOBAL )
760 .FriendlyName( _( "Heal Shapes" ) )
761 .Tooltip( _( "Connect shapes, possibly extending or cutting them, or adding extra geometry" ) )
762 .Icon( BITMAPS::heal_shapes ) );
763
765 .Name( "pcbnew.InteractiveEdit.extendLines" )
766 .Scope( AS_GLOBAL )
767 .FriendlyName( _( "Extend Lines to Meet" ) )
768 .Tooltip( _( "Extend lines to meet each other" ) ) );
769
771 .Name( "pcbnew.InteractiveEdit.mergePolygons" )
772 .Scope( AS_GLOBAL )
773 .FriendlyName( _( "Merge Polygons" ) )
774 .Tooltip( _( "Merge selected polygons into a single polygon" ) )
775 .Icon( BITMAPS::merge_polygons ) );
776
778 .Name( "pcbnew.InteractiveEdit.subtractPolygons" )
779 .Scope( AS_GLOBAL )
780 .FriendlyName( _( "Subtract Polygons" ) )
781 .Tooltip( _( "Subtract selected polygons from the last one selected" ) )
783
785 .Name( "pcbnew.InteractiveEdit.intersectPolygons" )
786 .Scope( AS_GLOBAL )
787 .FriendlyName( _( "Intersect Polygons" ) )
788 .Tooltip( _( "Create the intersection of the selected polygons" ) )
790
792 .Name( "pcbnew.InteractiveEdit.deleteFull" )
793 .Scope( AS_GLOBAL )
794 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DELETE ) )
795 .LegacyHotkeyName( "Delete Full Track" )
796 .FriendlyName( _( "Delete Full Track" ) )
797 .Tooltip( _( "Deletes selected item(s) and copper connections" ) )
799 .Flags( AF_NONE )
800 .Parameter( PCB_ACTIONS::REMOVE_FLAGS::ALT ) );
801
803 .Name( "pcbnew.InteractiveEdit.properties" )
804 .Scope( AS_GLOBAL )
805 .DefaultHotkey( 'E' )
806 .LegacyHotkeyName( "Edit Item" )
807 .FriendlyName( _( "Properties..." ) )
808 .Icon( BITMAPS::edit ) );
809
810// ARRAY
811//
813 .Name( "pcbnew.Array.createArray" )
814 .Scope( AS_GLOBAL )
815 .DefaultHotkey( MD_CTRL + 'T' )
816 .LegacyHotkeyName( "Create Array" )
817 .FriendlyName( _( "Create Array..." ) )
818 .Icon( BITMAPS::array )
819 .Flags( AF_ACTIVATE ) );
820
821// FOOTPRINT_EDITOR_CONTROL
822//
824 .Name( "pcbnew.ModuleEditor.newFootprint" )
825 .Scope( AS_GLOBAL )
826 .DefaultHotkey( MD_CTRL + 'N' )
827 .LegacyHotkeyName( "New" )
828 .FriendlyName( _( "New Footprint" ) )
829 .Tooltip( _( "Create a new, empty footprint" ) )
830 .Icon( BITMAPS::new_footprint ) );
831
833 .Name( "pcbnew.ModuleEditor.createFootprint" )
834 .Scope( AS_GLOBAL )
835 .FriendlyName( _( "Create Footprint..." ) )
836 .Tooltip( _( "Create a new footprint using the Footprint Wizard" ) )
837 .Icon( BITMAPS::module_wizard ) );
838
840 .Name( "pcbnew.ModuleEditor.editFootprint" )
841 .Scope( AS_GLOBAL )
842 .FriendlyName( _( "Edit Footprint" ) )
843 .Tooltip( _( "Show selected footprint on editor canvas" ) )
844 .Icon( BITMAPS::edit ) );
845
847 .Name( "pcbnew.ModuleEditor.duplicateFootprint" )
848 .Scope( AS_GLOBAL )
849 .FriendlyName( _( "Duplicate Footprint" ) )
850 .Icon( BITMAPS::duplicate ) );
851
853 .Name( "pcbnew.ModuleEditor.renameFootprint" )
854 .Scope( AS_GLOBAL )
855 .FriendlyName( _( "Rename Footprint..." ) )
856 .Icon( BITMAPS::edit ) );
857
859 .Name( "pcbnew.ModuleEditor.deleteFootprint" )
860 .Scope( AS_GLOBAL )
861 .FriendlyName( _( "Delete Footprint from Library" ) )
862 .Icon( BITMAPS::trash ) );
863
865 .Name( "pcbnew.ModuleEditor.cutFootprint" )
866 .Scope( AS_GLOBAL )
867 .FriendlyName( _( "Cut Footprint" ) )
868 .Icon( BITMAPS::cut ) );
869
871 .Name( "pcbnew.ModuleEditor.copyFootprint" )
872 .Scope( AS_GLOBAL )
873 .FriendlyName( _( "Copy Footprint" ) )
874 .Icon( BITMAPS::copy ) );
875
877 .Name( "pcbnew.ModuleEditor.pasteFootprint" )
878 .Scope( AS_GLOBAL )
879 .FriendlyName( _( "Paste Footprint" ) )
880 .Icon( BITMAPS::paste ) );
881
883 .Name( "pcbnew.ModuleEditor.importFootprint" )
884 .Scope( AS_GLOBAL )
885 .FriendlyName( _( "Import Footprint..." ) )
886 .Tooltip( _( "Import footprint from file" ) )
887 .Icon( BITMAPS::import_module ) );
888
890 .Name( "pcbnew.ModuleEditor.exportFootprint" )
891 .Scope( AS_GLOBAL )
892 .FriendlyName( _( "Export Current Footprint..." ) )
893 .Tooltip( _( "Export edited footprint to file" ) )
894 .Icon( BITMAPS::export_module ) );
895
897 .Name( "pcbnew.ModuleEditor.footprintProperties" )
898 .Scope( AS_GLOBAL )
899 .FriendlyName( _( "Footprint Properties..." ) )
900 .Icon( BITMAPS::module_options ) );
901
903 .Name( "pcbnew.ModuleEditor.padTable" )
904 .Scope( AS_GLOBAL )
905 .FriendlyName( _( "Pad Table..." ) )
906 .Tooltip( _( "Displays pad table for bulk editing of pads" ) )
907 .Icon( BITMAPS::pin_table ) );
908
910 .Name( "pcbnew.ModuleEditor.checkFootprint" )
911 .Scope( AS_GLOBAL )
912 .FriendlyName( _( "Footprint Checker" ) )
913 .Tooltip( _( "Show the footprint checker window" ) )
914 .Icon( BITMAPS::erc ) );
915
917 .Name( "pcbnew.ModuleEditor.loadFootprintFromBoard" )
918 .Scope( AS_GLOBAL )
919 .FriendlyName( _( "Load footprint from current PCB" ) )
920 .Tooltip( _( "Load footprint from current board" ) )
922
924 .Name( "pcbnew.ModuleEditor.saveFootprintToBoard" )
925 .Scope( AS_GLOBAL )
926 .FriendlyName( _( "Insert footprint into PCB" ) )
927 .Tooltip( _( "Insert footprint into current board" ) )
929
931 .Name( "pcbnew.Control.previousFootprint" )
932 .Scope( AS_GLOBAL )
933 .FriendlyName( _( "Display previous footprint" ) )
934 .Icon( BITMAPS::lib_previous )
935 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::PREVIOUS_PART ) );
936
938 .Name( "pcbnew.Control.nextFootprint" )
939 .Scope( AS_GLOBAL )
940 .FriendlyName( _( "Display next footprint" ) )
941 .Icon( BITMAPS::lib_next )
942 .Parameter<FPVIEWER_CONSTANTS>( FPVIEWER_CONSTANTS::NEXT_PART ) );
943
944// GLOBAL_EDIT_TOOL
945//
947 .Name( "pcbnew.GlobalEdit.updateFootprint" )
948 .Scope( AS_GLOBAL )
949 .FriendlyName( _( "Update Footprint..." ) )
950 .Tooltip( _( "Update footprint to include any changes from the library" ) )
951 .Icon( BITMAPS::refresh ) );
952
954 .Name( "pcbnew.GlobalEdit.updateFootprints" )
955 .Scope( AS_GLOBAL )
956 .FriendlyName( _( "Update Footprints from Library..." ) )
957 .Tooltip( _( "Update footprints to include any changes from the library" ) )
958 .Icon( BITMAPS::refresh ) );
959
961 .Name( "pcbnew.GlobalEdit.removeUnusedPads" )
962 .Scope( AS_GLOBAL )
963 .FriendlyName( _( "Remove Unused Pads..." ) )
964 .Tooltip( _( "Remove or restore the unconnected inner layers on through hole pads and vias" ) )
965 .Icon( BITMAPS::pads_remove ) );
966
968 .Name( "pcbnew.GlobalEdit.changeFootprint" )
969 .Scope( AS_GLOBAL )
970 .FriendlyName( _( "Change Footprint..." ) )
971 .Tooltip( _( "Assign a different footprint from the library" ) )
972 .Icon( BITMAPS::exchange ) );
973
975 .Name( "pcbnew.GlobalEdit.changeFootprints" )
976 .Scope( AS_GLOBAL )
977 .FriendlyName( _( "Change Footprints..." ) )
978 .Tooltip( _( "Assign different footprints from the library" ) )
979 .Icon( BITMAPS::exchange ) );
980
982 .Name( "pcbnew.GlobalEdit.swapLayers" )
983 .Scope( AS_GLOBAL )
984 .FriendlyName( _( "Swap Layers..." ) )
985 .Tooltip( _( "Move tracks or drawings from one layer to another" ) )
986 .Icon( BITMAPS::swap_layer ) );
987
989 .Name( "pcbnew.GlobalEdit.editTracksAndVias" )
990 .Scope( AS_GLOBAL )
991 .FriendlyName( _( "Edit Track & Via Properties..." ) )
992 .Tooltip( _( "Edit track and via properties globally across board" ) )
993 .Icon( BITMAPS::width_track_via ) );
994
996 .Name( "pcbnew.GlobalEdit.editTextAndGraphics" )
997 .Scope( AS_GLOBAL )
998 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
999 .Tooltip( _( "Edit Text and graphics properties globally across board" ) )
1000 .Icon( BITMAPS::text ) );
1001
1003 .Name( "pcbnew.GlobalEdit.editTeardrops" )
1004 .Scope( AS_GLOBAL )
1005 .FriendlyName( _( "Edit Teardrops..." ) )
1006 .Tooltip( _( "Add, remove or edit teardrops globally across board" ) )
1007 .Icon( BITMAPS::via ) );
1008
1010 .Name( "pcbnew.GlobalEdit.globalDeletions" )
1011 .Scope( AS_GLOBAL )
1012 .FriendlyName( _( "Global Deletions..." ) )
1013 .Tooltip( _( "Delete tracks, footprints and graphic items from board" ) )
1014 .Icon( BITMAPS::general_deletions ) );
1015
1017 .Name( "pcbnew.GlobalEdit.cleanupTracksAndVias" )
1018 .Scope( AS_GLOBAL )
1019 .FriendlyName( _( "Cleanup Tracks & Vias..." ) )
1020 .Tooltip( _( "Cleanup redundant items, shorting items, etc." ) )
1022
1024 .Name( "pcbnew.GlobalEdit.cleanupGraphics" )
1025 .Scope( AS_GLOBAL )
1026 .FriendlyName( _( "Cleanup Graphics..." ) )
1027 .Tooltip( _( "Cleanup redundant items, etc." ) )
1028 .Icon( BITMAPS::cleanup_graphics ) );
1029
1030// MICROWAVE_TOOL
1031//
1033 .Name( "pcbnew.MicrowaveTool.createGap" )
1034 .Scope( AS_GLOBAL )
1035 .FriendlyName( _( "Draw Microwave Gaps" ) )
1036 .Tooltip( _( "Create gap of specified length for microwave applications" ) )
1037 .Icon( BITMAPS::mw_add_gap )
1038 .Flags( AF_ACTIVATE )
1039 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::GAP ) );
1040
1042 .Name( "pcbnew.MicrowaveTool.createStub" )
1043 .Scope( AS_GLOBAL )
1044 .FriendlyName( _( "Draw Microwave Stubs" ) )
1045 .Tooltip( _( "Create stub of specified length for microwave applications" ) )
1046 .Icon( BITMAPS::mw_add_stub )
1047 .Flags( AF_ACTIVATE )
1048 .Parameter( MICROWAVE_FOOTPRINT_SHAPE::STUB ) );
1049
1051 .Name( "pcbnew.MicrowaveTool.createStubArc" )
1052 .Scope( AS_GLOBAL )
1053 .FriendlyName( _( "Draw Microwave Arc Stubs" ) )
1054 .Tooltip( _( "Create stub (arc) of specified size for microwave applications" ) )
1056 .Flags( AF_ACTIVATE )
1058
1060 .Name( "pcbnew.MicrowaveTool.createFunctionShape" )
1061 .Scope( AS_GLOBAL )
1062 .FriendlyName( _( "Draw Microwave Polygonal Shapes" ) )
1063 .Tooltip( _( "Create a microwave polygonal shape from a list of vertices" ) )
1064 .Icon( BITMAPS::mw_add_shape )
1065 .Flags( AF_ACTIVATE )
1067
1069 .Name( "pcbnew.MicrowaveTool.createLine" )
1070 .Scope( AS_GLOBAL )
1071 .FriendlyName( _( "Draw Microwave Lines" ) )
1072 .Tooltip( _( "Create line of specified length for microwave applications" ) )
1073 .Icon( BITMAPS::mw_add_line )
1074 .Flags( AF_ACTIVATE ) );
1075
1076
1077// PAD_TOOL
1078//
1080 .Name( "pcbnew.PadTool.CopyPadSettings" )
1081 .Scope( AS_GLOBAL )
1082 .FriendlyName( _( "Copy Pad Properties to Default" ) )
1083 .Tooltip( _( "Copy current pad's properties" ) )
1084 .Icon( BITMAPS::copy_pad_settings ) );
1085
1087 .Name( "pcbnew.PadTool.ApplyPadSettings" )
1088 .Scope( AS_GLOBAL )
1089 .FriendlyName( _( "Paste Default Pad Properties to Selected" ) )
1090 .Tooltip( _( "Replace the current pad's properties with those copied earlier" ) )
1091 .Icon( BITMAPS::apply_pad_settings ) );
1092
1094 .Name( "pcbnew.PadTool.PushPadSettings" )
1095 .Scope( AS_GLOBAL )
1096 .FriendlyName( _( "Push Pad Properties to Other Pads..." ) )
1097 .Tooltip( _( "Copy the current pad's properties to other pads" ) )
1098 .Icon( BITMAPS::push_pad_settings ) );
1099
1101 .Name( "pcbnew.PadTool.enumeratePads" )
1102 .Scope( AS_GLOBAL )
1103 .FriendlyName( _( "Renumber Pads..." ) )
1104 .Tooltip( _( "Renumber pads by clicking on them in the desired order" ) )
1105 .Icon( BITMAPS::pad_enumerate )
1106 .Flags( AF_ACTIVATE ) );
1107
1109 .Name( "pcbnew.PadTool.placePad" )
1110 .Scope( AS_GLOBAL )
1111 .FriendlyName( _( "Add Pad" ) )
1112 .Tooltip( _( "Add a pad" ) )
1113 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1114 .Icon( BITMAPS::pad )
1115 .Flags( AF_ACTIVATE ) );
1116
1118 .Name( "pcbnew.PadTool.explodePad" )
1119 .Scope( AS_GLOBAL )
1120 .DefaultHotkey( MD_CTRL + 'E' )
1121 .FriendlyName( _( "Edit Pad as Graphic Shapes" ) )
1122 .Tooltip( _( "Ungroups a custom-shaped pad for editing as individual graphic shapes" ) )
1124
1126 .Name( "pcbnew.PadTool.recombinePad" )
1127 .Scope( AS_GLOBAL )
1128 .DefaultHotkey( MD_CTRL + 'E' )
1129 .FriendlyName( _( "Finish Pad Edit" ) )
1130 .Tooltip( _( "Regroups all touching graphic shapes into the edited pad" ) )
1132
1134 .Name( "pcbnew.PadTool.defaultPadProperties" )
1135 .Scope( AS_GLOBAL )
1136 .FriendlyName( _( "Default Pad Properties..." ) )
1137 .Tooltip( _( "Edit the pad properties used when creating new pads" ) )
1138 .Icon( BITMAPS::options_pad ) );
1139
1140
1141// SCRIPTING TOOL
1142//
1143
1145 .Name( "pcbnew.ScriptingTool.pluginsShowFolder" )
1146 .Scope( AS_GLOBAL )
1147#ifdef __WXMAC__
1148 .FriendlyName( _( "Reveal Plugin Folder in Finder" ) )
1149 .Tooltip( _( "Reveals the plugins folder in a Finder window" ) )
1150#else
1151 .FriendlyName( _( "Open Plugin Directory" ) )
1152 .Tooltip( _( "Opens the directory in the default system file manager" ) )
1153#endif
1154 .Icon( BITMAPS::directory_open ) );
1155
1156// BOARD_EDITOR_CONTROL
1157//
1159 .Name( "pcbnew.EditorControl.appendBoard" )
1160 .Scope( AS_GLOBAL )
1161 .FriendlyName( _( "Append Board..." ) )
1162 .Tooltip( _( "Open another board and append its contents to this board" ) )
1163 .Icon( BITMAPS::add_board ) );
1164
1166 .Name( "pcbnew.EditorControl.rescueAutosave" )
1167 .Scope( AS_GLOBAL )
1168 .FriendlyName( _( "Rescue" ) )
1169 .Tooltip( _( "Clear board and get last rescue file automatically saved by PCB editor" ) )
1170 .Icon( BITMAPS::rescue ) );
1171
1173 .Name( "pcbnew.EditorControl.openNonKicadBoard" )
1174 .Scope( AS_GLOBAL )
1175 .FriendlyName( _( "Non-KiCad Board File..." ) )
1176 .Tooltip( _( "Import board file from other applications" ) )
1177 .Icon( BITMAPS::import_brd_file ) );
1178
1180 .Name( "pcbnew.EditorControl.exportFootprints" )
1181 .Scope( AS_GLOBAL )
1182 .FriendlyName( _( "Export Footprints..." ) )
1183 .Tooltip( _( "Add footprints from board to a new or an existing footprint library\n"
1184 "(does not remove other footprints from this library)" ) )
1185 .Icon( BITMAPS::library_archive ) );
1186
1188 .Name( "pcbnew.EditorControl.boardSetup" )
1189 .Scope( AS_GLOBAL )
1190 .FriendlyName( _( "Board Setup..." ) )
1191 .Tooltip( _( "Edit board setup including layers, design rules and various defaults" ) )
1192 .Icon( BITMAPS::options_board ) );
1193
1195 .Name( "pcbnew.EditorControl.importNetlist" )
1196 .Scope( AS_GLOBAL )
1197 .FriendlyName( _( "Import Netlist..." ) )
1198 .Tooltip( _( "Read netlist and update board connectivity" ) )
1199 .Icon( BITMAPS::netlist ) );
1200
1202 .Name( "pcbnew.EditorControl.importSpecctraSession" )
1203 .Scope( AS_GLOBAL )
1204 .FriendlyName( _( "Import Specctra Session..." ) )
1205 .Tooltip( _( "Import routed Specctra session (*.ses) file" ) )
1206 .Icon( BITMAPS::import ) );
1207
1209 .Name( "pcbnew.EditorControl.exportSpecctraDSN" )
1210 .Scope( AS_GLOBAL )
1211 .FriendlyName( _( "Export Specctra DSN..." ) )
1212 .Tooltip( _( "Export Specctra DSN routing info" ) )
1213 .Icon( BITMAPS::export_dsn ) );
1214
1216 .Name( "pcbnew.EditorControl.generateGerbers" )
1217 .Scope( AS_GLOBAL )
1218 .FriendlyName( _( "Gerbers (.gbr)..." ) )
1219 .Tooltip( _( "Generate Gerbers for fabrication" ) )
1220 .Icon( BITMAPS::post_gerber ) );
1221
1223 .Name( "pcbnew.EditorControl.generateDrillFiles" )
1224 .Scope( AS_GLOBAL )
1225 .FriendlyName( _( "Drill Files (.drl)..." ) )
1226 .Tooltip( _( "Generate Excellon drill file(s)" ) )
1227 .Icon( BITMAPS::post_drill ) );
1228
1230 .Name( "pcbnew.EditorControl.generatePosFile" )
1231 .Scope( AS_GLOBAL )
1232 .FriendlyName( _( "Component Placement (.pos, .gbr)..." ) )
1233 .Tooltip( _( "Generate component placement file(s) for pick and place" ) )
1234 .Icon( BITMAPS::post_compo ) );
1235
1237 .Name( "pcbnew.EditorControl.generateReportFile" )
1238 .Scope( AS_GLOBAL )
1239 .FriendlyName( _( "Footprint Report (.rpt)..." ) )
1240 .Tooltip( _( "Create report of all footprints from current board" ) )
1241 .Icon( BITMAPS::post_rpt ) );
1242
1244 .Name( "pcbnew.EditorControl.generateIPC2581File" )
1245 .Scope( AS_GLOBAL )
1246 .FriendlyName( _( "IPC-2581 File (.xml)..." ) )
1247 .Tooltip( _( "Generate an IPC-2581 file" ) )
1248 .Icon( BITMAPS::post_xml ) );
1249
1251 .Name( "pcbnew.EditorControl.generateODBPPFile" )
1252 .Scope( AS_GLOBAL )
1253 .FriendlyName( _( "ODB++ Output File..." ) )
1254 .Tooltip( _( "Generate ODB++ output files" ) )
1255 .Icon( BITMAPS::post_odb ) );
1256
1258 .Name( "pcbnew.EditorControl.generateD356File" )
1259 .Scope( AS_GLOBAL )
1260 .FriendlyName( _( "IPC-D-356 Netlist File..." ) )
1261 .Tooltip( _( "Generate IPC-D-356 netlist file" ) )
1262 .Icon( BITMAPS::post_d356 ) );
1263
1265 .Name( "pcbnew.EditorControl.generateBOM" )
1266 .Scope( AS_GLOBAL )
1267 .FriendlyName( _( "Bill of Materials..." ) )
1268 .Tooltip( _( "Create bill of materials from board" ) )
1269 .Icon( BITMAPS::post_bom ) );
1270
1272 .Name( "pcbnew.EditorControl.exportGenCAD" )
1273 .Scope( AS_GLOBAL )
1274 .FriendlyName( _( "Export GenCAD..." ) )
1275 .Tooltip( _( "Export GenCAD board representation" ) )
1276 .Icon( BITMAPS::post_gencad ) );
1277
1279 .Name( "pcbnew.EditorControl.exportVRML" )
1280 .Scope( AS_GLOBAL )
1281 .FriendlyName( _( "Export VRML..." ) )
1282 .Tooltip( _( "Export VRML 3D board representation" ) )
1283 .Icon( BITMAPS::export3d ) );
1284
1286 .Name( "pcbnew.EditorControl.exportIDF" )
1287 .Scope( AS_GLOBAL )
1288 .FriendlyName( _( "Export IDFv3..." ) )
1289 .Tooltip( _( "Export IDF 3D board representation" ) )
1290 .Icon( BITMAPS::export_idf ) );
1291
1293 .Name( "pcbnew.EditorControl.exportSTEP" )
1294 .Scope( AS_GLOBAL )
1295 .FriendlyName( _( "Export STEP/GLB/BREP/XAO/PLY/STL..." ) )
1296 .Tooltip( _( "Export STEP, GLB, BREP, XAO, PLY or STL 3D board representation" ) )
1297 .Icon( BITMAPS::export_step ) );
1298
1300 .Name( "pcbnew.EditorControl.exportFootprintAssociations" )
1301 .Scope( AS_GLOBAL )
1302 .FriendlyName( _( "Export Footprint Association (.cmp) File..." ) )
1303 .Tooltip( _( "Export footprint association file (*.cmp) for schematic back annotation" ) )
1304 .Icon( BITMAPS::export_cmp ) );
1305
1307 .Name( "pcbnew.EditorControl.exportHyperlynx" )
1308 .Scope( AS_GLOBAL )
1309 .FriendlyName( _( "Hyperlynx..." ) )
1310 .Icon( BITMAPS::export_step ) );
1311
1313 .Name( "pcbnew.EditorControl.collect3DModels" )
1314 .Scope( AS_GLOBAL )
1315 .FriendlyName( _( "Collect And Embed 3D Models" ) )
1316 .Tooltip( _( "Collect footprint 3D models and embed them into the board" ) ) );
1317
1318
1319// Track & via size control
1321 .Name( "pcbnew.EditorControl.trackWidthInc" )
1322 .Scope( AS_GLOBAL )
1323 .DefaultHotkey( 'W' )
1324 .LegacyHotkeyName( "Switch Track Width To Next" )
1325 .FriendlyName( _( "Switch Track Width to Next" ) )
1326 .Tooltip( _( "Change track width to next pre-defined size" ) ) );
1327
1329 .Name( "pcbnew.EditorControl.trackWidthDec" )
1330 .Scope( AS_GLOBAL )
1331 .DefaultHotkey( MD_SHIFT + 'W' )
1332 .LegacyHotkeyName( "Switch Track Width To Previous" )
1333 .FriendlyName( _( "Switch Track Width to Previous" ) )
1334 .Tooltip( _( "Change track width to previous pre-defined size" ) ) );
1335
1337 .Name( "pcbnew.EditorControl.viaSizeInc" )
1338 .Scope( AS_GLOBAL )
1339 .DefaultHotkey( '\'' )
1340 .LegacyHotkeyName( "Increase Via Size" )
1341 .FriendlyName( _( "Increase Via Size" ) )
1342 .Tooltip( _( "Change via size to next pre-defined size" ) ) );
1343
1345 .Name( "pcbnew.EditorControl.viaSizeDec" )
1346 .Scope( AS_GLOBAL )
1347 .DefaultHotkey( '\\' )
1348 .LegacyHotkeyName( "Decrease Via Size" )
1349 .FriendlyName( _( "Decrease Via Size" ) )
1350 .Tooltip( _( "Change via size to previous pre-defined size" ) ) );
1351
1353 .Name( "pcbnew.EditorControl.autoTrackWidth" )
1354 .Scope( AS_GLOBAL )
1355 .FriendlyName( _( "Automatically select track width" ) )
1356 .Tooltip( _( "When routing from an existing track use its width instead "
1357 "of the current width setting" ) )
1359 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1360
1362 .Name( "pcbnew.EditorControl.trackViaSizeChanged" )
1363 .Scope( AS_GLOBAL )
1364 .Flags( AF_NOTIFY ) );
1365
1367 .Name( "pcbnew.EditorControl.assignNetclass" )
1368 .Scope( AS_GLOBAL )
1369 .FriendlyName( _( "Assign Netclass..." ) )
1370 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
1371 .Icon( BITMAPS::netlist ) );
1372
1374 .Name( "pcbnew.EditorControl.zoneMerge" )
1375 .Scope( AS_GLOBAL )
1376 .FriendlyName( _( "Merge Zones" ) ) );
1377
1379 .Name( "pcbnew.EditorControl.zoneDuplicate" )
1380 .Scope( AS_GLOBAL )
1381 .FriendlyName( _( "Duplicate Zone onto Layer..." ) )
1382 .Icon( BITMAPS::zone_duplicate ) );
1383
1385 .Name( "pcbnew.EditorControl.placeFootprint" )
1386 .Scope( AS_GLOBAL )
1387 .DefaultHotkey( 'A' )
1388 .LegacyHotkeyName( "Add Footprint" )
1389 .FriendlyName( _( "Place Footprints" ) )
1390 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1391 .Icon( BITMAPS::module )
1392 .Flags( AF_ACTIVATE )
1393 .Parameter<FOOTPRINT*>( nullptr ) );
1394
1396 .Name( "pcbnew.EditorControl.drillOrigin" )
1397 .Scope( AS_GLOBAL )
1398 .FriendlyName( _( "Drill/Place File Origin" ) )
1399 .Tooltip( _( "Place origin point for drill files and component placement files" ) )
1400 .Icon( BITMAPS::set_origin )
1401 .Flags( AF_ACTIVATE ) );
1402
1404 .Name( "pcbnew.EditorControl.drillResetOrigin" )
1405 .Scope( AS_GLOBAL )
1406 .LegacyHotkeyName( "Reset Drill Origin" )
1407 .FriendlyName( _( "Reset Drill Origin" ) ) );
1408
1410 .Name( "pcbnew.EditorControl.drillSetOrigin" )
1411 .Scope( AS_CONTEXT )
1412 .Parameter( VECTOR2I() ) );
1413
1415 .Name( "pcbnew.EditorControl.toggleLock" )
1416 .Scope( AS_GLOBAL )
1417 .DefaultHotkey( 'L' )
1418 .LegacyHotkeyName( "Lock/Unlock Footprint" )
1419 .FriendlyName( _( "Toggle Lock" ) )
1420 .Tooltip( _( "Lock or unlock selected items" ) )
1421 .Icon( BITMAPS::lock_unlock ) );
1422
1424 .Name( "pcbnew.EditorControl.toggle45" )
1425 .Scope( AS_GLOBAL )
1426 .DefaultHotkey( MD_SHIFT + ' ' )
1427 .FriendlyName( _( "Cycle H/V/45 constraint" ) )
1428 .Tooltip( _( "Cycle between no angle constraint, 45 degrees, or horizontal/vertical only" ) )
1429 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1430 .Icon( BITMAPS::hv45mode ) );
1431
1433 .Name( "pcbnew.EditorControl.lock" )
1434 .Scope( AS_GLOBAL )
1435 .FriendlyName( _( "Lock" ) )
1436 .Tooltip( _( "Prevent items from being moved and/or resized on the canvas" ) )
1437 .Icon( BITMAPS::locked ) );
1438
1440 .Name( "pcbnew.EditorControl.unlock" )
1441 .Scope( AS_GLOBAL )
1442 .FriendlyName( _( "Unlock" ) )
1443 .Tooltip( _( "Allow items to be moved and/or resized on the canvas" ) )
1444 .Icon( BITMAPS::unlocked ) );
1445
1447 .Name( "pcbnew.EditorControl.highlightNet" )
1448 .Scope( AS_GLOBAL )
1449 .DefaultHotkey( '`' )
1450 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1451 .LegacyHotkeyName( "Toggle Highlight of Selected Net (Modern Toolset only)" )
1452 .FriendlyName( _( "Highlight Net" ) )
1453 .Tooltip( _( "Highlight net under cursor" ) )
1454 .Icon( BITMAPS::net_highlight )
1455 .Parameter<int>( 0 ) );
1456
1458 .Name( "pcbnew.EditorControl.toggleLastNetHighlight" )
1459 .Scope( AS_GLOBAL )
1460 .FriendlyName( _( "Toggle Last Net Highlight" ) )
1461 .Tooltip( _( "Toggle between last two highlighted nets" ) )
1462 .Parameter<int>( 0 ) );
1463
1465 .Name( "pcbnew.EditorControl.clearHighlight" )
1466 .Scope( AS_GLOBAL )
1467 .DefaultHotkey( '~' )
1468 .FriendlyName( _( "Clear Net Highlighting" ) ) );
1469
1471 .Name( "pcbnew.EditorControl.toggleNetHighlight" )
1472 .Scope( AS_GLOBAL )
1473 .DefaultHotkey( MD_ALT + '`' )
1474 .FriendlyName( _( "Toggle Net Highlight" ) )
1475 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1476 .Icon( BITMAPS::net_highlight )
1477 .Parameter<int>( 0 ) );
1478
1480 .Name( "pcbnew.EditorControl.highlightNetSelection" )
1481 .Scope( AS_GLOBAL )
1482 .FriendlyName( _( "Highlight Net" ) )
1483 .Tooltip( _( "Highlight all copper items on the selected net(s)" ) )
1484 .Icon( BITMAPS::net_highlight )
1485 .Parameter<int>( 0 ) );
1486
1488 .Name( "pcbnew.EditorControl.highlightItem" )
1489 .Scope( AS_GLOBAL ) );
1490
1492 .Name( "pcbnew.EditorControl.hideNet" )
1493 .Scope( AS_GLOBAL )
1494 .FriendlyName( _( "Hide Net in Ratsnest" ) )
1495 .Tooltip( _( "Hide the selected net in the ratsnest of unconnected net lines/arcs" ) )
1496 .Icon( BITMAPS::hide_ratsnest )
1497 .Parameter<int>( 0 ) ); // Default to hiding selected net
1498
1500 .Name( "pcbnew.EditorControl.showNet" )
1501 .Scope( AS_GLOBAL )
1502 .FriendlyName( _( "Show Net in Ratsnest" ) )
1503 .Tooltip( _( "Show the selected net in the ratsnest of unconnected net lines/arcs" ) )
1504 .Icon( BITMAPS::show_ratsnest )
1505 .Parameter<int>( 0 ) ); // Default to showing selected net
1506
1508 .Name( "pcbnew.EditorControl.showEeschema" )
1509 .Scope( AS_GLOBAL )
1510 .FriendlyName( _( "Switch to Schematic Editor" ) )
1511 .Tooltip( _( "Open schematic in schematic editor" ) )
1512 .Icon( BITMAPS::icon_eeschema_24 ) );
1513
1514
1515// PCB_CONTROL
1516//
1517
1519 .Name( "pcbnew.Control.localRatsnestTool" )
1520 .Scope( AS_GLOBAL )
1521 .FriendlyName( _( "Local Ratsnest" ) )
1522 .Tooltip( _( "Toggle ratsnest display of selected item(s)" ) )
1523 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1524 .Icon( BITMAPS::tool_ratsnest )
1525 .Flags( AF_ACTIVATE ) );
1526
1528 .Name( "pcbnew.Control.hideDynamicRatsnest" )
1529 .Scope( AS_GLOBAL ) );
1530
1532 .Name( "pcbnew.Control.updateLocalRatsnest" )
1533 .Scope( AS_GLOBAL )
1534 .Parameter( VECTOR2I() ) );
1535
1537 .Name( "pcbnew.Control.showPythonConsole" )
1538 .Scope( AS_GLOBAL )
1539 .FriendlyName( _( "Scripting Console" ) )
1540 .Tooltip( _( "Show the Python scripting console" ) )
1541 .Icon( BITMAPS::py_script )
1542 .ToolbarState( TOOLBAR_STATE::TOGGLE) );
1543
1545 .Name( "pcbnew.Control.showLayersManager" )
1546 .Scope( AS_GLOBAL )
1547 .FriendlyName( _( "Appearance" ) )
1548 .Tooltip( _( "Show/hide the appearance manager" ) )
1549 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1550 .Icon( BITMAPS::layers_manager ) );
1551
1553 .Name( "pcbnew.Control.showNetInspector" )
1554 .Scope( AS_GLOBAL )
1555 .FriendlyName( _( "Net Inspector" ) )
1556 .Tooltip( _( "Show/hide the net inspector" ) )
1557 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1558 .Icon( BITMAPS::tools ) );
1559
1560TOOL_ACTION PCB_ACTIONS::zonesManager( "pcbnew.Control.zonesManager",
1561 AS_GLOBAL, 0, "",
1562 _( "Zone Manager..." ),
1563 _( "Show the zone manager dialog" ),
1565
1567 .Name( "pcbnew.Control.flipBoard" )
1568 .Scope( AS_GLOBAL )
1569 .FriendlyName( _( "Flip Board View" ) )
1570 .Tooltip( _( "View board from the opposite side" ) )
1571 .Icon( BITMAPS::flip_board ) );
1572
1574 .Name( "pcbnew.Control.rehatchShapes" )
1575 .Scope( AS_CONTEXT ) );
1576
1577
1578// Display modes
1580 .Name( "pcbnew.Control.showRatsnest" )
1581 .Scope( AS_GLOBAL )
1582 .FriendlyName( _( "Show Ratsnest" ) )
1583 .Tooltip( _( "Show lines/arcs representing missing connections on the board" ) )
1584 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1585 .Icon( BITMAPS::general_ratsnest ) );
1586
1588 .Name( "pcbnew.Control.ratsnestLineMode" )
1589 .Scope( AS_GLOBAL )
1590 .FriendlyName( _( "Curved Ratsnest Lines" ) )
1591 .Tooltip( _( "Show ratsnest with curved lines" ) )
1592 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1593 .Icon( BITMAPS::curved_ratsnest ) );
1594
1596 .Name( "pcbnew.Control.ratsnestModeCycle" )
1597 .Scope( AS_GLOBAL )
1598 .FriendlyName( _( "Ratsnest Mode (3-state)" ) )
1599 .Tooltip( _( "Cycle between showing ratsnests for all layers, just visible layers, and none" ) ) );
1600
1602 .Name( "pcbnew.Control.netColorMode" )
1603 .Scope( AS_GLOBAL )
1604 .FriendlyName( _( "Net Color Mode (3-state)" ) )
1605 .Tooltip( _( "Cycle between using net and netclass colors for all nets, just ratsnests, and none" ) ) );
1606
1608 .Name( "pcbnew.Control.trackDisplayMode" )
1609 .Scope( AS_GLOBAL )
1610 .DefaultHotkey( 'K' )
1611 .LegacyHotkeyName( "Track Display Mode" )
1612 .FriendlyName( _( "Sketch Tracks" ) )
1613 .Tooltip( _( "Show tracks in outline mode" ) )
1614 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1615 .Icon( BITMAPS::showtrack ) );
1616
1618 .Name( "pcbnew.Control.padDisplayMode" )
1619 .Scope( AS_GLOBAL )
1620 .FriendlyName( _( "Sketch Pads" ) )
1621 .Tooltip( _( "Show pads in outline mode" ) )
1622 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1623 .Icon( BITMAPS::pad_sketch ) );
1624
1626 .Name( "pcbnew.Control.viaDisplayMode" )
1627 .Scope( AS_GLOBAL )
1628 .FriendlyName( _( "Sketch Vias" ) )
1629 .Tooltip( _( "Show vias in outline mode" ) )
1630 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1631 .Icon( BITMAPS::via_sketch ) );
1632
1634 .Name( "pcbnew.Control.graphicOutlines" )
1635 .Scope( AS_GLOBAL )
1636 .FriendlyName( _( "Sketch Graphic Items" ) )
1637 .Tooltip( _( "Show graphic items in outline mode" ) )
1638 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1639 .Icon( BITMAPS::show_mod_edge ) );
1640
1642 .Name( "pcbnew.Control.textOutlines" )
1643 .Scope( AS_GLOBAL )
1644 .FriendlyName( _( "Sketch Text Items" ) )
1645 .Tooltip( _( "Show footprint texts in line mode" ) )
1646 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1647 .Icon( BITMAPS::text_sketch ) );
1648
1650 .Name( "pcbnew.Control.showPadNumbers" )
1651 .Scope( AS_GLOBAL )
1652 .FriendlyName( _( "Show Pad Numbers" ) )
1653 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1654 .Icon( BITMAPS::pad_number ) );
1655
1657 .Name( "pcbnew.Control.zoneDisplayEnable" )
1658 .Scope( AS_GLOBAL )
1659 .FriendlyName( _( "Draw Zone Fills" ) )
1660 .Tooltip( _( "Show filled areas of zones" ) )
1661 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1662 .Icon( BITMAPS::show_zone ) );
1663
1665 .Name( "pcbnew.Control.zoneDisplayDisable" )
1666 .Scope( AS_GLOBAL )
1667 .FriendlyName( _( "Draw Zone Outlines" ) )
1668 .Tooltip( _( "Show only zone boundaries" ) )
1669 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1670 .Icon( BITMAPS::show_zone_disable ) );
1671
1673 .Name( "pcbnew.Control.zoneDisplayOutlines" )
1674 .Scope( AS_GLOBAL )
1675 .FriendlyName( _( "Draw Zone Fill Fracture Borders" ) )
1676 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1678
1680 .Name( "pcbnew.Control.zoneDisplayTesselation" )
1681 .Scope( AS_GLOBAL )
1682 .FriendlyName( _( "Draw Zone Fill Triangulation" ) )
1683 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1685
1687 .Name( "pcbnew.Control.zoneDisplayToggle" )
1688 .Scope( AS_GLOBAL )
1689 .FriendlyName( _( "Toggle Zone Display" ) )
1690 .Tooltip( _( "Cycle between showing zone fills and just their outlines" ) )
1691 .Icon( BITMAPS::show_zone ) );
1692
1693
1695 .Name( "pcbnew.Control.fpAutoZoom" )
1696 .Scope( AS_GLOBAL )
1697 .FriendlyName( _( "Automatic zoom" ) )
1698 .Tooltip( _( "Automatic Zoom on footprint change" ) )
1700 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1701
1702// Layer control
1703
1704// Translate aLayer to the action that switches to it
1706{
1707 switch( aLayer )
1708 {
1709 case F_Cu: return &PCB_ACTIONS::layerTop;
1710 case In1_Cu: return &PCB_ACTIONS::layerInner1;
1711 case In2_Cu: return &PCB_ACTIONS::layerInner2;
1712 case In3_Cu: return &PCB_ACTIONS::layerInner3;
1713 case In4_Cu: return &PCB_ACTIONS::layerInner4;
1714 case In5_Cu: return &PCB_ACTIONS::layerInner5;
1715 case In6_Cu: return &PCB_ACTIONS::layerInner6;
1716 case In7_Cu: return &PCB_ACTIONS::layerInner7;
1717 case In8_Cu: return &PCB_ACTIONS::layerInner8;
1718 case In9_Cu: return &PCB_ACTIONS::layerInner9;
1719 case In10_Cu: return &PCB_ACTIONS::layerInner10;
1720 case In11_Cu: return &PCB_ACTIONS::layerInner11;
1721 case In12_Cu: return &PCB_ACTIONS::layerInner12;
1722 case In13_Cu: return &PCB_ACTIONS::layerInner13;
1723 case In14_Cu: return &PCB_ACTIONS::layerInner14;
1724 case In15_Cu: return &PCB_ACTIONS::layerInner15;
1725 case In16_Cu: return &PCB_ACTIONS::layerInner16;
1726 case In17_Cu: return &PCB_ACTIONS::layerInner17;
1727 case In18_Cu: return &PCB_ACTIONS::layerInner18;
1728 case In19_Cu: return &PCB_ACTIONS::layerInner19;
1729 case In20_Cu: return &PCB_ACTIONS::layerInner20;
1730 case In21_Cu: return &PCB_ACTIONS::layerInner21;
1731 case In22_Cu: return &PCB_ACTIONS::layerInner22;
1732 case In23_Cu: return &PCB_ACTIONS::layerInner23;
1733 case In24_Cu: return &PCB_ACTIONS::layerInner24;
1734 case In25_Cu: return &PCB_ACTIONS::layerInner25;
1735 case In26_Cu: return &PCB_ACTIONS::layerInner26;
1736 case In27_Cu: return &PCB_ACTIONS::layerInner27;
1737 case In28_Cu: return &PCB_ACTIONS::layerInner28;
1738 case In29_Cu: return &PCB_ACTIONS::layerInner29;
1739 case In30_Cu: return &PCB_ACTIONS::layerInner30;
1740 case B_Cu: return &PCB_ACTIONS::layerBottom;
1741 default: return nullptr;
1742 }
1743}
1744
1745// Implemented as an accessor + static variable to ensure it is initialized when used
1746// in static action constructors
1748{
1749 static TOOL_ACTION_GROUP s_toolActionGroup( "pcbnew.Control.DirectLayerActions" );
1750 return s_toolActionGroup;
1751}
1752
1754 .Name( "pcbnew.Control.layerTop" )
1755 .Scope( AS_GLOBAL )
1757 .DefaultHotkey( WXK_PAGEUP )
1758 .LegacyHotkeyName( "Switch to Component (F.Cu) layer" )
1759 .FriendlyName( _( "Switch to Component (F.Cu) layer" ) )
1760 .Flags( AF_NOTIFY )
1761 .Parameter( F_Cu ) );
1762
1764 .Name( "pcbnew.Control.layerInner1" )
1765 .Scope( AS_GLOBAL )
1767 .LegacyHotkeyName( "Switch to Inner layer 1" )
1768 .FriendlyName( _( "Switch to Inner Layer 1" ) )
1769 .Flags( AF_NOTIFY )
1770 .Parameter( In1_Cu ) );
1771
1773 .Name( "pcbnew.Control.layerInner2" )
1774 .Scope( AS_GLOBAL )
1776 .LegacyHotkeyName( "Switch to Inner layer 2" )
1777 .FriendlyName( _( "Switch to Inner Layer 2" ) )
1778 .Flags( AF_NOTIFY )
1779 .Parameter( In2_Cu ) );
1780
1782 .Name( "pcbnew.Control.layerInner3" )
1783 .Scope( AS_GLOBAL )
1785 .LegacyHotkeyName( "Switch to Inner layer 3" )
1786 .FriendlyName( _( "Switch to Inner Layer 3" ) )
1787 .Flags( AF_NOTIFY )
1788 .Parameter( In3_Cu ) );
1789
1791 .Name( "pcbnew.Control.layerInner4" )
1792 .Scope( AS_GLOBAL )
1794 .LegacyHotkeyName( "Switch to Inner layer 4" )
1795 .FriendlyName( _( "Switch to Inner Layer 4" ) )
1796 .Flags( AF_NOTIFY )
1797 .Parameter( In4_Cu ) );
1798
1800 .Name( "pcbnew.Control.layerInner5" )
1801 .Scope( AS_GLOBAL )
1803 .LegacyHotkeyName( "Switch to Inner layer 5" )
1804 .FriendlyName( _( "Switch to Inner Layer 5" ) )
1805 .Flags( AF_NOTIFY )
1806 .Parameter( In5_Cu ) );
1807
1809 .Name( "pcbnew.Control.layerInner6" )
1810 .Scope( AS_GLOBAL )
1812 .LegacyHotkeyName( "Switch to Inner layer 6" )
1813 .FriendlyName( _( "Switch to Inner Layer 6" ) )
1814 .Flags( AF_NOTIFY )
1815 .Parameter( In6_Cu ) );
1816
1818 .Name( "pcbnew.Control.layerInner7" )
1819 .Scope( AS_GLOBAL )
1821 .FriendlyName( _( "Switch to Inner Layer 7" ) )
1822 .Flags( AF_NOTIFY )
1823 .Parameter( In7_Cu ) );
1824
1826 .Name( "pcbnew.Control.layerInner8" )
1827 .Scope( AS_GLOBAL )
1829 .FriendlyName( _( "Switch to Inner Layer 8" ) )
1830 .Flags( AF_NOTIFY )
1831 .Parameter( In8_Cu ) );
1832
1834 .Name( "pcbnew.Control.layerInner9" )
1835 .Scope( AS_GLOBAL )
1837 .FriendlyName( _( "Switch to Inner Layer 9" ) )
1838 .Flags( AF_NOTIFY )
1839 .Parameter( In9_Cu ) );
1840
1842 .Name( "pcbnew.Control.layerInner10" )
1843 .Scope( AS_GLOBAL )
1845 .FriendlyName( _( "Switch to Inner Layer 10" ) )
1846 .Flags( AF_NOTIFY )
1847 .Parameter( In10_Cu ) );
1848
1850 .Name( "pcbnew.Control.layerInner11" )
1851 .Scope( AS_GLOBAL )
1853 .FriendlyName( _( "Switch to Inner Layer 11" ) )
1854 .Flags( AF_NOTIFY )
1855 .Parameter( In11_Cu ) );
1856
1858 .Name( "pcbnew.Control.layerInner12" )
1859 .Scope( AS_GLOBAL )
1861 .FriendlyName( _( "Switch to Inner Layer 12" ) )
1862 .Flags( AF_NOTIFY )
1863 .Parameter( In12_Cu ) );
1864
1866 .Name( "pcbnew.Control.layerInner13" )
1867 .Scope( AS_GLOBAL )
1869 .FriendlyName( _( "Switch to Inner Layer 13" ) )
1870 .Flags( AF_NOTIFY )
1871 .Parameter( In13_Cu ) );
1872
1874 .Name( "pcbnew.Control.layerInner14" )
1875 .Scope( AS_GLOBAL )
1877 .FriendlyName( _( "Switch to Inner Layer 14" ) )
1878 .Flags( AF_NOTIFY )
1879 .Parameter( In14_Cu ) );
1880
1882 .Name( "pcbnew.Control.layerInner15" )
1883 .Scope( AS_GLOBAL )
1885 .FriendlyName( _( "Switch to Inner Layer 15" ) )
1886 .Flags( AF_NOTIFY )
1887 .Parameter( In15_Cu ) );
1888
1890 .Name( "pcbnew.Control.layerInner16" )
1891 .Scope( AS_GLOBAL )
1893 .FriendlyName( _( "Switch to Inner Layer 16" ) )
1894 .Flags( AF_NOTIFY )
1895 .Parameter( In16_Cu ) );
1896
1898 .Name( "pcbnew.Control.layerInner17" )
1899 .Scope( AS_GLOBAL )
1901 .FriendlyName( _( "Switch to Inner Layer 17" ) )
1902 .Flags( AF_NOTIFY )
1903 .Parameter( In17_Cu ) );
1904
1906 .Name( "pcbnew.Control.layerInner18" )
1907 .Scope( AS_GLOBAL )
1909 .FriendlyName( _( "Switch to Inner Layer 18" ) )
1910 .Flags( AF_NOTIFY )
1911 .Parameter( In18_Cu ) );
1912
1914 .Name( "pcbnew.Control.layerInner19" )
1915 .Scope( AS_GLOBAL )
1917 .FriendlyName( _( "Switch to Inner Layer 19" ) )
1918 .Flags( AF_NOTIFY )
1919 .Parameter( In19_Cu ) );
1920
1922 .Name( "pcbnew.Control.layerInner20" )
1923 .Scope( AS_GLOBAL )
1925 .FriendlyName( _( "Switch to Inner Layer 20" ) )
1926 .Flags( AF_NOTIFY )
1927 .Parameter( In20_Cu ) );
1928
1930 .Name( "pcbnew.Control.layerInner21" )
1931 .Scope( AS_GLOBAL )
1933 .FriendlyName( _( "Switch to Inner Layer 21" ) )
1934 .Flags( AF_NOTIFY )
1935 .Parameter( In21_Cu ) );
1936
1938 .Name( "pcbnew.Control.layerInner22" )
1939 .Scope( AS_GLOBAL )
1941 .FriendlyName( _( "Switch to Inner Layer 22" ) )
1942 .Flags( AF_NOTIFY )
1943 .Parameter( In22_Cu ) );
1944
1946 .Name( "pcbnew.Control.layerInner23" )
1947 .Scope( AS_GLOBAL )
1949 .FriendlyName( _( "Switch to Inner Layer 23" ) )
1950 .Flags( AF_NOTIFY )
1951 .Parameter( In23_Cu ) );
1952
1954 .Name( "pcbnew.Control.layerInner24" )
1955 .Scope( AS_GLOBAL )
1957 .FriendlyName( _( "Switch to Inner Layer 24" ) )
1958 .Flags( AF_NOTIFY )
1959 .Parameter( In24_Cu ) );
1960
1962 .Name( "pcbnew.Control.layerInner25" )
1963 .Scope( AS_GLOBAL )
1965 .FriendlyName( _( "Switch to Inner Layer 25" ) )
1966 .Flags( AF_NOTIFY )
1967 .Parameter( In25_Cu ) );
1968
1970 .Name( "pcbnew.Control.layerInner26" )
1971 .Scope( AS_GLOBAL )
1973 .FriendlyName( _( "Switch to Inner Layer 26" ) )
1974 .Flags( AF_NOTIFY )
1975 .Parameter( In26_Cu ) );
1976
1978 .Name( "pcbnew.Control.layerInner27" )
1979 .Scope( AS_GLOBAL )
1981 .FriendlyName( _( "Switch to Inner Layer 27" ) )
1982 .Flags( AF_NOTIFY )
1983 .Parameter( In27_Cu ) );
1984
1986 .Name( "pcbnew.Control.layerInner28" )
1987 .Scope( AS_GLOBAL )
1989 .FriendlyName( _( "Switch to Inner Layer 28" ) )
1990 .Flags( AF_NOTIFY )
1991 .Parameter( In28_Cu ) );
1992
1994 .Name( "pcbnew.Control.layerInner29" )
1995 .Scope( AS_GLOBAL )
1997 .FriendlyName( _( "Switch to Inner Layer 29" ) )
1998 .Flags( AF_NOTIFY )
1999 .Parameter( In29_Cu ) );
2000
2002 .Name( "pcbnew.Control.layerInner30" )
2003 .Scope( AS_GLOBAL )
2005 .FriendlyName( _( "Switch to Inner Layer 30" ) )
2006 .Flags( AF_NOTIFY )
2007 .Parameter( In30_Cu ) );
2008
2010 .Name( "pcbnew.Control.layerBottom" )
2011 .Scope( AS_GLOBAL )
2013 .DefaultHotkey( WXK_PAGEDOWN )
2014 .LegacyHotkeyName( "Switch to Copper (B.Cu) layer" )
2015 .FriendlyName( _( "Switch to Copper (B.Cu) Layer" ) )
2016 .Flags( AF_NOTIFY )
2017 .Parameter( B_Cu ) );
2018
2020 .Name( "pcbnew.Control.layerNext" )
2021 .Scope( AS_GLOBAL )
2022 .DefaultHotkey( '+' )
2023 .LegacyHotkeyName( "Switch to Next Layer" )
2024 .FriendlyName( _( "Switch to Next Layer" ) )
2025 .Flags( AF_NOTIFY ) );
2026
2028 .Name( "pcbnew.Control.layerPrev" )
2029 .Scope( AS_GLOBAL )
2030 .DefaultHotkey( '-' )
2031 .LegacyHotkeyName( "Switch to Previous Layer" )
2032 .FriendlyName( _( "Switch to Previous Layer" ) )
2033 .Flags( AF_NOTIFY ) );
2034
2036 .Name( "pcbnew.Control.layerToggle" )
2037 .Scope( AS_GLOBAL )
2038 .DefaultHotkey( 'V' )
2039 .LegacyHotkeyName( "Add Through Via" )
2040 .FriendlyName( _( "Toggle Layer" ) )
2041 .Tooltip( _( "Switch between layers in active layer pair" ) )
2042 .Flags( AF_NOTIFY ) );
2043
2045 .Name( "pcbnew.Control.layerAlphaInc" )
2046 .Scope( AS_GLOBAL )
2047 .DefaultHotkey( '}' )
2048 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2049 .LegacyHotkeyName( "Increment Layer Transparency (Modern Toolset only)" )
2050 .FriendlyName( _( "Increase Layer Opacity" ) )
2051 .Tooltip( _( "Make the current layer less transparent" ) )
2052 .Icon( BITMAPS::contrast_mode ) );
2053
2055 .Name( "pcbnew.Control.layerAlphaDec" )
2056 .Scope( AS_GLOBAL )
2057 .DefaultHotkey( '{' )
2058 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2059 .LegacyHotkeyName( "Decrement Layer Transparency (Modern Toolset only)" )
2060 .FriendlyName( _( "Decrease Layer Opacity" ) )
2061 .Tooltip( _( "Make the current layer more transparent" ) )
2062 .Icon( BITMAPS::contrast_mode ) );
2063
2065 .Name( "pcbnew.Control.layerPairPresetCycle" )
2066 .Scope( AS_GLOBAL )
2067 .DefaultHotkey( MD_SHIFT + 'V' )
2068 .FriendlyName( _( "Cycle Layer Pair Presets" ) )
2069 .Tooltip( _( "Cycle between preset layer pairs" ) ) );
2070
2072 .Name( "pcbnew.Control.layerChanged" )
2073 .Scope( AS_GLOBAL )
2074 .Flags( AF_NOTIFY ) );
2075
2076//Show board statistics tool
2078 .Name( "pcbnew.InspectionTool.ShowBoardStatistics" )
2079 .Scope( AS_GLOBAL )
2080 .FriendlyName( _( "Show Board Statistics" ) )
2081 .Tooltip( _( "Shows board statistics" ) )
2082 .Icon( BITMAPS::editor ) );
2083
2085 .Name( "pcbnew.InspectionTool.InspectClearance" )
2086 .Scope( AS_GLOBAL )
2087 .FriendlyName( _( "Clearance Resolution" ) )
2088 .Tooltip( _( "Show clearance resolution for the active layer between two selected objects" ) )
2089 .Icon( BITMAPS::mw_add_gap ) );
2090
2092 .Name( "pcbnew.InspectionTool.InspectConstraints" )
2093 .Scope( AS_GLOBAL )
2094 .FriendlyName( _( "Constraints Resolution" ) )
2095 .Tooltip( _( "Show constraints resolution for the selected object" ) )
2096 .Icon( BITMAPS::mw_add_stub ) );
2097
2099 .Name( "pcbnew.InspectionTool.DiffFootprint" )
2100 .Scope( AS_GLOBAL )
2101 .FriendlyName( _( "Compare Footprint with Library" ) )
2102 .Tooltip( _( "Show differences between board footprint and its library equivalent" ) )
2103 .Icon( BITMAPS::library ) );
2104
2106 .Name( "pcbnew.InspectionTool.ShowFootprintAssociations" )
2107 .Scope( AS_GLOBAL )
2108 .FriendlyName( _( "Show Footprint Associations" ) )
2109 .Tooltip( _( "Show footprint library and schematic symbol associations" ) )
2111
2112//Geographic re-annotation tool
2114 .Name( "pcbnew.ReannotateTool.ShowReannotateDialog" )
2115 .Scope( AS_GLOBAL )
2116 .FriendlyName( _( "Geographical Reannotate..." ) )
2117 .Tooltip( _( "Reannotate PCB in geographical order" ) )
2118 .Icon( BITMAPS::annotate ) );
2119
2121 .Name( "pcbnew.Control.repairBoard" )
2122 .Scope( AS_GLOBAL )
2123 .FriendlyName( _( "Repair Board" ) )
2124 .Tooltip( _( "Run various diagnostics and attempt to repair board" ) )
2125 .Icon( BITMAPS::rescue )
2126 .Parameter( false ) ); // Don't repair quietly
2127
2129 .Name( "pcbnew.ModuleEditor.repairFootprint" )
2130 .Scope( AS_GLOBAL )
2131 .FriendlyName( _( "Repair Footprint" ) )
2132 .Tooltip( _( "Run various diagnostics and attempt to repair footprint" ) )
2133 .Icon( BITMAPS::rescue ) );
2134
2135
2136// PLACEMENT_TOOL
2137//
2139 .Name( "pcbnew.AlignAndDistribute.alignTop" )
2140 .Scope( AS_GLOBAL )
2141 .FriendlyName( _( "Align to Top" ) )
2142 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
2143 .Icon( BITMAPS::align_items_top ) );
2144
2146 .Name( "pcbnew.AlignAndDistribute.alignBottom" )
2147 .Scope( AS_GLOBAL )
2148 .FriendlyName( _( "Align to Bottom" ) )
2149 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
2150 .Icon( BITMAPS::align_items_bottom ) );
2151
2153 .Name( "pcbnew.AlignAndDistribute.alignLeft" )
2154 .Scope( AS_GLOBAL )
2155 .FriendlyName( _( "Align to Left" ) )
2156 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
2157 .Icon( BITMAPS::align_items_left ) );
2158
2160 .Name( "pcbnew.AlignAndDistribute.alignRight" )
2161 .Scope( AS_GLOBAL )
2162 .FriendlyName( _( "Align to Right" ) )
2163 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
2164 .Icon( BITMAPS::align_items_right ) );
2165
2167 .Name( "pcbnew.AlignAndDistribute.alignCenterY" )
2168 .Scope( AS_GLOBAL )
2169 .FriendlyName( _( "Align to Vertical Center" ) )
2170 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
2171 .Icon( BITMAPS::align_items_center ) );
2172
2174 .Name( "pcbnew.AlignAndDistribute.alignCenterX" )
2175 .Scope( AS_GLOBAL )
2176 .FriendlyName( _( "Align to Horizontal Center" ) )
2177 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
2178 .Icon( BITMAPS::align_items_middle ) );
2179
2181 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyCenters" )
2182 .Scope( AS_GLOBAL )
2183 .FriendlyName( _( "Distribute Horizontally by Centers" ) )
2184 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item"
2185 "so that the item centers are equally distributed" ) )
2187
2189 .Name( "pcbnew.AlignAndDistribute.distributeHorizontallyGaps" )
2190 .Scope( AS_GLOBAL )
2191 .FriendlyName( _( "Distribute Horizontally with Even Gaps" ) )
2192 .Tooltip( _( "Distributes selected items between the left-most item and the right-most item "
2193 "so that the gaps between items are equal" ) )
2195
2197 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyGaps" )
2198 .Scope( AS_GLOBAL )
2199 .FriendlyName( _( "Distribute Vertically with Even Gaps" ) )
2200 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2201 "so that the gaps between items are equal" ) )
2203
2205 .Name( "pcbnew.AlignAndDistribute.distributeVerticallyCenters" )
2206 .Scope( AS_GLOBAL )
2207 .FriendlyName( _( "Distribute Vertically by Centers" ) )
2208 .Tooltip( _( "Distributes selected items between the top-most item and the bottom-most item "
2209 "so that the item centers are equally distributed" ) )
2211
2212// PCB_POINT_EDITOR
2213//
2215 .Name( "pcbnew.PointEditor.addCorner" )
2216 .Scope( AS_GLOBAL )
2217#ifdef __WXMAC__
2218 .DefaultHotkey( WXK_F1 )
2219#else
2220 .DefaultHotkey( WXK_INSERT )
2221#endif
2222 .FriendlyName( _( "Create Corner" ) )
2223 .Tooltip( _( "Create a corner" ) )
2224 .Icon( BITMAPS::add_corner ) );
2225
2227 .Name( "pcbnew.PointEditor.removeCorner" )
2228 .Scope( AS_GLOBAL )
2229 .FriendlyName( _( "Remove Corner" ) )
2230 .Tooltip( _( "Remove corner" ) )
2231 .Icon( BITMAPS::delete_cursor ) );
2232
2234 .Name( "pcbnew.PointEditor.chamferCorner" )
2235 .Scope( AS_GLOBAL )
2236 .FriendlyName( _( "Chamfer Corner" ) )
2237 .Tooltip( _( "Chamfer corner" ) )
2238 .Icon( BITMAPS::chamfer ) );
2239
2240// POSITION_RELATIVE_TOOL
2241//
2243 .Name( "pcbnew.PositionRelative.positionRelative" )
2244 .Scope( AS_GLOBAL )
2245 .DefaultHotkey( MD_SHIFT + 'P' )
2246 .LegacyHotkeyName( "Position Item Relative" )
2247 .FriendlyName( _( "Position Relative To..." ) )
2248 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another" ) )
2249 .Icon( BITMAPS::move_relative ) );
2250
2252 .Name( "pcbnew.PositionRelative.positionRelativeInteractively" )
2253 .Scope( AS_GLOBAL )
2254 .FriendlyName( _( "Position Interactively..." ) )
2255 .Tooltip( _( "Positions the selected item(s) by an exact amount relative to another, interactively" ) )
2256 .Icon( BITMAPS::move_relative ) );
2257
2258// PCIKER_TOOL
2259//
2261 .Name( "pcbnew.Picker.selectItemInteractively" )
2262 .Scope( AS_GLOBAL )
2263 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ) );
2264
2266 .Name( "pcbnew.Picker.selectPointInteractively" )
2267 .Scope( AS_GLOBAL )
2268 .Parameter<PCB_PICKER_TOOL::INTERACTIVE_PARAMS>( {} ));
2269
2270
2272 .Name( "pcbnew.InteractiveSelection.SelectConnection" )
2273 .Scope( AS_GLOBAL )
2274 .DefaultHotkey( 'U' )
2275 .LegacyHotkeyName( "Select Single Track" )
2276 .FriendlyName( _( "Select/Expand Connection" ) )
2277 .Tooltip( _( "Selects a connection or expands an existing selection to junctions, pads, or entire connections" ) )
2278 .Icon( BITMAPS::add_tracks ) );
2279
2281 .Name( "pcbnew.InteractiveSelection.unrouteSelected" )
2282 .Scope( AS_GLOBAL )
2283 .FriendlyName( _( "Unroute Selected" ) )
2284 .Tooltip( _( "Unroutes selected items to the nearest pad." ) )
2285 .Icon( BITMAPS::general_deletions ) );
2286
2288 .Name( "pcbnew.InteractiveSelection.unrouteSegment" )
2289 .Scope( AS_GLOBAL )
2290 .DefaultHotkey( WXK_BACK )
2291 .FriendlyName( _( "Unroute Segment" ) )
2292 .Tooltip( _( "Unroutes segment to the nearest segment." ) )
2293 .Icon( BITMAPS::general_deletions ) );
2294
2296 .Name( "pcbnew.InteractiveSelection.SyncSelection" )
2297 .Scope( AS_GLOBAL ) );
2298
2300 .Name( "pcbnew.InteractiveSelection.SyncSelectionWithNets" )
2301 .Scope( AS_GLOBAL ) );
2302
2304 .Name( "pcbnew.InteractiveSelection.SelectNet" )
2305 .Scope( AS_GLOBAL )
2306 .FriendlyName( _( "Select All Tracks in Net" ) )
2307 .Tooltip( _( "Selects all tracks & vias belonging to the same net." ) )
2308 .Parameter<int>( 0 ) );
2309
2311 .Name( "pcbnew.InteractiveSelection.DeselectNet" )
2312 .Scope( AS_GLOBAL )
2313 .FriendlyName( _( "Deselect All Tracks in Net" ) )
2314 .Tooltip( _( "Deselects all tracks & vias belonging to the same net." ) )
2315 .Parameter<int>( 0 ) );
2316
2318 .Name( "pcbnew.InteractiveSelection.SelectUnconnected" )
2319 .Scope( AS_GLOBAL )
2320 .DefaultHotkey( 'O' )
2321 .FriendlyName( _( "Select All Unconnected Footprints" ) )
2322 .Tooltip( _( "Selects all unconnected footprints belonging to each selected net." ) ) );
2323
2325 .Name( "pcbnew.InteractiveSelection.GrabUnconnected" )
2326 .Scope( AS_GLOBAL )
2327 .DefaultHotkey( MD_SHIFT + 'O' )
2328 .FriendlyName( _( "Grab Nearest Unconnected Footprints" ) )
2329 .Tooltip( _( "Selects and initiates moving the nearest unconnected footprint on each selected net." ) ) );
2330
2332 .Name( "pcbnew.InteractiveSelection.SelectOnSheet" )
2333 .Scope( AS_GLOBAL )
2334 .FriendlyName( _( "Sheet" ) )
2335 .Tooltip( _( "Selects all footprints and tracks in the schematic sheet" ) )
2336 .Icon( BITMAPS::select_same_sheet ) );
2337
2339 .Name( "pcbnew.InteractiveSelection.SelectSameSheet" )
2340 .Scope( AS_GLOBAL )
2341 .FriendlyName( _( "Items in Same Hierarchical Sheet" ) )
2342 .Tooltip( _( "Selects all footprints and tracks in the same schematic sheet" ) )
2343 .Icon( BITMAPS::select_same_sheet ) );
2344
2346 .Name( "pcbnew.InteractiveSelection.SelectOnSchematic" )
2347 .Scope( AS_GLOBAL )
2348 .FriendlyName( _( "Select on Schematic" ) )
2349 .Tooltip( _( "Selects corresponding items in Schematic editor" ) )
2350 .Icon( BITMAPS::select_same_sheet ) );
2351
2353 .Name( "pcbnew.InteractiveSelection.FilterSelection" )
2354 .Scope( AS_GLOBAL )
2355 .FriendlyName( _( "Filter Selected Items..." ) )
2356 .Tooltip( _( "Remove items from the selection by type" ) )
2357 .Icon( BITMAPS::filter ) );
2358
2359
2360// ZONE_FILLER_TOOL
2361//
2363 .Name( "pcbnew.ZoneFiller.zoneFill" )
2364 .Scope( AS_GLOBAL )
2365 .FriendlyName( _( "Draft Fill Selected Zone(s)" ) )
2366 .Tooltip( _( "Update copper fill of selected zone(s) without regard to other interacting zones" ) )
2367 .Icon( BITMAPS::fill_zone )
2368 .Parameter<ZONE*>( nullptr ) );
2369
2371 .Name( "pcbnew.ZoneFiller.zoneFillAll" )
2372 .Scope( AS_GLOBAL )
2373 .DefaultHotkey( 'B' )
2374 .LegacyHotkeyName( "Fill or Refill All Zones" )
2375 .FriendlyName( _( "Fill All Zones" ) )
2376 .Tooltip( _( "Update copper fill of all zones" ) )
2377 .Icon( BITMAPS::fill_zone ) );
2378
2380 .Name( "pcbnew.ZoneFiller.zoneFillDirty" )
2381 .Scope( AS_CONTEXT ) );
2382
2384 .Name( "pcbnew.ZoneFiller.zoneUnfill" )
2385 .Scope( AS_GLOBAL )
2386 .FriendlyName( _( "Unfill Selected Zone(s)" ) )
2387 .Tooltip( _( "Remove copper fill from selected zone(s)" ) )
2388 .Icon( BITMAPS::zone_unfill ) );
2389
2391 .Name( "pcbnew.ZoneFiller.zoneUnfillAll" )
2392 .Scope( AS_GLOBAL )
2393 .DefaultHotkey( MD_CTRL + 'B' )
2394 .LegacyHotkeyName( "Remove Filled Areas in All Zones" )
2395 .FriendlyName( _( "Unfill All Zones" ) )
2396 .Tooltip( _( "Remove copper fill from all zones" ) )
2397 .Icon( BITMAPS::zone_unfill ) );
2398
2399
2400// AUTOPLACER_TOOL
2401//
2403 .Name( "pcbnew.Autoplacer.autoplaceSelected" )
2404 .Scope( AS_GLOBAL )
2405 .FriendlyName( _( "Place Selected Footprints" ) )
2406 .Tooltip( _( "Performs automatic placement of selected components" ) ) );
2407
2409 .Name( "pcbnew.Autoplacer.autoplaceOffboard" )
2410 .Scope( AS_GLOBAL )
2411 .FriendlyName( _( "Place Off-Board Footprints" ) )
2412 .Tooltip( _( "Performs automatic placement of components outside board area" ) ) );
2413
2415 .Name( "pcbnew.Multichannel.generatePlacementRuleAreas" )
2416 .Scope( AS_GLOBAL )
2417 .FriendlyName( _( "Generate Placement Rule Areas..." ) )
2418 .Tooltip( _( "Creates best-fit placement rule areas" ) )
2420 .Flags( AF_ACTIVATE ) );
2421
2423 .Name( "pcbnew.Multichannel.repeatLayout" )
2424 .Scope( AS_GLOBAL )
2425 .FriendlyName( _( "Repeat Layout..." ) )
2426 .Tooltip( _( "Clones placement & routing across multiple identical channels" ) )
2427 .Icon( BITMAPS::copy )
2428 );
2429
2430// ROUTER_TOOL
2431//
2433 .Name( "pcbnew.InteractiveRouter.SingleTrack" )
2434 .Scope( AS_GLOBAL )
2435 .DefaultHotkey( 'X' )
2436 .LegacyHotkeyName( "Add New Track" )
2437 .FriendlyName( _( "Route Single Track" ) )
2438 .Tooltip( _( "Route tracks" ) )
2439 .Icon( BITMAPS::add_tracks )
2440 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2441 .Flags( AF_ACTIVATE )
2442 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2443
2445 .Name( "pcbnew.InteractiveRouter.DiffPair" )
2446 .Scope( AS_GLOBAL )
2447 .DefaultHotkey( '6' )
2448 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2449 .LegacyHotkeyName( "Route Differential Pair (Modern Toolset only)" )
2450 .FriendlyName( _( "Route Differential Pair" ) )
2451 .Tooltip( _( "Route differential pairs" ) )
2452 .Icon( BITMAPS::ps_diff_pair )
2453 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2454 .Flags( AF_ACTIVATE )
2455 .Parameter( PNS::PNS_MODE_ROUTE_DIFF_PAIR ) );
2456
2458 .Name( "pcbnew.InteractiveRouter.SettingsDialog" )
2459 .Scope( AS_GLOBAL )
2460 .DefaultHotkey( MD_CTRL + '<' )
2461 .LegacyHotkeyName( "Routing Options" )
2462 .FriendlyName( _( "Interactive Router Settings..." ) )
2463 .Tooltip( _( "Open Interactive Router settings" ) )
2464 .Icon( BITMAPS::tools ) );
2465
2467 .Name( "pcbnew.InteractiveRouter.DiffPairDialog" )
2468 .Scope( AS_GLOBAL )
2469 .FriendlyName( _( "Differential Pair Dimensions..." ) )
2470 .Tooltip( _( "Open Differential Pair Dimension settings" ) )
2471 .Icon( BITMAPS::ps_diff_pair_gap ) );
2472
2474 .Name( "pcbnew.InteractiveRouter.HighlightMode" )
2475 .Scope( AS_GLOBAL )
2476 .FriendlyName( _( "Router Highlight Mode" ) )
2477 .Tooltip( _( "Switch router to highlight mode" ) )
2478 .Flags( AF_NONE )
2479 .Parameter( PNS::RM_MarkObstacles ) );
2480
2482 .Name( "pcbnew.InteractiveRouter.ShoveMode" )
2483 .Scope( AS_GLOBAL )
2484 .FriendlyName( _( "Router Shove Mode" ) )
2485 .Tooltip( _( "Switch router to shove mode" ) )
2486 .Flags( AF_NONE )
2487 .Parameter( PNS::RM_Shove ) );
2488
2490 .Name( "pcbnew.InteractiveRouter.WalkaroundMode" )
2491 .Scope( AS_GLOBAL )
2492 .FriendlyName( _( "Router Walkaround Mode" ) )
2493 .Tooltip( _( "Switch router to walkaround mode" ) )
2494 .Flags( AF_NONE )
2495 .Parameter( PNS::RM_Walkaround ) );
2496
2498 .Name( "pcbnew.InteractiveRouter.CycleRouterMode" )
2499 .Scope( AS_GLOBAL )
2500 .FriendlyName( _( "Cycle Router Mode" ) )
2501 .Tooltip( _( "Cycle router to the next mode" ) ) );
2502
2504 .Name( "pcbnew.InteractiveRouter.SelectLayerPair" )
2505 .Scope( AS_GLOBAL )
2506 .FriendlyName( _( "Set Layer Pair..." ) )
2507 .Tooltip( _( "Change active layer pair for routing" ) )
2509 .Flags( AF_ACTIVATE ) );
2510
2512 .Name( "pcbnew.LengthTuner.TuneSingleTrack" )
2513 .Scope( AS_GLOBAL )
2514 .DefaultHotkey( '7' )
2515 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2516 .LegacyHotkeyName( "Tune Single Track (Modern Toolset only)" )
2517 .FriendlyName( _( "Tune Length of a Single Track" ) )
2519 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2520 .Flags( AF_ACTIVATE )
2521 .Parameter( PNS::PNS_MODE_TUNE_SINGLE ) );
2522
2524 .Name( "pcbnew.LengthTuner.TuneDiffPair" )
2525 .Scope( AS_GLOBAL )
2526 .DefaultHotkey( '8' )
2527 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2528 .LegacyHotkeyName( "Tune Differential Pair Length (Modern Toolset only)" )
2529 .FriendlyName( _( "Tune Length of a Differential Pair" ) )
2531 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2532 .Flags( AF_ACTIVATE )
2533 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR ) );
2534
2536 .Name( "pcbnew.LengthTuner.TuneDiffPairSkew" )
2537 .Scope( AS_GLOBAL )
2538 .DefaultHotkey( '9' )
2539 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2540 .LegacyHotkeyName( "Tune Differential Pair Skew (Modern Toolset only)" )
2541 .FriendlyName( _( "Tune Skew of a Differential Pair" ) )
2543 .ToolbarState( TOOLBAR_STATE::TOGGLE )
2544 .Flags( AF_ACTIVATE )
2545 .Parameter( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW ) );
2546
2548 .Name( "pcbnew.InteractiveRouter.InlineDrag" )
2549 .Scope( AS_CONTEXT )
2550 .Parameter<int>( PNS::DM_ANY ) );
2551
2553 .Name( "pcbnew.InteractiveRouter.UndoLastSegment" )
2554 .Scope( AS_CONTEXT )
2555 .DefaultHotkey( WXK_BACK )
2556 .FriendlyName( _( "Undo Last Segment" ) )
2557 .Tooltip( _( "Walks the current track back one segment." ) ) );
2558
2560 .Name( "pcbnew.InteractiveRouter.ContinueFromEnd" )
2561 .Scope( AS_CONTEXT )
2562 .DefaultHotkey( MD_CTRL + 'E' )
2563 .FriendlyName( _( "Route From Other End" ) )
2564 .Tooltip( _( "Commits current segments and starts next segment from nearest ratsnest end." ) ) );
2565
2567 .Name( "pcbnew.InteractiveRouter.AttemptFinish" )
2568 .Scope( AS_CONTEXT )
2569 .DefaultHotkey( 'F' )
2570 .FriendlyName( _( "Attempt Finish" ) )
2571 .Tooltip( _( "Attempts to complete current route to nearest ratsnest end." ) )
2572 .Parameter<bool*>( nullptr ) );
2573
2575 .Name( "pcbnew.InteractiveRouter.RouteSelected" )
2576 .Scope( AS_GLOBAL )
2577 .DefaultHotkey( MD_SHIFT + 'X' )
2578 .FriendlyName( _( "Route Selected" ) )
2579 .Tooltip( _( "Sequentially route selected items from ratsnest anchor." ) )
2580 .Flags( AF_ACTIVATE )
2581 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2582
2584 .Name( "pcbnew.InteractiveRouter.RouteSelectedFromEnd" )
2585 .Scope( AS_GLOBAL )
2586 .DefaultHotkey( MD_SHIFT + 'E' )
2587 .FriendlyName( _( "Route Selected From Other End" ) )
2588 .Tooltip( _( "Sequentially route selected items from other end of ratsnest anchor." ) )
2589 .Flags( AF_ACTIVATE )
2590 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2591
2593 .Name( "pcbnew.InteractiveRouter.Autoroute" )
2594 .Scope( AS_GLOBAL )
2595 .DefaultHotkey( MD_SHIFT + 'F' )
2596 .FriendlyName( _( "Attempt Finish Selected (Autoroute)" ) )
2597 .Tooltip( _( "Sequentially attempt to automatically route all selected pads." ) )
2598 .Flags( AF_ACTIVATE )
2599 .Parameter( PNS::PNS_MODE_ROUTE_SINGLE ) );
2600
2602 .Name( "pcbnew.InteractiveRouter.BreakTrack" )
2603 .Scope( AS_GLOBAL )
2604 .FriendlyName( _( "Break Track" ) )
2605 .Tooltip( _( "Splits the track segment into two segments connected at the cursor position." ) )
2606 .Icon( BITMAPS::break_line ) );
2607
2609 .Name( "pcbnew.InteractiveRouter.Drag45Degree" )
2610 .Scope( AS_GLOBAL )
2611 .DefaultHotkey( 'D' )
2612 .LegacyHotkeyName( "Drag Track Keep Slope" )
2613 .FriendlyName( _( "Drag 45 Degree Mode" ) )
2614 .Tooltip( _( "Drags the track segment while keeping connected tracks at 45 degrees." ) )
2616
2618 .Name( "pcbnew.InteractiveRouter.DragFreeAngle" )
2619 .Scope( AS_GLOBAL )
2620 .DefaultHotkey( 'G' )
2621 .LegacyHotkeyName( "Drag Item" )
2622 .FriendlyName( _( "Drag Free Angle" ) )
2623 .Tooltip( _( "Drags the nearest joint in the track without restricting the track angle." ) )
2624 .Icon( BITMAPS::drag_segment ) );
2625
2626
2627// GENERATOR_TOOL
2628//
2629
2631 .Name( "pcbnew.Generator.regenerateAllTuning" )
2632 .Scope( AS_GLOBAL )
2633 .FriendlyName( _( "Update All Tuning Patterns" ) )
2634 .Tooltip( _( "Attempt to re-tune existing tuning patterns within their bounds" ) )
2636 .Parameter( wxString( wxS( "tuning_pattern" ) ) ) );
2637
2639 .Name( "pcbnew.Generator.regenerateAll" )
2640 .Scope( AS_GLOBAL )
2641 .FriendlyName( _( "Rebuild All Generators" ) )
2642 .Tooltip( _( "Rebuilds geometry of all generators" ) )
2643 .Icon( BITMAPS::refresh )
2644 .Parameter( wxString( wxS( "*" ) ) ) );
2645
2647 .Name( "pcbnew.Generator.regenerateSelected" )
2648 .Scope( AS_GLOBAL )
2649 .FriendlyName( _( "Rebuild Selected Generators" ) )
2650 .Tooltip( _( "Rebuilds geometry of selected generator(s)" ) )
2651 .Icon( BITMAPS::refresh ) );
2652
2653
2655 .Name( "pcbnew.Generator.genStartEdit" )
2656 .Scope( AS_CONTEXT ) );
2657
2659 .Name( "pcbnew.Generator.genUpdateEdit" )
2660 .Scope( AS_CONTEXT ) );
2661
2663 .Name( "pcbnew.Generator.genFinishEdit" )
2664 .Scope( AS_CONTEXT ) );
2665
2667 .Name( "pcbnew.Generator.genCacnelEdit" )
2668 .Scope( AS_CONTEXT ) );
2669
2671 .Name( "pcbnew.Generator.genRemove" )
2672 .Scope( AS_CONTEXT ) );
2673
2674
2676 .Name( "pcbnew.Generator.showManager" )
2677 .Scope( AS_GLOBAL )
2678 .FriendlyName( _( "Generators Manager" ) )
2679 .Tooltip( _( "Show a manager dialog for Generator objects" ) )
2680 .Icon( BITMAPS::pin_table ) );
2681
2682
2683// LENGTH_TUNER_TOOL
2684//
2686 .Name( "pcbnew.LengthTuner.Settings" )
2687 .Scope( AS_GLOBAL )
2688 .DefaultHotkey( MD_CTRL + 'L' )
2689 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
2690 .LegacyHotkeyName( "Length Tuning Settings (Modern Toolset only)" )
2691 .MenuText( _( "Length Tuning Settings..." ) )
2692 .Tooltip( _( "Displays tuning pattern properties dialog" ) )
2694
2695// Drag and drop
2697 .Name( "pcbnew.Control.DdAppendBoard" )
2698 .Scope( AS_GLOBAL ) );
2699
2701 .Name( "pcbnew.Control.ddImportFootprint" )
2702 .Scope( AS_GLOBAL ) );
2703
2705 .Name( "pcbnew.InteractiveDrawing.ddImportGraphics" )
2706 .Scope( AS_GLOBAL ) );
2707
2708// actions for footprint wizard frame
2710 .Name( "pcbnew.FpWizard.showWizards" )
2711 .Scope( AS_GLOBAL )
2712 .FriendlyName( _( "Show wizards selector" ) )
2713 .Tooltip( _( "Select wizard script to run" ) )
2714 .Icon( BITMAPS::module_wizard ) );
2715
2717 .Name( "pcbnew.FpWizard.resetWizardPrms" )
2718 .Scope( AS_GLOBAL )
2719 .FriendlyName( _( "Reset wizard parameters" ) )
2720 .Tooltip( _( "Reset wizard parameters to default" ) )
2721 .Icon( BITMAPS::reload ) );
2722
2724 .Name( "pcbnew.FpWizard.selectPreviousWizardPage" )
2725 .Scope( AS_GLOBAL )
2726 .FriendlyName( _( "Select previous wizard page" ) )
2727 .Tooltip( _( "Select previous parameters page" ) )
2728 .Icon( BITMAPS::lib_previous ) );
2729
2731 .Name( "pcbnew.FpWizard.selectNextWizardPage" )
2732 .Scope( AS_GLOBAL )
2733 .FriendlyName( _( "Select next wizard page" ) )
2734 .Tooltip( _( "Select next parameters page" ) )
2735 .Icon( BITMAPS::lib_next ) );
2736
2738 .Name( "pcbnew.FpWizard.exportFpToEditor" )
2739 .Scope( AS_GLOBAL )
2740 .FriendlyName( _( "Export footprint to editor" ) )
2741 .Tooltip( _( "Export footprint to editor" ) )
2743
2744
2746{
2747 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
2748 "common.Interactive.snappingModeChangedByKey" );
2749
2750 return event;
2751}
2752
2753
2755{
2756 static TOOL_EVENT event = TOOL_EVENT( TC_MESSAGE, TA_ACTION,
2757 "pcbnew.Control.layerPairPresetChangedByKey" );
2758
2759 return event;
2760}
@ 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 toggleHV45Mode
static TOOL_ACTION editTracksAndVias
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 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 deleteDesignBlock
static TOOL_ACTION placeCharacteristics
static TOOL_ACTION pluginsShowFolder
Scripting Actions.
static TOOL_ACTION viaSizeInc
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 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 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 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 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 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
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