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