KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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 <bitmaps.h>
26#include <common.h>
27#include <eda_units.h>
28#include <frame_type.h>
30#include <tool/actions.h>
31#include <tool/tool_action.h>
32#include <tool/tool_event.h>
33
34// Actions, being statically-defined, require specialized I18N handling. We continue to
35// use the _() macro so that string harvesting by the I18N framework doesn't have to be
36// specialized, but we don't translate on initialization and instead do it in the getters.
37
38#undef _
39#define _(s) s
40
42 .Name( "common.Control.new" )
43 .Scope( AS_GLOBAL )
44 .DefaultHotkey( MD_CTRL + 'N' )
45 .LegacyHotkeyName( "New" )
46 .FriendlyName( _( "New..." ) )
47 .Tooltip( _( "Create a new document in the editor" ) )
48 .Icon( BITMAPS::new_generic ) );
49
51 .Name( "common.Control.newLibrary" )
52 .Scope( AS_GLOBAL )
53 .FriendlyName( _( "New Library..." ) )
54 .Tooltip( _( "Create a new library folder" ) )
55 .Icon( BITMAPS::new_library ) );
56
58 .Name( "common.Control.addLibrary" )
59 .Scope( AS_GLOBAL )
60 .FriendlyName( _( "Add Library..." ) )
61 .Tooltip( _( "Add an existing library folder" ) )
62 .Icon( BITMAPS::add_library ) );
63
65 .Name( "common.Control.open" )
66 .Scope( AS_GLOBAL )
67 .DefaultHotkey( MD_CTRL + 'O' )
68 .LegacyHotkeyName( "Open" )
69 .FriendlyName( _( "Open..." ) )
70 .Tooltip( _( "Open existing document" ) )
71 .Icon( BITMAPS::directory_open ) );
72
74 .Name( "common.Control.openWithTextEditor" )
75 .Scope( AS_GLOBAL )
76 .FriendlyName( _( "Edit in a Text Editor..." ) )
77 .Tooltip( _( "Open a library file with a text editor" ) )
78 .Icon( BITMAPS::editor ) );
79
81 .Name( "common.Control.openDirectory" )
82 .Scope( AS_GLOBAL )
83 .FriendlyName( _( "Open in file explorer..." ) )
84 .Tooltip( _( "Open a library file with system file explorer" ) )
86
88 .Name( "common.Control.save" )
89 .Scope( AS_GLOBAL )
90 .DefaultHotkey( MD_CTRL + 'S' )
91 .LegacyHotkeyName( "Save" )
92 .FriendlyName( _( "Save" ) )
93 .Tooltip( _( "Save changes" ) )
94 .Icon( BITMAPS::save ) );
95
97 .Name( "common.Control.saveAs" )
98 .Scope( AS_GLOBAL )
99 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'S' )
100 .LegacyHotkeyName( "Save As" )
101 .FriendlyName( _( "Save As..." ) )
102 .Tooltip( _( "Save current document to another location" ) )
103 .Icon( BITMAPS::save_as ) );
104
106 .Name( "common.Control.saveCopy" )
107 .Scope( AS_GLOBAL )
108 .FriendlyName( _( "Save a Copy..." ) )
109 .Tooltip( _( "Save a copy of the current document to another location" ) )
110 .Icon( BITMAPS::save_as ) );
111
113 .Name( "common.Control.saveAll" )
114 .Scope( AS_GLOBAL )
115 .FriendlyName( _( "Save All" ) )
116 .Tooltip( _( "Save all changes" ) )
117 .Icon( BITMAPS::save ) );
118
120 .Name( "common.Control.revert" )
121 .Scope( AS_GLOBAL )
122 .FriendlyName( _( "Revert" ) )
123 .Tooltip( _( "Throw away changes" ) )
125 );
126
128 .Name( "common.Control.pageSettings" )
129 .Scope( AS_GLOBAL )
130 .FriendlyName( _( "Page Settings..." ) )
131 .Tooltip( _( "Settings for paper size and title block info" ) )
132 .Icon( BITMAPS::sheetset ) );
133
135 .Name( "common.Control.print" )
136 .Scope( AS_GLOBAL )
137 .DefaultHotkey( MD_CTRL + 'P' )
138 .LegacyHotkeyName( "Print" )
139 .FriendlyName( _( "Print..." ) )
140 .Icon( BITMAPS::print_button ) );
141
143 .Name( "common.Control.plot" )
144 .Scope( AS_GLOBAL )
145 .FriendlyName( _( "Plot..." ) )
146 .Icon( BITMAPS::plot ) );
147
149 .Name( "common.Control.quit" )
150 .Scope( AS_GLOBAL )
151 .FriendlyName( _( "Quit" ) )
152 .Tooltip( _( "Close the current editor" ) )
153 .Icon( BITMAPS::exit ) );
154
155
156// Selection actions
158 .Name( "common.InteractiveSelection" )
159 .Scope( AS_GLOBAL )
160 // No description, not shown anywhere
161 .Flags( AF_ACTIVATE ) );
162
164 .Name( "common.InteractiveSelection.cursor" )
165 .Scope( AS_GLOBAL )
166 .Parameter<CLIENT_SELECTION_FILTER>( nullptr ) );
167
169 .Name( "common.InteractiveSelection.selectItem" )
170 .Scope( AS_GLOBAL ) );
171
173 .Name( "common.InteractiveSelection.selectItems" )
174 .Scope( AS_GLOBAL ) );
175
177 .Name( "common.InteractiveSelection.unselectItem" )
178 .Scope( AS_GLOBAL ) );
179
181 .Name( "common.InteractiveSelection.unselectItems" )
182 .Scope( AS_GLOBAL ) );
183
185 .Name( "common.InteractiveSelection.reselectItem" )
186 .Scope( AS_GLOBAL ) );
187
189 .Name( "common.InteractiveSelection.clear" )
190 .Scope( AS_GLOBAL ) );
191
193 .Name( "common.InteractiveSelection.selectionMenu" )
194 .Scope( AS_GLOBAL ) );
195
196
197// Group actions
199 .Name( "common.Interactive.group" )
200 .Scope( AS_GLOBAL )
201 .FriendlyName( _( "Group Items" ) )
202 .Tooltip( _( "Group the selected items so that they are treated as a single item" ) )
203 .Icon( BITMAPS::group ) );
204
206 .Name( "common.Interactive.ungroup" )
207 .Scope( AS_GLOBAL )
208 .FriendlyName( _( "Ungroup Items" ) )
209 .Tooltip( _( "Ungroup any selected groups" ) )
210 .Icon( BITMAPS::group_ungroup ) );
211
213 .Name( "common.Interactive.addToGroup" )
214 .Scope( AS_GLOBAL )
215 .FriendlyName( _( "Add Items" ) )
216 .Tooltip( _( "Add items to group" ) )
217 .Icon( BITMAPS::group_remove ) );
218
220 .Name( "common.Interactive.removeFromGroup" )
221 .Scope( AS_GLOBAL )
222 .FriendlyName( _( "Remove Items" ) )
223 .Tooltip( _( "Remove items from group" ) )
224 .Icon( BITMAPS::group_remove ) );
225
227 .Name( "common.Interactive.groupEnter" )
228 .Scope( AS_GLOBAL )
229 .FriendlyName( _( "Enter Group" ) )
230 .Tooltip( _( "Enter the group to edit items" ) )
231 .Icon( BITMAPS::group_enter ) );
232
234 .Name( "common.Interactive.groupLeave" )
235 .Scope( AS_GLOBAL )
236 .FriendlyName( _( "Leave Group" ) )
237 .Tooltip( _( "Leave the current group" ) )
238 .Icon( BITMAPS::group_leave ) );
239
240// GROUP_TOOL
242 .Name( "common.Groups.groupProperties" )
243 .Scope( AS_GLOBAL ) );
244
246 .Name( "common.Groups.selectNewGroupMember" )
247 .Scope( AS_GLOBAL ) );
248
249// Generic Edit Actions
251 .Name( "common.Interactive.cancel" )
252 .Scope( AS_GLOBAL )
253 // ESC key is handled in the dispatcher
254 .FriendlyName( _( "Cancel" ) )
255 .Tooltip( _( "Cancel current tool" ) )
256 .Icon( BITMAPS::cancel )
257 .Flags( AF_NONE ) );
258
260 .Name( "common.Interactive.finish" )
261 .Scope( AS_GLOBAL )
262 .DefaultHotkey( WXK_END )
263 .FriendlyName( _( "Finish" ) )
264 .Tooltip( _( "Finish current tool" ) )
265 .Icon( BITMAPS::checked_ok )
266 .ToolbarState( TOOLBAR_STATE::HIDDEN )
267 .Flags( AF_NONE ) );
268
270 .Name( "common.Control.showContextMenu" )
271 .Scope( AS_GLOBAL )
272 .FriendlyName( _( "Show Context Menu" ) )
273 .Tooltip( _( "Perform the right-mouse-button action" ) )
274 .Flags( AF_NONE )
275 .Parameter( CURSOR_RIGHT_CLICK )
276 .ToolbarState( TOOLBAR_STATE::HIDDEN ) );
277
279 .Name( "common.Interactive.updateMenu" )
280 .ToolbarState( TOOLBAR_STATE::HIDDEN )
281 .Scope( AS_GLOBAL ) );
282
284 .Name( "common.Interactive.undo" )
285 .Scope( AS_GLOBAL )
286 .DefaultHotkey( MD_CTRL + 'Z' )
287 .LegacyHotkeyName( "Undo" )
288 .FriendlyName( _( "Undo" ) )
289 .Icon( BITMAPS::undo ) );
290
292 .Name( "common.Interactive.redo" )
293 .Scope( AS_GLOBAL )
294#if defined( __WXMAC__ )
295 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'Z' )
296#else
297 .DefaultHotkey( MD_CTRL + 'Y' )
298#endif
299 .LegacyHotkeyName( "Redo" )
300 .FriendlyName( _( "Redo" ) )
301 .Icon( BITMAPS::redo ) );
302
303// The following actions need to have a hard-coded UI ID using a wx-specific ID
304// to fix things like search controls in standard file dialogs. If wxWidgets
305// doesn't find these specific IDs somewhere in the menus then it won't enable
306// cut/copy/paste.
308 .Name( "common.Interactive.cut" )
309 .Scope( AS_GLOBAL )
310 .DefaultHotkey( MD_CTRL + 'X' )
311 .LegacyHotkeyName( "Cut" )
312 .FriendlyName( _( "Cut" ) )
313 .Tooltip( _( "Cut selected item(s) to clipboard" ) )
314 .Icon( BITMAPS::cut )
315 .Flags( AF_NONE )
316 .UIId( wxID_CUT ) );
317
319 .Name( "common.Interactive.copy" )
320 .Scope( AS_GLOBAL )
321 .DefaultHotkey( MD_CTRL + 'C' )
322 .LegacyHotkeyName( "Copy" )
323 .FriendlyName( _( "Copy" ) )
324 .Tooltip( _( "Copy selected item(s) to clipboard" ) )
325 .Icon( BITMAPS::copy )
326 .Flags( AF_NONE )
327 .UIId( wxID_COPY ) );
328
330 .Name( "common.Interactive.copyAsText" )
331 .Scope( AS_GLOBAL )
332 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'C' )
333 .FriendlyName( _( "Copy as Text" ) )
334 .Tooltip( _( "Copy selected item(s) to clipboard as text" ) )
335 .Icon( BITMAPS::copy )
336 .Flags( AF_NONE ) );
337
339 .Name( "common.Interactive.paste" )
340 .Scope( AS_GLOBAL )
341 .DefaultHotkey( MD_CTRL + 'V' )
342 .LegacyHotkeyName( "Paste" )
343 .FriendlyName( _( "Paste" ) )
344 .Tooltip( _( "Paste item(s) from clipboard" ) )
345 .Icon( BITMAPS::paste )
346 .Flags( AF_NONE )
347 .UIId( wxID_PASTE ) );
348
350 .Name( "common.Interactive.selectAll" )
351 .Scope( AS_GLOBAL )
352 .DefaultHotkey( MD_CTRL + 'A' )
353 .FriendlyName( _( "Select All" ) )
354 .Tooltip( _( "Select all items on screen" ) ) );
355
357 .Name( "common.Interactive.unselectAll" )
358 .Scope( AS_GLOBAL )
359 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'A' )
360 .FriendlyName( _( "Unselect All" ) )
361 .Tooltip( _( "Unselect all items on screen" ) ) );
362
364 .Name( "common.Interactive.pasteSpecial" )
365 .Scope( AS_GLOBAL )
366 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'V' )
367 .FriendlyName( _( "Paste Special..." ) )
368 .Tooltip( _( "Paste item(s) from clipboard with options" ) )
369 .Icon( BITMAPS::paste_special ) );
370
372 .Name( "common.Interactive.duplicate" )
373 .Scope( AS_GLOBAL )
374 .DefaultHotkey( MD_CTRL + 'D' )
375 .LegacyHotkeyName( "Duplicate" )
376 .FriendlyName( _( "Duplicate" ) )
377 .Tooltip( _( "Duplicates the selected item(s)" ) )
378 .Icon( BITMAPS::duplicate ) );
379
381 .Name( "common.Interactive.delete" )
382 .Scope( AS_GLOBAL )
383#if defined( __WXMAC__ )
384 .DefaultHotkey( WXK_BACK )
385#else
386 .DefaultHotkey( WXK_DELETE )
387#endif
388 .LegacyHotkeyName( "Delete Item" )
389 .FriendlyName( _( "Delete" ) )
390 .Tooltip( _( "Delete selected item(s)" ) ) // differentiation from deleteTool, below
391 .Icon( BITMAPS::trash )
392 .Parameter( ACTIONS::REMOVE_FLAGS::NORMAL ) );
393
395 .Name( "common.Interactive.deleteTool" )
396 .Scope( AS_GLOBAL )
397 .FriendlyName( _( "Interactive Delete Tool" ) )
398 .Tooltip( _( "Delete clicked items" ) )
399 .ToolbarState( TOOLBAR_STATE::TOGGLE )
401 .Flags( AF_ACTIVATE ) );
402
404 .Name( "common.Control.leftJustify" )
405 .Scope( AS_GLOBAL )
406 .FriendlyName( _( "Left Justify" ) )
407 .Tooltip( _( "Left-justify fields and text items" ) )
408 .Icon( BITMAPS::text_align_left ) );
409
411 .Name( "common.Control.centerJustify" )
412 .Scope( AS_GLOBAL )
413 .FriendlyName( _( "Center Justify" ) )
414 .Tooltip( _( "Center-justify fields and text items" ) )
416
418 .Name( "common.Control.rightJustify" )
419 .Scope( AS_GLOBAL )
420 .FriendlyName( _( "Right Justify" ) )
421 .Tooltip( _( "Right-justify fields and text items" ) )
422 .Icon( BITMAPS::text_align_right ) );
423
425 .Name( "common.Control.expandAll" )
426 .Scope( AS_GLOBAL )
427 .FriendlyName( _( "Expand All" ) )
428 .Icon( BITMAPS::up ) ); // JEY TODO: need icon
429
431 .Name( "common.Control.collapseAll" )
432 .Scope( AS_GLOBAL )
433 .FriendlyName( _( "Collapse All" ) )
434 .Icon( BITMAPS::down ) ); // JEY TODO: need icon
435
436// This is the generic increment action, and will need the parameter
437// to be filled in by the event producer.
439 .Name( "eeschema.Interactive.increment" )
440 .Scope( AS_GLOBAL )
441 .FriendlyName( _( "Increment" ) )
442 .Tooltip( _( "Increment the selected item(s)" ) ) );
443
445 .Name( "eeschema.Interactive.incrementPrimary" )
446 .Scope( AS_GLOBAL )
447 .FriendlyName( _( "Increment Primary" ) )
448 .Tooltip( _( "Increment the primary field of the selected item(s)" ) )
449 .Parameter( ACTIONS::INCREMENT{ 1, 0 } ) );
450
452 .Name( "eeschema.Interactive.decrementPrimary" )
453 .Scope( AS_GLOBAL )
454 .FriendlyName( _( "Decrement Primary" ) )
455 .Tooltip( _( "Decrement the primary field of the selected item(s)" ) )
456 .Parameter( ACTIONS::INCREMENT{ -1, 0 } ) );
457
459 .Name( "eeschema.Interactive.incrementSecondary" )
460 .Scope( AS_GLOBAL )
461 .FriendlyName( _( "Increment Secondary" ) )
462 .Tooltip( _( "Increment the secondary field of the selected item(s)" ) )
463 .Parameter( ACTIONS::INCREMENT{ 1, 1 } ) );
464
466 .Name( "eeschema.Interactive.decrementSecondary" )
467 .Scope( AS_GLOBAL )
468 .FriendlyName( _( "Decrement Secondary" ) )
469 .Tooltip( _( "Decrement the secondary field of the selected item(s)" ) )
470 .Parameter( ACTIONS::INCREMENT{ -1, 1 } ) );
471
473 .Name( "common.InteractiveSelection.SelectColumns" )
474 .Scope( AS_GLOBAL )
475 .FriendlyName( _( "Select Column(s)" ) )
476 .Tooltip( _( "Select complete column(s) containing the current selected cell(s)" ) )
478
480 .Name( "common.InteractiveSelection.Rows" )
481 .Scope( AS_GLOBAL )
482 .FriendlyName( _( "Select Row(s)" ) )
483 .Tooltip( _( "Select complete row(s) containing the current selected cell(s)" ) )
484 .Icon( BITMAPS::table_select_row ) );
485
487 .Name( "common.InteractiveSelection.SelectTable" )
488 .Scope( AS_GLOBAL )
489 .FriendlyName( _( "Select Table" ) )
490 .Tooltip( _( "Select parent table of selected cell(s)" ) )
491 .Icon( BITMAPS::table_select ) );
492
494 .Name( "common.TableEditor.addRowAbove" )
495 .Scope( AS_GLOBAL )
496 .FriendlyName( _( "Add Row Above" ) )
497 .Tooltip( _( "Insert a new table row above the selected cell(s)" ) )
499
501 .Name( "common.TableEditor.addRowBelow" )
502 .Scope( AS_GLOBAL )
503 .FriendlyName( _( "Add Row Below" ) )
504 .Tooltip( _( "Insert a new table row below the selected cell(s)" ) )
506
508 .Name( "common.TableEditor.addColBefore" )
509 .Scope( AS_GLOBAL )
510 .FriendlyName( _( "Add Column Before" ) )
511 .Tooltip( _( "Insert a new table column before the selected cell(s)" ) )
513
515 .Name( "common.TableEditor.addColAfter" )
516 .Scope( AS_GLOBAL )
517 .FriendlyName( _( "Add Column After" ) )
518 .Tooltip( _( "Insert a new table column after the selected cell(s)" ) )
520
522 .Name( "common.TableEditor.deleteRows" )
523 .Scope( AS_GLOBAL )
524 .FriendlyName( _( "Delete Row(s)" ) )
525 .Tooltip( _( "Delete rows containing the currently selected cell(s)" ) )
526 .Icon( BITMAPS::table_delete_row ) );
527
529 .Name( "common.TableEditor.deleteColumns" )
530 .Scope( AS_GLOBAL )
531 .FriendlyName( _( "Delete Column(s)" ) )
532 .Tooltip( _( "Delete columns containing the currently selected cell(s)" ) )
534
536 .Name( "common.TableEditor.mergeCells" )
537 .Scope( AS_GLOBAL )
538 .FriendlyName( _( "Merge Cells" ) )
539 .Tooltip( _( "Turn selected table cells into a single cell" ) )
540 .Icon( BITMAPS::table ) ); // JEY TODO: need icon
541
543 .Name( "common.TableEditor.unmergeCell" )
544 .Scope( AS_GLOBAL )
545 .FriendlyName( _( "Unmerge Cells" ) )
546 .Tooltip( _( "Turn merged table cells back into separate cells." ) )
547 .Icon( BITMAPS::table ) ); // JEY TODO: need icon
548
550 .Name( "pcbnew.TableEditor.editTable" )
551 .Scope( AS_GLOBAL )
552 .DefaultHotkey( MD_CTRL + 'E' )
553 .FriendlyName( _( "Edit Table..." ) )
554 .Icon( BITMAPS::table_edit ) );
555
557 .Name( "common.Control.activatePointEditor" )
558 .ToolbarState( TOOLBAR_STATE::HIDDEN )
559 .Scope( AS_GLOBAL ) );
560
562 .Name( "pcbnew.PointEditor.arcKeepCenter" )
563 .Scope( AS_GLOBAL )
564 .FriendlyName( _( "Keep Arc Center, Adjust Radius" ) )
565 .Tooltip( _( "Switch arc editing mode to keep center, adjust radius and endpoints" ) )
567
569 .Name( "pcbnew.PointEditor.arcKeepEndpoint" )
570 .Scope( AS_GLOBAL )
571 .FriendlyName( _( "Keep Arc Endpoints or Direction of Starting Point" ) )
572 .Tooltip( _( "Switch arc editing mode to keep endpoints, or to keep direction of the other point" ) )
574
576 .Name( "pcbnew.PointEditor.arcKeepRadius" )
577 .Scope( AS_GLOBAL )
578 .FriendlyName( _( "Keep Arc Radius and Center, adjust angle" ) )
579 .Tooltip( _( "Switch arc editing mode to maintainign radius when endpoint are moved" ) )
581
583 .Name( "common.Interactive.cycleArcEditMode" )
584 .Scope( AS_GLOBAL )
585 .DefaultHotkey( MD_CTRL + ' ' )
586 .FriendlyName( _( "Cycle Arc Editing Mode" ) )
587 .Tooltip( _( "Switch to a different method of editing arcs" ) ) );
588
590 .Name( "common.Interactive.search" )
591 .Scope( AS_GLOBAL )
592 .DefaultHotkey( MD_CTRL + 'G' )
593 .LegacyHotkeyName( "Search" )
594 .FriendlyName( _( "Search" ) )
595 .Tooltip( _( "Show/hide the search panel" ) )
596 .Icon( BITMAPS::find ) );
597
599 .Name( "common.Interactive.find" )
600 .Scope( AS_GLOBAL )
601 .DefaultHotkey( MD_CTRL + 'F' )
602 .LegacyHotkeyName( "Find" )
603 .FriendlyName( _( "Find" ) )
604 .Icon( BITMAPS::find ) );
605
607 .Name( "common.Interactive.findAndReplace" )
608 .Scope( AS_GLOBAL )
609 .DefaultHotkey( MD_CTRL + MD_ALT + 'F' )
610 .LegacyHotkeyName( "Find and Replace" )
611 .FriendlyName( _( "Find and Replace" ) )
612 .Icon( BITMAPS::find_replace ) );
613
615 .Name( "common.Interactive.findNext" )
616 .Scope( AS_GLOBAL )
617 .DefaultHotkey( WXK_F3 )
618 .LegacyHotkeyName( "Find Next" )
619 .FriendlyName( _( "Find Next" ) )
620 .Icon( BITMAPS::find ) );
621
623 .Name( "common.Interactive.findPrevious" )
624 .Scope( AS_GLOBAL )
625 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_F3 ) )
626 .LegacyHotkeyName( "Find Previous" )
627 .FriendlyName( _( "Find Previous" ) )
628 .Icon( BITMAPS::find ) );
629
631 .Name( "common.Interactive.findNextMarker" )
632 .Scope( AS_GLOBAL )
633 .DefaultHotkey( MD_CTRL + MD_SHIFT + static_cast<int>( WXK_F3 ) )
634 .LegacyHotkeyName( "Find Next Marker" )
635 .FriendlyName( _( "Find Next Marker" ) )
636 .Icon( BITMAPS::find ) );
637
639 .Name( "common.Interactive.replaceAndFindNext" )
640 .Scope( AS_GLOBAL )
641 .FriendlyName( _( "Replace and Find Next" ) )
642 .Icon( BITMAPS::find_replace ) );
643
645 .Name( "common.Interactive.replaceAll" )
646 .Scope( AS_GLOBAL )
647 .FriendlyName( _( "Replace All" ) )
648 .Icon( BITMAPS::find_replace ) );
649
651 .Name( "common.Control.updateFind" )
652 .ToolbarState( TOOLBAR_STATE::HIDDEN )
653 .Scope( AS_GLOBAL ) );
654
655
656// Marker Controls
658 .Name( "common.Checker.prevMarker" )
659 .Scope( AS_GLOBAL )
660 .FriendlyName( _( "Previous Marker" ) )
661 .Icon( BITMAPS::marker_previous ) );
662
664 .Name( "common.Checker.nextMarker" )
665 .Scope( AS_GLOBAL )
666 .FriendlyName( _( "Next Marker" ) )
667 .Icon( BITMAPS::marker_next ) );
668
670 .Name( "common.Checker.excludeMarker" )
671 .Scope( AS_GLOBAL )
672 .FriendlyName( _( "Exclude Marker" ) )
673 .Tooltip( _( "Mark current violation in Checker window as an exclusion" ) )
674 .Icon( BITMAPS::marker_exclude ) );
675
676// View Controls
678 .Name( "common.Control.zoomRedraw" )
679 .Scope( AS_GLOBAL )
680#if defined( __WXMAC__ )
681 .DefaultHotkey( MD_CTRL + 'R' )
682#else
683 .DefaultHotkey( WXK_F5 )
684#endif
685 .LegacyHotkeyName( "Zoom Redraw" )
686 .FriendlyName( _( "Refresh" ) )
687 .Icon( BITMAPS::refresh ) );
688
690 .Name( "common.Control.zoomFitScreen" )
691 .Scope( AS_GLOBAL )
692#if defined( __WXMAC__ )
693 .DefaultHotkey( MD_CTRL + '0' )
694#else
695 .DefaultHotkey( WXK_HOME )
696#endif
697 .LegacyHotkeyName( "Zoom Auto" )
698 .FriendlyName( _( "Zoom to Fit" ) )
699 .Icon( BITMAPS::zoom_fit_in_page ) );
700
702 .Name( "common.Control.zoomFitObjects" )
703 .Scope( AS_GLOBAL )
704 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_HOME ) )
705 .FriendlyName( _( "Zoom to Objects" ) )
707
709 .Name( "common.Control.zoomFitSelection" )
710 .Scope( AS_GLOBAL )
711 .FriendlyName( _( "Zoom to Selected Objects" ) ) );
712
714 .Name( "common.Control.zoomIn" )
715 .Scope( AS_GLOBAL )
716#if defined( __WXMAC__ )
717 .DefaultHotkey( MD_CTRL + '+' )
718#else
719 .DefaultHotkey( WXK_F1 )
720#endif
721 .LegacyHotkeyName( "Zoom In" )
722 .FriendlyName( _( "Zoom In at Cursor" ) )
723 .Icon( BITMAPS::zoom_in ) );
724
726 .Name( "common.Control.zoomOut" )
727 .Scope( AS_GLOBAL )
728#if defined( __WXMAC__ )
729 .DefaultHotkey( MD_CTRL + '-' )
730#else
731 .DefaultHotkey( WXK_F2 )
732#endif
733 .LegacyHotkeyName( "Zoom Out" )
734 .FriendlyName( _( "Zoom Out at Cursor" ) )
735 .Icon( BITMAPS::zoom_out ) );
736
738 .Name( "common.Control.zoomInCenter" )
739 .Scope( AS_GLOBAL )
740 .FriendlyName( _( "Zoom In" ) )
741 .Icon( BITMAPS::zoom_in ) );
742
744 .Name( "common.Control.zoomOutCenter" )
745 .Scope( AS_GLOBAL )
746 .FriendlyName( _( "Zoom Out" ) )
747 .Icon( BITMAPS::zoom_out ) );
748
750 .Name( "common.Control.zoomInHorizontally" )
751 .Scope( AS_GLOBAL )
752 .FriendlyName( _( "Zoom In Horizontally" ) )
753 .Tooltip( _( "Zoom in horizontally the plot area" ) )
755
757 .Name( "common.Control.zoomOutHorizontally" )
758 .Scope( AS_GLOBAL )
759 .FriendlyName( _( "Zoom Out Horizontally" ) )
760 .Tooltip( _( "Zoom out horizontally the plot area" ) )
762
764 .Name( "common.Control.zoomInVertically" )
765 .Scope( AS_GLOBAL )
766 .FriendlyName( _( "Zoom In Vertically" ) )
767 .Tooltip( _( "Zoom in vertically the plot area" ) )
769
771 .Name( "common.Control.zoomOutVertically" )
772 .Scope( AS_GLOBAL )
773 .FriendlyName( _( "Zoom Out Vertically" ) )
774 .Tooltip( _( "Zoom out vertically the plot area" ) )
776
778 .Name( "common.Control.zoomCenter" )
779 .Scope( AS_GLOBAL )
780 .DefaultHotkey( WXK_F4 )
781 .LegacyHotkeyName( "Zoom Center" )
782 .FriendlyName( _( "Center on Cursor" ) )
784
786 .Name( "common.Control.zoomTool" )
787 .Scope( AS_GLOBAL )
788 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_F5 ) )
789 .LegacyHotkeyName( "Zoom to Selection" )
790 .FriendlyName( _( "Zoom to Selection" ) )
791 .Icon( BITMAPS::zoom_area )
792 .ToolbarState( { TOOLBAR_STATE::TOGGLE, TOOLBAR_STATE::CANCEL } )
793 .Flags( AF_ACTIVATE ) );
794
796 .Name( "common.Control.undoZoom" )
797 .Scope( AS_GLOBAL )
798 .FriendlyName( _( "Undo Last Zoom" ) )
799 .Tooltip( _( "Return zoom to level prior to last zoom action" ) )
800 .Icon( BITMAPS::undo ) );
801
803 .Name( "common.Control.redoZoom" )
804 .Scope( AS_GLOBAL )
805 .FriendlyName( _( "Redo Last Zoom" ) )
806 .Tooltip( _( "Return zoom to level prior to last zoom undo" ) )
807 .Icon( BITMAPS::redo ) );
808
810 .Name( "common.Control.zoomPreset" )
811 .Scope( AS_GLOBAL )
812 .Parameter<int>( 0 ) ); // Default parameter is the 0th item in the list
813
815 .Name( "common.Control.centerContents" )
816 .Scope( AS_GLOBAL ) );
817
819 .Name( "common.Control.centerSelection" )
820 .Scope( AS_GLOBAL )
821 .FriendlyName( _( "Pan to Center Selected Objects" ) ) );
822
823// Cursor control
825 .Name( "common.Control.cursorUp" )
826 .Scope( AS_GLOBAL )
827 .DefaultHotkey( WXK_UP )
828 .FriendlyName( _( "Cursor Up" ) )
829 .ToolbarState( TOOLBAR_STATE::HIDDEN )
830 .Flags( AF_NONE )
831 .Parameter( CURSOR_UP ) );
832
834 .Name( "common.Control.cursorDown" )
835 .Scope( AS_GLOBAL )
836 .DefaultHotkey( WXK_DOWN )
837 .FriendlyName( _( "Cursor Down" ) )
838 .ToolbarState( TOOLBAR_STATE::HIDDEN )
839 .Flags( AF_NONE )
840 .Parameter( CURSOR_DOWN ) );
841
843 .Name( "common.Control.cursorLeft" )
844 .Scope( AS_GLOBAL )
845 .DefaultHotkey( WXK_LEFT )
846 .FriendlyName( _( "Cursor Left" ) )
847 .ToolbarState( TOOLBAR_STATE::HIDDEN )
848 .Flags( AF_NONE )
849 .Parameter( CURSOR_LEFT ) );
850
852 .Name( "common.Control.cursorRight" )
853 .Scope( AS_GLOBAL )
854 .DefaultHotkey( WXK_RIGHT )
855 .FriendlyName( _( "Cursor Right" ) )
856 .ToolbarState( TOOLBAR_STATE::HIDDEN )
857 .Flags( AF_NONE )
858 .Parameter( CURSOR_RIGHT ) );
859
860
862 .Name( "common.Control.cursorUpFast" )
863 .Scope( AS_GLOBAL )
864 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_UP ) )
865 .FriendlyName( _( "Cursor Up Fast" ) )
866 .ToolbarState( TOOLBAR_STATE::HIDDEN )
867 .Flags( AF_NONE )
868 .Parameter( CURSOR_UP_FAST ) );
869
871 .Name( "common.Control.cursorDownFast" )
872 .Scope( AS_GLOBAL )
873 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_DOWN ) )
874 .FriendlyName( _( "Cursor Down Fast" ) )
875 .ToolbarState( TOOLBAR_STATE::HIDDEN )
876 .Flags( AF_NONE )
877 .Parameter( CURSOR_DOWN_FAST ) );
878
880 .Name( "common.Control.cursorLeftFast" )
881 .Scope( AS_GLOBAL )
882 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_LEFT ) )
883 .FriendlyName( _( "Cursor Left Fast" ) )
884 .ToolbarState( TOOLBAR_STATE::HIDDEN )
885 .Flags( AF_NONE )
886 .Parameter( CURSOR_LEFT_FAST ) );
887
889 .Name( "common.Control.cursorRightFast" )
890 .Scope( AS_GLOBAL )
891 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_RIGHT ) )
892 .FriendlyName( _( "Cursor Right Fast" ) )
893 .ToolbarState( TOOLBAR_STATE::HIDDEN )
894 .Flags( AF_NONE )
895 .Parameter( CURSOR_RIGHT_FAST ) );
896
898 .Name( "common.Control.cursorClick" )
899 .Scope( AS_GLOBAL )
900 .DefaultHotkey( WXK_RETURN )
901 .LegacyHotkeyName( "Mouse Left Click" )
902 .FriendlyName( _( "Click" ) )
903 .Tooltip( _( "Performs left mouse button click" ) )
904 .ToolbarState( TOOLBAR_STATE::HIDDEN )
905 .Flags( AF_NONE )
906 .Parameter( CURSOR_CLICK ) );
907
909 .Name( "common.Control.cursorDblClick" )
910 .Scope( AS_GLOBAL )
911 .DefaultHotkey( WXK_END )
912 .LegacyHotkeyName( "Mouse Left Double Click" )
913 .FriendlyName( _( "Double-click" ) )
914 .Tooltip( _( "Performs left mouse button double-click" ) )
915 .ToolbarState( TOOLBAR_STATE::HIDDEN )
916 .Flags( AF_NONE )
917 .Parameter( CURSOR_DBL_CLICK ) );
918
920 .Name( "common.Control.refreshPreview" )
921 .ToolbarState( TOOLBAR_STATE::HIDDEN )
922 .Scope( AS_GLOBAL ) );
923
925 .Name( "common.Control.pinLibrary" )
926 .Scope( AS_GLOBAL )
927 .FriendlyName( _( "Pin Library" ) )
928 .Tooltip( _( "Keep the library at the top of the list" ) ) );
929
931 .Name( "common.Control.unpinLibrary" )
932 .Scope( AS_GLOBAL )
933 .FriendlyName( _( "Unpin Library" ) )
934 .Tooltip( _( "No longer keep the library at the top of the list" ) ) );
935
937 .Name( "common.Control.showLibraryTree" )
938 .Scope( AS_GLOBAL )
939 .FriendlyName( _( "Library Tree" ) )
940 .ToolbarState( TOOLBAR_STATE::TOGGLE )
941 .Icon( BITMAPS::search_tree ) );
942
944 .Name( "common.Control.hideLibraryTree" )
945 .Scope( AS_GLOBAL )
946 .FriendlyName( _( "Hide Library Tree" ) )
947 .Icon( BITMAPS::search_tree ) );
948
950 .Name( "common.Control.toggleSimulationSidePanel" )
951 .Scope( AS_GLOBAL )
952 .FriendlyName( _( "Show Side Panel" ) ) );
953
955 .Name( "common.Control.toggleConsole" )
956 .Scope( AS_GLOBAL )
957 .FriendlyName( _( "Show Console Panel" ) ) );
958
960 .Name( "common.Control.libraryTreeSearch" )
961 .Scope( AS_GLOBAL )
962 .FriendlyName( _( "Focus Library Tree Search Field" ) )
963 .DefaultHotkey( MD_CTRL + 'L' )
964 .ToolbarState( TOOLBAR_STATE::HIDDEN ) );
965
967 .Name( "common.Control.panUp" )
968 .Scope( AS_GLOBAL )
969 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_UP ) )
970 .FriendlyName( _( "Pan Up" ) )
971 .Flags( AF_NONE )
972 .Parameter( CURSOR_UP ) );
973
975 .Name( "common.Control.panDown" )
976 .Scope( AS_GLOBAL )
977 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DOWN ) )
978 .FriendlyName( _( "Pan Down" ) )
979 .Flags( AF_NONE )
980 .Parameter( CURSOR_DOWN ) );
981
983 .Name( "common.Control.panLeft" )
984 .Scope( AS_GLOBAL )
985 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_LEFT ) )
986 .FriendlyName( _( "Pan Left" ) )
987 .Flags( AF_NONE )
988 .Parameter( CURSOR_LEFT ) );
989
991 .Name( "common.Control.panRight" )
992 .Scope( AS_GLOBAL )
993 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_RIGHT ) )
994 .FriendlyName( _( "Pan Right" ) )
995 .Flags( AF_NONE )
996 .Parameter( CURSOR_RIGHT ) );
997
998// Grid control
1000 .Name( "common.Control.gridFast1" )
1001 .Scope( AS_GLOBAL )
1002 .DefaultHotkey( MD_ALT + '1' )
1003 .LegacyHotkeyName( "Switch Grid To Fast Grid1" )
1004 .FriendlyName( _( "Switch to Fast Grid 1" ) ) );
1005
1007 .Name( "common.Control.gridFast2" )
1008 .Scope( AS_GLOBAL )
1009 .DefaultHotkey( MD_ALT + '2' )
1010 .LegacyHotkeyName( "Switch Grid To Fast Grid2" )
1011 .FriendlyName( _( "Switch to Fast Grid 2" ) ) );
1012
1014 .Name( "common.Control.gridFastCycle" )
1015 .Scope( AS_GLOBAL )
1016 .DefaultHotkey( MD_ALT + '4' )
1017 .LegacyHotkeyName( "Switch Grid To Next Fast Grid" )
1018 .FriendlyName( _( "Cycle Fast Grid" ) ) );
1019
1021 .Name( "common.Control.gridNext" )
1022 .Scope( AS_GLOBAL )
1023 .DefaultHotkey( 'N' )
1024 .LegacyHotkeyName( "Switch Grid To Next" )
1025 .FriendlyName( _("Switch to Next Grid" ) ) );
1026
1028 .Name( "common.Control.gridPrev" )
1029 .Scope( AS_GLOBAL )
1030 .DefaultHotkey( MD_SHIFT + 'N' )
1031 .LegacyHotkeyName( "Switch Grid To Previous" )
1032 .FriendlyName( _( "Switch to Previous Grid" ) ) );
1033
1035 .Name( "common.Control.gridSetOrigin" )
1036 .Scope( AS_GLOBAL )
1037 .LegacyHotkeyName( "Set Grid Origin" )
1038 .FriendlyName( _( "Grid Origin" ) )
1039 .Tooltip( _( "Place the grid origin point" ) )
1040 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1042 .Parameter<VECTOR2D*>( nullptr ) );
1043
1045 .Name( "common.Control.gridResetOrigin" )
1046 .Scope( AS_GLOBAL )
1047 .LegacyHotkeyName( "Reset Grid Origin" )
1048 .FriendlyName( _( "Reset Grid Origin" ) ) );
1049
1051 .Name( "common.Control.gridPreset" )
1052 .Scope( AS_GLOBAL )
1053 .Parameter<int>( 0 ) ); // Default to the 1st element of the list
1054
1056 .Name( "common.Control.toggleGrid" )
1057 .Scope( AS_GLOBAL)
1058 .FriendlyName( _( "Show Grid" ) )
1059 .Tooltip( _( "Display background grid in the edit window" ) )
1060 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1061 .Icon( BITMAPS::grid ) );
1062
1064 .Name( "common.Control.toggleGridOverrides" )
1065 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'G' )
1066 .Scope( AS_GLOBAL)
1067 .FriendlyName( _( "Grid Overrides" ) )
1068 .Tooltip( _( "Enables item-specific grids that override the current grid" ) )
1069 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1070 .Icon( BITMAPS::grid_override ) );
1071
1073 .Name( "common.Control.editGrids" )
1074 .Scope( AS_GLOBAL )
1075 .FriendlyName( _( "Edit Grids..." ) )
1076 .Tooltip( _( "Edit grid definitions" ) )
1077 .Icon( BITMAPS::grid_select ) );
1078
1080 .Name( "common.Control.editGridOrigin" )
1081 .Scope( AS_GLOBAL )
1082 .FriendlyName( _( "Grid Origin..." ) )
1083 .Tooltip( _( "Set the grid origin point" ) )
1084 .Icon( BITMAPS::grid_select_axis ) );
1085
1087 .Name( "common.Control.imperialUnits" )
1088 .Scope( AS_GLOBAL )
1089 .FriendlyName( _( "Inches" ) )
1090 .Icon( BITMAPS::unit_inch )
1091 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1092 .Flags( AF_NONE )
1093 .Parameter( EDA_UNITS::INCH ) );
1094
1096 .Name( "common.Control.mils" )
1097 .Scope( AS_GLOBAL )
1098 .FriendlyName( _( "Mils" ) )
1099 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1100 .Icon( BITMAPS::unit_mil )
1101 .Flags( AF_NONE )
1102 .Parameter( EDA_UNITS::MILS ) );
1103
1105 .Name( "common.Control.metricUnits" )
1106 .Scope( AS_GLOBAL )
1107 .FriendlyName( _( "Millimeters" ) )
1108 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1109 .Icon( BITMAPS::unit_mm )
1110 .Flags( AF_NONE )
1111 .Parameter( EDA_UNITS::MM ) );
1112
1114 .Name( "common.Control.updateUnits" )
1115 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1116 .Scope( AS_GLOBAL ) );
1117
1119 .Name( "common.Control.updatePreferences" )
1120 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1121 .Scope( AS_GLOBAL ) );
1122
1124 .Name( "common.Control.selectColumns" )
1125 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1126 .Scope( AS_GLOBAL )
1127 .FriendlyName( _( "Select Columns..." ) ) );
1128
1130 .Name( "common.Control.toggleUnits" )
1131 .Scope( AS_GLOBAL )
1132 .DefaultHotkey( MD_CTRL + 'U' )
1133 .LegacyHotkeyName( "Switch Units" )
1134 .FriendlyName( _( "Switch units" ) )
1135 .Tooltip( _( "Switch between imperial and metric units" ) )
1136 .Icon( BITMAPS::unit_mm ) );
1137
1139 .Name( "common.Control.togglePolarCoords" )
1140 .Scope( AS_GLOBAL )
1141 .FriendlyName( _( "Polar Coordinates" ) )
1142 .Tooltip( _( "Switch between polar and cartesian coordinate systems" ) )
1143 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1144 .Icon( BITMAPS::polar_coord ) );
1145
1147 .Name( "common.Control.resetLocalCoords" )
1148 .Scope( AS_GLOBAL )
1149 .DefaultHotkey( ' ' )
1150 .LegacyHotkeyName( "Reset Local Coordinates" )
1151 .FriendlyName( _( "Reset Local Coordinates" ) ) );
1152
1154 .Name( "common.Control.toggleCursor" )
1155 .Scope( AS_GLOBAL )
1156 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1157 .LegacyHotkeyName( "Toggle Cursor Display (Modern Toolset only)" )
1158 .FriendlyName( _( "Always Show Crosshairs" ) )
1159 .Tooltip( _( "Display crosshairs even when not drawing objects" ) )
1160 .Icon( BITMAPS::cursor ) );
1161
1163 .Name( "common.Control.toggleCursorStyle" )
1164 .Scope( AS_GLOBAL )
1165 .FriendlyName( _( "Full-Window Crosshairs" ) )
1166 .Tooltip( _( "Switch display of full-window crosshairs" ) )
1167 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1168 .Icon( BITMAPS::cursor_shape ) );
1169
1171 .Name( "common.Control.highContrastMode" )
1172 .Scope( AS_GLOBAL )
1173 .LegacyHotkeyName( "Toggle High Contrast Mode" )
1174 .FriendlyName( _( "Inactive Layer View Mode" ) )
1175 .Tooltip( _( "Toggle inactive layers between normal and dimmed" ) )
1176 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1177 .Icon( BITMAPS::contrast_mode ) );
1178
1180 .Name( "common.Control.highContrastModeCycle" )
1181 .Scope( AS_GLOBAL )
1182 .DefaultHotkey( 'H' )
1183 .FriendlyName( _( "Inactive Layer View Mode (3-state)" ) )
1184 .Tooltip( _( "Cycle inactive layers between normal, dimmed, and hidden" ) )
1185 .Icon( BITMAPS::contrast_mode ) );
1186
1188 .Name( "common.Control.toggleBoundingBoxes" )
1189 .Scope( AS_GLOBAL )
1190 .FriendlyName( _( "Draw Bounding Boxes" ) )
1191 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1193
1195 .Name( "common.InteractiveSelection.selectionTool" )
1196 .Scope( AS_GLOBAL )
1197 .FriendlyName( _( "Select item(s)" ) )
1198 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1199 .Icon( BITMAPS::cursor )
1200 .Flags( AF_ACTIVATE ) );
1201
1203 .Name( "common.Interactive.measureTool" )
1204 .Scope( AS_GLOBAL )
1205 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'M' )
1206 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1207 .LegacyHotkeyName( "Measure Distance (Modern Toolset only)" )
1208 .FriendlyName( _( "Measure Tool" ) )
1209 .Tooltip( _( "Interactively measure distance between points" ) )
1210 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1211 .Icon( BITMAPS::measurement )
1212 .Flags( AF_ACTIVATE ) );
1213
1215 .Name( "common.InteractivePicker.pickerTool" )
1216 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1217 .Scope( AS_GLOBAL )
1218 .Flags( AF_ACTIVATE ) );
1219
1221 .Name( "common.InteractivePicker.pickerSubTool" )
1222 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1223 .Scope( AS_GLOBAL ) );
1224
1226 .Name( "common.Control.showProjectManager" )
1227 .Scope( AS_GLOBAL )
1228 .FriendlyName( _( "Switch to Project Manager" ) )
1229 .Tooltip( _( "Show project window" ) )
1230 .Icon( BITMAPS::icon_kicad_24 ) );
1231
1233 .Name( "common.Control.show3DViewer" )
1234 .Scope( AS_GLOBAL )
1235 .DefaultHotkey( MD_ALT + '3' )
1236 .LegacyHotkeyName( "3D Viewer" )
1237 .FriendlyName( _( "3D Viewer" ) )
1238 .Tooltip( _( "Show 3D viewer window" ) )
1239 .Icon( BITMAPS::three_d ) );
1240
1242 .Name( "common.Control.showSymbolBrowser" )
1243 .Scope( AS_GLOBAL )
1244 .FriendlyName( _( "Symbol Library Browser" ) )
1246 .Flags( AF_NONE)
1247 .Parameter( FRAME_SCH_VIEWER ) );
1248
1250 .Name( "common.Control.showSymbolEditor" )
1251 .Scope( AS_GLOBAL )
1252 .FriendlyName( _( "Symbol Editor" ) )
1253 .Tooltip( _( "Create, delete and edit schematic symbols" ) )
1254 .Icon( BITMAPS::libedit )
1255 .Flags( AF_NONE )
1256 .Parameter( FRAME_SCH_SYMBOL_EDITOR ) );
1257
1259 .Name( "common.Control.showFootprintBrowser" )
1260 .Scope( AS_GLOBAL )
1261 .FriendlyName( _( "Footprint Library Browser" ) )
1263 .Flags( AF_NONE )
1264 .Parameter( FRAME_FOOTPRINT_VIEWER ) );
1265
1267 .Name( "common.Control.showFootprintEditor" )
1268 .Scope( AS_GLOBAL )
1269 .FriendlyName( _( "Footprint Editor" ) )
1270 .Tooltip( _( "Create, delete and edit board footprints" ) )
1271 .Icon( BITMAPS::module_editor )
1272 .Flags( AF_NONE )
1273 .Parameter( FRAME_FOOTPRINT_EDITOR ) );
1274
1276 .Name( "common.Control.showCalculatorTools" )
1277 .Scope( AS_GLOBAL )
1278 .FriendlyName( _( "Calculator Tools" ) )
1279 .Tooltip( _( "Run component calculations, track width calculations, etc." ) )
1281 .Flags( AF_NONE )
1282 .Parameter( FRAME_CALC ) );
1283
1285 .Name( "common.Control.showProperties" )
1286 .Scope( AS_GLOBAL )
1287 .FriendlyName( _( "Properties" ) )
1288 .Tooltip( _( "Show/hide the properties manager" ) )
1289 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1290 .Icon( BITMAPS::tools ) );
1291
1293 .Name( "common.Control.showDatasheet" )
1294 .Scope( AS_GLOBAL )
1295 .DefaultHotkey( 'D' )
1296 .LegacyHotkeyName( "Show Datasheet" )
1297 .FriendlyName( _( "Show Datasheet" ) )
1298 .Tooltip( _( "Open the datasheet in a browser" ) )
1299 .Icon( BITMAPS::datasheet ) );
1300
1302 .Name( "common.Control.updatePcbFromSchematic" )
1303 .Scope( AS_GLOBAL )
1304 .DefaultHotkey( WXK_F8 )
1305 .LegacyHotkeyName( "Update PCB from Schematic" )
1306 .FriendlyName( _( "Update PCB from Schematic..." ) )
1307 .Tooltip( _( "Update PCB with changes made to schematic" ) )
1309
1311 .Name( "common.Control.updateSchematicFromPCB" )
1312 .Scope( AS_GLOBAL )
1313 .FriendlyName( _( "Update Schematic from PCB..." ) )
1314 .Tooltip( _( "Update schematic with changes made to PCB" ) )
1316
1318 .Name( "common.SuiteControl.openPreferences" )
1319 .Scope( AS_GLOBAL )
1320 .DefaultHotkey( MD_CTRL + ',' )
1321 .FriendlyName( _( "Preferences..." ) )
1322 .Tooltip( _( "Show preferences for all open tools" ) )
1323 .Icon( BITMAPS::preference )
1324 .UIId( wxID_PREFERENCES ) );
1325
1327 .Name( "common.SuiteControl.configurePaths" )
1328 .Scope( AS_GLOBAL )
1329 .FriendlyName( _( "Configure Paths..." ) )
1330 .Tooltip( _( "Edit path configuration environment variables" ) )
1331 .Icon( BITMAPS::path ) );
1332
1334 .Name( "common.SuiteControl.showSymbolLibTable" )
1335 .Scope( AS_GLOBAL )
1336 .FriendlyName( _( "Manage Symbol Libraries..." ) )
1337 .Tooltip( _( "Edit the global and project symbol library lists" ) )
1338 .Icon( BITMAPS::library_table ) );
1339
1341 .Name( "common.SuiteControl.showFootprintLibTable" )
1342 .Scope( AS_GLOBAL )
1343 .FriendlyName( _( "Manage Footprint Libraries..." ) )
1344 .Tooltip( _( "Edit the global and project footprint library lists" ) )
1345 .Icon( BITMAPS::library_table ) );
1346
1348 .Name( "common.SuiteControl.showDesignBLockLibTable" )
1349 .Scope( AS_GLOBAL )
1350 .FriendlyName( _( "Manage Design Block Libraries..." ) )
1351 .Tooltip( _( "Edit the global and project design block library lists" ) )
1352 .Icon( BITMAPS::library_table ) );
1353
1355 .Name( "common.SuiteControl.gettingStarted" )
1356 .Scope( AS_GLOBAL )
1357 .FriendlyName( _( "Getting Started with KiCad" ) )
1358 .Tooltip( _( "Open \"Getting Started in KiCad\" guide for beginners" ) )
1359 .Icon( BITMAPS::help ) );
1360
1362 .Name( "common.SuiteControl.help" )
1363 .Scope( AS_GLOBAL )
1364 .FriendlyName( _( "Help" ) )
1365 .Tooltip( _( "Open product documentation in a web browser" ) )
1366 .Icon( BITMAPS::help_online ) );
1367
1369 .Name( "common.SuiteControl.about" )
1370 .Scope( AS_GLOBAL )
1371 .FriendlyName( _( "About KiCad" ) )
1372 .UIId( wxID_ABOUT )
1373 .Icon( BITMAPS::about ) );
1374
1376 .Name( "common.SuiteControl.listHotKeys" )
1377 .Scope( AS_GLOBAL )
1378 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_F1 ) )
1379 .LegacyHotkeyName( "List Hotkeys" )
1380 .FriendlyName( _( "List Hotkeys..." ) )
1381 .Tooltip( _( "Displays current hotkeys table and corresponding commands" ) )
1382 .Icon( BITMAPS::hotkeys ) );
1383
1385 .Name( "common.SuiteControl.getInvolved" )
1386 .Scope( AS_GLOBAL )
1387 .FriendlyName( _( "Get Involved" ) )
1388 .Tooltip( _( "Open \"Contribute to KiCad\" in a web browser" ) )
1389 .Icon( BITMAPS::info ) );
1390
1392 .Name( "common.SuiteControl.donate" )
1393 .Scope( AS_GLOBAL )
1394 .FriendlyName( _( "Donate" ) )
1395 .Tooltip( _( "Open \"Donate to KiCad\" in a web browser" ) ) );
1396
1398 .Name( "common.SuiteControl.reportBug" )
1399 .Scope( AS_GLOBAL )
1400 .FriendlyName( _( "Report Bug" ) )
1401 .Tooltip( _( "Report a problem with KiCad" ) )
1402 .Icon( BITMAPS::bug ) );
1403
1405 .Name( "common.Control.ddaddLibrary" )
1406 .Scope( AS_GLOBAL ) );
1407
1408// API
1409
1411 .Name( "common.API.pluginsReload" )
1412 .Scope( AS_GLOBAL )
1413 .FriendlyName( _( "Refresh Plugins" ) )
1414 .Tooltip( _( "Reload all python plugins and refresh plugin menus" ) )
1415 .Icon( BITMAPS::reload ) );
1416
1417// Embedding Files
1418
1420 .Name( "common.Embed.embededFile" )
1421 .Scope( AS_GLOBAL )
1422 .FriendlyName( _( "Embedded Files" ) )
1423 .Tooltip( _( "Manage embedded files" ) ) );
1424
1426 .Name( "common.Embed.removeFile" )
1427 .Scope( AS_GLOBAL )
1428 .FriendlyName( _( "Remove File" ) )
1429 .Tooltip( _( "Remove an embedded file" ) ) );
1430
1432 .Name( "common.Embed.extractFile" )
1433 .Scope( AS_GLOBAL )
1434 .FriendlyName( _( "Extract File" ) )
1435 .Tooltip( _( "Extract an embedded file" ) ) );
1436
1437// System-wide selection Events
1438
1440 "common.Interactive.pointSelected" );
1441const TOOL_EVENT EVENTS::SelectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.selected" );
1442const TOOL_EVENT EVENTS::UnselectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.unselected" );
1443const TOOL_EVENT EVENTS::ClearedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.cleared" );
1444
1446 "common.Interactive.connectivityChanged" );
1447
1449 "common.Interactive.modified" );
1450const TOOL_EVENT EVENTS::SelectedItemsMoved( TC_MESSAGE, TA_ACTION, "common.Interactive.moved" );
1452 "common.Interactive.inhibit" );
1454 "common.Interactive.uninhibit" );
1455
1457 "common.Interactive.disambiguate" );
1458
1460 "common.Interactive.gridChangedByKey" );
1461
1462const TOOL_EVENT
1464 "common.Interactive.contrastModeChangedByKeyEvent" );
1465
1466// System-wide undo/redo Events
1467
#define _(s)
Definition: actions.cpp:39
@ KEEP_ENDPOINTS_OR_START_DIRECTION
Whe editing endpoints, the other end remains in place.
@ KEEP_CENTER_ENDS_ADJUST_ANGLE
When editing endpoints, only the angle is adjusted.
@ KEEP_CENTER_ADJUST_ANGLE_RADIUS
When editing endpoints, the angle and radius are adjusted.
@ grid_override
@ zoom_center_on_screen
@ text_align_right
@ table_add_row_above
@ cursor_shape
@ delete_cursor
@ zoom_in_vertically
@ directory_browser
@ table_add_column_before
@ table_add_column_after
@ icon_kicad_24
@ gerbview_show_negative_objects
@ table_add_row_below
@ text_align_left
@ module_editor
@ text_align_center
@ grid_select_axis
@ find_replace
@ table_delete_column
@ icon_pcbcalculator_24
@ print_button
@ table_select_column
@ zoom_in_horizontally
@ marker_previous
@ paste_special
@ contrast_mode
@ library_browser
@ table_delete_row
@ zoom_out_vertically
@ group_ungroup
@ group_remove
@ zoom_fit_in_page
@ table_select
@ directory_open
@ table_select_row
@ update_pcb_from_sch
@ library_table
@ zoom_fit_to_objects
@ marker_exclude
@ zoom_out_horizontally
@ update_sch_from_pcb
@ restore_from_file
static TOOL_ACTION addRowAbove
Definition: actions.h:104
static TOOL_ACTION showCalculatorTools
Definition: actions.h:259
static TOOL_ACTION addColBefore
Definition: actions.h:106
static TOOL_ACTION gridProperties
Definition: actions.h:200
static TOOL_ACTION decrementPrimary
Definition: actions.h:96
static TOOL_ACTION pickNewGroupMember
Definition: actions.h:244
static TOOL_ACTION gridFastCycle
Definition: actions.h:192
static TOOL_ACTION updatePcbFromSchematic
Definition: actions.h:260
static TOOL_ACTION toggleGrid
Definition: actions.h:198
static TOOL_ACTION paste
Definition: actions.h:80
static TOOL_ACTION pickerSubTool
Definition: actions.h:250
static TOOL_ACTION excludeMarker
Definition: actions.h:128
static TOOL_ACTION about
Definition: actions.h:283
static TOOL_ACTION cancelInteractive
Definition: actions.h:72
static TOOL_ACTION nextMarker
Definition: actions.h:127
static TOOL_ACTION zoomRedraw
Definition: actions.h:131
static TOOL_ACTION millimetersUnits
Definition: actions.h:206
static TOOL_ACTION unselectAll
Definition: actions.h:83
static TOOL_ACTION gridFast1
Definition: actions.h:190
static TOOL_ACTION openWithTextEditor
Definition: actions.h:68
static TOOL_ACTION gridPrev
Definition: actions.h:194
static TOOL_ACTION revert
Definition: actions.h:62
static TOOL_ACTION show3DViewer
Definition: actions.h:254
static TOOL_ACTION showLibraryTree
Definition: actions.h:161
static TOOL_ACTION reportBug
Definition: actions.h:287
static TOOL_ACTION decrementSecondary
Definition: actions.h:98
static TOOL_ACTION replaceAll
Definition: actions.h:122
static TOOL_ACTION updatePreferences
Definition: actions.h:272
static TOOL_ACTION selectItem
Select an item (specified as the event parameter).
Definition: actions.h:223
static TOOL_ACTION cursorLeft
Definition: actions.h:172
static TOOL_ACTION zoomOutCenter
Definition: actions.h:135
static TOOL_ACTION togglePolarCoords
Definition: actions.h:209
static TOOL_ACTION unselectItem
Definition: actions.h:224
static TOOL_ACTION saveAs
Definition: actions.h:59
static TOOL_ACTION addLibrary
Definition: actions.h:56
static TOOL_ACTION copy
Definition: actions.h:78
static TOOL_ACTION zoomIn
Definition: actions.h:132
static TOOL_ACTION pluginsReload
Definition: actions.h:290
static TOOL_ACTION extractFile
Definition: actions.h:294
static TOOL_ACTION cursorLeftFast
Definition: actions.h:177
static TOOL_ACTION deleteRows
Definition: actions.h:108
static TOOL_ACTION zoomRedo
Definition: actions.h:147
static TOOL_ACTION selectionCursor
Select a single item under the cursor position.
Definition: actions.h:217
static TOOL_ACTION addRowBelow
Definition: actions.h:105
static TOOL_ACTION pickerTool
Definition: actions.h:249
static TOOL_ACTION toggleSimulationSidePanel
Definition: actions.h:165
static TOOL_ACTION cycleArcEditMode
Definition: actions.h:268
static TOOL_ACTION gridPreset
Definition: actions.h:197
static TOOL_ACTION group
Definition: actions.h:235
static TOOL_ACTION gridResetOrigin
Definition: actions.h:196
static TOOL_ACTION updateUnits
Definition: actions.h:207
static TOOL_ACTION updateFind
Definition: actions.h:123
static TOOL_ACTION showSymbolLibTable
Definition: actions.h:278
static TOOL_ACTION openDirectory
Definition: actions.h:69
static TOOL_ACTION deleteColumns
Definition: actions.h:109
static TOOL_ACTION showSymbolEditor
Definition: actions.h:256
static TOOL_ACTION showSymbolBrowser
Definition: actions.h:255
static TOOL_ACTION pasteSpecial
Definition: actions.h:81
static TOOL_ACTION groupEnter
Definition: actions.h:239
static TOOL_ACTION findPrevious
Definition: actions.h:119
static TOOL_ACTION unmergeCells
Definition: actions.h:111
static TOOL_ACTION showDatasheet
Definition: actions.h:263
static TOOL_ACTION groupProperties
Definition: actions.h:243
static TOOL_ACTION zoomFitSelection
Definition: actions.h:143
static TOOL_ACTION selectColumns
Definition: actions.h:102
static TOOL_ACTION centerSelection
Definition: actions.h:149
static TOOL_ACTION mergeCells
Definition: actions.h:110
static TOOL_ACTION donate
Definition: actions.h:285
static TOOL_ACTION cursorDown
Definition: actions.h:171
static TOOL_ACTION zoomOut
Definition: actions.h:133
static TOOL_ACTION pointEditorArcKeepCenter
Definition: actions.h:269
static TOOL_ACTION addColAfter
Definition: actions.h:107
static TOOL_ACTION editTable
Definition: actions.h:112
static TOOL_ACTION findAndReplace
Definition: actions.h:117
static TOOL_ACTION milsUnits
Definition: actions.h:205
static TOOL_ACTION highContrastModeCycle
Definition: actions.h:153
static TOOL_ACTION listHotKeys
Definition: actions.h:284
static TOOL_ACTION cursorRightFast
Definition: actions.h:178
static TOOL_ACTION ungroup
Definition: actions.h:236
static TOOL_ACTION openPreferences
Definition: actions.h:276
static TOOL_ACTION pinLibrary
Definition: actions.h:159
static TOOL_ACTION toggleBoundingBoxes
Definition: actions.h:154
static TOOL_ACTION replaceAndFindNext
Definition: actions.h:121
static TOOL_ACTION showContextMenu
Definition: actions.h:74
static TOOL_ACTION toggleCursor
Definition: actions.h:150
static TOOL_ACTION zoomOutHorizontally
Definition: actions.h:137
static TOOL_ACTION getInvolved
Definition: actions.h:286
static TOOL_ACTION rightJustify
Definition: actions.h:89
static TOOL_ACTION showFootprintLibTable
Definition: actions.h:279
static TOOL_ACTION centerContents
Definition: actions.h:148
static TOOL_ACTION plot
Definition: actions.h:65
static TOOL_ACTION pointEditorArcKeepRadius
Definition: actions.h:271
static TOOL_ACTION zoomCenter
Definition: actions.h:140
static TOOL_ACTION panDown
Definition: actions.h:185
static TOOL_ACTION selectLibTreeColumns
Definition: actions.h:273
static TOOL_ACTION open
Definition: actions.h:57
static TOOL_ACTION saveAll
Definition: actions.h:61
static TOOL_ACTION findNext
Definition: actions.h:118
static TOOL_ACTION zoomOutVertically
Definition: actions.h:139
static TOOL_ACTION cursorDblClick
Definition: actions.h:181
static TOOL_ACTION pageSettings
Definition: actions.h:63
static TOOL_ACTION showSearch
Definition: actions.h:115
static TOOL_ACTION undo
Definition: actions.h:75
static TOOL_ACTION selectionActivate
Activation of the selection tool.
Definition: actions.h:214
static TOOL_ACTION incrementSecondary
Definition: actions.h:97
static TOOL_ACTION cursorDownFast
Definition: actions.h:176
static TOOL_ACTION selectionMenu
Run a selection menu to select from a list of items.
Definition: actions.h:232
static TOOL_ACTION removeFile
Cursor control event types.
Definition: actions.h:295
static TOOL_ACTION prevMarker
Definition: actions.h:126
static TOOL_ACTION reselectItem
Definition: actions.h:225
static TOOL_ACTION selectRows
Definition: actions.h:101
static TOOL_ACTION duplicate
Definition: actions.h:84
static TOOL_ACTION toggleConsole
Definition: actions.h:164
static TOOL_ACTION inchesUnits
Definition: actions.h:204
static TOOL_ACTION highContrastMode
Definition: actions.h:152
static TOOL_ACTION embeddedFiles
Definition: actions.h:293
static TOOL_ACTION incrementPrimary
Definition: actions.h:95
static TOOL_ACTION cursorUpFast
Definition: actions.h:175
static TOOL_ACTION toggleCursorStyle
Definition: actions.h:151
static TOOL_ACTION gridOrigin
Definition: actions.h:201
static TOOL_ACTION measureTool
Definition: actions.h:248
static TOOL_ACTION zoomInHorizontally
Definition: actions.h:136
static TOOL_ACTION panLeft
Definition: actions.h:186
static TOOL_ACTION updateMenu
Definition: actions.h:266
static TOOL_ACTION activatePointEditor
Definition: actions.h:267
static TOOL_ACTION libraryTreeSearch
Definition: actions.h:167
static TOOL_ACTION doDelete
Definition: actions.h:85
static TOOL_ACTION quit
Definition: actions.h:66
static TOOL_ACTION selectionTool
Definition: actions.h:247
static TOOL_ACTION save
Definition: actions.h:58
static TOOL_ACTION cursorClick
Definition: actions.h:180
static TOOL_ACTION zoomFitScreen
Definition: actions.h:141
static TOOL_ACTION redo
Definition: actions.h:76
static TOOL_ACTION zoomPreset
Definition: actions.h:144
static TOOL_ACTION deleteTool
Definition: actions.h:86
static TOOL_ACTION hideLibraryTree
Definition: actions.h:162
static TOOL_ACTION zoomTool
Definition: actions.h:145
static TOOL_ACTION updateSchematicFromPcb
Definition: actions.h:261
static TOOL_ACTION unpinLibrary
Definition: actions.h:160
static TOOL_ACTION increment
Definition: actions.h:94
static TOOL_ACTION selectionClear
Clear the current selection.
Definition: actions.h:220
static TOOL_ACTION leftJustify
Definition: actions.h:87
static TOOL_ACTION panUp
Definition: actions.h:184
static TOOL_ACTION showDesignBlockLibTable
Definition: actions.h:280
static TOOL_ACTION showFootprintEditor
Definition: actions.h:258
static TOOL_ACTION print
Definition: actions.h:64
static TOOL_ACTION findNextMarker
Definition: actions.h:120
static TOOL_ACTION showProperties
Definition: actions.h:262
static TOOL_ACTION doNew
Definition: actions.h:54
static TOOL_ACTION zoomFitObjects
Definition: actions.h:142
static TOOL_ACTION toggleUnits
Definition: actions.h:208
static TOOL_ACTION zoomInCenter
Definition: actions.h:134
static TOOL_ACTION newLibrary
Definition: actions.h:55
static TOOL_ACTION panRight
Definition: actions.h:187
static TOOL_ACTION saveCopy
Definition: actions.h:60
static TOOL_ACTION cut
Definition: actions.h:77
static TOOL_ACTION selectTable
Definition: actions.h:103
static TOOL_ACTION gridSetOrigin
Definition: actions.h:195
static TOOL_ACTION addToGroup
Definition: actions.h:237
static TOOL_ACTION gridFast2
Definition: actions.h:191
static TOOL_ACTION expandAll
Definition: actions.h:90
static TOOL_ACTION removeFromGroup
Definition: actions.h:238
static TOOL_ACTION zoomInVertically
Definition: actions.h:138
static TOOL_ACTION ddAddLibrary
Definition: actions.h:67
static TOOL_ACTION configurePaths
Definition: actions.h:277
static TOOL_ACTION showProjectManager
Definition: actions.h:253
static TOOL_ACTION gettingStarted
Definition: actions.h:281
static TOOL_ACTION copyAsText
Definition: actions.h:79
static TOOL_ACTION cursorUp
Cursor control with keyboard.
Definition: actions.h:170
static TOOL_ACTION refreshPreview
Definition: actions.h:156
static TOOL_ACTION zoomUndo
Definition: actions.h:146
static TOOL_ACTION groupLeave
Definition: actions.h:240
static TOOL_ACTION showFootprintBrowser
Definition: actions.h:257
static TOOL_ACTION toggleGridOverrides
Definition: actions.h:199
static TOOL_ACTION finishInteractive
Definition: actions.h:73
static TOOL_ACTION gridNext
Definition: actions.h:193
static TOOL_ACTION cursorRight
Definition: actions.h:173
static TOOL_ACTION selectAll
Definition: actions.h:82
static TOOL_ACTION pointEditorArcKeepEndpoint
Definition: actions.h:270
static TOOL_ACTION unselectItems
Definition: actions.h:229
static TOOL_ACTION selectItems
Select a list of items (specified as the event parameter)
Definition: actions.h:228
static TOOL_ACTION help
Definition: actions.h:282
static TOOL_ACTION find
Definition: actions.h:116
static TOOL_ACTION collapseAll
Definition: actions.h:91
static TOOL_ACTION resetLocalCoords
Definition: actions.h:210
static TOOL_ACTION centerJustify
Definition: actions.h:88
static const TOOL_EVENT DisambiguatePoint
Used for hotkey feedback.
Definition: actions.h:358
static const TOOL_EVENT ClearedEvent
Definition: actions.h:343
static const TOOL_EVENT InhibitSelectionEditing
Definition: actions.h:354
static const TOOL_EVENT GridChangedByKeyEvent
Definition: actions.h:361
static const TOOL_EVENT UndoRedoPreEvent
Definition: actions.h:364
static const TOOL_EVENT SelectedEvent
Definition: actions.h:341
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
Definition: actions.h:348
static const TOOL_EVENT UninhibitSelectionEditing
Used to inform tool that it should display the disambiguation menu.
Definition: actions.h:355
static const TOOL_EVENT UndoRedoPostEvent
Definition: actions.h:365
static const TOOL_EVENT PointSelectedEvent
Definition: actions.h:340
static const TOOL_EVENT SelectedItemsMoved
Used to inform tools that the selection should temporarily be non-editable.
Definition: actions.h:351
static const TOOL_EVENT ContrastModeChangedByKeyEvent
Definition: actions.h:362
static const TOOL_EVENT ConnectivityChangedEvent
Selected item had a property changed (except movement)
Definition: actions.h:345
static const TOOL_EVENT UnselectedEvent
Definition: actions.h:342
Build up the properties of a TOOL_ACTION in an incremental manner that is static-construction safe.
Definition: tool_action.h:118
Represent a single user action.
Definition: tool_action.h:304
Generic, UI-independent tool event.
Definition: tool_event.h:168
The common library.
@ FRAME_CALC
Definition: frame_type.h:63
@ FRAME_SCH_SYMBOL_EDITOR
Definition: frame_type.h:35
@ FRAME_FOOTPRINT_VIEWER
Definition: frame_type.h:45
@ FRAME_SCH_VIEWER
Definition: frame_type.h:36
@ FRAME_FOOTPRINT_EDITOR
Definition: frame_type.h:43
@ TOGGLE
Action is a toggle button on the toolbar.
@ CANCEL
Action can be cancelled by clicking the toolbar button again.
@ HIDDEN
Action is hidden from the toolbar.
@ AS_GLOBAL
Global action (toolbar/main menu event, global shortcut)
Definition: tool_action.h:49
@ AF_ACTIVATE
Action activates a tool.
Definition: tool_action.h:56
@ AF_NONE
Definition: tool_action.h:55
@ TA_UNDO_REDO_POST
This event is sent after undo/redo command is performed.
Definition: tool_event.h:109
@ TA_ACTION
Tool action (allows one to control tools).
Definition: tool_event.h:112
@ TC_MESSAGE
Definition: tool_event.h:58
@ MD_ALT
Definition: tool_event.h:145
@ MD_CTRL
Definition: tool_event.h:144
@ MD_SHIFT
Definition: tool_event.h:143