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