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
|
2021-05-29 16:09:49 +00:00
|
|
|
* Copyright (C) 2021 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
|
|
|
|
2019-05-24 23:36:31 +00:00
|
|
|
TOOL_ACTION ACTIONS::doNew( "common.Control.new",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + 'N', LEGACY_HK_NAME( "New" ),
|
2019-05-24 23:36:31 +00:00
|
|
|
_( "New..." ), _( "Create a new document in the editor" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::new_generic );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
2019-05-28 13:51:47 +00:00
|
|
|
TOOL_ACTION ACTIONS::newLibrary( "common.Control.newLibrary",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2019-05-28 13:51:47 +00:00
|
|
|
_( "New Library..." ), _( "Create a new library folder" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::new_library );
|
2019-05-28 13:51:47 +00:00
|
|
|
|
2019-06-02 18:58:09 +00:00
|
|
|
TOOL_ACTION ACTIONS::addLibrary( "common.Control.addLibrary",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2019-06-02 18:58:09 +00:00
|
|
|
_( "Add Library..." ), _( "Add an existing library folder" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::add_library );
|
2019-06-02 18:58:09 +00:00
|
|
|
|
2019-05-24 23:36:31 +00:00
|
|
|
TOOL_ACTION ACTIONS::open( "common.Control.open",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + 'O', LEGACY_HK_NAME( "Open" ),
|
2019-05-24 23:36:31 +00:00
|
|
|
_( "Open..." ), _( "Open existing document" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::directory_open );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::save( "common.Control.save",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + 'S', LEGACY_HK_NAME( "Save" ),
|
2019-05-24 23:36:31 +00:00
|
|
|
_( "Save" ), _( "Save changes" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::save );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::saveAs( "common.Control.saveAs",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_SHIFT + MD_CTRL + 'S', LEGACY_HK_NAME( "Save As" ),
|
2019-05-24 23:36:31 +00:00
|
|
|
_( "Save As..." ), _( "Save current document to another location" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::save_as );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
2022-04-24 16:38:34 +00:00
|
|
|
TOOL_ACTION ACTIONS::saveCopy( "common.Control.saveCopy",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2022-04-24 16:38:34 +00:00
|
|
|
_( "Save a Copy..." ), _( "Save a copy of the current document to another location" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::save_as );
|
2019-05-26 15:36:40 +00:00
|
|
|
|
2019-05-24 23:36:31 +00:00
|
|
|
TOOL_ACTION ACTIONS::saveAll( "common.Control.saveAll",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2019-05-24 23:36:31 +00:00
|
|
|
_( "Save All" ), _( "Save all changes" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::save );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
2019-05-28 13:51:47 +00:00
|
|
|
TOOL_ACTION ACTIONS::revert( "common.Control.revert",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2021-09-01 21:05:17 +00:00
|
|
|
_( "Revert" ), _( "Throw away changes" ) );
|
2019-05-28 13:51:47 +00:00
|
|
|
|
2019-05-26 15:36:40 +00:00
|
|
|
TOOL_ACTION ACTIONS::pageSettings( "common.Control.pageSettings",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2019-07-10 22:15:57 +00:00
|
|
|
_( "Page Settings..." ), _( "Settings for paper size and title block info" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::sheetset );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::print( "common.Control.print",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + 'P', LEGACY_HK_NAME( "Print" ),
|
2019-05-24 23:36:31 +00:00
|
|
|
_( "Print..." ), _( "Print" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::print_button );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::plot( "common.Control.plot",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2019-05-24 23:36:31 +00:00
|
|
|
_( "Plot..." ), _( "Plot" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::plot );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::quit( "common.Control.quit",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "", // Not currently in use due to wxWidgets crankiness
|
2019-05-24 23:36:31 +00:00
|
|
|
_( "Quit" ), _( "Close the current editor" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::exit );
|
2019-05-24 23:36:31 +00:00
|
|
|
|
|
|
|
// Generic Edit Actions
|
2017-02-06 16:00:51 +00:00
|
|
|
TOOL_ACTION ACTIONS::cancelInteractive( "common.Interactive.cancel",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "", // ESC key is handled in the dispatcher
|
2017-02-06 16:00:51 +00:00
|
|
|
_( "Cancel" ), _( "Cancel current tool" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::cancel, 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
|
|
|
|
2019-05-13 20:42:40 +00:00
|
|
|
TOOL_ACTION ACTIONS::updateMenu( "common.Interactive.updateMenu",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL );
|
2019-05-13 20:42:40 +00:00
|
|
|
|
2019-05-14 19:21:10 +00:00
|
|
|
TOOL_ACTION ACTIONS::undo( "common.Interactive.undo",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + 'Z', LEGACY_HK_NAME( "Undo" ),
|
2019-05-14 19:21:10 +00:00
|
|
|
_( "Undo" ), _( "Undo last edit" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::undo );
|
2019-05-14 19:21:10 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::redo( "common.Interactive.redo",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
#if defined( __WXMAC__ )
|
|
|
|
MD_SHIFT + MD_CTRL + 'Z',
|
|
|
|
#else
|
|
|
|
MD_CTRL + 'Y',
|
|
|
|
#endif
|
|
|
|
LEGACY_HK_NAME( "Redo" ),
|
2019-05-14 19:21:10 +00:00
|
|
|
_( "Redo" ), _( "Redo last edit" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
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
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::selectAll( "common.Interactive.selectAll",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'A', "",
|
2021-01-05 14:05:04 +00:00
|
|
|
_( "Select All" ), _( "Select all items on screen" ) );
|
2019-05-14 19:21:10 +00:00
|
|
|
|
2019-09-02 18:23:46 +00:00
|
|
|
TOOL_ACTION ACTIONS::pasteSpecial( "common.Interactive.pasteSpecial",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-06-13 12:40:21 +00:00
|
|
|
_( "Paste Special..." ), _( "Paste item(s) from clipboard with annotation options" ),
|
|
|
|
BITMAPS::paste_special );
|
2019-09-02 18:23:46 +00:00
|
|
|
|
2019-05-24 23:36:31 +00:00
|
|
|
TOOL_ACTION ACTIONS::duplicate( "common.Interactive.duplicate",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + 'D', LEGACY_HK_NAME( "Duplicate" ),
|
2019-05-24 23:36:31 +00:00
|
|
|
_( "Duplicate" ), _( "Duplicates the selected item(s)" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
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
|
|
|
|
2019-07-31 12:10:13 +00:00
|
|
|
TOOL_ACTION ACTIONS::deleteTool( "common.Interactive.deleteTool",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Interactive Delete Tool" ), _( "Delete clicked items" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::delete_cursor, AF_ACTIVATE );
|
2019-07-31 12:10:13 +00:00
|
|
|
|
2019-05-24 11:39:30 +00:00
|
|
|
TOOL_ACTION ACTIONS::activatePointEditor( "common.Control.activatePointEditor",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL );
|
2019-05-24 11:39:30 +00:00
|
|
|
|
2022-12-05 18:27:00 +00:00
|
|
|
TOOL_ACTION ACTIONS::cycleArcEditMode( "common.Interactive.cycleArcEditMode", AS_GLOBAL,
|
|
|
|
MD_CTRL + ' ', "", _( "Cycle arc editing mode" ),
|
|
|
|
_( "Switch to a different method of editing arcs" ) );
|
2020-08-29 22:59:11 +00:00
|
|
|
|
2022-09-25 15:56:41 +00:00
|
|
|
TOOL_ACTION ACTIONS::showSearch( "common.Interactive.search",
|
2022-09-14 02:59:57 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'G', LEGACY_HK_NAME( "Search" ),
|
2022-09-25 15:56:41 +00:00
|
|
|
_( "Show Search Panel" ), _( "Show/hide the search panel" ),
|
2022-09-14 02:59:57 +00:00
|
|
|
BITMAPS::find );
|
|
|
|
|
2019-05-15 22:49:48 +00:00
|
|
|
TOOL_ACTION ACTIONS::find( "common.Interactive.find",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + 'F', LEGACY_HK_NAME( "Find" ),
|
2019-05-15 22:49:48 +00:00
|
|
|
_( "Find" ), _( "Find text" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::find );
|
2019-05-15 22:49:48 +00:00
|
|
|
|
2019-05-19 21:04:04 +00:00
|
|
|
TOOL_ACTION ACTIONS::findAndReplace( "common.Interactive.findAndReplace",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + MD_ALT + 'F', LEGACY_HK_NAME( "Find and Replace" ),
|
2019-05-15 22:49:48 +00:00
|
|
|
_( "Find and Replace" ), _( "Find and replace text" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::find_replace );
|
2019-05-15 22:49:48 +00:00
|
|
|
|
2019-05-19 21:04:04 +00:00
|
|
|
TOOL_ACTION ACTIONS::findNext( "common.Interactive.findNext",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2020-10-03 17:50:57 +00:00
|
|
|
WXK_F3, LEGACY_HK_NAME( "Find Next" ),
|
2019-05-19 21:04:04 +00:00
|
|
|
_( "Find Next" ), _( "Find next match" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::find );
|
2019-05-19 21:04:04 +00:00
|
|
|
|
2023-01-26 14:36:41 +00:00
|
|
|
TOOL_ACTION ACTIONS::findPrevious( "common.Interactive.findPrevious",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + WXK_F3, LEGACY_HK_NAME( "Find Previous" ),
|
|
|
|
_( "Find Previous" ), _( "Find previous match" ),
|
|
|
|
BITMAPS::find );
|
|
|
|
|
2019-05-19 21:04:04 +00:00
|
|
|
TOOL_ACTION ACTIONS::findNextMarker( "common.Interactive.findNextMarker",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2023-01-26 14:36:41 +00:00
|
|
|
MD_CTRL + MD_SHIFT + WXK_F3, LEGACY_HK_NAME( "Find Next Marker" ),
|
2019-05-19 21:04:04 +00:00
|
|
|
_( "Find Next Marker" ), "",
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::find );
|
2019-05-19 21:04:04 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::replaceAndFindNext( "common.Interactive.replaceAndFindNext",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2019-05-19 21:04:04 +00:00
|
|
|
_( "Replace and Find Next" ), _( "Replace current match and find next" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::find_replace );
|
2019-05-19 21:04:04 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::replaceAll( "common.Interactive.replaceAll",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2019-05-19 21:04:04 +00:00
|
|
|
_( "Replace All" ), _( "Replace all matches" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::find_replace );
|
2019-05-19 21:04:04 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::updateFind( "common.Control.updateFind",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL );
|
2019-05-19 21:04:04 +00:00
|
|
|
|
2020-12-01 22:35:11 +00:00
|
|
|
|
|
|
|
// Marker Controls
|
|
|
|
TOOL_ACTION ACTIONS::prevMarker( "common.Checker.prevMarker",
|
|
|
|
AS_GLOBAL,
|
|
|
|
0, "",
|
2022-06-17 15:51:19 +00:00
|
|
|
_( "Previous Marker" ), _( "Go to previous marker in Checker window" ),
|
|
|
|
BITMAPS::marker_previous );
|
2020-12-01 22:35:11 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::nextMarker( "common.Checker.nextMarker",
|
|
|
|
AS_GLOBAL,
|
|
|
|
0, "",
|
2022-06-17 15:51:19 +00:00
|
|
|
_( "Next Marker" ), _( "Go to next marker in Checker window" ),
|
|
|
|
BITMAPS::marker_next );
|
2020-12-01 22:35:11 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::excludeMarker( "common.Checker.excludeMarker",
|
|
|
|
AS_GLOBAL,
|
|
|
|
0, "",
|
2022-06-17 15:51:19 +00:00
|
|
|
_( "Exclude Marker" ), _( "Mark current violation in Checker window as an exclusion" ),
|
|
|
|
BITMAPS::marker_exclude );
|
2020-12-01 22:35:11 +00:00
|
|
|
|
2017-02-20 18:10:20 +00:00
|
|
|
// View Controls
|
2019-04-11 01:23:34 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomRedraw( "common.Control.zoomRedraw",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
#if defined( __WXMAC__ )
|
|
|
|
MD_CTRL + 'R',
|
|
|
|
#else
|
2020-10-03 17:50:57 +00:00
|
|
|
WXK_F5,
|
2019-06-09 21:57:23 +00:00
|
|
|
#endif
|
|
|
|
LEGACY_HK_NAME( "Zoom Redraw" ),
|
2019-07-07 19:53:55 +00:00
|
|
|
_( "Refresh" ), _( "Refresh" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::refresh );
|
2019-04-11 01:23:34 +00:00
|
|
|
|
2019-06-09 21:57:23 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomFitScreen( "common.Control.zoomFitScreen",
|
|
|
|
AS_GLOBAL,
|
|
|
|
#if defined( __WXMAC__ )
|
|
|
|
MD_CTRL + '0',
|
|
|
|
#else
|
|
|
|
WXK_HOME,
|
|
|
|
#endif
|
|
|
|
LEGACY_HK_NAME( "Zoom Auto" ),
|
2019-07-07 19:53:55 +00:00
|
|
|
_( "Zoom to Fit" ), _( "Zoom to Fit" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::zoom_fit_in_page );
|
2019-06-09 21:57:23 +00:00
|
|
|
|
2020-09-11 07:51:00 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomFitObjects( "common.Control.zoomFitObjects",
|
|
|
|
AS_GLOBAL, MD_CTRL + WXK_HOME, "",
|
|
|
|
_( "Zoom to Objects" ), _( "Zoom to Objects" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::zoom_fit_to_objects );
|
2020-09-11 07:51:00 +00:00
|
|
|
|
2017-02-20 18:10:20 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomIn( "common.Control.zoomIn",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
#if defined( __WXMAC__ )
|
|
|
|
MD_CTRL + '+',
|
|
|
|
#else
|
2020-04-12 08:29:28 +00:00
|
|
|
WXK_F1,
|
2019-06-09 21:57:23 +00:00
|
|
|
#endif
|
|
|
|
LEGACY_HK_NAME( "Zoom In" ),
|
2019-07-07 19:53:55 +00:00
|
|
|
_( "Zoom In at Cursor" ), _( "Zoom In at Cursor" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::zoom_in );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomOut( "common.Control.zoomOut",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
#if defined( __WXMAC__ )
|
|
|
|
MD_CTRL + '-',
|
|
|
|
#else
|
|
|
|
WXK_F2,
|
|
|
|
#endif
|
|
|
|
LEGACY_HK_NAME( "Zoom Out" ),
|
2019-07-07 19:53:55 +00:00
|
|
|
_( "Zoom Out at Cursor" ), _( "Zoom Out at Cursor" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::zoom_out );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomInCenter( "common.Control.zoomInCenter",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2019-07-07 19:53:55 +00:00
|
|
|
_( "Zoom In" ), _( "Zoom In" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::zoom_in );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomOutCenter( "common.Control.zoomOutCenter",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
0, "",
|
2019-07-07 19:53:55 +00:00
|
|
|
_( "Zoom Out" ), _( "Zoom Out" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::zoom_out );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::zoomCenter( "common.Control.zoomCenter",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
WXK_F4, LEGACY_HK_NAME( "Zoom Center" ),
|
2022-10-03 19:47:45 +00:00
|
|
|
_( "Center on Cursor" ), _( "Center on Cursor" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::zoom_center_on_screen );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
2017-08-31 02:35:30 +00:00
|
|
|
TOOL_ACTION ACTIONS::zoomTool( "common.Control.zoomTool",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + WXK_F5, LEGACY_HK_NAME( "Zoom to Selection" ),
|
2019-07-07 19:53:55 +00:00
|
|
|
_( "Zoom to Selection" ), _( "Zoom to Selection" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::zoom_area, AF_ACTIVATE );
|
2017-08-31 02:35:30 +00:00
|
|
|
|
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
|
|
|
|
2018-09-11 15:28:57 +00:00
|
|
|
TOOL_ACTION ACTIONS::centerContents( "common.Control.centerContents",
|
2019-06-09 21:57:23 +00:00
|
|
|
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 )
|
|
|
|
.Parameter( CURSOR_UP | CURSOR_FAST_MOVE ) );
|
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 )
|
|
|
|
.Parameter( CURSOR_DOWN | CURSOR_FAST_MOVE ) );
|
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 )
|
|
|
|
.Parameter( CURSOR_LEFT | CURSOR_FAST_MOVE ) );
|
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 )
|
|
|
|
.Parameter( CURSOR_RIGHT | CURSOR_FAST_MOVE ) );
|
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
|
|
|
|
2019-07-04 20:56:21 +00:00
|
|
|
TOOL_ACTION ACTIONS::refreshPreview( "common.Control.refreshPreview",
|
2021-07-27 21:23:18 +00:00
|
|
|
AS_GLOBAL );
|
2019-07-04 20:56:21 +00:00
|
|
|
|
2021-07-27 21:23:18 +00:00
|
|
|
TOOL_ACTION ACTIONS::pinLibrary( "common.Control.pinLibrary",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Pin Library" ),
|
|
|
|
_( "Keep the library at the top of the list" ) );
|
2020-02-07 17:06:24 +00:00
|
|
|
|
2021-07-27 21:23:18 +00:00
|
|
|
TOOL_ACTION ACTIONS::unpinLibrary( "common.Control.unpinLibrary",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Unpin Library" ),
|
|
|
|
_( "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
|
|
|
|
TOOL_ACTION ACTIONS::gridFast1( "common.Control.gridFast1",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_ALT + '1', LEGACY_HK_NAME( "Switch Grid To Fast Grid1" ),
|
2019-06-26 20:08:47 +00:00
|
|
|
_( "Switch to Fast Grid 1" ), "" );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridFast2( "common.Control.gridFast2",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_ALT + '2', LEGACY_HK_NAME( "Switch Grid To Fast Grid2" ),
|
2019-06-26 20:08:47 +00:00
|
|
|
_( "Switch to Fast Grid 2" ), "" );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridNext( "common.Control.gridNext",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
'N', LEGACY_HK_NAME( "Switch Grid To Next" ),
|
2019-06-26 20:08:47 +00:00
|
|
|
_("Switch to Next Grid" ), "" );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridPrev( "common.Control.gridPrev",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL, MD_SHIFT + 'N', LEGACY_HK_NAME( "Switch Grid To Previous" ),
|
2019-06-26 20:08:47 +00:00
|
|
|
_( "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" ) )
|
|
|
|
.Tooltip( _( "Set the grid origin point" ) )
|
|
|
|
.Icon( BITMAPS::grid_select_axis )
|
|
|
|
.Parameter<VECTOR2D*>( nullptr ) );
|
2017-02-20 18:10:20 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridResetOrigin( "common.Control.gridResetOrigin",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2023-02-11 18:20:53 +00:00
|
|
|
0, LEGACY_HK_NAME( "Reset Grid Origin" ),
|
2019-06-26 20:08:47 +00:00
|
|
|
_( "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
|
|
|
|
2019-05-13 20:42:40 +00:00
|
|
|
TOOL_ACTION ACTIONS::toggleGrid( "common.Control.toggleGrid",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2022-07-26 22:50:16 +00:00
|
|
|
_( "Show Grid" ), _( "Display background grid in the edit window" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::grid );
|
2019-05-13 20:42:40 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::gridProperties( "common.Control.gridProperties",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2019-05-13 20:42:40 +00:00
|
|
|
_( "Grid Properties..." ), _( "Set grid dimensions" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::grid_select );
|
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
|
|
|
|
2020-10-04 16:14:37 +00:00
|
|
|
TOOL_ACTION ACTIONS::updateUnits( "common.Control.updateUnits",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
2021-11-23 20:51:37 +00:00
|
|
|
TOOL_ACTION ACTIONS::updatePreferences( "common.Control.updatePreferences",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
2022-09-24 03:45:00 +00:00
|
|
|
TOOL_ACTION ACTIONS::selectColumns( "common.Control.selectColumns",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Select Columns" ) );
|
|
|
|
|
2019-05-13 20:42:40 +00:00
|
|
|
TOOL_ACTION ACTIONS::toggleUnits( "common.Control.toggleUnits",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + 'U', LEGACY_HK_NAME( "Switch Units" ),
|
2020-10-03 23:34:23 +00:00
|
|
|
_( "Switch units" ), _( "Switch between imperial and metric units" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::unit_mm );
|
2019-05-13 20:42:40 +00:00
|
|
|
|
2019-05-17 11:52:38 +00:00
|
|
|
TOOL_ACTION ACTIONS::togglePolarCoords( "common.Control.togglePolarCoords",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2019-05-17 11:52:38 +00:00
|
|
|
_( "Polar Coordinates" ), _( "Switch between polar and cartesian coordinate systems" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::polar_coord );
|
2019-05-17 11:52:38 +00:00
|
|
|
|
2019-05-28 14:39:14 +00:00
|
|
|
TOOL_ACTION ACTIONS::resetLocalCoords( "common.Control.resetLocalCoords",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-09 21:57:23 +00:00
|
|
|
' ', LEGACY_HK_NAME( "Reset Local Coordinates" ),
|
2019-06-26 20:08:47 +00:00
|
|
|
_( "Reset Local Coordinates" ), "" );
|
2019-05-28 14:39:14 +00:00
|
|
|
|
2019-05-14 19:21:10 +00:00
|
|
|
TOOL_ACTION ACTIONS::toggleCursor( "common.Control.toggleCursor",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + MD_SHIFT + 'X', LEGACY_HK_NAME( "Toggle Cursor Display (Modern Toolset only)" ),
|
2019-05-14 19:21:10 +00:00
|
|
|
_( "Always Show Cursor" ), _( "Display crosshairs even in selection tool" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::cursor );
|
2019-05-14 19:21:10 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::toggleCursorStyle( "common.Control.toggleCursorStyle",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2019-05-14 19:21:10 +00:00
|
|
|
_( "Full-Window Crosshairs" ), _( "Switch display of full-window crosshairs" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::cursor_shape );
|
2019-05-14 19:21:10 +00:00
|
|
|
|
2019-06-02 18:58:09 +00:00
|
|
|
TOOL_ACTION ACTIONS::highContrastMode( "common.Control.highContrastMode",
|
2021-07-27 21:23:18 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
0, LEGACY_HK_NAME( "Toggle High Contrast Mode" ),
|
2021-10-04 12:42:08 +00:00
|
|
|
_( "Inactive Layer View Mode" ),
|
|
|
|
_( "Toggle inactive layers between normal and dimmed" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::contrast_mode );
|
2019-06-02 18:58:09 +00:00
|
|
|
|
2020-07-11 17:40:23 +00:00
|
|
|
TOOL_ACTION ACTIONS::highContrastModeCycle( "common.Control.highContrastModeCycle",
|
2021-07-27 21:23:18 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
'H', "",
|
2021-10-04 12:42:08 +00:00
|
|
|
_( "Inactive Layer View Mode (3-state)" ),
|
|
|
|
_( "Cycle inactive layers between normal, dimmed, and hidden" ),
|
2021-07-27 21:23:18 +00:00
|
|
|
BITMAPS::contrast_mode );
|
2020-07-11 17:40:23 +00:00
|
|
|
|
2022-01-17 11:55:55 +00:00
|
|
|
TOOL_ACTION ACTIONS::toggleBoundingBoxes( "common.Control.toggleBoundingBoxes",
|
|
|
|
AS_GLOBAL, 0, "",
|
2022-05-29 11:56:59 +00:00
|
|
|
_( "Draw Bounding Boxes" ), _( "Draw Bounding Boxes" ),
|
2022-01-17 11:55:55 +00:00
|
|
|
BITMAPS::gerbview_show_negative_objects );
|
|
|
|
|
2019-06-03 01:46:08 +00:00
|
|
|
TOOL_ACTION ACTIONS::selectionTool( "common.InteractiveSelection.selectionTool",
|
2020-04-12 08:29:28 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-06-04 22:12:56 +00:00
|
|
|
_( "Select item(s)" ), _( "Select item(s)" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::cursor, AF_ACTIVATE );
|
2019-06-03 01:46:08 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::measureTool( "common.InteractiveEdit.measureTool",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL,
|
2019-06-27 10:29:05 +00:00
|
|
|
// Don't be tempted to remove "Modern Toolset only". It's in the legacy property name.
|
2019-06-09 21:57:23 +00:00
|
|
|
MD_CTRL + MD_SHIFT + 'M', LEGACY_HK_NAME( "Measure Distance (Modern Toolset only)" ),
|
2019-06-03 01:46:08 +00:00
|
|
|
_( "Measure Tool" ), _( "Interactively measure distance between points" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::measurement, AF_ACTIVATE );
|
2019-06-03 01:46:08 +00:00
|
|
|
|
2019-07-15 23:44:01 +00:00
|
|
|
TOOL_ACTION ACTIONS::pickerTool( "common.InteractivePicker.pickerTool",
|
2021-07-27 21:23:18 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
"", "",
|
|
|
|
BITMAPS::INVALID_BITMAP, AF_ACTIVATE );
|
2019-07-15 23:44:01 +00:00
|
|
|
|
2022-11-07 19:10:24 +00:00
|
|
|
TOOL_ACTION ACTIONS::pickerSubTool( "common.InteractivePicker.pickerSubTool",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
2019-06-02 23:17:27 +00:00
|
|
|
TOOL_ACTION ACTIONS::show3DViewer( "common.Control.show3DViewer",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
MD_ALT + '3', LEGACY_HK_NAME( "3D Viewer" ),
|
2019-06-02 23:17:27 +00:00
|
|
|
_( "3D Viewer" ), _( "Show 3D viewer window" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
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-06-21 01:57:20 +00:00
|
|
|
TOOL_ACTION ACTIONS::showProperties( "common.Control.showProperties",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Show Properties Manager" ), _( "Show/hide the properties manager" ),
|
|
|
|
BITMAPS::tools );
|
|
|
|
|
2019-06-03 13:49:17 +00:00
|
|
|
TOOL_ACTION ACTIONS::updatePcbFromSchematic( "common.Control.updatePcbFromSchematic",
|
2019-06-09 21:57:23 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
WXK_F8, LEGACY_HK_NAME( "Update PCB from Schematic" ),
|
2020-10-27 22:53:50 +00:00
|
|
|
_( "Update PCB from Schematic..." ), _( "Update PCB with changes made to schematic" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::update_pcb_from_sch );
|
2019-06-03 13:49:17 +00:00
|
|
|
|
2020-10-27 22:53:50 +00:00
|
|
|
TOOL_ACTION ACTIONS::updateSchematicFromPcb( "common.Control.updateSchematicFromPCB",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Update Schematic from PCB..." ), _( "Update schematic with changes made to PCB" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::update_sch_from_pcb );
|
2020-01-29 16:33:57 +00:00
|
|
|
|
2021-05-29 16:09:49 +00:00
|
|
|
TOOL_ACTION ACTIONS::openPreferences( "common.SuiteControl.openPreferences",
|
|
|
|
AS_GLOBAL, MD_CTRL + ',', "",
|
|
|
|
_( "Preferences..." ), _( "Show preferences for all open tools" ),
|
|
|
|
BITMAPS::preference );
|
|
|
|
|
2019-06-09 21:57:23 +00:00
|
|
|
TOOL_ACTION ACTIONS::configurePaths( "common.SuiteControl.configurePaths",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-02 23:17:27 +00:00
|
|
|
_( "Configure Paths..." ), _( "Edit path configuration environment variables" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::path );
|
2019-06-02 23:17:27 +00:00
|
|
|
|
2019-06-09 21:57:23 +00:00
|
|
|
TOOL_ACTION ACTIONS::showSymbolLibTable( "common.SuiteControl.showSymbolLibTable",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-02 23:17:27 +00:00
|
|
|
_( "Manage Symbol Libraries..." ),
|
|
|
|
_( "Edit the global and project symbol library lists" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::library_table );
|
2019-06-02 23:17:27 +00:00
|
|
|
|
2019-06-09 21:57:23 +00:00
|
|
|
TOOL_ACTION ACTIONS::showFootprintLibTable( "common.SuiteControl.showFootprintLibTable",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-02 23:17:27 +00:00
|
|
|
_( "Manage Footprint Libraries..." ),
|
|
|
|
_( "Edit the global and project footprint library lists" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::library_table );
|
2019-06-02 23:17:27 +00:00
|
|
|
|
2019-06-09 21:57:23 +00:00
|
|
|
TOOL_ACTION ACTIONS::gettingStarted( "common.SuiteControl.gettingStarted",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Getting Started with KiCad" ),
|
|
|
|
_( "Open \"Getting Started in KiCad\" guide for beginners" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::help );
|
2019-06-09 21:57:23 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::help( "common.SuiteControl.help",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Help" ),
|
|
|
|
_( "Open product documentation in a web browser" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::help_online );
|
2019-06-09 21:57:23 +00:00
|
|
|
|
|
|
|
TOOL_ACTION ACTIONS::listHotKeys( "common.SuiteControl.listHotKeys",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + WXK_F1, LEGACY_HK_NAME( "List Hotkeys" ),
|
|
|
|
_( "List Hotkeys..." ),
|
|
|
|
_( "Displays current hotkeys table and corresponding commands" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::hotkeys );
|
2020-04-12 08:29:28 +00:00
|
|
|
|
2019-06-09 21:57:23 +00:00
|
|
|
TOOL_ACTION ACTIONS::getInvolved( "common.SuiteControl.getInvolved",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Get Involved" ),
|
|
|
|
_( "Open \"Contribute to KiCad\" in a web browser" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::info );
|
2020-04-12 08:29:28 +00:00
|
|
|
|
2021-04-08 17:21:44 +00:00
|
|
|
TOOL_ACTION ACTIONS::donate( "common.SuiteControl.donate",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Donate" ),
|
|
|
|
_( "Open \"Donate to KiCad\" in a web browser" ) );
|
|
|
|
|
2020-05-25 00:39:15 +00:00
|
|
|
TOOL_ACTION ACTIONS::reportBug( "common.SuiteControl.reportBug",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Report Bug" ),
|
|
|
|
_( "Report a problem with KiCad" ),
|
2021-03-08 02:59:07 +00:00
|
|
|
BITMAPS::bug );
|
2020-05-25 00:39:15 +00:00
|
|
|
|
2022-09-14 22:28:09 +00:00
|
|
|
TOOL_ACTION ACTIONS::ddAddLibrary( "common.Control.ddaddLibrary",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
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" );
|