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