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, see <https://www.gnu.org/licenses/>.
19 */
20
21#include <bitmaps.h>
22#include <common.h>
23#include <eda_units.h>
24#include <frame_type.h>
26#include <tool/actions.h>
27#include <tool/tool_action.h>
28#include <tool/tool_event.h>
29#include <tool/selection_tool.h>
30
31// Actions, being statically-defined, require specialized I18N handling. We continue to
32// use the _() macro so that string harvesting by the I18N framework doesn't have to be
33// specialized, but we don't translate on initialization and instead do it in the getters.
34
35#undef _
36#define _(s) s
37
39 .Name( "common.Control.new" )
40 .Scope( AS_GLOBAL )
41 .DefaultHotkey( MD_CTRL + 'N' )
42 .LegacyHotkeyName( "New" )
43 .FriendlyName( _( "New..." ) )
44 .Tooltip( _( "Create a new document in the editor" ) )
45 .Icon( BITMAPS::new_generic ) );
46
48 .Name( "common.Control.newLibrary" )
49 .Scope( AS_GLOBAL )
50 .FriendlyName( _( "New Library..." ) )
51 .Tooltip( _( "Create a new library folder" ) )
52 .Icon( BITMAPS::new_library ) );
53
55 .Name( "common.Control.addLibrary" )
56 .Scope( AS_GLOBAL )
57 .FriendlyName( _( "Add Library..." ) )
58 .Tooltip( _( "Add an existing library folder" ) )
59 .Icon( BITMAPS::add_library ) );
60
62 .Name( "common.Control.open" )
63 .Scope( AS_GLOBAL )
64 .DefaultHotkey( MD_CTRL + 'O' )
65 .LegacyHotkeyName( "Open" )
66 .FriendlyName( _( "Open..." ) )
67 .Tooltip( _( "Open existing document" ) )
68 .Icon( BITMAPS::directory_open ) );
69
71 .Name( "common.Control.openWithTextEditor" )
72 .Scope( AS_GLOBAL )
73 .FriendlyName( _( "Edit in a Text Editor..." ) )
74 .Tooltip( _( "Open a library file with a text editor" ) )
75 .Icon( BITMAPS::editor ) );
76
78 .Name( "common.Control.openDirectory" )
79 .Scope( AS_GLOBAL )
80 .FriendlyName( _( "Open in file explorer..." ) )
81 .Tooltip( _( "Open a library file with system file explorer" ) )
83
85 .Name( "common.Control.save" )
86 .Scope( AS_GLOBAL )
87 .DefaultHotkey( MD_CTRL + 'S' )
88 .LegacyHotkeyName( "Save" )
89 .FriendlyName( _( "Save" ) )
90 .Tooltip( _( "Save changes" ) )
91 .Icon( BITMAPS::save ) );
92
94 .Name( "common.Control.saveAs" )
95 .Scope( AS_GLOBAL )
96 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'S' )
97 .LegacyHotkeyName( "Save As" )
98 .FriendlyName( _( "Save As..." ) )
99 .Tooltip( _( "Save current document to another location" ) )
100 .Icon( BITMAPS::save_as ) );
101
103 .Name( "common.Control.saveCopy" )
104 .Scope( AS_GLOBAL )
105 .FriendlyName( _( "Save a Copy..." ) )
106 .Tooltip( _( "Save a copy of the current document to another location" ) )
107 .Icon( BITMAPS::save_as ) );
108
110 .Name( "common.Control.saveAll" )
111 .Scope( AS_GLOBAL )
112 .FriendlyName( _( "Save All" ) )
113 .Tooltip( _( "Save all changes" ) )
114 .Icon( BITMAPS::save_all ) );
115
117 .Name( "common.Control.revert" )
118 .Scope( AS_GLOBAL )
119 .FriendlyName( _( "Revert" ) )
120 .Tooltip( _( "Throw away changes" ) )
122 );
123
125 .Name( "common.Control.pageSettings" )
126 .Scope( AS_GLOBAL )
127 .FriendlyName( _( "Page Settings..." ) )
128 .Tooltip( _( "Settings for paper size and title block info" ) )
129 .Icon( BITMAPS::sheetset ) );
130
132 .Name( "common.Control.print" )
133 .Scope( AS_GLOBAL )
134 .DefaultHotkey( MD_CTRL + 'P' )
135 .LegacyHotkeyName( "Print" )
136 .FriendlyName( _( "Print..." ) )
137 .Icon( BITMAPS::print_button ) );
138
140 .Name( "common.Control.plot" )
141 .Scope( AS_GLOBAL )
142 .FriendlyName( _( "Plot..." ) )
143 .Icon( BITMAPS::plot ) );
144
146 .Name( "common.Control.quit" )
147 .Scope( AS_GLOBAL )
148 .FriendlyName( _( "Quit" ) )
149 .Tooltip( _( "Close the current editor" ) )
150 .Icon( BITMAPS::exit ) );
151
152
153// Selection actions
155 .Name( "common.InteractiveSelection" )
156 .Scope( AS_GLOBAL )
157 // No description, not shown anywhere
158 .Flags( AF_ACTIVATE ) );
159
161 .Name( "common.InteractiveSelection.cursor" )
162 .Scope( AS_GLOBAL )
163 .Parameter<CLIENT_SELECTION_FILTER>( nullptr ) );
164
166 .Name( "common.InteractiveSelection.selectItem" )
167 .Scope( AS_GLOBAL ) );
168
170 .Name( "common.InteractiveSelection.selectItems" )
171 .Scope( AS_GLOBAL ) );
172
174 .Name( "common.InteractiveSelection.unselectItem" )
175 .Scope( AS_GLOBAL ) );
176
178 .Name( "common.InteractiveSelection.unselectItems" )
179 .Scope( AS_GLOBAL ) );
180
182 .Name( "common.InteractiveSelection.reselectItem" )
183 .Scope( AS_GLOBAL ) );
184
186 .Name( "common.InteractiveSelection.clear" )
187 .Scope( AS_GLOBAL ) );
188
190 .Name( "common.InteractiveSelection.selectionMenu" )
191 .Scope( AS_GLOBAL ) );
192
193
194// Group actions
196 .Name( "common.Interactive.group" )
197 .Scope( AS_GLOBAL )
198 .FriendlyName( _( "Group Items" ) )
199 .Tooltip( _( "Group the selected items so that they are treated as a single item" ) )
200 .Icon( BITMAPS::group ) );
201
203 .Name( "common.Interactive.ungroup" )
204 .Scope( AS_GLOBAL )
205 .FriendlyName( _( "Ungroup Items" ) )
206 .Tooltip( _( "Ungroup any selected groups" ) )
207 .Icon( BITMAPS::group_ungroup ) );
208
210 .Name( "common.Interactive.addToGroup" )
211 .Scope( AS_GLOBAL )
212 .FriendlyName( _( "Add Items" ) )
213 .Tooltip( _( "Add items to group" ) )
214 .Icon( BITMAPS::group_remove ) );
215
217 .Name( "common.Interactive.removeFromGroup" )
218 .Scope( AS_GLOBAL )
219 .FriendlyName( _( "Remove Items" ) )
220 .Tooltip( _( "Remove items from group" ) )
221 .Icon( BITMAPS::group_remove ) );
222
224 .Name( "common.Interactive.groupEnter" )
225 .Scope( AS_GLOBAL )
226 .FriendlyName( _( "Enter Group" ) )
227 .Tooltip( _( "Enter the group to edit items" ) )
228 .Icon( BITMAPS::group_enter ) );
229
231 .Name( "common.Interactive.groupLeave" )
232 .Scope( AS_GLOBAL )
233 .FriendlyName( _( "Leave Group" ) )
234 .Tooltip( _( "Leave the current group" ) )
235 .Icon( BITMAPS::group_leave ) );
236
237// GROUP_TOOL
239 .Name( "common.Groups.groupProperties" )
240 .Scope( AS_GLOBAL ) );
241
243 .Name( "common.Groups.selectNewGroupMember" )
244 .Scope( AS_GLOBAL ) );
245
246// Generic Edit Actions
248 .Name( "common.Interactive.cancel" )
249 .Scope( AS_GLOBAL )
250 // ESC key is handled in the dispatcher
251 .FriendlyName( _( "Cancel" ) )
252 .Tooltip( _( "Cancel current tool" ) )
253 .Icon( BITMAPS::cancel )
254 .Flags( AF_NONE ) );
255
257 .Name( "common.Interactive.finish" )
258 .Scope( AS_GLOBAL )
259 .DefaultHotkey( WXK_END )
260 .FriendlyName( _( "Finish" ) )
261 .Tooltip( _( "Finish current tool" ) )
262 .Icon( BITMAPS::checked_ok )
263 .ToolbarState( TOOLBAR_STATE::HIDDEN )
264 .Flags( AF_NONE ) );
265
267 .Name( "common.Control.showContextMenu" )
268 .Scope( AS_GLOBAL )
269 .FriendlyName( _( "Show Context Menu" ) )
270 .Tooltip( _( "Perform the right-mouse-button action" ) )
271 .Flags( AF_NONE )
272 .Parameter( CURSOR_RIGHT_CLICK )
273 .ToolbarState( TOOLBAR_STATE::HIDDEN ) );
274
276 .Name( "common.Interactive.updateMenu" )
277 .ToolbarState( TOOLBAR_STATE::HIDDEN )
278 .Scope( AS_GLOBAL ) );
279
281 .Name( "common.Interactive.undo" )
282 .Scope( AS_GLOBAL )
283 .DefaultHotkey( MD_CTRL + 'Z' )
284 .LegacyHotkeyName( "Undo" )
285 .FriendlyName( _( "Undo" ) )
286 .Icon( BITMAPS::undo ) );
287
289 .Name( "common.Interactive.redo" )
290 .Scope( AS_GLOBAL )
291#if defined( __WXMAC__ )
292 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'Z' )
293#else
294 .DefaultHotkey( MD_CTRL + 'Y' )
295#endif
296 .LegacyHotkeyName( "Redo" )
297 .FriendlyName( _( "Redo" ) )
298 .Icon( BITMAPS::redo ) );
299
300// The following actions need to have a hard-coded UI ID using a wx-specific ID
301// to fix things like search controls in standard file dialogs. If wxWidgets
302// doesn't find these specific IDs somewhere in the menus then it won't enable
303// cut/copy/paste.
305 .Name( "common.Interactive.cut" )
306 .Scope( AS_GLOBAL )
307 .DefaultHotkey( MD_CTRL + 'X' )
308 .LegacyHotkeyName( "Cut" )
309 .FriendlyName( _( "Cut" ) )
310 .Tooltip( _( "Cut selected item(s) to clipboard" ) )
311 .Icon( BITMAPS::cut )
312 .Flags( AF_NONE )
313 .UIId( wxID_CUT ) );
314
316 .Name( "common.Interactive.copy" )
317 .Scope( AS_GLOBAL )
318 .DefaultHotkey( MD_CTRL + 'C' )
319 .LegacyHotkeyName( "Copy" )
320 .FriendlyName( _( "Copy" ) )
321 .Tooltip( _( "Copy selected item(s) to clipboard" ) )
322 .Icon( BITMAPS::copy )
323 .Flags( AF_NONE )
324 .UIId( wxID_COPY ) );
325
327 .Name( "common.Interactive.copyAsText" )
328 .Scope( AS_GLOBAL )
329 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'C' )
330 .FriendlyName( _( "Copy as Text" ) )
331 .Tooltip( _( "Copy selected item(s) to clipboard as text" ) )
332 .Icon( BITMAPS::copy )
333 .Flags( AF_NONE ) );
334
336 .Name( "common.Interactive.paste" )
337 .Scope( AS_GLOBAL )
338 .DefaultHotkey( MD_CTRL + 'V' )
339 .LegacyHotkeyName( "Paste" )
340 .FriendlyName( _( "Paste" ) )
341 .Tooltip( _( "Paste item(s) from clipboard" ) )
342 .Icon( BITMAPS::paste )
343 .Flags( AF_NONE )
344 .UIId( wxID_PASTE ) );
345
347 .Name( "common.Interactive.selectSetRect" )
348 .Scope( AS_GLOBAL )
349 .FriendlyName( _( "Rectangle" ) )
350 .Tooltip( _( "Set selection mode to use rectangle" ) )
351 .ToolbarState( TOOLBAR_STATE::TOGGLE )
352 .Icon( BITMAPS::cursor )
353 .Flags( AF_ACTIVATE ) );
354
356 .Name( "common.Interactive.selectSetLasso" )
357 .Scope( AS_GLOBAL )
358 .FriendlyName( _( "Lasso" ) )
359 .Tooltip( _( "Set selection mode to use polygon lasso" ) )
360 .ToolbarState( TOOLBAR_STATE::TOGGLE )
361 .Icon( BITMAPS::lasso )
362 .Flags( AF_ACTIVATE ) );
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.TableEditor.exportTableCSV" )
573 .ToolbarState( TOOLBAR_STATE::HIDDEN )
574 .Scope( AS_GLOBAL )
575 .FriendlyName( _( "Export Table to CSV" ) )
576 .MenuText( _( "Export Table to CSV..." ) )
577 .Tooltip( _( "Export table contents to CSV file with resolved text variables" ) )
578 .Icon( BITMAPS::export_file ) );
579
581 .Name( "common.Control.activatePointEditor" )
582 .ToolbarState( TOOLBAR_STATE::HIDDEN )
583 .Scope( AS_GLOBAL ) );
584
586 .Name( "pcbnew.PointEditor.arcKeepCenter" )
587 .Scope( AS_GLOBAL )
588 .FriendlyName( _( "Keep Arc Center, Adjust Radius" ) )
589 .Tooltip( _( "Switch arc editing mode to keep center, adjust radius and endpoints" ) )
591
593 .Name( "pcbnew.PointEditor.arcKeepEndpoint" )
594 .Scope( AS_GLOBAL )
595 .FriendlyName( _( "Keep Arc Endpoints or Direction of Starting Point" ) )
596 .Tooltip( _( "Switch arc editing mode to keep endpoints, or to keep direction of the other point" ) )
598
600 .Name( "pcbnew.PointEditor.arcKeepRadius" )
601 .Scope( AS_GLOBAL )
602 .FriendlyName( _( "Keep Arc Radius and Center, adjust angle" ) )
603 .Tooltip( _( "Switch arc editing mode to maintaining radius when endpoint are moved" ) )
605
607 .Name( "common.InteractiveDrawing.arcPosture" )
608 .Scope( AS_GLOBAL )
609 .DefaultHotkey( '/' )
610 .LegacyHotkeyName( "Switch Track Posture" )
611 .FriendlyName( _( "Switch Arc Posture" ) )
612 .Tooltip( _( "Switch arc posture between clockwise and counter-clockwise" ) ) );
613
615 .Name( "common.InteractiveDrawing.deleteLastPoint" )
616 .Scope( AS_GLOBAL )
617 .DefaultHotkey( WXK_BACK )
618 .FriendlyName( _( "Delete Last Point" ) )
619 .Tooltip( _( "Delete the last point added to the current item" ) )
620 .Icon( BITMAPS::undo ) );
621
623 .Name( "common.Interactive.cycleArcEditMode" )
624 .Scope( AS_GLOBAL )
625 .DefaultHotkey( MD_CTRL + ' ' )
626 .FriendlyName( _( "Cycle Arc Editing Mode" ) )
627 .Tooltip( _( "Switch to a different method of editing arcs" ) ) );
628
630 .Name( "common.Interactive.search" )
631 .Scope( AS_GLOBAL )
632 .DefaultHotkey( MD_CTRL + 'G' )
633 .LegacyHotkeyName( "Search" )
634 .FriendlyName( _( "Search" ) )
635 .Tooltip( _( "Show/hide the search panel" ) )
636 .Icon( BITMAPS::find ) );
637
639 .Name( "common.Interactive.find" )
640 .Scope( AS_GLOBAL )
641 .DefaultHotkey( MD_CTRL + 'F' )
642 .LegacyHotkeyName( "Find" )
643 .FriendlyName( _( "Find" ) )
644 .Icon( BITMAPS::find ) );
645
647 .Name( "common.Interactive.findAndReplace" )
648 .Scope( AS_GLOBAL )
649 .DefaultHotkey( MD_CTRL + MD_ALT + 'F' )
650 .LegacyHotkeyName( "Find and Replace" )
651 .FriendlyName( _( "Find and Replace" ) )
652 .Icon( BITMAPS::find_replace ) );
653
655 .Name( "common.Interactive.findNext" )
656 .Scope( AS_GLOBAL )
657 .DefaultHotkey( WXK_F3 )
658 .LegacyHotkeyName( "Find Next" )
659 .FriendlyName( _( "Find Next" ) )
660 .Icon( BITMAPS::find ) );
661
663 .Name( "common.Interactive.findPrevious" )
664 .Scope( AS_GLOBAL )
665 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_F3 ) )
666 .LegacyHotkeyName( "Find Previous" )
667 .FriendlyName( _( "Find Previous" ) )
668 .Icon( BITMAPS::find ) );
669
671 .Name( "common.Interactive.findNextMarker" )
672 .Scope( AS_GLOBAL )
673 .DefaultHotkey( MD_CTRL + MD_SHIFT + static_cast<int>( WXK_F3 ) )
674 .LegacyHotkeyName( "Find Next Marker" )
675 .FriendlyName( _( "Find Next Marker" ) )
676 .Icon( BITMAPS::find ) );
677
679 .Name( "common.Interactive.replaceAndFindNext" )
680 .Scope( AS_GLOBAL )
681 .FriendlyName( _( "Replace and Find Next" ) )
682 .Icon( BITMAPS::find_replace ) );
683
685 .Name( "common.Interactive.replaceAll" )
686 .Scope( AS_GLOBAL )
687 .FriendlyName( _( "Replace All" ) )
688 .Icon( BITMAPS::find_replace ) );
689
691 .Name( "common.Control.updateFind" )
692 .ToolbarState( TOOLBAR_STATE::HIDDEN )
693 .Scope( AS_GLOBAL ) );
694
695
696// Marker Controls
698 .Name( "common.Checker.prevMarker" )
699 .Scope( AS_GLOBAL )
700 .FriendlyName( _( "Previous Marker" ) )
701 .Icon( BITMAPS::marker_previous ) );
702
704 .Name( "common.Checker.nextMarker" )
705 .Scope( AS_GLOBAL )
706 .FriendlyName( _( "Next Marker" ) )
707 .Icon( BITMAPS::marker_next ) );
708
710 .Name( "common.Checker.excludeMarker" )
711 .Scope( AS_GLOBAL )
712 .FriendlyName( _( "Exclude Marker" ) )
713 .Tooltip( _( "Mark current violation in Checker window as an exclusion" ) )
714 .Icon( BITMAPS::marker_exclude ) );
715
716// View Controls
718 .Name( "common.Control.zoomRedraw" )
719 .Scope( AS_GLOBAL )
720#if defined( __WXMAC__ )
721 .DefaultHotkey( MD_CTRL + 'R' )
722#else
723 .DefaultHotkey( WXK_F5 )
724#endif
725 .LegacyHotkeyName( "Zoom Redraw" )
726 .FriendlyName( _( "Refresh" ) )
727 .Icon( BITMAPS::refresh ) );
728
730 .Name( "common.Control.zoomFitScreen" )
731 .Scope( AS_GLOBAL )
732#if defined( __WXMAC__ )
733 .DefaultHotkey( MD_CTRL + '0' )
734#else
735 .DefaultHotkey( WXK_HOME )
736#endif
737 .LegacyHotkeyName( "Zoom Auto" )
738 .FriendlyName( _( "Zoom to Fit" ) )
739 .Tooltip( _( "Zoom to worksheet area if exists or edited object" ) )
740 .Icon( BITMAPS::zoom_fit_in_page ) );
741
743 .Name( "common.Control.zoomFitObjects" )
744 .Scope( AS_GLOBAL )
745 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_HOME ) )
746 .FriendlyName( _( "Zoom to All Objects" ) )
747 .Tooltip( _( "Zoom to all objects on screen" ) )
749
751 .Name( "common.Control.zoomFitSelection" )
752 .Scope( AS_GLOBAL )
753 .Tooltip( _( "Zoom to items currently selected" ) )
754 .FriendlyName( _( "Zoom to Selected Objects" ) )
756
758 .Name( "common.Control.zoomIn" )
759 .Scope( AS_GLOBAL )
760#if defined( __WXMAC__ )
761 .DefaultHotkey( MD_CTRL + '+' )
762#else
763 .DefaultHotkey( WXK_F1 )
764#endif
765 .LegacyHotkeyName( "Zoom In" )
766 .FriendlyName( _( "Zoom In at Cursor" ) )
767 .Icon( BITMAPS::zoom_in ) );
768
770 .Name( "common.Control.zoomOut" )
771 .Scope( AS_GLOBAL )
772#if defined( __WXMAC__ )
773 .DefaultHotkey( MD_CTRL + '-' )
774#else
775 .DefaultHotkey( WXK_F2 )
776#endif
777 .LegacyHotkeyName( "Zoom Out" )
778 .FriendlyName( _( "Zoom Out at Cursor" ) )
779 .Icon( BITMAPS::zoom_out ) );
780
782 .Name( "common.Control.zoomInCenter" )
783 .Scope( AS_GLOBAL )
784 .FriendlyName( _( "Zoom In" ) )
785 .Icon( BITMAPS::zoom_in ) );
786
788 .Name( "common.Control.zoomOutCenter" )
789 .Scope( AS_GLOBAL )
790 .FriendlyName( _( "Zoom Out" ) )
791 .Icon( BITMAPS::zoom_out ) );
792
794 .Name( "common.Control.zoomInHorizontally" )
795 .Scope( AS_GLOBAL )
796 .FriendlyName( _( "Zoom In Horizontally" ) )
797 .Tooltip( _( "Zoom in horizontally the plot area" ) )
799
801 .Name( "common.Control.zoomOutHorizontally" )
802 .Scope( AS_GLOBAL )
803 .FriendlyName( _( "Zoom Out Horizontally" ) )
804 .Tooltip( _( "Zoom out horizontally the plot area" ) )
806
808 .Name( "common.Control.zoomInVertically" )
809 .Scope( AS_GLOBAL )
810 .FriendlyName( _( "Zoom In Vertically" ) )
811 .Tooltip( _( "Zoom in vertically the plot area" ) )
813
815 .Name( "common.Control.zoomOutVertically" )
816 .Scope( AS_GLOBAL )
817 .FriendlyName( _( "Zoom Out Vertically" ) )
818 .Tooltip( _( "Zoom out vertically the plot area" ) )
820
822 .Name( "common.Control.zoomCenter" )
823 .Scope( AS_GLOBAL )
824 .DefaultHotkey( WXK_F4 )
825 .LegacyHotkeyName( "Zoom Center" )
826 .FriendlyName( _( "Center on Cursor" ) )
828
830 .Name( "common.Control.zoomTool" )
831 .Scope( AS_GLOBAL )
832 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_F5 ) )
833 .LegacyHotkeyName( "Zoom to Selection" )
834 .FriendlyName( _( "Zoom to Selection Area" ) )
835 .Tooltip( _( "Zoom to an area selection created by a mouse drag" ) )
836 .Icon( BITMAPS::zoom_area )
837 .ToolbarState( { TOOLBAR_STATE::TOGGLE, TOOLBAR_STATE::CANCEL } )
838 .Flags( AF_ACTIVATE ) );
839
841 .Name( "common.Control.undoZoom" )
842 .Scope( AS_GLOBAL )
843 .FriendlyName( _( "Undo Last Zoom" ) )
844 .Tooltip( _( "Return zoom to level prior to last zoom action" ) )
845 .Icon( BITMAPS::undo ) );
846
848 .Name( "common.Control.redoZoom" )
849 .Scope( AS_GLOBAL )
850 .FriendlyName( _( "Redo Last Zoom" ) )
851 .Tooltip( _( "Return zoom to level prior to last zoom undo" ) )
852 .Icon( BITMAPS::redo ) );
853
855 .Name( "common.Control.zoomPreset" )
856 .Scope( AS_GLOBAL )
857 .Parameter<int>( 0 ) ); // Default parameter is the 0th item in the list
858
860 .Name( "common.Control.centerContents" )
861 .Scope( AS_GLOBAL ) );
862
864 .Name( "common.Control.centerSelection" )
865 .Scope( AS_GLOBAL )
866 .FriendlyName( _( "Pan to Center Selected Objects" ) ) );
867
868// Cursor control
870 .Name( "common.Control.cursorUp" )
871 .Scope( AS_GLOBAL )
872 .DefaultHotkey( WXK_UP )
873 .FriendlyName( _( "Cursor Up" ) )
874 .ToolbarState( TOOLBAR_STATE::HIDDEN )
875 .Flags( AF_NONE )
876 .Parameter( CURSOR_UP ) );
877
879 .Name( "common.Control.cursorDown" )
880 .Scope( AS_GLOBAL )
881 .DefaultHotkey( WXK_DOWN )
882 .FriendlyName( _( "Cursor Down" ) )
883 .ToolbarState( TOOLBAR_STATE::HIDDEN )
884 .Flags( AF_NONE )
885 .Parameter( CURSOR_DOWN ) );
886
888 .Name( "common.Control.cursorLeft" )
889 .Scope( AS_GLOBAL )
890 .DefaultHotkey( WXK_LEFT )
891 .FriendlyName( _( "Cursor Left" ) )
892 .ToolbarState( TOOLBAR_STATE::HIDDEN )
893 .Flags( AF_NONE )
894 .Parameter( CURSOR_LEFT ) );
895
897 .Name( "common.Control.cursorRight" )
898 .Scope( AS_GLOBAL )
899 .DefaultHotkey( WXK_RIGHT )
900 .FriendlyName( _( "Cursor Right" ) )
901 .ToolbarState( TOOLBAR_STATE::HIDDEN )
902 .Flags( AF_NONE )
903 .Parameter( CURSOR_RIGHT ) );
904
905
907 .Name( "common.Control.cursorUpFast" )
908 .Scope( AS_GLOBAL )
909 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_UP ) )
910 .FriendlyName( _( "Cursor Up Fast" ) )
911 .ToolbarState( TOOLBAR_STATE::HIDDEN )
912 .Flags( AF_NONE )
913 .Parameter( CURSOR_UP_FAST ) );
914
916 .Name( "common.Control.cursorDownFast" )
917 .Scope( AS_GLOBAL )
918 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_DOWN ) )
919 .FriendlyName( _( "Cursor Down Fast" ) )
920 .ToolbarState( TOOLBAR_STATE::HIDDEN )
921 .Flags( AF_NONE )
922 .Parameter( CURSOR_DOWN_FAST ) );
923
925 .Name( "common.Control.cursorLeftFast" )
926 .Scope( AS_GLOBAL )
927 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_LEFT ) )
928 .FriendlyName( _( "Cursor Left Fast" ) )
929 .ToolbarState( TOOLBAR_STATE::HIDDEN )
930 .Flags( AF_NONE )
931 .Parameter( CURSOR_LEFT_FAST ) );
932
934 .Name( "common.Control.cursorRightFast" )
935 .Scope( AS_GLOBAL )
936 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_RIGHT ) )
937 .FriendlyName( _( "Cursor Right Fast" ) )
938 .ToolbarState( TOOLBAR_STATE::HIDDEN )
939 .Flags( AF_NONE )
940 .Parameter( CURSOR_RIGHT_FAST ) );
941
943 .Name( "common.Control.cursorClick" )
944 .Scope( AS_GLOBAL )
945 .DefaultHotkey( WXK_RETURN )
946 .LegacyHotkeyName( "Mouse Left Click" )
947 .FriendlyName( _( "Click" ) )
948 .Tooltip( _( "Performs left mouse button click" ) )
949 .ToolbarState( TOOLBAR_STATE::HIDDEN )
950 .Flags( AF_NONE )
951 .Parameter( CURSOR_CLICK ) );
952
954 .Name( "common.Control.cursorDblClick" )
955 .Scope( AS_GLOBAL )
956 .DefaultHotkey( WXK_END )
957 .LegacyHotkeyName( "Mouse Left Double Click" )
958 .FriendlyName( _( "Double-click" ) )
959 .Tooltip( _( "Performs left mouse button double-click" ) )
960 .ToolbarState( TOOLBAR_STATE::HIDDEN )
961 .Flags( AF_NONE )
962 .Parameter( CURSOR_DBL_CLICK ) );
963
965 .Name( "common.Control.refreshPreview" )
966 .ToolbarState( TOOLBAR_STATE::HIDDEN )
967 .Scope( AS_GLOBAL ) );
968
970 .Name( "common.Control.pinLibrary" )
971 .Scope( AS_GLOBAL )
972 .FriendlyName( _( "Pin Library" ) )
973 .Tooltip( _( "Keep the library at the top of the list" ) ) );
974
976 .Name( "common.Control.unpinLibrary" )
977 .Scope( AS_GLOBAL )
978 .FriendlyName( _( "Unpin Library" ) )
979 .Tooltip( _( "No longer keep the library at the top of the list" ) ) );
980
982 .Name( "common.Control.showLibraryTree" )
983 .Scope( AS_GLOBAL )
984 .FriendlyName( _( "Library Tree" ) )
985 .ToolbarState( TOOLBAR_STATE::TOGGLE )
986 .Icon( BITMAPS::search_tree ) );
987
989 .Name( "common.Control.hideLibraryTree" )
990 .Scope( AS_GLOBAL )
991 .FriendlyName( _( "Hide Library Tree" ) )
992 .Icon( BITMAPS::search_tree ) );
993
995 .Name( "common.Control.libraryTreeSearch" )
996 .Scope( AS_GLOBAL )
997 .FriendlyName( _( "Focus Library Tree Search Field" ) )
998 .DefaultHotkey( MD_CTRL + 'L' )
999 .ToolbarState( TOOLBAR_STATE::HIDDEN ) );
1000
1002 .Name( "common.Control.panUp" )
1003 .Scope( AS_GLOBAL )
1004 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_UP ) )
1005 .FriendlyName( _( "Pan Up" ) )
1006 .Flags( AF_NONE )
1007 .Parameter( CURSOR_UP ) );
1008
1010 .Name( "common.Control.panDown" )
1011 .Scope( AS_GLOBAL )
1012 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DOWN ) )
1013 .FriendlyName( _( "Pan Down" ) )
1014 .Flags( AF_NONE )
1015 .Parameter( CURSOR_DOWN ) );
1016
1018 .Name( "common.Control.panLeft" )
1019 .Scope( AS_GLOBAL )
1020 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_LEFT ) )
1021 .FriendlyName( _( "Pan Left" ) )
1022 .Flags( AF_NONE )
1023 .Parameter( CURSOR_LEFT ) );
1024
1026 .Name( "common.Control.panRight" )
1027 .Scope( AS_GLOBAL )
1028 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_RIGHT ) )
1029 .FriendlyName( _( "Pan Right" ) )
1030 .Flags( AF_NONE )
1031 .Parameter( CURSOR_RIGHT ) );
1032
1033// Grid control
1035 .Name( "common.Control.gridFast1" )
1036 .Scope( AS_GLOBAL )
1037 .DefaultHotkey( MD_ALT + '1' )
1038 .LegacyHotkeyName( "Switch Grid To Fast Grid1" )
1039 .FriendlyName( _( "Switch to Fast Grid 1" ) ) );
1040
1042 .Name( "common.Control.gridFast2" )
1043 .Scope( AS_GLOBAL )
1044 .DefaultHotkey( MD_ALT + '2' )
1045 .LegacyHotkeyName( "Switch Grid To Fast Grid2" )
1046 .FriendlyName( _( "Switch to Fast Grid 2" ) ) );
1047
1049 .Name( "common.Control.gridFastCycle" )
1050 .Scope( AS_GLOBAL )
1051 .DefaultHotkey( MD_ALT + '4' )
1052 .LegacyHotkeyName( "Switch Grid To Next Fast Grid" )
1053 .FriendlyName( _( "Cycle Fast Grid" ) ) );
1054
1056 .Name( "common.Control.gridNext" )
1057 .Scope( AS_GLOBAL )
1058 .DefaultHotkey( 'N' )
1059 .LegacyHotkeyName( "Switch Grid To Next" )
1060 .FriendlyName( _("Switch to Next Grid" ) ) );
1061
1063 .Name( "common.Control.gridPrev" )
1064 .Scope( AS_GLOBAL )
1065 .DefaultHotkey( MD_SHIFT + 'N' )
1066 .LegacyHotkeyName( "Switch Grid To Previous" )
1067 .FriendlyName( _( "Switch to Previous Grid" ) ) );
1068
1070 .Name( "common.Control.gridSetOrigin" )
1071 .Scope( AS_GLOBAL )
1072 .LegacyHotkeyName( "Set Grid Origin" )
1073 .FriendlyName( _( "Grid Origin" ) )
1074 .Tooltip( _( "Place the grid origin point" ) )
1075 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1077 .Parameter<VECTOR2D*>( nullptr ) );
1078
1080 .Name( "common.Control.gridResetOrigin" )
1081 .Scope( AS_GLOBAL )
1082 .LegacyHotkeyName( "Reset Grid Origin" )
1083 .FriendlyName( _( "Reset Grid Origin" ) ) );
1084
1086 .Name( "common.Control.gridPreset" )
1087 .Scope( AS_GLOBAL )
1088 .Parameter<int>( 0 ) ); // Default to the 1st element of the list
1089
1091 .Name( "common.Control.toggleGrid" )
1092 .Scope( AS_GLOBAL)
1093 .FriendlyName( _( "Show Grid" ) )
1094 .Tooltip( _( "Display background grid in the edit window" ) )
1095 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1096 .Icon( BITMAPS::grid ) );
1097
1099 .Name( "common.Control.toggleGridOverrides" )
1100 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'G' )
1101 .Scope( AS_GLOBAL)
1102 .FriendlyName( _( "Grid Overrides" ) )
1103 .Tooltip( _( "Enables item-specific grids that override the current grid" ) )
1104 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1105 .Icon( BITMAPS::grid_override ) );
1106
1108 .Name( "common.Control.editGrids" )
1109 .Scope( AS_GLOBAL )
1110 .FriendlyName( _( "Edit Grids..." ) )
1111 .Tooltip( _( "Edit grid definitions" ) )
1112 .Icon( BITMAPS::grid_select ) );
1113
1115 .Name( "common.Control.editGridOrigin" )
1116 .Scope( AS_GLOBAL )
1117 .FriendlyName( _( "Grid Origin..." ) )
1118 .Tooltip( _( "Set the grid origin point" ) )
1119 .Icon( BITMAPS::grid_select_axis ) );
1120
1122 .Name( "common.Control.imperialUnits" )
1123 .Scope( AS_GLOBAL )
1124 .FriendlyName( _( "Inches" ) )
1125 .Icon( BITMAPS::unit_inch )
1126 .Flags( AF_NONE )
1127 .Parameter( EDA_UNITS::INCH ) );
1128
1130 .Name( "common.Control.mils" )
1131 .Scope( AS_GLOBAL )
1132 .FriendlyName( _( "Mils" ) )
1133 .Icon( BITMAPS::unit_mil )
1134 .Flags( AF_NONE )
1135 .Parameter( EDA_UNITS::MILS ) );
1136
1138 .Name( "common.Control.metricUnits" )
1139 .Scope( AS_GLOBAL )
1140 .FriendlyName( _( "Millimeters" ) )
1141 .Icon( BITMAPS::unit_mm )
1142 .Flags( AF_NONE )
1143 .Parameter( EDA_UNITS::MM ) );
1144
1146 .Name( "common.Control.updateUnits" )
1147 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1148 .Scope( AS_GLOBAL ) );
1149
1151 .Name( "common.Control.updatePreferences" )
1152 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1153 .Scope( AS_GLOBAL ) );
1154
1156 .Name( "common.Control.selectColumns" )
1157 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1158 .Scope( AS_GLOBAL )
1159 .FriendlyName( _( "Select Columns..." ) ) );
1160
1162 .Name( "common.Control.toggleUnits" )
1163 .Scope( AS_GLOBAL )
1164 .DefaultHotkey( MD_CTRL + 'U' )
1165 .LegacyHotkeyName( "Switch Units" )
1166 .FriendlyName( _( "Switch units" ) )
1167 .Tooltip( _( "Switch between imperial and metric units" ) )
1168 .Icon( BITMAPS::unit_mm ) );
1169
1171 .Name( "common.Control.togglePolarCoords" )
1172 .Scope( AS_GLOBAL )
1173 .FriendlyName( _( "Polar Coordinates" ) )
1174 .Tooltip( _( "Switch between polar and cartesian coordinate systems" ) )
1175 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1176 .Icon( BITMAPS::polar_coord ) );
1177
1179 .Name( "common.Control.resetLocalCoords" )
1180 .Scope( AS_GLOBAL )
1181 .DefaultHotkey( ' ' )
1182 .LegacyHotkeyName( "Reset Local Coordinates" )
1183 .FriendlyName( _( "Reset Local Coordinates" ) ) );
1184
1186 .Name( "common.Control.toggleCursor" )
1187 .Scope( AS_GLOBAL )
1188 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1189 .LegacyHotkeyName( "Toggle Cursor Display (Modern Toolset only)" )
1190 .FriendlyName( _( "Always Show Crosshairs" ) )
1191 .Tooltip( _( "Display crosshairs even when not drawing objects" ) )
1192 .Icon( BITMAPS::cursor ) );
1193
1195 .Name( "common.Control.cursorSmallCrosshairs" )
1196 .Scope( AS_GLOBAL )
1197 .FriendlyName( _( "Small crosshairs" ) )
1198 .Tooltip( _( "Use small crosshairs aligned at 0 and 90 degrees" ) )
1199 .Icon( BITMAPS::cursor_shape ) );
1200
1202 .Name( "common.Control.cursorFullCrosshairs" )
1203 .Scope( AS_GLOBAL )
1204 .FriendlyName( _( "Full-Window Crosshairs" ) )
1205 .Tooltip( _( "Display full-window crosshairs aligned at 0 and 90 degrees" ) )
1206 .Icon( BITMAPS::cursor_fullscreen ) );
1207
1209 .Name( "common.Control.cursor45Crosshairs" )
1210 .Scope( AS_GLOBAL )
1211 .FriendlyName( _( "45 Degree Crosshairs" ) )
1212 .Tooltip( _( "Display full-window crosshairs aligned at 45 and 135 degrees" ) )
1214
1216 .Name( "common.Control.highContrastMode" )
1217 .Scope( AS_GLOBAL )
1218 .LegacyHotkeyName( "Toggle High Contrast Mode" )
1219 .FriendlyName( _( "Inactive Layer View Mode" ) )
1220 .Tooltip( _( "Toggle inactive layers between normal and dimmed" ) )
1221 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1222 .Icon( BITMAPS::contrast_mode ) );
1223
1225 .Name( "common.Control.highContrastModeCycle" )
1226 .Scope( AS_GLOBAL )
1227 .DefaultHotkey( 'H' )
1228 .FriendlyName( _( "Inactive Layer View Mode (3-state)" ) )
1229 .Tooltip( _( "Cycle inactive layers between normal, dimmed, and hidden" ) )
1230 .Icon( BITMAPS::contrast_mode ) );
1231
1233 .Name( "common.Control.toggleBoundingBoxes" )
1234 .Scope( AS_GLOBAL )
1235 .FriendlyName( _( "Draw Bounding Boxes" ) )
1236 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1238
1240 .Name( "common.InteractiveSelection.selectionTool" )
1241 .Scope( AS_GLOBAL )
1242 .FriendlyName( _( "Select item(s)" ) )
1243 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1244 .Icon( BITMAPS::cursor )
1245 .Flags( AF_ACTIVATE ) );
1246
1248 .Name( "common.Interactive.measureTool" )
1249 .Scope( AS_GLOBAL )
1250 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'M' )
1251 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1252 .LegacyHotkeyName( "Measure Distance (Modern Toolset only)" )
1253 .FriendlyName( _( "Measure Tool" ) )
1254 .Tooltip( _( "Interactively measure distance between points" ) )
1255 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1256 .Icon( BITMAPS::measurement )
1257 .Flags( AF_ACTIVATE ) );
1258
1260 .Name( "common.InteractivePicker.pickerTool" )
1261 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1262 .Scope( AS_GLOBAL )
1263 .Flags( AF_ACTIVATE ) );
1264
1266 .Name( "common.InteractivePicker.pickerSubTool" )
1267 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1268 .Scope( AS_GLOBAL ) );
1269
1271 .Name( "common.Control.showProjectManager" )
1272 .Scope( AS_GLOBAL )
1273 .FriendlyName( _( "Switch to Project Manager" ) )
1274 .Tooltip( _( "Show project window" ) )
1275 .Icon( BITMAPS::icon_kicad_24 ) );
1276
1278 .Name( "common.Control.show3DViewer" )
1279 .Scope( AS_GLOBAL )
1280 .DefaultHotkey( MD_ALT + '3' )
1281 .LegacyHotkeyName( "3D Viewer" )
1282 .FriendlyName( _( "3D Viewer" ) )
1283 .Tooltip( _( "Show 3D viewer window" ) )
1284 .Icon( BITMAPS::three_d ) );
1285
1287 .Name( "common.Control.showSymbolBrowser" )
1288 .Scope( AS_GLOBAL )
1289 .FriendlyName( _( "Symbol Library Browser" ) )
1291 .Flags( AF_NONE)
1292 .Parameter( FRAME_SCH_VIEWER ) );
1293
1295 .Name( "common.Control.showSymbolEditor" )
1296 .Scope( AS_GLOBAL )
1297 .FriendlyName( _( "Symbol Editor" ) )
1298 .Tooltip( _( "Create, delete and edit schematic symbols" ) )
1299 .Icon( BITMAPS::libedit )
1300 .Flags( AF_NONE )
1301 .Parameter( FRAME_SCH_SYMBOL_EDITOR ) );
1302
1304 .Name( "common.Control.showFootprintBrowser" )
1305 .Scope( AS_GLOBAL )
1306 .FriendlyName( _( "Footprint Library Browser" ) )
1308 .Flags( AF_NONE )
1309 .Parameter( FRAME_FOOTPRINT_VIEWER ) );
1310
1312 .Name( "common.Control.showFootprintEditor" )
1313 .Scope( AS_GLOBAL )
1314 .FriendlyName( _( "Footprint Editor" ) )
1315 .Tooltip( _( "Create, delete and edit board footprints" ) )
1316 .Icon( BITMAPS::module_editor )
1317 .Flags( AF_NONE )
1318 .Parameter( FRAME_FOOTPRINT_EDITOR ) );
1319
1321 .Name( "common.Control.showCalculatorTools" )
1322 .Scope( AS_GLOBAL )
1323 .FriendlyName( _( "Calculator Tools" ) )
1324 .Tooltip( _( "Run component calculations, track width calculations, etc." ) )
1326 .Flags( AF_NONE )
1327 .Parameter( FRAME_CALC ) );
1328
1330 .Name( "common.Control.showProperties" )
1331 .Scope( AS_GLOBAL )
1332 .FriendlyName( _( "Properties" ) )
1333 .Tooltip( _( "Show/hide the properties manager" ) )
1334 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1335 .Icon( BITMAPS::tools ) );
1336
1338 .Name( "common.Control.showDatasheet" )
1339 .Scope( AS_GLOBAL )
1340 .DefaultHotkey( 'D' )
1341 .LegacyHotkeyName( "Show Datasheet" )
1342 .FriendlyName( _( "Show Datasheet" ) )
1343 .Tooltip( _( "Open the datasheet in a browser" ) )
1344 .Icon( BITMAPS::datasheet ) );
1345
1347 .Name( "common.Control.updatePcbFromSchematic" )
1348 .Scope( AS_GLOBAL )
1349 .DefaultHotkey( WXK_F8 )
1350 .LegacyHotkeyName( "Update PCB from Schematic" )
1351 .FriendlyName( _( "Update PCB from Schematic..." ) )
1352 .Tooltip( _( "Update PCB with changes made to schematic" ) )
1354
1356 .Name( "common.Control.updateSchematicFromPCB" )
1357 .Scope( AS_GLOBAL )
1358 .FriendlyName( _( "Update Schematic from PCB..." ) )
1359 .Tooltip( _( "Update schematic with changes made to PCB" ) )
1361
1363 .Name( "common.SuiteControl.openPreferences" )
1364 .Scope( AS_GLOBAL )
1365 .DefaultHotkey( MD_CTRL + ',' )
1366 .FriendlyName( _( "Preferences..." ) )
1367 .Tooltip( _( "Show preferences for all open tools" ) )
1368 .Icon( BITMAPS::preference )
1369 .UIId( wxID_PREFERENCES ) );
1370
1372 .Name( "common.SuiteControl.configurePaths" )
1373 .Scope( AS_GLOBAL )
1374 .FriendlyName( _( "Configure Paths..." ) )
1375 .Tooltip( _( "Edit path configuration environment variables" ) )
1376 .Icon( BITMAPS::path ) );
1377
1379 .Name( "common.SuiteControl.showSymbolLibTable" )
1380 .Scope( AS_GLOBAL )
1381 .FriendlyName( _( "Manage Symbol Libraries..." ) )
1382 .Tooltip( _( "Edit the global and project symbol library lists" ) )
1383 .Icon( BITMAPS::library_table ) );
1384
1386 .Name( "common.SuiteControl.showFootprintLibTable" )
1387 .Scope( AS_GLOBAL )
1388 .FriendlyName( _( "Manage Footprint Libraries..." ) )
1389 .Tooltip( _( "Edit the global and project footprint library lists" ) )
1390 .Icon( BITMAPS::library_table ) );
1391
1393 .Name( "common.SuiteControl.showDesignBLockLibTable" )
1394 .Scope( AS_GLOBAL )
1395 .FriendlyName( _( "Manage Design Block Libraries..." ) )
1396 .Tooltip( _( "Edit the global and project design block library lists" ) )
1397 .Icon( BITMAPS::library_table ) );
1398
1400 .Name( "common.SuiteControl.gettingStarted" )
1401 .Scope( AS_GLOBAL )
1402 .FriendlyName( _( "Getting Started with KiCad" ) )
1403 .Tooltip( _( "Open \"Getting Started in KiCad\" guide for beginners" ) )
1404 .Icon( BITMAPS::help ) );
1405
1407 .Name( "common.SuiteControl.help" )
1408 .Scope( AS_GLOBAL )
1409 .FriendlyName( _( "Help" ) )
1410 .Tooltip( _( "Open product documentation in a web browser" ) )
1411 .Icon( BITMAPS::help_online ) );
1412
1414 .Name( "common.SuiteControl.about" )
1415 .Scope( AS_GLOBAL )
1416 .FriendlyName( _( "About KiCad" ) )
1417 .UIId( wxID_ABOUT )
1418 .Icon( BITMAPS::about ) );
1419
1421 .Name( "common.SuiteControl.listHotKeys" )
1422 .Scope( AS_GLOBAL )
1423 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_F1 ) )
1424 .LegacyHotkeyName( "List Hotkeys" )
1425 .FriendlyName( _( "List Hotkeys..." ) )
1426 .Tooltip( _( "Displays current hotkeys table and corresponding commands" ) )
1427 .Icon( BITMAPS::hotkeys ) );
1428
1430 .Name( "common.SuiteControl.getInvolved" )
1431 .Scope( AS_GLOBAL )
1432 .FriendlyName( _( "Get Involved" ) )
1433 .Tooltip( _( "Open \"Contribute to KiCad\" in a web browser" ) )
1434 .Icon( BITMAPS::info ) );
1435
1437 .Name( "common.SuiteControl.donate" )
1438 .Scope( AS_GLOBAL )
1439 .FriendlyName( _( "Donate" ) )
1440 .Tooltip( _( "Open \"Donate to KiCad\" in a web browser" ) ) );
1441
1443 .Name( "common.SuiteControl.reportBug" )
1444 .Scope( AS_GLOBAL )
1445 .FriendlyName( _( "Report Bug" ) )
1446 .Tooltip( _( "Report a problem with KiCad" ) )
1447 .Icon( BITMAPS::bug ) );
1448
1450 .Name( "common.Control.ddaddLibrary" )
1451 .Scope( AS_GLOBAL ) );
1452
1453// API
1454
1456 .Name( "common.API.pluginsReload" )
1457 .Scope( AS_GLOBAL )
1458 .FriendlyName( _( "Refresh Plugins" ) )
1459 .Tooltip( _( "Reload all python plugins and refresh plugin menus" ) )
1460 .Icon( BITMAPS::reload ) );
1461
1462// Embedding Files
1463
1465 .Name( "common.Embed.embededFile" )
1466 .Scope( AS_GLOBAL )
1467 .FriendlyName( _( "Embedded Files" ) )
1468 .Tooltip( _( "Manage embedded files" ) ) );
1469
1471 .Name( "common.Embed.removeFile" )
1472 .Scope( AS_GLOBAL )
1473 .FriendlyName( _( "Remove File" ) )
1474 .Tooltip( _( "Remove an embedded file" ) ) );
1475
1477 .Name( "common.Embed.extractFile" )
1478 .Scope( AS_GLOBAL )
1479 .FriendlyName( _( "Extract File" ) )
1480 .Tooltip( _( "Extract an embedded file" ) ) );
1481
1482// System-wide selection Events
1483
1485 "common.Interactive.pointSelected" );
1486const TOOL_EVENT EVENTS::SelectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.selected" );
1487const TOOL_EVENT EVENTS::UnselectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.unselected" );
1488const TOOL_EVENT EVENTS::ClearedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.cleared" );
1489
1491 "common.Interactive.connectivityChanged" );
1492
1494 "common.Interactive.modified" );
1495const TOOL_EVENT EVENTS::SelectedItemsMoved( TC_MESSAGE, TA_ACTION, "common.Interactive.moved" );
1497 "common.Interactive.inhibit" );
1499 "common.Interactive.uninhibit" );
1500
1502 "common.Interactive.disambiguate" );
1503
1505 "common.Interactive.gridChangedByKey" );
1506
1507const TOOL_EVENT
1509 "common.Interactive.contrastModeChangedByKeyEvent" );
1510
1511// System-wide undo/redo Events
1512
#define _(s)
Definition actions.cpp:36
@ 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:100
static TOOL_ACTION showCalculatorTools
Definition actions.h:259
static TOOL_ACTION addColBefore
Definition actions.h:102
static TOOL_ACTION gridProperties
Definition actions.h:196
static TOOL_ACTION decrementPrimary
Definition actions.h:92
static TOOL_ACTION pickNewGroupMember
Definition actions.h:244
static TOOL_ACTION gridFastCycle
Definition actions.h:188
static TOOL_ACTION updatePcbFromSchematic
Definition actions.h:260
static TOOL_ACTION toggleGrid
Definition actions.h:194
static TOOL_ACTION paste
Definition actions.h:76
static TOOL_ACTION pickerSubTool
Definition actions.h:250
static TOOL_ACTION excludeMarker
Definition actions.h:125
static TOOL_ACTION about
Definition actions.h:285
static TOOL_ACTION cancelInteractive
Definition actions.h:68
static TOOL_ACTION nextMarker
Definition actions.h:124
static TOOL_ACTION zoomRedraw
Definition actions.h:128
static TOOL_ACTION millimetersUnits
Definition actions.h:202
static TOOL_ACTION unselectAll
Definition actions.h:79
static TOOL_ACTION gridFast1
Definition actions.h:186
static TOOL_ACTION openWithTextEditor
Definition actions.h:64
static TOOL_ACTION gridPrev
Definition actions.h:190
static TOOL_ACTION revert
Definition actions.h:58
static TOOL_ACTION show3DViewer
Definition actions.h:254
static TOOL_ACTION showLibraryTree
Definition actions.h:160
static TOOL_ACTION cursorSmallCrosshairs
Definition actions.h:148
static TOOL_ACTION arcPosture
Definition actions.h:268
static TOOL_ACTION reportBug
Definition actions.h:289
static TOOL_ACTION decrementSecondary
Definition actions.h:94
static TOOL_ACTION replaceAll
Definition actions.h:119
static TOOL_ACTION updatePreferences
Definition actions.h:274
static TOOL_ACTION selectItem
Select an item (specified as the event parameter).
Definition actions.h:223
static TOOL_ACTION cursorLeft
Definition actions.h:168
static TOOL_ACTION zoomOutCenter
Definition actions.h:132
static TOOL_ACTION togglePolarCoords
Definition actions.h:205
static TOOL_ACTION unselectItem
Definition actions.h:224
static TOOL_ACTION saveAs
Definition actions.h:55
static TOOL_ACTION addLibrary
Definition actions.h:52
static TOOL_ACTION copy
Definition actions.h:74
static TOOL_ACTION zoomIn
Definition actions.h:129
static TOOL_ACTION pluginsReload
Definition actions.h:292
static TOOL_ACTION extractFile
Definition actions.h:296
static TOOL_ACTION cursorLeftFast
Definition actions.h:173
static TOOL_ACTION deleteRows
Definition actions.h:104
static TOOL_ACTION zoomRedo
Definition actions.h:144
static TOOL_ACTION selectionCursor
Select a single item under the cursor position.
Definition actions.h:213
static TOOL_ACTION addRowBelow
Definition actions.h:101
static TOOL_ACTION pickerTool
Definition actions.h:249
static TOOL_ACTION cycleArcEditMode
Definition actions.h:270
static TOOL_ACTION gridPreset
Definition actions.h:193
static TOOL_ACTION selectSetLasso
Definition actions.h:217
static TOOL_ACTION selectSetRect
Set lasso selection mode.
Definition actions.h:216
static TOOL_ACTION group
Definition actions.h:235
static TOOL_ACTION gridResetOrigin
Definition actions.h:192
static TOOL_ACTION updateUnits
Definition actions.h:203
static TOOL_ACTION updateFind
Definition actions.h:120
static TOOL_ACTION showSymbolLibTable
Definition actions.h:280
static TOOL_ACTION openDirectory
Definition actions.h:65
static TOOL_ACTION deleteColumns
Definition actions.h:105
static TOOL_ACTION showSymbolEditor
Definition actions.h:256
static TOOL_ACTION showSymbolBrowser
Definition actions.h:255
static TOOL_ACTION pasteSpecial
Definition actions.h:77
static TOOL_ACTION groupEnter
Definition actions.h:239
static TOOL_ACTION findPrevious
Definition actions.h:116
static TOOL_ACTION unmergeCells
Definition actions.h:107
static TOOL_ACTION showDatasheet
Definition actions.h:263
static TOOL_ACTION groupProperties
Definition actions.h:243
static TOOL_ACTION zoomFitSelection
Definition actions.h:140
static TOOL_ACTION selectColumns
Definition actions.h:98
static TOOL_ACTION centerSelection
Definition actions.h:146
static TOOL_ACTION mergeCells
Definition actions.h:106
static TOOL_ACTION donate
Definition actions.h:287
static TOOL_ACTION cursorDown
Definition actions.h:167
static TOOL_ACTION zoomOut
Definition actions.h:130
static TOOL_ACTION pointEditorArcKeepCenter
Definition actions.h:271
static TOOL_ACTION addColAfter
Definition actions.h:103
static TOOL_ACTION editTable
Definition actions.h:108
static TOOL_ACTION findAndReplace
Definition actions.h:114
static TOOL_ACTION milsUnits
Definition actions.h:201
static TOOL_ACTION highContrastModeCycle
Definition actions.h:152
static TOOL_ACTION listHotKeys
Definition actions.h:286
static TOOL_ACTION cursorRightFast
Definition actions.h:174
static TOOL_ACTION deleteLastPoint
Definition actions.h:269
static TOOL_ACTION ungroup
Definition actions.h:236
static TOOL_ACTION openPreferences
Definition actions.h:278
static TOOL_ACTION pinLibrary
Definition actions.h:158
static TOOL_ACTION toggleBoundingBoxes
Definition actions.h:153
static TOOL_ACTION replaceAndFindNext
Definition actions.h:118
static TOOL_ACTION showContextMenu
Definition actions.h:70
static TOOL_ACTION toggleCursor
Definition actions.h:147
static TOOL_ACTION zoomOutHorizontally
Definition actions.h:134
static TOOL_ACTION getInvolved
Definition actions.h:288
static TOOL_ACTION rightJustify
Definition actions.h:85
static TOOL_ACTION showFootprintLibTable
Definition actions.h:281
static TOOL_ACTION centerContents
Definition actions.h:145
static TOOL_ACTION plot
Definition actions.h:61
static TOOL_ACTION pointEditorArcKeepRadius
Definition actions.h:273
static TOOL_ACTION zoomCenter
Definition actions.h:137
static TOOL_ACTION panDown
Definition actions.h:181
static TOOL_ACTION selectLibTreeColumns
Definition actions.h:275
static TOOL_ACTION open
Definition actions.h:53
static TOOL_ACTION saveAll
Definition actions.h:57
static TOOL_ACTION findNext
Definition actions.h:115
static TOOL_ACTION zoomOutVertically
Definition actions.h:136
static TOOL_ACTION cursorDblClick
Definition actions.h:177
static TOOL_ACTION pageSettings
Definition actions.h:59
static TOOL_ACTION showSearch
Definition actions.h:112
static TOOL_ACTION undo
Definition actions.h:71
static TOOL_ACTION selectionActivate
Activation of the selection tool.
Definition actions.h:210
static TOOL_ACTION incrementSecondary
Definition actions.h:93
static TOOL_ACTION cursorDownFast
Definition actions.h:172
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:297
static TOOL_ACTION prevMarker
Definition actions.h:123
static TOOL_ACTION reselectItem
Definition actions.h:225
static TOOL_ACTION selectRows
Definition actions.h:97
static TOOL_ACTION duplicate
Definition actions.h:80
static TOOL_ACTION inchesUnits
Definition actions.h:200
static TOOL_ACTION highContrastMode
Definition actions.h:151
static TOOL_ACTION embeddedFiles
Definition actions.h:295
static TOOL_ACTION incrementPrimary
Definition actions.h:91
static TOOL_ACTION cursorUpFast
Definition actions.h:171
static TOOL_ACTION gridOrigin
Definition actions.h:197
static TOOL_ACTION measureTool
Definition actions.h:248
static TOOL_ACTION zoomInHorizontally
Definition actions.h:133
static TOOL_ACTION panLeft
Definition actions.h:182
static TOOL_ACTION updateMenu
Definition actions.h:266
static TOOL_ACTION activatePointEditor
Definition actions.h:267
static TOOL_ACTION libraryTreeSearch
Definition actions.h:163
static TOOL_ACTION doDelete
Definition actions.h:81
static TOOL_ACTION quit
Definition actions.h:62
static TOOL_ACTION selectionTool
Definition actions.h:247
static TOOL_ACTION save
Definition actions.h:54
static TOOL_ACTION cursorClick
Definition actions.h:176
static TOOL_ACTION zoomFitScreen
Definition actions.h:138
static TOOL_ACTION redo
Definition actions.h:72
static TOOL_ACTION zoomPreset
Definition actions.h:141
static TOOL_ACTION deleteTool
Definition actions.h:82
static TOOL_ACTION hideLibraryTree
Definition actions.h:161
static TOOL_ACTION zoomTool
Definition actions.h:142
static TOOL_ACTION updateSchematicFromPcb
Definition actions.h:261
static TOOL_ACTION unpinLibrary
Definition actions.h:159
static TOOL_ACTION increment
Definition actions.h:90
static TOOL_ACTION selectionClear
Clear the current selection.
Definition actions.h:220
static TOOL_ACTION cursor45Crosshairs
Definition actions.h:150
static TOOL_ACTION leftJustify
Definition actions.h:83
static TOOL_ACTION exportTableCSV
Definition actions.h:109
static TOOL_ACTION panUp
Definition actions.h:180
static TOOL_ACTION showDesignBlockLibTable
Definition actions.h:282
static TOOL_ACTION showFootprintEditor
Definition actions.h:258
static TOOL_ACTION print
Definition actions.h:60
static TOOL_ACTION findNextMarker
Definition actions.h:117
static TOOL_ACTION showProperties
Definition actions.h:262
static TOOL_ACTION doNew
Definition actions.h:50
static TOOL_ACTION zoomFitObjects
Definition actions.h:139
static TOOL_ACTION toggleUnits
Definition actions.h:204
static TOOL_ACTION zoomInCenter
Definition actions.h:131
static TOOL_ACTION newLibrary
Definition actions.h:51
static TOOL_ACTION panRight
Definition actions.h:183
static TOOL_ACTION saveCopy
Definition actions.h:56
static TOOL_ACTION cut
Definition actions.h:73
static TOOL_ACTION selectTable
Definition actions.h:99
static TOOL_ACTION gridSetOrigin
Definition actions.h:191
static TOOL_ACTION addToGroup
Definition actions.h:237
static TOOL_ACTION gridFast2
Definition actions.h:187
static TOOL_ACTION expandAll
Definition actions.h:86
static TOOL_ACTION removeFromGroup
Definition actions.h:238
static TOOL_ACTION zoomInVertically
Definition actions.h:135
static TOOL_ACTION ddAddLibrary
Definition actions.h:63
static TOOL_ACTION configurePaths
Definition actions.h:279
static TOOL_ACTION showProjectManager
Definition actions.h:253
static TOOL_ACTION gettingStarted
Definition actions.h:283
static TOOL_ACTION copyAsText
Definition actions.h:75
static TOOL_ACTION cursorUp
Cursor control with keyboard.
Definition actions.h:166
static TOOL_ACTION refreshPreview
Definition actions.h:155
static TOOL_ACTION zoomUndo
Definition actions.h:143
static TOOL_ACTION groupLeave
Definition actions.h:240
static TOOL_ACTION showFootprintBrowser
Definition actions.h:257
static TOOL_ACTION toggleGridOverrides
Definition actions.h:195
static TOOL_ACTION finishInteractive
Definition actions.h:69
static TOOL_ACTION gridNext
Definition actions.h:189
static TOOL_ACTION cursorRight
Definition actions.h:169
static TOOL_ACTION selectAll
Definition actions.h:78
static TOOL_ACTION pointEditorArcKeepEndpoint
Definition actions.h:272
static TOOL_ACTION cursorFullCrosshairs
Definition actions.h:149
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:284
static TOOL_ACTION find
Definition actions.h:113
static TOOL_ACTION collapseAll
Definition actions.h:87
static TOOL_ACTION resetLocalCoords
Definition actions.h:206
static TOOL_ACTION centerJustify
Definition actions.h:84
static const TOOL_EVENT DisambiguatePoint
Used for hotkey feedback.
Definition actions.h:360
static const TOOL_EVENT ClearedEvent
Definition actions.h:345
static const TOOL_EVENT InhibitSelectionEditing
Definition actions.h:356
static const TOOL_EVENT GridChangedByKeyEvent
Definition actions.h:363
static const TOOL_EVENT UndoRedoPreEvent
Definition actions.h:366
static const TOOL_EVENT SelectedEvent
Definition actions.h:343
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
Definition actions.h:350
static const TOOL_EVENT UninhibitSelectionEditing
Used to inform tool that it should display the disambiguation menu.
Definition actions.h:357
static const TOOL_EVENT UndoRedoPostEvent
Definition actions.h:367
static const TOOL_EVENT PointSelectedEvent
Definition actions.h:342
static const TOOL_EVENT SelectedItemsMoved
Used to inform tools that the selection should temporarily be non-editable.
Definition actions.h:353
static const TOOL_EVENT ContrastModeChangedByKeyEvent
Definition actions.h:364
static const TOOL_EVENT ConnectivityChangedEvent
Selected item had a property changed (except movement)
Definition actions.h:347
static const TOOL_EVENT UnselectedEvent
Definition actions.h:344
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:167
The common library.
@ FRAME_CALC
Definition frame_type.h:59
@ FRAME_SCH_SYMBOL_EDITOR
Definition frame_type.h:31
@ FRAME_FOOTPRINT_VIEWER
Definition frame_type.h:41
@ FRAME_SCH_VIEWER
Definition frame_type.h:32
@ FRAME_FOOTPRINT_EDITOR
Definition frame_type.h:39
@ TOGGLE
Action is a toggle button on the toolbar.
Definition tool_action.h:60
@ CANCEL
Action can be cancelled by clicking the toolbar button again.
Definition tool_action.h:61
@ HIDDEN
Action is hidden from the toolbar.
Definition tool_action.h:59
@ AS_GLOBAL
Global action (toolbar/main menu event, global shortcut)
Definition tool_action.h:45
@ AF_ACTIVATE
Action activates a tool.
Definition tool_action.h:52
@ AF_NONE
Definition tool_action.h:51
@ TA_UNDO_REDO_POST
This event is sent after undo/redo command is performed.
Definition tool_event.h:105
@ TA_ACTION
Tool action (allows one to control tools).
Definition tool_event.h:108
@ MD_ALT
Definition tool_event.h:141
@ MD_CTRL
Definition tool_event.h:140
@ MD_SHIFT
Definition tool_event.h:139
@ TC_MESSAGE
Definition tool_event.h:54