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.Interactive.cycleArcEditMode" )
608 .Scope( AS_GLOBAL )
609 .DefaultHotkey( MD_CTRL + ' ' )
610 .FriendlyName( _( "Cycle Arc Editing Mode" ) )
611 .Tooltip( _( "Switch to a different method of editing arcs" ) ) );
612
614 .Name( "common.Interactive.search" )
615 .Scope( AS_GLOBAL )
616 .DefaultHotkey( MD_CTRL + 'G' )
617 .LegacyHotkeyName( "Search" )
618 .FriendlyName( _( "Search" ) )
619 .Tooltip( _( "Show/hide the search panel" ) )
620 .Icon( BITMAPS::find ) );
621
623 .Name( "common.Interactive.find" )
624 .Scope( AS_GLOBAL )
625 .DefaultHotkey( MD_CTRL + 'F' )
626 .LegacyHotkeyName( "Find" )
627 .FriendlyName( _( "Find" ) )
628 .Icon( BITMAPS::find ) );
629
631 .Name( "common.Interactive.findAndReplace" )
632 .Scope( AS_GLOBAL )
633 .DefaultHotkey( MD_CTRL + MD_ALT + 'F' )
634 .LegacyHotkeyName( "Find and Replace" )
635 .FriendlyName( _( "Find and Replace" ) )
636 .Icon( BITMAPS::find_replace ) );
637
639 .Name( "common.Interactive.findNext" )
640 .Scope( AS_GLOBAL )
641 .DefaultHotkey( WXK_F3 )
642 .LegacyHotkeyName( "Find Next" )
643 .FriendlyName( _( "Find Next" ) )
644 .Icon( BITMAPS::find ) );
645
647 .Name( "common.Interactive.findPrevious" )
648 .Scope( AS_GLOBAL )
649 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_F3 ) )
650 .LegacyHotkeyName( "Find Previous" )
651 .FriendlyName( _( "Find Previous" ) )
652 .Icon( BITMAPS::find ) );
653
655 .Name( "common.Interactive.findNextMarker" )
656 .Scope( AS_GLOBAL )
657 .DefaultHotkey( MD_CTRL + MD_SHIFT + static_cast<int>( WXK_F3 ) )
658 .LegacyHotkeyName( "Find Next Marker" )
659 .FriendlyName( _( "Find Next Marker" ) )
660 .Icon( BITMAPS::find ) );
661
663 .Name( "common.Interactive.replaceAndFindNext" )
664 .Scope( AS_GLOBAL )
665 .FriendlyName( _( "Replace and Find Next" ) )
666 .Icon( BITMAPS::find_replace ) );
667
669 .Name( "common.Interactive.replaceAll" )
670 .Scope( AS_GLOBAL )
671 .FriendlyName( _( "Replace All" ) )
672 .Icon( BITMAPS::find_replace ) );
673
675 .Name( "common.Control.updateFind" )
676 .ToolbarState( TOOLBAR_STATE::HIDDEN )
677 .Scope( AS_GLOBAL ) );
678
679
680// Marker Controls
682 .Name( "common.Checker.prevMarker" )
683 .Scope( AS_GLOBAL )
684 .FriendlyName( _( "Previous Marker" ) )
685 .Icon( BITMAPS::marker_previous ) );
686
688 .Name( "common.Checker.nextMarker" )
689 .Scope( AS_GLOBAL )
690 .FriendlyName( _( "Next Marker" ) )
691 .Icon( BITMAPS::marker_next ) );
692
694 .Name( "common.Checker.excludeMarker" )
695 .Scope( AS_GLOBAL )
696 .FriendlyName( _( "Exclude Marker" ) )
697 .Tooltip( _( "Mark current violation in Checker window as an exclusion" ) )
698 .Icon( BITMAPS::marker_exclude ) );
699
700// View Controls
702 .Name( "common.Control.zoomRedraw" )
703 .Scope( AS_GLOBAL )
704#if defined( __WXMAC__ )
705 .DefaultHotkey( MD_CTRL + 'R' )
706#else
707 .DefaultHotkey( WXK_F5 )
708#endif
709 .LegacyHotkeyName( "Zoom Redraw" )
710 .FriendlyName( _( "Refresh" ) )
711 .Icon( BITMAPS::refresh ) );
712
714 .Name( "common.Control.zoomFitScreen" )
715 .Scope( AS_GLOBAL )
716#if defined( __WXMAC__ )
717 .DefaultHotkey( MD_CTRL + '0' )
718#else
719 .DefaultHotkey( WXK_HOME )
720#endif
721 .LegacyHotkeyName( "Zoom Auto" )
722 .FriendlyName( _( "Zoom to Fit" ) )
723 .Tooltip( _( "Zoom to worksheet area if exists or edited object" ) )
724 .Icon( BITMAPS::zoom_fit_in_page ) );
725
727 .Name( "common.Control.zoomFitObjects" )
728 .Scope( AS_GLOBAL )
729 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_HOME ) )
730 .FriendlyName( _( "Zoom to All Objects" ) )
731 .Tooltip( _( "Zoom to all objects on screen" ) )
733
735 .Name( "common.Control.zoomFitSelection" )
736 .Scope( AS_GLOBAL )
737 .Tooltip( _( "Zoom to items currently selected" ) )
738 .FriendlyName( _( "Zoom to Selected Objects" ) )
740
742 .Name( "common.Control.zoomIn" )
743 .Scope( AS_GLOBAL )
744#if defined( __WXMAC__ )
745 .DefaultHotkey( MD_CTRL + '+' )
746#else
747 .DefaultHotkey( WXK_F1 )
748#endif
749 .LegacyHotkeyName( "Zoom In" )
750 .FriendlyName( _( "Zoom In at Cursor" ) )
751 .Icon( BITMAPS::zoom_in ) );
752
754 .Name( "common.Control.zoomOut" )
755 .Scope( AS_GLOBAL )
756#if defined( __WXMAC__ )
757 .DefaultHotkey( MD_CTRL + '-' )
758#else
759 .DefaultHotkey( WXK_F2 )
760#endif
761 .LegacyHotkeyName( "Zoom Out" )
762 .FriendlyName( _( "Zoom Out at Cursor" ) )
763 .Icon( BITMAPS::zoom_out ) );
764
766 .Name( "common.Control.zoomInCenter" )
767 .Scope( AS_GLOBAL )
768 .FriendlyName( _( "Zoom In" ) )
769 .Icon( BITMAPS::zoom_in ) );
770
772 .Name( "common.Control.zoomOutCenter" )
773 .Scope( AS_GLOBAL )
774 .FriendlyName( _( "Zoom Out" ) )
775 .Icon( BITMAPS::zoom_out ) );
776
778 .Name( "common.Control.zoomInHorizontally" )
779 .Scope( AS_GLOBAL )
780 .FriendlyName( _( "Zoom In Horizontally" ) )
781 .Tooltip( _( "Zoom in horizontally the plot area" ) )
783
785 .Name( "common.Control.zoomOutHorizontally" )
786 .Scope( AS_GLOBAL )
787 .FriendlyName( _( "Zoom Out Horizontally" ) )
788 .Tooltip( _( "Zoom out horizontally the plot area" ) )
790
792 .Name( "common.Control.zoomInVertically" )
793 .Scope( AS_GLOBAL )
794 .FriendlyName( _( "Zoom In Vertically" ) )
795 .Tooltip( _( "Zoom in vertically the plot area" ) )
797
799 .Name( "common.Control.zoomOutVertically" )
800 .Scope( AS_GLOBAL )
801 .FriendlyName( _( "Zoom Out Vertically" ) )
802 .Tooltip( _( "Zoom out vertically the plot area" ) )
804
806 .Name( "common.Control.zoomCenter" )
807 .Scope( AS_GLOBAL )
808 .DefaultHotkey( WXK_F4 )
809 .LegacyHotkeyName( "Zoom Center" )
810 .FriendlyName( _( "Center on Cursor" ) )
812
814 .Name( "common.Control.zoomTool" )
815 .Scope( AS_GLOBAL )
816 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_F5 ) )
817 .LegacyHotkeyName( "Zoom to Selection" )
818 .FriendlyName( _( "Zoom to Selection Area" ) )
819 .Tooltip( _( "Zoom to an area selection created by a mouse drag" ) )
820 .Icon( BITMAPS::zoom_area )
821 .ToolbarState( { TOOLBAR_STATE::TOGGLE, TOOLBAR_STATE::CANCEL } )
822 .Flags( AF_ACTIVATE ) );
823
825 .Name( "common.Control.undoZoom" )
826 .Scope( AS_GLOBAL )
827 .FriendlyName( _( "Undo Last Zoom" ) )
828 .Tooltip( _( "Return zoom to level prior to last zoom action" ) )
829 .Icon( BITMAPS::undo ) );
830
832 .Name( "common.Control.redoZoom" )
833 .Scope( AS_GLOBAL )
834 .FriendlyName( _( "Redo Last Zoom" ) )
835 .Tooltip( _( "Return zoom to level prior to last zoom undo" ) )
836 .Icon( BITMAPS::redo ) );
837
839 .Name( "common.Control.zoomPreset" )
840 .Scope( AS_GLOBAL )
841 .Parameter<int>( 0 ) ); // Default parameter is the 0th item in the list
842
844 .Name( "common.Control.centerContents" )
845 .Scope( AS_GLOBAL ) );
846
848 .Name( "common.Control.centerSelection" )
849 .Scope( AS_GLOBAL )
850 .FriendlyName( _( "Pan to Center Selected Objects" ) ) );
851
852// Cursor control
854 .Name( "common.Control.cursorUp" )
855 .Scope( AS_GLOBAL )
856 .DefaultHotkey( WXK_UP )
857 .FriendlyName( _( "Cursor Up" ) )
858 .ToolbarState( TOOLBAR_STATE::HIDDEN )
859 .Flags( AF_NONE )
860 .Parameter( CURSOR_UP ) );
861
863 .Name( "common.Control.cursorDown" )
864 .Scope( AS_GLOBAL )
865 .DefaultHotkey( WXK_DOWN )
866 .FriendlyName( _( "Cursor Down" ) )
867 .ToolbarState( TOOLBAR_STATE::HIDDEN )
868 .Flags( AF_NONE )
869 .Parameter( CURSOR_DOWN ) );
870
872 .Name( "common.Control.cursorLeft" )
873 .Scope( AS_GLOBAL )
874 .DefaultHotkey( WXK_LEFT )
875 .FriendlyName( _( "Cursor Left" ) )
876 .ToolbarState( TOOLBAR_STATE::HIDDEN )
877 .Flags( AF_NONE )
878 .Parameter( CURSOR_LEFT ) );
879
881 .Name( "common.Control.cursorRight" )
882 .Scope( AS_GLOBAL )
883 .DefaultHotkey( WXK_RIGHT )
884 .FriendlyName( _( "Cursor Right" ) )
885 .ToolbarState( TOOLBAR_STATE::HIDDEN )
886 .Flags( AF_NONE )
887 .Parameter( CURSOR_RIGHT ) );
888
889
891 .Name( "common.Control.cursorUpFast" )
892 .Scope( AS_GLOBAL )
893 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_UP ) )
894 .FriendlyName( _( "Cursor Up Fast" ) )
895 .ToolbarState( TOOLBAR_STATE::HIDDEN )
896 .Flags( AF_NONE )
897 .Parameter( CURSOR_UP_FAST ) );
898
900 .Name( "common.Control.cursorDownFast" )
901 .Scope( AS_GLOBAL )
902 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_DOWN ) )
903 .FriendlyName( _( "Cursor Down Fast" ) )
904 .ToolbarState( TOOLBAR_STATE::HIDDEN )
905 .Flags( AF_NONE )
906 .Parameter( CURSOR_DOWN_FAST ) );
907
909 .Name( "common.Control.cursorLeftFast" )
910 .Scope( AS_GLOBAL )
911 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_LEFT ) )
912 .FriendlyName( _( "Cursor Left Fast" ) )
913 .ToolbarState( TOOLBAR_STATE::HIDDEN )
914 .Flags( AF_NONE )
915 .Parameter( CURSOR_LEFT_FAST ) );
916
918 .Name( "common.Control.cursorRightFast" )
919 .Scope( AS_GLOBAL )
920 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_RIGHT ) )
921 .FriendlyName( _( "Cursor Right Fast" ) )
922 .ToolbarState( TOOLBAR_STATE::HIDDEN )
923 .Flags( AF_NONE )
924 .Parameter( CURSOR_RIGHT_FAST ) );
925
927 .Name( "common.Control.cursorClick" )
928 .Scope( AS_GLOBAL )
929 .DefaultHotkey( WXK_RETURN )
930 .LegacyHotkeyName( "Mouse Left Click" )
931 .FriendlyName( _( "Click" ) )
932 .Tooltip( _( "Performs left mouse button click" ) )
933 .ToolbarState( TOOLBAR_STATE::HIDDEN )
934 .Flags( AF_NONE )
935 .Parameter( CURSOR_CLICK ) );
936
938 .Name( "common.Control.cursorDblClick" )
939 .Scope( AS_GLOBAL )
940 .DefaultHotkey( WXK_END )
941 .LegacyHotkeyName( "Mouse Left Double Click" )
942 .FriendlyName( _( "Double-click" ) )
943 .Tooltip( _( "Performs left mouse button double-click" ) )
944 .ToolbarState( TOOLBAR_STATE::HIDDEN )
945 .Flags( AF_NONE )
946 .Parameter( CURSOR_DBL_CLICK ) );
947
949 .Name( "common.Control.refreshPreview" )
950 .ToolbarState( TOOLBAR_STATE::HIDDEN )
951 .Scope( AS_GLOBAL ) );
952
954 .Name( "common.Control.pinLibrary" )
955 .Scope( AS_GLOBAL )
956 .FriendlyName( _( "Pin Library" ) )
957 .Tooltip( _( "Keep the library at the top of the list" ) ) );
958
960 .Name( "common.Control.unpinLibrary" )
961 .Scope( AS_GLOBAL )
962 .FriendlyName( _( "Unpin Library" ) )
963 .Tooltip( _( "No longer keep the library at the top of the list" ) ) );
964
966 .Name( "common.Control.showLibraryTree" )
967 .Scope( AS_GLOBAL )
968 .FriendlyName( _( "Library Tree" ) )
969 .ToolbarState( TOOLBAR_STATE::TOGGLE )
970 .Icon( BITMAPS::search_tree ) );
971
973 .Name( "common.Control.hideLibraryTree" )
974 .Scope( AS_GLOBAL )
975 .FriendlyName( _( "Hide Library Tree" ) )
976 .Icon( BITMAPS::search_tree ) );
977
979 .Name( "common.Control.libraryTreeSearch" )
980 .Scope( AS_GLOBAL )
981 .FriendlyName( _( "Focus Library Tree Search Field" ) )
982 .DefaultHotkey( MD_CTRL + 'L' )
983 .ToolbarState( TOOLBAR_STATE::HIDDEN ) );
984
986 .Name( "common.Control.panUp" )
987 .Scope( AS_GLOBAL )
988 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_UP ) )
989 .FriendlyName( _( "Pan Up" ) )
990 .Flags( AF_NONE )
991 .Parameter( CURSOR_UP ) );
992
994 .Name( "common.Control.panDown" )
995 .Scope( AS_GLOBAL )
996 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DOWN ) )
997 .FriendlyName( _( "Pan Down" ) )
998 .Flags( AF_NONE )
999 .Parameter( CURSOR_DOWN ) );
1000
1002 .Name( "common.Control.panLeft" )
1003 .Scope( AS_GLOBAL )
1004 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_LEFT ) )
1005 .FriendlyName( _( "Pan Left" ) )
1006 .Flags( AF_NONE )
1007 .Parameter( CURSOR_LEFT ) );
1008
1010 .Name( "common.Control.panRight" )
1011 .Scope( AS_GLOBAL )
1012 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_RIGHT ) )
1013 .FriendlyName( _( "Pan Right" ) )
1014 .Flags( AF_NONE )
1015 .Parameter( CURSOR_RIGHT ) );
1016
1017// Grid control
1019 .Name( "common.Control.gridFast1" )
1020 .Scope( AS_GLOBAL )
1021 .DefaultHotkey( MD_ALT + '1' )
1022 .LegacyHotkeyName( "Switch Grid To Fast Grid1" )
1023 .FriendlyName( _( "Switch to Fast Grid 1" ) ) );
1024
1026 .Name( "common.Control.gridFast2" )
1027 .Scope( AS_GLOBAL )
1028 .DefaultHotkey( MD_ALT + '2' )
1029 .LegacyHotkeyName( "Switch Grid To Fast Grid2" )
1030 .FriendlyName( _( "Switch to Fast Grid 2" ) ) );
1031
1033 .Name( "common.Control.gridFastCycle" )
1034 .Scope( AS_GLOBAL )
1035 .DefaultHotkey( MD_ALT + '4' )
1036 .LegacyHotkeyName( "Switch Grid To Next Fast Grid" )
1037 .FriendlyName( _( "Cycle Fast Grid" ) ) );
1038
1040 .Name( "common.Control.gridNext" )
1041 .Scope( AS_GLOBAL )
1042 .DefaultHotkey( 'N' )
1043 .LegacyHotkeyName( "Switch Grid To Next" )
1044 .FriendlyName( _("Switch to Next Grid" ) ) );
1045
1047 .Name( "common.Control.gridPrev" )
1048 .Scope( AS_GLOBAL )
1049 .DefaultHotkey( MD_SHIFT + 'N' )
1050 .LegacyHotkeyName( "Switch Grid To Previous" )
1051 .FriendlyName( _( "Switch to Previous Grid" ) ) );
1052
1054 .Name( "common.Control.gridSetOrigin" )
1055 .Scope( AS_GLOBAL )
1056 .LegacyHotkeyName( "Set Grid Origin" )
1057 .FriendlyName( _( "Grid Origin" ) )
1058 .Tooltip( _( "Place the grid origin point" ) )
1059 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1061 .Parameter<VECTOR2D*>( nullptr ) );
1062
1064 .Name( "common.Control.gridResetOrigin" )
1065 .Scope( AS_GLOBAL )
1066 .LegacyHotkeyName( "Reset Grid Origin" )
1067 .FriendlyName( _( "Reset Grid Origin" ) ) );
1068
1070 .Name( "common.Control.gridPreset" )
1071 .Scope( AS_GLOBAL )
1072 .Parameter<int>( 0 ) ); // Default to the 1st element of the list
1073
1075 .Name( "common.Control.toggleGrid" )
1076 .Scope( AS_GLOBAL)
1077 .FriendlyName( _( "Show Grid" ) )
1078 .Tooltip( _( "Display background grid in the edit window" ) )
1079 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1080 .Icon( BITMAPS::grid ) );
1081
1083 .Name( "common.Control.toggleGridOverrides" )
1084 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'G' )
1085 .Scope( AS_GLOBAL)
1086 .FriendlyName( _( "Grid Overrides" ) )
1087 .Tooltip( _( "Enables item-specific grids that override the current grid" ) )
1088 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1089 .Icon( BITMAPS::grid_override ) );
1090
1092 .Name( "common.Control.editGrids" )
1093 .Scope( AS_GLOBAL )
1094 .FriendlyName( _( "Edit Grids..." ) )
1095 .Tooltip( _( "Edit grid definitions" ) )
1096 .Icon( BITMAPS::grid_select ) );
1097
1099 .Name( "common.Control.editGridOrigin" )
1100 .Scope( AS_GLOBAL )
1101 .FriendlyName( _( "Grid Origin..." ) )
1102 .Tooltip( _( "Set the grid origin point" ) )
1103 .Icon( BITMAPS::grid_select_axis ) );
1104
1106 .Name( "common.Control.imperialUnits" )
1107 .Scope( AS_GLOBAL )
1108 .FriendlyName( _( "Inches" ) )
1109 .Icon( BITMAPS::unit_inch )
1110 .Flags( AF_NONE )
1111 .Parameter( EDA_UNITS::INCH ) );
1112
1114 .Name( "common.Control.mils" )
1115 .Scope( AS_GLOBAL )
1116 .FriendlyName( _( "Mils" ) )
1117 .Icon( BITMAPS::unit_mil )
1118 .Flags( AF_NONE )
1119 .Parameter( EDA_UNITS::MILS ) );
1120
1122 .Name( "common.Control.metricUnits" )
1123 .Scope( AS_GLOBAL )
1124 .FriendlyName( _( "Millimeters" ) )
1125 .Icon( BITMAPS::unit_mm )
1126 .Flags( AF_NONE )
1127 .Parameter( EDA_UNITS::MM ) );
1128
1130 .Name( "common.Control.updateUnits" )
1131 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1132 .Scope( AS_GLOBAL ) );
1133
1135 .Name( "common.Control.updatePreferences" )
1136 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1137 .Scope( AS_GLOBAL ) );
1138
1140 .Name( "common.Control.selectColumns" )
1141 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1142 .Scope( AS_GLOBAL )
1143 .FriendlyName( _( "Select Columns..." ) ) );
1144
1146 .Name( "common.Control.toggleUnits" )
1147 .Scope( AS_GLOBAL )
1148 .DefaultHotkey( MD_CTRL + 'U' )
1149 .LegacyHotkeyName( "Switch Units" )
1150 .FriendlyName( _( "Switch units" ) )
1151 .Tooltip( _( "Switch between imperial and metric units" ) )
1152 .Icon( BITMAPS::unit_mm ) );
1153
1155 .Name( "common.Control.togglePolarCoords" )
1156 .Scope( AS_GLOBAL )
1157 .FriendlyName( _( "Polar Coordinates" ) )
1158 .Tooltip( _( "Switch between polar and cartesian coordinate systems" ) )
1159 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1160 .Icon( BITMAPS::polar_coord ) );
1161
1163 .Name( "common.Control.resetLocalCoords" )
1164 .Scope( AS_GLOBAL )
1165 .DefaultHotkey( ' ' )
1166 .LegacyHotkeyName( "Reset Local Coordinates" )
1167 .FriendlyName( _( "Reset Local Coordinates" ) ) );
1168
1170 .Name( "common.Control.toggleCursor" )
1171 .Scope( AS_GLOBAL )
1172 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1173 .LegacyHotkeyName( "Toggle Cursor Display (Modern Toolset only)" )
1174 .FriendlyName( _( "Always Show Crosshairs" ) )
1175 .Tooltip( _( "Display crosshairs even when not drawing objects" ) )
1176 .Icon( BITMAPS::cursor ) );
1177
1179 .Name( "common.Control.cursorSmallCrosshairs" )
1180 .Scope( AS_GLOBAL )
1181 .FriendlyName( _( "Small crosshairs" ) )
1182 .Tooltip( _( "Use small crosshairs aligned at 0 and 90 degrees" ) )
1183 .Icon( BITMAPS::cursor_shape ) );
1184
1186 .Name( "common.Control.cursorFullCrosshairs" )
1187 .Scope( AS_GLOBAL )
1188 .FriendlyName( _( "Full-Window Crosshairs" ) )
1189 .Tooltip( _( "Display full-window crosshairs aligned at 0 and 90 degrees" ) )
1190 .Icon( BITMAPS::cursor_fullscreen ) );
1191
1193 .Name( "common.Control.cursor45Crosshairs" )
1194 .Scope( AS_GLOBAL )
1195 .FriendlyName( _( "45 Degree Crosshairs" ) )
1196 .Tooltip( _( "Display full-window crosshairs aligned at 45 and 135 degrees" ) )
1198
1200 .Name( "common.Control.highContrastMode" )
1201 .Scope( AS_GLOBAL )
1202 .LegacyHotkeyName( "Toggle High Contrast Mode" )
1203 .FriendlyName( _( "Inactive Layer View Mode" ) )
1204 .Tooltip( _( "Toggle inactive layers between normal and dimmed" ) )
1205 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1206 .Icon( BITMAPS::contrast_mode ) );
1207
1209 .Name( "common.Control.highContrastModeCycle" )
1210 .Scope( AS_GLOBAL )
1211 .DefaultHotkey( 'H' )
1212 .FriendlyName( _( "Inactive Layer View Mode (3-state)" ) )
1213 .Tooltip( _( "Cycle inactive layers between normal, dimmed, and hidden" ) )
1214 .Icon( BITMAPS::contrast_mode ) );
1215
1217 .Name( "common.Control.toggleBoundingBoxes" )
1218 .Scope( AS_GLOBAL )
1219 .FriendlyName( _( "Draw Bounding Boxes" ) )
1220 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1222
1224 .Name( "common.InteractiveSelection.selectionTool" )
1225 .Scope( AS_GLOBAL )
1226 .FriendlyName( _( "Select item(s)" ) )
1227 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1228 .Icon( BITMAPS::cursor )
1229 .Flags( AF_ACTIVATE ) );
1230
1232 .Name( "common.Interactive.measureTool" )
1233 .Scope( AS_GLOBAL )
1234 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'M' )
1235 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
1236 .LegacyHotkeyName( "Measure Distance (Modern Toolset only)" )
1237 .FriendlyName( _( "Measure Tool" ) )
1238 .Tooltip( _( "Interactively measure distance between points" ) )
1239 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1240 .Icon( BITMAPS::measurement )
1241 .Flags( AF_ACTIVATE ) );
1242
1244 .Name( "common.InteractivePicker.pickerTool" )
1245 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1246 .Scope( AS_GLOBAL )
1247 .Flags( AF_ACTIVATE ) );
1248
1250 .Name( "common.InteractivePicker.pickerSubTool" )
1251 .ToolbarState( TOOLBAR_STATE::HIDDEN )
1252 .Scope( AS_GLOBAL ) );
1253
1255 .Name( "common.Control.showProjectManager" )
1256 .Scope( AS_GLOBAL )
1257 .FriendlyName( _( "Switch to Project Manager" ) )
1258 .Tooltip( _( "Show project window" ) )
1259 .Icon( BITMAPS::icon_kicad_24 ) );
1260
1262 .Name( "common.Control.show3DViewer" )
1263 .Scope( AS_GLOBAL )
1264 .DefaultHotkey( MD_ALT + '3' )
1265 .LegacyHotkeyName( "3D Viewer" )
1266 .FriendlyName( _( "3D Viewer" ) )
1267 .Tooltip( _( "Show 3D viewer window" ) )
1268 .Icon( BITMAPS::three_d ) );
1269
1271 .Name( "common.Control.showSymbolBrowser" )
1272 .Scope( AS_GLOBAL )
1273 .FriendlyName( _( "Symbol Library Browser" ) )
1275 .Flags( AF_NONE)
1276 .Parameter( FRAME_SCH_VIEWER ) );
1277
1279 .Name( "common.Control.showSymbolEditor" )
1280 .Scope( AS_GLOBAL )
1281 .FriendlyName( _( "Symbol Editor" ) )
1282 .Tooltip( _( "Create, delete and edit schematic symbols" ) )
1283 .Icon( BITMAPS::libedit )
1284 .Flags( AF_NONE )
1285 .Parameter( FRAME_SCH_SYMBOL_EDITOR ) );
1286
1288 .Name( "common.Control.showFootprintBrowser" )
1289 .Scope( AS_GLOBAL )
1290 .FriendlyName( _( "Footprint Library Browser" ) )
1292 .Flags( AF_NONE )
1293 .Parameter( FRAME_FOOTPRINT_VIEWER ) );
1294
1296 .Name( "common.Control.showFootprintEditor" )
1297 .Scope( AS_GLOBAL )
1298 .FriendlyName( _( "Footprint Editor" ) )
1299 .Tooltip( _( "Create, delete and edit board footprints" ) )
1300 .Icon( BITMAPS::module_editor )
1301 .Flags( AF_NONE )
1302 .Parameter( FRAME_FOOTPRINT_EDITOR ) );
1303
1305 .Name( "common.Control.showCalculatorTools" )
1306 .Scope( AS_GLOBAL )
1307 .FriendlyName( _( "Calculator Tools" ) )
1308 .Tooltip( _( "Run component calculations, track width calculations, etc." ) )
1310 .Flags( AF_NONE )
1311 .Parameter( FRAME_CALC ) );
1312
1314 .Name( "common.Control.showProperties" )
1315 .Scope( AS_GLOBAL )
1316 .FriendlyName( _( "Properties" ) )
1317 .Tooltip( _( "Show/hide the properties manager" ) )
1318 .ToolbarState( TOOLBAR_STATE::TOGGLE )
1319 .Icon( BITMAPS::tools ) );
1320
1322 .Name( "common.Control.showDatasheet" )
1323 .Scope( AS_GLOBAL )
1324 .DefaultHotkey( 'D' )
1325 .LegacyHotkeyName( "Show Datasheet" )
1326 .FriendlyName( _( "Show Datasheet" ) )
1327 .Tooltip( _( "Open the datasheet in a browser" ) )
1328 .Icon( BITMAPS::datasheet ) );
1329
1331 .Name( "common.Control.updatePcbFromSchematic" )
1332 .Scope( AS_GLOBAL )
1333 .DefaultHotkey( WXK_F8 )
1334 .LegacyHotkeyName( "Update PCB from Schematic" )
1335 .FriendlyName( _( "Update PCB from Schematic..." ) )
1336 .Tooltip( _( "Update PCB with changes made to schematic" ) )
1338
1340 .Name( "common.Control.updateSchematicFromPCB" )
1341 .Scope( AS_GLOBAL )
1342 .FriendlyName( _( "Update Schematic from PCB..." ) )
1343 .Tooltip( _( "Update schematic with changes made to PCB" ) )
1345
1347 .Name( "common.SuiteControl.openPreferences" )
1348 .Scope( AS_GLOBAL )
1349 .DefaultHotkey( MD_CTRL + ',' )
1350 .FriendlyName( _( "Preferences..." ) )
1351 .Tooltip( _( "Show preferences for all open tools" ) )
1352 .Icon( BITMAPS::preference )
1353 .UIId( wxID_PREFERENCES ) );
1354
1356 .Name( "common.SuiteControl.configurePaths" )
1357 .Scope( AS_GLOBAL )
1358 .FriendlyName( _( "Configure Paths..." ) )
1359 .Tooltip( _( "Edit path configuration environment variables" ) )
1360 .Icon( BITMAPS::path ) );
1361
1363 .Name( "common.SuiteControl.showSymbolLibTable" )
1364 .Scope( AS_GLOBAL )
1365 .FriendlyName( _( "Manage Symbol Libraries..." ) )
1366 .Tooltip( _( "Edit the global and project symbol library lists" ) )
1367 .Icon( BITMAPS::library_table ) );
1368
1370 .Name( "common.SuiteControl.showFootprintLibTable" )
1371 .Scope( AS_GLOBAL )
1372 .FriendlyName( _( "Manage Footprint Libraries..." ) )
1373 .Tooltip( _( "Edit the global and project footprint library lists" ) )
1374 .Icon( BITMAPS::library_table ) );
1375
1377 .Name( "common.SuiteControl.showDesignBLockLibTable" )
1378 .Scope( AS_GLOBAL )
1379 .FriendlyName( _( "Manage Design Block Libraries..." ) )
1380 .Tooltip( _( "Edit the global and project design block library lists" ) )
1381 .Icon( BITMAPS::library_table ) );
1382
1384 .Name( "common.SuiteControl.gettingStarted" )
1385 .Scope( AS_GLOBAL )
1386 .FriendlyName( _( "Getting Started with KiCad" ) )
1387 .Tooltip( _( "Open \"Getting Started in KiCad\" guide for beginners" ) )
1388 .Icon( BITMAPS::help ) );
1389
1391 .Name( "common.SuiteControl.help" )
1392 .Scope( AS_GLOBAL )
1393 .FriendlyName( _( "Help" ) )
1394 .Tooltip( _( "Open product documentation in a web browser" ) )
1395 .Icon( BITMAPS::help_online ) );
1396
1398 .Name( "common.SuiteControl.about" )
1399 .Scope( AS_GLOBAL )
1400 .FriendlyName( _( "About KiCad" ) )
1401 .UIId( wxID_ABOUT )
1402 .Icon( BITMAPS::about ) );
1403
1405 .Name( "common.SuiteControl.listHotKeys" )
1406 .Scope( AS_GLOBAL )
1407 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_F1 ) )
1408 .LegacyHotkeyName( "List Hotkeys" )
1409 .FriendlyName( _( "List Hotkeys..." ) )
1410 .Tooltip( _( "Displays current hotkeys table and corresponding commands" ) )
1411 .Icon( BITMAPS::hotkeys ) );
1412
1414 .Name( "common.SuiteControl.getInvolved" )
1415 .Scope( AS_GLOBAL )
1416 .FriendlyName( _( "Get Involved" ) )
1417 .Tooltip( _( "Open \"Contribute to KiCad\" in a web browser" ) )
1418 .Icon( BITMAPS::info ) );
1419
1421 .Name( "common.SuiteControl.donate" )
1422 .Scope( AS_GLOBAL )
1423 .FriendlyName( _( "Donate" ) )
1424 .Tooltip( _( "Open \"Donate to KiCad\" in a web browser" ) ) );
1425
1427 .Name( "common.SuiteControl.reportBug" )
1428 .Scope( AS_GLOBAL )
1429 .FriendlyName( _( "Report Bug" ) )
1430 .Tooltip( _( "Report a problem with KiCad" ) )
1431 .Icon( BITMAPS::bug ) );
1432
1434 .Name( "common.Control.ddaddLibrary" )
1435 .Scope( AS_GLOBAL ) );
1436
1437// API
1438
1440 .Name( "common.API.pluginsReload" )
1441 .Scope( AS_GLOBAL )
1442 .FriendlyName( _( "Refresh Plugins" ) )
1443 .Tooltip( _( "Reload all python plugins and refresh plugin menus" ) )
1444 .Icon( BITMAPS::reload ) );
1445
1446// Embedding Files
1447
1449 .Name( "common.Embed.embededFile" )
1450 .Scope( AS_GLOBAL )
1451 .FriendlyName( _( "Embedded Files" ) )
1452 .Tooltip( _( "Manage embedded files" ) ) );
1453
1455 .Name( "common.Embed.removeFile" )
1456 .Scope( AS_GLOBAL )
1457 .FriendlyName( _( "Remove File" ) )
1458 .Tooltip( _( "Remove an embedded file" ) ) );
1459
1461 .Name( "common.Embed.extractFile" )
1462 .Scope( AS_GLOBAL )
1463 .FriendlyName( _( "Extract File" ) )
1464 .Tooltip( _( "Extract an embedded file" ) ) );
1465
1466// System-wide selection Events
1467
1469 "common.Interactive.pointSelected" );
1470const TOOL_EVENT EVENTS::SelectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.selected" );
1471const TOOL_EVENT EVENTS::UnselectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.unselected" );
1472const TOOL_EVENT EVENTS::ClearedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.cleared" );
1473
1475 "common.Interactive.connectivityChanged" );
1476
1478 "common.Interactive.modified" );
1479const TOOL_EVENT EVENTS::SelectedItemsMoved( TC_MESSAGE, TA_ACTION, "common.Interactive.moved" );
1481 "common.Interactive.inhibit" );
1483 "common.Interactive.uninhibit" );
1484
1486 "common.Interactive.disambiguate" );
1487
1489 "common.Interactive.gridChangedByKey" );
1490
1491const TOOL_EVENT
1493 "common.Interactive.contrastModeChangedByKeyEvent" );
1494
1495// System-wide undo/redo Events
1496
#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:283
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 reportBug
Definition actions.h:287
static TOOL_ACTION decrementSecondary
Definition actions.h:94
static TOOL_ACTION replaceAll
Definition actions.h:119
static TOOL_ACTION updatePreferences
Definition actions.h:272
static TOOL_ACTION selectItem
Select an item (specified as the event parameter).
Definition actions.h:223
static TOOL_ACTION cursorLeft
Definition actions.h: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:290
static TOOL_ACTION extractFile
Definition actions.h:294
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:268
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:278
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:285
static TOOL_ACTION cursorDown
Definition actions.h:167
static TOOL_ACTION zoomOut
Definition actions.h:130
static TOOL_ACTION pointEditorArcKeepCenter
Definition actions.h:269
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:284
static TOOL_ACTION cursorRightFast
Definition actions.h:174
static TOOL_ACTION ungroup
Definition actions.h:236
static TOOL_ACTION openPreferences
Definition actions.h:276
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:286
static TOOL_ACTION rightJustify
Definition actions.h:85
static TOOL_ACTION showFootprintLibTable
Definition actions.h:279
static TOOL_ACTION centerContents
Definition actions.h:145
static TOOL_ACTION plot
Definition actions.h:61
static TOOL_ACTION pointEditorArcKeepRadius
Definition actions.h:271
static TOOL_ACTION zoomCenter
Definition actions.h:137
static TOOL_ACTION panDown
Definition actions.h:181
static TOOL_ACTION selectLibTreeColumns
Definition actions.h:273
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:295
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:293
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:280
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:277
static TOOL_ACTION showProjectManager
Definition actions.h:253
static TOOL_ACTION gettingStarted
Definition actions.h:281
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:270
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:282
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:358
static const TOOL_EVENT ClearedEvent
Definition actions.h:343
static const TOOL_EVENT InhibitSelectionEditing
Definition actions.h:354
static const TOOL_EVENT GridChangedByKeyEvent
Definition actions.h:361
static const TOOL_EVENT UndoRedoPreEvent
Definition actions.h:364
static const TOOL_EVENT SelectedEvent
Definition actions.h:341
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
Definition actions.h:348
static const TOOL_EVENT UninhibitSelectionEditing
Used to inform tool that it should display the disambiguation menu.
Definition actions.h:355
static const TOOL_EVENT UndoRedoPostEvent
Definition actions.h:365
static const TOOL_EVENT PointSelectedEvent
Definition actions.h:340
static const TOOL_EVENT SelectedItemsMoved
Used to inform tools that the selection should temporarily be non-editable.
Definition actions.h:351
static const TOOL_EVENT ContrastModeChangedByKeyEvent
Definition actions.h:362
static const TOOL_EVENT ConnectivityChangedEvent
Selected item had a property changed (except movement)
Definition actions.h:345
static const TOOL_EVENT UnselectedEvent
Definition actions.h:342
Build up the properties of a TOOL_ACTION in an incremental manner that is static-construction safe.
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