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.saveSheetToDesignBlock" )
150 .Scope( AS_GLOBAL )
151 .FriendlyName( _( "Save Current Sheet to Design Block..." ) )
152 .Tooltip( _( "Add current sheet to design block" ) )
153 .Icon( BITMAPS::save ) );
154
156 .Name( "eeschema.SchDesignBlockControl.saveSelectionToDesignBlock" )
157 .Scope( AS_GLOBAL )
158 .FriendlyName( _( "Save Selection to Design Block..." ) )
159 .Tooltip( _( "Add current selection to design block" ) )
160 .Icon( BITMAPS::save ) );
161
163 .Name( "eeschema.SchDesignBlockControl.saveDeleteDesignBlock" )
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
361
362// SYMBOL_EDITOR_DRAWING_TOOLS
363//
365 .Name( "eeschema.SymbolDrawing.placeSymbolPin" )
366 .Scope( AS_GLOBAL )
367 .DefaultHotkey( 'P' )
368 .LegacyHotkeyName( "Create Pin" )
369 .FriendlyName( _( "Draw Pins" ) )
370 .ToolbarState( TOOLBAR_STATE::TOGGLE )
371 .Icon( BITMAPS::pin )
372 .Flags( AF_ACTIVATE )
373 .Parameter( SCH_PIN_T ) );
374
376 .Name( "eeschema.SymbolDrawing.placeSymbolText" )
377 .Scope( AS_GLOBAL )
378 .FriendlyName( _( "Draw Text" ) )
379 .ToolbarState( TOOLBAR_STATE::TOGGLE )
380 .Icon( BITMAPS::text )
381 .Flags( AF_ACTIVATE )
382 .Parameter( SCH_TEXT_T ) );
383
385 .Name( "eeschema.SymbolDrawing.drawSymbolTextBox" )
386 .Scope( AS_GLOBAL )
387 .FriendlyName( _( "Draw Text Boxes" ) )
388 .ToolbarState( TOOLBAR_STATE::TOGGLE )
389 .Icon( BITMAPS::add_textbox )
390 .Flags( AF_ACTIVATE ) );
391
393 .Name( "eeschema.SymbolDrawing.drawSymbolLines" )
394 .Scope( AS_GLOBAL )
395 .FriendlyName( _( "Draw Lines" ) )
396 .Tooltip( _( "Draw connected graphic lines" ) )
397 .ToolbarState( TOOLBAR_STATE::TOGGLE )
399 .Flags( AF_ACTIVATE )
400 .Parameter( SHAPE_T::POLY ) );
401
403 .Name( "eeschema.SymbolDrawing.drawSymbolPolygon" )
404 .Scope( AS_GLOBAL )
405 .FriendlyName( _( "Draw Polygons" ) )
406 .ToolbarState( TOOLBAR_STATE::TOGGLE )
408 .Flags( AF_ACTIVATE )
409 .Parameter( SHAPE_T::POLY ) );
410
412 .Name( "eeschema.SymbolDrawing.placeSymbolAnchor" )
413 .Scope( AS_GLOBAL )
414 .FriendlyName( _( "Move Symbol Anchor" ) )
415 .ToolbarState( TOOLBAR_STATE::TOGGLE )
416 .Icon( BITMAPS::anchor )
417 .Flags( AF_ACTIVATE ) );
418
419// SYMBOL_EDITOR_PIN_TOOL
420//
422 .Name( "eeschema.PinEditing.pushPinLength" )
423 .Scope( AS_GLOBAL )
424 .FriendlyName( _( "Push Pin Length" ) )
425 .Tooltip( _( "Copy pin length to other pins in symbol" ) )
426 .Icon( BITMAPS::pin_size_to ) );
427
429 .Name( "eeschema.PinEditing.pushPinNameSize" )
430 .Scope( AS_GLOBAL )
431 .FriendlyName( _( "Push Pin Name Size" ) )
432 .Tooltip( _( "Copy pin name size to other pins in symbol" ) )
433 .Icon( BITMAPS::pin_size_to ) );
434
436 .Name( "eeschema.PinEditing.pushPinNumSize" )
437 .Scope( AS_GLOBAL )
438 .FriendlyName( _( "Push Pin Number Size" ) )
439 .Tooltip( _( "Copy pin number size to other pins in symbol" ) )
440 .Icon( BITMAPS::pin_size_to ) );
441
442
443// SCH_DRAWING_TOOLS
444//
446 .Name( "eeschema.InteractiveDrawing.placeSymbol" )
447 .Scope( AS_GLOBAL )
448 .DefaultHotkey( 'A' )
449 .LegacyHotkeyName( "Add Symbol" )
450 .FriendlyName( _( "Place Symbols" ) )
451 .ToolbarState( TOOLBAR_STATE::TOGGLE )
453 .Flags( AF_ACTIVATE )
454 .Parameter<SCH_ACTIONS::PLACE_SYMBOL_PARAMS>( {} ) );
455
457 .Name( "eeschema.InteractiveDrawing.placeNextSymbolUnit" )
458 .Scope( AS_GLOBAL )
459 .FriendlyName( _( "Place Next Symbol Unit" ) )
460 .Tooltip( _( "Place the next unit of the current symbol that is missing from the schematic" ) )
461 .Flags( AF_ACTIVATE )
462 // The symbol to use as a reference for the next unit and optionally the unit number
463 .Parameter<SCH_ACTIONS::PLACE_SYMBOL_UNIT_PARAMS>( {} ) );
464
466 .Name( "eeschema.InteractiveDrawing.placePowerSymbol" )
467 .Scope( AS_GLOBAL )
468 .DefaultHotkey( 'P' )
469 .LegacyHotkeyName( "Add Power" )
470 .FriendlyName( _( "Place Power Symbols" ) )
471 .ToolbarState( TOOLBAR_STATE::TOGGLE )
472 .Icon( BITMAPS::add_power )
473 .Flags( AF_ACTIVATE )
474 .Parameter<SCH_ACTIONS::PLACE_SYMBOL_PARAMS>( {} ) );
475
477 .Name( "eeschema.InteractiveDrawing.placeDesignBlock" )
478 .Scope( AS_GLOBAL )
479 .DefaultHotkey( MD_SHIFT + 'B' )
480 .FriendlyName( _( "Place Design Block" ) )
481 .Tooltip( _( "Add selected design block to current sheet" ) )
483 .Flags( AF_ACTIVATE )
484 .Parameter<DESIGN_BLOCK*>( nullptr ) );
485
487 .Name( "eeschema.InteractiveDrawing.placeLinkedDesignBlock" )
488 .Scope( AS_GLOBAL )
489 .FriendlyName( _( "Place Linked Design Block" ) )
490 .Tooltip( _( "Place design block linked to selected group" ) )
492 .Flags( AF_ACTIVATE ) );
493
495 .Name( "eeschema.InteractiveDrawing.saveToLinkedDesignBlock" )
496 .Scope( AS_GLOBAL )
497 .FriendlyName( _( "Save to Linked Design Block" ) )
498 .Tooltip( _( "Save selected group to linked design block" ) )
500 .Flags( AF_ACTIVATE ) );
501
502
504 .Name( "eeschema.InteractiveDrawing.placeNoConnect" )
505 .Scope( AS_GLOBAL )
506 .DefaultHotkey( 'Q' )
507 .LegacyHotkeyName( "Add No Connect Flag" )
508 .FriendlyName( _( "Place No Connect Flags" ) )
509 .ToolbarState( TOOLBAR_STATE::TOGGLE )
510 .Icon( BITMAPS::noconn )
511 .Flags( AF_ACTIVATE )
512 .Parameter( SCH_NO_CONNECT_T ) );
513
515 .Name( "eeschema.InteractiveDrawing.placeJunction" )
516 .Scope( AS_GLOBAL )
517 .DefaultHotkey( 'J' )
518 .LegacyHotkeyName( "Add Junction" )
519 .FriendlyName( _( "Place Junctions" ) )
520 .ToolbarState( TOOLBAR_STATE::TOGGLE )
521 .Icon( BITMAPS::add_junction )
522 .Flags( AF_ACTIVATE )
523 .Parameter( SCH_JUNCTION_T ) );
524
526 .Name( "eeschema.InteractiveDrawing.placeBusWireEntry" )
527 .Scope( AS_GLOBAL )
528 .DefaultHotkey( 'Z' )
529 .LegacyHotkeyName( "Add Wire Entry" )
530 .FriendlyName( _( "Place Wire to Bus Entries" ) )
531 .ToolbarState( TOOLBAR_STATE::TOGGLE )
532 .Icon( BITMAPS::add_line2bus )
533 .Flags( AF_ACTIVATE )
534 .Parameter( SCH_BUS_WIRE_ENTRY_T ) );
535
537 .Name( "eeschema.InteractiveDrawing.placeLabel" )
538 .Scope( AS_GLOBAL )
539 .DefaultHotkey( 'L' )
540 .LegacyHotkeyName( "Add Label" )
541 .FriendlyName( _( "Place Net Labels" ) )
542 .ToolbarState( TOOLBAR_STATE::TOGGLE )
543 .Icon( BITMAPS::add_label )
544 .Flags( AF_ACTIVATE ) );
545
547 .Name( "eeschema.InteractiveDrawing.placeClassLabel" )
548 .Scope( AS_GLOBAL )
549 .FriendlyName( _( "Place Directive Labels" ) )
550 .ToolbarState( TOOLBAR_STATE::TOGGLE )
552 .Flags( AF_ACTIVATE ) );
553
555 .Name( "eeschema.InteractiveDrawing.placeHierarchicalLabel" )
556 .Scope( AS_GLOBAL )
557 .DefaultHotkey( 'H' )
558 .LegacyHotkeyName( "Add Hierarchical Label" )
559 .FriendlyName( _( "Place Hierarchical Labels" ) )
560 .ToolbarState( TOOLBAR_STATE::TOGGLE )
562 .Flags( AF_ACTIVATE ) );
563
565 .Name( "eeschema.InteractiveDrawing.drawSheet" )
566 .Scope( AS_GLOBAL )
567 .DefaultHotkey( 'S' )
568 .LegacyHotkeyName( "Add Sheet" )
569 .FriendlyName( _( "Draw Hierarchical Sheets" ) )
570 .ToolbarState( TOOLBAR_STATE::TOGGLE )
572 .Flags( AF_ACTIVATE )
573 .Parameter( SCH_SHEET_T ) );
574
576 .Name( "eeschema.InteractiveDrawing.drawSheetFromFile" )
577 .Scope( AS_GLOBAL )
578 .FriendlyName( _( "Draw Sheet from File" ) )
579 .Tooltip( _( "Copy sheet into project and draw on current sheet" ) )
581 .Flags( AF_ACTIVATE )
582 .Parameter<wxString*> ( nullptr ) );
583
585 .Name( "eeschema.InteractiveDrawing.drawSheetFromDesignBlock" )
586 .Scope( AS_GLOBAL )
587 .FriendlyName( _( "Draw Sheet from Design Block" ) )
588 .Tooltip( _( "Copy design block into project as a sheet on current sheet" ) )
590 .Flags( AF_ACTIVATE )
591 .Parameter<DESIGN_BLOCK*> ( nullptr ) );
592
594 .Name( "eeschema.InteractiveDrawing.placeSheetPin" )
595 .Scope( AS_GLOBAL )
596 .FriendlyName( _( "Place Pins from Sheet" ) )
597 .Tooltip( _( "Add sheet pins from existing hierarchical labels found on that sheet" ) )
598 .ToolbarState( TOOLBAR_STATE::TOGGLE )
600 .Flags( AF_ACTIVATE ) );
601
603 .Name( "eeschema.InteractiveDrawing.autoplaceAllSheetPins" )
604 .Scope( AS_GLOBAL )
605 .FriendlyName( _( "Autoplace All Sheet Pins" ) )
606 .Tooltip( _( "Imports and auto places all sheet pins" ) ) );
607
609 .Name( "eeschema.InteractiveDrawing.syncSheetPins" )
610 .Scope( AS_GLOBAL )
611 .FriendlyName( _( "Sync Selected Sheet Pins..." ) )
612 .Tooltip( _( "Synchronize selected sheet pins and hierarchical labels" ) )
614 .Flags( AF_ACTIVATE ) );
615
617 .Name( "eeschema.InteractiveDrawing.syncAllSheetsPins" )
618 .Scope( AS_GLOBAL )
619 .FriendlyName( _( "Sync All Sheets Pins..." ) )
620 .Tooltip( _( "Synchronize all sheets pins and hierarchical labels" ) )
622 .Flags( AF_ACTIVATE ) );
623
625 .Name( "eeschema.InteractiveDrawing.importSheet" )
626 .Scope( AS_GLOBAL )
627 .FriendlyName( _( "Import Sheet..." ) )
628 .Tooltip( _( "Import sheet into project" ) )
630 .Flags( AF_ACTIVATE )
631 .Parameter<wxString*> ( nullptr ) );
632
634 .Name( "eeschema.InteractiveDrawing.placeGlobalLabel" )
635 .Scope( AS_GLOBAL )
636 .DefaultHotkey( MD_CTRL + 'L' )
637 .LegacyHotkeyName( "Add Global Label" )
638 .FriendlyName( _( "Place Global Labels" ) )
639 .ToolbarState( TOOLBAR_STATE::TOGGLE )
640 .Icon( BITMAPS::add_glabel )
641 .Flags( AF_ACTIVATE ) );
642
644 .Name( "eeschema.InteractiveDrawing.placeSchematicText" )
645 .Scope( AS_GLOBAL )
646 .DefaultHotkey( 'T' )
647 .LegacyHotkeyName( "Add Graphic Text" )
648 .FriendlyName( _( "Draw Text" ) )
649 .ToolbarState( TOOLBAR_STATE::TOGGLE )
650 .Icon( BITMAPS::text )
651 .Flags( AF_ACTIVATE ) );
652
654 .Name( "eeschema.InteractiveDrawing.drawTextBox" )
655 .Scope( AS_GLOBAL )
656 .FriendlyName( _( "Draw Text Boxes" ) )
657 .ToolbarState( TOOLBAR_STATE::TOGGLE )
658 .Icon( BITMAPS::add_textbox )
659 .Flags( AF_ACTIVATE )
660 .Parameter( SHAPE_T::RECTANGLE ) );
661
663 .Name( "eeschema.InteractiveDrawing.drawTable" )
664 .Scope( AS_GLOBAL )
665 .FriendlyName( _( "Draw Tables" ) )
666 .ToolbarState( TOOLBAR_STATE::TOGGLE )
667 .Icon( BITMAPS::table )
668 .Flags( AF_ACTIVATE ) );
669
671 .Name( "eeschema.InteractiveDrawing.drawRectangle" )
672 .Scope( AS_GLOBAL )
673 .FriendlyName( _( "Draw Rectangles" ) )
674 .ToolbarState( TOOLBAR_STATE::TOGGLE )
676 .Flags( AF_ACTIVATE )
677 .Parameter( SHAPE_T::RECTANGLE ) );
678
680 .Name( "eeschema.InteractiveDrawing.drawCircle" )
681 .Scope( AS_GLOBAL )
682 .FriendlyName( _( "Draw Circles" ) )
683 .ToolbarState( TOOLBAR_STATE::TOGGLE )
684 .Icon( BITMAPS::add_circle )
685 .Flags( AF_ACTIVATE )
686 .Parameter( SHAPE_T::CIRCLE ) );
687
689 .Name( "eeschema.InteractiveDrawing.drawArc" )
690 .Scope( AS_GLOBAL )
691 .FriendlyName( _( "Draw Arcs" ) )
692 .ToolbarState( TOOLBAR_STATE::TOGGLE )
693 .Icon( BITMAPS::add_arc )
694 .Flags( AF_ACTIVATE )
695 .Parameter( SHAPE_T::ARC ) );
696
698 .Name( "eeschema.InteractiveDrawing.drawBezier" )
699 .Scope( AS_GLOBAL )
700 .FriendlyName( _( "Draw Bezier Curve" ) )
701 .ToolbarState( TOOLBAR_STATE::TOGGLE )
702 .Icon( BITMAPS::add_bezier )
703 .Flags( AF_ACTIVATE )
704 .Parameter( SHAPE_T::BEZIER ) );
705
707 .Name( "eeschema.InteractiveDrawing.placeImage" )
708 .Scope( AS_GLOBAL )
709 .FriendlyName( _( "Place Images" ) )
710 .ToolbarState( TOOLBAR_STATE::TOGGLE )
711 .Icon( BITMAPS::image )
712 .Flags( AF_ACTIVATE )
713 .Parameter<SCH_BITMAP*>( nullptr ) );
714
716 .Name( "eeschema.InteractiveDrawing.drawRuleArea" )
717 .Scope( AS_GLOBAL )
718 .FriendlyName( _( "Draw Rule Areas" ) )
719 .ToolbarState( TOOLBAR_STATE::TOGGLE )
721 .Flags( AF_ACTIVATE )
722 .Parameter( SHAPE_T::RECTANGLE ) );
723
725 .Name( "eeschema.InteractiveDrawing.deleteLastPoint" )
726 .Scope( AS_CONTEXT )
727 .FriendlyName( _( "Delete Last Point" ) )
728 .Tooltip( _( "Delete the last point added to the current item" ) )
729 .Icon( BITMAPS::undo ) );
730
732 .Name( "eeschema.InteractiveDrawing.closeOutline" )
733 .Scope( AS_CONTEXT )
734 .FriendlyName( _( "Close Outline" ) )
735 .Tooltip( _( "Close the in-progress outline" ) )
736 .Icon( BITMAPS::checked_ok ) );
737
738
739// SCH_EDIT_TOOL
740//
742 .Name( "eeschema.InteractiveEdit.repeatDrawItem" )
743 .Scope( AS_GLOBAL )
744#ifdef __WXMAC__
745 .DefaultHotkey( WXK_F1 )
746#else
747 .DefaultHotkey( WXK_INSERT )
748#endif
749 .LegacyHotkeyName( "Repeat Last Item" )
750 .FriendlyName( _( "Repeat Last Item" ) )
751 .Tooltip( _( "Duplicates the last drawn item" ) ) );
752
754 .Name( "eeschema.InteractiveEdit.rotateCW" )
755 .Scope( AS_GLOBAL )
756 .DefaultHotkey( MD_SHIFT + 'R' )
757 .FriendlyName( _( "Rotate Clockwise" ) )
758 .Icon( BITMAPS::rotate_cw ) );
759
761 .Name( "eeschema.InteractiveEdit.rotateCCW" )
762 .Scope( AS_GLOBAL )
763 .DefaultHotkey( 'R' )
764 .LegacyHotkeyName( "Rotate Item" )
765 .FriendlyName( _( "Rotate Counterclockwise" ) )
766 .Icon( BITMAPS::rotate_ccw ) );
767
769 .Name( "eeschema.InteractiveEdit.mirrorV" )
770 .Scope( AS_GLOBAL )
771 .DefaultHotkey( 'Y' )
772 .LegacyHotkeyName( "Mirror X" ) // Yes, these were backwards prior to 6.0....
773 .FriendlyName( _( "Mirror Vertically" ) )
774 .Tooltip( _( "Flips selected item(s) from top to bottom" ) )
775 .Icon( BITMAPS::mirror_v ) );
776
778 .Name( "eeschema.InteractiveEdit.mirrorH" )
779 .Scope( AS_GLOBAL )
780 .DefaultHotkey( 'X' )
781 .LegacyHotkeyName( "Mirror Y" ) // Yes, these were backwards prior to 6.0....
782 .FriendlyName( _( "Mirror Horizontally" ) )
783 .Tooltip( _( "Flips selected item(s) from left to right" ) )
784 .Icon( BITMAPS::mirror_h ) );
785
787 .Name( "eeschema.InteractiveEdit.swap" )
788 .Scope( AS_GLOBAL )
789 .DefaultHotkey( MD_ALT + 'S' )
790 .FriendlyName( _( "Swap" ) )
791 .Tooltip( _( "Swap positions of selected items" ) )
792 .Icon( BITMAPS::swap ) );
793
794// Separate action so "real" pin swaps are not conflated with the generic position swap.
796 .Name( "eeschema.InteractiveEdit.swapPins" )
797 .Scope( AS_GLOBAL )
798 .FriendlyName( _( "Swap Pins" ) )
799 .Tooltip( _( "Swap the selected symbol pins' positions" ) )
800 .Icon( BITMAPS::swap ) );
801
803 .Name( "eeschema.InteractiveEdit.swapPinLabels" )
804 .Scope( AS_GLOBAL )
805 .FriendlyName( _( "Swap Pin Labels" ) )
806 .Tooltip( _( "Swap the labels attached to selected pins" ) )
807 .Icon( BITMAPS::swap ) );
808
810 .Name( "eeschema.InteractiveEdit.swapUnitLabels" )
811 .Scope( AS_GLOBAL )
812 .FriendlyName( _( "Swap Unit Labels" ) )
813 .Tooltip( _( "Swap labels between selected units" ) )
814 .Icon( BITMAPS::swap ) );
815
817 .Name( "eeschema.InteractiveEdit.properties" )
818 .Scope( AS_GLOBAL )
819 .DefaultHotkey( 'E' )
820 .LegacyHotkeyName( "Edit Item" )
821 .FriendlyName( _( "Properties..." ) )
822 .Icon( BITMAPS::edit ) );
823
825 .Name( "eeschema.InteractiveEdit.editReference" )
826 .Scope( AS_GLOBAL )
827 .DefaultHotkey( 'U' )
828 .LegacyHotkeyName( "Edit Symbol Reference" )
829 .FriendlyName( _( "Edit Reference Designator..." ) )
830 .Icon( BITMAPS::edit_comp_ref ) );
831
833 .Name( "eeschema.InteractiveEdit.editValue" )
834 .Scope( AS_GLOBAL )
835 .DefaultHotkey( 'V' )
836 .LegacyHotkeyName( "Edit Symbol Value" )
837 .FriendlyName( _( "Edit Value..." ) )
838 .Icon( BITMAPS::edit_comp_value ) );
839
841 .Name( "eeschema.InteractiveEdit.editFootprint" )
842 .Scope( AS_GLOBAL )
843 .DefaultHotkey( 'F' )
844 .LegacyHotkeyName( "Edit Symbol Footprint" )
845 .FriendlyName( _( "Edit Footprint..." ) )
847
849 .Name( "eeschema.InteractiveEdit.autoplaceFields" )
850 .Scope( AS_GLOBAL )
851 .DefaultHotkey( 'O' )
852 .LegacyHotkeyName( "Autoplace Fields" )
853 .FriendlyName( _( "Autoplace Fields" ) )
854 .Tooltip( _( "Runs the automatic placement algorithm on the symbol's (or sheet's) fields" ) )
855 .Icon( BITMAPS::autoplace_fields ) );
856
858 .Name( "eeschema.InteractiveEdit.changeSymbols" )
859 .Scope( AS_GLOBAL )
860 .FriendlyName( _( "Change Symbols..." ) )
861 .Tooltip( _( "Assign different symbols from the library" ) )
862 .Icon( BITMAPS::exchange ) );
863
865 .Name( "eeschema.InteractiveEdit.updateSymbols" )
866 .Scope( AS_GLOBAL )
867 .FriendlyName( _( "Update Symbols from Library..." ) )
868 .Tooltip( _( "Update symbols to include any changes from the library" ) )
869 .Icon( BITMAPS::refresh ) );
870
872 .Name( "eeschema.InteractiveEdit.changeSymbol" )
873 .Scope( AS_GLOBAL )
874 .FriendlyName( _( "Change Symbol..." ) )
875 .Tooltip( _( "Assign a different symbol from the library" ) )
876 .Icon( BITMAPS::exchange ) );
877
879 .Name( "eeschema.InteractiveEdit.updateSymbol" )
880 .Scope( AS_GLOBAL )
881 .FriendlyName( _( "Update Symbol..." ) )
882 .Tooltip( _( "Update symbol to include any changes from the library" ) )
883 .Icon( BITMAPS::refresh ) );
884
886 .Name( "eeschema.InteractiveEdit.assignNetclass" )
887 .Scope( AS_GLOBAL )
888 .FriendlyName( _( "Assign Netclass..." ) )
889 .Tooltip( _( "Assign a netclass to nets matching a pattern" ) )
890 .Icon( BITMAPS::netlist ) );
891
893 .Name( "eeschema.InteractiveEdit.findNetInInspector" )
894 .Scope( AS_GLOBAL )
895 .FriendlyName( _( "Find in Net Navigator" ) )
896 .Tooltip( _( "Locate the selected net in the net navigator" ) ) );
897
899 .Name( "eeschema.InteractiveEdit.toggleDeMorgan" )
900 .Scope( AS_GLOBAL )
901 .FriendlyName( _( "Cycle Body Style" ) )
902 .Tooltip( _( "Switch between De Morgan (or other) representations" ) )
903 .Icon( BITMAPS::morgan2 ) );
904
906 .Name( "eeschema.InteractiveEdit.toLabel" )
907 .Scope( AS_GLOBAL )
908 .FriendlyName( _( "Change to Label" ) )
909 .Tooltip( _( "Change existing item to a label" ) )
911 .Flags( AF_NONE )
912 .Parameter( SCH_LABEL_T ) );
913
915 .Name( "eeschema.InteractiveEdit.toCLabel" ) // Old name based on netClass label.
916 // There's no sense losing hotkey assignments, so we
917 // leave it as-is)
918 .Scope( AS_GLOBAL )
919 .FriendlyName( _( "Change to Directive Label" ) )
920 .Tooltip( _( "Change existing item to a directive label" ) )
922 .Flags( AF_NONE )
923 .Parameter( SCH_DIRECTIVE_LABEL_T ) );
924
926 .Name( "eeschema.InteractiveEdit.toHLabel" )
927 .Scope( AS_GLOBAL )
928 .FriendlyName( _( "Change to Hierarchical Label" ) )
929 .Tooltip( _( "Change existing item to a hierarchical label" ) )
931 .Flags( AF_NONE )
932 .Parameter( SCH_HIER_LABEL_T ) );
933
935 .Name( "eeschema.InteractiveEdit.toGLabel" )
936 .Scope( AS_GLOBAL )
937 .FriendlyName( _( "Change to Global Label" ) )
938 .Tooltip( _( "Change existing item to a global label" ) )
939 .Icon( BITMAPS::add_glabel )
940 .Flags( AF_NONE )
941 .Parameter( SCH_GLOBAL_LABEL_T ) );
942
944 .Name( "eeschema.InteractiveEdit.toText" )
945 .Scope( AS_GLOBAL )
946 .FriendlyName( _( "Change to Text" ) )
947 .Tooltip( _( "Change existing item to a text comment" ) )
948 .Icon( BITMAPS::text )
949 .Flags( AF_NONE )
950 .Parameter( SCH_TEXT_T ) );
951
953 .Name( "eeschema.InteractiveEdit.toTextBox" )
954 .Scope( AS_GLOBAL )
955 .FriendlyName( _( "Change to Text Box" ) )
956 .Tooltip( _( "Change existing item to a text box" ) )
957 .Icon( BITMAPS::add_textbox )
958 .Flags( AF_NONE )
959 .Parameter( SCH_TEXTBOX_T ) );
960
962 .Name( "eeschema.InteractiveEdit.cleanupSheetPins" )
963 .Scope( AS_GLOBAL )
964 .FriendlyName( _( "Cleanup Sheet Pins" ) )
965 .Tooltip( _( "Delete unreferenced sheet pins" ) ) );
966
968 .Name( "eeschema.InteractiveEdit.editTextAndGraphics" )
969 .Scope( AS_GLOBAL )
970 .FriendlyName( _( "Edit Text & Graphics Properties..." ) )
971 .Tooltip( _( "Edit text and graphics properties globally across schematic" ) )
972 .Icon( BITMAPS::text ) );
973
975 .Name( "eeschema.InteractiveEdit.symbolProperties" )
976 .Scope( AS_GLOBAL )
977 .FriendlyName( _( "Symbol Properties..." ) )
978 .Icon( BITMAPS::part_properties ) );
979
981 .Name( "eeschema.InteractiveEdit.pinTable" )
982 .Scope( AS_GLOBAL )
983 .FriendlyName( _( "Pin Table..." ) )
984 .Tooltip( _( "Displays pin table for bulk editing of pins" ) )
985 .Icon( BITMAPS::pin_table ) );
986
988 .Name( "eeschema.InteractiveEdit.convertStackedPins" )
989 .Scope( AS_GLOBAL )
990 .FriendlyName( _( "Convert Stacked Pins" ) )
991 .Tooltip( _( "Convert multiple pins at the same location to a single pin with stacked notation" ) )
992 .Icon( BITMAPS::pin ) );
993
995 .Name( "eeschema.InteractiveEdit.explodeStackedPin" )
996 .Scope( AS_GLOBAL )
997 .FriendlyName( _( "Explode Stacked Pin" ) )
998 .Tooltip( _( "Convert a pin with stacked notation to multiple individual pins" ) )
999 .Icon( BITMAPS::pin ) );
1000
1002 .Name( "eeschema.InteractiveEdit.breakWire" )
1003 .Scope( AS_GLOBAL )
1004 .FriendlyName( _( "Break" ) )
1005 .Tooltip( _( "Divide into connected segments" ) )
1006 .Icon( BITMAPS::break_line ) );
1007
1009 .Name( "eeschema.InteractiveEdit.slice" )
1010 .Scope( AS_GLOBAL )
1011 .FriendlyName( _( "Slice" ) )
1012 .Tooltip( _( "Divide into unconnected segments" ) )
1013 .Icon( BITMAPS::slice_line ) );
1014
1015// SCH_EDITOR_CONTROL
1016//
1018 .Name( "eeschema.EditorControl.restartMove" )
1019 .Scope( AS_GLOBAL ) );
1020
1022 .Name( "eeschema.EditorControl.highlightNet" )
1023 .Scope( AS_GLOBAL )
1024 .DefaultHotkey( '`' )
1025 .FriendlyName( _( "Highlight Net" ) )
1026 .Tooltip( _( "Highlight net under cursor" ) )
1028
1030 .Name( "eeschema.EditorControl.clearHighlight" )
1031 .Scope( AS_GLOBAL )
1032 .DefaultHotkey( '~' )
1033 .FriendlyName( _( "Clear Net Highlighting" ) )
1034 .Tooltip( _( "Clear any existing net highlighting" ) ) );
1035
1037 .Name( "eeschema.EditorControl.updateNetHighlighting" )
1038 .Scope( AS_GLOBAL ) );
1039
1041 .Name( "eeschema.EditorControl.highlightNetTool" )
1042 .Scope( AS_GLOBAL )
1043 .FriendlyName( _( "Highlight Nets" ) )
1044 .Tooltip( _( "Highlight wires and pins of a net" ) )
1045 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1047 .Flags( AF_ACTIVATE ) );
1048
1050 .Name( "eeschema.EditorControl.showNetNavigator" )
1051 .Scope( AS_GLOBAL )
1052 .FriendlyName( _( "Net Navigator" ) )
1053 .Tooltip( _( "Show/hide the net navigator" ) ) );
1054
1056 .Name( "eeschema.EditorControl.editWithSymbolEditor" )
1057 .Scope( AS_GLOBAL )
1058 .DefaultHotkey( MD_CTRL + 'E' )
1059 .LegacyHotkeyName( "Edit with Symbol Editor" )
1060 .FriendlyName( _( "Edit with Symbol Editor" ) )
1061 .Tooltip( _( "Open the selected symbol in the Symbol Editor" ) )
1062 .Icon( BITMAPS::libedit ) );
1063
1065 .Name( "eeschema.EditorControl.setExcludeFromBOM" )
1066 .Scope( AS_GLOBAL )
1067 .FriendlyName( _( "Exclude from Bill of Materials" ) )
1068 .Tooltip( _( "Set the exclude from bill of materials attribute" ) ) );
1069
1071 .Name( "eeschema.EditorControl.setExcludeFromSimulation" )
1072 .Scope( AS_GLOBAL )
1073 .FriendlyName( _( "Exclude from Simulation" ) )
1074 .Tooltip( _( "Set the exclude from simulation attribute" ) ) );
1075
1077 .Name( "eeschema.EditorControl.setExcludeFromBoard" )
1078 .Scope( AS_GLOBAL )
1079 .FriendlyName( _( "Exclude from Board" ) )
1080 .Tooltip( _( "Set the exclude from board attribute" ) ) );
1081
1083 .Name( "eeschema.EditorControl.setDNP" )
1084 .Scope( AS_GLOBAL )
1085 .FriendlyName( _( "Do not Populate" ) )
1086 .Tooltip( _( "Set the do not populate attribute" ) ) );
1087
1089 .Name( "eeschema.EditorControl.editLibSymbolWithSymbolEditor" )
1090 .Scope( AS_GLOBAL )
1091 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'E' )
1092 .FriendlyName( _( "Edit Library Symbol..." ) )
1093 .Tooltip( _( "Open the library symbol in the Symbol Editor" ) )
1094 .Icon( BITMAPS::libedit ) );
1095
1097 .Name( "eeschema.EditorControl.editSymbolFields" )
1098 .Scope( AS_GLOBAL )
1099 .FriendlyName( _( "Bulk Edit Symbol Fields..." ) )
1100 .Tooltip( _( "Edit a table of fields from all symbols in the schematic" ) )
1101 .Icon( BITMAPS::spreadsheet ) );
1102
1104 .Name( "eeschema.EditorControl.editSymbolLibraryLinks" )
1105 .Scope( AS_GLOBAL )
1106 .FriendlyName( _( "Bulk Edit Symbol Library Links..." ) )
1107 .Tooltip( _( "Edit a table of links between schematic and library symbols" ) )
1109
1111 .Name( "eeschema.EditorControl.assignFootprints" )
1112 .Scope( AS_GLOBAL )
1113 .FriendlyName( _( "Assign Footprints..." ) )
1114 .Tooltip( _( "Run footprint assignment tool" ) )
1115 .Icon( BITMAPS::icon_cvpcb_24 ) );
1116
1118 .Name( "eeschema.EditorControl.importFPAssignments" )
1119 .Scope( AS_GLOBAL )
1120 .FriendlyName( _( "Import Footprint Assignments..." ) )
1121 .Tooltip( _( "Import symbol footprint assignments from .cmp file created by board editor" ) )
1123
1125 .Name( "eeschema.EditorControl.annotate" )
1126 .Scope( AS_GLOBAL )
1127 .FriendlyName( _( "Annotate Schematic..." ) )
1128 .Tooltip( _( "Fill in schematic symbol reference designators" ) )
1129 .Icon( BITMAPS::annotate ) );
1130
1132 .Name( "eeschema.EditorControl.incrementAnnotations" )
1133 .Scope( AS_GLOBAL )
1134 .FriendlyName( _( "Increment Annotations From..." ) )
1135 .Tooltip( _( "Increment a subset of reference designators starting at a particular symbol" ) )
1137 );
1138
1140 .Name( "eeschema.EditorControl.schematicSetup" )
1141 .Scope( AS_GLOBAL )
1142 .FriendlyName( _( "Schematic Setup..." ) )
1143 .Tooltip( _( "Edit schematic setup including annotation styles and electrical rules" ) )
1144 .Icon( BITMAPS::options_schematic ) );
1145
1147 .Name( "eeschema.EditorControl.editPageNumber" )
1148 .Scope( AS_GLOBAL )
1149 .FriendlyName( _( "Edit Sheet Page Number..." ) )
1150 .Tooltip( _( "Edit the page number of the current or selected sheet" ) ) );
1151
1153 .Name( "eeschema.EditorControl.rescueSymbols" )
1154 .Scope( AS_GLOBAL )
1155 .FriendlyName( _( "Rescue Symbols..." ) )
1156 .Tooltip( _( "Find old symbols in project and rename/rescue them" ) )
1157 .Icon( BITMAPS::rescue ) );
1158
1160 .Name( "eeschema.EditorControl.remapSymbols" )
1161 .Scope( AS_GLOBAL )
1162 .FriendlyName( _( "Remap Legacy Library Symbols..." ) )
1163 .Tooltip( _( "Remap library symbol references in legacy schematics to the symbol library table" ) )
1164 .Icon( BITMAPS::rescue ) );
1165
1167 .Name( "eeschema.EditorControl.nextNetItem" )
1168 .Scope( AS_GLOBAL )
1169 .DefaultHotkey( WXK_TAB )
1170 .FriendlyName( _( "Next Net Item" ) )
1171 .Tooltip( _( "Select next item on the current net" ) ) );
1172
1174 .Name( "eeschema.EditorControl.previousNetItem" )
1175 .Scope( AS_GLOBAL )
1176 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_TAB ) )
1177 .FriendlyName( _( "Previous Net Item" ) )
1178 .Tooltip( _( "Select previous item on the current net" ) ) );
1179
1181 .Name( "eeschema.EditorControl.drawSheetOnClipboard" )
1182 .Scope( AS_GLOBAL )
1183 .FriendlyName( _( "Export Drawing to Clipboard" ) )
1184 .Tooltip( _( "Export drawing of current sheet to clipboard" ) )
1185 .Icon( BITMAPS::copy ) );
1186
1188 .Name( "eeschema.EditorControl.importGraphics" )
1189 .Scope( AS_GLOBAL )
1190 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'F' )
1191 .LegacyHotkeyName( "Place DXF" )
1192 .FriendlyName( _( "Import Graphics..." ) )
1193 .Tooltip( _( "Import 2D drawing file" ) )
1194 .Icon( BITMAPS::import_vector )
1195 .Flags( AF_ACTIVATE ) );
1196
1198 .Name( "eeschema.EditorControl.showPcbNew" )
1199 .Scope( AS_GLOBAL )
1200 .FriendlyName( _( "Switch to PCB Editor" ) )
1201 .Tooltip( _( "Open PCB in board editor" ) )
1202 .Icon( BITMAPS::icon_pcbnew_24 ) );
1203
1205 .Name( "eeschema.EditorControl.exportNetlist" )
1206 .Scope( AS_GLOBAL )
1207 .FriendlyName( _( "Export Netlist..." ) )
1208 .Tooltip( _( "Export file containing netlist in one of several formats" ) )
1209 .Icon( BITMAPS::netlist ) );
1210
1212 .Name( "eeschema.EditorControl.generateBOM" )
1213 .Scope( AS_GLOBAL )
1214 .FriendlyName( _( "Generate Bill of Materials..." ) )
1215 .Tooltip( _( "Generate a bill of materials for the current schematic" ) )
1216 .Icon( BITMAPS::post_bom ) );
1217
1219 .Name( "eeschema.EditorControl.generateBOMLegacy" )
1220 .Scope( AS_GLOBAL )
1221 .FriendlyName( _( "Generate Legacy Bill of Materials..." ) )
1222 .Tooltip( _( "Generate a bill of materials for the current schematic (Legacy Generator)" ) )
1223 .Icon( BITMAPS::file_bom )
1224 );
1225
1227 .Name( "eeschema.EditorControl.generateBOMExternal" )
1228 .Scope( AS_GLOBAL )
1229 .FriendlyName( _( "Generate Bill of Materials (External)..." ) )
1230 .Tooltip( _( "Generate a bill of materials for the current schematic using external generator" ) )
1231 );
1232
1234 .Name( "eeschema.EditorControl.exportSymbolsToLibrary" )
1235 .Scope( AS_GLOBAL )
1236 .FriendlyName( _( "Export Symbols..." ) )
1237 .Tooltip( _( "Add symbols from schematic to a new or an existing symbol library\n"
1238 "(does not remove other symbols from this library)" ) )
1239 .Icon( BITMAPS::library_archive ) );
1240
1242 .Name( "eeschema.EditorControl.selectOnPCB" )
1243 .Scope( AS_GLOBAL )
1244 .FriendlyName( _( "Select on PCB" ) )
1245 .Tooltip( _( "Select corresponding items in PCB editor" ) )
1246 .Icon( BITMAPS::select_same_sheet ) );
1247
1249 .Name( "eeschema.EditorControl.showHiddenPins" )
1250 .Scope( AS_GLOBAL )
1251 .FriendlyName( _( "Show Hidden Pins" ) )
1252 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1253 .Icon( BITMAPS::hidden_pin ) );
1254
1256 .Name( "eeschema.EditorControl.showHiddenFields" )
1257 .Scope( AS_GLOBAL )
1258 .FriendlyName( _( "Show Hidden Fields" ) )
1259 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1260
1262 .Name( "eeschema.EditorControl.showDirectiveLabels" )
1263 .Scope( AS_GLOBAL )
1264 .FriendlyName( _( "Show Directive Labels" ) )
1265 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1266
1268 .Name( "eeschema.EditorControl.showERCWarnings" )
1269 .Scope( AS_GLOBAL )
1270 .FriendlyName( _( "Show ERC Warnings" ) )
1271 .Tooltip( _( "Show markers for electrical rules checker warnings" ) )
1272 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1273
1275 .Name( "eeschema.EditorControl.showERCErrors" )
1276 .Scope( AS_GLOBAL )
1277 .FriendlyName( _( "Show ERC Errors" ) )
1278 .Tooltip( _( "Show markers for electrical rules checker errors" ) )
1279 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1280
1282 .Name( "eeschema.EditorControl.showERCExclusions" )
1283 .Scope( AS_GLOBAL )
1284 .FriendlyName( _( "Show ERC Exclusions" ) )
1285 .Tooltip( _( "Show markers for excluded electrical rules checker violations" ) )
1286 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1287
1289 .Name( "eeschema.EditorControl.markSimExclusions" )
1290 .Scope( AS_GLOBAL )
1291 .FriendlyName( _( "Mark items excluded from simulation" ) )
1292 .Tooltip( _( "Draw 'X's over items which have been excluded from simulation" ) )
1293 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1294
1296 .Name( "eeschema.EditorControl.showOperatingPointVoltages" )
1297 .Scope( AS_GLOBAL )
1298 .FriendlyName( _( "Show OP Voltages" ) )
1299 .Tooltip( _( "Show operating point voltage data from simulation" ) )
1300 .ToolbarState( TOOLBAR_STATE::TOGGLE ));
1301
1303 .Name( "eeschema.EditorControl.showOperatingPointCurrents" )
1304 .Scope( AS_GLOBAL )
1305 .FriendlyName( _( "Show OP Currents" ) )
1306 .Tooltip( _( "Show operating point current data from simulation" ) )
1307 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1308
1310 .Name( "eeschema.EditorControl.togglePinAltIcons" )
1311 .Scope( AS_GLOBAL )
1312 .FriendlyName( _( "Show Pin Alternate Icons" ) )
1313 .Tooltip( _( "Show indicator icons for pins with alternate modes" ) )
1314 .ToolbarState( TOOLBAR_STATE::TOGGLE ) );
1315
1317 .Name( "eeschema.EditorControl.lineModeFree" )
1318 .Scope( AS_GLOBAL )
1319 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1320 .Tooltip( _( "Draw and drag at any angle" ) )
1321 .Icon( BITMAPS::lines_any )
1322 .Flags( AF_NONE )
1323 .Parameter( LINE_MODE::LINE_MODE_FREE ) );
1324
1326 .Name( "eeschema.EditorControl.lineModeOrthonal" )
1327 .Scope( AS_GLOBAL )
1328 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1329 .Tooltip( _( "Constrain drawing and dragging to horizontal or vertical motions" ) )
1330 .Icon( BITMAPS::lines90 )
1331 .Flags( AF_NONE )
1332 .Parameter( LINE_MODE::LINE_MODE_90) );
1333
1335 .Name( "eeschema.EditorControl.lineMode45" )
1336 .Scope( AS_GLOBAL )
1337 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1338 .Tooltip( _( "Constrain drawing and dragging to horizontal, vertical, or 45-degree angle motions" ) )
1339 .Icon( BITMAPS::hv45mode )
1340 .Flags( AF_NONE )
1341 .Parameter( LINE_MODE::LINE_MODE_45 ) );
1342
1344 .Name( "eeschema.EditorControl.lineModeNext" )
1345 .Scope( AS_GLOBAL )
1346 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_SPACE ) )
1347 .FriendlyName( _( "Line Mode for Wires and Buses" ) )
1348 .Tooltip( _( "Switch to next angle snapping mode" ) ) );
1349
1351 .Name( "eeschema.EditorControl.angleSnapModeChanged" )
1352 .Scope( AS_GLOBAL )
1353 .Flags( AF_NOTIFY ) );
1354
1356 .Name( "eeschema.EditorControl.annotateAutomatically" )
1357 .Scope( AS_GLOBAL )
1358 .FriendlyName( _( "Annotate Automatically" ) )
1359 .Tooltip( _( "Toggle automatic annotation of new symbols" ) )
1360 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1361 .Icon( BITMAPS::annotate ) );
1362
1364 .Name( "eeschema.EditorControl.repairSchematic" )
1365 .Scope( AS_GLOBAL )
1366 .FriendlyName( _( "Repair Schematic" ) )
1367 .Tooltip( _( "Run various diagnostics and attempt to repair schematic" ) )
1368 .Icon( BITMAPS::rescue ) );
1369
1371 .Name( "eeschema.EditorControl.previousUnit" )
1372 .Scope( AS_GLOBAL )
1373 .FriendlyName( _( "Previous Symbol Unit" ) )
1374 .Tooltip( _( "Open the previous unit of the symbol" ) )
1375 .Parameter<int>( -1 ) );
1376
1378 .Name( "eeschema.EditorControl.nextUnit" )
1379 .Scope( AS_GLOBAL )
1380 .FriendlyName( _( "Next Symbol Unit" ) )
1381 .Tooltip( _( "Open the next unit of the symbol" ) )
1382 .Parameter<int>( 1 ) );
1383
1384// SCH_NAVIGATE_TOOL
1385//
1387 .Name( "eeschema.NavigateTool.changeSheet" )
1388 .Scope( AS_CONTEXT )
1389 .FriendlyName( _( "Change Sheet" ) )
1390 .Tooltip( _( "Change to provided sheet's contents in the schematic editor" ) )
1391 .Icon( BITMAPS::enter_sheet ) );
1392
1394 .Name( "eeschema.NavigateTool.enterSheet" )
1395 .Scope( AS_GLOBAL )
1396 .FriendlyName( _( "Enter Sheet" ) )
1397 .Tooltip( _( "Display the selected sheet's contents in the schematic editor" ) )
1398 .Icon( BITMAPS::enter_sheet ) );
1399
1401 .Name( "eeschema.NavigateTool.leaveSheet" )
1402 .Scope( AS_GLOBAL )
1403 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_BACK ) )
1404 .LegacyHotkeyName( "Leave Sheet" )
1405 .FriendlyName( _( "Leave Sheet" ) )
1406 .Tooltip( _( "Display the parent sheet in the schematic editor" ) )
1407 .Icon( BITMAPS::leave_sheet ) );
1408
1410 .Name( "eeschema.NavigateTool.up" )
1411 .Scope( AS_GLOBAL )
1412 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_UP ) )
1413 .FriendlyName( _( "Navigate Up" ) )
1414 .Tooltip( _( "Navigate up one sheet in the hierarchy" ) )
1415 .Icon( BITMAPS::up ) );
1416
1418 .Name( "eeschema.NavigateTool.back" )
1419 .Scope( AS_GLOBAL )
1420 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_LEFT ) )
1421 .FriendlyName( _( "Navigate Back" ) )
1422 .Tooltip( _( "Move backward in sheet navigation history" ) )
1423 .Icon( BITMAPS::left ) );
1424
1426 .Name( "eeschema.NavigateTool.forward" )
1427 .Scope( AS_GLOBAL )
1428 .DefaultHotkey( MD_ALT + static_cast<int>( WXK_RIGHT ) )
1429 .FriendlyName( _( "Navigate Forward" ) )
1430 .Tooltip( _( "Move forward in sheet navigation history" ) )
1431 .Icon( BITMAPS::right ) );
1432
1434 .Name( "eeschema.NavigateTool.previous" )
1435 .Scope( AS_GLOBAL )
1436 .DefaultHotkey( WXK_PAGEUP )
1437 .FriendlyName( _( "Previous Sheet" ) )
1438 .Tooltip( _( "Move to previous sheet by number" ) )
1439 .Icon( BITMAPS::left ) );
1440
1442 .Name( "eeschema.NavigateTool.next" )
1443 .Scope( AS_GLOBAL )
1444 .DefaultHotkey( WXK_PAGEDOWN )
1445 .FriendlyName( _( "Next Sheet" ) )
1446 .Tooltip( _( "Move to next sheet by number" ) )
1447 .Icon( BITMAPS::right ) );
1448
1450 .Name( "eeschema.EditorTool.showHierarchy" )
1451 .Scope( AS_GLOBAL )
1452 .DefaultHotkey( MD_CTRL + 'H' )
1453 .FriendlyName( _( "Hierarchy Navigator" ) )
1454 .Tooltip( _( "Show/hide the schematic sheet hierarchy navigator" ) )
1455 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1456 .Icon( BITMAPS::hierarchy_nav ) );
1457
1458
1459// SCH_LINE_WIRE_BUS_TOOL
1460//
1463 .Name( "eeschema.InteractiveDrawingLineWireBus.drawWires" )
1464 .Scope( AS_GLOBAL )
1465 .DefaultHotkey( 'W' )
1466 .LegacyHotkeyName( "Begin Wire" )
1467 .FriendlyName( _( "Draw Wires" ) )
1468 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1469 .Icon( BITMAPS::add_line )
1470 .Flags( AF_ACTIVATE )
1471 .Parameter( &drawWireActionParam ) );
1472
1475 .Name( "eeschema.InteractiveDrawingLineWireBus.drawBuses" )
1476 .Scope( AS_GLOBAL )
1477 .DefaultHotkey( 'B' )
1478 .LegacyHotkeyName( "Begin Bus" )
1479 .FriendlyName( _( "Draw Buses" ) )
1480 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1481 .Icon( BITMAPS::add_bus )
1482 .Flags( AF_ACTIVATE )
1483 .Parameter( &drawBusActionParam ) );
1484
1486 .Name( "eeschema.InteractiveDrawingLineWireBus.unfoldBus" )
1487 .Scope( AS_GLOBAL )
1488 .DefaultHotkey( 'C' )
1489 .LegacyHotkeyName( "Unfold from Bus" )
1490 .FriendlyName( _( "Unfold from Bus" ) )
1491 .Tooltip( _( "Break a wire out of a bus" ) )
1493 .Flags( AF_ACTIVATE )
1494 .Parameter<wxString*>( nullptr ) );
1495
1498 .Name( "eeschema.InteractiveDrawingLineWireBus.drawLines" )
1499 .Scope( AS_GLOBAL )
1500 .DefaultHotkey( 'I' )
1501 .LegacyHotkeyName( "Add Graphic PolyLine" )
1502 .FriendlyName( _( "Draw Lines" ) )
1503 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1505 .Flags( AF_ACTIVATE )
1506 .Parameter( &drawLinesActionParam ) );
1507
1509 .Name( "eeschema.InteractiveDrawingLineWireBus.undoLastSegment")
1510 .Scope( AS_GLOBAL )
1511 .DefaultHotkey( WXK_BACK )
1512 .FriendlyName( _( "Undo Last Segment" ) )
1513 .Tooltip( _( "Walks the current line back one segment." ) )
1514 .Icon( BITMAPS::undo ) );
1515
1517 .Name( "eeschema.InteractiveDrawingLineWireBus.switchPosture" )
1518 .Scope( AS_GLOBAL )
1519 .DefaultHotkey( '/' )
1520 .FriendlyName( _( "Switch Segment Posture" ) )
1521 .Tooltip( _( "Switches posture of the current segment." ) )
1523 .Flags( AF_NONE ) );
1524
1525// SCH_MOVE_TOOL
1526//
1528 .Name( "eeschema.InteractiveMove.move" )
1529 .Scope( AS_GLOBAL )
1530 .DefaultHotkey( 'M' )
1531 .LegacyHotkeyName( "Move Item" )
1532 .FriendlyName( _( "Move" ) )
1533 .Icon( BITMAPS::move )
1534 .Flags( AF_ACTIVATE ) );
1535
1537 .Name( "eeschema.InteractiveMove.drag" )
1538 .Scope( AS_GLOBAL )
1539 .DefaultHotkey( 'G' )
1540 .LegacyHotkeyName( "Drag Item" )
1541 .FriendlyName( _( "Drag" ) )
1542 .Tooltip( _( "Move items while keeping their connections" ) )
1543 .Icon( BITMAPS::drag )
1544 .Flags( AF_ACTIVATE ) );
1545
1547 .Name( "eeschema.AlignToGrid" )
1548 .Scope( AS_GLOBAL )
1549 .FriendlyName( _( "Align Items to Grid" ) )
1551 .Flags( AF_ACTIVATE ) );
1552
1554 .Name( "eeschema.Align.alignTop" )
1555 .Scope( AS_GLOBAL )
1556 .FriendlyName( _( "Align to Top" ) )
1557 .Tooltip( _( "Aligns selected items to the top edge of the item under the cursor" ) )
1559 .Flags( AF_ACTIVATE ) );
1560
1562 .Name( "eeschema.Align.alignBottom" )
1563 .Scope( AS_GLOBAL )
1564 .FriendlyName( _( "Align to Bottom" ) )
1565 .Tooltip( _( "Aligns selected items to the bottom edge of the item under the cursor" ) )
1567 .Flags( AF_ACTIVATE ) );
1568
1570 .Name( "eeschema.Align.alignLeft" )
1571 .Scope( AS_GLOBAL )
1572 .FriendlyName( _( "Align to Left" ) )
1573 .Tooltip( _( "Aligns selected items to the left edge of the item under the cursor" ) )
1575 .Flags( AF_ACTIVATE ) );
1576
1578 .Name( "eeschema.Align.alignRight" )
1579 .Scope( AS_GLOBAL )
1580 .FriendlyName( _( "Align to Right" ) )
1581 .Tooltip( _( "Aligns selected items to the right edge of the item under the cursor" ) )
1583 .Flags( AF_ACTIVATE ) );
1584
1586 .Name( "eeschema.Align.alignCenterX" )
1587 .Scope( AS_GLOBAL )
1588 .FriendlyName( _( "Align to Horizontal Center" ) )
1589 .Tooltip( _( "Aligns selected items to the horizontal center of the item under the cursor" ) )
1591 .Flags( AF_ACTIVATE ) );
1592
1594 .Name( "eeschema.Align.alignCenterY" )
1595 .Scope( AS_GLOBAL )
1596 .FriendlyName( _( "Align to Vertical Center" ) )
1597 .Tooltip( _( "Aligns selected items to the vertical center of the item under the cursor" ) )
1599 .Flags( AF_ACTIVATE ) );
1600
1601// Schematic editor save copy curr sheet command
1603 .Name( "eeschema.EditorControl.saveCurrSheetCopyAs" )
1604 .Scope( AS_GLOBAL )
1605 .FriendlyName( _( "Save Current Sheet Copy As..." ) )
1606 .Tooltip( _( "Save a copy of the current sheet to another location or name" ) )
1607 .Icon( BITMAPS::save_as ) );
1608
1609// Drag and drop
1611 .Name( "eeschema.EditorControl.ddAppendFile" )
1612 .Scope( AS_GLOBAL ) );
1613
1615 .Name( "eeschema.EditorControl.ddAddImage" )
1616 .Scope( AS_GLOBAL ) );
1617
1619 .Name( "eeschema.EditorControl.ddImportGraphics" )
1620 .Scope( AS_GLOBAL ) );
1621
1622// SIMULATOR
1624 .Name( "eeschema.Simulation.newAnalysisTab" )
1625 .Scope( AS_GLOBAL )
1626 .DefaultHotkey( MD_CTRL + 'N' )
1627 .LegacyHotkeyName( "New" )
1628 .FriendlyName( _( "New Analysis Tab..." ) )
1629 .Tooltip( _( "Create a new tab containing a simulation analysis" ) )
1630 .Icon( BITMAPS::sim_add_plot ) );
1631
1633 .Name( "eeschema.Simulation.openWorkbook" )
1634 .Scope( AS_GLOBAL )
1635 .DefaultHotkey( MD_CTRL + 'O' )
1636 .LegacyHotkeyName( "Open" )
1637 .FriendlyName( _( "Open Workbook..." ) )
1638 .Tooltip( _( "Open a saved set of analysis tabs and settings" ) )
1639 .Icon( BITMAPS::directory_open ) );
1640
1642 .Name( "eeschema.Simulation.saveWorkbook" )
1643 .Scope( AS_GLOBAL )
1644 .DefaultHotkey( MD_CTRL + 'S' )
1645 .LegacyHotkeyName( "Save" )
1646 .FriendlyName( _( "Save Workbook" ) )
1647 .Tooltip( _( "Save the current set of analysis tabs and settings" ) )
1648 .Icon( BITMAPS::save ) );
1649
1651 .Name( "eeschema.Simulation.saveWorkbookAs" )
1652 .Scope( AS_GLOBAL )
1653 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'S' )
1654 .LegacyHotkeyName( "Save As" )
1655 .FriendlyName( _( "Save Workbook As..." ) )
1656 .Tooltip( _( "Save the current set of analysis tabs and settings to another location" ) )
1657 .Icon( BITMAPS::sim_add_signal ) );
1658
1660 .Name( "eeschema.Simulator.exportPNG" )
1661 .Scope( AS_GLOBAL )
1662 .FriendlyName( _( "Export Current Plot as PNG..." ) )
1663 .Icon( BITMAPS::export_png ) );
1664
1666 .Name( "eeschema.Simulator.exportCSV" )
1667 .Scope( AS_GLOBAL )
1668 .FriendlyName( _( "Export Current Plot as CSV..." ) )
1669 .Icon( BITMAPS::export_file ) );
1670
1672 .Name( "eeschema.Simulator.exportToClipboard" )
1673 .Scope( AS_GLOBAL )
1674 .FriendlyName( _( "Export Current Plot to Clipboard" ) )
1675 .Icon( BITMAPS::export_png ) );
1676
1678 .Name( "eeschema.Simulator.exportPlotToSchematic" )
1679 .Scope( AS_GLOBAL )
1680 .FriendlyName( _( "Export Current Plot to Schematic" ) )
1681 .Icon( BITMAPS::export_png ) );
1682
1684 .Name( "eeschema.Simulator.toggleSimSidePanel" )
1685 .Scope( AS_GLOBAL )
1686 .FriendlyName( _( "Show Simulation Side Panel" ) ) );
1687
1689 .Name( "eeschema.Simulator.toggleSimConsole" )
1690 .Scope( AS_GLOBAL )
1691 .FriendlyName( _( "Show Simulation Console Panel" ) ) );
1692
1694 .Name( "eeschema.Simulator.toggleLegend" )
1695 .Scope( AS_GLOBAL )
1696 .FriendlyName( _( "Show Legend" ) )
1697 .Icon( BITMAPS::text ) );
1698
1700 .Name( "eeschema.Simulator.toggleDottedSecondary" )
1701 .Scope( AS_GLOBAL )
1702 .FriendlyName( _( "Dotted Current/Phase" ) )
1703 .Tooltip( _( "Draw secondary signal trace (current or phase) with a dotted line" ) ) );
1704
1706 .Name( "eeschema.Simulator.toggleDarkModePlots" )
1707 .Scope( AS_GLOBAL )
1708 .FriendlyName( _( "Dark Mode Plots" ) )
1709 .Tooltip( _( "Draw plots with a black background" ) ) );
1710
1712 .Name( "eeschema.Simulation.simAnalysisProperties" )
1713 .Scope( AS_GLOBAL )
1714 .FriendlyName( _( "Edit Analysis Tab..." ) )
1715 .Tooltip( _( "Edit the current analysis tab's SPICE command and plot setup" ) )
1716 .Icon( BITMAPS::sim_command ) );
1717
1719 .Name( "eeschema.Simulation.runSimulation" )
1720 .Scope( AS_GLOBAL )
1721 .DefaultHotkey( 'R' )
1722 .FriendlyName( _( "Run Simulation" ) )
1723 .Icon( BITMAPS::sim_run ) );
1724
1726 .Name( "eeschema.Simulation.stopSimulation" )
1727 .Scope( AS_GLOBAL )
1728 .FriendlyName( _( "Stop Simulation" ) )
1729 .Icon( BITMAPS::sim_stop ) );
1730
1732 .Name( "eeschema.Simulation.probe" )
1733 .Scope( AS_GLOBAL )
1734 .DefaultHotkey( MD_SHIFT + 'P' )
1735 .FriendlyName( _( "Probe Schematic..." ) )
1736 .Tooltip( _( "Add a simulator probe" ) )
1737 .Icon( BITMAPS::sim_probe ) );
1738
1740 .Name( "eeschema.Simulation.tune" )
1741 .Scope( AS_GLOBAL )
1742 .DefaultHotkey( MD_SHIFT + 'T' )
1743 .FriendlyName( _( "Add Tuned Value..." ) )
1744 .Tooltip( _( "Select a value to be tuned" ) )
1745 .Icon( BITMAPS::sim_tune ) );
1746
1748 .Name( "eeschema.Simulation.editUserDefinedSignals" )
1749 .Scope( AS_GLOBAL )
1750 .FriendlyName( _( "User-defined Signals..." ) )
1751 .Tooltip( _( "Add, edit or delete user-defined simulation signals" ) )
1752 .Icon( BITMAPS::sim_add_signal ) );
1753
1755 .Name( "eeschema.Simulation.showNetlist" )
1756 .Scope( AS_GLOBAL )
1757 .FriendlyName( _( "Show SPICE Netlist" ) )
1758 .Icon( BITMAPS::netlist ) );
1759
1761 .Name( "eeschema.EditorControl.addVariant" )
1762 .Scope( AS_GLOBAL )
1763 .FriendlyName( _( "Add Variant..." ) )
1764 .Tooltip( _( "Add new variant to the schematic." ) ) );
1765
1767 .Name( "eeschema.EditorControl.removeVariant" )
1768 .Scope( AS_GLOBAL )
1769 .FriendlyName( _( "Remove Variant..." ) )
1770 .Tooltip( _( "Remove an existing variant from the schematic." ) ) );
1771
1772// 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 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 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 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 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 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