2019-06-09 21:57:23 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2019-08-14 08:28:07 +00:00
|
|
|
* Copyright (C) 2019 CERN
|
2023-08-26 12:29:24 +00:00
|
|
|
* Copyright (C) 2021-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
2019-06-09 21:57:23 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2017-02-20 18:10:20 +00:00
|
|
|
#include <bitmaps.h>
|
2020-10-03 23:34:23 +00:00
|
|
|
#include <common.h>
|
2020-10-24 14:45:37 +00:00
|
|
|
#include <eda_units.h>
|
2019-06-17 22:02:30 +00:00
|
|
|
#include <frame_type.h>
|
2020-10-03 23:34:23 +00:00
|
|
|
#include <tool/actions.h>
|
2021-06-06 17:26:26 +00:00
|
|
|
#include <tool/tool_action.h>
|
|
|
|
#include <tool/tool_event.h>
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
// Actions, being statically-defined, require specialized I18N handling. We continue to
|
|
|
|
// use the _() macro so that string harvesting by the I18N framework doesn't have to be
|
|
|
|
// specialized, but we don't translate on initialization and instead do it in the getters.
|
|
|
|
|
|
|
|
#undef _
|
|
|
|
#define _(s) s
|
2017-02-20 18:10:20 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::doNew( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.new" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'N' )
|
|
|
|
.LegacyHotkeyName( "New" )
|
|
|
|
.MenuText( _( "New..." ) )
|
|
|
|
.Tooltip( _( "Create a new document in the editor" ) )
|
|
|
|
.Icon( BITMAPS::new_generic ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::newLibrary( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.newLibrary" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "New Library..." ) )
|
|
|
|
.Tooltip( _( "Create a new library folder" ) )
|
|
|
|
.Icon( BITMAPS::new_library ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::addLibrary( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.addLibrary" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Add Library..." ) )
|
|
|
|
.Tooltip( _( "Add an existing library folder" ) )
|
|
|
|
.Icon( BITMAPS::add_library ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::open( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.open" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'O' )
|
|
|
|
.LegacyHotkeyName( "Open" )
|
|
|
|
.MenuText( _( "Open..." ) )
|
|
|
|
.Tooltip( _( "Open existing document" ) )
|
|
|
|
.Icon( BITMAPS::directory_open ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::save( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.save" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'S' )
|
|
|
|
.LegacyHotkeyName( "Save" )
|
|
|
|
.MenuText( _( "Save" ) )
|
|
|
|
.Tooltip( _( "Save changes" ) )
|
|
|
|
.Icon( BITMAPS::save ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::saveAs( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.saveAs" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + MD_CTRL + 'S' )
|
|
|
|
.LegacyHotkeyName( "Save As" )
|
|
|
|
.MenuText( _( "Save As..." ) )
|
|
|
|
.Tooltip( _( "Save current document to another location" ) )
|
|
|
|
.Icon( BITMAPS::save_as ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::saveCopy( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.saveCopy" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Save a Copy..." ) )
|
|
|
|
.Tooltip( _( "Save a copy of the current document to another location" ) )
|
|
|
|
.Icon( BITMAPS::save_as ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::saveAll( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.saveAll" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Save All" ) )
|
|
|
|
.Tooltip( _( "Save all changes" ) )
|
|
|
|
.Icon( BITMAPS::save ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::revert( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.revert" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Revert" ) )
|
|
|
|
.Tooltip( _( "Throw away changes" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::pageSettings( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.pageSettings" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Page Settings..." ) )
|
|
|
|
.Tooltip( _( "Settings for paper size and title block info" ) )
|
|
|
|
.Icon( BITMAPS::sheetset ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::print( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.print" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'P' )
|
|
|
|
.LegacyHotkeyName( "Print" )
|
|
|
|
.MenuText( _( "Print..." ) )
|
|
|
|
.Tooltip( _( "Print" ) )
|
|
|
|
.Icon( BITMAPS::print_button ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::plot( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.plot" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Plot..." ) )
|
|
|
|
.Tooltip( _( "Plot" ) )
|
|
|
|
.Icon( BITMAPS::plot ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::quit( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.quit" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Quit" ) )
|
|
|
|
.Tooltip( _( "Close the current editor" ) )
|
|
|
|
.Icon( BITMAPS::exit ) );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
|
|
|
// Generic Edit Actions
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::cancelInteractive( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.cancel" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
// ESC key is handled in the dispatcher
|
|
|
|
.MenuText( _( "Cancel" ) )
|
|
|
|
.Tooltip( _( "Cancel current tool" ) )
|
|
|
|
.Icon( BITMAPS::cancel )
|
|
|
|
.Flags( AF_NONE ) );
|
2017-02-06 16:00:51 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::showContextMenu( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.showContextMenu" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Show Context Menu" ) )
|
|
|
|
.Tooltip( _( "Perform the right-mouse-button action" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_RIGHT_CLICK ) );
|
2019-06-21 09:49:27 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::updateMenu( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.updateMenu" )
|
|
|
|
.Scope( AS_GLOBAL ) );
|
2019-05-13 20:42:40 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::undo( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.undo" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'Z' )
|
|
|
|
.LegacyHotkeyName( "Undo" )
|
|
|
|
.MenuText( _( "Undo" ) )
|
|
|
|
.Tooltip( _( "Undo last edit" ) )
|
|
|
|
.Icon( BITMAPS::undo ) );
|
2019-05-14 19:21:10 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::redo( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.redo" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2019-06-09 21:57:23 +00:00
|
|
|
#if defined( __WXMAC__ )
|
2023-08-28 22:13:39 +00:00
|
|
|
.DefaultHotkey( MD_SHIFT + MD_CTRL + 'Z' )
|
2019-06-09 21:57:23 +00:00
|
|
|
#else
|
2023-08-28 22:13:39 +00:00
|
|
|
.DefaultHotkey( MD_CTRL + 'Y' )
|
2019-06-09 21:57:23 +00:00
|
|
|
#endif
|
2023-08-28 22:13:39 +00:00
|
|
|
.LegacyHotkeyName( "Redo" )
|
|
|
|
.MenuText( _( "Redo" ) )
|
|
|
|
.Tooltip( _( "Redo last edit" ) )
|
|
|
|
.Icon( BITMAPS::redo ) );
|
2019-05-14 19:21:10 +00:00
|
|
|
|
2022-09-27 21:03:58 +00:00
|
|
|
// The following actions need to have a hard-coded UI ID using a wx-specific ID
|
|
|
|
// to fix things like search controls in standard file dialogs. If wxWidgets
|
|
|
|
// doesn't find these specific IDs somewhere in the menus then it won't enable
|
|
|
|
// cut/copy/paste.
|
|
|
|
TOOL_ACTION ACTIONS::cut( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.cut" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'X' )
|
|
|
|
.LegacyHotkeyName( "Cut" )
|
|
|
|
.MenuText( _( "Cut" ) )
|
|
|
|
.Tooltip( _( "Cut selected item(s) to clipboard" ) )
|
|
|
|
.Icon( BITMAPS::cut )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.UIId( wxID_CUT ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::copy( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.copy" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'C' )
|
|
|
|
.LegacyHotkeyName( "Copy" )
|
|
|
|
.MenuText( _( "Copy" ) )
|
|
|
|
.Tooltip( _( "Copy selected item(s) to clipboard" ) )
|
|
|
|
.Icon( BITMAPS::copy )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.UIId( wxID_COPY ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::paste( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.paste" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'V' )
|
|
|
|
.LegacyHotkeyName( "Paste" )
|
|
|
|
.MenuText( _( "Paste" ) )
|
|
|
|
.Tooltip( _( "Paste item(s) from clipboard" ) )
|
|
|
|
.Icon( BITMAPS::paste )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.UIId( wxID_PASTE ) );
|
2020-08-19 22:15:44 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::selectAll( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.selectAll" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'A' )
|
|
|
|
.MenuText( _( "Select All" ) )
|
|
|
|
.Tooltip( _( "Select all items on screen" ) ) );
|
2019-05-14 19:21:10 +00:00
|
|
|
|
2023-09-06 23:44:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::unselectAll( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.unselectAll" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + MD_SHIFT + 'A' )
|
|
|
|
.MenuText( _( "Unselect All" ) )
|
|
|
|
.Tooltip( _( "Unselect all items on screen" ) ) );
|
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::pasteSpecial( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.pasteSpecial" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Paste Special..." ) )
|
|
|
|
.Tooltip( _( "Paste item(s) from clipboard with annotation options" ) )
|
|
|
|
.Icon( BITMAPS::paste_special ) );
|
2019-09-02 18:23:46 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::duplicate( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.duplicate" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'D' )
|
|
|
|
.LegacyHotkeyName( "Duplicate" )
|
|
|
|
.MenuText( _( "Duplicate" ) )
|
|
|
|
.Tooltip( _( "Duplicates the selected item(s)" ) )
|
|
|
|
.Icon( BITMAPS::duplicate ) );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
2022-09-28 22:26:37 +00:00
|
|
|
TOOL_ACTION ACTIONS::doDelete( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.delete" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2021-02-15 23:04:44 +00:00
|
|
|
#if defined( __WXMAC__ )
|
2022-09-28 22:26:37 +00:00
|
|
|
.DefaultHotkey( WXK_BACK )
|
2021-02-15 23:04:44 +00:00
|
|
|
#else
|
2022-09-28 22:26:37 +00:00
|
|
|
.DefaultHotkey( WXK_DELETE )
|
2021-02-15 23:04:44 +00:00
|
|
|
#endif
|
2022-09-28 22:26:37 +00:00
|
|
|
.LegacyHotkeyName( "Delete Item" )
|
|
|
|
.MenuText( _( "Delete" ) )
|
|
|
|
.Tooltip( _( "Deletes selected item(s)" ) )
|
|
|
|
.Icon( BITMAPS::trash )
|
|
|
|
.Parameter( ACTIONS::REMOVE_FLAGS::NORMAL ) );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::deleteTool( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.deleteTool" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Interactive Delete Tool" ) )
|
|
|
|
.Tooltip( _( "Delete clicked items" ) )
|
|
|
|
.Icon( BITMAPS::delete_cursor )
|
|
|
|
.Flags( AF_ACTIVATE ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::activatePointEditor( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.activatePointEditor" )
|
|
|
|
.Scope( AS_GLOBAL ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::cycleArcEditMode( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.cycleArcEditMode" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + ' ' )
|
|
|
|
.MenuText( _( "Cycle arc editing mode" ) )
|
|
|
|
.Tooltip( _( "Switch to a different method of editing arcs" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::showSearch( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.search" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'G' )
|
|
|
|
.LegacyHotkeyName( "Search" )
|
|
|
|
.MenuText( _( "Show Search Panel" ) )
|
|
|
|
.Tooltip( _( "Show/hide the search panel" ) )
|
|
|
|
.Icon( BITMAPS::find ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::find( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.find" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'F' )
|
|
|
|
.LegacyHotkeyName( "Find" )
|
|
|
|
.MenuText( _( "Find" ) )
|
|
|
|
.Tooltip( _( "Find text" ) )
|
|
|
|
.Icon( BITMAPS::find ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::findAndReplace( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.findAndReplace" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + MD_ALT + 'F' )
|
|
|
|
.LegacyHotkeyName( "Find and Replace" )
|
|
|
|
.MenuText( _( "Find and Replace" ) )
|
|
|
|
.Tooltip( _( "Find and replace text" ) )
|
|
|
|
.Icon( BITMAPS::find_replace ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::findNext( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.findNext" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_F3 )
|
|
|
|
.LegacyHotkeyName( "Find Next" )
|
|
|
|
.MenuText( _( "Find Next" ) )
|
|
|
|
.Tooltip( _( "Find next match" ) )
|
|
|
|
.Icon( BITMAPS::find ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::findPrevious( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.findPrevious" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + WXK_F3 )
|
|
|
|
.LegacyHotkeyName( "Find Previous" )
|
|
|
|
.MenuText( _( "Find Previous" ) )
|
|
|
|
.Tooltip( _( "Find previous match" ) )
|
|
|
|
.Icon( BITMAPS::find ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::findNextMarker( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.findNextMarker" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + MD_SHIFT + WXK_F3 )
|
|
|
|
.LegacyHotkeyName( "Find Next Marker" )
|
|
|
|
.MenuText( _( "Find Next Marker" ) )
|
|
|
|
.Icon( BITMAPS::find ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::replaceAndFindNext( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.replaceAndFindNext" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Replace and Find Next" ) )
|
|
|
|
.Tooltip( _( "Replace current match and find next" ) )
|
|
|
|
.Icon( BITMAPS::find_replace ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::replaceAll( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.replaceAll" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Replace All" ) )
|
|
|
|
.Tooltip( _( "Replace all matches" ) )
|
|
|
|
.Icon( BITMAPS::find_replace ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::updateFind( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.updateFind" )
|
|
|
|
.Scope( AS_GLOBAL ) );
|
2019-05-19 21:04:04 +00:00
|
|
|
|
2020-12-01 22:35:11 +00:00
|
|
|
|
|
|
|
// Marker Controls
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::prevMarker( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Checker.prevMarker" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Previous Marker" ) )
|
|
|
|
.Tooltip( _( "Go to previous marker in Checker window" ) )
|
|
|
|
.Icon( BITMAPS::marker_previous ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::nextMarker( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Checker.nextMarker" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Next Marker" ) )
|
|
|
|
.Tooltip( _( "Go to next marker in Checker window" ) )
|
|
|
|
.Icon( BITMAPS::marker_next ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::excludeMarker( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Checker.excludeMarker" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Exclude Marker" ) )
|
|
|
|
.Tooltip( _( "Mark current violation in Checker window as an exclusion" ) )
|
|
|
|
.Icon( BITMAPS::marker_exclude ) );
|
2020-12-01 22:35:11 +00:00
|
|
|
|
2017-02-20 18:10:20 +00:00
|
|
|
// View Controls
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomRedraw( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomRedraw" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2019-06-09 21:57:23 +00:00
|
|
|
#if defined( __WXMAC__ )
|
2023-08-28 22:13:39 +00:00
|
|
|
.DefaultHotkey( MD_CTRL + 'R' )
|
2019-06-09 21:57:23 +00:00
|
|
|
#else
|
2023-08-28 22:13:39 +00:00
|
|
|
.DefaultHotkey( WXK_F5 )
|
2019-06-09 21:57:23 +00:00
|
|
|
#endif
|
2023-08-28 22:13:39 +00:00
|
|
|
.LegacyHotkeyName( "Zoom Redraw" )
|
|
|
|
.MenuText( _( "Refresh" ) )
|
|
|
|
.Tooltip( _( "Refresh" ) )
|
|
|
|
.Icon( BITMAPS::refresh ) );
|
2019-04-11 01:23:34 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomFitScreen( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomFitScreen" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2019-06-09 21:57:23 +00:00
|
|
|
#if defined( __WXMAC__ )
|
2023-08-28 22:13:39 +00:00
|
|
|
.DefaultHotkey( MD_CTRL + '0' )
|
2019-06-09 21:57:23 +00:00
|
|
|
#else
|
2023-08-28 22:13:39 +00:00
|
|
|
.DefaultHotkey( WXK_HOME )
|
2019-06-09 21:57:23 +00:00
|
|
|
#endif
|
2023-08-28 22:13:39 +00:00
|
|
|
.LegacyHotkeyName( "Zoom Auto" )
|
|
|
|
.MenuText( _( "Zoom to Fit" ) )
|
|
|
|
.Tooltip( _( "Zoom to Fit" ) )
|
|
|
|
.Icon( BITMAPS::zoom_fit_in_page ) );
|
2019-06-09 21:57:23 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomFitObjects( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomFitObjects" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + WXK_HOME )
|
|
|
|
.MenuText( _( "Zoom to Objects" ) )
|
|
|
|
.Tooltip( _( "Zoom to Objects" ) )
|
|
|
|
.Icon( BITMAPS::zoom_fit_to_objects ) );
|
2020-09-11 07:51:00 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomIn( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomIn" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2019-06-09 21:57:23 +00:00
|
|
|
#if defined( __WXMAC__ )
|
2023-08-28 22:13:39 +00:00
|
|
|
.DefaultHotkey( MD_CTRL + '+' )
|
2019-06-09 21:57:23 +00:00
|
|
|
#else
|
2023-08-28 22:13:39 +00:00
|
|
|
.DefaultHotkey( WXK_F1 )
|
2019-06-09 21:57:23 +00:00
|
|
|
#endif
|
2023-08-28 22:13:39 +00:00
|
|
|
.LegacyHotkeyName( "Zoom In" )
|
|
|
|
.MenuText( _( "Zoom In at Cursor" ) )
|
|
|
|
.Tooltip( _( "Zoom In at Cursor" ) )
|
|
|
|
.Icon( BITMAPS::zoom_in ) );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomOut( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomOut" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2019-06-09 21:57:23 +00:00
|
|
|
#if defined( __WXMAC__ )
|
2023-08-28 22:13:39 +00:00
|
|
|
.DefaultHotkey( MD_CTRL + '-' )
|
2019-06-09 21:57:23 +00:00
|
|
|
#else
|
2023-08-28 22:13:39 +00:00
|
|
|
.DefaultHotkey( WXK_F2 )
|
2019-06-09 21:57:23 +00:00
|
|
|
#endif
|
2023-08-28 22:13:39 +00:00
|
|
|
.LegacyHotkeyName( "Zoom Out" )
|
|
|
|
.MenuText( _( "Zoom Out at Cursor" ) )
|
|
|
|
.Tooltip( _( "Zoom Out at Cursor" ) )
|
|
|
|
.Icon( BITMAPS::zoom_out ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomInCenter( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomInCenter" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Zoom In" ) )
|
|
|
|
.Tooltip( _( "Zoom In" ) )
|
|
|
|
.Icon( BITMAPS::zoom_in ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomOutCenter( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomOutCenter" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Zoom Out" ) )
|
|
|
|
.Tooltip( _( "Zoom Out" ) )
|
|
|
|
.Icon( BITMAPS::zoom_out ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomCenter( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomCenter" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_F4 )
|
|
|
|
.LegacyHotkeyName( "Zoom Center" )
|
|
|
|
.MenuText( _( "Center on Cursor" ) )
|
|
|
|
.Tooltip( _( "Center on Cursor" ) )
|
|
|
|
.Icon( BITMAPS::zoom_center_on_screen ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomTool( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomTool" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + WXK_F5 )
|
|
|
|
.LegacyHotkeyName( "Zoom to Selection" )
|
|
|
|
.MenuText( _( "Zoom to Selection" ) )
|
|
|
|
.Tooltip( _( "Zoom to Selection" ) )
|
|
|
|
.Icon( BITMAPS::zoom_area )
|
|
|
|
.Flags( AF_ACTIVATE ) );
|
2017-08-31 02:35:30 +00:00
|
|
|
|
2023-09-26 12:18:28 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomUndo( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.undoZoom" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Undo Last Zoom" ) )
|
|
|
|
.Tooltip( _( "Return zoom to level prior to last zoom action" ) )
|
|
|
|
.Icon( BITMAPS::undo ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomRedo( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.redoZoom" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Redo Last Zoom" ) )
|
|
|
|
.Tooltip( _( "Return zoom to level prior to last zoom undo" ) )
|
|
|
|
.Icon( BITMAPS::redo ) );
|
|
|
|
|
2022-09-28 22:42:21 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomPreset( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomPreset" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2022-09-29 02:15:22 +00:00
|
|
|
.Parameter<int>( 0 ) ); // Default parameter is the 0th item in the list
|
2017-02-20 18:10:20 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::centerContents( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.centerContents" )
|
|
|
|
.Scope( AS_GLOBAL ) );
|
2018-09-11 15:28:57 +00:00
|
|
|
|
2018-10-03 16:26:33 +00:00
|
|
|
// Cursor control
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::cursorUp( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.cursorUp" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_UP )
|
|
|
|
.MenuText( _( "Cursor Up" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_UP ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::cursorDown( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.cursorDown" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_DOWN )
|
|
|
|
.MenuText( _( "Cursor Down" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_DOWN ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::cursorLeft( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.cursorLeft" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_LEFT )
|
|
|
|
.MenuText( _( "Cursor Left" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_LEFT ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::cursorRight( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.cursorRight" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_RIGHT )
|
|
|
|
.MenuText( _( "Cursor Right" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_RIGHT ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::cursorUpFast( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.cursorUpFast" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + WXK_UP )
|
|
|
|
.MenuText( _( "Cursor Up Fast" ) )
|
|
|
|
.Flags( AF_NONE )
|
2023-09-18 09:32:38 +00:00
|
|
|
.Parameter( CURSOR_UP_FAST ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::cursorDownFast( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.cursorDownFast" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + WXK_DOWN )
|
|
|
|
.MenuText( _( "Cursor Down Fast" ) )
|
|
|
|
.Flags( AF_NONE )
|
2023-09-18 09:32:38 +00:00
|
|
|
.Parameter( CURSOR_DOWN_FAST ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::cursorLeftFast( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.cursorLeftFast" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + WXK_LEFT )
|
|
|
|
.MenuText( _( "Cursor Left Fast" ) )
|
|
|
|
.Flags( AF_NONE )
|
2023-09-18 09:32:38 +00:00
|
|
|
.Parameter( CURSOR_LEFT_FAST ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::cursorRightFast( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.cursorRightFast" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + WXK_RIGHT )
|
|
|
|
.MenuText( _( "Cursor Right Fast" ) )
|
|
|
|
.Flags( AF_NONE )
|
2023-09-18 09:32:38 +00:00
|
|
|
.Parameter( CURSOR_RIGHT_FAST ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::cursorClick( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.cursorClick" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_RETURN )
|
|
|
|
.LegacyHotkeyName( "Mouse Left Click" )
|
|
|
|
.MenuText( _( "Click" ) )
|
|
|
|
.Tooltip( _( "Performs left mouse button click" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_CLICK ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::cursorDblClick( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.cursorDblClick" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_END )
|
|
|
|
.LegacyHotkeyName( "Mouse Left Double Click" )
|
|
|
|
.MenuText( _( "Double-click" ) )
|
|
|
|
.Tooltip( _( "Performs left mouse button double-click" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_DBL_CLICK ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::refreshPreview( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.refreshPreview" )
|
|
|
|
.Scope( AS_GLOBAL ) );
|
2019-07-04 20:56:21 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::pinLibrary( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.pinLibrary" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Pin Library" ) )
|
|
|
|
.Tooltip( _( "Keep the library at the top of the list" ) ) );
|
2020-02-07 17:06:24 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::unpinLibrary( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.unpinLibrary" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Unpin Library" ) )
|
|
|
|
.Tooltip( _( "No longer keep the library at the top of the list" ) ) );
|
2020-02-07 17:06:24 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::panUp( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.panUp" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + WXK_UP )
|
|
|
|
.MenuText( _( "Pan Up" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_UP ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::panDown( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.panDown" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + WXK_DOWN )
|
|
|
|
.MenuText( _( "Pan Down" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_DOWN ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::panLeft( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.panLeft" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + WXK_LEFT )
|
|
|
|
.MenuText( _( "Pan Left" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_LEFT ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::panRight( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.panRight" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + WXK_RIGHT )
|
|
|
|
.MenuText( _( "Pan Right" ) )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( CURSOR_RIGHT ) );
|
2018-10-03 16:26:33 +00:00
|
|
|
|
2017-02-20 18:10:20 +00:00
|
|
|
// Grid control
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::gridFast1( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridFast1" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_ALT + '1' )
|
|
|
|
.LegacyHotkeyName( "Switch Grid To Fast Grid1" )
|
|
|
|
.MenuText( _( "Switch to Fast Grid 1" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridFast2( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridFast2" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_ALT + '2' )
|
|
|
|
.LegacyHotkeyName( "Switch Grid To Fast Grid2" )
|
|
|
|
.MenuText( _( "Switch to Fast Grid 2" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridFastCycle( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridFastCycle" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_ALT + '4' )
|
|
|
|
.LegacyHotkeyName( "Switch Grid To Next Fast Grid" )
|
|
|
|
.MenuText( _( "Cycle Fast Grid" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridNext( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridNext" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( 'N' )
|
|
|
|
.LegacyHotkeyName( "Switch Grid To Next" )
|
|
|
|
.MenuText( _("Switch to Next Grid" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridPrev( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridPrev" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + 'N' )
|
|
|
|
.LegacyHotkeyName( "Switch Grid To Previous" )
|
|
|
|
.MenuText( _( "Switch to Previous Grid" ) ) );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
2023-06-28 22:29:35 +00:00
|
|
|
TOOL_ACTION ACTIONS::gridSetOrigin( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridSetOrigin" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.LegacyHotkeyName( "Set Grid Origin" )
|
|
|
|
.MenuText( _( "Grid Origin" ) )
|
2023-08-26 12:29:24 +00:00
|
|
|
.Tooltip( _( "Place the grid origin point" ) )
|
2023-06-28 22:29:35 +00:00
|
|
|
.Icon( BITMAPS::grid_select_axis )
|
|
|
|
.Parameter<VECTOR2D*>( nullptr ) );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::gridResetOrigin( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridResetOrigin" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.LegacyHotkeyName( "Reset Grid Origin" )
|
|
|
|
.MenuText( _( "Reset Grid Origin" ) ) );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
2022-09-28 22:42:21 +00:00
|
|
|
TOOL_ACTION ACTIONS::gridPreset( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridPreset" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2022-09-29 02:15:22 +00:00
|
|
|
.Parameter<int>( 0 ) ); // Default to the 1st element of the list
|
2019-04-21 23:45:34 +00:00
|
|
|
|
2023-07-23 17:51:42 +00:00
|
|
|
TOOL_ACTION ACTIONS::toggleGrid( TOOL_ACTION_ARGS()
|
2023-08-26 12:29:24 +00:00
|
|
|
.Name( "common.Control.toggleGrid" )
|
2023-07-23 17:51:42 +00:00
|
|
|
.Scope( AS_GLOBAL)
|
|
|
|
.MenuText( _( "Show Grid" ) )
|
|
|
|
.Tooltip( _( "Display background grid in the edit window" ) )
|
|
|
|
.Icon( BITMAPS::grid ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::toggleGridOverrides( TOOL_ACTION_ARGS()
|
2023-08-26 12:29:24 +00:00
|
|
|
.Name( "common.Control.toggleGridOverrides" )
|
2023-07-23 17:51:42 +00:00
|
|
|
.DefaultHotkey( MD_CTRL + MD_SHIFT + 'G' )
|
|
|
|
.Scope( AS_GLOBAL)
|
|
|
|
.MenuText( _( "Grid Overrides" ) )
|
|
|
|
.Tooltip( _( "Enables item-specific grids that override the current grid" ) )
|
|
|
|
.Icon( BITMAPS::grid_override ) );
|
2019-05-13 20:42:40 +00:00
|
|
|
|
2023-08-26 12:29:24 +00:00
|
|
|
TOOL_ACTION ACTIONS::gridProperties( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.editGrids" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Edit Grids..." ) )
|
|
|
|
.Tooltip( _( "Edit grid definitions" ) )
|
|
|
|
.Icon( BITMAPS::grid_select ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridOrigin( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.editGridOrigin" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Grid Origin..." ) )
|
|
|
|
.Tooltip( _( "Set the grid origin point" ) ) );
|
2019-05-13 20:42:40 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::inchesUnits( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.imperialUnits" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Inches" ) )
|
|
|
|
.Tooltip( _( "Use inches" ) )
|
|
|
|
.Icon( BITMAPS::unit_inch )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( EDA_UNITS::INCHES ) );
|
2019-05-13 20:42:40 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::milsUnits( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.mils" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Mils" ) )
|
|
|
|
.Tooltip( _( "Use mils" ) )
|
|
|
|
.Icon( BITMAPS::unit_mil )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( EDA_UNITS::MILS ) );
|
2020-10-03 23:34:23 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::millimetersUnits( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.metricUnits" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Millimeters" ) )
|
|
|
|
.Tooltip( _( "Use millimeters" ) )
|
|
|
|
.Icon( BITMAPS::unit_mm )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( EDA_UNITS::MILLIMETRES ) );
|
2019-05-13 20:42:40 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::updateUnits( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.updateUnits" )
|
|
|
|
.Scope( AS_GLOBAL ) );
|
2020-10-04 16:14:37 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::updatePreferences( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.updatePreferences" )
|
|
|
|
.Scope( AS_GLOBAL ) );
|
2021-11-23 20:51:37 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::selectColumns( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.selectColumns" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Select Columns" ) ) );
|
2022-09-24 03:45:00 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::toggleUnits( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.toggleUnits" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + 'U' )
|
|
|
|
.LegacyHotkeyName( "Switch Units" )
|
|
|
|
.MenuText( _( "Switch units" ) )
|
|
|
|
.Tooltip( _( "Switch between imperial and metric units" ) )
|
|
|
|
.Icon( BITMAPS::unit_mm ) );
|
2019-05-13 20:42:40 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::togglePolarCoords( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.togglePolarCoords" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Polar Coordinates" ) )
|
|
|
|
.Tooltip( _( "Switch between polar and cartesian coordinate systems" ) )
|
|
|
|
.Icon( BITMAPS::polar_coord ) );
|
2019-05-17 11:52:38 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::resetLocalCoords( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.resetLocalCoords" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( ' ' )
|
|
|
|
.LegacyHotkeyName( "Reset Local Coordinates" )
|
|
|
|
.MenuText( _( "Reset Local Coordinates" ) ) );
|
2019-05-28 14:39:14 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::toggleCursor( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.toggleCursor" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + MD_SHIFT + 'X' )
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2023-08-28 22:13:39 +00:00
|
|
|
.LegacyHotkeyName( "Toggle Cursor Display (Modern Toolset only)" )
|
|
|
|
.MenuText( _( "Always Show Cursor" ) )
|
|
|
|
.Tooltip( _( "Display crosshairs even in selection tool" ) )
|
|
|
|
.Icon( BITMAPS::cursor ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::toggleCursorStyle( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.toggleCursorStyle" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Full-Window Crosshairs" ) )
|
|
|
|
.Tooltip( _( "Switch display of full-window crosshairs" ) )
|
|
|
|
.Icon( BITMAPS::cursor_shape ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::highContrastMode( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.highContrastMode" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.LegacyHotkeyName( "Toggle High Contrast Mode" )
|
|
|
|
.MenuText( _( "Inactive Layer View Mode" ) )
|
|
|
|
.Tooltip( _( "Toggle inactive layers between normal and dimmed" ) )
|
|
|
|
.Icon( BITMAPS::contrast_mode ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::highContrastModeCycle( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.highContrastModeCycle" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( 'H' )
|
|
|
|
.MenuText( _( "Inactive Layer View Mode (3-state)" ) )
|
|
|
|
.Tooltip( _( "Cycle inactive layers between normal, dimmed, and hidden" ) )
|
|
|
|
.Icon( BITMAPS::contrast_mode ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::toggleBoundingBoxes( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.toggleBoundingBoxes" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Draw Bounding Boxes" ) )
|
|
|
|
.Tooltip( _( "Draw Bounding Boxes" ) )
|
|
|
|
.Icon( BITMAPS::gerbview_show_negative_objects ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::selectionTool( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.InteractiveSelection.selectionTool" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Select item(s)" ) )
|
|
|
|
.Tooltip( _( "Select item(s)" ) )
|
|
|
|
.Icon( BITMAPS::cursor )
|
|
|
|
.Flags( AF_ACTIVATE ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::measureTool( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.InteractiveEdit.measureTool" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + MD_SHIFT + 'M' )
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2023-08-28 22:13:39 +00:00
|
|
|
.LegacyHotkeyName( "Measure Distance (Modern Toolset only)" )
|
|
|
|
.MenuText( _( "Measure Tool" ) )
|
|
|
|
.Tooltip( _( "Interactively measure distance between points" ) )
|
|
|
|
.Icon( BITMAPS::measurement )
|
|
|
|
.Flags( AF_ACTIVATE ) );
|
2019-06-03 01:46:08 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::pickerTool( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.InteractivePicker.pickerTool" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.Flags( AF_ACTIVATE ) );
|
2019-07-15 23:44:01 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::pickerSubTool( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.InteractivePicker.pickerSubTool" )
|
|
|
|
.Scope( AS_GLOBAL ) );
|
2022-11-07 19:10:24 +00:00
|
|
|
|
2023-09-26 16:25:06 +00:00
|
|
|
TOOL_ACTION ACTIONS::showProjectManager( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.showProjectManager" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Switch to Project Manager" ) )
|
|
|
|
.Tooltip( _( "Show project window" ) )
|
|
|
|
.Icon( BITMAPS::icon_kicad_24 ) );
|
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::show3DViewer( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.show3DViewer" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_ALT + '3' )
|
|
|
|
.LegacyHotkeyName( "3D Viewer" )
|
|
|
|
.MenuText( _( "3D Viewer" ) )
|
|
|
|
.Tooltip( _( "Show 3D viewer window" ) )
|
|
|
|
.Icon( BITMAPS::three_d ) );
|
2019-06-02 23:17:27 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::showSymbolBrowser( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.showSymbolBrowser" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Symbol Library Browser" ) )
|
|
|
|
.Tooltip( _( "Browse symbol libraries" ) )
|
|
|
|
.Icon( BITMAPS::library_browser )
|
|
|
|
.Flags( AF_NONE)
|
|
|
|
.Parameter( FRAME_SCH_VIEWER ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::showSymbolEditor( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.showSymbolEditor" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Symbol Editor" ) )
|
|
|
|
.Tooltip( _( "Create, delete and edit symbols" ) )
|
|
|
|
.Icon( BITMAPS::libedit )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( FRAME_SCH_SYMBOL_EDITOR ) );
|
2019-06-06 11:45:28 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::showFootprintBrowser( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.showFootprintBrowser" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Footprint Library Browser" ) )
|
|
|
|
.Tooltip( _( "Browse footprint libraries" ) )
|
|
|
|
.Icon( BITMAPS::library_browser )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( FRAME_FOOTPRINT_VIEWER ) );
|
2019-06-04 18:46:52 +00:00
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::showFootprintEditor( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.showFootprintEditor" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Footprint Editor" ) )
|
|
|
|
.Tooltip( _( "Create, delete and edit footprints" ) )
|
|
|
|
.Icon( BITMAPS::module_editor )
|
|
|
|
.Flags( AF_NONE )
|
|
|
|
.Parameter( FRAME_FOOTPRINT_EDITOR ) );
|
2019-06-06 11:45:28 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::showProperties( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.showProperties" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Show Properties Manager" ) )
|
|
|
|
.Tooltip( _( "Show/hide the properties manager" ) )
|
|
|
|
.Icon( BITMAPS::tools ) );
|
2023-06-21 01:57:20 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::updatePcbFromSchematic( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.updatePcbFromSchematic" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_F8 )
|
|
|
|
.LegacyHotkeyName( "Update PCB from Schematic" )
|
|
|
|
.MenuText( _( "Update PCB from Schematic..." ) )
|
|
|
|
.Tooltip( _( "Update PCB with changes made to schematic" ) )
|
|
|
|
.Icon( BITMAPS::update_pcb_from_sch ) );
|
2019-06-03 13:49:17 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::updateSchematicFromPcb( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.updateSchematicFromPCB" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Update Schematic from PCB..." ) )
|
|
|
|
.Tooltip( _( "Update schematic with changes made to PCB" ) )
|
|
|
|
.Icon( BITMAPS::update_sch_from_pcb ) );
|
2020-01-29 16:33:57 +00:00
|
|
|
|
2023-08-07 23:51:22 +00:00
|
|
|
TOOL_ACTION ACTIONS::openPreferences( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.openPreferences" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + ',' )
|
|
|
|
.MenuText( _( "Preferences..." ) )
|
|
|
|
.Tooltip( _( "Show preferences for all open tools" ) )
|
|
|
|
.Icon( BITMAPS::preference )
|
|
|
|
.UIId( wxID_PREFERENCES ) );
|
2021-05-29 16:09:49 +00:00
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::configurePaths( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.configurePaths" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Configure Paths..." ) )
|
|
|
|
.Tooltip( _( "Edit path configuration environment variables" ) )
|
|
|
|
.Icon( BITMAPS::path ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::showSymbolLibTable( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.showSymbolLibTable" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Manage Symbol Libraries..." ) )
|
|
|
|
.Tooltip( _( "Edit the global and project symbol library lists" ) )
|
|
|
|
.Icon( BITMAPS::library_table ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::showFootprintLibTable( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.showFootprintLibTable" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Manage Footprint Libraries..." ) )
|
|
|
|
.Tooltip( _( "Edit the global and project footprint library lists" ) )
|
|
|
|
.Icon( BITMAPS::library_table ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gettingStarted( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.gettingStarted" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Getting Started with KiCad" ) )
|
|
|
|
.Tooltip( _( "Open \"Getting Started in KiCad\" guide for beginners" ) )
|
|
|
|
.Icon( BITMAPS::help ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::help( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.help" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Help" ) )
|
|
|
|
.Tooltip( _( "Open product documentation in a web browser" ) )
|
|
|
|
.Icon( BITMAPS::help_online ) );
|
|
|
|
|
2023-10-04 19:42:35 +00:00
|
|
|
TOOL_ACTION ACTIONS::about( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.about" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "About KiCad" ) )
|
|
|
|
.Tooltip( _( "Open about dialog" ) )
|
|
|
|
.UIId( wxID_ABOUT )
|
|
|
|
.Icon( BITMAPS::about ) );
|
|
|
|
|
2023-08-28 22:13:39 +00:00
|
|
|
TOOL_ACTION ACTIONS::listHotKeys( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.listHotKeys" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_CTRL + WXK_F1 )
|
|
|
|
.LegacyHotkeyName( "List Hotkeys" )
|
|
|
|
.MenuText( _( "List Hotkeys..." ) )
|
|
|
|
.Tooltip( _( "Displays current hotkeys table and corresponding commands" ) )
|
|
|
|
.Icon( BITMAPS::hotkeys ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::getInvolved( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.getInvolved" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Get Involved" ) )
|
|
|
|
.Tooltip( _( "Open \"Contribute to KiCad\" in a web browser" ) )
|
|
|
|
.Icon( BITMAPS::info ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::donate( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.donate" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Donate" ) )
|
|
|
|
.Tooltip( _( "Open \"Donate to KiCad\" in a web browser" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::reportBug( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.reportBug" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.MenuText( _( "Report Bug" ) )
|
|
|
|
.Tooltip( _( "Report a problem with KiCad" ) )
|
|
|
|
.Icon( BITMAPS::bug ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::ddAddLibrary( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.ddaddLibrary" )
|
|
|
|
.Scope( AS_GLOBAL ) );
|
2022-09-14 22:28:09 +00:00
|
|
|
|
2019-04-21 23:45:34 +00:00
|
|
|
// System-wide selection Events
|
|
|
|
|
2022-07-19 15:00:35 +00:00
|
|
|
const TOOL_EVENT EVENTS::PointSelectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.pointSelected" );
|
2019-04-21 23:45:34 +00:00
|
|
|
const TOOL_EVENT EVENTS::SelectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.selected" );
|
|
|
|
const TOOL_EVENT EVENTS::UnselectedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.unselected" );
|
|
|
|
const TOOL_EVENT EVENTS::ClearedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.cleared" );
|
|
|
|
|
2022-11-18 00:45:14 +00:00
|
|
|
const TOOL_EVENT EVENTS::ConnectivityChangedEvent( TC_MESSAGE, TA_ACTION, "common.Interactive.connectivityChanged" );
|
|
|
|
|
2019-05-08 18:56:03 +00:00
|
|
|
const TOOL_EVENT EVENTS::SelectedItemsModified( TC_MESSAGE, TA_ACTION, "common.Interactive.modified" );
|
2020-08-15 18:18:04 +00:00
|
|
|
const TOOL_EVENT EVENTS::SelectedItemsMoved( TC_MESSAGE, TA_ACTION, "common.Interactive.moved" );
|
2020-10-25 16:13:25 +00:00
|
|
|
const TOOL_EVENT EVENTS::InhibitSelectionEditing( TC_MESSAGE, TA_ACTION, "common.Interactive.inhibit" );
|
|
|
|
const TOOL_EVENT EVENTS::UninhibitSelectionEditing( TC_MESSAGE, TA_ACTION, "common.Interactive.uninhibit" );
|
2019-05-08 18:56:03 +00:00
|
|
|
|
2021-09-05 20:37:52 +00:00
|
|
|
const TOOL_EVENT EVENTS::DisambiguatePoint( TC_MESSAGE, TA_ACTION, "common.Interactive.disambiguate" );
|
2023-05-31 02:06:49 +00:00
|
|
|
|
|
|
|
const TOOL_EVENT EVENTS::GridChangedByKeyEvent( TC_MESSAGE, TA_ACTION,
|
|
|
|
"common.Interactive.gridChangedByKey" );
|
2023-06-18 03:47:26 +00:00
|
|
|
|
|
|
|
const TOOL_EVENT EVENTS::ContrastModeChangedByKeyEvent( TC_MESSAGE, TA_ACTION,
|
|
|
|
"common.Interactive.contrastModeChangedByKeyEvent" );
|
2023-09-01 17:46:51 +00:00
|
|
|
|
|
|
|
// System-wide undo/redo Events
|
|
|
|
|
|
|
|
const TOOL_EVENT EVENTS::UndoRedoPreEvent( TC_MESSAGE, TA_UNDO_REDO_POST, AS_GLOBAL );
|
|
|
|
const TOOL_EVENT EVENTS::UndoRedoPostEvent( TC_MESSAGE, TA_UNDO_REDO_POST, AS_GLOBAL );
|