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.SchDesignBlockControl.saveSheetAsDesignBlock" )
129 .Scope( AS_GLOBAL )
130 .FriendlyName( _( "Save Current Sheet as Design Block..." ) )
131 .Tooltip( _( "Create a new design block from the current sheet" ) )
132 .Icon( BITMAPS::new_component ) );
133
135 .Name( "eeschema.SchDesignBlockControl.saveSelectionAsDesignBlock" )
136 .Scope( AS_GLOBAL )
137 .FriendlyName( _( "Save Selection as Design Block..." ) )
138 .Tooltip( _( "Create a new design block from the current selection" ) )
139 .Icon( BITMAPS::new_component ) );
140
142 .Name( "eeschema.SchDesignBlockControl.saveSheetToDesignBlock" )
143 .Scope( AS_GLOBAL )
144 .FriendlyName( _( "Save Current Sheet to Design Block..." ) )
145 .Tooltip( _( "Add current sheet to design block" ) )
146 .Icon( BITMAPS::save ) );
147
149 .Name( "eeschema.SchDesignBlockControl.saveSelectionToDesignBlock" )
150 .Scope( AS_GLOBAL )
151 .FriendlyName( _( "Save Selection to Design Block..." ) )
152 .Tooltip( _( "Add current selection to design block" ) )
153 .Icon( BITMAPS::save ) );
154
156 .Name( "eeschema.SchDesignBlockControl.saveDeleteDesignBlock" )
157 .Scope( AS_GLOBAL )
158 .FriendlyName( _( "Delete Design Block" ) )
159 .Tooltip( _( "Remove the selected design block from its library" ) )
160 .Icon( BITMAPS::trash ) );
161
163 .Name( "eeschema.SchDesignBlockControl.editDesignBlockProperties" )
164 .Scope( AS_GLOBAL )
165 .FriendlyName( _( "Properties..." ) )
166 .Tooltip( _( "Edit properties of design block" ) )
167 .Icon( BITMAPS::edit ) );
168
169// SYMBOL_EDITOR_CONTROL
170//
172 .Name( "eeschema.SymbolLibraryControl.saveLibraryAs" )
173 .Scope( AS_GLOBAL )
174 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'S' )
175 .LegacyHotkeyName( "Save As" )
176 .FriendlyName( _( "Save Library As..." ) )
177 .Tooltip( _( "Save the current library to a new file" ) ) );
178
180 .Name( "eeschema.SymbolLibraryControl.newSymbol" )
181 .Scope( AS_GLOBAL )
182 .DefaultHotkey( MD_CTRL + 'N' )
183 .FriendlyName( _( "New Symbol..." ) )
184 .Tooltip( _( "Create a new symbol in an existing library" ) )
185 .Icon( BITMAPS::new_component ) );
186
188 .Name( "eeschema.SymbolLibraryControl.deriveFromExistingSymbol" )
189 .Scope( AS_GLOBAL )
190 .FriendlyName( _( "Derive from Existing Symbol..." ) )
191 .Tooltip( _( "Create a new symbol, derived from an existing symbol" ) )
192 .Icon( BITMAPS::new_component ) );
193
195 .Name( "eeschema.SymbolLibraryControl.editSymbol" )
196 .Scope( AS_GLOBAL )
197 .FriendlyName( _( "Edit Symbol" ) )
198 .Tooltip( _( "Show selected symbol on editor canvas" ) )
199 .Icon( BITMAPS::edit ) );
200
202 .Name( "eeschema.SymbolLibraryControl.duplicateSymbol" )
203 .Scope( AS_GLOBAL )
204 .FriendlyName( _( "Duplicate Symbol" ) )
205 .Icon( BITMAPS::duplicate ) );
206
208 .Name( "eeschema.SymbolLibraryControl.renameFootprint" )
209 .Scope( AS_GLOBAL )
210 .FriendlyName( _( "Rename Symbol..." ) )
211 .Icon( BITMAPS::edit ) );
212
214 .Name( "eeschema.SymbolLibraryControl.saveSymbolAs" )
215 .Scope( AS_GLOBAL )
216 .FriendlyName( _( "Save As..." ) )
217 .Tooltip( _( "Save the current symbol to a different library or name" ) )
218 .Icon( BITMAPS::save_as ) );
219
221 .Name( "eeschema.SymbolLibraryControl.saveSymbolCopyAs" )
222 .Scope( AS_GLOBAL )
223 .FriendlyName( _( "Save Copy As..." ) )
224 .Tooltip( _( "Save a copy of the current symbol to a different library or name" ) )
225 .Icon( BITMAPS::save_as ) );
226
228 .Name( "eeschema.SymbolLibraryControl.deleteSymbol" )
229 .Scope( AS_GLOBAL )
230 .FriendlyName( _( "Delete Symbol" ) )
231 .Tooltip( _( "Remove the selected symbol from its library" ) )
232 .Icon( BITMAPS::trash ) );
233
235 .Name( "eeschema.SymbolLibraryControl.cutSymbol" )
236 .Scope( AS_GLOBAL )
237 .FriendlyName( _( "Cut" ) )
238 .Icon( BITMAPS::cut ) );
239
241 .Name( "eeschema.SymbolLibraryControl.copySymbol" )
242 .Scope( AS_GLOBAL )
243 .FriendlyName( _( "Copy" ) )
244 .Icon( BITMAPS::copy ) );
245
247 .Name( "eeschema.SymbolLibraryControl.pasteSymbol" )
248 .Scope( AS_GLOBAL )
249 .FriendlyName( _( "Paste Symbol" ) )
250 .Icon( BITMAPS::paste ) );
251
253 .Name("eeschema.SymbolLibraryControl.importSymbol" )
254 .Scope( AS_GLOBAL )
255 .FriendlyName( _( "Import Symbol..." ) )
256 .Tooltip( _( "Import a symbol to the current library" ) )
257 .Icon( BITMAPS::import_part ) );
258
260 .Name( "eeschema.SymbolLibraryControl.exportSymbol" )
261 .Scope( AS_GLOBAL )
262 .FriendlyName( _( "Export..." ) )
263 .Tooltip( _( "Export a symbol to a new library file" ) )
264 .Icon( BITMAPS::export_part ) );
265
267 .Name( "eeschema.SymbolLibraryControl.updateSymbolFields" )
268 .Scope( AS_GLOBAL )
269 .FriendlyName( _( "Update Symbol Fields..." ) )
270 .Tooltip( _( "Update symbol to match changes made in parent symbol" ) )
271 .Icon( BITMAPS::refresh ) );
272
274 .Name( "eeschema.SymbolLibraryControl.flattenSymbol" )
275 .Scope( AS_GLOBAL )
276 .FriendlyName( _( "Flatten Symbol" ) )
277 .Tooltip( _( "Remove inheritance from symbol" ) ) );
278
280 .Name( "eeschema.SymbolLibraryControl.addSymbolToSchematic" )
281 .Scope( AS_GLOBAL )
282 .FriendlyName( _( "Add Symbol to Schematic" ) )
283 .Tooltip( _( "Add the current symbol to the schematic" ) )
285
287 .Name( "eeschema.SymbolLibraryControl.showElectricalTypes" )
288 .Scope( AS_GLOBAL )
289 .FriendlyName( _( "Show Pin Electrical Types" ) )
290 .Tooltip( _( "Annotate pins with their electrical types" ) )
291 .ToolbarState( TOOLBAR_STATE::TOGGLE )
292 .Icon( BITMAPS::pin_show_etype ) );
293
295 .Name( "eeschema.SymbolLibraryControl.showPinNumbers" )
296 .Scope( AS_GLOBAL )
297 .FriendlyName( _( "Show Pin Numbers" ) )
298 .Tooltip( _( "Annotate pins with their numbers" ) )
299 .ToolbarState( TOOLBAR_STATE::TOGGLE )
300 .Icon( BITMAPS::pin ) );
301
303 .Name( "eeschema.SymbolLibraryControl.exportSymbolView" )
304 .Scope( AS_GLOBAL )
305 .FriendlyName( _( "Export View as PNG..." ) )
306 .Tooltip( _( "Create PNG file from the current view" ) )
307 .Icon( BITMAPS::export_png ) );
308
310 .Name( "eeschema.SymbolLibraryControl.exportSymbolAsSVG" )
311 .Scope( AS_GLOBAL )
312 .FriendlyName( _( "Export Symbol as SVG..." ) )
313 .Tooltip( _( "Create SVG file from the current symbol" ) )
314 .Icon( BITMAPS::export_svg ) );
315
317 .Name( "eeschema.SymbolLibraryControl.toggleSyncedPinsMode" )
318 .Scope( AS_GLOBAL )
319 .FriendlyName( _( "Synchronized Pins Mode" ) )
320 .Tooltip( _( "Synchronized Pins Mode\n"
321 "When enabled propagates all changes (except pin numbers) to other units.\n"
322 "Enabled by default for multiunit parts with interchangeable units." ) )
323 .ToolbarState( TOOLBAR_STATE::TOGGLE )
324 .Icon( BITMAPS::pin2pin ) );
325
327 .Name( "eeschema.SymbolLibraryControl.showHiddenPins" )
328 .Scope( AS_GLOBAL )
329 .FriendlyName( _( "Show Hidden Pins" ) )
330 .ToolbarState( TOOLBAR_STATE::TOGGLE )
331 .Icon( BITMAPS::hidden_pin ) );
332
334 .Name( "eeschema.SymbolLibraryControl.showHiddenFields" )
335 .Scope( AS_GLOBAL )
336 .FriendlyName( _( "Show Hidden Fields" ) )
337 .ToolbarState( TOOLBAR_STATE::TOGGLE )
338 .Icon( BITMAPS::text_sketch ) );
339
340
341// SYMBOL_EDITOR_DRAWING_TOOLS
342//
344 .Name( "eeschema.SymbolDrawing.placeSymbolPin" )
345 .Scope( AS_GLOBAL )
346 .DefaultHotkey( 'P' )
347 .LegacyHotkeyName( "Create Pin" )
348 .FriendlyName( _( "Draw Pins" ) )
349 .ToolbarState( TOOLBAR_STATE::TOGGLE )
350 .Icon( BITMAPS::pin )
351 .Flags( AF_ACTIVATE )
352 .Parameter( SCH_PIN_T ) );
353
355 .Name( "eeschema.SymbolDrawing.placeSymbolText" )
356 .Scope( AS_GLOBAL )
357 .FriendlyName( _( "Draw Text" ) )
358 .ToolbarState( TOOLBAR_STATE::TOGGLE )
359 .Icon( BITMAPS::text )
360 .Flags( AF_ACTIVATE )
361 .Parameter( SCH_TEXT_T ) );
362
364 .Name( "eeschema.SymbolDrawing.drawSymbolTextBox" )
365 .Scope( AS_GLOBAL )
366 .FriendlyName( _( "Draw Text Boxes" ) )
367 .ToolbarState( TOOLBAR_STATE::TOGGLE )
368 .Icon( BITMAPS::add_textbox )
369 .Flags( AF_ACTIVATE ) );
370
372 .Name( "eeschema.SymbolDrawing.drawSymbolLines" )
373 .Scope( AS_GLOBAL )
374 .FriendlyName( _( "Draw Lines" ) )
375 .Tooltip( _( "Draw connected graphic lines" ) )
376 .ToolbarState( TOOLBAR_STATE::TOGGLE )
378 .Flags( AF_ACTIVATE )
379 .Parameter( SHAPE_T::POLY ) );
380
382 .Name( "eeschema.SymbolDrawing.drawSymbolPolygon" )
383 .Scope( AS_GLOBAL )
384 .FriendlyName( _( "Draw Polygons" ) )
385 .ToolbarState( TOOLBAR_STATE::TOGGLE )
387 .Flags( AF_ACTIVATE )
388 .Parameter( SHAPE_T::POLY ) );
389
391 .Name( "eeschema.SymbolDrawing.placeSymbolAnchor" )
392 .Scope( AS_GLOBAL )
393 .FriendlyName( _( "Move Symbol Anchor" ) )
394 .ToolbarState( TOOLBAR_STATE::TOGGLE )
395 .Icon( BITMAPS::anchor )
396 .Flags( AF_ACTIVATE ) );
397
398// SYMBOL_EDITOR_PIN_TOOL
399//
401 .Name( "eeschema.PinEditing.pushPinLength" )
402 .Scope( AS_GLOBAL )
403 .FriendlyName( _( "Push Pin Length" ) )
404 .Tooltip( _( "Copy pin length to other pins in symbol" ) )
405 .Icon( BITMAPS::pin_size_to ) );
406
408 .Name( "eeschema.PinEditing.pushPinNameSize" )
409 .Scope( AS_GLOBAL )
410 .FriendlyName( _( "Push Pin Name Size" ) )
411 .Tooltip( _( "Copy pin name size to other pins in symbol" ) )
412 .Icon( BITMAPS::pin_size_to ) );
413
415 .Name( "eeschema.PinEditing.pushPinNumSize" )
416 .Scope( AS_GLOBAL )
417 .FriendlyName( _( "Push Pin Number Size" ) )
418 .Tooltip( _( "Copy pin number size to other pins in symbol" ) )
419 .Icon( BITMAPS::pin_size_to ) );
420
421
422// SCH_DRAWING_TOOLS
423//
425 .Name( "eeschema.InteractiveDrawing.placeSymbol" )
426 .Scope( AS_GLOBAL )
427 .DefaultHotkey( 'A' )
428 .LegacyHotkeyName( "Add Symbol" )
429 .FriendlyName( _( "Place Symbols" ) )
430 .ToolbarState( TOOLBAR_STATE::TOGGLE )
432 .Flags( AF_ACTIVATE )
433 .Parameter<SCH_ACTIONS::PLACE_SYMBOL_PARAMS>( {} ) );
434
436 .Name( "eeschema.InteractiveDrawing.placeNextSymbolUnit" )
437 .Scope( AS_GLOBAL )
438 .FriendlyName( _( "Place Next Symbol Unit" ) )
439 .Tooltip( _( "Place the next unit of the current symbol that is missing from the schematic" ) )
440 .Flags( AF_ACTIVATE )
441 // The symbol to use as a reference for the next unit and optionally the unit number
442 .Parameter<SCH_ACTIONS::PLACE_SYMBOL_UNIT_PARAMS>( {} ) );
443
445 .Name( "eeschema.InteractiveDrawing.placePowerSymbol" )
446 .Scope( AS_GLOBAL )
447 .DefaultHotkey( 'P' )
448 .LegacyHotkeyName( "Add Power" )
449 .FriendlyName( _( "Place Power Symbols" ) )
450 .ToolbarState( TOOLBAR_STATE::TOGGLE )
451 .Icon( BITMAPS::add_power )
452 .Flags( AF_ACTIVATE )
453 .Parameter<SCH_ACTIONS::PLACE_SYMBOL_PARAMS>( {} ) );
454
456 .Name( "eeschema.InteractiveDrawing.placeDesignBlock" )
457 .Scope( AS_GLOBAL )
458 .DefaultHotkey( MD_SHIFT + 'B' )
459 .FriendlyName( _( "Place Design Block" ) )
460 .Tooltip( _( "Add selected design block to current sheet" ) )
462 .Flags( AF_ACTIVATE )
463 .Parameter<DESIGN_BLOCK*>( nullptr ) );
464
466 .Name( "eeschema.InteractiveDrawing.placeLinkedDesignBlock" )
467 .Scope( AS_GLOBAL )
468 .FriendlyName( _( "Place Linked Design Block" ) )
469 .Tooltip( _( "Place design block linked to selected group" ) )
471 .Flags( AF_ACTIVATE ) );
472
474 .Name( "eeschema.InteractiveDrawing.saveToLinkedDesignBlock" )
475 .Scope( AS_GLOBAL )
476 .FriendlyName( _( "Save to Linked Design Block" ) )
477 .Tooltip( _( "Save selected group to linked design block" ) )
479 .Flags( AF_ACTIVATE ) );
480
481
483 .Name( "eeschema.InteractiveDrawing.placeNoConnect" )
484 .Scope( AS_GLOBAL )
485 .DefaultHotkey( 'Q' )
486 .LegacyHotkeyName( "Add No Connect Flag" )
487 .FriendlyName( _( "Place No Connect Flags" ) )
488 .ToolbarState( TOOLBAR_STATE::TOGGLE )
489 .Icon( BITMAPS::noconn )
490 .Flags( AF_ACTIVATE )
491 .Parameter( SCH_NO_CONNECT_T ) );
492
494 .Name( "eeschema.InteractiveDrawing.placeJunction" )
495 .Scope( AS_GLOBAL )
496 .DefaultHotkey( 'J' )
497 .LegacyHotkeyName( "Add Junction" )
498 .FriendlyName( _( "Place Junctions" ) )
499 .ToolbarState( TOOLBAR_STATE::TOGGLE )
500 .Icon( BITMAPS::add_junction )
501 .Flags( AF_ACTIVATE )
502 .Parameter( SCH_JUNCTION_T ) );
503
505 .Name( "eeschema.InteractiveDrawing.placeBusWireEntry" )
506 .Scope( AS_GLOBAL )
507 .DefaultHotkey( 'Z' )
508 .LegacyHotkeyName( "Add Wire Entry" )
509 .FriendlyName( _( "Place Wire to Bus Entries" ) )
510 .ToolbarState( TOOLBAR_STATE::TOGGLE )
511 .Icon( BITMAPS::add_line2bus )
512 .Flags( AF_ACTIVATE )
513 .Parameter( SCH_BUS_WIRE_ENTRY_T ) );
514
516 .Name( "eeschema.InteractiveDrawing.placeLabel" )
517 .Scope( AS_GLOBAL )
518 .DefaultHotkey( 'L' )
519 .LegacyHotkeyName( "Add Label" )
520 .FriendlyName( _( "Place Net Labels" ) )
521 .ToolbarState( TOOLBAR_STATE::TOGGLE )
522 .Icon( BITMAPS::add_label )
523 .Flags( AF_ACTIVATE ) );
524
526 .Name( "eeschema.InteractiveDrawing.placeClassLabel" )
527 .Scope( AS_GLOBAL )
528 .FriendlyName( _( "Place Directive Labels" ) )
529 .ToolbarState( TOOLBAR_STATE::TOGGLE )
531 .Flags( AF_ACTIVATE ) );
532
534 .Name( "eeschema.InteractiveDrawing.placeHierarchicalLabel" )
535 .Scope( AS_GLOBAL )
536 .DefaultHotkey( 'H' )
537 .LegacyHotkeyName( "Add Hierarchical Label" )
538 .FriendlyName( _( "Place Hierarchical Labels" ) )
539 .ToolbarState( TOOLBAR_STATE::TOGGLE )
541 .Flags( AF_ACTIVATE ) );
542
544 .Name( "eeschema.InteractiveDrawing.drawSheet" )
545 .Scope( AS_GLOBAL )
546 .DefaultHotkey( 'S' )
547 .LegacyHotkeyName( "Add Sheet" )
548 .FriendlyName( _( "Draw Hierarchical Sheets" ) )
549 .ToolbarState( TOOLBAR_STATE::TOGGLE )
551 .Flags( AF_ACTIVATE )
552 .Parameter( SCH_SHEET_T ) );
553
555 .Name( "eeschema.InteractiveDrawing.drawSheetFromFile" )
556 .Scope( AS_GLOBAL )
557 .FriendlyName( _( "Draw Sheet from File" ) )
558 .Tooltip( _( "Copy sheet into project and draw on current sheet" ) )
560 .Flags( AF_ACTIVATE )
561 .Parameter<wxString*> ( nullptr ) );
562
564 .Name( "eeschema.InteractiveDrawing.drawSheetFromDesignBlock" )
565 .Scope( AS_GLOBAL )
566 .FriendlyName( _( "Draw Sheet from Design Block" ) )
567 .Tooltip( _( "Copy design block into project as a sheet on current sheet" ) )
569 .Flags( AF_ACTIVATE )
570 .Parameter<DESIGN_BLOCK*> ( nullptr ) );
571
573 .Name( "eeschema.InteractiveDrawing.placeSheetPin" )
574 .Scope( AS_GLOBAL )
575 .FriendlyName( _( "Place Pins from Sheet" ) )
576 .Tooltip( _( "Add sheet pins from existing hierarchical labels found on that sheet" ) )
577 .ToolbarState( TOOLBAR_STATE::TOGGLE )
579 .Flags( AF_ACTIVATE ) );
580
582 .Name( "eeschema.InteractiveDrawing.autoplaceAllSheetPins" )
583 .Scope( AS_GLOBAL )
584 .FriendlyName( _( "Autoplace All Sheet Pins" ) )
585 .Tooltip( _( "Imports and auto places all sheet pins" ) ) );
586
588 .Name( "eeschema.InteractiveDrawing.syncSheetPins" )
589 .Scope( AS_GLOBAL )
590 .FriendlyName( _( "Sync Sheet Pins..." ) )
591 .Tooltip( _( "Synchronize sheet pins and hierarchical labels" ) )
593 .Flags( AF_ACTIVATE ) );
594
596 .Name( "eeschema.InteractiveDrawing.syncAllSheetsPins" )
597 .Scope( AS_GLOBAL )
598 .FriendlyName( _( "Sync Sheet Pins..." ) )
599 .Tooltip( _( "Synchronize sheet pins and hierarchical labels" ) )
601 .Flags( AF_ACTIVATE ) );
602
604 .Name( "eeschema.InteractiveDrawing.importSheet" )
605 .Scope( AS_GLOBAL )
606 .FriendlyName( _( "Import Sheet..." ) )
607 .Tooltip( _( "Import sheet into project" ) )
609 .Flags( AF_ACTIVATE )
610 .Parameter<wxString*> ( nullptr ) );
611
613 .Name( "eeschema.InteractiveDrawing.placeGlobalLabel" )
614 .Scope( AS_GLOBAL )
615 .DefaultHotkey( MD_CTRL + 'L' )
616 .LegacyHotkeyName( "Add Global Label" )
617 .FriendlyName( _( "Place Global Labels" ) )
618 .ToolbarState( TOOLBAR_STATE::TOGGLE )
619 .Icon( BITMAPS::add_glabel )
620 .Flags( AF_ACTIVATE ) );
621
623 .Name( "eeschema.InteractiveDrawing.placeSchematicText" )
624 .Scope( AS_GLOBAL )
625 .DefaultHotkey( 'T' )
626 .LegacyHotkeyName( "Add Graphic Text" )
627 .FriendlyName( _( "Draw Text" ) )
628 .ToolbarState( TOOLBAR_STATE::TOGGLE )
629 .Icon( BITMAPS::text )
630 .Flags( AF_ACTIVATE ) );
631
633 .Name( "eeschema.InteractiveDrawing.drawTextBox" )
634 .Scope( AS_GLOBAL )
635 .FriendlyName( _( "Draw Text Boxes" ) )
636 .ToolbarState( TOOLBAR_STATE::TOGGLE )
637 .Icon( BITMAPS::add_textbox )
638 .Flags( AF_ACTIVATE )
639 .Parameter( SHAPE_T::RECTANGLE ) );
640
642 .Name( "eeschema.InteractiveDrawing.drawTable" )
643 .Scope( AS_GLOBAL )
644 .FriendlyName( _( "Draw Tables" ) )
645 .ToolbarState( TOOLBAR_STATE::TOGGLE )
646 .Icon( BITMAPS::table )
647 .Flags( AF_ACTIVATE ) );
648
650 .Name( "eeschema.InteractiveDrawing.drawRectangle" )
651 .Scope( AS_GLOBAL )
652 .FriendlyName( _( "Draw Rectangles" ) )
653 .ToolbarState( TOOLBAR_STATE::TOGGLE )
655 .Flags( AF_ACTIVATE )
656 .Parameter( SHAPE_T::RECTANGLE ) );
657
659 .Name( "eeschema.InteractiveDrawing.drawCircle" )
660 .Scope( AS_GLOBAL )
661 .FriendlyName( _( "Draw Circles" ) )
662 .ToolbarState( TOOLBAR_STATE::TOGGLE )
663 .Icon( BITMAPS::add_circle )
664 .Flags( AF_ACTIVATE )
665 .Parameter( SHAPE_T::CIRCLE ) );
666
668 .Name( "eeschema.InteractiveDrawing.drawArc" )
669 .Scope( AS_GLOBAL )
670 .FriendlyName( _( "Draw Arcs" ) )
671 .ToolbarState( TOOLBAR_STATE::TOGGLE )
672 .Icon( BITMAPS::add_arc )
673 .Flags( AF_ACTIVATE )
674 .Parameter( SHAPE_T::ARC ) );
675
677 .Name( "eeschema.InteractiveDrawing.drawBezier" )
678 .Scope( AS_GLOBAL )
679 .FriendlyName( _( "Draw Bezier Curve" ) )
680 .ToolbarState( TOOLBAR_STATE::TOGGLE )
681 .Icon( BITMAPS::add_bezier )
682 .Flags( AF_ACTIVATE )
683 .Parameter( SHAPE_T::BEZIER ) );
684
686 .Name( "eeschema.InteractiveDrawing.placeImage" )
687 .Scope( AS_GLOBAL )
688 .FriendlyName( _( "Place Images" ) )
689 .ToolbarState( TOOLBAR_STATE::TOGGLE )
690 .Icon( BITMAPS::image )
691 .Flags( AF_ACTIVATE )
692 .Parameter<SCH_BITMAP*>( nullptr ) );
693
695 .Name( "eeschema.InteractiveDrawing.drawRuleArea" )
696 .Scope( AS_GLOBAL )
697 .FriendlyName( _( "Draw Rule Areas" ) )
698 .ToolbarState( TOOLBAR_STATE::TOGGLE )
700 .Flags( AF_ACTIVATE )
701 .Parameter( SHAPE_T::RECTANGLE ) );
702
704 .Name( "eeschema.InteractiveDrawing.deleteLastPoint" )
705 .Scope( AS_CONTEXT )
706 .FriendlyName( _( "Delete Last Point" ) )
707 .Tooltip( _( "Delete the last point added to the current item" ) )
708 .Icon( BITMAPS::undo ) );
709
711 .Name( "eeschema.InteractiveDrawing.closeOutline" )
712 .Scope( AS_CONTEXT )
713 .FriendlyName( _( "Close Outline" ) )
714 .Tooltip( _( "Close the in-progress outline" ) )
715 .Icon( BITMAPS::checked_ok ) );
716
717
718// SCH_EDIT_TOOL
719//
721 .Name( "eeschema.InteractiveEdit.repeatDrawItem" )
722 .Scope( AS_GLOBAL )
723#ifdef __WXMAC__
724 .DefaultHotkey( WXK_F1 )
725#else
726 .DefaultHotkey( WXK_INSERT )
727#endif
728 .LegacyHotkeyName( "Repeat Last Item" )
729 .FriendlyName( _( "Repeat Last Item" ) )
730 .Tooltip( _( "Duplicates the last drawn item" ) ) );
731
733 .Name( "eeschema.InteractiveEdit.rotateCW" )
734 .Scope( AS_GLOBAL )
735 .DefaultHotkey( MD_SHIFT + 'R' )
736 .FriendlyName( _( "Rotate Clockwise" ) )
737 .Icon( BITMAPS::rotate_cw ) );
738
740 .Name( "eeschema.InteractiveEdit.rotateCCW" )
741 .Scope( AS_GLOBAL )
742 .DefaultHotkey( 'R' )
743 .LegacyHotkeyName( "Rotate Item" )
744 .FriendlyName( _( "Rotate Counterclockwise" ) )
745 .Icon( BITMAPS::rotate_ccw ) );
746
748 .Name( "eeschema.InteractiveEdit.mirrorV" )
749 .Scope( AS_GLOBAL )
750 .DefaultHotkey( 'Y' )
751 .LegacyHotkeyName( "Mirror X" ) // Yes, these were backwards prior to 6.0....
752 .FriendlyName( _( "Mirror Vertically" ) )
753 .Tooltip( _( "Flips selected item(s) from top to bottom" ) )
754 .Icon( BITMAPS::mirror_v ) );
755
757 .Name( "eeschema.InteractiveEdit.mirrorH" )
758 .Scope( AS_GLOBAL )
759 .DefaultHotkey( 'X' )
760 .LegacyHotkeyName( "Mirror Y" ) // Yes, these were backwards prior to 6.0....
761 .FriendlyName( _( "Mirror Horizontally" ) )
762 .Tooltip( _( "Flips selected item(s) from left to right" ) )
763 .Icon( BITMAPS::mirror_h ) );
764
766 .Name( "eeschema.InteractiveEdit.swap" )
767 .Scope( AS_GLOBAL )
768 .DefaultHotkey( MD_ALT + 'S' )
769 .FriendlyName( _( "Swap" ) )
770 .Tooltip( _( "Swap positions of selected items" ) )
771 .Icon( BITMAPS::swap ) );
772
773// Separate action so "real" pin swaps are not conflated with the generic position swap.
775 .Name( "eeschema.InteractiveEdit.swapPins" )
776 .Scope( AS_GLOBAL )
777 .FriendlyName( _( "Swap Pins" ) )
778 .Tooltip( _( "Swap the selected symbol pins' positions" ) )
779 .Icon( BITMAPS::swap ) );
780
782 .Name( "eeschema.InteractiveEdit.swapPinLabels" )
783 .Scope( AS_GLOBAL )
784 .FriendlyName( _( "Swap Pin Labels" ) )
785 .Tooltip( _( "Swap the labels attached to selected pins" ) )
786 .Icon( BITMAPS::swap ) );
787
789 .Name( "eeschema.InteractiveEdit.swapUnitLabels" )
790 .Scope( AS_GLOBAL )
791 .FriendlyName( _( "Swap Unit Labels" ) )
792 .Tooltip( _( "Swap labels between selected units" ) )
793 .Icon( BITMAPS::swap ) );
794
796 .Name( "eeschema.InteractiveEdit.properties" )
797 .Scope( AS_GLOBAL )
798 .DefaultHotkey( 'E' )
799 .LegacyHotkeyName( "Edit Item" )
800 .FriendlyName( _( "Properties..." ) )
801 .Icon( BITMAPS::edit ) );
802
804 .Name( "eeschema.InteractiveEdit.editReference" )
805 .Scope( AS_GLOBAL )
806 .DefaultHotkey( 'U' )
807 .LegacyHotkeyName( "Edit Symbol Reference" )
808 .FriendlyName( _( "Edit Reference Designator..." ) )
809 .Icon( BITMAPS::edit_comp_ref ) );
810
812 .Name( "eeschema.InteractiveEdit.editValue" )
813 .Scope( AS_GLOBAL )
814 .DefaultHotkey( 'V' )
815 .LegacyHotkeyName( "Edit Symbol Value" )
816 .FriendlyName( _( "Edit Value..." ) )
817 .Icon( BITMAPS::edit_comp_value ) );
818
820 .Name( "eeschema.InteractiveEdit.editFootprint" )
821 .Scope( AS_GLOBAL )
822 .DefaultHotkey( 'F' )
823 .LegacyHotkeyName( "Edit Symbol Footprint" )
824 .FriendlyName( _( "Edit Footprint..." ) )
826
828 .Name( "eeschema.InteractiveEdit.autoplaceFields" )
829 .Scope( AS_GLOBAL )
830 .DefaultHotkey( 'O' )
831 .LegacyHotkeyName( "Autoplace Fields" )
832 .FriendlyName( _( "Autoplace Fields" ) )
833 .Tooltip( _( "Runs the automatic placement algorithm on the symbol's (or sheet's) fields" ) )
834 .Icon( BITMAPS::autoplace_fields ) );
835
837 .Name( "eeschema.InteractiveEdit.changeSymbols" )
838 .Scope( AS_GLOBAL )
839 .FriendlyName( _( "Change Symbols..." ) )
840 .Tooltip( _( "Assign different symbols from the library" ) )
841 .Icon( BITMAPS::exchange ) );
842
844 .Name( "eeschema.InteractiveEdit.updateSymbols" )
845 .Scope( AS_GLOBAL )
846 .FriendlyName( _( "Update Symbols from Library..." ) )
847 .Tooltip( _( "Update symbols to include any changes from the library" ) )
848 .Icon( BITMAPS::refresh ) );
849
851 .Name( "eeschema.InteractiveEdit.changeSymbol" )
852 .Scope( AS_GLOBAL )
853 .FriendlyName( _( "Change Symbol..." ) )
854 .Tooltip( _( "Assign a different symbol from the library" ) )
855 .Icon( BITMAPS::exchange ) );
856
858 .Name( "eeschema.InteractiveEdit.updateSymbol" )
859 .Scope( AS_GLOBAL )
860 .FriendlyName( _( "Update Symbol..." ) )
861 .Tooltip( _( "Update symbol to include any changes from the library" ) )
862 .Icon( BITMAPS::refresh ) );
863
865 .Name( "eeschema.InteractiveEdit.assignNetclass" )
866 .Scope( AS_GLOBAL )
867 .FriendlyName( _( "Assign Netclass..." ) )
868 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
869 .Icon( BITMAPS::netlist ) );
870
872 .Name( "eeschema.InteractiveEdit.findNetInInspector" )
873 .Scope( AS_GLOBAL )
874 .FriendlyName( _( "Find in Net Navigator" ) )
875 .Tooltip( _( "Locate the selected net in the net navigator" ) ) );
876
878 .Name( "eeschema.InteractiveEdit.toggleDeMorgan" )
879 .Scope( AS_GLOBAL )
880 .FriendlyName( _( "Cycle Body Style" ) )
881 .Tooltip( _( "Switch between De Morgan (or other) representations" ) )
882 .Icon( BITMAPS::morgan2 ) );
883
885 .Name( "eeschema.InteractiveEdit.toLabel" )
886 .Scope( AS_GLOBAL )
887 .FriendlyName( _( "Change to Label" ) )
888 .Tooltip( _( "Change existing item to a label" ) )
890 .Flags( AF_NONE )
891 .Parameter( SCH_LABEL_T ) );
892
894 .Name( "eeschema.InteractiveEdit.toCLabel" ) // Old name based on netClass label.
895 // There's no sense losing hotkey assignments, so we
896 // leave it as-is)
897 .Scope( AS_GLOBAL )
898 .FriendlyName( _( "Change to Directive Label" ) )
899 .Tooltip( _( "Change existing item to a directive label" ) )
901 .Flags( AF_NONE )
902 .Parameter( SCH_DIRECTIVE_LABEL_T ) );
903
905 .Name( "eeschema.InteractiveEdit.toHLabel" )
906 .Scope( AS_GLOBAL )
907 .FriendlyName( _( "Change to Hierarchical Label" ) )
908 .Tooltip( _( "Change existing item to a hierarchical label" ) )
910 .Flags( AF_NONE )
911 .Parameter( SCH_HIER_LABEL_T ) );
912
914 .Name( "eeschema.InteractiveEdit.toGLabel" )
915 .Scope( AS_GLOBAL )
916 .FriendlyName( _( "Change to Global Label" ) )
917 .Tooltip( _( "Change existing item to a global label" ) )
918 .Icon( BITMAPS::add_glabel )
919 .Flags( AF_NONE )
920 .Parameter( SCH_GLOBAL_LABEL_T ) );
921
923 .Name( "eeschema.InteractiveEdit.toText" )
924 .Scope( AS_GLOBAL )
925 .FriendlyName( _( "Change to Text" ) )
926 .Tooltip( _( "Change existing item to a text comment" ) )
927 .Icon( BITMAPS::text )
928 .Flags( AF_NONE )
929 .Parameter( SCH_TEXT_T ) );
930
932 .Name( "eeschema.InteractiveEdit.toTextBox" )
933 .Scope( AS_GLOBAL )
934 .FriendlyName( _( "Change to Text Box" ) )
935 .Tooltip( _( "Change existing item to a text box" ) )
936 .Icon( BITMAPS::add_textbox )
937 .Flags( AF_NONE )
938 .Parameter( SCH_TEXTBOX_T ) );
939
941 .Name( "eeschema.InteractiveEdit.cleanupSheetPins" )
942 .Scope( AS_GLOBAL )
943 .FriendlyName( _( "Cleanup Sheet Pins" ) )
944 .Tooltip( _( "Delete unreferenced sheet pins" ) ) );
945
947 .Name( "eeschema.InteractiveEdit.editTextAndGraphics" )
948 .Scope( AS_GLOBAL )
949 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
950 .Tooltip( _( "Edit text and graphics properties globally across schematic" ) )
951 .Icon( BITMAPS::text ) );
952
954 .Name( "eeschema.InteractiveEdit.symbolProperties" )
955 .Scope( AS_GLOBAL )
956 .FriendlyName( _( "Symbol Properties..." ) )
957 .Icon( BITMAPS::part_properties ) );
958
960 .Name( "eeschema.InteractiveEdit.pinTable" )
961 .Scope( AS_GLOBAL )
962 .FriendlyName( _( "Pin Table..." ) )
963 .Tooltip( _( "Displays pin table for bulk editing of pins" ) )
964 .Icon( BITMAPS::pin_table ) );
965
967 .Name( "eeschema.InteractiveEdit.convertStackedPins" )
968 .Scope( AS_GLOBAL )
969 .FriendlyName( _( "Convert Stacked Pins" ) )
970 .Tooltip( _( "Convert multiple pins at the same location to a single pin with stacked notation" ) )
971 .Icon( BITMAPS::pin ) );
972
974 .Name( "eeschema.InteractiveEdit.explodeStackedPin" )
975 .Scope( AS_GLOBAL )
976 .FriendlyName( _( "Explode Stacked Pin" ) )
977 .Tooltip( _( "Convert a pin with stacked notation to multiple individual pins" ) )
978 .Icon( BITMAPS::pin ) );
979
981 .Name( "eeschema.InteractiveEdit.breakWire" )
982 .Scope( AS_GLOBAL )
983 .FriendlyName( _( "Break" ) )
984 .Tooltip( _( "Divide into connected segments" ) )
985 .Icon( BITMAPS::break_line ) );
986
988 .Name( "eeschema.InteractiveEdit.slice" )
989 .Scope( AS_GLOBAL )
990 .FriendlyName( _( "Slice" ) )
991 .Tooltip( _( "Divide into unconnected segments" ) )
992 .Icon( BITMAPS::slice_line ) );
993
994// SCH_EDITOR_CONTROL
995//
997 .Name( "eeschema.EditorControl.restartMove" )
998 .Scope( AS_GLOBAL ) );
999
1001 .Name( "eeschema.EditorControl.highlightNet" )
1002 .Scope( AS_GLOBAL )
1003 .DefaultHotkey( '`' )
1004 .FriendlyName( _( "Highlight Net" ) )
1005 .Tooltip( _( "Highlight net under cursor" ) )
1007
1009 .Name( "eeschema.EditorControl.clearHighlight" )
1010 .Scope( AS_GLOBAL )
1011 .DefaultHotkey( '~' )
1012 .FriendlyName( _( "Clear Net Highlighting" ) )
1013 .Tooltip( _( "Clear any existing net highlighting" ) ) );
1014
1016 .Name( "eeschema.EditorControl.updateNetHighlighting" )
1017 .Scope( AS_GLOBAL ) );
1018
1020 .Name( "eeschema.EditorControl.highlightNetTool" )
1021 .Scope( AS_GLOBAL )
1022 .FriendlyName( _( "Highlight Nets" ) )
1023 .Tooltip( _( "Highlight wires and pins of a net" ) )
1024 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1026 .Flags( AF_ACTIVATE ) );
1027
1029 .Name( "eeschema.EditorControl.showNetNavigator" )
1030 .Scope( AS_GLOBAL )
1031 .FriendlyName( _( "Net Navigator" ) )
1032 .Tooltip( _( "Show/hide the net navigator" ) ) );
1033
1035 .Name( "eeschema.EditorControl.editWithSymbolEditor" )
1036 .Scope( AS_GLOBAL )
1037 .DefaultHotkey( MD_CTRL + 'E' )
1038 .LegacyHotkeyName( "Edit with Symbol Editor" )
1039 .FriendlyName( _( "Edit with Symbol Editor" ) )
1040 .Tooltip( _( "Open the selected symbol in the Symbol Editor" ) )
1041 .Icon( BITMAPS::libedit ) );
1042
1044 .Name( "eeschema.EditorControl.setExcludeFromBOM" )
1045 .Scope( AS_GLOBAL )
1046 .FriendlyName( _( "Exclude from Bill of Materials" ) )
1047 .Tooltip( _( "Set the exclude from bill of materials attribute" ) ) );
1048
1050 .Name( "eeschema.EditorControl.setExcludeFromSimulation" )
1051 .Scope( AS_GLOBAL )
1052 .FriendlyName( _( "Exclude from Simulation" ) )
1053 .Tooltip( _( "Set the exclude from simulation attribute" ) ) );
1054
1056 .Name( "eeschema.EditorControl.setExcludeFromBoard" )
1057 .Scope( AS_GLOBAL )
1058 .FriendlyName( _( "Exclude from Board" ) )
1059 .Tooltip( _( "Set the exclude from board attribute" ) ) );
1060
1062 .Name( "eeschema.EditorControl.setDNP" )
1063 .Scope( AS_GLOBAL )
1064 .FriendlyName( _( "Do not Populate" ) )
1065 .Tooltip( _( "Set the do not populate attribute" ) ) );
1066
1068 .Name( "eeschema.EditorControl.editLibSymbolWithSymbolEditor" )
1069 .Scope( AS_GLOBAL )
1070 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
1071 .FriendlyName( _( "Edit Library Symbol..." ) )
1072 .Tooltip( _( "Open the library symbol in the Symbol Editor" ) )
1073 .Icon( BITMAPS::libedit ) );
1074
1076 .Name( "eeschema.EditorControl.editSymbolFields" )
1077 .Scope( AS_GLOBAL )
1078 .FriendlyName( _( "Edit Symbol Fields..." ) )
1079 .Tooltip( _( "Bulk-edit fields of all symbols in schematic" ) )
1080 .Icon( BITMAPS::spreadsheet ) );
1081
1083 .Name( "eeschema.EditorControl.editSymbolLibraryLinks" )
1084 .Scope( AS_GLOBAL )
1085 .FriendlyName( _( "Edit Symbol Library Links..." ) )
1086 .Tooltip( _( "Edit links between schematic and library symbols" ) )
1088
1090 .Name( "eeschema.EditorControl.assignFootprints" )
1091 .Scope( AS_GLOBAL )
1092 .FriendlyName( _( "Assign Footprints..." ) )
1093 .Tooltip( _( "Run footprint assignment tool" ) )
1094 .Icon( BITMAPS::icon_cvpcb_24 ) );
1095
1097 .Name( "eeschema.EditorControl.importFPAssignments" )
1098 .Scope( AS_GLOBAL )
1099 .FriendlyName( _( "Import Footprint Assignments..." ) )
1100 .Tooltip( _( "Import symbol footprint assignments from .cmp file created by board editor" ) )
1102
1104 .Name( "eeschema.EditorControl.annotate" )
1105 .Scope( AS_GLOBAL )
1106 .FriendlyName( _( "Annotate Schematic..." ) )
1107 .Tooltip( _( "Fill in schematic symbol reference designators" ) )
1108 .Icon( BITMAPS::annotate ) );
1109
1111 .Name( "eeschema.EditorControl.incrementAnnotations" )
1112 .Scope( AS_GLOBAL )
1113 .FriendlyName( _( "Increment Annotations From..." ) )
1114 .Tooltip( _( "Increment a subset of reference designators starting at a particular symbol" ) )
1116 );
1117
1119 .Name( "eeschema.EditorControl.schematicSetup" )
1120 .Scope( AS_GLOBAL )
1121 .FriendlyName( _( "Schematic Setup..." ) )
1122 .Tooltip( _( "Edit schematic setup including annotation styles and electrical rules" ) )
1123 .Icon( BITMAPS::options_schematic ) );
1124
1126 .Name( "eeschema.EditorControl.editPageNumber" )
1127 .Scope( AS_GLOBAL )
1128 .FriendlyName( _( "Edit Sheet Page Number..." ) )
1129 .Tooltip( _( "Edit the page number of the current or selected sheet" ) ) );
1130
1132 .Name( "eeschema.EditorControl.rescueSymbols" )
1133 .Scope( AS_GLOBAL )
1134 .FriendlyName( _( "Rescue Symbols..." ) )
1135 .Tooltip( _( "Find old symbols in project and rename/rescue them" ) )
1136 .Icon( BITMAPS::rescue ) );
1137
1139 .Name( "eeschema.EditorControl.remapSymbols" )
1140 .Scope( AS_GLOBAL )
1141 .FriendlyName( _( "Remap Legacy Library Symbols..." ) )
1142 .Tooltip( _( "Remap library symbol references in legacy schematics to the symbol library table" ) )
1143 .Icon( BITMAPS::rescue ) );
1144
1146 .Name( "eeschema.EditorControl.nextNetItem" )
1147 .Scope( AS_GLOBAL )
1148 .DefaultHotkey( WXK_TAB )
1149 .FriendlyName( _( "Next Net Item" ) )
1150 .Tooltip( _( "Select next item on the current net" ) ) );
1151
1153 .Name( "eeschema.EditorControl.previousNetItem" )
1154 .Scope( AS_GLOBAL )
1155 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_TAB ) )
1156 .FriendlyName( _( "Previous Net Item" ) )
1157 .Tooltip( _( "Select previous item on the current net" ) ) );
1158
1160 .Name( "eeschema.EditorControl.drawSheetOnClipboard" )
1161 .Scope( AS_GLOBAL )
1162 .FriendlyName( _( "Export Drawing to Clipboard" ) )
1163 .Tooltip( _( "Export drawing of current sheet to clipboard" ) )
1164 .Icon( BITMAPS::copy ) );
1165
1167 .Name( "eeschema.EditorControl.importGraphics" )
1168 .Scope( AS_GLOBAL )
1169 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'F' )
1170 .LegacyHotkeyName( "Place DXF" )
1171 .FriendlyName( _( "Import Graphics..." ) )
1172 .Tooltip( _( "Import 2D drawing file" ) )
1173 .Icon( BITMAPS::import_vector )
1174 .Flags( AF_ACTIVATE ) );
1175
1177 .Name( "eeschema.EditorControl.showPcbNew" )
1178 .Scope( AS_GLOBAL )
1179 .FriendlyName( _( "Switch to PCB Editor" ) )
1180 .Tooltip( _( "Open PCB in board editor" ) )
1181 .Icon( BITMAPS::icon_pcbnew_24 ) );
1182
1184 .Name( "eeschema.EditorControl.exportNetlist" )
1185 .Scope( AS_GLOBAL )
1186 .FriendlyName( _( "Export Netlist..." ) )
1187 .Tooltip( _( "Export file containing netlist in one of several formats" ) )
1188 .Icon( BITMAPS::netlist ) );
1189
1191 .Name( "eeschema.EditorControl.generateBOM" )
1192 .Scope( AS_GLOBAL )
1193 .FriendlyName( _( "Generate Bill of Materials..." ) )
1194 .Tooltip( _( "Generate a bill of materials for the current schematic" ) )
1195 .Icon( BITMAPS::post_bom ) );
1196
1198 .Name( "eeschema.EditorControl.generateBOMLegacy" )
1199 .Scope( AS_GLOBAL )
1200 .FriendlyName( _( "Generate Legacy Bill of Materials..." ) )
1201 .Tooltip( _( "Generate a bill of materials for the current schematic (Legacy Generator)" ) )
1202 .Icon( BITMAPS::file_bom )
1203 );
1204
1206 .Name( "eeschema.EditorControl.generateBOMExternal" )
1207 .Scope( AS_GLOBAL )
1208 .FriendlyName( _( "Generate Bill of Materials (External)..." ) )
1209 .Tooltip( _( "Generate a bill of materials for the current schematic using external generator" ) )
1210 );
1211
1213 .Name( "eeschema.EditorControl.exportSymbolsToLibrary" )
1214 .Scope( AS_GLOBAL )
1215 .FriendlyName( _( "Export Symbols..." ) )
1216 .Tooltip( _( "Add symbols from schematic to a new or an existing symbol library\n"
1217 "(does not remove other symbols from this library)" ) )
1218 .Icon( BITMAPS::library_archive ) );
1219
1221 .Name( "eeschema.EditorControl.selectOnPCB" )
1222 .Scope( AS_GLOBAL )
1223 .FriendlyName( _( "Select on PCB" ) )
1224 .Tooltip( _( "Select corresponding items in PCB editor" ) )
1225 .Icon( BITMAPS::select_same_sheet ) );
1226
1228 .Name( "eeschema.EditorControl.showHiddenPins" )
1229 .Scope( AS_GLOBAL )
1230 .FriendlyName( _( "Show Hidden Pins" ) )
1231 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1232 .Icon( BITMAPS::hidden_pin ) );
1233
1235 .Name( "eeschema.EditorControl.showHiddenFields" )
1236 .Scope( AS_GLOBAL )
1237 .FriendlyName( _( "Show Hidden Fields" ) )
1238 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1239
1241 .Name( "eeschema.EditorControl.showDirectiveLabels" )
1242 .Scope( AS_GLOBAL )
1243 .FriendlyName( _( "Show Directive Labels" ) )
1244 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1245
1247 .Name( "eeschema.EditorControl.showERCWarnings" )
1248 .Scope( AS_GLOBAL )
1249 .FriendlyName( _( "Show ERC Warnings" ) )
1250 .Tooltip( _( "Show markers for electrical rules checker warnings" ) )
1251 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1252
1254 .Name( "eeschema.EditorControl.showERCErrors" )
1255 .Scope( AS_GLOBAL )
1256 .FriendlyName( _( "Show ERC Errors" ) )
1257 .Tooltip( _( "Show markers for electrical rules checker errors" ) )
1258 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1259
1261 .Name( "eeschema.EditorControl.showERCExclusions" )
1262 .Scope( AS_GLOBAL )
1263 .FriendlyName( _( "Show ERC Exclusions" ) )
1264 .Tooltip( _( "Show markers for excluded electrical rules checker violations" ) )
1265 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1266
1268 .Name( "eeschema.EditorControl.markSimExclusions" )
1269 .Scope( AS_GLOBAL )
1270 .FriendlyName( _( "Mark items excluded from simulation" ) )
1271 .Tooltip( _( "Draw 'X's over items which have been excluded from simulation" ) )
1272 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1273
1275 .Name( "eeschema.EditorControl.showOperatingPointVoltages" )
1276 .Scope( AS_GLOBAL )
1277 .FriendlyName( _( "Show OP Voltages" ) )
1278 .Tooltip( _( "Show operating point voltage data from simulation" ) )
1279 .ToolbarState( TOOLBAR_STATE::TOGGLE ));
1280
1282 .Name( "eeschema.EditorControl.showOperatingPointCurrents" )
1283 .Scope( AS_GLOBAL )
1284 .FriendlyName( _( "Show OP Currents" ) )
1285 .Tooltip( _( "Show operating point current data from simulation" ) )
1286 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1287
1289 .Name( "eeschema.EditorControl.togglePinAltIcons" )
1290 .Scope( AS_GLOBAL )
1291 .FriendlyName( _( "Show Pin Alternate Icons" ) )
1292 .Tooltip( _( "Show indicator icons for pins with alternate modes" ) )
1293 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1294
1296 .Name( "eeschema.EditorControl.lineModeFree" )
1297 .Scope( AS_GLOBAL )
1298 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1299 .Tooltip( _( "Draw and drag at any angle" ) )
1300 .Icon( BITMAPS::lines_any )
1301 .Flags( AF_NONE )
1302 .Parameter( LINE_MODE::LINE_MODE_FREE ) );
1303
1305 .Name( "eeschema.EditorControl.lineModeOrthonal" )
1306 .Scope( AS_GLOBAL )
1307 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1308 .Tooltip( _( "Constrain drawing and dragging to horizontal or vertical motions" ) )
1309 .Icon( BITMAPS::lines90 )
1310 .Flags( AF_NONE )
1311 .Parameter( LINE_MODE::LINE_MODE_90) );
1312
1314 .Name( "eeschema.EditorControl.lineMode45" )
1315 .Scope( AS_GLOBAL )
1316 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1317 .Tooltip( _( "Constrain drawing and dragging to horizontal, vertical, or 45-degree angle motions" ) )
1318 .Icon( BITMAPS::hv45mode )
1319 .Flags( AF_NONE )
1320 .Parameter( LINE_MODE::LINE_MODE_45 ) );
1321
1323 .Name( "eeschema.EditorControl.lineModeNext" )
1324 .Scope( AS_GLOBAL )
1325 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_SPACE ) )
1326 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1327 .Tooltip( _( "Switch to next angle snapping mode" ) ) );
1328
1330 .Name( "eeschema.EditorControl.angleSnapModeChanged" )
1331 .Scope( AS_GLOBAL )
1332 .Flags( AF_NOTIFY ) );
1333
1335 .Name( "eeschema.EditorControl.annotateAutomatically" )
1336 .Scope( AS_GLOBAL )
1337 .FriendlyName( _( "Annotate Automatically" ) )
1338 .Tooltip( _( "Toggle automatic annotation of new symbols" ) )
1339 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1340 .Icon( BITMAPS::annotate ) );
1341
1343 .Name( "eeschema.EditorControl.repairSchematic" )
1344 .Scope( AS_GLOBAL )
1345 .FriendlyName( _( "Repair Schematic" ) )
1346 .Tooltip( _( "Run various diagnostics and attempt to repair schematic" ) )
1347 .Icon( BITMAPS::rescue ) );
1348
1350 .Name( "eeschema.EditorControl.previousUnit" )
1351 .Scope( AS_GLOBAL )
1352 .FriendlyName( _( "Previous Symbol Unit" ) )
1353 .Tooltip( _( "Open the previous unit of the symbol" ) )
1354 .Parameter<int>( -1 ) );
1355
1357 .Name( "eeschema.EditorControl.nextUnit" )
1358 .Scope( AS_GLOBAL )
1359 .FriendlyName( _( "Next Symbol Unit" ) )
1360 .Tooltip( _( "Open the next unit of the symbol" ) )
1361 .Parameter<int>( 1 ) );
1362
1363// SCH_NAVIGATE_TOOL
1364//
1366 .Name( "eeschema.NavigateTool.changeSheet" )
1367 .Scope( AS_CONTEXT )
1368 .FriendlyName( _( "Change Sheet" ) )
1369 .Tooltip( _( "Change to provided sheet's contents in the schematic editor" ) )
1370 .Icon( BITMAPS::enter_sheet ) );
1371
1373 .Name( "eeschema.NavigateTool.enterSheet" )
1374 .Scope( AS_GLOBAL )
1375 .FriendlyName( _( "Enter Sheet" ) )
1376 .Tooltip( _( "Display the selected sheet's contents in the schematic editor" ) )
1377 .Icon( BITMAPS::enter_sheet ) );
1378
1380 .Name( "eeschema.NavigateTool.leaveSheet" )
1381 .Scope( AS_GLOBAL )
1382 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_BACK ) )
1383 .LegacyHotkeyName( "Leave Sheet" )
1384 .FriendlyName( _( "Leave Sheet" ) )
1385 .Tooltip( _( "Display the parent sheet in the schematic editor" ) )
1386 .Icon( BITMAPS::leave_sheet ) );
1387
1389 .Name( "eeschema.NavigateTool.up" )
1390 .Scope( AS_GLOBAL )
1391 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_UP ) )
1392 .FriendlyName( _( "Navigate Up" ) )
1393 .Tooltip( _( "Navigate up one sheet in the hierarchy" ) )
1394 .Icon( BITMAPS::up ) );
1395
1397 .Name( "eeschema.NavigateTool.back" )
1398 .Scope( AS_GLOBAL )
1399 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_LEFT ) )
1400 .FriendlyName( _( "Navigate Back" ) )
1401 .Tooltip( _( "Move backward in sheet navigation history" ) )
1402 .Icon( BITMAPS::left ) );
1403
1405 .Name( "eeschema.NavigateTool.forward" )
1406 .Scope( AS_GLOBAL )
1407 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_RIGHT ) )
1408 .FriendlyName( _( "Navigate Forward" ) )
1409 .Tooltip( _( "Move forward in sheet navigation history" ) )
1410 .Icon( BITMAPS::right ) );
1411
1413 .Name( "eeschema.NavigateTool.previous" )
1414 .Scope( AS_GLOBAL )
1415 .DefaultHotkey( WXK_PAGEUP )
1416 .FriendlyName( _( "Previous Sheet" ) )
1417 .Tooltip( _( "Move to previous sheet by number" ) )
1418 .Icon( BITMAPS::left ) );
1419
1421 .Name( "eeschema.NavigateTool.next" )
1422 .Scope( AS_GLOBAL )
1423 .DefaultHotkey( WXK_PAGEDOWN )
1424 .FriendlyName( _( "Next Sheet" ) )
1425 .Tooltip( _( "Move to next sheet by number" ) )
1426 .Icon( BITMAPS::right ) );
1427
1429 .Name( "eeschema.EditorTool.showHierarchy" )
1430 .Scope( AS_GLOBAL )
1431 .DefaultHotkey( MD_CTRL + 'H' )
1432 .FriendlyName( _( "Hierarchy Navigator" ) )
1433 .Tooltip( _( "Show/hide the schematic sheet hierarchy navigator" ) )
1434 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1435 .Icon( BITMAPS::hierarchy_nav ) );
1436
1437
1438// SCH_LINE_WIRE_BUS_TOOL
1439//
1442 .Name( "eeschema.InteractiveDrawingLineWireBus.drawWires" )
1443 .Scope( AS_GLOBAL )
1444 .DefaultHotkey( 'W' )
1445 .LegacyHotkeyName( "Begin Wire" )
1446 .FriendlyName( _( "Draw Wires" ) )
1447 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1448 .Icon( BITMAPS::add_line )
1449 .Flags( AF_ACTIVATE )
1450 .Parameter( &drawWireActionParam ) );
1451
1454 .Name( "eeschema.InteractiveDrawingLineWireBus.drawBuses" )
1455 .Scope( AS_GLOBAL )
1456 .DefaultHotkey( 'B' )
1457 .LegacyHotkeyName( "Begin Bus" )
1458 .FriendlyName( _( "Draw Buses" ) )
1459 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1460 .Icon( BITMAPS::add_bus )
1461 .Flags( AF_ACTIVATE )
1462 .Parameter( &drawBusActionParam ) );
1463
1465 .Name( "eeschema.InteractiveDrawingLineWireBus.unfoldBus" )
1466 .Scope( AS_GLOBAL )
1467 .DefaultHotkey( 'C' )
1468 .LegacyHotkeyName( "Unfold from Bus" )
1469 .FriendlyName( _( "Unfold from Bus" ) )
1470 .Tooltip( _( "Break a wire out of a bus" ) )
1472 .Flags( AF_ACTIVATE )
1473 .Parameter<wxString*>( nullptr ) );
1474
1477 .Name( "eeschema.InteractiveDrawingLineWireBus.drawLines" )
1478 .Scope( AS_GLOBAL )
1479 .DefaultHotkey( 'I' )
1480 .LegacyHotkeyName( "Add Graphic PolyLine" )
1481 .FriendlyName( _( "Draw Lines" ) )
1482 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1484 .Flags( AF_ACTIVATE )
1485 .Parameter( &drawLinesActionParam ) );
1486
1488 .Name( "eeschema.InteractiveDrawingLineWireBus.undoLastSegment")
1489 .Scope( AS_GLOBAL )
1490 .DefaultHotkey( WXK_BACK )
1491 .FriendlyName( _( "Undo Last Segment" ) )
1492 .Tooltip( _( "Walks the current line back one segment." ) )
1493 .Icon( BITMAPS::undo ) );
1494
1496 .Name( "eeschema.InteractiveDrawingLineWireBus.switchPosture" )
1497 .Scope( AS_GLOBAL )
1498 .DefaultHotkey( '/' )
1499 .FriendlyName( _( "Switch Segment Posture" ) )
1500 .Tooltip( _( "Switches posture of the current segment." ) )
1502 .Flags( AF_NONE ) );
1503
1504// SCH_MOVE_TOOL
1505//
1507 .Name( "eeschema.InteractiveMove.move" )
1508 .Scope( AS_GLOBAL )
1509 .DefaultHotkey( 'M' )
1510 .LegacyHotkeyName( "Move Item" )
1511 .FriendlyName( _( "Move" ) )
1512 .Icon( BITMAPS::move )
1513 .Flags( AF_ACTIVATE ) );
1514
1516 .Name( "eeschema.InteractiveMove.drag" )
1517 .Scope( AS_GLOBAL )
1518 .DefaultHotkey( 'G' )
1519 .LegacyHotkeyName( "Drag Item" )
1520 .FriendlyName( _( "Drag" ) )
1521 .Tooltip( _( "Move items while keeping their connections" ) )
1522 .Icon( BITMAPS::drag )
1523 .Flags( AF_ACTIVATE ) );
1524
1526 .Name( "eeschema.AlignToGrid" )
1527 .Scope( AS_GLOBAL )
1528 .FriendlyName( _( "Align Items to Grid" ) )
1530 .Flags( AF_ACTIVATE ) );
1531
1533 .Name( "eeschema.Align.alignTop" )
1534 .Scope( AS_GLOBAL )
1535 .FriendlyName( _( "Align to Top" ) )
1536 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
1538 .Flags( AF_ACTIVATE ) );
1539
1541 .Name( "eeschema.Align.alignBottom" )
1542 .Scope( AS_GLOBAL )
1543 .FriendlyName( _( "Align to Bottom" ) )
1544 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
1546 .Flags( AF_ACTIVATE ) );
1547
1549 .Name( "eeschema.Align.alignLeft" )
1550 .Scope( AS_GLOBAL )
1551 .FriendlyName( _( "Align to Left" ) )
1552 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
1554 .Flags( AF_ACTIVATE ) );
1555
1557 .Name( "eeschema.Align.alignRight" )
1558 .Scope( AS_GLOBAL )
1559 .FriendlyName( _( "Align to Right" ) )
1560 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
1562 .Flags( AF_ACTIVATE ) );
1563
1565 .Name( "eeschema.Align.alignCenterX" )
1566 .Scope( AS_GLOBAL )
1567 .FriendlyName( _( "Align to Horizontal Center" ) )
1568 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
1570 .Flags( AF_ACTIVATE ) );
1571
1573 .Name( "eeschema.Align.alignCenterY" )
1574 .Scope( AS_GLOBAL )
1575 .FriendlyName( _( "Align to Vertical Center" ) )
1576 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
1578 .Flags( AF_ACTIVATE ) );
1579
1580// Schematic editor save copy curr sheet command
1582 .Name( "eeschema.EditorControl.saveCurrSheetCopyAs" )
1583 .Scope( AS_GLOBAL )
1584 .FriendlyName( _( "Save Current Sheet Copy As..." ) )
1585 .Tooltip( _( "Save a copy of the current sheet to another location or name" ) )
1586 .Icon( BITMAPS::save_as ) );
1587
1588// Drag and drop
1590 .Name( "eeschema.EditorControl.ddAppendFile" )
1591 .Scope( AS_GLOBAL ) );
1592
1594 .Name( "eeschema.EditorControl.ddAddImage" )
1595 .Scope( AS_GLOBAL ) );
1596
1598 .Name( "eeschema.EditorControl.ddImportGraphics" )
1599 .Scope( AS_GLOBAL ) );
1600
1601// SIMULATOR
1603 .Name( "eeschema.Simulation.newAnalysisTab" )
1604 .Scope( AS_GLOBAL )
1605 .DefaultHotkey( MD_CTRL + 'N' )
1606 .LegacyHotkeyName( "New" )
1607 .FriendlyName( _( "New Analysis Tab..." ) )
1608 .Tooltip( _( "Create a new tab containing a simulation analysis" ) )
1609 .Icon( BITMAPS::sim_add_plot ) );
1610
1612 .Name( "eeschema.Simulation.openWorkbook" )
1613 .Scope( AS_GLOBAL )
1614 .DefaultHotkey( MD_CTRL + 'O' )
1615 .LegacyHotkeyName( "Open" )
1616 .FriendlyName( _( "Open Workbook..." ) )
1617 .Tooltip( _( "Open a saved set of analysis tabs and settings" ) )
1618 .Icon( BITMAPS::directory_open ) );
1619
1621 .Name( "eeschema.Simulation.saveWorkbook" )
1622 .Scope( AS_GLOBAL )
1623 .DefaultHotkey( MD_CTRL + 'S' )
1624 .LegacyHotkeyName( "Save" )
1625 .FriendlyName( _( "Save Workbook" ) )
1626 .Tooltip( _( "Save the current set of analysis tabs and settings" ) )
1627 .Icon( BITMAPS::save ) );
1628
1630 .Name( "eeschema.Simulation.saveWorkbookAs" )
1631 .Scope( AS_GLOBAL )
1632 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'S' )
1633 .LegacyHotkeyName( "Save As" )
1634 .FriendlyName( _( "Save Workbook As..." ) )
1635 .Tooltip( _( "Save the current set of analysis tabs and settings to another location" ) )
1636 .Icon( BITMAPS::sim_add_signal ) );
1637
1639 .Name( "eeschema.Simulator.exportPNG" )
1640 .Scope( AS_GLOBAL )
1641 .FriendlyName( _( "Export Current Plot as PNG..." ) )
1642 .Icon( BITMAPS::export_png ) );
1643
1645 .Name( "eeschema.Simulator.exportCSV" )
1646 .Scope( AS_GLOBAL )
1647 .FriendlyName( _( "Export Current Plot as CSV..." ) )
1648 .Icon( BITMAPS::export_file ) );
1649
1651 .Name( "eeschema.Simulator.exportToClipboard" )
1652 .Scope( AS_GLOBAL )
1653 .FriendlyName( _( "Export Current Plot to Clipboard" ) )
1654 .Icon( BITMAPS::export_png ) );
1655
1657 .Name( "eeschema.Simulator.exportPlotToSchematic" )
1658 .Scope( AS_GLOBAL )
1659 .FriendlyName( _( "Export Current Plot to Schematic" ) )
1660 .Icon( BITMAPS::export_png ) );
1661
1663 .Name( "eeschema.Simulator.toggleSimSidePanel" )
1664 .Scope( AS_GLOBAL )
1665 .FriendlyName( _( "Show Simulation Side Panel" ) ) );
1666
1668 .Name( "eeschema.Simulator.toggleSimConsole" )
1669 .Scope( AS_GLOBAL )
1670 .FriendlyName( _( "Show Simulation Console Panel" ) ) );
1671
1673 .Name( "eeschema.Simulator.toggleLegend" )
1674 .Scope( AS_GLOBAL )
1675 .FriendlyName( _( "Show Legend" ) )
1676 .Icon( BITMAPS::text ) );
1677
1679 .Name( "eeschema.Simulator.toggleDottedSecondary" )
1680 .Scope( AS_GLOBAL )
1681 .FriendlyName( _( "Dotted Current/Phase" ) )
1682 .Tooltip( _( "Draw secondary signal trace (current or phase) with a dotted line" ) ) );
1683
1685 .Name( "eeschema.Simulator.toggleDarkModePlots" )
1686 .Scope( AS_GLOBAL )
1687 .FriendlyName( _( "Dark Mode Plots" ) )
1688 .Tooltip( _( "Draw plots with a black background" ) ) );
1689
1691 .Name( "eeschema.Simulation.simAnalysisProperties" )
1692 .Scope( AS_GLOBAL )
1693 .FriendlyName( _( "Edit Analysis Tab..." ) )
1694 .Tooltip( _( "Edit the current analysis tab's SPICE command and plot setup" ) )
1695 .Icon( BITMAPS::sim_command ) );
1696
1698 .Name( "eeschema.Simulation.runSimulation" )
1699 .Scope( AS_GLOBAL )
1700 .DefaultHotkey( 'R' )
1701 .FriendlyName( _( "Run Simulation" ) )
1702 .Icon( BITMAPS::sim_run ) );
1703
1705 .Name( "eeschema.Simulation.stopSimulation" )
1706 .Scope( AS_GLOBAL )
1707 .FriendlyName( _( "Stop Simulation" ) )
1708 .Icon( BITMAPS::sim_stop ) );
1709
1711 .Name( "eeschema.Simulation.probe" )
1712 .Scope( AS_GLOBAL )
1713 .DefaultHotkey( MD_SHIFT + 'P' )
1714 .FriendlyName( _( "Probe Schematic..." ) )
1715 .Tooltip( _( "Add a simulator probe" ) )
1716 .Icon( BITMAPS::sim_probe ) );
1717
1719 .Name( "eeschema.Simulation.tune" )
1720 .Scope( AS_GLOBAL )
1721 .DefaultHotkey( MD_SHIFT + 'T' )
1722 .FriendlyName( _( "Add Tuned Value..." ) )
1723 .Tooltip( _( "Select a value to be tuned" ) )
1724 .Icon( BITMAPS::sim_tune ) );
1725
1727 .Name( "eeschema.Simulation.editUserDefinedSignals" )
1728 .Scope( AS_GLOBAL )
1729 .FriendlyName( _( "User-defined Signals..." ) )
1730 .Tooltip( _( "Add, edit or delete user-defined simulation signals" ) )
1731 .Icon( BITMAPS::sim_add_signal ) );
1732
1734 .Name( "eeschema.Simulation.showNetlist" )
1735 .Scope( AS_GLOBAL )
1736 .FriendlyName( _( "Show SPICE Netlist" ) )
1737 .Icon( BITMAPS::netlist ) );
1738
1740 .Name( "eeschema.EditorControl.addVariant" )
1741 .Scope( AS_GLOBAL )
1742 .FriendlyName( _( "Add Variant..." ) )
1743 .Tooltip( _( "Add new variant to the schematic." ) ) );
1744
1746 .Name( "eeschema.EditorControl.removeVariant" )
1747 .Scope( AS_GLOBAL )
1748 .FriendlyName( _( "Remove Variant..." ) )
1749 .Tooltip( _( "Remove an existing variant from the schematic." ) ) );
1750
1751// 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
@ 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 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 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 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 repairSchematic
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 saveSheetToDesignBlock
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 toggleERCErrors
static TOOL_ACTION incrementAnnotations
static TOOL_ACTION placeSymbolAnchor
static TOOL_ACTION navigatePrevious
static TOOL_ACTION saveSelectionToDesignBlock
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 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 setExcludeFromSimulation
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 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