KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_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) 2019-2023 CERN
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#include "tools/sch_actions.h"
26
27#include <bitmaps.h>
28#include <core/typeinfo.h>
29#include <layer_ids.h>
30#include <sch_bitmap.h>
32#include <tool/tool_action.h>
33
34class DESIGN_BLOCK;
35
36// Actions, being statically-defined, require specialized I18N handling. We continue to
37// use the _() macro so that string harvesting by the I18N framework doesn't have to be
38// specialized, but we don't translate on initialization and instead do it in the getters.
39
40#undef _
41#define _(s) s
42
43// clang-format off
44
45// SCH_INSPECTION_TOOL
46//
48 .Name( "eeschema.InspectionTool.runERC" )
49 .Scope( AS_GLOBAL )
50 .FriendlyName( _( "Electrical Rules Checker" ) )
51 .Tooltip( _( "Show the electrical rules checker window" ) )
52 .Icon( BITMAPS::erc ) );
53
55 .Name( "eeschema.InspectionTool.checkSymbol" )
56 .Scope( AS_GLOBAL )
57 .FriendlyName( _( "Symbol Checker" ) )
58 .Tooltip( _( "Show the symbol checker window" ) )
59 .Icon( BITMAPS::erc ) );
60
62 .Name( "eeschema.InspectionTool.diffSymbol" )
63 .Scope( AS_GLOBAL )
64 .FriendlyName( _( "Compare Symbol with Library" ) )
65 .Tooltip( _( "Show differences between schematic symbol and its library equivalent" ) )
66 .Icon( BITMAPS::library ) );
67
69 .Name( "eeschema.InspectionTool.showBusSyntaxHelp" )
70 .Scope( AS_GLOBAL )
71 .FriendlyName( _( "Show Bus Syntax Help" ) )
73
75 .Name( "eeschema.EditorControl.showSimulator" )
76 .Scope( AS_GLOBAL )
77 .FriendlyName( _( "Simulator" ) )
78 .Tooltip( _( "Show simulation window for running SPICE or IBIS simulations." ) )
79 .Icon( BITMAPS::simulator ) );
80
81
82// SCH_POINT_EDITOR
83//
85 .Name( "eeschema.PointEditor.addCorner" )
86 .Scope( AS_GLOBAL )
87 .FriendlyName( _( "Create Corner" ) )
88 .Icon( BITMAPS::add_corner ) );
89
91 .Name( "eeschema.PointEditor.removeCorner" )
92 .Scope( AS_GLOBAL )
93 .FriendlyName( _( "Remove Corner" ) )
94 .Icon( BITMAPS::delete_cursor ) );
95
96// SCH_SELECTION_TOOL
97//
99 .Name( "eeschema.InteractiveSelection.SelectNode" )
100 .Scope( AS_GLOBAL )
101 .DefaultHotkey( MD_ALT + '3' )
102 .LegacyHotkeyName( "Select Node" )
103 .FriendlyName( _( "Select Node" ) )
104 .Tooltip( _( "Select a connection item under the cursor" ) ) );
105
107 .Name( "eeschema.InteractiveSelection.SelectConnection" )
108 .Scope( AS_GLOBAL )
109 .DefaultHotkey( MD_CTRL + '4' )
110 .LegacyHotkeyName( "Select Connection" )
111 .FriendlyName( _( "Select/Expand Connection" ) )
112 .Tooltip( _( "Selects a connection or expands an existing selection to pins, symbols, or entire connections" ) )
114
116 .Name( "eeschema.InteractiveSelection.SyncSelection" )
117 .Scope( AS_GLOBAL ) );
118
119// SCH_DESIGN_BLOCK_CONTROL
121 .Name( "eeschema.SchDesignBlockControl.showDesignBlockPanel" )
122 .Scope( AS_GLOBAL )
123 .FriendlyName( _( "Design Blocks" ) )
124 .Tooltip( _( "Show/hide design blocks library" ) )
125 .Icon( BITMAPS::search_tree ) );
126
128 .Name( "eeschema.RemoteSymbols.showPanel" )
129 .Scope( AS_GLOBAL )
130 .FriendlyName( _( "Remote Symbols" ) )
131 .Tooltip( _( "Show/hide the remote symbol panel" ) )
132 .Icon( BITMAPS::library_browser ) );
133
135 .Name( "eeschema.SchDesignBlockControl.saveSheetAsDesignBlock" )
136 .Scope( AS_GLOBAL )
137 .FriendlyName( _( "Save Current Sheet as Design Block..." ) )
138 .Tooltip( _( "Create a new design block from the current sheet" ) )
139 .Icon( BITMAPS::new_component ) );
140
142 .Name( "eeschema.SchDesignBlockControl.saveSelectionAsDesignBlock" )
143 .Scope( AS_GLOBAL )
144 .FriendlyName( _( "Save Selection as Design Block..." ) )
145 .Tooltip( _( "Create a new design block from the current selection" ) )
146 .Icon( BITMAPS::new_component ) );
147
149 .Name( "eeschema.SchDesignBlockControl.updateDesignBlockFromSheet" )
150 .Scope( AS_GLOBAL )
151 .FriendlyName( _( "Update Design Block from Current Sheet" ) )
152 .Tooltip( _( "Set design block schematic to current sheet" ) )
153 .Icon( BITMAPS::save ) );
154
156 .Name( "eeschema.SchDesignBlockControl.updateDesignBlockFromSelection" )
157 .Scope( AS_GLOBAL )
158 .FriendlyName( _( "Update Design Block from Selection" ) )
159 .Tooltip( _( "Set design block schematic to current selection" ) )
160 .Icon( BITMAPS::save ) );
161
163 .Name( "eeschema.SchDesignBlockControl.deleteDesignBlock" )
164 .Scope( AS_GLOBAL )
165 .FriendlyName( _( "Delete Design Block" ) )
166 .Tooltip( _( "Remove the selected design block from its library" ) )
167 .Icon( BITMAPS::trash ) );
168
170 .Name( "eeschema.SchDesignBlockControl.editDesignBlockProperties" )
171 .Scope( AS_GLOBAL )
172 .FriendlyName( _( "Properties..." ) )
173 .Tooltip( _( "Edit properties of design block" ) )
174 .Icon( BITMAPS::edit ) );
175
176// SYMBOL_EDITOR_CONTROL
177//
179 .Name( "eeschema.SymbolLibraryControl.saveLibraryAs" )
180 .Scope( AS_GLOBAL )
181 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'S' )
182 .LegacyHotkeyName( "Save As" )
183 .FriendlyName( _( "Save Library As..." ) )
184 .Tooltip( _( "Save the current library to a new file" ) ) );
185
187 .Name( "eeschema.SymbolLibraryControl.newSymbol" )
188 .Scope( AS_GLOBAL )
189 .DefaultHotkey( MD_CTRL + 'N' )
190 .FriendlyName( _( "New Symbol..." ) )
191 .Tooltip( _( "Create a new symbol in an existing library" ) )
192 .Icon( BITMAPS::new_component ) );
193
195 .Name( "eeschema.SymbolLibraryControl.deriveFromExistingSymbol" )
196 .Scope( AS_GLOBAL )
197 .FriendlyName( _( "Derive from Existing Symbol..." ) )
198 .Tooltip( _( "Create a new symbol, derived from an existing symbol" ) )
199 .Icon( BITMAPS::new_component ) );
200
202 .Name( "eeschema.SymbolLibraryControl.editSymbol" )
203 .Scope( AS_GLOBAL )
204 .FriendlyName( _( "Edit Symbol" ) )
205 .Tooltip( _( "Show selected symbol on editor canvas" ) )
206 .Icon( BITMAPS::edit ) );
207
209 .Name( "eeschema.SymbolLibraryControl.duplicateSymbol" )
210 .Scope( AS_GLOBAL )
211 .FriendlyName( _( "Duplicate Symbol" ) )
212 .Icon( BITMAPS::duplicate ) );
213
215 .Name( "eeschema.SymbolLibraryControl.renameFootprint" )
216 .Scope( AS_GLOBAL )
217 .FriendlyName( _( "Rename Symbol..." ) )
218 .Icon( BITMAPS::edit ) );
219
221 .Name( "eeschema.SymbolLibraryControl.saveSymbolAs" )
222 .Scope( AS_GLOBAL )
223 .FriendlyName( _( "Save As..." ) )
224 .Tooltip( _( "Save the current symbol to a different library or name" ) )
225 .Icon( BITMAPS::save_as ) );
226
228 .Name( "eeschema.SymbolLibraryControl.saveSymbolCopyAs" )
229 .Scope( AS_GLOBAL )
230 .FriendlyName( _( "Save Copy As..." ) )
231 .Tooltip( _( "Save a copy of the current symbol to a different library or name" ) )
232 .Icon( BITMAPS::save_as ) );
233
235 .Name( "eeschema.SymbolLibraryControl.deleteSymbol" )
236 .Scope( AS_GLOBAL )
237 .FriendlyName( _( "Delete Symbol" ) )
238 .Tooltip( _( "Remove the selected symbol from its library" ) )
239 .Icon( BITMAPS::trash ) );
240
242 .Name( "eeschema.SymbolLibraryControl.cutSymbol" )
243 .Scope( AS_GLOBAL )
244 .FriendlyName( _( "Cut" ) )
245 .Icon( BITMAPS::cut ) );
246
248 .Name( "eeschema.SymbolLibraryControl.copySymbol" )
249 .Scope( AS_GLOBAL )
250 .FriendlyName( _( "Copy" ) )
251 .Icon( BITMAPS::copy ) );
252
254 .Name( "eeschema.SymbolLibraryControl.pasteSymbol" )
255 .Scope( AS_GLOBAL )
256 .FriendlyName( _( "Paste Symbol" ) )
257 .Icon( BITMAPS::paste ) );
258
260 .Name("eeschema.SymbolLibraryControl.importSymbol" )
261 .Scope( AS_GLOBAL )
262 .FriendlyName( _( "Import Symbol..." ) )
263 .Tooltip( _( "Import a symbol to the current library" ) )
264 .Icon( BITMAPS::import_part ) );
265
267 .Name( "eeschema.SymbolLibraryControl.exportSymbol" )
268 .Scope( AS_GLOBAL )
269 .FriendlyName( _( "Export..." ) )
270 .Tooltip( _( "Export a symbol to a new library file" ) )
271 .Icon( BITMAPS::export_part ) );
272
274 .Name( "eeschema.SymbolLibraryControl.updateSymbolFields" )
275 .Scope( AS_GLOBAL )
276 .FriendlyName( _( "Update Symbol Fields..." ) )
277 .Tooltip( _( "Update symbol to match changes made in parent symbol" ) )
278 .Icon( BITMAPS::refresh ) );
279
281 .Name( "eeschema.SymbolLibraryControl.flattenSymbol" )
282 .Scope( AS_GLOBAL )
283 .FriendlyName( _( "Flatten Symbol" ) )
284 .Tooltip( _( "Remove inheritance from symbol" ) ) );
285
287 .Name( "eeschema.SymbolLibraryControl.showLibraryFieldsTable" )
288 .Scope( AS_GLOBAL )
289 .FriendlyName( _( "Bulk Edit Symbol Fields..." ) )
290 .Tooltip( _( "Edit a table of fields from all symbols in the library" ) )
291 .Icon( BITMAPS::table ) );
292
294 .Name( "eeschema.SymbolLibraryControl.showRelatedLibraryFieldsTable" )
295 .Scope( AS_GLOBAL )
296 .FriendlyName( _( "Bulk Edit Related Symbol Fields..." ) )
297 .Tooltip( _( "Edit a table of fields from all symbols related to the selected symbol" ) )
298 .Icon( BITMAPS::table ) );
299
301 .Name( "eeschema.SymbolLibraryControl.addSymbolToSchematic" )
302 .Scope( AS_GLOBAL )
303 .FriendlyName( _( "Add Symbol to Schematic" ) )
304 .Tooltip( _( "Add the current symbol to the schematic" ) )
306
308 .Name( "eeschema.SymbolLibraryControl.showElectricalTypes" )
309 .Scope( AS_GLOBAL )
310 .FriendlyName( _( "Show Pin Electrical Types" ) )
311 .Tooltip( _( "Annotate pins with their electrical types" ) )
312 .ToolbarState( TOOLBAR_STATE::TOGGLE )
313 .Icon( BITMAPS::pin_show_etype ) );
314
316 .Name( "eeschema.SymbolLibraryControl.showPinNumbers" )
317 .Scope( AS_GLOBAL )
318 .FriendlyName( _( "Show Pin Numbers" ) )
319 .Tooltip( _( "Annotate pins with their numbers" ) )
320 .ToolbarState( TOOLBAR_STATE::TOGGLE )
321 .Icon( BITMAPS::pin ) );
322
324 .Name( "eeschema.SymbolLibraryControl.exportSymbolView" )
325 .Scope( AS_GLOBAL )
326 .FriendlyName( _( "Export View as PNG..." ) )
327 .Tooltip( _( "Create PNG file from the current view" ) )
328 .Icon( BITMAPS::export_png ) );
329
331 .Name( "eeschema.SymbolLibraryControl.exportSymbolAsSVG" )
332 .Scope( AS_GLOBAL )
333 .FriendlyName( _( "Export Symbol as SVG..." ) )
334 .Tooltip( _( "Create SVG file from the current symbol" ) )
335 .Icon( BITMAPS::export_svg ) );
336
338 .Name( "eeschema.SymbolLibraryControl.toggleSyncedPinsMode" )
339 .Scope( AS_GLOBAL )
340 .FriendlyName( _( "Synchronized Pins Mode" ) )
341 .Tooltip( _( "Synchronized Pins Mode\n"
342 "When enabled propagates all changes (except pin numbers) to other units.\n"
343 "Enabled by default for multiunit parts with interchangeable units." ) )
344 .ToolbarState( TOOLBAR_STATE::TOGGLE )
345 .Icon( BITMAPS::pin2pin ) );
346
348 .Name( "eeschema.SymbolLibraryControl.showHiddenPins" )
349 .Scope( AS_GLOBAL )
350 .FriendlyName( _( "Show Hidden Pins" ) )
351 .ToolbarState( TOOLBAR_STATE::TOGGLE )
352 .Icon( BITMAPS::hidden_pin ) );
353
355 .Name( "eeschema.SymbolLibraryControl.showHiddenFields" )
356 .Scope( AS_GLOBAL )
357 .FriendlyName( _( "Show Hidden Fields" ) )
358 .ToolbarState( TOOLBAR_STATE::TOGGLE )
359 .Icon( BITMAPS::text_sketch ) );
360
362 .Name( "eeschema.SymbolLibraryControl.previousSymbol" )
363 .Scope( AS_GLOBAL )
364 .FriendlyName( _( "Display previous symbol" ) )
365 .Icon( BITMAPS::lib_previous ) );
366
368 .Name( "eeschema.SymbolLibraryControl.nextSymbol" )
369 .Scope( AS_GLOBAL )
370 .FriendlyName( _( "Display next symbol" ) )
371 .Icon( BITMAPS::lib_next ) );
372
373
374// SYMBOL_EDITOR_DRAWING_TOOLS
375//
377 .Name( "eeschema.SymbolDrawing.placeSymbolPin" )
378 .Scope( AS_GLOBAL )
379 .DefaultHotkey( 'P' )
380 .LegacyHotkeyName( "Create Pin" )
381 .FriendlyName( _( "Draw Pins" ) )
382 .ToolbarState( TOOLBAR_STATE::TOGGLE )
383 .Icon( BITMAPS::pin )
384 .Flags( AF_ACTIVATE )
385 .Parameter( SCH_PIN_T ) );
386
388 .Name( "eeschema.SymbolDrawing.placeSymbolText" )
389 .Scope( AS_GLOBAL )
390 .FriendlyName( _( "Draw Text" ) )
391 .ToolbarState( TOOLBAR_STATE::TOGGLE )
392 .Icon( BITMAPS::text )
393 .Flags( AF_ACTIVATE )
394 .Parameter( SCH_TEXT_T ) );
395
397 .Name( "eeschema.SymbolDrawing.drawSymbolTextBox" )
398 .Scope( AS_GLOBAL )
399 .FriendlyName( _( "Draw Text Boxes" ) )
400 .ToolbarState( TOOLBAR_STATE::TOGGLE )
401 .Icon( BITMAPS::add_textbox )
402 .Flags( AF_ACTIVATE ) );
403
405 .Name( "eeschema.SymbolDrawing.drawSymbolLines" )
406 .Scope( AS_GLOBAL )
407 .FriendlyName( _( "Draw Lines" ) )
408 .Tooltip( _( "Draw connected graphic lines" ) )
409 .ToolbarState( TOOLBAR_STATE::TOGGLE )
411 .Flags( AF_ACTIVATE )
412 .Parameter( SHAPE_T::POLY ) );
413
415 .Name( "eeschema.SymbolDrawing.drawSymbolPolygon" )
416 .Scope( AS_GLOBAL )
417 .FriendlyName( _( "Draw Polygons" ) )
418 .ToolbarState( TOOLBAR_STATE::TOGGLE )
420 .Flags( AF_ACTIVATE )
421 .Parameter( SHAPE_T::POLY ) );
422
424 .Name( "eeschema.SymbolDrawing.placeSymbolAnchor" )
425 .Scope( AS_GLOBAL )
426 .FriendlyName( _( "Move Symbol Anchor" ) )
427 .ToolbarState( TOOLBAR_STATE::TOGGLE )
428 .Icon( BITMAPS::anchor )
429 .Flags( AF_ACTIVATE ) );
430
431// SYMBOL_EDITOR_PIN_TOOL
432//
434 .Name( "eeschema.PinEditing.pushPinLength" )
435 .Scope( AS_GLOBAL )
436 .FriendlyName( _( "Push Pin Length" ) )
437 .Tooltip( _( "Copy pin length to other pins in symbol" ) )
438 .Icon( BITMAPS::pin_size_to ) );
439
441 .Name( "eeschema.PinEditing.pushPinNameSize" )
442 .Scope( AS_GLOBAL )
443 .FriendlyName( _( "Push Pin Name Size" ) )
444 .Tooltip( _( "Copy pin name size to other pins in symbol" ) )
445 .Icon( BITMAPS::pin_size_to ) );
446
448 .Name( "eeschema.PinEditing.pushPinNumSize" )
449 .Scope( AS_GLOBAL )
450 .FriendlyName( _( "Push Pin Number Size" ) )
451 .Tooltip( _( "Copy pin number size to other pins in symbol" ) )
452 .Icon( BITMAPS::pin_size_to ) );
453
454
455// SCH_DRAWING_TOOLS
456//
458 .Name( "eeschema.InteractiveDrawing.placeSymbol" )
459 .Scope( AS_GLOBAL )
460 .DefaultHotkey( 'A' )
461 .LegacyHotkeyName( "Add Symbol" )
462 .FriendlyName( _( "Place Symbols" ) )
463 .ToolbarState( TOOLBAR_STATE::TOGGLE )
465 .Flags( AF_ACTIVATE )
466 .Parameter<SCH_ACTIONS::PLACE_SYMBOL_PARAMS>( {} ) );
467
469 .Name( "eeschema.InteractiveDrawing.placeNextSymbolUnit" )
470 .Scope( AS_GLOBAL )
471 .FriendlyName( _( "Place Next Symbol Unit" ) )
472 .Tooltip( _( "Place the next unit of the current symbol that is missing from the schematic" ) )
473 .Flags( AF_ACTIVATE )
474 // The symbol to use as a reference for the next unit and optionally the unit number
475 .Parameter<SCH_ACTIONS::PLACE_SYMBOL_UNIT_PARAMS>( {} ) );
476
478 .Name( "eeschema.InteractiveDrawing.placePowerSymbol" )
479 .Scope( AS_GLOBAL )
480 .DefaultHotkey( 'P' )
481 .LegacyHotkeyName( "Add Power" )
482 .FriendlyName( _( "Place Power Symbols" ) )
483 .ToolbarState( TOOLBAR_STATE::TOGGLE )
484 .Icon( BITMAPS::add_power )
485 .Flags( AF_ACTIVATE )
486 .Parameter<SCH_ACTIONS::PLACE_SYMBOL_PARAMS>( {} ) );
487
489 .Name( "eeschema.InteractiveDrawing.placeDesignBlock" )
490 .Scope( AS_GLOBAL )
491 .DefaultHotkey( MD_SHIFT + 'B' )
492 .FriendlyName( _( "Place Design Block" ) )
493 .Tooltip( _( "Add selected design block to current sheet" ) )
495 .Flags( AF_ACTIVATE )
496 .Parameter<DESIGN_BLOCK*>( nullptr ) );
497
499 .Name( "eeschema.InteractiveDrawing.placeLinkedDesignBlock" )
500 .Scope( AS_GLOBAL )
501 .FriendlyName( _( "Place Linked Design Block" ) )
502 .Tooltip( _( "Place design block linked to selected group" ) )
504 .Flags( AF_ACTIVATE ) );
505
507 .Name( "eeschema.InteractiveDrawing.saveToLinkedDesignBlock" )
508 .Scope( AS_GLOBAL )
509 .FriendlyName( _( "Save to Linked Design Block" ) )
510 .Tooltip( _( "Save selected group to linked design block" ) )
512 .Flags( AF_ACTIVATE ) );
513
514
516 .Name( "eeschema.InteractiveDrawing.placeNoConnect" )
517 .Scope( AS_GLOBAL )
518 .DefaultHotkey( 'Q' )
519 .LegacyHotkeyName( "Add No Connect Flag" )
520 .FriendlyName( _( "Place/Remove No Connect Flags" ) )
521 .ToolbarState( TOOLBAR_STATE::TOGGLE )
522 .Icon( BITMAPS::noconn )
523 .Flags( AF_ACTIVATE )
524 .Parameter( SCH_NO_CONNECT_T ) );
525
527 .Name( "eeschema.InteractiveDrawing.placeJunction" )
528 .Scope( AS_GLOBAL )
529 .DefaultHotkey( 'J' )
530 .LegacyHotkeyName( "Add Junction" )
531 .FriendlyName( _( "Place Junctions" ) )
532 .ToolbarState( TOOLBAR_STATE::TOGGLE )
533 .Icon( BITMAPS::add_junction )
534 .Flags( AF_ACTIVATE )
535 .Parameter( SCH_JUNCTION_T ) );
536
538 .Name( "eeschema.InteractiveDrawing.placeBusWireEntry" )
539 .Scope( AS_GLOBAL )
540 .DefaultHotkey( 'Z' )
541 .LegacyHotkeyName( "Add Wire Entry" )
542 .FriendlyName( _( "Place Wire to Bus Entries" ) )
543 .ToolbarState( TOOLBAR_STATE::TOGGLE )
544 .Icon( BITMAPS::add_line2bus )
545 .Flags( AF_ACTIVATE )
546 .Parameter( SCH_BUS_WIRE_ENTRY_T ) );
547
549 .Name( "eeschema.InteractiveDrawing.placeLabel" )
550 .Scope( AS_GLOBAL )
551 .DefaultHotkey( 'L' )
552 .LegacyHotkeyName( "Add Label" )
553 .FriendlyName( _( "Place Net Labels" ) )
554 .ToolbarState( TOOLBAR_STATE::TOGGLE )
555 .Icon( BITMAPS::add_label )
556 .Flags( AF_ACTIVATE ) );
557
559 .Name( "eeschema.InteractiveDrawing.placeClassLabel" )
560 .Scope( AS_GLOBAL )
561 .FriendlyName( _( "Place Directive Labels" ) )
562 .ToolbarState( TOOLBAR_STATE::TOGGLE )
564 .Flags( AF_ACTIVATE ) );
565
567 .Name( "eeschema.InteractiveDrawing.placeHierarchicalLabel" )
568 .Scope( AS_GLOBAL )
569 .DefaultHotkey( 'H' )
570 .LegacyHotkeyName( "Add Hierarchical Label" )
571 .FriendlyName( _( "Place Hierarchical Labels" ) )
572 .ToolbarState( TOOLBAR_STATE::TOGGLE )
574 .Flags( AF_ACTIVATE ) );
575
577 .Name( "eeschema.InteractiveDrawing.drawSheet" )
578 .Scope( AS_GLOBAL )
579 .DefaultHotkey( 'S' )
580 .LegacyHotkeyName( "Add Sheet" )
581 .FriendlyName( _( "Draw Hierarchical Sheets" ) )
582 .ToolbarState( TOOLBAR_STATE::TOGGLE )
584 .Flags( AF_ACTIVATE )
585 .Parameter( SCH_SHEET_T ) );
586
588 .Name( "eeschema.InteractiveDrawing.drawSheetFromFile" )
589 .Scope( AS_GLOBAL )
590 .FriendlyName( _( "Draw Sheet from File" ) )
591 .Tooltip( _( "Copy sheet into project and draw on current sheet" ) )
593 .Flags( AF_ACTIVATE )
594 .Parameter<wxString*> ( nullptr ) );
595
597 .Name( "eeschema.InteractiveDrawing.drawSheetFromDesignBlock" )
598 .Scope( AS_GLOBAL )
599 .FriendlyName( _( "Draw Sheet from Design Block" ) )
600 .Tooltip( _( "Copy design block into project as a sheet on current sheet" ) )
602 .Flags( AF_ACTIVATE )
603 .Parameter<DESIGN_BLOCK*> ( nullptr ) );
604
606 .Name( "eeschema.InteractiveDrawing.placeSheetPin" )
607 .Scope( AS_GLOBAL )
608 .FriendlyName( _( "Place Pins from Sheet" ) )
609 .Tooltip( _( "Add sheet pins from existing hierarchical labels found on that sheet" ) )
610 .ToolbarState( TOOLBAR_STATE::TOGGLE )
612 .Flags( AF_ACTIVATE ) );
613
615 .Name( "eeschema.InteractiveDrawing.autoplaceAllSheetPins" )
616 .Scope( AS_GLOBAL )
617 .FriendlyName( _( "Autoplace All Sheet Pins" ) )
618 .Tooltip( _( "Imports and auto places all sheet pins" ) ) );
619
621 .Name( "eeschema.InteractiveDrawing.syncSheetPins" )
622 .Scope( AS_GLOBAL )
623 .FriendlyName( _( "Sync Selected Sheet Pins..." ) )
624 .Tooltip( _( "Synchronize selected sheet pins and hierarchical labels" ) )
626 .Flags( AF_ACTIVATE ) );
627
629 .Name( "eeschema.InteractiveDrawing.syncAllSheetsPins" )
630 .Scope( AS_GLOBAL )
631 .FriendlyName( _( "Sync All Sheet Pins..." ) )
632 .Tooltip( _( "Synchronize all sheet pins and hierarchical labels" ) )
634 .Flags( AF_ACTIVATE ) );
635
637 .Name( "eeschema.InteractiveDrawing.importSheet" )
638 .Scope( AS_GLOBAL )
639 .FriendlyName( _( "Import Sheet..." ) )
640 .Tooltip( _( "Import sheet into project" ) )
642 .Flags( AF_ACTIVATE )
643 .Parameter<wxString*> ( nullptr ) );
644
646 .Name( "eeschema.InteractiveDrawing.placeGlobalLabel" )
647 .Scope( AS_GLOBAL )
648 .DefaultHotkey( MD_CTRL + 'L' )
649 .LegacyHotkeyName( "Add Global Label" )
650 .FriendlyName( _( "Place Global Labels" ) )
651 .ToolbarState( TOOLBAR_STATE::TOGGLE )
652 .Icon( BITMAPS::add_glabel )
653 .Flags( AF_ACTIVATE ) );
654
656 .Name( "eeschema.InteractiveDrawing.placeSchematicText" )
657 .Scope( AS_GLOBAL )
658 .DefaultHotkey( 'T' )
659 .LegacyHotkeyName( "Add Graphic Text" )
660 .FriendlyName( _( "Draw Text" ) )
661 .ToolbarState( TOOLBAR_STATE::TOGGLE )
662 .Icon( BITMAPS::text )
663 .Flags( AF_ACTIVATE ) );
664
666 .Name( "eeschema.InteractiveDrawing.drawTextBox" )
667 .Scope( AS_GLOBAL )
668 .FriendlyName( _( "Draw Text Boxes" ) )
669 .ToolbarState( TOOLBAR_STATE::TOGGLE )
670 .Icon( BITMAPS::add_textbox )
671 .Flags( AF_ACTIVATE )
672 .Parameter( SHAPE_T::RECTANGLE ) );
673
675 .Name( "eeschema.InteractiveDrawing.drawTable" )
676 .Scope( AS_GLOBAL )
677 .FriendlyName( _( "Draw Tables" ) )
678 .ToolbarState( TOOLBAR_STATE::TOGGLE )
679 .Icon( BITMAPS::table )
680 .Flags( AF_ACTIVATE ) );
681
683 .Name( "eeschema.InteractiveDrawing.drawRectangle" )
684 .Scope( AS_GLOBAL )
685 .FriendlyName( _( "Draw Rectangles" ) )
686 .ToolbarState( TOOLBAR_STATE::TOGGLE )
688 .Flags( AF_ACTIVATE )
689 .Parameter( SHAPE_T::RECTANGLE ) );
690
692 .Name( "eeschema.InteractiveDrawing.drawCircle" )
693 .Scope( AS_GLOBAL )
694 .FriendlyName( _( "Draw Circles" ) )
695 .ToolbarState( TOOLBAR_STATE::TOGGLE )
696 .Icon( BITMAPS::add_circle )
697 .Flags( AF_ACTIVATE )
698 .Parameter( SHAPE_T::CIRCLE ) );
699
701 .Name( "eeschema.InteractiveDrawing.drawEllipse" )
702 .Scope( AS_GLOBAL )
703 .FriendlyName( _( "Draw Ellipses" ) )
704 .ToolbarState( TOOLBAR_STATE::TOGGLE )
705 .Icon( BITMAPS::add_ellipse )
706 .Flags( AF_ACTIVATE )
707 .Parameter( SHAPE_T::ELLIPSE ) );
708
710 .Name( "eeschema.InteractiveDrawing.drawEllipseArc" )
711 .Scope( AS_GLOBAL )
712 .FriendlyName( _( "Draw Elliptical Arcs" ) )
713 .ToolbarState( TOOLBAR_STATE::TOGGLE )
715 .Flags( AF_ACTIVATE )
716 .Parameter( SHAPE_T::ELLIPSE_ARC ) );
717
719 .Name( "eeschema.InteractiveDrawing.drawArc" )
720 .Scope( AS_GLOBAL )
721 .FriendlyName( _( "Draw Arcs" ) )
722 .ToolbarState( TOOLBAR_STATE::TOGGLE )
723 .Icon( BITMAPS::add_arc )
724 .Flags( AF_ACTIVATE )
725 .Parameter( SHAPE_T::ARC ) );
726
728 .Name( "eeschema.InteractiveDrawing.drawBezier" )
729 .Scope( AS_GLOBAL )
730 .FriendlyName( _( "Draw Bezier Curve" ) )
731 .ToolbarState( TOOLBAR_STATE::TOGGLE )
732 .Icon( BITMAPS::add_bezier )
733 .Flags( AF_ACTIVATE )
734 .Parameter( SHAPE_T::BEZIER ) );
735
737 .Name( "eeschema.InteractiveDrawing.placeImage" )
738 .Scope( AS_GLOBAL )
739 .FriendlyName( _( "Place Images" ) )
740 .ToolbarState( TOOLBAR_STATE::TOGGLE )
741 .Icon( BITMAPS::image )
742 .Flags( AF_ACTIVATE )
743 .Parameter<SCH_BITMAP*>( nullptr ) );
744
746 .Name( "eeschema.InteractiveDrawing.drawRuleArea" )
747 .Scope( AS_GLOBAL )
748 .FriendlyName( _( "Draw Rule Areas" ) )
749 .ToolbarState( TOOLBAR_STATE::TOGGLE )
751 .Flags( AF_ACTIVATE )
752 .Parameter( SHAPE_T::RECTANGLE ) );
753
755 .Name( "eeschema.InteractiveDrawing.deleteLastPoint" )
756 .Scope( AS_CONTEXT )
757 .FriendlyName( _( "Delete Last Point" ) )
758 .Tooltip( _( "Delete the last point added to the current item" ) )
759 .Icon( BITMAPS::undo ) );
760
762 .Name( "eeschema.InteractiveDrawing.closeOutline" )
763 .Scope( AS_CONTEXT )
764 .FriendlyName( _( "Close Outline" ) )
765 .Tooltip( _( "Close the in-progress outline" ) )
766 .Icon( BITMAPS::checked_ok ) );
767
768
769// SCH_EDIT_TOOL
770//
772 .Name( "eeschema.InteractiveEdit.repeatDrawItem" )
773 .Scope( AS_GLOBAL )
774#ifdef __WXMAC__
775 .DefaultHotkey( WXK_F1 )
776#else
777 .DefaultHotkey( WXK_INSERT )
778#endif
779 .LegacyHotkeyName( "Repeat Last Item" )
780 .FriendlyName( _( "Repeat Last Item" ) )
781 .Tooltip( _( "Duplicates the last drawn item" ) ) );
782
784 .Name( "eeschema.InteractiveEdit.rotateCW" )
785 .Scope( AS_GLOBAL )
786 .DefaultHotkey( MD_SHIFT + 'R' )
787 .FriendlyName( _( "Rotate Clockwise" ) )
788 .Icon( BITMAPS::rotate_cw ) );
789
791 .Name( "eeschema.InteractiveEdit.rotateCCW" )
792 .Scope( AS_GLOBAL )
793 .DefaultHotkey( 'R' )
794 .LegacyHotkeyName( "Rotate Item" )
795 .FriendlyName( _( "Rotate Counterclockwise" ) )
796 .Icon( BITMAPS::rotate_ccw ) );
797
799 .Name( "eeschema.InteractiveEdit.mirrorV" )
800 .Scope( AS_GLOBAL )
801 .DefaultHotkey( 'Y' )
802 .LegacyHotkeyName( "Mirror X" ) // Yes, these were backwards prior to 6.0....
803 .FriendlyName( _( "Mirror Vertically" ) )
804 .Tooltip( _( "Flips selected item(s) from top to bottom" ) )
805 .Icon( BITMAPS::mirror_v ) );
806
808 .Name( "eeschema.InteractiveEdit.mirrorH" )
809 .Scope( AS_GLOBAL )
810 .DefaultHotkey( 'X' )
811 .LegacyHotkeyName( "Mirror Y" ) // Yes, these were backwards prior to 6.0....
812 .FriendlyName( _( "Mirror Horizontally" ) )
813 .Tooltip( _( "Flips selected item(s) from left to right" ) )
814 .Icon( BITMAPS::mirror_h ) );
815
817 .Name( "eeschema.InteractiveEdit.swap" )
818 .Scope( AS_GLOBAL )
819 .DefaultHotkey( MD_ALT + 'S' )
820 .FriendlyName( _( "Swap" ) )
821 .Tooltip( _( "Swap positions of selected items" ) )
822 .Icon( BITMAPS::swap ) );
823
824// Separate action so "real" pin swaps are not conflated with the generic position swap.
826 .Name( "eeschema.InteractiveEdit.swapPins" )
827 .Scope( AS_GLOBAL )
828 .FriendlyName( _( "Swap Pins" ) )
829 .Tooltip( _( "Swap the selected symbol pins' positions" ) )
830 .Icon( BITMAPS::swap ) );
831
833 .Name( "eeschema.InteractiveEdit.swapPinLabels" )
834 .Scope( AS_GLOBAL )
835 .FriendlyName( _( "Swap Pin Labels" ) )
836 .Tooltip( _( "Swap the labels attached to selected pins" ) )
837 .Icon( BITMAPS::swap ) );
838
840 .Name( "eeschema.InteractiveEdit.swapUnitLabels" )
841 .Scope( AS_GLOBAL )
842 .FriendlyName( _( "Swap Unit Labels" ) )
843 .Tooltip( _( "Swap labels between selected units" ) )
844 .Icon( BITMAPS::swap ) );
845
847 .Name( "eeschema.InteractiveEdit.toggleLock" )
848 .Scope( AS_GLOBAL )
849 .FriendlyName( _( "Toggle Lock" ) )
850 .Tooltip( _( "Lock or unlock selected items" ) )
851 .Icon( BITMAPS::lock_unlock ) );
852
854 .Name( "eeschema.InteractiveEdit.lock" )
855 .Scope( AS_GLOBAL )
856 .FriendlyName( _( "Lock" ) )
857 .Tooltip( _( "Prevent items from being moved and/or resized on the canvas" ) )
858 .Icon( BITMAPS::locked ) );
859
861 .Name( "eeschema.InteractiveEdit.unlock" )
862 .Scope( AS_GLOBAL )
863 .FriendlyName( _( "Unlock" ) )
864 .Tooltip( _( "Allow items to be moved and/or resized on the canvas" ) )
865 .Icon( BITMAPS::unlocked ) );
866
868 .Name( "eeschema.InteractiveEdit.properties" )
869 .Scope( AS_GLOBAL )
870 .DefaultHotkey( 'E' )
871 .LegacyHotkeyName( "Edit Item" )
872 .FriendlyName( _( "Properties..." ) )
873 .Icon( BITMAPS::edit ) );
874
876 .Name( "eeschema.InteractiveEdit.editReference" )
877 .Scope( AS_GLOBAL )
878 .DefaultHotkey( 'U' )
879 .LegacyHotkeyName( "Edit Symbol Reference" )
880 .FriendlyName( _( "Edit Reference Designator..." ) )
881 .Icon( BITMAPS::edit_comp_ref ) );
882
884 .Name( "eeschema.InteractiveEdit.editValue" )
885 .Scope( AS_GLOBAL )
886 .DefaultHotkey( 'V' )
887 .LegacyHotkeyName( "Edit Symbol Value" )
888 .FriendlyName( _( "Edit Value..." ) )
889 .Icon( BITMAPS::edit_comp_value ) );
890
892 .Name( "eeschema.InteractiveEdit.editFootprint" )
893 .Scope( AS_GLOBAL )
894 .DefaultHotkey( 'F' )
895 .LegacyHotkeyName( "Edit Symbol Footprint" )
896 .FriendlyName( _( "Edit Footprint..." ) )
898
900 .Name( "eeschema.InteractiveEdit.autoplaceFields" )
901 .Scope( AS_GLOBAL )
902 .DefaultHotkey( 'O' )
903 .LegacyHotkeyName( "Autoplace Fields" )
904 .FriendlyName( _( "Autoplace Fields" ) )
905 .Tooltip( _( "Runs the automatic placement algorithm on the symbol's (or sheet's) fields" ) )
906 .Icon( BITMAPS::autoplace_fields ) );
907
909 .Name( "eeschema.InteractiveEdit.changeSymbols" )
910 .Scope( AS_GLOBAL )
911 .FriendlyName( _( "Change Symbols..." ) )
912 .Tooltip( _( "Assign different symbols from the library" ) )
913 .Icon( BITMAPS::exchange ) );
914
916 .Name( "eeschema.InteractiveEdit.updateSymbols" )
917 .Scope( AS_GLOBAL )
918 .FriendlyName( _( "Update Symbols from Library..." ) )
919 .Tooltip( _( "Update symbols to include any changes from the library" ) )
920 .Icon( BITMAPS::refresh ) );
921
923 .Name( "eeschema.InteractiveEdit.changeSymbol" )
924 .Scope( AS_GLOBAL )
925 .FriendlyName( _( "Change Symbol..." ) )
926 .Tooltip( _( "Assign a different symbol from the library" ) )
927 .Icon( BITMAPS::exchange ) );
928
930 .Name( "eeschema.InteractiveEdit.updateSymbol" )
931 .Scope( AS_GLOBAL )
932 .FriendlyName( _( "Update Symbol..." ) )
933 .Tooltip( _( "Update symbol to include any changes from the library" ) )
934 .Icon( BITMAPS::refresh ) );
935
937 .Name( "eeschema.InteractiveEdit.assignNetclass" )
938 .Scope( AS_GLOBAL )
939 .FriendlyName( _( "Assign Netclass..." ) )
940 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
941 .Icon( BITMAPS::netlist ) );
942
944 .Name( "eeschema.InteractiveEdit.findNetInInspector" )
945 .Scope( AS_GLOBAL )
946 .FriendlyName( _( "Find in Net Navigator" ) )
947 .Tooltip( _( "Locate the selected net in the net navigator" ) ) );
948
950 .Name( "eeschema.InteractiveEdit.toggleDeMorgan" )
951 .Scope( AS_GLOBAL )
952 .FriendlyName( _( "Cycle Body Style" ) )
953 .Tooltip( _( "Switch between De Morgan (or other) representations" ) )
954 .Icon( BITMAPS::morgan2 ) );
955
957 .Name( "eeschema.InteractiveEdit.toLabel" )
958 .Scope( AS_GLOBAL )
959 .FriendlyName( _( "Change to Label" ) )
960 .Tooltip( _( "Change existing item to a label" ) )
962 .Flags( AF_NONE )
963 .Parameter( SCH_LABEL_T ) );
964
966 .Name( "eeschema.InteractiveEdit.toCLabel" ) // Old name based on netClass label.
967 // There's no sense losing hotkey assignments, so we
968 // leave it as-is)
969 .Scope( AS_GLOBAL )
970 .FriendlyName( _( "Change to Directive Label" ) )
971 .Tooltip( _( "Change existing item to a directive label" ) )
973 .Flags( AF_NONE )
974 .Parameter( SCH_DIRECTIVE_LABEL_T ) );
975
977 .Name( "eeschema.InteractiveEdit.toHLabel" )
978 .Scope( AS_GLOBAL )
979 .FriendlyName( _( "Change to Hierarchical Label" ) )
980 .Tooltip( _( "Change existing item to a hierarchical label" ) )
982 .Flags( AF_NONE )
983 .Parameter( SCH_HIER_LABEL_T ) );
984
986 .Name( "eeschema.InteractiveEdit.toGLabel" )
987 .Scope( AS_GLOBAL )
988 .FriendlyName( _( "Change to Global Label" ) )
989 .Tooltip( _( "Change existing item to a global label" ) )
990 .Icon( BITMAPS::add_glabel )
991 .Flags( AF_NONE )
992 .Parameter( SCH_GLOBAL_LABEL_T ) );
993
995 .Name( "eeschema.InteractiveEdit.toText" )
996 .Scope( AS_GLOBAL )
997 .FriendlyName( _( "Change to Text" ) )
998 .Tooltip( _( "Change existing item to a text comment" ) )
999 .Icon( BITMAPS::text )
1000 .Flags( AF_NONE )
1001 .Parameter( SCH_TEXT_T ) );
1002
1004 .Name( "eeschema.InteractiveEdit.toTextBox" )
1005 .Scope( AS_GLOBAL )
1006 .FriendlyName( _( "Change to Text Box" ) )
1007 .Tooltip( _( "Change existing item to a text box" ) )
1008 .Icon( BITMAPS::add_textbox )
1009 .Flags( AF_NONE )
1010 .Parameter( SCH_TEXTBOX_T ) );
1011
1013 .Name( "eeschema.InteractiveEdit.cleanupSheetPins" )
1014 .Scope( AS_GLOBAL )
1015 .FriendlyName( _( "Cleanup Sheet Pins" ) )
1016 .Tooltip( _( "Delete unreferenced sheet pins" ) ) );
1017
1019 .Name( "eeschema.InteractiveEdit.editTextAndGraphics" )
1020 .Scope( AS_GLOBAL )
1021 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
1022 .Tooltip( _( "Edit text and graphics properties globally across schematic" ) )
1023 .Icon( BITMAPS::text ) );
1024
1026 .Name( "eeschema.InteractiveEdit.symbolProperties" )
1027 .Scope( AS_GLOBAL )
1028 .FriendlyName( _( "Symbol Properties..." ) )
1029 .Icon( BITMAPS::part_properties ) );
1030
1032 .Name( "eeschema.InteractiveEdit.pinTable" )
1033 .Scope( AS_GLOBAL )
1034 .FriendlyName( _( "Pin Table..." ) )
1035 .Tooltip( _( "Displays pin table for bulk editing of pins" ) )
1036 .Icon( BITMAPS::pin_table ) );
1037
1039 .Name( "eeschema.InteractiveEdit.convertStackedPins" )
1040 .Scope( AS_GLOBAL )
1041 .FriendlyName( _( "Convert Stacked Pins" ) )
1042 .Tooltip( _( "Convert multiple pins at the same location to a single pin with stacked notation" ) )
1043 .Icon( BITMAPS::pin ) );
1044
1046 .Name( "eeschema.InteractiveEdit.explodeStackedPin" )
1047 .Scope( AS_GLOBAL )
1048 .FriendlyName( _( "Explode Stacked Pin" ) )
1049 .Tooltip( _( "Convert a pin with stacked notation to multiple individual pins" ) )
1050 .Icon( BITMAPS::pin ) );
1051
1053 .Name( "eeschema.InteractiveEdit.breakWire" )
1054 .Scope( AS_GLOBAL )
1055 .FriendlyName( _( "Break" ) )
1056 .Tooltip( _( "Divide into connected segments" ) )
1057 .Icon( BITMAPS::break_line ) );
1058
1060 .Name( "eeschema.InteractiveEdit.slice" )
1061 .Scope( AS_GLOBAL )
1062 .FriendlyName( _( "Slice" ) )
1063 .Tooltip( _( "Divide into unconnected segments" ) )
1064 .Icon( BITMAPS::slice_line ) );
1065
1066// SCH_EDITOR_CONTROL
1067//
1069 .Name( "eeschema.EditorControl.restartMove" )
1070 .Scope( AS_GLOBAL ) );
1071
1073 .Name( "eeschema.EditorControl.highlightNet" )
1074 .Scope( AS_GLOBAL )
1075 .DefaultHotkey( '`' )
1076 .FriendlyName( _( "Highlight Net" ) )
1077 .Tooltip( _( "Highlight net under cursor" ) )
1079
1081 .Name( "eeschema.EditorControl.clearHighlight" )
1082 .Scope( AS_GLOBAL )
1083 .DefaultHotkey( '~' )
1084 .FriendlyName( _( "Clear Net Highlighting" ) )
1085 .Tooltip( _( "Clear any existing net highlighting" ) ) );
1086
1088 .Name( "eeschema.EditorControl.updateNetHighlighting" )
1089 .Scope( AS_GLOBAL ) );
1090
1092 .Name( "eeschema.EditorControl.highlightNetTool" )
1093 .Scope( AS_GLOBAL )
1094 .FriendlyName( _( "Highlight Nets" ) )
1095 .Tooltip( _( "Highlight wires and pins of a net" ) )
1096 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1098 .Flags( AF_ACTIVATE ) );
1099
1101 .Name( "eeschema.EditorControl.highlightNetChain" )
1102 .Scope( AS_GLOBAL )
1103 .FriendlyName( _( "Highlight Net Chain" ) )
1104 .Tooltip( _( "Highlight the net chain under the cursor" ) )
1106
1108 .Name( "eeschema.EditorControl.removeFromNetChain" )
1109 .Scope( AS_GLOBAL )
1110 .FriendlyName( _( "Remove from Net Chain" ) )
1111 .Tooltip( _( "Remove the selected net from its net chain by disabling propagation on the bridging component(s)" ) ) );
1112
1114 .Name( "eeschema.EditorControl.replaceTerminalPin" )
1115 .Scope( AS_GLOBAL )
1116 .FriendlyName( _( "Replace Terminal Pin" ) ) );
1117
1119 .Name( "eeschema.EditorControl.nameNetChain" )
1120 .Scope( AS_GLOBAL )
1121 .FriendlyName( _( "Name Net Chain" ) )
1122 .Tooltip( _( "Assign a name to the net chain" ) ) );
1123
1125 .Name( "eeschema.EditorControl.createNetChainBetweenPins" )
1126 .Scope( AS_GLOBAL )
1127 .FriendlyName( _( "Create Net Chain Between Pins" ) )
1128 .Tooltip( _( "Create a new net chain connecting the two selected pins" ) ) );
1129
1131 .Name( "eeschema.EditorControl.createNetChain" )
1132 .Scope( AS_GLOBAL )
1133 .FriendlyName( _( "Create Net Chain..." ) )
1134 .Tooltip( _( "Detect net chain paths through passives and create a named net chain" ) ) );
1135
1137 .Name( "eeschema.EditorControl.showNetNavigator" )
1138 .Scope( AS_GLOBAL )
1139 .FriendlyName( _( "Net Navigator" ) )
1140 .Tooltip( _( "Show/hide the net navigator" ) ) );
1141
1143 .Name( "eeschema.EditorControl.editWithSymbolEditor" )
1144 .Scope( AS_GLOBAL )
1145 .DefaultHotkey( MD_CTRL + 'E' )
1146 .LegacyHotkeyName( "Edit with Symbol Editor" )
1147 .FriendlyName( _( "Edit with Symbol Editor" ) )
1148 .Tooltip( _( "Open the selected symbol in the Symbol Editor" ) )
1149 .Icon( BITMAPS::libedit ) );
1150
1152 .Name( "eeschema.EditorControl.setExcludeFromBOM" )
1153 .Scope( AS_GLOBAL )
1154 .FriendlyName( _( "Exclude from Bill of Materials" ) )
1155 .Tooltip( _( "Set the exclude from bill of materials attribute" ) ) );
1156
1158 .Name( "eeschema.EditorControl.setExcludeFromSimulation" )
1159 .Scope( AS_GLOBAL )
1160 .FriendlyName( _( "Exclude from Simulation" ) )
1161 .Tooltip( _( "Set the exclude from simulation attribute" ) ) );
1162
1164 .Name( "eeschema.EditorControl.setExcludeFromBoard" )
1165 .Scope( AS_GLOBAL )
1166 .FriendlyName( _( "Exclude from Board" ) )
1167 .Tooltip( _( "Set the exclude from board attribute" ) ) );
1168
1170 .Name( "eeschema.EditorControl.setDNP" )
1171 .Scope( AS_GLOBAL )
1172 .FriendlyName( _( "Do not Populate" ) )
1173 .Tooltip( _( "Set the do not populate attribute" ) ) );
1174
1176 .Name( "eeschema.EditorControl.editLibSymbolWithSymbolEditor" )
1177 .Scope( AS_GLOBAL )
1178 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
1179 .FriendlyName( _( "Edit Library Symbol..." ) )
1180 .Tooltip( _( "Open the library symbol in the Symbol Editor" ) )
1181 .Icon( BITMAPS::libedit ) );
1182
1184 .Name( "eeschema.EditorControl.editSymbolFields" )
1185 .Scope( AS_GLOBAL )
1186 .FriendlyName( _( "Bulk Edit Symbol Fields..." ) )
1187 .Tooltip( _( "Edit a table of fields from all symbols in the schematic" ) )
1188 .Icon( BITMAPS::spreadsheet ) );
1189
1191 .Name( "eeschema.EditorControl.editSymbolLibraryLinks" )
1192 .Scope( AS_GLOBAL )
1193 .FriendlyName( _( "Bulk Edit Symbol Library Links..." ) )
1194 .Tooltip( _( "Edit a table of links between schematic and library symbols" ) )
1196
1198 .Name( "eeschema.EditorControl.assignFootprints" )
1199 .Scope( AS_GLOBAL )
1200 .FriendlyName( _( "Assign Footprints..." ) )
1201 .Tooltip( _( "Run footprint assignment tool" ) )
1202 .Icon( BITMAPS::icon_cvpcb_24 ) );
1203
1205 .Name( "eeschema.EditorControl.importFPAssignments" )
1206 .Scope( AS_GLOBAL )
1207 .FriendlyName( _( "Import Footprint Assignments..." ) )
1208 .Tooltip( _( "Import symbol footprint assignments from .cmp file created by board editor" ) )
1210
1212 .Name( "eeschema.EditorControl.annotate" )
1213 .Scope( AS_GLOBAL )
1214 .FriendlyName( _( "Annotate Schematic..." ) )
1215 .Tooltip( _( "Fill in schematic symbol reference designators" ) )
1216 .Icon( BITMAPS::annotate ) );
1217
1219 .Name( "eeschema.EditorControl.incrementAnnotations" )
1220 .Scope( AS_GLOBAL )
1221 .FriendlyName( _( "Increment Annotations From..." ) )
1222 .Tooltip( _( "Increment a subset of reference designators starting at a particular symbol" ) )
1224 );
1225
1227 .Name( "eeschema.EditorControl.schematicSetup" )
1228 .Scope( AS_GLOBAL )
1229 .FriendlyName( _( "Schematic Setup..." ) )
1230 .Tooltip( _( "Edit schematic setup including annotation styles and electrical rules" ) )
1231 .Icon( BITMAPS::options_schematic ) );
1232
1234 .Name( "eeschema.EditorControl.editPageNumber" )
1235 .Scope( AS_GLOBAL )
1236 .FriendlyName( _( "Edit Sheet Page Number..." ) )
1237 .Tooltip( _( "Edit the page number of the current or selected sheet" ) ) );
1238
1240 .Name( "eeschema.EditorControl.rescueSymbols" )
1241 .Scope( AS_GLOBAL )
1242 .FriendlyName( _( "Rescue Symbols..." ) )
1243 .Tooltip( _( "Find old symbols in project and rename/rescue them" ) )
1244 .Icon( BITMAPS::rescue ) );
1245
1247 .Name( "eeschema.EditorControl.remapSymbols" )
1248 .Scope( AS_GLOBAL )
1249 .FriendlyName( _( "Remap Legacy Library Symbols..." ) )
1250 .Tooltip( _( "Remap library symbol references in legacy schematics to the symbol library table" ) )
1251 .Icon( BITMAPS::rescue ) );
1252
1254 .Name( "eeschema.EditorControl.nextNetItem" )
1255 .Scope( AS_GLOBAL )
1256 .DefaultHotkey( WXK_TAB )
1257 .FriendlyName( _( "Next Net Item" ) )
1258 .Tooltip( _( "Select next item on the current net" ) ) );
1259
1261 .Name( "eeschema.EditorControl.previousNetItem" )
1262 .Scope( AS_GLOBAL )
1263 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_TAB ) )
1264 .FriendlyName( _( "Previous Net Item" ) )
1265 .Tooltip( _( "Select previous item on the current net" ) ) );
1266
1268 .Name( "eeschema.EditorControl.drawSheetOnClipboard" )
1269 .Scope( AS_GLOBAL )
1270 .FriendlyName( _( "Export Drawing to Clipboard" ) )
1271 .Tooltip( _( "Export drawing of current sheet to clipboard" ) )
1272 .Icon( BITMAPS::copy ) );
1273
1275 .Name( "eeschema.EditorControl.importGraphics" )
1276 .Scope( AS_GLOBAL )
1277 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'F' )
1278 .LegacyHotkeyName( "Place DXF" )
1279 .FriendlyName( _( "Import Graphics..." ) )
1280 .Tooltip( _( "Import 2D drawing file" ) )
1281 .Icon( BITMAPS::import_vector )
1282 .Flags( AF_ACTIVATE ) );
1283
1285 .Name( "eeschema.EditorControl.importNonKicadSchematic" )
1286 .Scope( AS_GLOBAL )
1287 .FriendlyName( _( "Import Non-KiCad Schematic..." ) )
1288 .Tooltip( _( "Replace current schematic sheet with one imported from another application" ) )
1289 .Icon( BITMAPS::import_document ) );
1290
1292 .Name( "eeschema.EditorControl.showPcbNew" )
1293 .Scope( AS_GLOBAL )
1294 .FriendlyName( _( "Switch to PCB Editor" ) )
1295 .Tooltip( _( "Open PCB in board editor" ) )
1296 .Icon( BITMAPS::icon_pcbnew_24 ) );
1297
1299 .Name( "eeschema.EditorControl.exportNetlist" )
1300 .Scope( AS_GLOBAL )
1301 .FriendlyName( _( "Export Netlist..." ) )
1302 .Tooltip( _( "Export file containing netlist in one of several formats" ) )
1303 .Icon( BITMAPS::netlist ) );
1304
1306 .Name( "eeschema.EditorControl.generateBOM" )
1307 .Scope( AS_GLOBAL )
1308 .FriendlyName( _( "Generate Bill of Materials..." ) )
1309 .Tooltip( _( "Generate a bill of materials for the current schematic" ) )
1310 .Icon( BITMAPS::post_bom ) );
1311
1313 .Name( "eeschema.EditorControl.generateBOMLegacy" )
1314 .Scope( AS_GLOBAL )
1315 .FriendlyName( _( "Generate Legacy Bill of Materials..." ) )
1316 .Tooltip( _( "Generate a bill of materials for the current schematic (Legacy Generator)" ) )
1317 .Icon( BITMAPS::file_bom )
1318 );
1319
1321 .Name( "eeschema.EditorControl.generateBOMExternal" )
1322 .Scope( AS_GLOBAL )
1323 .FriendlyName( _( "Generate Bill of Materials (External)..." ) )
1324 .Tooltip( _( "Generate a bill of materials for the current schematic using external generator" ) )
1325 );
1326
1328 .Name( "eeschema.EditorControl.exportSymbolsToLibrary" )
1329 .Scope( AS_GLOBAL )
1330 .FriendlyName( _( "Export Symbols..." ) )
1331 .Tooltip( _( "Add symbols from schematic to a new or an existing symbol library\n"
1332 "(does not remove other symbols from this library)" ) )
1333 .Icon( BITMAPS::library_archive ) );
1334
1336 .Name( "eeschema.EditorControl.selectOnPCB" )
1337 .Scope( AS_GLOBAL )
1338 .FriendlyName( _( "Select on PCB" ) )
1339 .Tooltip( _( "Select corresponding items in PCB editor" ) )
1340 .Icon( BITMAPS::select_same_sheet ) );
1341
1343 .Name( "eeschema.EditorControl.showHiddenPins" )
1344 .Scope( AS_GLOBAL )
1345 .FriendlyName( _( "Show Hidden Pins" ) )
1346 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1347 .Icon( BITMAPS::hidden_pin ) );
1348
1350 .Name( "eeschema.EditorControl.showHiddenFields" )
1351 .Scope( AS_GLOBAL )
1352 .FriendlyName( _( "Show Hidden Fields" ) )
1353 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1354
1356 .Name( "eeschema.EditorControl.showDirectiveLabels" )
1357 .Scope( AS_GLOBAL )
1358 .FriendlyName( _( "Show Directive Labels" ) )
1359 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1360
1362 .Name( "eeschema.EditorControl.showERCWarnings" )
1363 .Scope( AS_GLOBAL )
1364 .FriendlyName( _( "Show ERC Warnings" ) )
1365 .Tooltip( _( "Show markers for electrical rules checker warnings" ) )
1366 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1367
1369 .Name( "eeschema.EditorControl.showERCErrors" )
1370 .Scope( AS_GLOBAL )
1371 .FriendlyName( _( "Show ERC Errors" ) )
1372 .Tooltip( _( "Show markers for electrical rules checker errors" ) )
1373 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1374
1376 .Name( "eeschema.EditorControl.showERCExclusions" )
1377 .Scope( AS_GLOBAL )
1378 .FriendlyName( _( "Show ERC Exclusions" ) )
1379 .Tooltip( _( "Show markers for excluded electrical rules checker violations" ) )
1380 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1381
1383 .Name( "eeschema.EditorControl.markSimExclusions" )
1384 .Scope( AS_GLOBAL )
1385 .FriendlyName( _( "Mark items excluded from simulation" ) )
1386 .Tooltip( _( "Draw 'X's over items which have been excluded from simulation" ) )
1387 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1388
1390 .Name( "eeschema.EditorControl.showOperatingPointVoltages" )
1391 .Scope( AS_GLOBAL )
1392 .FriendlyName( _( "Show OP Voltages" ) )
1393 .Tooltip( _( "Show operating point voltage data from simulation" ) )
1394 .ToolbarState( TOOLBAR_STATE::TOGGLE ));
1395
1397 .Name( "eeschema.EditorControl.showOperatingPointCurrents" )
1398 .Scope( AS_GLOBAL )
1399 .FriendlyName( _( "Show OP Currents" ) )
1400 .Tooltip( _( "Show operating point current data from simulation" ) )
1401 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1402
1404 .Name( "eeschema.EditorControl.togglePinAltIcons" )
1405 .Scope( AS_GLOBAL )
1406 .FriendlyName( _( "Show Pin Alternate Icons" ) )
1407 .Tooltip( _( "Show indicator icons for pins with alternate modes" ) )
1408 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1409
1411 .Name( "eeschema.EditorControl.lineModeFree" )
1412 .Scope( AS_GLOBAL )
1413 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1414 .Tooltip( _( "Draw and drag at any angle" ) )
1415 .Icon( BITMAPS::lines_any )
1416 .Flags( AF_NONE )
1417 .Parameter( LINE_MODE::LINE_MODE_FREE ) );
1418
1420 .Name( "eeschema.EditorControl.lineModeOrthonal" )
1421 .Scope( AS_GLOBAL )
1422 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1423 .Tooltip( _( "Constrain drawing and dragging to horizontal or vertical motions" ) )
1424 .Icon( BITMAPS::lines90 )
1425 .Flags( AF_NONE )
1426 .Parameter( LINE_MODE::LINE_MODE_90) );
1427
1429 .Name( "eeschema.EditorControl.lineMode45" )
1430 .Scope( AS_GLOBAL )
1431 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1432 .Tooltip( _( "Constrain drawing and dragging to horizontal, vertical, or 45-degree angle motions" ) )
1433 .Icon( BITMAPS::hv45mode )
1434 .Flags( AF_NONE )
1435 .Parameter( LINE_MODE::LINE_MODE_45 ) );
1436
1438 .Name( "eeschema.EditorControl.lineModeNext" )
1439 .Scope( AS_GLOBAL )
1440 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_SPACE ) )
1441 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1442 .Tooltip( _( "Switch to next angle snapping mode" ) ) );
1443
1445 .Name( "eeschema.EditorControl.angleSnapModeChanged" )
1446 .Scope( AS_GLOBAL )
1447 .Flags( AF_NOTIFY ) );
1448
1450 .Name( "eeschema.EditorControl.annotateAutomatically" )
1451 .Scope( AS_GLOBAL )
1452 .FriendlyName( _( "Annotate Automatically" ) )
1453 .Tooltip( _( "Toggle automatic annotation of new symbols" ) )
1454 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1455 .Icon( BITMAPS::annotate ) );
1456
1458 .Name( "eeschema.EditorControl.previousUnit" )
1459 .Scope( AS_GLOBAL )
1460 .FriendlyName( _( "Previous Symbol Unit" ) )
1461 .Tooltip( _( "Open the previous unit of the symbol" ) )
1462 .Parameter<int>( -1 ) );
1463
1465 .Name( "eeschema.EditorControl.nextUnit" )
1466 .Scope( AS_GLOBAL )
1467 .FriendlyName( _( "Next Symbol Unit" ) )
1468 .Tooltip( _( "Open the next unit of the symbol" ) )
1469 .Parameter<int>( 1 ) );
1470
1471// SCH_NAVIGATE_TOOL
1472//
1474 .Name( "eeschema.NavigateTool.changeSheet" )
1475 .Scope( AS_CONTEXT )
1476 .FriendlyName( _( "Change Sheet" ) )
1477 .Tooltip( _( "Change to provided sheet's contents in the schematic editor" ) )
1478 .Icon( BITMAPS::enter_sheet ) );
1479
1481 .Name( "eeschema.NavigateTool.enterSheet" )
1482 .Scope( AS_GLOBAL )
1483 .FriendlyName( _( "Enter Sheet" ) )
1484 .Tooltip( _( "Display the selected sheet's contents in the schematic editor" ) )
1485 .Icon( BITMAPS::enter_sheet ) );
1486
1488 .Name( "eeschema.NavigateTool.leaveSheet" )
1489 .Scope( AS_GLOBAL )
1490 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_BACK ) )
1491 .LegacyHotkeyName( "Leave Sheet" )
1492 .FriendlyName( _( "Leave Sheet" ) )
1493 .Tooltip( _( "Display the parent sheet in the schematic editor" ) )
1494 .Icon( BITMAPS::leave_sheet ) );
1495
1497 .Name( "eeschema.NavigateTool.up" )
1498 .Scope( AS_GLOBAL )
1499 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_UP ) )
1500 .FriendlyName( _( "Navigate Up" ) )
1501 .Tooltip( _( "Navigate up one sheet in the hierarchy" ) )
1502 .Icon( BITMAPS::up ) );
1503
1505 .Name( "eeschema.NavigateTool.back" )
1506 .Scope( AS_GLOBAL )
1507 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_LEFT ) )
1508 .FriendlyName( _( "Navigate Back" ) )
1509 .Tooltip( _( "Move backward in sheet navigation history" ) )
1510 .Icon( BITMAPS::left ) );
1511
1513 .Name( "eeschema.NavigateTool.forward" )
1514 .Scope( AS_GLOBAL )
1515 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_RIGHT ) )
1516 .FriendlyName( _( "Navigate Forward" ) )
1517 .Tooltip( _( "Move forward in sheet navigation history" ) )
1518 .Icon( BITMAPS::right ) );
1519
1521 .Name( "eeschema.NavigateTool.previous" )
1522 .Scope( AS_GLOBAL )
1523 .DefaultHotkey( WXK_PAGEUP )
1524 .FriendlyName( _( "Previous Sheet" ) )
1525 .Tooltip( _( "Move to previous sheet by number" ) )
1526 .Icon( BITMAPS::left ) );
1527
1529 .Name( "eeschema.NavigateTool.next" )
1530 .Scope( AS_GLOBAL )
1531 .DefaultHotkey( WXK_PAGEDOWN )
1532 .FriendlyName( _( "Next Sheet" ) )
1533 .Tooltip( _( "Move to next sheet by number" ) )
1534 .Icon( BITMAPS::right ) );
1535
1537 .Name( "eeschema.EditorTool.showHierarchy" )
1538 .Scope( AS_GLOBAL )
1539 .DefaultHotkey( MD_CTRL + 'H' )
1540 .FriendlyName( _( "Hierarchy Navigator" ) )
1541 .Tooltip( _( "Show/hide the schematic sheet hierarchy navigator" ) )
1542 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1543 .Icon( BITMAPS::hierarchy_nav ) );
1544
1545
1546// SCH_LINE_WIRE_BUS_TOOL
1547//
1550 .Name( "eeschema.InteractiveDrawingLineWireBus.drawWires" )
1551 .Scope( AS_GLOBAL )
1552 .DefaultHotkey( 'W' )
1553 .LegacyHotkeyName( "Begin Wire" )
1554 .FriendlyName( _( "Draw Wires" ) )
1555 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1556 .Icon( BITMAPS::add_line )
1557 .Flags( AF_ACTIVATE )
1558 .Parameter( &drawWireActionParam ) );
1559
1562 .Name( "eeschema.InteractiveDrawingLineWireBus.drawBuses" )
1563 .Scope( AS_GLOBAL )
1564 .DefaultHotkey( 'B' )
1565 .LegacyHotkeyName( "Begin Bus" )
1566 .FriendlyName( _( "Draw Buses" ) )
1567 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1568 .Icon( BITMAPS::add_bus )
1569 .Flags( AF_ACTIVATE )
1570 .Parameter( &drawBusActionParam ) );
1571
1573 .Name( "eeschema.InteractiveDrawingLineWireBus.unfoldBus" )
1574 .Scope( AS_GLOBAL )
1575 .DefaultHotkey( 'C' )
1576 .LegacyHotkeyName( "Unfold from Bus" )
1577 .FriendlyName( _( "Unfold from Bus" ) )
1578 .Tooltip( _( "Break a wire out of a bus" ) )
1580 .Flags( AF_ACTIVATE )
1581 .Parameter<wxString*>( nullptr ) );
1582
1585 .Name( "eeschema.InteractiveDrawingLineWireBus.drawLines" )
1586 .Scope( AS_GLOBAL )
1587 .DefaultHotkey( 'I' )
1588 .LegacyHotkeyName( "Add Graphic PolyLine" )
1589 .FriendlyName( _( "Draw Lines" ) )
1590 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1592 .Flags( AF_ACTIVATE )
1593 .Parameter( &drawLinesActionParam ) );
1594
1596 .Name( "eeschema.InteractiveDrawingLineWireBus.undoLastSegment")
1597 .Scope( AS_GLOBAL )
1598 .DefaultHotkey( WXK_BACK )
1599 .FriendlyName( _( "Undo Last Segment" ) )
1600 .Tooltip( _( "Walks the current line back one segment." ) )
1601 .Icon( BITMAPS::undo ) );
1602
1604 .Name( "eeschema.InteractiveDrawingLineWireBus.switchPosture" )
1605 .Scope( AS_GLOBAL )
1606 .DefaultHotkey( '/' )
1607 .FriendlyName( _( "Switch Segment Posture" ) )
1608 .Tooltip( _( "Switches posture of the current segment." ) )
1610 .Flags( AF_NONE ) );
1611
1612// SCH_MOVE_TOOL
1613//
1615 .Name( "eeschema.InteractiveMove.move" )
1616 .Scope( AS_GLOBAL )
1617 .DefaultHotkey( 'M' )
1618 .LegacyHotkeyName( "Move Item" )
1619 .FriendlyName( _( "Move" ) )
1620 .Icon( BITMAPS::move )
1621 .Flags( AF_ACTIVATE ) );
1622
1624 .Name( "eeschema.InteractiveMove.drag" )
1625 .Scope( AS_GLOBAL )
1626 .DefaultHotkey( 'G' )
1627 .LegacyHotkeyName( "Drag Item" )
1628 .FriendlyName( _( "Drag" ) )
1629 .Tooltip( _( "Move items while keeping their connections" ) )
1630 .Icon( BITMAPS::drag )
1631 .Flags( AF_ACTIVATE ) );
1632
1634 .Name( "eeschema.AlignToGrid" )
1635 .Scope( AS_GLOBAL )
1636 .FriendlyName( _( "Align Items to Grid" ) )
1638 .Flags( AF_ACTIVATE ) );
1639
1641 .Name( "eeschema.Align.alignTop" )
1642 .Scope( AS_GLOBAL )
1643 .FriendlyName( _( "Align to Top" ) )
1644 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
1646 .Flags( AF_ACTIVATE ) );
1647
1649 .Name( "eeschema.Align.alignBottom" )
1650 .Scope( AS_GLOBAL )
1651 .FriendlyName( _( "Align to Bottom" ) )
1652 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
1654 .Flags( AF_ACTIVATE ) );
1655
1657 .Name( "eeschema.Align.alignLeft" )
1658 .Scope( AS_GLOBAL )
1659 .FriendlyName( _( "Align to Left" ) )
1660 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
1662 .Flags( AF_ACTIVATE ) );
1663
1665 .Name( "eeschema.Align.alignRight" )
1666 .Scope( AS_GLOBAL )
1667 .FriendlyName( _( "Align to Right" ) )
1668 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
1670 .Flags( AF_ACTIVATE ) );
1671
1673 .Name( "eeschema.Align.alignCenterX" )
1674 .Scope( AS_GLOBAL )
1675 .FriendlyName( _( "Align to Horizontal Center" ) )
1676 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
1678 .Flags( AF_ACTIVATE ) );
1679
1681 .Name( "eeschema.Align.alignCenterY" )
1682 .Scope( AS_GLOBAL )
1683 .FriendlyName( _( "Align to Vertical Center" ) )
1684 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
1686 .Flags( AF_ACTIVATE ) );
1687
1688// Schematic editor save copy curr sheet command
1690 .Name( "eeschema.EditorControl.saveCurrSheetCopyAs" )
1691 .Scope( AS_GLOBAL )
1692 .FriendlyName( _( "Save Current Sheet Copy As..." ) )
1693 .Tooltip( _( "Save a copy of the current sheet to another location or name" ) )
1694 .Icon( BITMAPS::save_as ) );
1695
1696// Drag and drop
1698 .Name( "eeschema.EditorControl.ddAppendFile" )
1699 .Scope( AS_GLOBAL ) );
1700
1702 .Name( "eeschema.EditorControl.ddAddImage" )
1703 .Scope( AS_GLOBAL ) );
1704
1706 .Name( "eeschema.EditorControl.ddImportGraphics" )
1707 .Scope( AS_GLOBAL ) );
1708
1709// SIMULATOR
1711 .Name( "eeschema.Simulation.newAnalysisTab" )
1712 .Scope( AS_GLOBAL )
1713 .DefaultHotkey( MD_CTRL + 'N' )
1714 .LegacyHotkeyName( "New" )
1715 .FriendlyName( _( "New Analysis Tab..." ) )
1716 .Tooltip( _( "Create a new tab containing a simulation analysis" ) )
1717 .Icon( BITMAPS::sim_add_plot ) );
1718
1720 .Name( "eeschema.Simulation.openWorkbook" )
1721 .Scope( AS_GLOBAL )
1722 .DefaultHotkey( MD_CTRL + 'O' )
1723 .LegacyHotkeyName( "Open" )
1724 .FriendlyName( _( "Open Workbook..." ) )
1725 .Tooltip( _( "Open a saved set of analysis tabs and settings" ) )
1726 .Icon( BITMAPS::directory_open ) );
1727
1729 .Name( "eeschema.Simulation.saveWorkbook" )
1730 .Scope( AS_GLOBAL )
1731 .DefaultHotkey( MD_CTRL + 'S' )
1732 .LegacyHotkeyName( "Save" )
1733 .FriendlyName( _( "Save Workbook" ) )
1734 .Tooltip( _( "Save the current set of analysis tabs and settings" ) )
1735 .Icon( BITMAPS::save ) );
1736
1738 .Name( "eeschema.Simulation.saveWorkbookAs" )
1739 .Scope( AS_GLOBAL )
1740 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'S' )
1741 .LegacyHotkeyName( "Save As" )
1742 .FriendlyName( _( "Save Workbook As..." ) )
1743 .Tooltip( _( "Save the current set of analysis tabs and settings to another location" ) )
1744 .Icon( BITMAPS::sim_add_signal ) );
1745
1747 .Name( "eeschema.Simulator.exportPNG" )
1748 .Scope( AS_GLOBAL )
1749 .FriendlyName( _( "Export Current Plot as PNG..." ) )
1750 .Icon( BITMAPS::export_png ) );
1751
1753 .Name( "eeschema.Simulator.exportCSV" )
1754 .Scope( AS_GLOBAL )
1755 .FriendlyName( _( "Export Current Plot as CSV..." ) )
1756 .Icon( BITMAPS::export_file ) );
1757
1759 .Name( "eeschema.Simulator.exportToClipboard" )
1760 .Scope( AS_GLOBAL )
1761 .FriendlyName( _( "Export Current Plot to Clipboard" ) )
1762 .Icon( BITMAPS::export_png ) );
1763
1765 .Name( "eeschema.Simulator.exportPlotToSchematic" )
1766 .Scope( AS_GLOBAL )
1767 .FriendlyName( _( "Export Current Plot to Schematic" ) )
1768 .Icon( BITMAPS::export_png ) );
1769
1771 .Name( "eeschema.Simulator.toggleSimSidePanel" )
1772 .Scope( AS_GLOBAL )
1773 .FriendlyName( _( "Show Simulation Side Panel" ) ) );
1774
1776 .Name( "eeschema.Simulator.toggleSimConsole" )
1777 .Scope( AS_GLOBAL )
1778 .FriendlyName( _( "Show Simulation Console Panel" ) ) );
1779
1781 .Name( "eeschema.Simulator.toggleLegend" )
1782 .Scope( AS_GLOBAL )
1783 .FriendlyName( _( "Show Legend" ) )
1784 .Icon( BITMAPS::text ) );
1785
1787 .Name( "eeschema.Simulator.toggleDottedSecondary" )
1788 .Scope( AS_GLOBAL )
1789 .FriendlyName( _( "Dotted Current/Phase" ) )
1790 .Tooltip( _( "Draw secondary signal trace (current or phase) with a dotted line" ) ) );
1791
1793 .Name( "eeschema.Simulator.toggleDarkModePlots" )
1794 .Scope( AS_GLOBAL )
1795 .FriendlyName( _( "Dark Mode Plots" ) )
1796 .Tooltip( _( "Draw plots with a black background" ) ) );
1797
1799 .Name( "eeschema.Simulation.simAnalysisProperties" )
1800 .Scope( AS_GLOBAL )
1801 .FriendlyName( _( "Edit Analysis Tab..." ) )
1802 .Tooltip( _( "Edit the current analysis tab's SPICE command and plot setup" ) )
1803 .Icon( BITMAPS::sim_command ) );
1804
1806 .Name( "eeschema.Simulation.runSimulation" )
1807 .Scope( AS_GLOBAL )
1808 .DefaultHotkey( 'R' )
1809 .FriendlyName( _( "Run Simulation" ) )
1810 .Icon( BITMAPS::sim_run ) );
1811
1813 .Name( "eeschema.Simulation.stopSimulation" )
1814 .Scope( AS_GLOBAL )
1815 .FriendlyName( _( "Stop Simulation" ) )
1816 .Icon( BITMAPS::sim_stop ) );
1817
1819 .Name( "eeschema.Simulation.probe" )
1820 .Scope( AS_GLOBAL )
1821 .DefaultHotkey( MD_SHIFT + 'P' )
1822 .FriendlyName( _( "Probe Schematic..." ) )
1823 .Tooltip( _( "Add a simulator probe" ) )
1824 .Icon( BITMAPS::sim_probe ) );
1825
1827 .Name( "eeschema.Simulation.tune" )
1828 .Scope( AS_GLOBAL )
1829 .DefaultHotkey( MD_SHIFT + 'T' )
1830 .FriendlyName( _( "Add Tuned Value..." ) )
1831 .Tooltip( _( "Select a value to be tuned" ) )
1832 .Icon( BITMAPS::sim_tune ) );
1833
1835 .Name( "eeschema.Simulation.editUserDefinedSignals" )
1836 .Scope( AS_GLOBAL )
1837 .FriendlyName( _( "User-defined Signals..." ) )
1838 .Tooltip( _( "Add, edit or delete user-defined simulation signals" ) )
1839 .Icon( BITMAPS::sim_add_signal ) );
1840
1842 .Name( "eeschema.Simulation.showNetlist" )
1843 .Scope( AS_GLOBAL )
1844 .FriendlyName( _( "Show SPICE Netlist" ) )
1845 .Icon( BITMAPS::netlist ) );
1846
1848 .Name( "eeschema.EditorControl.addVariant" )
1849 .Scope( AS_GLOBAL )
1850 .FriendlyName( _( "Add Design Variant..." ) )
1851 .Tooltip( _( "Add new design variant to the schematic." ) ) );
1852
1854 .Name( "eeschema.EditorControl.removeVariant" )
1855 .Scope( AS_GLOBAL )
1856 .FriendlyName( _( "Remove Design Variant..." ) )
1857 .Tooltip( _( "Remove an existing design variant from the schematic." ) ) );
1858
1860 .Name( "eeschema.EditorControl.editVariantDescription" )
1861 .Scope( AS_GLOBAL )
1862 .FriendlyName( _( "Edit Variant Description..." ) )
1863 .Tooltip( _( "Edit the description of an existing design variant." ) ) );
1864
1865// clang-format on
@ import_document
@ align_items_bottom
@ add_symbol_to_schematic
@ align_items_left
@ add_hierarchical_subsheet
@ net_highlight_schematic
@ add_graphical_polygon
@ align_items_middle
@ add_line_label
@ edit_comp_value
@ align_items_top
@ edit_comp_footprint
@ add_rectangle
@ align_items_right
@ add_class_flag
@ add_hierarchical_label
@ autoplace_fields
@ add_ellipse_arc
@ change_entry_orient
@ add_graphical_segments
@ library_browser
@ INVALID_BITMAP
@ part_properties
@ add_component
@ add_keepout_area
@ import_hierarchical_label
@ align_elements_to_grid
@ align_items_center
@ annotate_increment
@ options_schematic
@ bus_definition_tool
@ add_hierar_pin
@ select_same_sheet
@ library_archive
@ import_footprint_names
@ edit_cmp_symb_links
static TOOL_ACTION showPcbNew
static TOOL_ACTION editSymbol
static TOOL_ACTION rotateCCW
static TOOL_ACTION placeClassLabel
Definition sch_actions.h:79
static TOOL_ACTION placeSheetPin
Definition sch_actions.h:85
static TOOL_ACTION createNetChain
static TOOL_ACTION updateDesignBlockFromSheet
static TOOL_ACTION importSymbol
static TOOL_ACTION syncSelection
Selection synchronization (PCB -> SCH)
Definition sch_actions.h:57
static TOOL_ACTION newSymbol
static TOOL_ACTION placeNextSymbolUnit
Definition sch_actions.h:67
static TOOL_ACTION swapPins
static TOOL_ACTION editValue
static TOOL_ACTION saveLibraryAs
static TOOL_ACTION setExcludeFromBOM
static TOOL_ACTION assignFootprints
static TOOL_ACTION saveSheetAsDesignBlock
static TOOL_ACTION mirrorV
static TOOL_ACTION lineModeNext
static TOOL_ACTION toggleSimConsole
static TOOL_ACTION drawSheetFromFile
Definition sch_actions.h:83
static TOOL_ACTION exportPlotToClipboard
static TOOL_ACTION toggleOPCurrents
static TOOL_ACTION saveToLinkedDesignBlock
Definition sch_actions.h:71
static TOOL_ACTION clearHighlight
static TOOL_ACTION swap
static TOOL_ACTION saveSelectionAsDesignBlock
static TOOL_ACTION showBusSyntaxHelp
static TOOL_ACTION placeGlobalLabel
Definition sch_actions.h:80
static TOOL_ACTION saveWorkbookAs
static TOOL_ACTION removeVariant
static TOOL_ACTION previousSymbol
static TOOL_ACTION deleteDesignBlock
static TOOL_ACTION editSymbolFields
static TOOL_ACTION toggleSimSidePanel
static TOOL_ACTION drawEllipseArc
Definition sch_actions.h:98
static TOOL_ACTION pushPinLength
static TOOL_ACTION checkSymbol
static TOOL_ACTION importFPAssignments
static TOOL_ACTION changeSymbols
static TOOL_ACTION convertStackedPins
static TOOL_ACTION drawTextBox
Definition sch_actions.h:93
static TOOL_ACTION toggleAnnotateAuto
static TOOL_ACTION updateSymbol
static TOOL_ACTION autoplaceFields
static TOOL_ACTION changeSymbol
static TOOL_ACTION syncAllSheetsPins
Definition sch_actions.h:91
static TOOL_ACTION showRelatedLibFieldsTable
static TOOL_ACTION ddAddImage
static TOOL_ACTION editLibSymbolWithLibEdit
static TOOL_ACTION closeOutline
static TOOL_ACTION exportPlotAsCSV
static TOOL_ACTION drawArc
Definition sch_actions.h:99
static TOOL_ACTION drawSheet
Definition sch_actions.h:82
static TOOL_ACTION toggleERCWarnings
static TOOL_ACTION pinTable
static TOOL_ACTION drawSymbolLines
static TOOL_ACTION placeSymbolPin
static TOOL_ACTION navigateBack
static TOOL_ACTION editVariantDescription
static TOOL_ACTION schematicSetup
static TOOL_ACTION toggleDirectiveLabels
static TOOL_ACTION pasteSymbol
static TOOL_ACTION drawSymbolTextBox
static TOOL_ACTION pushPinNameSize
static TOOL_ACTION highlightNetTool
static TOOL_ACTION properties
static TOOL_ACTION editReference
static TOOL_ACTION leaveSheet
static TOOL_ACTION exportSymbolAsSVG
static TOOL_ACTION breakWire
static TOOL_ACTION ddImportGraphics
static TOOL_ACTION removeFromNetChain
static TOOL_ACTION renameSymbol
static TOOL_ACTION findNetInInspector
static TOOL_ACTION toggleHiddenFields
static TOOL_ACTION autoplaceAllSheetPins
Definition sch_actions.h:86
static TOOL_ACTION drawRectangle
Definition sch_actions.h:95
static TOOL_ACTION drawLines
static TOOL_ACTION saveCurrSheetCopyAs
Definition sch_actions.h:43
static TOOL_ACTION placeHierLabel
Definition sch_actions.h:81
static TOOL_ACTION alignTop
static TOOL_ACTION alignRight
static TOOL_ACTION simAnalysisProperties
static TOOL_ACTION selectConnection
If current selection is a wire or bus, expand to entire connection.
Definition sch_actions.h:51
static TOOL_ACTION drawEllipse
Definition sch_actions.h:97
static TOOL_ACTION toggleDottedSecondary
static TOOL_ACTION placeLabel
Definition sch_actions.h:78
static TOOL_ACTION drawCircle
Definition sch_actions.h:96
static TOOL_ACTION navigateNext
static TOOL_ACTION duplicateSymbol
static TOOL_ACTION importGraphics
static TOOL_ACTION toText
static TOOL_ACTION restartMove
static TOOL_ACTION placeBusWireEntry
Definition sch_actions.h:77
static TOOL_ACTION toHLabel
static TOOL_ACTION showRemoteSymbolPanel
static TOOL_ACTION cutSymbol
static TOOL_ACTION nextNetItem
static TOOL_ACTION drawBezier
static TOOL_ACTION drawWire
Definition sch_actions.h:72
static TOOL_ACTION remapSymbols
static TOOL_ACTION lineMode45
static TOOL_ACTION saveSymbolCopyAs
static TOOL_ACTION nextUnit
static TOOL_ACTION editSymbolLibraryLinks
static TOOL_ACTION simTune
static TOOL_ACTION rotateCW
static TOOL_ACTION importSheet
Definition sch_actions.h:87
static TOOL_ACTION showElectricalTypes
static TOOL_ACTION alignBottom
static TOOL_ACTION toggleDarkModePlots
static TOOL_ACTION flattenSymbol
static TOOL_ACTION drag
static TOOL_ACTION exportPlotAsPNG
static TOOL_ACTION pointEditorAddCorner
static TOOL_ACTION generateBOM
static TOOL_ACTION showHierarchy
static TOOL_ACTION exportPlotToSchematic
static TOOL_ACTION setExcludeFromSim
static TOOL_ACTION highlightNetChain
static TOOL_ACTION toLabel
static TOOL_ACTION showNetNavigator
static TOOL_ACTION placeJunction
Definition sch_actions.h:76
static TOOL_ACTION setDNP
static TOOL_ACTION markSimExclusions
static TOOL_ACTION previousNetItem
static TOOL_ACTION drawSymbolPolygon
static TOOL_ACTION drawRuleArea
static TOOL_ACTION swapUnitLabels
static TOOL_ACTION placeSymbol
Definition sch_actions.h:66
static TOOL_ACTION placeImage
static TOOL_ACTION alignToGrid
static TOOL_ACTION deleteLastPoint
static TOOL_ACTION showHiddenFields
static TOOL_ACTION editDesignBlockProperties
static TOOL_ACTION editWithLibEdit
static TOOL_ACTION cleanupSheetPins
static TOOL_ACTION runSimulation
static TOOL_ACTION toDLabel
static TOOL_ACTION navigateForward
static TOOL_ACTION alignLeft
static TOOL_ACTION generateBOMExternal
static TOOL_ACTION nextSymbol
static TOOL_ACTION toggleERCErrors
static TOOL_ACTION incrementAnnotations
static TOOL_ACTION placeSymbolAnchor
static TOOL_ACTION navigatePrevious
static TOOL_ACTION alignCenterX
static TOOL_ACTION rescueSymbols
static TOOL_ACTION showHiddenPins
static TOOL_ACTION cycleBodyStyle
static TOOL_ACTION editUserDefinedSignals
static TOOL_ACTION showPinNumbers
static TOOL_ACTION angleSnapModeChanged
static TOOL_ACTION placeLinkedDesignBlock
Definition sch_actions.h:70
static TOOL_ACTION exportSymbolView
static TOOL_ACTION selectNode
Select the junction, wire or bus segment under the cursor.
Definition sch_actions.h:47
static TOOL_ACTION drawSheetFromDesignBlock
Definition sch_actions.h:84
static TOOL_ACTION newAnalysisTab
static TOOL_ACTION generateBOMLegacy
static TOOL_ACTION mirrorH
static TOOL_ACTION showLibFieldsTable
static TOOL_ACTION showSimulator
static TOOL_ACTION copySymbol
static TOOL_ACTION unfoldBus
Definition sch_actions.h:74
static TOOL_ACTION pointEditorRemoveCorner
static TOOL_ACTION placeDesignBlock
Definition sch_actions.h:69
static TOOL_ACTION toggleOPVoltages
static TOOL_ACTION drawBus
Definition sch_actions.h:73
static TOOL_ACTION simProbe
static TOOL_ACTION runERC
Inspection and Editing.
static TOOL_ACTION symbolProperties
static TOOL_ACTION placeSymbolText
static TOOL_ACTION drawTable
Definition sch_actions.h:94
static TOOL_ACTION lineMode90
static TOOL_ACTION ddAppendFile
static TOOL_ACTION slice
static TOOL_ACTION placeSchematicText
Definition sch_actions.h:92
static TOOL_ACTION toggleSyncedPinsMode
static TOOL_ACTION toTextBox
static TOOL_ACTION lineModeFree
static TOOL_ACTION unlock
Definition sch_actions.h:62
static TOOL_ACTION changeSheet
static TOOL_ACTION highlightNet
static TOOL_ACTION deleteSymbol
static TOOL_ACTION lock
Definition sch_actions.h:61
static TOOL_ACTION assignNetclass
static TOOL_ACTION annotate
static TOOL_ACTION showDesignBlockPanel
static TOOL_ACTION updateDesignBlockFromSelection
static TOOL_ACTION updateSymbols
static TOOL_ACTION swapPinLabels
static TOOL_ACTION enterSheet
static TOOL_ACTION pushPinNumSize
static TOOL_ACTION undoLastSegment
static TOOL_ACTION showNetlist
static TOOL_ACTION editFootprint
static TOOL_ACTION replaceTerminalPin
static TOOL_ACTION explodeStackedPin
static TOOL_ACTION togglePinAltIcons
static TOOL_ACTION openWorkbook
static TOOL_ACTION toggleERCExclusions
static TOOL_ACTION updateNetHighlighting
static TOOL_ACTION repeatDrawItem
static TOOL_ACTION createNetChainBetweenPins
static TOOL_ACTION editTextAndGraphics
static TOOL_ACTION exportNetlist
static TOOL_ACTION alignCenterY
static TOOL_ACTION saveWorkbook
static TOOL_ACTION placeNoConnect
Definition sch_actions.h:75
static TOOL_ACTION editPageNumber
static TOOL_ACTION drawSheetOnClipboard
static TOOL_ACTION exportSymbolsToLibrary
static TOOL_ACTION switchSegmentPosture
static TOOL_ACTION updateSymbolFields
static TOOL_ACTION toGLabel
static TOOL_ACTION toggleHiddenPins
static TOOL_ACTION setExcludeFromBoard
static TOOL_ACTION exportSymbol
static TOOL_ACTION selectOnPCB
static TOOL_ACTION addVariant
static TOOL_ACTION move
static TOOL_ACTION importNonKicadSchematic
static TOOL_ACTION syncSheetPins
Definition sch_actions.h:89
static TOOL_ACTION toggleLegend
static TOOL_ACTION diffSymbol
static TOOL_ACTION placePower
Definition sch_actions.h:68
static TOOL_ACTION navigateUp
static TOOL_ACTION previousUnit
static TOOL_ACTION toggleLock
Definition sch_actions.h:60
static TOOL_ACTION deriveFromExistingSymbol
static TOOL_ACTION stopSimulation
static TOOL_ACTION nameNetChain
static TOOL_ACTION addSymbolToSchematic
static TOOL_ACTION saveSymbolAs
Build up the properties of a TOOL_ACTION in an incremental manner that is static-construction safe.
Represent a single user action.
@ ELLIPSE
Definition eda_shape.h:56
@ RECTANGLE
Use RECTANGLE instead of RECT to avoid collision in a Windows header.
Definition eda_shape.h:51
@ ELLIPSE_ARC
Definition eda_shape.h:57
@ LINE_MODE_90
@ LINE_MODE_45
@ LINE_MODE_FREE
@ LAYER_WIRE
Definition layer_ids.h:454
@ LAYER_NOTES
Definition layer_ids.h:469
@ LAYER_BUS
Definition layer_ids.h:455
const DRAW_SEGMENT_EVENT_PARAMS drawLinesActionParam
const DRAW_SEGMENT_EVENT_PARAMS drawWireActionParam
const DRAW_SEGMENT_EVENT_PARAMS drawBusActionParam
#define _(s)
@ 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
@ MD_ALT
Definition tool_event.h:145
@ MD_CTRL
Definition tool_event.h:144
@ MD_SHIFT
Definition tool_event.h:143
@ SCH_NO_CONNECT_T
Definition typeinfo.h:161
@ SCH_DIRECTIVE_LABEL_T
Definition typeinfo.h:172
@ SCH_LABEL_T
Definition typeinfo.h:168
@ SCH_SHEET_T
Definition typeinfo.h:176
@ SCH_HIER_LABEL_T
Definition typeinfo.h:170
@ SCH_TEXT_T
Definition typeinfo.h:152
@ SCH_BUS_WIRE_ENTRY_T
Definition typeinfo.h:162
@ SCH_TEXTBOX_T
Definition typeinfo.h:153
@ SCH_GLOBAL_LABEL_T
Definition typeinfo.h:169
@ SCH_JUNCTION_T
Definition typeinfo.h:160
@ SCH_PIN_T
Definition typeinfo.h:154