2019-06-09 21:57:23 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2023-11-08 21:34:14 +00:00
|
|
|
* Copyright (C) 2019-2023 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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "New..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "New Library..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Create a new library folder" ) )
|
|
|
|
.Icon( BITMAPS::new_library ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::addLibrary( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.addLibrary" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Add Library..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Open..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Save" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Save As..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Save a Copy..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Save All" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Save all changes" ) )
|
|
|
|
.Icon( BITMAPS::save ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::revert( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.revert" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Revert" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Throw away changes" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::pageSettings( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.pageSettings" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Page Settings..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Print..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Print" ) )
|
|
|
|
.Icon( BITMAPS::print_button ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::plot( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.plot" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Plot..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Plot" ) )
|
|
|
|
.Icon( BITMAPS::plot ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::quit( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.quit" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Quit" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cancel" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Cancel current tool" ) )
|
|
|
|
.Icon( BITMAPS::cancel )
|
|
|
|
.Flags( AF_NONE ) );
|
2017-02-06 16:00:51 +00:00
|
|
|
|
2022-12-29 16:55:05 +00:00
|
|
|
TOOL_ACTION ACTIONS::finishInteractive( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.finish" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( WXK_END )
|
|
|
|
.FriendlyName( _( "Finish" ) )
|
|
|
|
.Tooltip( _( "Finish current tool" ) )
|
|
|
|
.Icon( BITMAPS::checked_ok )
|
|
|
|
.Flags( AF_NONE ) );
|
|
|
|
|
2022-09-28 01:15:19 +00:00
|
|
|
TOOL_ACTION ACTIONS::showContextMenu( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.showContextMenu" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Show Context Menu" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Undo" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Redo" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cut" ) )
|
2022-09-27 21:03:58 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Copy" ) )
|
2022-09-27 21:03:58 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Paste" ) )
|
2022-09-27 21:03:58 +00:00
|
|
|
.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' )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Select All" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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' )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Unselect All" ) )
|
2023-09-06 23:44:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Paste Special..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Duplicate" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Delete" ) )
|
2022-09-28 22:26:37 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Interactive Delete Tool" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 + ' ' )
|
2023-12-13 13:15:19 +00:00
|
|
|
.FriendlyName( _( "Cycle Arc Editing Mode" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Show Search Panel" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Find" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Find and Replace" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Find Next" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Find Previous" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Find Next Marker" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Icon( BITMAPS::find ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::replaceAndFindNext( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Interactive.replaceAndFindNext" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Replace and Find Next" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Replace All" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Previous Marker" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Next Marker" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Exclude Marker" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Refresh" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Zoom to Fit" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Zoom to Objects" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Zoom In at Cursor" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Zoom Out at Cursor" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Zoom Out at Cursor" ) )
|
|
|
|
.Icon( BITMAPS::zoom_out ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomInCenter( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomInCenter" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Zoom In" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Zoom In" ) )
|
|
|
|
.Icon( BITMAPS::zoom_in ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomOutCenter( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.zoomOutCenter" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Zoom Out" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Center on Cursor" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Zoom to Selection" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Undo Last Zoom" ) )
|
2023-09-26 12:18:28 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Redo Last Zoom" ) )
|
2023-09-26 12:18:28 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cursor Up" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cursor Down" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cursor Left" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cursor Right" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cursor Up Fast" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cursor Down Fast" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cursor Left Fast" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cursor Right Fast" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Click" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Double-click" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Pin Library" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Unpin Library" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Pan Up" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Pan Down" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Pan Left" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Pan Right" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Switch to Fast Grid 1" ) ) );
|
2023-08-28 22:13:39 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridFast2( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridFast2" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_ALT + '2' )
|
|
|
|
.LegacyHotkeyName( "Switch Grid To Fast Grid2" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Switch to Fast Grid 2" ) ) );
|
2023-08-28 22:13:39 +00:00
|
|
|
|
|
|
|
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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Cycle Fast Grid" ) ) );
|
2023-08-28 22:13:39 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridNext( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridNext" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( 'N' )
|
|
|
|
.LegacyHotkeyName( "Switch Grid To Next" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _("Switch to Next Grid" ) ) );
|
2023-08-28 22:13:39 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridPrev( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.gridPrev" )
|
|
|
|
.Scope( AS_GLOBAL )
|
|
|
|
.DefaultHotkey( MD_SHIFT + 'N' )
|
|
|
|
.LegacyHotkeyName( "Switch Grid To Previous" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "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)
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Show Grid" ) )
|
2023-07-23 17:51:42 +00:00
|
|
|
.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)
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Grid Overrides" ) )
|
2023-07-23 17:51:42 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Edit Grids..." ) )
|
2023-08-26 12:29:24 +00:00
|
|
|
.Tooltip( _( "Edit grid definitions" ) )
|
|
|
|
.Icon( BITMAPS::grid_select ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridOrigin( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.editGridOrigin" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Grid Origin..." ) )
|
2023-08-26 12:29:24 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Inches" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Mils" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Millimeters" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-11-10 11:15:42 +00:00
|
|
|
.FriendlyName( _( "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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Switch units" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Polar Coordinates" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "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)" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Always Show Cursor" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Display crosshairs even in selection tool" ) )
|
|
|
|
.Icon( BITMAPS::cursor ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::toggleCursorStyle( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.Control.toggleCursorStyle" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Full-Window Crosshairs" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Inactive Layer View Mode" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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' )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Inactive Layer View Mode (3-state)" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Draw Bounding Boxes" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Draw Bounding Boxes" ) )
|
|
|
|
.Icon( BITMAPS::gerbview_show_negative_objects ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::selectionTool( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.InteractiveSelection.selectionTool" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Select item(s)" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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)" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Measure Tool" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Switch to Project Manager" ) )
|
2023-09-26 16:25:06 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "3D Viewer" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Symbol Library Browser" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Symbol Editor" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Footprint Library Browser" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Footprint Editor" ) )
|
2022-09-28 01:15:19 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Show Properties Manager" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Update PCB from Schematic..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Update Schematic from PCB..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 + ',' )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Preferences..." ) )
|
2023-08-07 23:51:22 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Configure Paths..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Edit path configuration environment variables" ) )
|
|
|
|
.Icon( BITMAPS::path ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::showSymbolLibTable( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.showSymbolLibTable" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Manage Symbol Libraries..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Manage Footprint Libraries..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Getting Started with KiCad" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Help" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "About KiCad" ) )
|
2023-10-04 19:42:35 +00:00
|
|
|
.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" )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "List Hotkeys..." ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Get Involved" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Donate" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.Tooltip( _( "Open \"Donate to KiCad\" in a web browser" ) ) );
|
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::reportBug( TOOL_ACTION_ARGS()
|
|
|
|
.Name( "common.SuiteControl.reportBug" )
|
|
|
|
.Scope( AS_GLOBAL )
|
2023-10-27 22:40:35 +00:00
|
|
|
.FriendlyName( _( "Report Bug" ) )
|
2023-08-28 22:13:39 +00:00
|
|
|
.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 );
|