2019-06-17 00:34:21 +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
|
2020-08-31 15:06:23 +00:00
|
|
|
* Copyright (C) 2019-2020 KiCad Developers, see AUTHORS.txt for contributors.
|
2019-06-17 00:34:21 +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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <bitmaps.h>
|
2019-06-17 22:02:30 +00:00
|
|
|
#include <core/typeinfo.h>
|
2019-06-18 17:56:40 +00:00
|
|
|
#include <layers_id_colors_and_visibility.h>
|
2020-10-01 23:53:47 +00:00
|
|
|
#include <sch_line_wire_bus_tool.h>
|
|
|
|
#include <tools/ee_actions.h>
|
|
|
|
#include <tool/tool_action.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
|
|
|
|
|
|
|
|
|
|
|
|
// EE_INSPECTION_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION EE_ACTIONS::runERC( "eeschema.InspectionTool.runERC",
|
|
|
|
AS_GLOBAL, 0, "",
|
2019-06-17 09:41:38 +00:00
|
|
|
_( "Electrical Rules Checker" ), _( "Perform electrical rules check" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
erc_xpm );
|
|
|
|
|
2020-11-21 20:42:27 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::checkSymbol( "eeschema.InspectionTool.checkSymbol",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Symbol Checker" ), _( "Show the symbol checker window" ),
|
|
|
|
erc_xpm );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::runSimulation( "eeschema.EditorControl.runSimulation",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Simulator..." ), _( "Simulate circuit in SPICE" ),
|
|
|
|
simulator_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::showDatasheet( "eeschema.InspectionTool.showDatasheet",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'D', LEGACY_HK_NAME( "Show Datasheet" ),
|
|
|
|
_( "Show Datasheet" ), _( "Opens the datasheet in a browser" ),
|
|
|
|
datasheet_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// EE_POINT_EDITOR
|
|
|
|
//
|
|
|
|
TOOL_ACTION EE_ACTIONS::pointEditorAddCorner( "eeschema.PointEditor.addCorner",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Create Corner" ), _( "Create a corner" ),
|
|
|
|
add_corner_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::pointEditorRemoveCorner( "eeschema.PointEditor.removeCorner",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Remove Corner" ), _( "Remove corner" ),
|
|
|
|
delete_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// EE_SELECTION_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION EE_ACTIONS::selectionActivate( "eeschema.InteractiveSelection",
|
|
|
|
AS_GLOBAL, 0, "", "", "", // No description, not shown anywhere
|
|
|
|
nullptr, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::selectNode( "eeschema.InteractiveSelection.SelectNode",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_ALT + '3', LEGACY_HK_NAME( "Select Node" ),
|
|
|
|
_( "Select Node" ), _( "Select a connection item under the cursor" ) );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::selectConnection( "eeschema.InteractiveSelection.SelectConnection",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_ALT + '4', LEGACY_HK_NAME( "Select Connection" ),
|
|
|
|
_( "Select Connection" ), _( "Select a complete connection" ) );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::selectionMenu( "eeschema.InteractiveSelection.SelectionMenu",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::addItemToSel( "eeschema.InteractiveSelection.AddItemToSel",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::addItemsToSel( "eeschema.InteractiveSelection.AddItemsToSel",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::removeItemFromSel( "eeschema.InteractiveSelection.RemoveItemFromSel",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::removeItemsFromSel( "eeschema.InteractiveSelection.RemoveItemsFromSel",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::clearSelection( "eeschema.InteractiveSelection.ClearSelection",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
|
2020-12-12 03:13:52 +00:00
|
|
|
// SYMBOL_EDITOR_CONTROL
|
2019-06-17 00:34:21 +00:00
|
|
|
//
|
2020-12-27 16:28:52 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::saveLibraryAs( "eeschema.SymbolLibraryControl.saveLibraryAs",
|
2021-02-06 14:31:04 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
MD_SHIFT + MD_CTRL + 'S', LEGACY_HK_NAME( "Save As" ),
|
|
|
|
_( "Save Library As..." ), _( "Save the current library to a new file." ) );
|
2020-12-27 16:28:52 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::newSymbol( "eeschema.SymbolLibraryControl.newSymbol",
|
2021-02-06 14:31:04 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
'N', "",
|
2019-06-17 00:34:21 +00:00
|
|
|
_( "New Symbol..." ), _( "Create a new symbol" ),
|
|
|
|
new_component_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::editSymbol( "eeschema.SymbolLibraryControl.editSymbol",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-01 23:55:07 +00:00
|
|
|
_( "Edit Symbol" ), _( "Show selected symbol on editor canvas" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
edit_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::duplicateSymbol( "eeschema.SymbolLibraryControl.duplicateSymbol",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-01 23:55:07 +00:00
|
|
|
_( "Duplicate Symbol" ), _( "Make a copy of the selected symbol" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
duplicate_xpm );
|
|
|
|
|
2020-12-27 16:28:52 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::saveSymbolAs( "eeschema.SymbolLibraryControl.saveSymbolAs",
|
2021-02-06 14:31:04 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-06 22:08:01 +00:00
|
|
|
_( "Save As..." ), _( "Save the current symbol to a different library." ),
|
|
|
|
save_as_xpm );
|
2020-12-27 16:28:52 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::deleteSymbol( "eeschema.SymbolLibraryControl.deleteSymbol",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-01 23:55:07 +00:00
|
|
|
_( "Delete Symbol" ), _( "Remove the selected symbol from its library" ),
|
2021-01-02 20:48:43 +00:00
|
|
|
trash_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::cutSymbol( "eeschema.SymbolLibraryControl.cutSymbol",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-07-26 20:16:38 +00:00
|
|
|
_( "Cut" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
cut_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::copySymbol( "eeschema.SymbolLibraryControl.copySymbol",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-07-26 20:16:38 +00:00
|
|
|
_( "Copy" ), "",
|
2019-06-17 00:34:21 +00:00
|
|
|
copy_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::pasteSymbol( "eeschema.SymbolLibraryControl.pasteSymbol",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Paste Symbol" ), "",
|
|
|
|
paste_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::importSymbol( "eeschema.SymbolLibraryControl.importSymbol",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Import Symbol..." ), _( "Import a symbol to the current library" ),
|
|
|
|
import_part_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::exportSymbol( "eeschema.SymbolLibraryControl.exportSymbol",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-07-26 20:16:38 +00:00
|
|
|
_( "Export..." ), _( "Export a symbol to a new library file" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
export_part_xpm );
|
|
|
|
|
2021-02-13 21:28:06 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::updateSymbolFields( "eeschema.SymbolLibraryControl.updateSymbolFields",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Update Symbol Fields..." ), _( "Update symbol to match changes made in parent symbol" ),
|
|
|
|
refresh_xpm );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::addSymbolToSchematic( "eeschema.SymbolLibraryControl.addSymbolToSchematic",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Symbol to Schematic" ), _( "Add Symbol to Schematic" ),
|
2020-12-17 12:10:02 +00:00
|
|
|
add_symbol_to_schematic_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::showElectricalTypes( "eeschema.SymbolLibraryControl.showElectricalTypes",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Show Pin Electrical Types" ), _( "Annotate pins with their electrical types" ),
|
|
|
|
pin_show_etype_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::showComponentTree( "eeschema.SymbolLibraryControl.showComponentTree",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Show Symbol Tree" ), "",
|
|
|
|
search_tree_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::exportSymbolView( "eeschema.SymbolLibraryControl.exportSymbolView",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Export View as PNG..." ), _( "Create PNG file from the current view" ),
|
2020-12-22 23:12:32 +00:00
|
|
|
export_png_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::exportSymbolAsSVG( "eeschema.SymbolLibraryControl.exportSymbolAsSVG",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Export Symbol as SVG..." ), _( "Create SVG file from the current symbol" ),
|
2020-12-22 22:16:27 +00:00
|
|
|
export_svg_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::toggleSyncedPinsMode( "eeschema.SymbolLibraryControl.toggleSyncedPinsMode",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Synchronized Pins Edit Mode" ),
|
|
|
|
_( "Synchronized Pins Edit Mode\n"
|
|
|
|
"When enabled propagates all changes (except pin numbers) to other units.\n"
|
|
|
|
"Enabled by default for multiunit parts with interchangeable units." ),
|
|
|
|
pin2pin_xpm );
|
|
|
|
|
|
|
|
|
2020-12-12 03:13:52 +00:00
|
|
|
// SYMBOL_EDITOR_DRAWING_TOOLS
|
2019-06-17 00:34:21 +00:00
|
|
|
//
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeSymbolPin( "eeschema.SymbolDrawing.placeSymbolPin",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'P', LEGACY_HK_NAME( "Create Pin" ),
|
|
|
|
_( "Add Pin" ), _( "Add a pin" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
pin_xpm, AF_ACTIVATE, (void*) LIB_PIN_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeSymbolText( "eeschema.SymbolDrawing.placeSymbolText",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Text" ), _( "Add a text item" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
text_xpm, AF_ACTIVATE, (void*) LIB_TEXT_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::drawSymbolRectangle( "eeschema.SymbolDrawing.drawSymbolRectangle",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Rectangle" ), _( "Add a rectangle" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_rectangle_xpm, AF_ACTIVATE, (void*) LIB_RECTANGLE_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::drawSymbolCircle( "eeschema.SymbolDrawing.drawSymbolCircle",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Circle" ), _( "Add a circle" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_circle_xpm, AF_ACTIVATE, (void*) LIB_CIRCLE_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::drawSymbolArc( "eeschema.SymbolDrawing.drawSymbolArc",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Arc" ), _( "Add an arc" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_arc_xpm, AF_ACTIVATE, (void*) LIB_ARC_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::drawSymbolLines( "eeschema.SymbolDrawing.drawSymbolLines",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Lines" ), _( "Add connected graphic lines" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_graphical_segments_xpm, AF_ACTIVATE, (void*) LIB_POLYLINE_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeSymbolAnchor( "eeschema.SymbolDrawing.placeSymbolAnchor",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Move Symbol Anchor" ), _( "Specify a new location for the symbol anchor" ),
|
|
|
|
anchor_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::finishDrawing( "eeschema.SymbolDrawing.finishDrawing",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Finish Drawing" ), _( "Finish drawing shape" ),
|
|
|
|
checked_ok_xpm, AF_NONE );
|
|
|
|
|
2020-12-12 03:13:52 +00:00
|
|
|
// SYMBOL_EDITOR_PIN_TOOL
|
2019-06-17 00:34:21 +00:00
|
|
|
//
|
|
|
|
TOOL_ACTION EE_ACTIONS::pushPinLength( "eeschema.PinEditing.pushPinLength",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Push Pin Length" ), _( "Copy pin length to other pins in symbol" ),
|
|
|
|
pin_size_to_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::pushPinNameSize( "eeschema.PinEditing.pushPinNameSize",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Push Pin Name Size" ), _( "Copy pin name size to other pins in symbol" ),
|
|
|
|
pin_size_to_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::pushPinNumSize( "eeschema.PinEditing.pushPinNumSize",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Push Pin Number Size" ), _( "Copy pin number size to other pins in symbol" ),
|
|
|
|
pin_size_to_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// SCH_DRAWING_TOOLS
|
|
|
|
//
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeSymbol( "eeschema.InteractiveDrawing.placeSymbol",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'A', LEGACY_HK_NAME( "Add Symbol" ),
|
|
|
|
_( "Add Symbol" ), _( "Add a symbol" ),
|
2020-12-12 16:26:15 +00:00
|
|
|
add_component_xpm, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placePower( "eeschema.InteractiveDrawing.placePowerPort",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'P', LEGACY_HK_NAME( "Add Power" ),
|
|
|
|
_( "Add Power" ), _( "Add a power port" ),
|
|
|
|
add_power_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeNoConnect( "eeschema.InteractiveDrawing.placeNoConnect",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'Q', LEGACY_HK_NAME( "Add No Connect Flag" ),
|
|
|
|
_( "Add No Connect Flag" ), _( "Add a no-connection flag" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
noconn_xpm, AF_ACTIVATE, (void*) SCH_NO_CONNECT_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeJunction( "eeschema.InteractiveDrawing.placeJunction",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'J', LEGACY_HK_NAME( "Add Junction" ),
|
|
|
|
_( "Add Junction" ), _( "Add a junction" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_junction_xpm, AF_ACTIVATE, (void*) SCH_JUNCTION_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeBusWireEntry( "eeschema.InteractiveDrawing.placeBusWireEntry",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'Z', LEGACY_HK_NAME( "Add Wire Entry" ),
|
|
|
|
_( "Add Wire to Bus Entry" ), _( "Add a wire entry to a bus" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_line2bus_xpm, AF_ACTIVATE, (void*) SCH_BUS_WIRE_ENTRY_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeLabel( "eeschema.InteractiveDrawing.placeLabel",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'L', LEGACY_HK_NAME( "Add Label" ),
|
|
|
|
_( "Add Label" ), _( "Add a net label" ),
|
2021-02-21 15:44:38 +00:00
|
|
|
add_label_xpm, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeHierLabel( "eeschema.InteractiveDrawing.placeHierarchicalLabel",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'H', LEGACY_HK_NAME( "Add Hierarchical Label" ),
|
2020-12-13 18:09:53 +00:00
|
|
|
_( "Add Hierarchical Label" ), _( "Add a hierarchical label" ),
|
2021-02-21 15:44:38 +00:00
|
|
|
add_hierarchical_label_xpm, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::drawSheet( "eeschema.InteractiveDrawing.drawSheet",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'S', LEGACY_HK_NAME( "Add Sheet" ),
|
|
|
|
_( "Add Sheet" ), _( "Add a hierarchical sheet" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_hierarchical_subsheet_xpm, AF_ACTIVATE, (void*) SCH_SHEET_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2021-02-21 15:44:38 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::importSingleSheetPin( "eeschema.InteractiveDrawing.importSingleSheetPin",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-21 15:44:38 +00:00
|
|
|
_( "Import Sheet Pin" ), _( "Import a hierarchical sheet pin" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_hierar_pin_xpm, AF_ACTIVATE, (void*) SCH_SHEET_PIN_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::importSheetPin( "eeschema.InteractiveDrawing.importSheetPin",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Import Sheet Pin" ), _( "Import a hierarchical sheet pin" ),
|
2021-02-21 15:44:38 +00:00
|
|
|
import_hierarchical_label_xpm, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeGlobalLabel( "eeschema.InteractiveDrawing.placeGlobalLabel",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'H', LEGACY_HK_NAME( "Add Global Label" ),
|
|
|
|
_( "Add Global Label" ), _( "Add a global label" ),
|
2021-02-21 15:44:38 +00:00
|
|
|
add_glabel_xpm, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeSchematicText( "eeschema.InteractiveDrawing.placeSchematicText",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'T', LEGACY_HK_NAME( "Add Graphic Text" ),
|
|
|
|
_( "Add Text" ), _( "Add text" ),
|
2021-02-21 15:44:38 +00:00
|
|
|
text_xpm, AF_ACTIVATE );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::placeImage( "eeschema.InteractiveDrawing.placeImage",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add Image" ), _( "Add bitmap image" ),
|
|
|
|
image_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::finishSheet( "eeschema.InteractiveDrawing.finishSheet",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Finish Sheet" ), _( "Finish drawing sheet" ),
|
|
|
|
checked_ok_xpm, AF_NONE );
|
|
|
|
|
|
|
|
|
|
|
|
// SCH_EDIT_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION EE_ACTIONS::repeatDrawItem( "eeschema.InteractiveEdit.repeatDrawItem",
|
|
|
|
AS_GLOBAL,
|
2021-03-10 13:33:35 +00:00
|
|
|
#ifdef __WXMAC__
|
|
|
|
'I', LEGACY_HK_NAME( "Repeat Last Item" ),
|
|
|
|
#else
|
2019-06-17 00:34:21 +00:00
|
|
|
WXK_INSERT, LEGACY_HK_NAME( "Repeat Last Item" ),
|
2021-03-10 13:33:35 +00:00
|
|
|
#endif
|
2019-06-17 00:34:21 +00:00
|
|
|
_( "Repeat Last Item" ), _( "Duplicates the last drawn item" ),
|
|
|
|
nullptr );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::rotateCW( "eeschema.InteractiveEdit.rotateCW",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Rotate Clockwise" ), _( "Rotates selected item(s) clockwise" ),
|
|
|
|
rotate_cw_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::rotateCCW( "eeschema.InteractiveEdit.rotateCCW",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'R', LEGACY_HK_NAME( "Rotate Item" ),
|
|
|
|
_( "Rotate" ), _( "Rotates selected item(s) counter-clockwise" ),
|
|
|
|
rotate_ccw_xpm );
|
|
|
|
|
2021-02-16 20:45:25 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::mirrorV( "eeschema.InteractiveEdit.mirrorV",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL,
|
2021-02-16 20:45:25 +00:00
|
|
|
'Y', LEGACY_HK_NAME( "Mirror X" ), // Yes, these were backwards prior to 6.0....
|
|
|
|
_( "Mirror Vertically" ), _( "Flips selected item(s) from top to bottom" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
mirror_v_xpm );
|
|
|
|
|
2021-02-16 20:45:25 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::mirrorH( "eeschema.InteractiveEdit.mirrorH",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL,
|
2021-02-16 20:45:25 +00:00
|
|
|
'X', LEGACY_HK_NAME( "Mirror Y" ), // Yes, these were backwards prior to 6.0....
|
|
|
|
_( "Mirror Horizontally" ), _( "Flips selected item(s) from left to right" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
mirror_h_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::properties( "eeschema.InteractiveEdit.properties",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'E', LEGACY_HK_NAME( "Edit Item" ),
|
|
|
|
_( "Properties..." ), _( "Displays item properties dialog" ),
|
|
|
|
edit_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::editReference( "eeschema.InteractiveEdit.editReference",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'U', LEGACY_HK_NAME( "Edit Symbol Reference" ),
|
2020-03-17 16:08:29 +00:00
|
|
|
_( "Edit Reference Designator..." ), _( "Displays reference designator dialog" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
edit_comp_ref_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::editValue( "eeschema.InteractiveEdit.editValue",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'V', LEGACY_HK_NAME( "Edit Symbol Value" ),
|
|
|
|
_( "Edit Value..." ), _( "Displays value field dialog" ),
|
|
|
|
edit_comp_value_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::editFootprint( "eeschema.InteractiveEdit.editFootprint",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'F', LEGACY_HK_NAME( "Edit Symbol Footprint" ),
|
|
|
|
_( "Edit Footprint..." ), _( "Displays footprint field dialog" ),
|
|
|
|
edit_comp_footprint_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::autoplaceFields( "eeschema.InteractiveEdit.autoplaceFields",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'O', LEGACY_HK_NAME( "Autoplace Fields" ),
|
2020-10-28 22:32:08 +00:00
|
|
|
_( "Autoplace Fields" ), _( "Runs the automatic placement algorithm on the symbol or sheet's fields" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
autoplace_fields_xpm );
|
|
|
|
|
2020-08-13 17:51:26 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::changeSymbols( "eeschema.InteractiveEdit.changeSymbols",
|
2020-09-02 13:41:50 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change Symbols..." ),
|
|
|
|
_( "Assign different symbols from the library" ),
|
2021-01-04 18:13:35 +00:00
|
|
|
exchange_xpm );
|
2020-08-13 17:51:26 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::updateSymbols( "eeschema.InteractiveEdit.updateSymbols",
|
2020-09-02 13:41:50 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Update Symbols from Library..." ),
|
|
|
|
_( "Update symbols to include any changes from the library" ),
|
2021-01-04 18:13:35 +00:00
|
|
|
refresh_xpm );
|
2020-08-13 17:51:26 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::changeSymbol( "eeschema.InteractiveEdit.changeSymbol",
|
2020-09-02 13:41:50 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change Symbol..." ),
|
|
|
|
_( "Assign a different symbol from the library" ),
|
2021-01-04 18:13:35 +00:00
|
|
|
exchange_xpm );
|
2020-08-13 17:51:26 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::updateSymbol( "eeschema.InteractiveEdit.updateSymbol",
|
2020-09-02 13:41:50 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Update Symbol..." ),
|
|
|
|
_( "Update symbol to include any changes from the library" ),
|
2021-01-04 18:13:35 +00:00
|
|
|
refresh_xpm );
|
2020-08-13 17:51:26 +00:00
|
|
|
|
2020-07-07 10:17:30 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::assignNetclass( "eeschema.InteractiveEdit.assignNetclass",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-01-15 21:07:31 +00:00
|
|
|
_( "Assign Netclass..." ), _( "Assign a netclass to the net of the selected wire" ) );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::toggleDeMorgan( "eeschema.InteractiveEdit.toggleDeMorgan",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "DeMorgan Conversion" ), _( "Switch between DeMorgan representations" ),
|
|
|
|
morgan2_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::showDeMorganStandard( "eeschema.InteractiveEdit.showDeMorganStandard",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "DeMorgan Standard" ), _( "Switch to standard DeMorgan representation" ),
|
|
|
|
morgan1_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::showDeMorganAlternate( "eeschema.InteractiveEdit.showDeMorganAlternate",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "DeMorgan Alternate" ), _( "Switch to alternate DeMorgan representation" ),
|
|
|
|
morgan2_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::toLabel( "eeschema.InteractiveEdit.toLabel",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change to Label" ), _( "Change existing item to a label" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_line_label_xpm, AF_NONE, (void*) SCH_LABEL_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::toHLabel( "eeschema.InteractiveEdit.toHLabel",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change to Hierarchical Label" ), _( "Change existing item to a hierarchical label" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_hierarchical_label_xpm, AF_NONE, (void*) SCH_HIER_LABEL_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::toGLabel( "eeschema.InteractiveEdit.toGLabel",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change to Global Label" ), _( "Change existing item to a global label" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
add_glabel_xpm, AF_NONE, (void*) SCH_GLOBAL_LABEL_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::toText( "eeschema.InteractiveEdit.toText",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Change to Text" ), _( "Change existing item to a text comment" ),
|
2019-06-17 22:02:30 +00:00
|
|
|
text_xpm, AF_NONE, (void*) SCH_TEXT_T );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::cleanupSheetPins( "eeschema.InteractiveEdit.cleanupSheetPins",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Cleanup Sheet Pins" ), _( "Delete unreferenced sheet pins" ),
|
|
|
|
nullptr );
|
|
|
|
|
2019-06-30 22:06:34 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::editTextAndGraphics( "eeschema.InteractiveEdit.editTextAndGraphics",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Edit Text & Graphics Properties..." ),
|
|
|
|
_( "Edit text and graphics properties globally across schematic" ),
|
2021-01-14 20:16:21 +00:00
|
|
|
text_xpm );
|
2019-06-30 22:06:34 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::symbolProperties( "eeschema.InteractiveEdit.symbolProperties",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Symbol Properties..." ), _( "Displays symbol properties dialog" ),
|
|
|
|
part_properties_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::pinTable( "eeschema.InteractiveEdit.pinTable",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Pin Table..." ), _( "Displays pin table for bulk editing of pins" ),
|
|
|
|
pin_table_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::breakWire( "eeschema.InteractiveEdit.breakWire",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Break Wire" ), _( "Divide a wire into segments which can be dragged independently" ),
|
|
|
|
break_line_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::breakBus( "eeschema.InteractiveEdit.breakBus",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Break Bus" ), _( "Divide a bus into segments which can be dragged independently" ),
|
|
|
|
break_line_xpm );
|
|
|
|
|
|
|
|
|
|
|
|
// SCH_EDITOR_CONTROL
|
|
|
|
//
|
|
|
|
TOOL_ACTION EE_ACTIONS::restartMove( "eeschema.EditorControl.restartMove",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::simProbe( "eeschema.Simulation.probe",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Add a simulator probe" ), "" );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::simTune( "eeschema.Simulation.tune",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Select a value to be tuned" ), "" );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::highlightNet( "eeschema.EditorControl.highlightNet",
|
2019-07-09 19:50:40 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
'`', "",
|
|
|
|
_( "Highlight Net" ), _( "Highlight net under cursor" ),
|
|
|
|
net_highlight_schematic_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::clearHighlight( "eeschema.EditorControl.clearHighlight",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::updateNetHighlighting( "eeschema.EditorControl.updateNetHighlighting",
|
|
|
|
AS_GLOBAL );
|
|
|
|
|
2019-07-26 15:28:59 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::highlightNetTool( "eeschema.EditorControl.highlightNetTool",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Highlight Nets" ), _( "Highlight wires and pins of a net" ),
|
|
|
|
net_highlight_schematic_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::editWithLibEdit( "eeschema.EditorControl.editWithSymbolEditor",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_CTRL + 'E', LEGACY_HK_NAME( "Edit with Symbol Editor" ),
|
|
|
|
_( "Edit with Symbol Editor" ), _( "Open the symbol editor to edit the symbol" ),
|
|
|
|
libedit_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::editSymbolFields( "eeschema.EditorControl.editSymbolFields",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Edit Symbol Fields..." ), _( "Bulk-edit fields of all symbols in schematic" ),
|
|
|
|
spreadsheet_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::editSymbolLibraryLinks( "eeschema.EditorControl.editSymbolLibraryLinks",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Edit Symbol Library Links..." ), _( "Edit links between schematic and library symbols" ),
|
|
|
|
edit_cmp_symb_links_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::assignFootprints( "eeschema.EditorControl.assignFootprints",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-12-11 18:42:30 +00:00
|
|
|
_( "Assign Footprints..." ), _( "Run footprint assignment tool" ),
|
2021-01-01 18:58:28 +00:00
|
|
|
icon_cvpcb_24_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::importFPAssignments( "eeschema.EditorControl.importFPAssignments",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Import Footprint Assignments..." ),
|
|
|
|
_( "Import symbol footprint assignments from .cmp file created by Pcbnew" ),
|
|
|
|
import_footprint_names_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::annotate( "eeschema.EditorControl.annotate",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Annotate Schematic..." ), _( "Fill in schematic symbol reference designators" ),
|
|
|
|
annotate_xpm );
|
|
|
|
|
2020-03-10 18:46:57 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::schematicSetup( "eeschema.EditorControl.schematicSetup",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Schematic Setup..." ),
|
|
|
|
_( "Edit schematic setup including annotation styles and electrical rules" ),
|
2020-04-23 11:24:40 +00:00
|
|
|
options_schematic_xpm );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-10-18 20:30:37 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::editPageNumber( "eeschema.EditorControl.editPageNumber",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-02-19 14:51:18 +00:00
|
|
|
_( "Edit Sheet Page Number..." ),
|
2020-10-18 20:30:37 +00:00
|
|
|
_( "Edit the page number of the current or selected sheet" ),
|
|
|
|
nullptr );
|
|
|
|
|
2020-05-12 17:12:38 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::rescueSymbols( "eeschema.EditorControl.rescueSymbols",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Rescue Symbols..." ),
|
|
|
|
_( "Find old symbols in project and rename/rescue them" ),
|
|
|
|
rescue_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::remapSymbols( "eeschema.EditorControl.remapSymbols",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-09-02 13:41:50 +00:00
|
|
|
_( "Remap Legacy Library Symbols..." ),
|
|
|
|
_( "Remap library symbol references in legacy schematics to the symbol library table" ),
|
2020-05-12 17:12:38 +00:00
|
|
|
rescue_xpm );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::showBusManager( "eeschema.EditorControl.showBusManager",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Bus Definitions..." ), _( "Manage bus definitions" ),
|
|
|
|
bus_definition_tool_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::drawSheetOnClipboard( "eeschema.EditorControl.drawSheetOnClipboard",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Export Drawing to Clipboard" ), _( "Export drawing of current sheet to clipboard" ),
|
|
|
|
copy_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::showPcbNew( "eeschema.EditorControl.showPcbNew",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-12-11 18:42:30 +00:00
|
|
|
_( "Switch to PCB Editor" ), _( "Open PCB in board editor" ),
|
2021-01-01 21:13:33 +00:00
|
|
|
icon_pcbnew_24_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::exportNetlist( "eeschema.EditorControl.exportNetlist",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Export Netlist..." ), _( "Export file containing netlist in one of several formats" ),
|
|
|
|
netlist_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::generateBOM( "eeschema.EditorControl.generateBOM",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Generate BOM..." ), _( "Generate a bill of materials for the current schematic" ),
|
2020-12-24 11:39:57 +00:00
|
|
|
post_bom_xpm );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::explicitCrossProbe( "eeschema.EditorControl.explicitCrossProbe",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-03-02 08:56:09 +00:00
|
|
|
_( "Highlight on PCB" ), _( "Highlight corresponding items in PCB editor" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
select_same_sheet_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::toggleHiddenPins( "eeschema.EditorControl.showHiddenPins",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-12-11 14:07:38 +00:00
|
|
|
_( "Show Hidden Pins" ), _( "Toggle display of hidden pins" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
hidden_pin_xpm );
|
|
|
|
|
2020-04-18 15:36:29 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::toggleHiddenFields( "eeschema.EditorControl.showHiddenFields",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-12-11 14:07:38 +00:00
|
|
|
_( "Show Hidden Fields" ), _( "Toggle display of hidden text fields" ),
|
2020-04-18 15:36:29 +00:00
|
|
|
nullptr );
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::toggleForceHV( "eeschema.EditorControl.forceHVLines",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-10-11 04:17:53 +00:00
|
|
|
_( "Force H/V Wires and Buses" ), _( "Switch H & V only mode for new wires and buses" ),
|
2019-06-17 00:34:21 +00:00
|
|
|
lines90_xpm );
|
|
|
|
|
|
|
|
|
2020-10-02 20:18:07 +00:00
|
|
|
// SCH_NAVIGATE_TOOL
|
|
|
|
//
|
|
|
|
TOOL_ACTION EE_ACTIONS::enterSheet( "eeschema.NavigateTool.enterSheet",
|
|
|
|
AS_GLOBAL, 0, "",
|
2021-03-02 08:56:09 +00:00
|
|
|
_( "Enter Sheet" ), _( "Display the selected sheet's contents in the schematic editor" ),
|
2020-10-02 20:18:07 +00:00
|
|
|
enter_sheet_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::leaveSheet( "eeschema.NavigateTool.leaveSheet",
|
|
|
|
AS_GLOBAL,
|
|
|
|
MD_ALT + WXK_BACK, LEGACY_HK_NAME( "Leave Sheet" ),
|
2021-03-02 08:56:09 +00:00
|
|
|
_( "Leave Sheet" ), _( "Display the parent sheet in the schematic editor" ),
|
2020-10-02 20:18:07 +00:00
|
|
|
leave_sheet_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::navigateHierarchy( "eeschema.NavigateTool.navigateHierarchy",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-12-11 14:07:38 +00:00
|
|
|
_( "Hierarchy Navigator" ), _( "Show schematic sheet hierarchy" ),
|
2020-10-02 20:18:07 +00:00
|
|
|
hierarchy_nav_xpm );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::hypertextCommand( "eeschema.NavigateTool.hypertextCommand",
|
|
|
|
AS_GLOBAL, 0, "",
|
2020-12-11 14:07:38 +00:00
|
|
|
_( "Navigate to page" ), _( "Navigate to page" ),
|
2020-10-02 20:18:07 +00:00
|
|
|
nullptr );
|
|
|
|
|
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
// SCH_LINE_WIRE_BUS_TOOL
|
|
|
|
//
|
2021-03-09 21:24:03 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::addNeededJunctions( "eeschema.InteractiveDrawingLineWireBus.addNeededJunctions",
|
|
|
|
AS_ACTIVE, 0, "",
|
|
|
|
_( "Add Junctions to Selection where needed" ), "",
|
|
|
|
nullptr, AF_ACTIVATE );
|
2019-06-19 03:10:21 +00:00
|
|
|
|
2020-10-01 23:53:47 +00:00
|
|
|
|
|
|
|
const DRAW_SEGMENT_EVENT_PARAMS drawWireActionParam = { LAYER_WIRE, false };
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::drawWire( "eeschema.InteractiveDrawingLineWireBus.drawWires",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'W', LEGACY_HK_NAME( "Begin Wire" ),
|
|
|
|
_( "Add Wire" ), _( "Add a wire" ),
|
2020-10-01 23:53:47 +00:00
|
|
|
add_line_xpm, AF_ACTIVATE, (void*) &drawWireActionParam );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
2020-10-01 23:53:47 +00:00
|
|
|
const DRAW_SEGMENT_EVENT_PARAMS drawBusActionParam = { LAYER_BUS, false };
|
2020-04-02 17:03:53 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::drawBus( "eeschema.InteractiveDrawingLineWireBus.drawBuses",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
'B', LEGACY_HK_NAME( "Begin Bus" ),
|
|
|
|
_( "Add Bus" ), _( "Add a bus" ),
|
2020-10-01 23:53:47 +00:00
|
|
|
add_bus_xpm, AF_ACTIVATE, (void*) &drawBusActionParam );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::unfoldBus( "eeschema.InteractiveDrawingLineWireBus.unfoldBus",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'C', LEGACY_HK_NAME( "Unfold from Bus" ),
|
|
|
|
_( "Unfold from Bus" ), _( "Break a wire out of a bus" ),
|
|
|
|
nullptr, AF_ACTIVATE );
|
|
|
|
|
2020-10-01 23:53:47 +00:00
|
|
|
const DRAW_SEGMENT_EVENT_PARAMS drawLinesActionParam = { LAYER_NOTES, false };
|
2019-06-17 00:34:21 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::drawLines( "eeschema.InteractiveDrawingLineWireBus.drawLines",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'I', LEGACY_HK_NAME( "Add Graphic PolyLine" ),
|
|
|
|
_( "Add Lines" ), _( "Add connected graphic lines" ),
|
2020-10-01 23:53:47 +00:00
|
|
|
add_dashed_line_xpm, AF_ACTIVATE, (void*) &drawLinesActionParam );
|
2019-06-17 00:34:21 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::finishLineWireOrBus( "eeschema.InteractiveDrawingLineWireBus.finish",
|
|
|
|
AS_GLOBAL,
|
|
|
|
'K', LEGACY_HK_NAME( "End Line Wire Bus" ),
|
|
|
|
_( "Finish Wire or Bus" ), _( "Complete drawing at current segment" ),
|
|
|
|
checked_ok_xpm, AF_NONE );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::finishWire( "eeschema.InteractiveDrawingLineWireBus.finishWire",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Finish Wire" ), _( "Complete wire with current segment" ),
|
|
|
|
checked_ok_xpm, AF_NONE );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::finishBus( "eeschema.InteractiveDrawingLineWireBus.finishBus",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Finish Bus" ), _( "Complete bus with current segment" ),
|
|
|
|
checked_ok_xpm, AF_NONE );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::finishLine( "eeschema.InteractiveDrawingLineWireBus.finishLine",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Finish Lines" ), _( "Complete connected lines with current segment" ),
|
|
|
|
checked_ok_xpm, AF_NONE );
|
|
|
|
|
|
|
|
|
|
|
|
// SCH_MOVE_TOOL
|
|
|
|
//
|
2019-07-01 21:01:33 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::move( "eeschema.InteractiveMove.move",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
'M', LEGACY_HK_NAME( "Move Item" ),
|
|
|
|
_( "Move" ), _( "Moves the selected item(s)" ), move_xpm, AF_ACTIVATE );
|
|
|
|
|
2019-07-01 21:01:33 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::drag( "eeschema.InteractiveMove.drag",
|
2019-06-17 00:34:21 +00:00
|
|
|
AS_GLOBAL,
|
|
|
|
'G', LEGACY_HK_NAME( "Drag Item" ),
|
|
|
|
_( "Drag" ), _( "Drags the selected item(s)" ), move_xpm, AF_ACTIVATE );
|
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::moveActivate( "eeschema.InteractiveMove",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Move Activate" ), "", move_xpm, AF_ACTIVATE );
|
|
|
|
|
2020-04-23 22:57:34 +00:00
|
|
|
TOOL_ACTION EE_ACTIONS::symbolMoveActivate( "eeschema.SymbolMoveTool",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Symbol Move Activate" ), "", move_xpm, AF_ACTIVATE );
|
2020-09-17 19:26:54 +00:00
|
|
|
|
|
|
|
TOOL_ACTION EE_ACTIONS::alignToGrid( "eeschema.AlignToGrid",
|
|
|
|
AS_GLOBAL, 0, "",
|
|
|
|
_( "Align Elements to Grid" ), "", move_xpm, AF_ACTIVATE );
|