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 (C) 2021-2024 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>
29#include <tool/actions.h>
30#include <tool/tool_action.h>
31#include <tool/tool_event.h>
32
33// Actions, being statically-defined, require specialized I18N handling. We continue to
34// use the _() macro so that string harvesting by the I18N framework doesn't have to be
35// specialized, but we don't translate on initialization and instead do it in the getters.
36
37#undef _
38#define _(s) s
39
41 .Name( "common.Control.new" )
42 .Scope( AS_GLOBAL )
43 .DefaultHotkey( MD_CTRL + 'N' )
44 .LegacyHotkeyName( "New" )
45 .FriendlyName( _( "New..." ) )
46 .Tooltip( _( "Create a new document in the editor" ) )
47 .Icon( BITMAPS::new_generic ) );
48
50 .Name( "common.Control.newLibrary" )
51 .Scope( AS_GLOBAL )
52 .FriendlyName( _( "New Library..." ) )
53 .Tooltip( _( "Create a new library folder" ) )
54 .Icon( BITMAPS::new_library ) );
55
57 .Name( "common.Control.addLibrary" )
58 .Scope( AS_GLOBAL )
59 .FriendlyName( _( "Add Library..." ) )
60 .Tooltip( _( "Add an existing library folder" ) )
61 .Icon( BITMAPS::add_library ) );
62
64 .Name( "common.Control.open" )
65 .Scope( AS_GLOBAL )
66 .DefaultHotkey( MD_CTRL + 'O' )
67 .LegacyHotkeyName( "Open" )
68 .FriendlyName( _( "Open..." ) )
69 .Tooltip( _( "Open existing document" ) )
70 .Icon( BITMAPS::directory_open ) );
71
73 .Name( "common.Control.openWithTextEditor" )
74 .Scope( AS_GLOBAL )
75 .FriendlyName( _( "Edit in a Text Editor..." ) )
76 .Tooltip( _( "Open a library file with a text editor" ) )
77 .Icon( BITMAPS::editor ) );
78
80 .Name( "common.Control.openDirectory" )
81 .Scope( AS_GLOBAL )
82 .FriendlyName( _( "Open in file explorer..." ) )
83 .Tooltip( _( "Open a library file with system file explorer" ) )
85
87 .Name( "common.Control.save" )
88 .Scope( AS_GLOBAL )
89 .DefaultHotkey( MD_CTRL + 'S' )
90 .LegacyHotkeyName( "Save" )
91 .FriendlyName( _( "Save" ) )
92 .Tooltip( _( "Save changes" ) )
93 .Icon( BITMAPS::save ) );
94
96 .Name( "common.Control.saveAs" )
97 .Scope( AS_GLOBAL )
98 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'S' )
99 .LegacyHotkeyName( "Save As" )
100 .FriendlyName( _( "Save As..." ) )
101 .Tooltip( _( "Save current document to another location" ) )
102 .Icon( BITMAPS::save_as ) );
103
105 .Name( "common.Control.saveCopy" )
106 .Scope( AS_GLOBAL )
107 .FriendlyName( _( "Save a Copy..." ) )
108 .Tooltip( _( "Save a copy of the current document to another location" ) )
109 .Icon( BITMAPS::save_as ) );
110
112 .Name( "common.Control.saveAll" )
113 .Scope( AS_GLOBAL )
114 .FriendlyName( _( "Save All" ) )
115 .Tooltip( _( "Save all changes" ) )
116 .Icon( BITMAPS::save ) );
117
119 .Name( "common.Control.revert" )
120 .Scope( AS_GLOBAL )
121 .FriendlyName( _( "Revert" ) )
122 .Tooltip( _( "Throw away changes" ) ) );
123
125 .Name( "common.Control.pageSettings" )
126 .Scope( AS_GLOBAL )
127 .FriendlyName( _( "Page Settings..." ) )
128 .Tooltip( _( "Settings for paper size and title block info" ) )
129 .Icon( BITMAPS::sheetset ) );
130
132 .Name( "common.Control.print" )
133 .Scope( AS_GLOBAL )
134 .DefaultHotkey( MD_CTRL + 'P' )
135 .LegacyHotkeyName( "Print" )
136 .FriendlyName( _( "Print..." ) )
137 .Icon( BITMAPS::print_button ) );
138
140 .Name( "common.Control.plot" )
141 .Scope( AS_GLOBAL )
142 .FriendlyName( _( "Plot..." ) )
143 .Icon( BITMAPS::plot ) );
144
146 .Name( "common.Control.quit" )
147 .Scope( AS_GLOBAL )
148 .FriendlyName( _( "Quit" ) )
149 .Tooltip( _( "Close the current editor" ) )
150 .Icon( BITMAPS::exit ) );
151
152// Generic Edit Actions
154 .Name( "common.Interactive.cancel" )
155 .Scope( AS_GLOBAL )
156 // ESC key is handled in the dispatcher
157 .FriendlyName( _( "Cancel" ) )
158 .Tooltip( _( "Cancel current tool" ) )
159 .Icon( BITMAPS::cancel )
160 .Flags( AF_NONE ) );
161
163 .Name( "common.Interactive.finish" )
164 .Scope( AS_GLOBAL )
165 .DefaultHotkey( WXK_END )
166 .FriendlyName( _( "Finish" ) )
167 .Tooltip( _( "Finish current tool" ) )
168 .Icon( BITMAPS::checked_ok )
169 .Flags( AF_NONE ) );
170
172 .Name( "common.Control.showContextMenu" )
173 .Scope( AS_GLOBAL )
174 .FriendlyName( _( "Show Context Menu" ) )
175 .Tooltip( _( "Perform the right-mouse-button action" ) )
176 .Flags( AF_NONE )
177 .Parameter( CURSOR_RIGHT_CLICK ) );
178
180 .Name( "common.Interactive.updateMenu" )
181 .Scope( AS_GLOBAL ) );
182
184 .Name( "common.Interactive.undo" )
185 .Scope( AS_GLOBAL )
186 .DefaultHotkey( MD_CTRL + 'Z' )
187 .LegacyHotkeyName( "Undo" )
188 .FriendlyName( _( "Undo" ) )
189 .Icon( BITMAPS::undo ) );
190
192 .Name( "common.Interactive.redo" )
193 .Scope( AS_GLOBAL )
194#if defined( __WXMAC__ )
195 .DefaultHotkey( MD_SHIFT + MD_CTRL + 'Z' )
196#else
197 .DefaultHotkey( MD_CTRL + 'Y' )
198#endif
199 .LegacyHotkeyName( "Redo" )
200 .FriendlyName( _( "Redo" ) )
201 .Icon( BITMAPS::redo ) );
202
203// The following actions need to have a hard-coded UI ID using a wx-specific ID
204// to fix things like search controls in standard file dialogs. If wxWidgets
205// doesn't find these specific IDs somewhere in the menus then it won't enable
206// cut/copy/paste.
208 .Name( "common.Interactive.cut" )
209 .Scope( AS_GLOBAL )
210 .DefaultHotkey( MD_CTRL + 'X' )
211 .LegacyHotkeyName( "Cut" )
212 .FriendlyName( _( "Cut" ) )
213 .Tooltip( _( "Cut selected item(s) to clipboard" ) )
214 .Icon( BITMAPS::cut )
215 .Flags( AF_NONE )
216 .UIId( wxID_CUT ) );
217
219 .Name( "common.Interactive.copy" )
220 .Scope( AS_GLOBAL )
221 .DefaultHotkey( MD_CTRL + 'C' )
222 .LegacyHotkeyName( "Copy" )
223 .FriendlyName( _( "Copy" ) )
224 .Tooltip( _( "Copy selected item(s) to clipboard" ) )
225 .Icon( BITMAPS::copy )
226 .Flags( AF_NONE )
227 .UIId( wxID_COPY ) );
228
230 .Name( "common.Interactive.paste" )
231 .Scope( AS_GLOBAL )
232 .DefaultHotkey( MD_CTRL + 'V' )
233 .LegacyHotkeyName( "Paste" )
234 .FriendlyName( _( "Paste" ) )
235 .Tooltip( _( "Paste item(s) from clipboard" ) )
236 .Icon( BITMAPS::paste )
237 .Flags( AF_NONE )
238 .UIId( wxID_PASTE ) );
239
241 .Name( "common.Interactive.selectAll" )
242 .Scope( AS_GLOBAL )
243 .DefaultHotkey( MD_CTRL + 'A' )
244 .FriendlyName( _( "Select All" ) )
245 .Tooltip( _( "Select all items on screen" ) ) );
246
248 .Name( "common.Interactive.unselectAll" )
249 .Scope( AS_GLOBAL )
250 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'A' )
251 .FriendlyName( _( "Unselect All" ) )
252 .Tooltip( _( "Unselect all items on screen" ) ) );
253
255 .Name( "common.Interactive.pasteSpecial" )
256 .Scope( AS_GLOBAL )
257 .FriendlyName( _( "Paste Special..." ) )
258 .Tooltip( _( "Paste item(s) from clipboard with annotation options" ) )
259 .Icon( BITMAPS::paste_special ) );
260
262 .Name( "common.Interactive.duplicate" )
263 .Scope( AS_GLOBAL )
264 .DefaultHotkey( MD_CTRL + 'D' )
265 .LegacyHotkeyName( "Duplicate" )
266 .FriendlyName( _( "Duplicate" ) )
267 .Tooltip( _( "Duplicates the selected item(s)" ) )
268 .Icon( BITMAPS::duplicate ) );
269
271 .Name( "common.Interactive.delete" )
272 .Scope( AS_GLOBAL )
273#if defined( __WXMAC__ )
274 .DefaultHotkey( WXK_BACK )
275#else
276 .DefaultHotkey( WXK_DELETE )
277#endif
278 .LegacyHotkeyName( "Delete Item" )
279 .FriendlyName( _( "Delete" ) )
280 .Tooltip( _( "Delete selected item(s)" ) ) // differentiation from deleteTool, below
281 .Icon( BITMAPS::trash )
282 .Parameter( ACTIONS::REMOVE_FLAGS::NORMAL ) );
283
285 .Name( "common.Interactive.deleteTool" )
286 .Scope( AS_GLOBAL )
287 .FriendlyName( _( "Interactive Delete Tool" ) )
288 .Tooltip( _( "Delete clicked items" ) )
290 .Flags( AF_ACTIVATE ) );
291
293 .Name( "common.Control.leftJustify" )
294 .Scope( AS_GLOBAL )
295 .FriendlyName( _( "Left Justify" ) )
296 .Tooltip( _( "Left-justify fields and text items" ) )
297 .Icon( BITMAPS::text_align_left ) );
298
300 .Name( "common.Control.centerJustify" )
301 .Scope( AS_GLOBAL )
302 .FriendlyName( _( "Center Justify" ) )
303 .Tooltip( _( "Center-justify fields and text items" ) )
305
307 .Name( "common.Control.rightJustify" )
308 .Scope( AS_GLOBAL )
309 .FriendlyName( _( "Right Justify" ) )
310 .Tooltip( _( "Right-justify fields and text items" ) )
311 .Icon( BITMAPS::text_align_right ) );
312
314 .Name( "common.Control.expandAll" )
315 .Scope( AS_GLOBAL )
316 .FriendlyName( _( "Expand All" ) )
317 .Icon( BITMAPS::up ) ); // JEY TODO: need icon
318
320 .Name( "common.Control.collapseAll" )
321 .Scope( AS_GLOBAL )
322 .FriendlyName( _( "Collapse All" ) )
323 .Icon( BITMAPS::down ) ); // JEY TODO: need icon
324
326 .Name( "common.InteractiveSelection.SelectColumns" )
327 .Scope( AS_GLOBAL )
328 .FriendlyName( _( "Select Column(s)" ) )
329 .Tooltip( _( "Select complete column(s) containing the current selected cell(s)" ) )
330 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
331
333 .Name( "common.InteractiveSelection.Rows" )
334 .Scope( AS_GLOBAL )
335 .FriendlyName( _( "Select Row(s)" ) )
336 .Tooltip( _( "Select complete row(s) containing the current selected cell(s)" ) )
337 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
338
340 .Name( "common.InteractiveSelection.SelectTable" )
341 .Scope( AS_GLOBAL )
342 .FriendlyName( _( "Select Table" ) )
343 .Tooltip( _( "Select parent table of selected cell(s)" ) )
344 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
345
347 .Name( "common.TableEditor.addRowAbove" )
348 .Scope( AS_GLOBAL )
349 .FriendlyName( _( "Add Row Above" ) )
350 .Tooltip( _( "Insert a new table row above the selected cell(s)" ) )
351 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
352
354 .Name( "common.TableEditor.addRowBelow" )
355 .Scope( AS_GLOBAL )
356 .FriendlyName( _( "Add Row Below" ) )
357 .Tooltip( _( "Insert a new table row below the selected cell(s)" ) )
358 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
359
361 .Name( "common.TableEditor.addColBefore" )
362 .Scope( AS_GLOBAL )
363 .FriendlyName( _( "Add Column Before" ) )
364 .Tooltip( _( "Insert a new table column before the selected cell(s)" ) )
365 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
366
368 .Name( "common.TableEditor.addColAfter" )
369 .Scope( AS_GLOBAL )
370 .FriendlyName( _( "Add Column After" ) )
371 .Tooltip( _( "Insert a new table column after the selected cell(s)" ) )
372 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
373
375 .Name( "common.TableEditor.deleteRows" )
376 .Scope( AS_GLOBAL )
377 .FriendlyName( _( "Delete Row(s)" ) )
378 .Tooltip( _( "Delete rows containing the currently selected cell(s)" ) )
379 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
380
382 .Name( "common.TableEditor.deleteColumns" )
383 .Scope( AS_GLOBAL )
384 .FriendlyName( _( "Delete Column(s)" ) )
385 .Tooltip( _( "Delete columns containing the currently selected cell(s)" ) )
386 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
387
389 .Name( "common.TableEditor.mergeCells" )
390 .Scope( AS_GLOBAL )
391 .FriendlyName( _( "Merge Cells" ) )
392 .Tooltip( _( "Turn selected table cells into a single cell" ) )
393 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
394
396 .Name( "common.TableEditor.unmergeCell" )
397 .Scope( AS_GLOBAL )
398 .FriendlyName( _( "Unmerge Cells" ) )
399 .Tooltip( _( "Turn merged table cells back into separate cells." ) )
400 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
401
403 .Name( "pcbnew.TableEditor.editTable" )
404 .Scope( AS_GLOBAL )
405 .DefaultHotkey( MD_CTRL + 'E' )
406 .FriendlyName( _( "Edit Table" ) )
407 .Icon( BITMAPS::spreadsheet ) ); // JEY TODO: need icon
408
410 .Name( "common.Control.activatePointEditor" )
411 .Scope( AS_GLOBAL ) );
412
414 .Name( "common.Interactive.cycleArcEditMode" )
415 .Scope( AS_GLOBAL )
416 .DefaultHotkey( MD_CTRL + ' ' )
417 .FriendlyName( _( "Cycle Arc Editing Mode" ) )
418 .Tooltip( _( "Switch to a different method of editing arcs" ) ) );
419
421 .Name( "common.Interactive.search" )
422 .Scope( AS_GLOBAL )
423 .DefaultHotkey( MD_CTRL + 'G' )
424 .LegacyHotkeyName( "Search" )
425 .FriendlyName( _( "Show Search Panel" ) )
426 .Tooltip( _( "Show/hide the search panel" ) )
427 .Icon( BITMAPS::find ) );
428
430 .Name( "common.Interactive.find" )
431 .Scope( AS_GLOBAL )
432 .DefaultHotkey( MD_CTRL + 'F' )
433 .LegacyHotkeyName( "Find" )
434 .FriendlyName( _( "Find" ) )
435 .Icon( BITMAPS::find ) );
436
438 .Name( "common.Interactive.findAndReplace" )
439 .Scope( AS_GLOBAL )
440 .DefaultHotkey( MD_CTRL + MD_ALT + 'F' )
441 .LegacyHotkeyName( "Find and Replace" )
442 .FriendlyName( _( "Find and Replace" ) )
443 .Icon( BITMAPS::find_replace ) );
444
446 .Name( "common.Interactive.findNext" )
447 .Scope( AS_GLOBAL )
448 .DefaultHotkey( WXK_F3 )
449 .LegacyHotkeyName( "Find Next" )
450 .FriendlyName( _( "Find Next" ) )
451 .Icon( BITMAPS::find ) );
452
454 .Name( "common.Interactive.findPrevious" )
455 .Scope( AS_GLOBAL )
456 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_F3 ) )
457 .LegacyHotkeyName( "Find Previous" )
458 .FriendlyName( _( "Find Previous" ) )
459 .Icon( BITMAPS::find ) );
460
462 .Name( "common.Interactive.findNextMarker" )
463 .Scope( AS_GLOBAL )
464 .DefaultHotkey( MD_CTRL + MD_SHIFT + static_cast<int>( WXK_F3 ) )
465 .LegacyHotkeyName( "Find Next Marker" )
466 .FriendlyName( _( "Find Next Marker" ) )
467 .Icon( BITMAPS::find ) );
468
470 .Name( "common.Interactive.replaceAndFindNext" )
471 .Scope( AS_GLOBAL )
472 .FriendlyName( _( "Replace and Find Next" ) )
473 .Icon( BITMAPS::find_replace ) );
474
476 .Name( "common.Interactive.replaceAll" )
477 .Scope( AS_GLOBAL )
478 .FriendlyName( _( "Replace All" ) )
479 .Icon( BITMAPS::find_replace ) );
480
482 .Name( "common.Control.updateFind" )
483 .Scope( AS_GLOBAL ) );
484
485
486// Marker Controls
488 .Name( "common.Checker.prevMarker" )
489 .Scope( AS_GLOBAL )
490 .FriendlyName( _( "Previous Marker" ) )
491 .Icon( BITMAPS::marker_previous ) );
492
494 .Name( "common.Checker.nextMarker" )
495 .Scope( AS_GLOBAL )
496 .FriendlyName( _( "Next Marker" ) )
497 .Icon( BITMAPS::marker_next ) );
498
500 .Name( "common.Checker.excludeMarker" )
501 .Scope( AS_GLOBAL )
502 .FriendlyName( _( "Exclude Marker" ) )
503 .Tooltip( _( "Mark current violation in Checker window as an exclusion" ) )
504 .Icon( BITMAPS::marker_exclude ) );
505
506// View Controls
508 .Name( "common.Control.zoomRedraw" )
509 .Scope( AS_GLOBAL )
510#if defined( __WXMAC__ )
511 .DefaultHotkey( MD_CTRL + 'R' )
512#else
513 .DefaultHotkey( WXK_F5 )
514#endif
515 .LegacyHotkeyName( "Zoom Redraw" )
516 .FriendlyName( _( "Refresh" ) )
517 .Icon( BITMAPS::refresh ) );
518
520 .Name( "common.Control.zoomFitScreen" )
521 .Scope( AS_GLOBAL )
522#if defined( __WXMAC__ )
523 .DefaultHotkey( MD_CTRL + '0' )
524#else
525 .DefaultHotkey( WXK_HOME )
526#endif
527 .LegacyHotkeyName( "Zoom Auto" )
528 .FriendlyName( _( "Zoom to Fit" ) )
529 .Icon( BITMAPS::zoom_fit_in_page ) );
530
532 .Name( "common.Control.zoomFitObjects" )
533 .Scope( AS_GLOBAL )
534 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_HOME ) )
535 .FriendlyName( _( "Zoom to Objects" ) )
537
539 .Name( "common.Control.zoomIn" )
540 .Scope( AS_GLOBAL )
541#if defined( __WXMAC__ )
542 .DefaultHotkey( MD_CTRL + '+' )
543#else
544 .DefaultHotkey( WXK_F1 )
545#endif
546 .LegacyHotkeyName( "Zoom In" )
547 .FriendlyName( _( "Zoom In at Cursor" ) )
548 .Icon( BITMAPS::zoom_in ) );
549
551 .Name( "common.Control.zoomOut" )
552 .Scope( AS_GLOBAL )
553#if defined( __WXMAC__ )
554 .DefaultHotkey( MD_CTRL + '-' )
555#else
556 .DefaultHotkey( WXK_F2 )
557#endif
558 .LegacyHotkeyName( "Zoom Out" )
559 .FriendlyName( _( "Zoom Out at Cursor" ) )
560 .Icon( BITMAPS::zoom_out ) );
561
563 .Name( "common.Control.zoomInCenter" )
564 .Scope( AS_GLOBAL )
565 .FriendlyName( _( "Zoom In" ) )
566 .Icon( BITMAPS::zoom_in ) );
567
569 .Name( "common.Control.zoomOutCenter" )
570 .Scope( AS_GLOBAL )
571 .FriendlyName( _( "Zoom Out" ) )
572 .Icon( BITMAPS::zoom_out ) );
573
575 .Name( "common.Control.zoomInHorizontally" )
576 .Scope( AS_GLOBAL )
577 .FriendlyName( _( "Zoom In Horizontally" ) )
578 .Tooltip( _( "Zoom in horizontally the plot area" ) )
580
582 .Name( "common.Control.zoomOutHorizontally" )
583 .Scope( AS_GLOBAL )
584 .FriendlyName( _( "Zoom Out Horizontally" ) )
585 .Tooltip( _( "Zoom out horizontally the plot area" ) )
587
589 .Name( "common.Control.zoomInVertically" )
590 .Scope( AS_GLOBAL )
591 .FriendlyName( _( "Zoom In Vertically" ) )
592 .Tooltip( _( "Zoom in vertically the plot area" ) )
594
596 .Name( "common.Control.zoomOutVertically" )
597 .Scope( AS_GLOBAL )
598 .FriendlyName( _( "Zoom Out Vertically" ) )
599 .Tooltip( _( "Zoom out vertically the plot area" ) )
601
603 .Name( "common.Control.zoomCenter" )
604 .Scope( AS_GLOBAL )
605 .DefaultHotkey( WXK_F4 )
606 .LegacyHotkeyName( "Zoom Center" )
607 .FriendlyName( _( "Center on Cursor" ) )
609
611 .Name( "common.Control.zoomTool" )
612 .Scope( AS_GLOBAL )
613 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_F5 ) )
614 .LegacyHotkeyName( "Zoom to Selection" )
615 .FriendlyName( _( "Zoom to Selection" ) )
616 .Icon( BITMAPS::zoom_area )
617 .Flags( AF_ACTIVATE ) );
618
620 .Name( "common.Control.undoZoom" )
621 .Scope( AS_GLOBAL )
622 .FriendlyName( _( "Undo Last Zoom" ) )
623 .Tooltip( _( "Return zoom to level prior to last zoom action" ) )
624 .Icon( BITMAPS::undo ) );
625
627 .Name( "common.Control.redoZoom" )
628 .Scope( AS_GLOBAL )
629 .FriendlyName( _( "Redo Last Zoom" ) )
630 .Tooltip( _( "Return zoom to level prior to last zoom undo" ) )
631 .Icon( BITMAPS::redo ) );
632
634 .Name( "common.Control.zoomPreset" )
635 .Scope( AS_GLOBAL )
636 .Parameter<int>( 0 ) ); // Default parameter is the 0th item in the list
637
639 .Name( "common.Control.centerContents" )
640 .Scope( AS_GLOBAL ) );
641
642// Cursor control
644 .Name( "common.Control.cursorUp" )
645 .Scope( AS_GLOBAL )
646 .DefaultHotkey( WXK_UP )
647 .FriendlyName( _( "Cursor Up" ) )
648 .Flags( AF_NONE )
649 .Parameter( CURSOR_UP ) );
650
652 .Name( "common.Control.cursorDown" )
653 .Scope( AS_GLOBAL )
654 .DefaultHotkey( WXK_DOWN )
655 .FriendlyName( _( "Cursor Down" ) )
656 .Flags( AF_NONE )
657 .Parameter( CURSOR_DOWN ) );
658
660 .Name( "common.Control.cursorLeft" )
661 .Scope( AS_GLOBAL )
662 .DefaultHotkey( WXK_LEFT )
663 .FriendlyName( _( "Cursor Left" ) )
664 .Flags( AF_NONE )
665 .Parameter( CURSOR_LEFT ) );
666
668 .Name( "common.Control.cursorRight" )
669 .Scope( AS_GLOBAL )
670 .DefaultHotkey( WXK_RIGHT )
671 .FriendlyName( _( "Cursor Right" ) )
672 .Flags( AF_NONE )
673 .Parameter( CURSOR_RIGHT ) );
674
675
677 .Name( "common.Control.cursorUpFast" )
678 .Scope( AS_GLOBAL )
679 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_UP ) )
680 .FriendlyName( _( "Cursor Up Fast" ) )
681 .Flags( AF_NONE )
682 .Parameter( CURSOR_UP_FAST ) );
683
685 .Name( "common.Control.cursorDownFast" )
686 .Scope( AS_GLOBAL )
687 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_DOWN ) )
688 .FriendlyName( _( "Cursor Down Fast" ) )
689 .Flags( AF_NONE )
690 .Parameter( CURSOR_DOWN_FAST ) );
691
693 .Name( "common.Control.cursorLeftFast" )
694 .Scope( AS_GLOBAL )
695 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_LEFT ) )
696 .FriendlyName( _( "Cursor Left Fast" ) )
697 .Flags( AF_NONE )
698 .Parameter( CURSOR_LEFT_FAST ) );
699
701 .Name( "common.Control.cursorRightFast" )
702 .Scope( AS_GLOBAL )
703 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_RIGHT ) )
704 .FriendlyName( _( "Cursor Right Fast" ) )
705 .Flags( AF_NONE )
706 .Parameter( CURSOR_RIGHT_FAST ) );
707
709 .Name( "common.Control.cursorClick" )
710 .Scope( AS_GLOBAL )
711 .DefaultHotkey( WXK_RETURN )
712 .LegacyHotkeyName( "Mouse Left Click" )
713 .FriendlyName( _( "Click" ) )
714 .Tooltip( _( "Performs left mouse button click" ) )
715 .Flags( AF_NONE )
716 .Parameter( CURSOR_CLICK ) );
717
719 .Name( "common.Control.cursorDblClick" )
720 .Scope( AS_GLOBAL )
721 .DefaultHotkey( WXK_END )
722 .LegacyHotkeyName( "Mouse Left Double Click" )
723 .FriendlyName( _( "Double-click" ) )
724 .Tooltip( _( "Performs left mouse button double-click" ) )
725 .Flags( AF_NONE )
726 .Parameter( CURSOR_DBL_CLICK ) );
727
729 .Name( "common.Control.refreshPreview" )
730 .Scope( AS_GLOBAL ) );
731
733 .Name( "common.Control.pinLibrary" )
734 .Scope( AS_GLOBAL )
735 .FriendlyName( _( "Pin Library" ) )
736 .Tooltip( _( "Keep the library at the top of the list" ) ) );
737
739 .Name( "common.Control.unpinLibrary" )
740 .Scope( AS_GLOBAL )
741 .FriendlyName( _( "Unpin Library" ) )
742 .Tooltip( _( "No longer keep the library at the top of the list" ) ) );
743
745 .Name( "common.Control.showLibraryTree" )
746 .Scope( AS_GLOBAL )
747 .FriendlyName( _( "Show Library Tree" ) )
748 .Icon( BITMAPS::search_tree ) );
749
751 .Name( "common.Control.hideLibraryTree" )
752 .Scope( AS_GLOBAL )
753 .FriendlyName( _( "Hide Library Tree" ) )
754 .Icon( BITMAPS::search_tree ) );
755
757 .Name( "common.Control.libraryTreeSearch" )
758 .Scope( AS_GLOBAL )
759 .FriendlyName( _( "Focus Library Tree Search Field" ) )
760 .DefaultHotkey( MD_CTRL + 'L' ) );
761
763 .Name( "common.Control.panUp" )
764 .Scope( AS_GLOBAL )
765 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_UP ) )
766 .FriendlyName( _( "Pan Up" ) )
767 .Flags( AF_NONE )
768 .Parameter( CURSOR_UP ) );
769
771 .Name( "common.Control.panDown" )
772 .Scope( AS_GLOBAL )
773 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DOWN ) )
774 .FriendlyName( _( "Pan Down" ) )
775 .Flags( AF_NONE )
776 .Parameter( CURSOR_DOWN ) );
777
779 .Name( "common.Control.panLeft" )
780 .Scope( AS_GLOBAL )
781 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_LEFT ) )
782 .FriendlyName( _( "Pan Left" ) )
783 .Flags( AF_NONE )
784 .Parameter( CURSOR_LEFT ) );
785
787 .Name( "common.Control.panRight" )
788 .Scope( AS_GLOBAL )
789 .DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_RIGHT ) )
790 .FriendlyName( _( "Pan Right" ) )
791 .Flags( AF_NONE )
792 .Parameter( CURSOR_RIGHT ) );
793
794// Grid control
796 .Name( "common.Control.gridFast1" )
797 .Scope( AS_GLOBAL )
798 .DefaultHotkey( MD_ALT + '1' )
799 .LegacyHotkeyName( "Switch Grid To Fast Grid1" )
800 .FriendlyName( _( "Switch to Fast Grid 1" ) ) );
801
803 .Name( "common.Control.gridFast2" )
804 .Scope( AS_GLOBAL )
805 .DefaultHotkey( MD_ALT + '2' )
806 .LegacyHotkeyName( "Switch Grid To Fast Grid2" )
807 .FriendlyName( _( "Switch to Fast Grid 2" ) ) );
808
810 .Name( "common.Control.gridFastCycle" )
811 .Scope( AS_GLOBAL )
812 .DefaultHotkey( MD_ALT + '4' )
813 .LegacyHotkeyName( "Switch Grid To Next Fast Grid" )
814 .FriendlyName( _( "Cycle Fast Grid" ) ) );
815
817 .Name( "common.Control.gridNext" )
818 .Scope( AS_GLOBAL )
819 .DefaultHotkey( 'N' )
820 .LegacyHotkeyName( "Switch Grid To Next" )
821 .FriendlyName( _("Switch to Next Grid" ) ) );
822
824 .Name( "common.Control.gridPrev" )
825 .Scope( AS_GLOBAL )
826 .DefaultHotkey( MD_SHIFT + 'N' )
827 .LegacyHotkeyName( "Switch Grid To Previous" )
828 .FriendlyName( _( "Switch to Previous Grid" ) ) );
829
831 .Name( "common.Control.gridSetOrigin" )
832 .Scope( AS_GLOBAL )
833 .LegacyHotkeyName( "Set Grid Origin" )
834 .FriendlyName( _( "Grid Origin" ) )
835 .Tooltip( _( "Place the grid origin point" ) )
837 .Parameter<VECTOR2D*>( nullptr ) );
838
840 .Name( "common.Control.gridResetOrigin" )
841 .Scope( AS_GLOBAL )
842 .LegacyHotkeyName( "Reset Grid Origin" )
843 .FriendlyName( _( "Reset Grid Origin" ) ) );
844
846 .Name( "common.Control.gridPreset" )
847 .Scope( AS_GLOBAL )
848 .Parameter<int>( 0 ) ); // Default to the 1st element of the list
849
851 .Name( "common.Control.toggleGrid" )
852 .Scope( AS_GLOBAL)
853 .FriendlyName( _( "Show Grid" ) )
854 .Tooltip( _( "Display background grid in the edit window" ) )
855 .Icon( BITMAPS::grid ) );
856
858 .Name( "common.Control.toggleGridOverrides" )
859 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'G' )
860 .Scope( AS_GLOBAL)
861 .FriendlyName( _( "Grid Overrides" ) )
862 .Tooltip( _( "Enables item-specific grids that override the current grid" ) )
863 .Icon( BITMAPS::grid_override ) );
864
866 .Name( "common.Control.editGrids" )
867 .Scope( AS_GLOBAL )
868 .FriendlyName( _( "Edit Grids..." ) )
869 .Tooltip( _( "Edit grid definitions" ) )
870 .Icon( BITMAPS::grid_select ) );
871
873 .Name( "common.Control.editGridOrigin" )
874 .Scope( AS_GLOBAL )
875 .FriendlyName( _( "Grid Origin..." ) )
876 .Tooltip( _( "Set the grid origin point" ) ) );
877
879 .Name( "common.Control.imperialUnits" )
880 .Scope( AS_GLOBAL )
881 .FriendlyName( _( "Inches" ) )
882 .Icon( BITMAPS::unit_inch )
883 .Flags( AF_NONE )
884 .Parameter( EDA_UNITS::INCHES ) );
885
887 .Name( "common.Control.mils" )
888 .Scope( AS_GLOBAL )
889 .FriendlyName( _( "Mils" ) )
890 .Icon( BITMAPS::unit_mil )
891 .Flags( AF_NONE )
892 .Parameter( EDA_UNITS::MILS ) );
893
895 .Name( "common.Control.metricUnits" )
896 .Scope( AS_GLOBAL )
897 .FriendlyName( _( "Millimeters" ) )
898 .Icon( BITMAPS::unit_mm )
899 .Flags( AF_NONE )
900 .Parameter( EDA_UNITS::MILLIMETRES ) );
901
903 .Name( "common.Control.updateUnits" )
904 .Scope( AS_GLOBAL ) );
905
907 .Name( "common.Control.updatePreferences" )
908 .Scope( AS_GLOBAL ) );
909
911 .Name( "common.Control.selectColumns" )
912 .Scope( AS_GLOBAL )
913 .FriendlyName( _( "Select Columns..." ) ) );
914
916 .Name( "common.Control.toggleUnits" )
917 .Scope( AS_GLOBAL )
918 .DefaultHotkey( MD_CTRL + 'U' )
919 .LegacyHotkeyName( "Switch Units" )
920 .FriendlyName( _( "Switch units" ) )
921 .Tooltip( _( "Switch between imperial and metric units" ) )
922 .Icon( BITMAPS::unit_mm ) );
923
925 .Name( "common.Control.togglePolarCoords" )
926 .Scope( AS_GLOBAL )
927 .FriendlyName( _( "Polar Coordinates" ) )
928 .Tooltip( _( "Switch between polar and cartesian coordinate systems" ) )
929 .Icon( BITMAPS::polar_coord ) );
930
932 .Name( "common.Control.resetLocalCoords" )
933 .Scope( AS_GLOBAL )
934 .DefaultHotkey( ' ' )
935 .LegacyHotkeyName( "Reset Local Coordinates" )
936 .FriendlyName( _( "Reset Local Coordinates" ) ) );
937
939 .Name( "common.Control.toggleCursor" )
940 .Scope( AS_GLOBAL )
941 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'X' )
942 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
943 .LegacyHotkeyName( "Toggle Cursor Display (Modern Toolset only)" )
944 .FriendlyName( _( "Always Show Crosshairs" ) )
945 .Tooltip( _( "Display crosshairs even when not drawing objects" ) )
946 .Icon( BITMAPS::cursor ) );
947
949 .Name( "common.Control.toggleCursorStyle" )
950 .Scope( AS_GLOBAL )
951 .FriendlyName( _( "Full-Window Crosshairs" ) )
952 .Tooltip( _( "Switch display of full-window crosshairs" ) )
953 .Icon( BITMAPS::cursor_shape ) );
954
956 .Name( "common.Control.highContrastMode" )
957 .Scope( AS_GLOBAL )
958 .LegacyHotkeyName( "Toggle High Contrast Mode" )
959 .FriendlyName( _( "Inactive Layer View Mode" ) )
960 .Tooltip( _( "Toggle inactive layers between normal and dimmed" ) )
961 .Icon( BITMAPS::contrast_mode ) );
962
964 .Name( "common.Control.highContrastModeCycle" )
965 .Scope( AS_GLOBAL )
966 .DefaultHotkey( 'H' )
967 .FriendlyName( _( "Inactive Layer View Mode (3-state)" ) )
968 .Tooltip( _( "Cycle inactive layers between normal, dimmed, and hidden" ) )
969 .Icon( BITMAPS::contrast_mode ) );
970
972 .Name( "common.Control.toggleBoundingBoxes" )
973 .Scope( AS_GLOBAL )
974 .FriendlyName( _( "Draw Bounding Boxes" ) )
976
978 .Name( "common.InteractiveSelection.selectionTool" )
979 .Scope( AS_GLOBAL )
980 .FriendlyName( _( "Select item(s)" ) )
981 .Icon( BITMAPS::cursor )
982 .Flags( AF_ACTIVATE ) );
983
985 .Name( "common.Interactive.measureTool" )
986 .Scope( AS_GLOBAL )
987 .DefaultHotkey( MD_CTRL + MD_SHIFT + 'M' )
988 // Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
989 .LegacyHotkeyName( "Measure Distance (Modern Toolset only)" )
990 .FriendlyName( _( "Measure Tool" ) )
991 .Tooltip( _( "Interactively measure distance between points" ) )
992 .Icon( BITMAPS::measurement )
993 .Flags( AF_ACTIVATE ) );
994
996 .Name( "common.InteractivePicker.pickerTool" )
997 .Scope( AS_GLOBAL )
998 .Flags( AF_ACTIVATE ) );
999
1001 .Name( "common.InteractivePicker.pickerSubTool" )
1002 .Scope( AS_GLOBAL ) );
1003
1005 .Name( "common.Control.showProjectManager" )
1006 .Scope( AS_GLOBAL )
1007 .FriendlyName( _( "Switch to Project Manager" ) )
1008 .Tooltip( _( "Show project window" ) )
1009 .Icon( BITMAPS::icon_kicad_24 ) );
1010
1012 .Name( "common.Control.show3DViewer" )
1013 .Scope( AS_GLOBAL )
1014 .DefaultHotkey( MD_ALT + '3' )
1015 .LegacyHotkeyName( "3D Viewer" )
1016 .FriendlyName( _( "3D Viewer" ) )
1017 .Tooltip( _( "Show 3D viewer window" ) )
1018 .Icon( BITMAPS::three_d ) );
1019
1021 .Name( "common.Control.showSymbolBrowser" )
1022 .Scope( AS_GLOBAL )
1023 .FriendlyName( _( "Symbol Library Browser" ) )
1025 .Flags( AF_NONE)
1026 .Parameter( FRAME_SCH_VIEWER ) );
1027
1029 .Name( "common.Control.showSymbolEditor" )
1030 .Scope( AS_GLOBAL )
1031 .FriendlyName( _( "Symbol Editor" ) )
1032 .Tooltip( _( "Create, delete and edit schematic symbols" ) )
1033 .Icon( BITMAPS::libedit )
1034 .Flags( AF_NONE )
1035 .Parameter( FRAME_SCH_SYMBOL_EDITOR ) );
1036
1038 .Name( "common.Control.showFootprintBrowser" )
1039 .Scope( AS_GLOBAL )
1040 .FriendlyName( _( "Footprint Library Browser" ) )
1042 .Flags( AF_NONE )
1043 .Parameter( FRAME_FOOTPRINT_VIEWER ) );
1044
1046 .Name( "common.Control.showFootprintEditor" )
1047 .Scope( AS_GLOBAL )
1048 .FriendlyName( _( "Footprint Editor" ) )
1049 .Tooltip( _( "Create, delete and edit board footprints" ) )
1050 .Icon( BITMAPS::module_editor )
1051 .Flags( AF_NONE )
1052 .Parameter( FRAME_FOOTPRINT_EDITOR ) );
1053
1055 .Name( "common.Control.showProperties" )
1056 .Scope( AS_GLOBAL )
1057 .FriendlyName( _( "Show Properties Manager" ) )
1058 .Tooltip( _( "Show/hide the properties manager" ) )
1059 .Icon( BITMAPS::tools ) );
1060
1062 .Name( "common.Control.updatePcbFromSchematic" )
1063 .Scope( AS_GLOBAL )
1064 .DefaultHotkey( WXK_F8 )
1065 .LegacyHotkeyName( "Update PCB from Schematic" )
1066 .FriendlyName( _( "Update PCB from Schematic..." ) )
1067 .Tooltip( _( "Update PCB with changes made to schematic" ) )
1069
1071 .Name( "common.Control.updateSchematicFromPCB" )
1072 .Scope( AS_GLOBAL )
1073 .FriendlyName( _( "Update Schematic from PCB..." ) )
1074 .Tooltip( _( "Update schematic with changes made to PCB" ) )
1076
1078 .Name( "common.SuiteControl.openPreferences" )
1079 .Scope( AS_GLOBAL )
1080 .DefaultHotkey( MD_CTRL + ',' )
1081 .FriendlyName( _( "Preferences..." ) )
1082 .Tooltip( _( "Show preferences for all open tools" ) )
1083 .Icon( BITMAPS::preference )
1084 .UIId( wxID_PREFERENCES ) );
1085
1087 .Name( "common.SuiteControl.configurePaths" )
1088 .Scope( AS_GLOBAL )
1089 .FriendlyName( _( "Configure Paths..." ) )
1090 .Tooltip( _( "Edit path configuration environment variables" ) )
1091 .Icon( BITMAPS::path ) );
1092
1094 .Name( "common.SuiteControl.showSymbolLibTable" )
1095 .Scope( AS_GLOBAL )
1096 .FriendlyName( _( "Manage Symbol Libraries..." ) )
1097 .Tooltip( _( "Edit the global and project symbol library lists" ) )
1098 .Icon( BITMAPS::library_table ) );
1099
1101 .Name( "common.SuiteControl.showFootprintLibTable" )
1102 .Scope( AS_GLOBAL )
1103 .FriendlyName( _( "Manage Footprint Libraries..." ) )
1104 .Tooltip( _( "Edit the global and project footprint library lists" ) )
1105 .Icon( BITMAPS::library_table ) );
1106
1108 .Name( "common.SuiteControl.gettingStarted" )
1109 .Scope( AS_GLOBAL )
1110 .FriendlyName( _( "Getting Started with KiCad" ) )
1111 .Tooltip( _( "Open \"Getting Started in KiCad\" guide for beginners" ) )
1112 .Icon( BITMAPS::help ) );
1113
1115 .Name( "common.SuiteControl.help" )
1116 .Scope( AS_GLOBAL )
1117 .FriendlyName( _( "Help" ) )
1118 .Tooltip( _( "Open product documentation in a web browser" ) )
1119 .Icon( BITMAPS::help_online ) );
1120
1122 .Name( "common.SuiteControl.about" )
1123 .Scope( AS_GLOBAL )
1124 .FriendlyName( _( "About KiCad" ) )
1125 .UIId( wxID_ABOUT )
1126 .Icon( BITMAPS::about ) );
1127
1129 .Name( "common.SuiteControl.listHotKeys" )
1130 .Scope( AS_GLOBAL )
1131 .DefaultHotkey( MD_CTRL + static_cast<int>( WXK_F1 ) )
1132 .LegacyHotkeyName( "List Hotkeys" )
1133 .FriendlyName( _( "List Hotkeys..." ) )
1134 .Tooltip( _( "Displays current hotkeys table and corresponding commands" ) )
1135 .Icon( BITMAPS::hotkeys ) );
1136
1138 .Name( "common.SuiteControl.getInvolved" )
1139 .Scope( AS_GLOBAL )
1140 .FriendlyName( _( "Get Involved" ) )
1141 .Tooltip( _( "Open \"Contribute to KiCad\" in a web browser" ) )
1142 .Icon( BITMAPS::info ) );
1143
1145 .Name( "common.SuiteControl.donate" )
1146 .Scope( AS_GLOBAL )
1147 .FriendlyName( _( "Donate" ) )
1148 .Tooltip( _( "Open \"Donate to KiCad\" in a web browser" ) ) );
1149
1151 .Name( "common.SuiteControl.reportBug" )
1152 .Scope( AS_GLOBAL )
1153 .FriendlyName( _( "Report Bug" ) )
1154 .Tooltip( _( "Report a problem with KiCad" ) )
1155 .Icon( BITMAPS::bug ) );
1156
1158 .Name( "common.Control.ddaddLibrary" )
1159 .Scope( AS_GLOBAL ) );
1160
1161// API
1162
1164 .Name( "common.API.pluginsReload" )
1165 .Scope( AS_GLOBAL )
1166 .FriendlyName( _( "Refresh Plugins" ) )
1167 .Tooltip( _( "Reload all python plugins and refresh plugin menus" ) )
1168 .Icon( BITMAPS::reload ) );
1169
1170// Embedding Files
1171
1173 .Name( "common.Embed.embededFile" )
1174 .Scope( AS_GLOBAL )
1175 .FriendlyName( _( "Embedded Files" ) )
1176 .Tooltip( _( "Manage embedded files" ) ) );
1177
1179 .Name( "common.Embed.removeFile" )
1180 .Scope( AS_GLOBAL )
1181 .FriendlyName( _( "Remove File" ) )
1182 .Tooltip( _( "Remove an embedded file" ) ) );
1183
1185 .Name( "common.Embed.extractFile" )
1186 .Scope( AS_GLOBAL )
1187 .FriendlyName( _( "Extract File" ) )
1188 .Tooltip( _( "Extract an embedded file" ) ) );
1189
1190// System-wide selection Events
1191
1192const TOOL_EVENT EVENTS::PointSelectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.pointSelected" );
1193const TOOL_EVENT EVENTS::SelectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.selected" );
1194const TOOL_EVENT EVENTS::UnselectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.unselected" );
1195const TOOL_EVENT EVENTS::ClearedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.cleared" );
1196
1197const TOOL_EVENT EVENTS::ConnectivityChangedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.connectivityChanged" );
1198
1199const TOOL_EVENT EVENTS::SelectedItemsModified( TC_MESSAGE, TA_ACTION, "common.Interactive.modified" );
1200const TOOL_EVENT EVENTS::SelectedItemsMoved( TC_MESSAGE, TA_ACTION, "common.Interactive.moved" );
1201const TOOL_EVENT EVENTS::InhibitSelectionEditing( TC_MESSAGE, TA_ACTION, "common.Interactive.inhibit" );
1202const TOOL_EVENT EVENTS::UninhibitSelectionEditing( TC_MESSAGE, TA_ACTION, "common.Interactive.uninhibit" );
1203
1204const TOOL_EVENT EVENTS::DisambiguatePoint( TC_MESSAGE, TA_ACTION, "common.Interactive.disambiguate" );
1205
1207 "common.Interactive.gridChangedByKey" );
1208
1210 "common.Interactive.contrastModeChangedByKeyEvent" );
1211
1212// System-wide undo/redo Events
1213
#define _(s)
Definition: actions.cpp:38
@ grid_override
@ zoom_center_on_screen
@ text_align_right
@ cursor_shape
@ delete_cursor
@ zoom_in_vertically
@ directory_browser
@ icon_kicad_24
@ gerbview_show_negative_objects
@ text_align_left
@ module_editor
@ text_align_center
@ grid_select_axis
@ find_replace
@ print_button
@ zoom_in_horizontally
@ marker_previous
@ paste_special
@ contrast_mode
@ library_browser
@ zoom_out_vertically
@ zoom_fit_in_page
@ directory_open
@ update_pcb_from_sch
@ library_table
@ zoom_fit_to_objects
@ marker_exclude
@ zoom_out_horizontally
@ update_sch_from_pcb
static TOOL_ACTION addRowAbove
Definition: actions.h:89
static TOOL_ACTION addColBefore
Definition: actions.h:91
static TOOL_ACTION gridProperties
Definition: actions.h:179
static TOOL_ACTION gridFastCycle
Definition: actions.h:171
static TOOL_ACTION updatePcbFromSchematic
Definition: actions.h:204
static TOOL_ACTION toggleGrid
Definition: actions.h:177
static TOOL_ACTION paste
Definition: actions.h:72
static TOOL_ACTION pickerSubTool
Definition: actions.h:195
static TOOL_ACTION excludeMarker
Definition: actions.h:113
static TOOL_ACTION about
Definition: actions.h:222
static TOOL_ACTION cancelInteractive
Definition: actions.h:65
static TOOL_ACTION nextMarker
Definition: actions.h:112
static TOOL_ACTION zoomRedraw
Definition: actions.h:116
static TOOL_ACTION millimetersUnits
Definition: actions.h:185
static TOOL_ACTION unselectAll
Definition: actions.h:75
static TOOL_ACTION gridFast1
Definition: actions.h:169
static TOOL_ACTION openWithTextEditor
Definition: actions.h:61
static TOOL_ACTION gridPrev
Definition: actions.h:173
static TOOL_ACTION revert
Definition: actions.h:55
static TOOL_ACTION show3DViewer
Definition: actions.h:199
static TOOL_ACTION showLibraryTree
Definition: actions.h:144
static TOOL_ACTION reportBug
Definition: actions.h:226
static TOOL_ACTION replaceAll
Definition: actions.h:107
static TOOL_ACTION updatePreferences
Definition: actions.h:212
static TOOL_ACTION cursorLeft
Definition: actions.h:151
static TOOL_ACTION zoomOutCenter
Definition: actions.h:120
static TOOL_ACTION togglePolarCoords
Definition: actions.h:188
static TOOL_ACTION saveAs
Definition: actions.h:52
static TOOL_ACTION addLibrary
Definition: actions.h:49
static TOOL_ACTION copy
Definition: actions.h:71
static TOOL_ACTION zoomIn
Definition: actions.h:117
static TOOL_ACTION pluginsReload
Definition: actions.h:229
static TOOL_ACTION extractFile
Definition: actions.h:233
static TOOL_ACTION cursorLeftFast
Definition: actions.h:156
static TOOL_ACTION deleteRows
Definition: actions.h:93
static TOOL_ACTION zoomRedo
Definition: actions.h:131
static TOOL_ACTION addRowBelow
Definition: actions.h:90
static TOOL_ACTION pickerTool
Definition: actions.h:194
static TOOL_ACTION cycleArcEditMode
Definition: actions.h:211
static TOOL_ACTION gridPreset
Definition: actions.h:176
static TOOL_ACTION gridResetOrigin
Definition: actions.h:175
static TOOL_ACTION updateUnits
Definition: actions.h:186
static TOOL_ACTION updateFind
Definition: actions.h:108
static TOOL_ACTION showSymbolLibTable
Definition: actions.h:218
static TOOL_ACTION openDirectory
Definition: actions.h:62
static TOOL_ACTION deleteColumns
Definition: actions.h:94
static TOOL_ACTION showSymbolEditor
Definition: actions.h:201
static TOOL_ACTION showSymbolBrowser
Definition: actions.h:200
static TOOL_ACTION pasteSpecial
Definition: actions.h:73
static TOOL_ACTION findPrevious
Definition: actions.h:104
static TOOL_ACTION unmergeCells
Definition: actions.h:96
static TOOL_ACTION selectColumns
Definition: actions.h:87
static TOOL_ACTION mergeCells
Definition: actions.h:95
static TOOL_ACTION donate
Definition: actions.h:224
static TOOL_ACTION cursorDown
Definition: actions.h:150
static TOOL_ACTION zoomOut
Definition: actions.h:118
static TOOL_ACTION addColAfter
Definition: actions.h:92
static TOOL_ACTION editTable
Definition: actions.h:97
static TOOL_ACTION findAndReplace
Definition: actions.h:102
static TOOL_ACTION milsUnits
Definition: actions.h:184
static TOOL_ACTION highContrastModeCycle
Definition: actions.h:136
static TOOL_ACTION listHotKeys
Definition: actions.h:223
static TOOL_ACTION cursorRightFast
Definition: actions.h:157
static TOOL_ACTION openPreferences
Definition: actions.h:216
static TOOL_ACTION pinLibrary
Definition: actions.h:142
static TOOL_ACTION toggleBoundingBoxes
Definition: actions.h:137
static TOOL_ACTION replaceAndFindNext
Definition: actions.h:106
static TOOL_ACTION showContextMenu
Definition: actions.h:67
static TOOL_ACTION toggleCursor
Definition: actions.h:133
static TOOL_ACTION zoomOutHorizontally
Definition: actions.h:122
static TOOL_ACTION getInvolved
Definition: actions.h:225
static TOOL_ACTION rightJustify
Definition: actions.h:81
static TOOL_ACTION showFootprintLibTable
Definition: actions.h:219
static TOOL_ACTION centerContents
Definition: actions.h:132
static TOOL_ACTION plot
Definition: actions.h:58
static TOOL_ACTION zoomCenter
Definition: actions.h:125
static TOOL_ACTION panDown
Definition: actions.h:164
static TOOL_ACTION selectLibTreeColumns
Definition: actions.h:213
static TOOL_ACTION open
Definition: actions.h:50
static TOOL_ACTION saveAll
Definition: actions.h:54
static TOOL_ACTION findNext
Definition: actions.h:103
static TOOL_ACTION zoomOutVertically
Definition: actions.h:124
static TOOL_ACTION cursorDblClick
Definition: actions.h:160
static TOOL_ACTION pageSettings
Definition: actions.h:56
static TOOL_ACTION showSearch
Definition: actions.h:100
static TOOL_ACTION undo
Definition: actions.h:68
static TOOL_ACTION cursorDownFast
Definition: actions.h:155
static TOOL_ACTION removeFile
Cursor control event types.
Definition: actions.h:234
static TOOL_ACTION prevMarker
Definition: actions.h:111
static TOOL_ACTION selectRows
Definition: actions.h:86
static TOOL_ACTION duplicate
Definition: actions.h:76
static TOOL_ACTION inchesUnits
Definition: actions.h:183
static TOOL_ACTION highContrastMode
Definition: actions.h:135
static TOOL_ACTION embeddedFiles
Definition: actions.h:232
static TOOL_ACTION cursorUpFast
Definition: actions.h:154
static TOOL_ACTION toggleCursorStyle
Definition: actions.h:134
static TOOL_ACTION gridOrigin
Definition: actions.h:180
static TOOL_ACTION measureTool
Definition: actions.h:193
static TOOL_ACTION zoomInHorizontally
Definition: actions.h:121
static TOOL_ACTION panLeft
Definition: actions.h:165
static TOOL_ACTION updateMenu
Definition: actions.h:209
static TOOL_ACTION activatePointEditor
Definition: actions.h:210
static TOOL_ACTION libraryTreeSearch
Definition: actions.h:146
static TOOL_ACTION doDelete
Definition: actions.h:77
static TOOL_ACTION quit
Definition: actions.h:59
static TOOL_ACTION selectionTool
Definition: actions.h:192
static TOOL_ACTION save
Definition: actions.h:51
static TOOL_ACTION cursorClick
Definition: actions.h:159
static TOOL_ACTION zoomFitScreen
Definition: actions.h:126
static TOOL_ACTION redo
Definition: actions.h:69
static TOOL_ACTION zoomPreset
Definition: actions.h:128
static TOOL_ACTION deleteTool
Definition: actions.h:78
static TOOL_ACTION hideLibraryTree
Definition: actions.h:145
static TOOL_ACTION zoomTool
Definition: actions.h:129
static TOOL_ACTION updateSchematicFromPcb
Definition: actions.h:205
static TOOL_ACTION unpinLibrary
Definition: actions.h:143
static TOOL_ACTION leftJustify
Definition: actions.h:79
static TOOL_ACTION panUp
Definition: actions.h:163
static TOOL_ACTION showFootprintEditor
Definition: actions.h:203
static TOOL_ACTION print
Definition: actions.h:57
static TOOL_ACTION findNextMarker
Definition: actions.h:105
static TOOL_ACTION showProperties
Definition: actions.h:206
static TOOL_ACTION doNew
Definition: actions.h:47
static TOOL_ACTION zoomFitObjects
Definition: actions.h:127
static TOOL_ACTION toggleUnits
Definition: actions.h:187
static TOOL_ACTION zoomInCenter
Definition: actions.h:119
static TOOL_ACTION newLibrary
Definition: actions.h:48
static TOOL_ACTION panRight
Definition: actions.h:166
static TOOL_ACTION saveCopy
Definition: actions.h:53
static TOOL_ACTION cut
Definition: actions.h:70
static TOOL_ACTION selectTable
Definition: actions.h:88
static TOOL_ACTION gridSetOrigin
Definition: actions.h:174
static TOOL_ACTION gridFast2
Definition: actions.h:170
static TOOL_ACTION expandAll
Definition: actions.h:82
static TOOL_ACTION zoomInVertically
Definition: actions.h:123
static TOOL_ACTION ddAddLibrary
Definition: actions.h:60
static TOOL_ACTION configurePaths
Definition: actions.h:217
static TOOL_ACTION showProjectManager
Definition: actions.h:198
static TOOL_ACTION gettingStarted
Definition: actions.h:220
static TOOL_ACTION cursorUp
Cursor control with keyboard.
Definition: actions.h:149
static TOOL_ACTION refreshPreview
Definition: actions.h:139
static TOOL_ACTION zoomUndo
Definition: actions.h:130
static TOOL_ACTION showFootprintBrowser
Definition: actions.h:202
static TOOL_ACTION toggleGridOverrides
Definition: actions.h:178
static TOOL_ACTION finishInteractive
Definition: actions.h:66
static TOOL_ACTION gridNext
Definition: actions.h:172
static TOOL_ACTION cursorRight
Definition: actions.h:152
static TOOL_ACTION selectAll
Definition: actions.h:74
static TOOL_ACTION help
Definition: actions.h:221
static TOOL_ACTION find
Definition: actions.h:101
static TOOL_ACTION collapseAll
Definition: actions.h:83
static TOOL_ACTION resetLocalCoords
Definition: actions.h:189
static TOOL_ACTION centerJustify
Definition: actions.h:80
static const TOOL_EVENT DisambiguatePoint
Used for hotkey feedback.
Definition: actions.h:287
static const TOOL_EVENT ClearedEvent
Definition: actions.h:272
static const TOOL_EVENT InhibitSelectionEditing
Definition: actions.h:283
static const TOOL_EVENT GridChangedByKeyEvent
Definition: actions.h:290
static const TOOL_EVENT UndoRedoPreEvent
Definition: actions.h:293
static const TOOL_EVENT SelectedEvent
Definition: actions.h:270
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
Definition: actions.h:277
static const TOOL_EVENT UninhibitSelectionEditing
Used to inform tool that it should display the disambiguation menu.
Definition: actions.h:284
static const TOOL_EVENT UndoRedoPostEvent
Definition: actions.h:294
static const TOOL_EVENT PointSelectedEvent
Definition: actions.h:269
static const TOOL_EVENT SelectedItemsMoved
Used to inform tools that the selection should temporarily be non-editable.
Definition: actions.h:280
static const TOOL_EVENT ContrastModeChangedByKeyEvent
Definition: actions.h:291
static const TOOL_EVENT ConnectivityChangedEvent
Selected item had a property changed (except movement)
Definition: actions.h:274
static const TOOL_EVENT UnselectedEvent
Definition: actions.h:271
Build up the properties of a TOOL_ACTION in an incremental manner that is static-construction safe.
Definition: tool_action.h:102
Represent a single user action.
Definition: tool_action.h:269
Generic, UI-independent tool event.
Definition: tool_event.h:167
The common library.
@ 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
@ AS_GLOBAL
Global action (toolbar/main menu event, global shortcut)
Definition: tool_action.h:48
@ AF_ACTIVATE
Action activates a tool.
Definition: tool_action.h:55
@ AF_NONE
Definition: tool_action.h:54
@ TA_UNDO_REDO_POST
Definition: tool_event.h:108
@ TA_ACTION
Definition: tool_event.h:111
@ TC_MESSAGE
Definition: tool_event.h:57
@ MD_ALT
Definition: tool_event.h:144
@ MD_CTRL
Definition: tool_event.h:143
@ MD_SHIFT
Definition: tool_event.h:142