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 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.drawArc" )
702 .Scope( AS_GLOBAL )
703 .FriendlyName( _( "Draw Arcs" ) )
704 .ToolbarState( TOOLBAR_STATE::TOGGLE )
705 .Icon( BITMAPS::add_arc )
706 .Flags( AF_ACTIVATE )
707 .Parameter( SHAPE_T::ARC ) );
708
710 .Name( "eeschema.InteractiveDrawing.drawBezier" )
711 .Scope( AS_GLOBAL )
712 .FriendlyName( _( "Draw Bezier Curve" ) )
713 .ToolbarState( TOOLBAR_STATE::TOGGLE )
714 .Icon( BITMAPS::add_bezier )
715 .Flags( AF_ACTIVATE )
716 .Parameter( SHAPE_T::BEZIER ) );
717
719 .Name( "eeschema.InteractiveDrawing.placeImage" )
720 .Scope( AS_GLOBAL )
721 .FriendlyName( _( "Place Images" ) )
722 .ToolbarState( TOOLBAR_STATE::TOGGLE )
723 .Icon( BITMAPS::image )
724 .Flags( AF_ACTIVATE )
725 .Parameter<SCH_BITMAP*>( nullptr ) );
726
728 .Name( "eeschema.InteractiveDrawing.drawRuleArea" )
729 .Scope( AS_GLOBAL )
730 .FriendlyName( _( "Draw Rule Areas" ) )
731 .ToolbarState( TOOLBAR_STATE::TOGGLE )
733 .Flags( AF_ACTIVATE )
734 .Parameter( SHAPE_T::RECTANGLE ) );
735
737 .Name( "eeschema.InteractiveDrawing.deleteLastPoint" )
738 .Scope( AS_CONTEXT )
739 .FriendlyName( _( "Delete Last Point" ) )
740 .Tooltip( _( "Delete the last point added to the current item" ) )
741 .Icon( BITMAPS::undo ) );
742
744 .Name( "eeschema.InteractiveDrawing.closeOutline" )
745 .Scope( AS_CONTEXT )
746 .FriendlyName( _( "Close Outline" ) )
747 .Tooltip( _( "Close the in-progress outline" ) )
748 .Icon( BITMAPS::checked_ok ) );
749
750
751// SCH_EDIT_TOOL
752//
754 .Name( "eeschema.InteractiveEdit.repeatDrawItem" )
755 .Scope( AS_GLOBAL )
756#ifdef __WXMAC__
757 .DefaultHotkey( WXK_F1 )
758#else
759 .DefaultHotkey( WXK_INSERT )
760#endif
761 .LegacyHotkeyName( "Repeat Last Item" )
762 .FriendlyName( _( "Repeat Last Item" ) )
763 .Tooltip( _( "Duplicates the last drawn item" ) ) );
764
766 .Name( "eeschema.InteractiveEdit.rotateCW" )
767 .Scope( AS_GLOBAL )
768 .DefaultHotkey( MD_SHIFT + 'R' )
769 .FriendlyName( _( "Rotate Clockwise" ) )
770 .Icon( BITMAPS::rotate_cw ) );
771
773 .Name( "eeschema.InteractiveEdit.rotateCCW" )
774 .Scope( AS_GLOBAL )
775 .DefaultHotkey( 'R' )
776 .LegacyHotkeyName( "Rotate Item" )
777 .FriendlyName( _( "Rotate Counterclockwise" ) )
778 .Icon( BITMAPS::rotate_ccw ) );
779
781 .Name( "eeschema.InteractiveEdit.mirrorV" )
782 .Scope( AS_GLOBAL )
783 .DefaultHotkey( 'Y' )
784 .LegacyHotkeyName( "Mirror X" ) // Yes, these were backwards prior to 6.0....
785 .FriendlyName( _( "Mirror Vertically" ) )
786 .Tooltip( _( "Flips selected item(s) from top to bottom" ) )
787 .Icon( BITMAPS::mirror_v ) );
788
790 .Name( "eeschema.InteractiveEdit.mirrorH" )
791 .Scope( AS_GLOBAL )
792 .DefaultHotkey( 'X' )
793 .LegacyHotkeyName( "Mirror Y" ) // Yes, these were backwards prior to 6.0....
794 .FriendlyName( _( "Mirror Horizontally" ) )
795 .Tooltip( _( "Flips selected item(s) from left to right" ) )
796 .Icon( BITMAPS::mirror_h ) );
797
799 .Name( "eeschema.InteractiveEdit.swap" )
800 .Scope( AS_GLOBAL )
801 .DefaultHotkey( MD_ALT + 'S' )
802 .FriendlyName( _( "Swap" ) )
803 .Tooltip( _( "Swap positions of selected items" ) )
804 .Icon( BITMAPS::swap ) );
805
806// Separate action so "real" pin swaps are not conflated with the generic position swap.
808 .Name( "eeschema.InteractiveEdit.swapPins" )
809 .Scope( AS_GLOBAL )
810 .FriendlyName( _( "Swap Pins" ) )
811 .Tooltip( _( "Swap the selected symbol pins' positions" ) )
812 .Icon( BITMAPS::swap ) );
813
815 .Name( "eeschema.InteractiveEdit.swapPinLabels" )
816 .Scope( AS_GLOBAL )
817 .FriendlyName( _( "Swap Pin Labels" ) )
818 .Tooltip( _( "Swap the labels attached to selected pins" ) )
819 .Icon( BITMAPS::swap ) );
820
822 .Name( "eeschema.InteractiveEdit.swapUnitLabels" )
823 .Scope( AS_GLOBAL )
824 .FriendlyName( _( "Swap Unit Labels" ) )
825 .Tooltip( _( "Swap labels between selected units" ) )
826 .Icon( BITMAPS::swap ) );
827
829 .Name( "eeschema.InteractiveEdit.properties" )
830 .Scope( AS_GLOBAL )
831 .DefaultHotkey( 'E' )
832 .LegacyHotkeyName( "Edit Item" )
833 .FriendlyName( _( "Properties..." ) )
834 .Icon( BITMAPS::edit ) );
835
837 .Name( "eeschema.InteractiveEdit.editReference" )
838 .Scope( AS_GLOBAL )
839 .DefaultHotkey( 'U' )
840 .LegacyHotkeyName( "Edit Symbol Reference" )
841 .FriendlyName( _( "Edit Reference Designator..." ) )
842 .Icon( BITMAPS::edit_comp_ref ) );
843
845 .Name( "eeschema.InteractiveEdit.editValue" )
846 .Scope( AS_GLOBAL )
847 .DefaultHotkey( 'V' )
848 .LegacyHotkeyName( "Edit Symbol Value" )
849 .FriendlyName( _( "Edit Value..." ) )
850 .Icon( BITMAPS::edit_comp_value ) );
851
853 .Name( "eeschema.InteractiveEdit.editFootprint" )
854 .Scope( AS_GLOBAL )
855 .DefaultHotkey( 'F' )
856 .LegacyHotkeyName( "Edit Symbol Footprint" )
857 .FriendlyName( _( "Edit Footprint..." ) )
859
861 .Name( "eeschema.InteractiveEdit.autoplaceFields" )
862 .Scope( AS_GLOBAL )
863 .DefaultHotkey( 'O' )
864 .LegacyHotkeyName( "Autoplace Fields" )
865 .FriendlyName( _( "Autoplace Fields" ) )
866 .Tooltip( _( "Runs the automatic placement algorithm on the symbol's (or sheet's) fields" ) )
867 .Icon( BITMAPS::autoplace_fields ) );
868
870 .Name( "eeschema.InteractiveEdit.changeSymbols" )
871 .Scope( AS_GLOBAL )
872 .FriendlyName( _( "Change Symbols..." ) )
873 .Tooltip( _( "Assign different symbols from the library" ) )
874 .Icon( BITMAPS::exchange ) );
875
877 .Name( "eeschema.InteractiveEdit.updateSymbols" )
878 .Scope( AS_GLOBAL )
879 .FriendlyName( _( "Update Symbols from Library..." ) )
880 .Tooltip( _( "Update symbols to include any changes from the library" ) )
881 .Icon( BITMAPS::refresh ) );
882
884 .Name( "eeschema.InteractiveEdit.changeSymbol" )
885 .Scope( AS_GLOBAL )
886 .FriendlyName( _( "Change Symbol..." ) )
887 .Tooltip( _( "Assign a different symbol from the library" ) )
888 .Icon( BITMAPS::exchange ) );
889
891 .Name( "eeschema.InteractiveEdit.updateSymbol" )
892 .Scope( AS_GLOBAL )
893 .FriendlyName( _( "Update Symbol..." ) )
894 .Tooltip( _( "Update symbol to include any changes from the library" ) )
895 .Icon( BITMAPS::refresh ) );
896
898 .Name( "eeschema.InteractiveEdit.assignNetclass" )
899 .Scope( AS_GLOBAL )
900 .FriendlyName( _( "Assign Netclass..." ) )
901 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
902 .Icon( BITMAPS::netlist ) );
903
905 .Name( "eeschema.InteractiveEdit.findNetInInspector" )
906 .Scope( AS_GLOBAL )
907 .FriendlyName( _( "Find in Net Navigator" ) )
908 .Tooltip( _( "Locate the selected net in the net navigator" ) ) );
909
911 .Name( "eeschema.InteractiveEdit.toggleDeMorgan" )
912 .Scope( AS_GLOBAL )
913 .FriendlyName( _( "Cycle Body Style" ) )
914 .Tooltip( _( "Switch between De Morgan (or other) representations" ) )
915 .Icon( BITMAPS::morgan2 ) );
916
918 .Name( "eeschema.InteractiveEdit.toLabel" )
919 .Scope( AS_GLOBAL )
920 .FriendlyName( _( "Change to Label" ) )
921 .Tooltip( _( "Change existing item to a label" ) )
923 .Flags( AF_NONE )
924 .Parameter( SCH_LABEL_T ) );
925
927 .Name( "eeschema.InteractiveEdit.toCLabel" ) // Old name based on netClass label.
928 // There's no sense losing hotkey assignments, so we
929 // leave it as-is)
930 .Scope( AS_GLOBAL )
931 .FriendlyName( _( "Change to Directive Label" ) )
932 .Tooltip( _( "Change existing item to a directive label" ) )
934 .Flags( AF_NONE )
935 .Parameter( SCH_DIRECTIVE_LABEL_T ) );
936
938 .Name( "eeschema.InteractiveEdit.toHLabel" )
939 .Scope( AS_GLOBAL )
940 .FriendlyName( _( "Change to Hierarchical Label" ) )
941 .Tooltip( _( "Change existing item to a hierarchical label" ) )
943 .Flags( AF_NONE )
944 .Parameter( SCH_HIER_LABEL_T ) );
945
947 .Name( "eeschema.InteractiveEdit.toGLabel" )
948 .Scope( AS_GLOBAL )
949 .FriendlyName( _( "Change to Global Label" ) )
950 .Tooltip( _( "Change existing item to a global label" ) )
951 .Icon( BITMAPS::add_glabel )
952 .Flags( AF_NONE )
953 .Parameter( SCH_GLOBAL_LABEL_T ) );
954
956 .Name( "eeschema.InteractiveEdit.toText" )
957 .Scope( AS_GLOBAL )
958 .FriendlyName( _( "Change to Text" ) )
959 .Tooltip( _( "Change existing item to a text comment" ) )
960 .Icon( BITMAPS::text )
961 .Flags( AF_NONE )
962 .Parameter( SCH_TEXT_T ) );
963
965 .Name( "eeschema.InteractiveEdit.toTextBox" )
966 .Scope( AS_GLOBAL )
967 .FriendlyName( _( "Change to Text Box" ) )
968 .Tooltip( _( "Change existing item to a text box" ) )
969 .Icon( BITMAPS::add_textbox )
970 .Flags( AF_NONE )
971 .Parameter( SCH_TEXTBOX_T ) );
972
974 .Name( "eeschema.InteractiveEdit.cleanupSheetPins" )
975 .Scope( AS_GLOBAL )
976 .FriendlyName( _( "Cleanup Sheet Pins" ) )
977 .Tooltip( _( "Delete unreferenced sheet pins" ) ) );
978
980 .Name( "eeschema.InteractiveEdit.editTextAndGraphics" )
981 .Scope( AS_GLOBAL )
982 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
983 .Tooltip( _( "Edit text and graphics properties globally across schematic" ) )
984 .Icon( BITMAPS::text ) );
985
987 .Name( "eeschema.InteractiveEdit.symbolProperties" )
988 .Scope( AS_GLOBAL )
989 .FriendlyName( _( "Symbol Properties..." ) )
990 .Icon( BITMAPS::part_properties ) );
991
993 .Name( "eeschema.InteractiveEdit.pinTable" )
994 .Scope( AS_GLOBAL )
995 .FriendlyName( _( "Pin Table..." ) )
996 .Tooltip( _( "Displays pin table for bulk editing of pins" ) )
997 .Icon( BITMAPS::pin_table ) );
998
1000 .Name( "eeschema.InteractiveEdit.convertStackedPins" )
1001 .Scope( AS_GLOBAL )
1002 .FriendlyName( _( "Convert Stacked Pins" ) )
1003 .Tooltip( _( "Convert multiple pins at the same location to a single pin with stacked notation" ) )
1004 .Icon( BITMAPS::pin ) );
1005
1007 .Name( "eeschema.InteractiveEdit.explodeStackedPin" )
1008 .Scope( AS_GLOBAL )
1009 .FriendlyName( _( "Explode Stacked Pin" ) )
1010 .Tooltip( _( "Convert a pin with stacked notation to multiple individual pins" ) )
1011 .Icon( BITMAPS::pin ) );
1012
1014 .Name( "eeschema.InteractiveEdit.breakWire" )
1015 .Scope( AS_GLOBAL )
1016 .FriendlyName( _( "Break" ) )
1017 .Tooltip( _( "Divide into connected segments" ) )
1018 .Icon( BITMAPS::break_line ) );
1019
1021 .Name( "eeschema.InteractiveEdit.slice" )
1022 .Scope( AS_GLOBAL )
1023 .FriendlyName( _( "Slice" ) )
1024 .Tooltip( _( "Divide into unconnected segments" ) )
1025 .Icon( BITMAPS::slice_line ) );
1026
1027// SCH_EDITOR_CONTROL
1028//
1030 .Name( "eeschema.EditorControl.restartMove" )
1031 .Scope( AS_GLOBAL ) );
1032
1034 .Name( "eeschema.EditorControl.highlightNet" )
1035 .Scope( AS_GLOBAL )
1036 .DefaultHotkey( '`' )
1037 .FriendlyName( _( "Highlight Net" ) )
1038 .Tooltip( _( "Highlight net under cursor" ) )
1040
1042 .Name( "eeschema.EditorControl.clearHighlight" )
1043 .Scope( AS_GLOBAL )
1044 .DefaultHotkey( '~' )
1045 .FriendlyName( _( "Clear Net Highlighting" ) )
1046 .Tooltip( _( "Clear any existing net highlighting" ) ) );
1047
1049 .Name( "eeschema.EditorControl.updateNetHighlighting" )
1050 .Scope( AS_GLOBAL ) );
1051
1053 .Name( "eeschema.EditorControl.highlightNetTool" )
1054 .Scope( AS_GLOBAL )
1055 .FriendlyName( _( "Highlight Nets" ) )
1056 .Tooltip( _( "Highlight wires and pins of a net" ) )
1057 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1059 .Flags( AF_ACTIVATE ) );
1060
1062 .Name( "eeschema.EditorControl.showNetNavigator" )
1063 .Scope( AS_GLOBAL )
1064 .FriendlyName( _( "Net Navigator" ) )
1065 .Tooltip( _( "Show/hide the net navigator" ) ) );
1066
1068 .Name( "eeschema.EditorControl.editWithSymbolEditor" )
1069 .Scope( AS_GLOBAL )
1070 .DefaultHotkey( MD_CTRL + 'E' )
1071 .LegacyHotkeyName( "Edit with Symbol Editor" )
1072 .FriendlyName( _( "Edit with Symbol Editor" ) )
1073 .Tooltip( _( "Open the selected symbol in the Symbol Editor" ) )
1074 .Icon( BITMAPS::libedit ) );
1075
1077 .Name( "eeschema.EditorControl.setExcludeFromBOM" )
1078 .Scope( AS_GLOBAL )
1079 .FriendlyName( _( "Exclude from Bill of Materials" ) )
1080 .Tooltip( _( "Set the exclude from bill of materials attribute" ) ) );
1081
1083 .Name( "eeschema.EditorControl.setExcludeFromSimulation" )
1084 .Scope( AS_GLOBAL )
1085 .FriendlyName( _( "Exclude from Simulation" ) )
1086 .Tooltip( _( "Set the exclude from simulation attribute" ) ) );
1087
1089 .Name( "eeschema.EditorControl.setExcludeFromBoard" )
1090 .Scope( AS_GLOBAL )
1091 .FriendlyName( _( "Exclude from Board" ) )
1092 .Tooltip( _( "Set the exclude from board attribute" ) ) );
1093
1095 .Name( "eeschema.EditorControl.setDNP" )
1096 .Scope( AS_GLOBAL )
1097 .FriendlyName( _( "Do not Populate" ) )
1098 .Tooltip( _( "Set the do not populate attribute" ) ) );
1099
1101 .Name( "eeschema.EditorControl.editLibSymbolWithSymbolEditor" )
1102 .Scope( AS_GLOBAL )
1103 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
1104 .FriendlyName( _( "Edit Library Symbol..." ) )
1105 .Tooltip( _( "Open the library symbol in the Symbol Editor" ) )
1106 .Icon( BITMAPS::libedit ) );
1107
1109 .Name( "eeschema.EditorControl.editSymbolFields" )
1110 .Scope( AS_GLOBAL )
1111 .FriendlyName( _( "Bulk Edit Symbol Fields..." ) )
1112 .Tooltip( _( "Edit a table of fields from all symbols in the schematic" ) )
1113 .Icon( BITMAPS::spreadsheet ) );
1114
1116 .Name( "eeschema.EditorControl.editSymbolLibraryLinks" )
1117 .Scope( AS_GLOBAL )
1118 .FriendlyName( _( "Bulk Edit Symbol Library Links..." ) )
1119 .Tooltip( _( "Edit a table of links between schematic and library symbols" ) )
1121
1123 .Name( "eeschema.EditorControl.assignFootprints" )
1124 .Scope( AS_GLOBAL )
1125 .FriendlyName( _( "Assign Footprints..." ) )
1126 .Tooltip( _( "Run footprint assignment tool" ) )
1127 .Icon( BITMAPS::icon_cvpcb_24 ) );
1128
1130 .Name( "eeschema.EditorControl.importFPAssignments" )
1131 .Scope( AS_GLOBAL )
1132 .FriendlyName( _( "Import Footprint Assignments..." ) )
1133 .Tooltip( _( "Import symbol footprint assignments from .cmp file created by board editor" ) )
1135
1137 .Name( "eeschema.EditorControl.annotate" )
1138 .Scope( AS_GLOBAL )
1139 .FriendlyName( _( "Annotate Schematic..." ) )
1140 .Tooltip( _( "Fill in schematic symbol reference designators" ) )
1141 .Icon( BITMAPS::annotate ) );
1142
1144 .Name( "eeschema.EditorControl.incrementAnnotations" )
1145 .Scope( AS_GLOBAL )
1146 .FriendlyName( _( "Increment Annotations From..." ) )
1147 .Tooltip( _( "Increment a subset of reference designators starting at a particular symbol" ) )
1149 );
1150
1152 .Name( "eeschema.EditorControl.schematicSetup" )
1153 .Scope( AS_GLOBAL )
1154 .FriendlyName( _( "Schematic Setup..." ) )
1155 .Tooltip( _( "Edit schematic setup including annotation styles and electrical rules" ) )
1156 .Icon( BITMAPS::options_schematic ) );
1157
1159 .Name( "eeschema.EditorControl.editPageNumber" )
1160 .Scope( AS_GLOBAL )
1161 .FriendlyName( _( "Edit Sheet Page Number..." ) )
1162 .Tooltip( _( "Edit the page number of the current or selected sheet" ) ) );
1163
1165 .Name( "eeschema.EditorControl.rescueSymbols" )
1166 .Scope( AS_GLOBAL )
1167 .FriendlyName( _( "Rescue Symbols..." ) )
1168 .Tooltip( _( "Find old symbols in project and rename/rescue them" ) )
1169 .Icon( BITMAPS::rescue ) );
1170
1172 .Name( "eeschema.EditorControl.remapSymbols" )
1173 .Scope( AS_GLOBAL )
1174 .FriendlyName( _( "Remap Legacy Library Symbols..." ) )
1175 .Tooltip( _( "Remap library symbol references in legacy schematics to the symbol library table" ) )
1176 .Icon( BITMAPS::rescue ) );
1177
1179 .Name( "eeschema.EditorControl.nextNetItem" )
1180 .Scope( AS_GLOBAL )
1181 .DefaultHotkey( WXK_TAB )
1182 .FriendlyName( _( "Next Net Item" ) )
1183 .Tooltip( _( "Select next item on the current net" ) ) );
1184
1186 .Name( "eeschema.EditorControl.previousNetItem" )
1187 .Scope( AS_GLOBAL )
1188 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_TAB ) )
1189 .FriendlyName( _( "Previous Net Item" ) )
1190 .Tooltip( _( "Select previous item on the current net" ) ) );
1191
1193 .Name( "eeschema.EditorControl.drawSheetOnClipboard" )
1194 .Scope( AS_GLOBAL )
1195 .FriendlyName( _( "Export Drawing to Clipboard" ) )
1196 .Tooltip( _( "Export drawing of current sheet to clipboard" ) )
1197 .Icon( BITMAPS::copy ) );
1198
1200 .Name( "eeschema.EditorControl.importGraphics" )
1201 .Scope( AS_GLOBAL )
1202 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'F' )
1203 .LegacyHotkeyName( "Place DXF" )
1204 .FriendlyName( _( "Import Graphics..." ) )
1205 .Tooltip( _( "Import 2D drawing file" ) )
1206 .Icon( BITMAPS::import_vector )
1207 .Flags( AF_ACTIVATE ) );
1208
1210 .Name( "eeschema.EditorControl.showPcbNew" )
1211 .Scope( AS_GLOBAL )
1212 .FriendlyName( _( "Switch to PCB Editor" ) )
1213 .Tooltip( _( "Open PCB in board editor" ) )
1214 .Icon( BITMAPS::icon_pcbnew_24 ) );
1215
1217 .Name( "eeschema.EditorControl.exportNetlist" )
1218 .Scope( AS_GLOBAL )
1219 .FriendlyName( _( "Export Netlist..." ) )
1220 .Tooltip( _( "Export file containing netlist in one of several formats" ) )
1221 .Icon( BITMAPS::netlist ) );
1222
1224 .Name( "eeschema.EditorControl.generateBOM" )
1225 .Scope( AS_GLOBAL )
1226 .FriendlyName( _( "Generate Bill of Materials..." ) )
1227 .Tooltip( _( "Generate a bill of materials for the current schematic" ) )
1228 .Icon( BITMAPS::post_bom ) );
1229
1231 .Name( "eeschema.EditorControl.generateBOMLegacy" )
1232 .Scope( AS_GLOBAL )
1233 .FriendlyName( _( "Generate Legacy Bill of Materials..." ) )
1234 .Tooltip( _( "Generate a bill of materials for the current schematic (Legacy Generator)" ) )
1235 .Icon( BITMAPS::file_bom )
1236 );
1237
1239 .Name( "eeschema.EditorControl.generateBOMExternal" )
1240 .Scope( AS_GLOBAL )
1241 .FriendlyName( _( "Generate Bill of Materials (External)..." ) )
1242 .Tooltip( _( "Generate a bill of materials for the current schematic using external generator" ) )
1243 );
1244
1246 .Name( "eeschema.EditorControl.exportSymbolsToLibrary" )
1247 .Scope( AS_GLOBAL )
1248 .FriendlyName( _( "Export Symbols..." ) )
1249 .Tooltip( _( "Add symbols from schematic to a new or an existing symbol library\n"
1250 "(does not remove other symbols from this library)" ) )
1251 .Icon( BITMAPS::library_archive ) );
1252
1254 .Name( "eeschema.EditorControl.selectOnPCB" )
1255 .Scope( AS_GLOBAL )
1256 .FriendlyName( _( "Select on PCB" ) )
1257 .Tooltip( _( "Select corresponding items in PCB editor" ) )
1258 .Icon( BITMAPS::select_same_sheet ) );
1259
1261 .Name( "eeschema.EditorControl.showHiddenPins" )
1262 .Scope( AS_GLOBAL )
1263 .FriendlyName( _( "Show Hidden Pins" ) )
1264 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1265 .Icon( BITMAPS::hidden_pin ) );
1266
1268 .Name( "eeschema.EditorControl.showHiddenFields" )
1269 .Scope( AS_GLOBAL )
1270 .FriendlyName( _( "Show Hidden Fields" ) )
1271 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1272
1274 .Name( "eeschema.EditorControl.showDirectiveLabels" )
1275 .Scope( AS_GLOBAL )
1276 .FriendlyName( _( "Show Directive Labels" ) )
1277 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1278
1280 .Name( "eeschema.EditorControl.showERCWarnings" )
1281 .Scope( AS_GLOBAL )
1282 .FriendlyName( _( "Show ERC Warnings" ) )
1283 .Tooltip( _( "Show markers for electrical rules checker warnings" ) )
1284 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1285
1287 .Name( "eeschema.EditorControl.showERCErrors" )
1288 .Scope( AS_GLOBAL )
1289 .FriendlyName( _( "Show ERC Errors" ) )
1290 .Tooltip( _( "Show markers for electrical rules checker errors" ) )
1291 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1292
1294 .Name( "eeschema.EditorControl.showERCExclusions" )
1295 .Scope( AS_GLOBAL )
1296 .FriendlyName( _( "Show ERC Exclusions" ) )
1297 .Tooltip( _( "Show markers for excluded electrical rules checker violations" ) )
1298 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1299
1301 .Name( "eeschema.EditorControl.markSimExclusions" )
1302 .Scope( AS_GLOBAL )
1303 .FriendlyName( _( "Mark items excluded from simulation" ) )
1304 .Tooltip( _( "Draw 'X's over items which have been excluded from simulation" ) )
1305 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1306
1308 .Name( "eeschema.EditorControl.showOperatingPointVoltages" )
1309 .Scope( AS_GLOBAL )
1310 .FriendlyName( _( "Show OP Voltages" ) )
1311 .Tooltip( _( "Show operating point voltage data from simulation" ) )
1312 .ToolbarState( TOOLBAR_STATE::TOGGLE ));
1313
1315 .Name( "eeschema.EditorControl.showOperatingPointCurrents" )
1316 .Scope( AS_GLOBAL )
1317 .FriendlyName( _( "Show OP Currents" ) )
1318 .Tooltip( _( "Show operating point current data from simulation" ) )
1319 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1320
1322 .Name( "eeschema.EditorControl.togglePinAltIcons" )
1323 .Scope( AS_GLOBAL )
1324 .FriendlyName( _( "Show Pin Alternate Icons" ) )
1325 .Tooltip( _( "Show indicator icons for pins with alternate modes" ) )
1326 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1327
1329 .Name( "eeschema.EditorControl.lineModeFree" )
1330 .Scope( AS_GLOBAL )
1331 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1332 .Tooltip( _( "Draw and drag at any angle" ) )
1333 .Icon( BITMAPS::lines_any )
1334 .Flags( AF_NONE )
1335 .Parameter( LINE_MODE::LINE_MODE_FREE ) );
1336
1338 .Name( "eeschema.EditorControl.lineModeOrthonal" )
1339 .Scope( AS_GLOBAL )
1340 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1341 .Tooltip( _( "Constrain drawing and dragging to horizontal or vertical motions" ) )
1342 .Icon( BITMAPS::lines90 )
1343 .Flags( AF_NONE )
1344 .Parameter( LINE_MODE::LINE_MODE_90) );
1345
1347 .Name( "eeschema.EditorControl.lineMode45" )
1348 .Scope( AS_GLOBAL )
1349 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1350 .Tooltip( _( "Constrain drawing and dragging to horizontal, vertical, or 45-degree angle motions" ) )
1351 .Icon( BITMAPS::hv45mode )
1352 .Flags( AF_NONE )
1353 .Parameter( LINE_MODE::LINE_MODE_45 ) );
1354
1356 .Name( "eeschema.EditorControl.lineModeNext" )
1357 .Scope( AS_GLOBAL )
1358 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_SPACE ) )
1359 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1360 .Tooltip( _( "Switch to next angle snapping mode" ) ) );
1361
1363 .Name( "eeschema.EditorControl.angleSnapModeChanged" )
1364 .Scope( AS_GLOBAL )
1365 .Flags( AF_NOTIFY ) );
1366
1368 .Name( "eeschema.EditorControl.annotateAutomatically" )
1369 .Scope( AS_GLOBAL )
1370 .FriendlyName( _( "Annotate Automatically" ) )
1371 .Tooltip( _( "Toggle automatic annotation of new symbols" ) )
1372 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1373 .Icon( BITMAPS::annotate ) );
1374
1376 .Name( "eeschema.EditorControl.previousUnit" )
1377 .Scope( AS_GLOBAL )
1378 .FriendlyName( _( "Previous Symbol Unit" ) )
1379 .Tooltip( _( "Open the previous unit of the symbol" ) )
1380 .Parameter<int>( -1 ) );
1381
1383 .Name( "eeschema.EditorControl.nextUnit" )
1384 .Scope( AS_GLOBAL )
1385 .FriendlyName( _( "Next Symbol Unit" ) )
1386 .Tooltip( _( "Open the next unit of the symbol" ) )
1387 .Parameter<int>( 1 ) );
1388
1389// SCH_NAVIGATE_TOOL
1390//
1392 .Name( "eeschema.NavigateTool.changeSheet" )
1393 .Scope( AS_CONTEXT )
1394 .FriendlyName( _( "Change Sheet" ) )
1395 .Tooltip( _( "Change to provided sheet's contents in the schematic editor" ) )
1396 .Icon( BITMAPS::enter_sheet ) );
1397
1399 .Name( "eeschema.NavigateTool.enterSheet" )
1400 .Scope( AS_GLOBAL )
1401 .FriendlyName( _( "Enter Sheet" ) )
1402 .Tooltip( _( "Display the selected sheet's contents in the schematic editor" ) )
1403 .Icon( BITMAPS::enter_sheet ) );
1404
1406 .Name( "eeschema.NavigateTool.leaveSheet" )
1407 .Scope( AS_GLOBAL )
1408 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_BACK ) )
1409 .LegacyHotkeyName( "Leave Sheet" )
1410 .FriendlyName( _( "Leave Sheet" ) )
1411 .Tooltip( _( "Display the parent sheet in the schematic editor" ) )
1412 .Icon( BITMAPS::leave_sheet ) );
1413
1415 .Name( "eeschema.NavigateTool.up" )
1416 .Scope( AS_GLOBAL )
1417 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_UP ) )
1418 .FriendlyName( _( "Navigate Up" ) )
1419 .Tooltip( _( "Navigate up one sheet in the hierarchy" ) )
1420 .Icon( BITMAPS::up ) );
1421
1423 .Name( "eeschema.NavigateTool.back" )
1424 .Scope( AS_GLOBAL )
1425 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_LEFT ) )
1426 .FriendlyName( _( "Navigate Back" ) )
1427 .Tooltip( _( "Move backward in sheet navigation history" ) )
1428 .Icon( BITMAPS::left ) );
1429
1431 .Name( "eeschema.NavigateTool.forward" )
1432 .Scope( AS_GLOBAL )
1433 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_RIGHT ) )
1434 .FriendlyName( _( "Navigate Forward" ) )
1435 .Tooltip( _( "Move forward in sheet navigation history" ) )
1436 .Icon( BITMAPS::right ) );
1437
1439 .Name( "eeschema.NavigateTool.previous" )
1440 .Scope( AS_GLOBAL )
1441 .DefaultHotkey( WXK_PAGEUP )
1442 .FriendlyName( _( "Previous Sheet" ) )
1443 .Tooltip( _( "Move to previous sheet by number" ) )
1444 .Icon( BITMAPS::left ) );
1445
1447 .Name( "eeschema.NavigateTool.next" )
1448 .Scope( AS_GLOBAL )
1449 .DefaultHotkey( WXK_PAGEDOWN )
1450 .FriendlyName( _( "Next Sheet" ) )
1451 .Tooltip( _( "Move to next sheet by number" ) )
1452 .Icon( BITMAPS::right ) );
1453
1455 .Name( "eeschema.EditorTool.showHierarchy" )
1456 .Scope( AS_GLOBAL )
1457 .DefaultHotkey( MD_CTRL + 'H' )
1458 .FriendlyName( _( "Hierarchy Navigator" ) )
1459 .Tooltip( _( "Show/hide the schematic sheet hierarchy navigator" ) )
1460 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1461 .Icon( BITMAPS::hierarchy_nav ) );
1462
1463
1464// SCH_LINE_WIRE_BUS_TOOL
1465//
1468 .Name( "eeschema.InteractiveDrawingLineWireBus.drawWires" )
1469 .Scope( AS_GLOBAL )
1470 .DefaultHotkey( 'W' )
1471 .LegacyHotkeyName( "Begin Wire" )
1472 .FriendlyName( _( "Draw Wires" ) )
1473 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1474 .Icon( BITMAPS::add_line )
1475 .Flags( AF_ACTIVATE )
1476 .Parameter( &drawWireActionParam ) );
1477
1480 .Name( "eeschema.InteractiveDrawingLineWireBus.drawBuses" )
1481 .Scope( AS_GLOBAL )
1482 .DefaultHotkey( 'B' )
1483 .LegacyHotkeyName( "Begin Bus" )
1484 .FriendlyName( _( "Draw Buses" ) )
1485 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1486 .Icon( BITMAPS::add_bus )
1487 .Flags( AF_ACTIVATE )
1488 .Parameter( &drawBusActionParam ) );
1489
1491 .Name( "eeschema.InteractiveDrawingLineWireBus.unfoldBus" )
1492 .Scope( AS_GLOBAL )
1493 .DefaultHotkey( 'C' )
1494 .LegacyHotkeyName( "Unfold from Bus" )
1495 .FriendlyName( _( "Unfold from Bus" ) )
1496 .Tooltip( _( "Break a wire out of a bus" ) )
1498 .Flags( AF_ACTIVATE )
1499 .Parameter<wxString*>( nullptr ) );
1500
1503 .Name( "eeschema.InteractiveDrawingLineWireBus.drawLines" )
1504 .Scope( AS_GLOBAL )
1505 .DefaultHotkey( 'I' )
1506 .LegacyHotkeyName( "Add Graphic PolyLine" )
1507 .FriendlyName( _( "Draw Lines" ) )
1508 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1510 .Flags( AF_ACTIVATE )
1511 .Parameter( &drawLinesActionParam ) );
1512
1514 .Name( "eeschema.InteractiveDrawingLineWireBus.undoLastSegment")
1515 .Scope( AS_GLOBAL )
1516 .DefaultHotkey( WXK_BACK )
1517 .FriendlyName( _( "Undo Last Segment" ) )
1518 .Tooltip( _( "Walks the current line back one segment." ) )
1519 .Icon( BITMAPS::undo ) );
1520
1522 .Name( "eeschema.InteractiveDrawingLineWireBus.switchPosture" )
1523 .Scope( AS_GLOBAL )
1524 .DefaultHotkey( '/' )
1525 .FriendlyName( _( "Switch Segment Posture" ) )
1526 .Tooltip( _( "Switches posture of the current segment." ) )
1528 .Flags( AF_NONE ) );
1529
1530// SCH_MOVE_TOOL
1531//
1533 .Name( "eeschema.InteractiveMove.move" )
1534 .Scope( AS_GLOBAL )
1535 .DefaultHotkey( 'M' )
1536 .LegacyHotkeyName( "Move Item" )
1537 .FriendlyName( _( "Move" ) )
1538 .Icon( BITMAPS::move )
1539 .Flags( AF_ACTIVATE ) );
1540
1542 .Name( "eeschema.InteractiveMove.drag" )
1543 .Scope( AS_GLOBAL )
1544 .DefaultHotkey( 'G' )
1545 .LegacyHotkeyName( "Drag Item" )
1546 .FriendlyName( _( "Drag" ) )
1547 .Tooltip( _( "Move items while keeping their connections" ) )
1548 .Icon( BITMAPS::drag )
1549 .Flags( AF_ACTIVATE ) );
1550
1552 .Name( "eeschema.AlignToGrid" )
1553 .Scope( AS_GLOBAL )
1554 .FriendlyName( _( "Align Items to Grid" ) )
1556 .Flags( AF_ACTIVATE ) );
1557
1559 .Name( "eeschema.Align.alignTop" )
1560 .Scope( AS_GLOBAL )
1561 .FriendlyName( _( "Align to Top" ) )
1562 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
1564 .Flags( AF_ACTIVATE ) );
1565
1567 .Name( "eeschema.Align.alignBottom" )
1568 .Scope( AS_GLOBAL )
1569 .FriendlyName( _( "Align to Bottom" ) )
1570 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
1572 .Flags( AF_ACTIVATE ) );
1573
1575 .Name( "eeschema.Align.alignLeft" )
1576 .Scope( AS_GLOBAL )
1577 .FriendlyName( _( "Align to Left" ) )
1578 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
1580 .Flags( AF_ACTIVATE ) );
1581
1583 .Name( "eeschema.Align.alignRight" )
1584 .Scope( AS_GLOBAL )
1585 .FriendlyName( _( "Align to Right" ) )
1586 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
1588 .Flags( AF_ACTIVATE ) );
1589
1591 .Name( "eeschema.Align.alignCenterX" )
1592 .Scope( AS_GLOBAL )
1593 .FriendlyName( _( "Align to Horizontal Center" ) )
1594 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
1596 .Flags( AF_ACTIVATE ) );
1597
1599 .Name( "eeschema.Align.alignCenterY" )
1600 .Scope( AS_GLOBAL )
1601 .FriendlyName( _( "Align to Vertical Center" ) )
1602 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
1604 .Flags( AF_ACTIVATE ) );
1605
1606// Schematic editor save copy curr sheet command
1608 .Name( "eeschema.EditorControl.saveCurrSheetCopyAs" )
1609 .Scope( AS_GLOBAL )
1610 .FriendlyName( _( "Save Current Sheet Copy As..." ) )
1611 .Tooltip( _( "Save a copy of the current sheet to another location or name" ) )
1612 .Icon( BITMAPS::save_as ) );
1613
1614// Drag and drop
1616 .Name( "eeschema.EditorControl.ddAppendFile" )
1617 .Scope( AS_GLOBAL ) );
1618
1620 .Name( "eeschema.EditorControl.ddAddImage" )
1621 .Scope( AS_GLOBAL ) );
1622
1624 .Name( "eeschema.EditorControl.ddImportGraphics" )
1625 .Scope( AS_GLOBAL ) );
1626
1627// SIMULATOR
1629 .Name( "eeschema.Simulation.newAnalysisTab" )
1630 .Scope( AS_GLOBAL )
1631 .DefaultHotkey( MD_CTRL + 'N' )
1632 .LegacyHotkeyName( "New" )
1633 .FriendlyName( _( "New Analysis Tab..." ) )
1634 .Tooltip( _( "Create a new tab containing a simulation analysis" ) )
1635 .Icon( BITMAPS::sim_add_plot ) );
1636
1638 .Name( "eeschema.Simulation.openWorkbook" )
1639 .Scope( AS_GLOBAL )
1640 .DefaultHotkey( MD_CTRL + 'O' )
1641 .LegacyHotkeyName( "Open" )
1642 .FriendlyName( _( "Open Workbook..." ) )
1643 .Tooltip( _( "Open a saved set of analysis tabs and settings" ) )
1644 .Icon( BITMAPS::directory_open ) );
1645
1647 .Name( "eeschema.Simulation.saveWorkbook" )
1648 .Scope( AS_GLOBAL )
1649 .DefaultHotkey( MD_CTRL + 'S' )
1650 .LegacyHotkeyName( "Save" )
1651 .FriendlyName( _( "Save Workbook" ) )
1652 .Tooltip( _( "Save the current set of analysis tabs and settings" ) )
1653 .Icon( BITMAPS::save ) );
1654
1656 .Name( "eeschema.Simulation.saveWorkbookAs" )
1657 .Scope( AS_GLOBAL )
1658 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'S' )
1659 .LegacyHotkeyName( "Save As" )
1660 .FriendlyName( _( "Save Workbook As..." ) )
1661 .Tooltip( _( "Save the current set of analysis tabs and settings to another location" ) )
1662 .Icon( BITMAPS::sim_add_signal ) );
1663
1665 .Name( "eeschema.Simulator.exportPNG" )
1666 .Scope( AS_GLOBAL )
1667 .FriendlyName( _( "Export Current Plot as PNG..." ) )
1668 .Icon( BITMAPS::export_png ) );
1669
1671 .Name( "eeschema.Simulator.exportCSV" )
1672 .Scope( AS_GLOBAL )
1673 .FriendlyName( _( "Export Current Plot as CSV..." ) )
1674 .Icon( BITMAPS::export_file ) );
1675
1677 .Name( "eeschema.Simulator.exportToClipboard" )
1678 .Scope( AS_GLOBAL )
1679 .FriendlyName( _( "Export Current Plot to Clipboard" ) )
1680 .Icon( BITMAPS::export_png ) );
1681
1683 .Name( "eeschema.Simulator.exportPlotToSchematic" )
1684 .Scope( AS_GLOBAL )
1685 .FriendlyName( _( "Export Current Plot to Schematic" ) )
1686 .Icon( BITMAPS::export_png ) );
1687
1689 .Name( "eeschema.Simulator.toggleSimSidePanel" )
1690 .Scope( AS_GLOBAL )
1691 .FriendlyName( _( "Show Simulation Side Panel" ) ) );
1692
1694 .Name( "eeschema.Simulator.toggleSimConsole" )
1695 .Scope( AS_GLOBAL )
1696 .FriendlyName( _( "Show Simulation Console Panel" ) ) );
1697
1699 .Name( "eeschema.Simulator.toggleLegend" )
1700 .Scope( AS_GLOBAL )
1701 .FriendlyName( _( "Show Legend" ) )
1702 .Icon( BITMAPS::text ) );
1703
1705 .Name( "eeschema.Simulator.toggleDottedSecondary" )
1706 .Scope( AS_GLOBAL )
1707 .FriendlyName( _( "Dotted Current/Phase" ) )
1708 .Tooltip( _( "Draw secondary signal trace (current or phase) with a dotted line" ) ) );
1709
1711 .Name( "eeschema.Simulator.toggleDarkModePlots" )
1712 .Scope( AS_GLOBAL )
1713 .FriendlyName( _( "Dark Mode Plots" ) )
1714 .Tooltip( _( "Draw plots with a black background" ) ) );
1715
1717 .Name( "eeschema.Simulation.simAnalysisProperties" )
1718 .Scope( AS_GLOBAL )
1719 .FriendlyName( _( "Edit Analysis Tab..." ) )
1720 .Tooltip( _( "Edit the current analysis tab's SPICE command and plot setup" ) )
1721 .Icon( BITMAPS::sim_command ) );
1722
1724 .Name( "eeschema.Simulation.runSimulation" )
1725 .Scope( AS_GLOBAL )
1726 .DefaultHotkey( 'R' )
1727 .FriendlyName( _( "Run Simulation" ) )
1728 .Icon( BITMAPS::sim_run ) );
1729
1731 .Name( "eeschema.Simulation.stopSimulation" )
1732 .Scope( AS_GLOBAL )
1733 .FriendlyName( _( "Stop Simulation" ) )
1734 .Icon( BITMAPS::sim_stop ) );
1735
1737 .Name( "eeschema.Simulation.probe" )
1738 .Scope( AS_GLOBAL )
1739 .DefaultHotkey( MD_SHIFT + 'P' )
1740 .FriendlyName( _( "Probe Schematic..." ) )
1741 .Tooltip( _( "Add a simulator probe" ) )
1742 .Icon( BITMAPS::sim_probe ) );
1743
1745 .Name( "eeschema.Simulation.tune" )
1746 .Scope( AS_GLOBAL )
1747 .DefaultHotkey( MD_SHIFT + 'T' )
1748 .FriendlyName( _( "Add Tuned Value..." ) )
1749 .Tooltip( _( "Select a value to be tuned" ) )
1750 .Icon( BITMAPS::sim_tune ) );
1751
1753 .Name( "eeschema.Simulation.editUserDefinedSignals" )
1754 .Scope( AS_GLOBAL )
1755 .FriendlyName( _( "User-defined Signals..." ) )
1756 .Tooltip( _( "Add, edit or delete user-defined simulation signals" ) )
1757 .Icon( BITMAPS::sim_add_signal ) );
1758
1760 .Name( "eeschema.Simulation.showNetlist" )
1761 .Scope( AS_GLOBAL )
1762 .FriendlyName( _( "Show SPICE Netlist" ) )
1763 .Icon( BITMAPS::netlist ) );
1764
1766 .Name( "eeschema.EditorControl.addVariant" )
1767 .Scope( AS_GLOBAL )
1768 .FriendlyName( _( "Add Design Variant..." ) )
1769 .Tooltip( _( "Add new design variant to the schematic." ) ) );
1770
1772 .Name( "eeschema.EditorControl.removeVariant" )
1773 .Scope( AS_GLOBAL )
1774 .FriendlyName( _( "Remove Design Variant..." ) )
1775 .Tooltip( _( "Remove an existing design variant from the schematic." ) ) );
1776
1777// clang-format on
@ 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
@ 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 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 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:97
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 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 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
Definition sch_actions.h:99
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 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
Definition sch_actions.h:98
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 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 changeSheet
static TOOL_ACTION highlightNet
static TOOL_ACTION deleteSymbol
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 explodeStackedPin
static TOOL_ACTION togglePinAltIcons
static TOOL_ACTION openWorkbook
static TOOL_ACTION toggleERCExclusions
static TOOL_ACTION updateNetHighlighting
static TOOL_ACTION repeatDrawItem
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 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 deriveFromExistingSymbol
static TOOL_ACTION stopSimulation
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.
@ RECTANGLE
Use RECTANGLE instead of RECT to avoid collision in a Windows header.
Definition eda_shape.h:46
@ LINE_MODE_90
@ LINE_MODE_45
@ LINE_MODE_FREE
@ LAYER_WIRE
Definition layer_ids.h:452
@ LAYER_NOTES
Definition layer_ids.h:467
@ LAYER_BUS
Definition layer_ids.h:453
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:164
@ SCH_DIRECTIVE_LABEL_T
Definition typeinfo.h:175
@ SCH_LABEL_T
Definition typeinfo.h:171
@ SCH_SHEET_T
Definition typeinfo.h:179
@ SCH_HIER_LABEL_T
Definition typeinfo.h:173
@ SCH_TEXT_T
Definition typeinfo.h:155
@ SCH_BUS_WIRE_ENTRY_T
Definition typeinfo.h:165
@ SCH_TEXTBOX_T
Definition typeinfo.h:156
@ SCH_GLOBAL_LABEL_T
Definition typeinfo.h:172
@ SCH_JUNCTION_T
Definition typeinfo.h:163
@ SCH_PIN_T
Definition typeinfo.h:157