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