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