mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 18:11:42 +00:00
Implement I18N for ACTIONs.
It's a bit of a hack because they're statically initialized and so we can't make use of the _() macro. We do still want it in the code, however, because the string harvesting is based off of it. Fixes: lp:1833000 * https://bugs.launchpad.net/kicad/+bug/1833000
This commit is contained in:
parent
418bd28347
commit
e6d5110ccf
3d-viewer
common
cvpcb
eeschema
CMakeLists.txt
tools
gerbview/tools
include/tool
kicad
pagelayout_editor
CMakeLists.txt
tools
pcbnew
autorouter
router
tools
drawing_tool.cppdrc.cppedit_tool.cppfootprint_editor_tools.cppglobal_edit_tool.cppmicrowave_tool.cpppad_tool.cpppcb_actions.cpppcb_actions.hpcb_editor_control.cpppcbnew_control.cpppcbnew_picker_tool.cppplacement_tool.cpppoint_editor.cppposition_relative_tool.cppselection_tool.cppzone_filler_tool.cpp
qa
129
3d-viewer/3d_viewer/3d_actions.cpp
Normal file
129
3d-viewer/3d_viewer/3d_actions.cpp
Normal file
@ -0,0 +1,129 @@
|
||||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2017 Jon Evans <jon@craftyjon.com>
|
||||
* Copyright (C) 2017-2019 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <tool/tool_manager.h>
|
||||
#include <bitmaps.h>
|
||||
#include "3d_actions.h"
|
||||
|
||||
|
||||
// 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
|
||||
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::pivotCenter( "3DViewer.Control.pivotCenter",
|
||||
AS_GLOBAL,
|
||||
' ', "",
|
||||
"Center pivot rotation (Middle mouse click)" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::moveLeft( "3DViewer.Control.moveLeft",
|
||||
AS_GLOBAL,
|
||||
WXK_LEFT, "",
|
||||
"Move board Left" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::moveRight( "3DViewer.Control.moveRight",
|
||||
AS_GLOBAL,
|
||||
WXK_RIGHT, "",
|
||||
"Move board Right" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::moveUp( "3DViewer.Control.moveUp",
|
||||
AS_GLOBAL,
|
||||
WXK_UP, "",
|
||||
"Move board Up" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::moveDown( "3DViewer.Control.moveDown",
|
||||
AS_GLOBAL,
|
||||
WXK_DOWN, "",
|
||||
"Move board Down" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::homeView( "3DViewer.Control.homeView",
|
||||
AS_GLOBAL,
|
||||
WXK_HOME, "",
|
||||
"Home view" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::resetView( "3DViewer.Control.resetView",
|
||||
AS_GLOBAL,
|
||||
'R', "",
|
||||
"Reset view" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewFront( "3DViewer.Control.viewFront",
|
||||
AS_GLOBAL,
|
||||
'Y', "",
|
||||
"View Front" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewBack( "3DViewer.Control.viewBack",
|
||||
AS_GLOBAL,
|
||||
MD_SHIFT + 'Y', "",
|
||||
"View Back" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewLeft( "3DViewer.Control.viewLeft",
|
||||
AS_GLOBAL,
|
||||
MD_SHIFT + 'X', "",
|
||||
"View Left" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewRight( "3DViewer.Control.viewRight",
|
||||
AS_GLOBAL,
|
||||
'X', "",
|
||||
"View Right" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewTop( "3DViewer.Control.viewTop",
|
||||
AS_GLOBAL,
|
||||
'Z', "",
|
||||
"View Top" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewBottom( "3DViewer.Control.viewBottom",
|
||||
AS_GLOBAL,
|
||||
MD_SHIFT + 'Z', "",
|
||||
"View Bottom" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::rotate45axisZ( "3DViewer.Control.rotate45axisZ",
|
||||
AS_GLOBAL,
|
||||
WXK_TAB, "",
|
||||
"Rotate 45 degrees over Z axis" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::zoomIn( "3DViewer.Control.zoomIn",
|
||||
AS_GLOBAL,
|
||||
WXK_F1, "",
|
||||
"Zoom in " );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::zoomOut( "3DViewer.Control.zoomOut",
|
||||
AS_GLOBAL,
|
||||
WXK_F2, "",
|
||||
"Zoom out" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::attributesTHT( "3DViewer.Control.attributesTHT",
|
||||
AS_GLOBAL,
|
||||
'T', "",
|
||||
"Toggle 3D models with type Through Hole" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::attributesSMD( "3DViewer.Control.attributesSMD",
|
||||
AS_GLOBAL,
|
||||
'S', "",
|
||||
"Toggle 3D models with type Surface Mount" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::attributesVirtual( "3DViewer.Control.attributesVirtual",
|
||||
AS_GLOBAL,
|
||||
'V', "",
|
||||
"Toggle 3D models with type Virtual" );
|
||||
|
||||
|
@ -37,64 +37,6 @@
|
||||
#include "help_common_strings.h"
|
||||
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::pivotCenter( "3DViewer.Control.pivotCenter", AS_GLOBAL,
|
||||
' ', "", "Center pivot rotation (Middle mouse click)" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::moveLeft( "3DViewer.Control.moveLeft", AS_GLOBAL,
|
||||
WXK_LEFT, "", "Move board Left" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::moveRight( "3DViewer.Control.moveRight", AS_GLOBAL,
|
||||
WXK_RIGHT, "", "Move board Right" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::moveUp( "3DViewer.Control.moveUp", AS_GLOBAL,
|
||||
WXK_UP, "", "Move board Up" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::moveDown( "3DViewer.Control.moveDown", AS_GLOBAL,
|
||||
WXK_DOWN, "", "Move board Down" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::homeView( "3DViewer.Control.homeView", AS_GLOBAL,
|
||||
WXK_HOME, "", "Home view" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::resetView( "3DViewer.Control.resetView", AS_GLOBAL,
|
||||
'R', "", "Reset view" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewFront( "3DViewer.Control.viewFront", AS_GLOBAL,
|
||||
'Y', "", "View Front" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewBack( "3DViewer.Control.viewBack", AS_GLOBAL,
|
||||
MD_SHIFT + 'Y', "", "View Back" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewLeft( "3DViewer.Control.viewLeft", AS_GLOBAL,
|
||||
MD_SHIFT + 'X', "", "View Left" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewRight( "3DViewer.Control.viewRight", AS_GLOBAL,
|
||||
'X', "", "View Right" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewTop( "3DViewer.Control.viewTop", AS_GLOBAL,
|
||||
'Z', "", "View Top" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::viewBottom( "3DViewer.Control.viewBottom", AS_GLOBAL,
|
||||
MD_SHIFT + 'Z', "", "View Bottom" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::rotate45axisZ( "3DViewer.Control.rotate45axisZ", AS_GLOBAL,
|
||||
WXK_TAB, "", "Rotate 45 degrees over Z axis" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::zoomIn( "3DViewer.Control.zoomIn", AS_GLOBAL,
|
||||
WXK_F1, "", "Zoom in " );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::zoomOut( "3DViewer.Control.zoomOut", AS_GLOBAL,
|
||||
WXK_F2, "", "Zoom out" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::attributesTHT( "3DViewer.Control.attributesTHT", AS_GLOBAL,
|
||||
'T', "", "Toggle 3D models with type Through Hole" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::attributesSMD( "3DViewer.Control.attributesSMD", AS_GLOBAL,
|
||||
'S', "", "Toggle 3D models with type Surface Mount" );
|
||||
|
||||
TOOL_ACTION EDA_3D_ACTIONS::attributesVirtual( "3DViewer.Control.attributesVirtual", AS_GLOBAL,
|
||||
'V', "", "Toggle 3D models with type Virtual" );
|
||||
|
||||
|
||||
void EDA_3D_VIEWER::CreateMenuBar()
|
||||
{
|
||||
wxLogTrace( m_logTrace, "EDA_3D_VIEWER::CreateMenuBar" );
|
||||
|
@ -87,6 +87,7 @@ set(3D-VIEWER_SRCS
|
||||
3d_rendering/cpostshader.cpp
|
||||
3d_rendering/cpostshader_ssao.cpp
|
||||
3d_rendering/ctrack_ball.cpp
|
||||
3d_viewer/3d_actions.cpp
|
||||
3d_viewer/3d_menubar.cpp
|
||||
3d_rendering/test_cases.cpp
|
||||
3d_rendering/trackball.cpp
|
||||
|
@ -75,6 +75,8 @@ static const wxChar traceEnvVars[] = wxT( "KIENVVARS" );
|
||||
* must be called when a language name must be displayed after translation.
|
||||
* Do not change this behavior, because m_Lang_Label is also used as key in config
|
||||
*/
|
||||
#undef _
|
||||
#define _(s) s
|
||||
LANGUAGE_DESCR LanguagesList[] =
|
||||
{
|
||||
{ wxLANGUAGE_DEFAULT, ID_LANGUAGE_DEFAULT, lang_def_xpm, _( "Default" ) },
|
||||
@ -104,6 +106,8 @@ LANGUAGE_DESCR LanguagesList[] =
|
||||
{ wxLANGUAGE_LITHUANIAN, ID_LANGUAGE_LITHUANIAN, lang_lt_xpm, _( "Lithuanian" ) },
|
||||
{ 0, 0, lang_def_xpm, "" } // Sentinel
|
||||
};
|
||||
#undef _
|
||||
#define _(s) wxGetTranslation((s))
|
||||
|
||||
|
||||
FILE_HISTORY::FILE_HISTORY( size_t aMaxFiles, int aBaseFileId ) :
|
||||
|
@ -25,7 +25,13 @@
|
||||
#include <tool/actions.h>
|
||||
#include <bitmaps.h>
|
||||
|
||||
// These members are static in class ACTIONS: Build them here:
|
||||
|
||||
// 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
|
||||
|
||||
TOOL_ACTION ACTIONS::doNew( "common.Control.new",
|
||||
AS_GLOBAL,
|
||||
|
@ -66,10 +66,27 @@ TOOL_ACTION::~TOOL_ACTION()
|
||||
}
|
||||
|
||||
|
||||
wxString TOOL_ACTION::GetLabel() const
|
||||
{
|
||||
return wxGetTranslation( m_label );
|
||||
}
|
||||
|
||||
|
||||
wxString TOOL_ACTION::GetMenuItem() const
|
||||
{
|
||||
return AddHotkeyName( wxGetTranslation( m_label ), m_hotKey, IS_HOTKEY );
|
||||
}
|
||||
|
||||
|
||||
wxString TOOL_ACTION::GetDescription() const
|
||||
{
|
||||
return wxGetTranslation( m_tooltip );
|
||||
}
|
||||
|
||||
|
||||
void TOOL_ACTION::SetHotKey( int aKeycode )
|
||||
{
|
||||
m_hotKey = aKeycode;
|
||||
m_menuItem = AddHotkeyName( m_label, m_hotKey, IS_HOTKEY );
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,6 +45,7 @@ set( CVPCB_SRCS
|
||||
menubar.cpp
|
||||
readwrite_dlgs.cpp
|
||||
toolbars_cvpcb.cpp
|
||||
tools/cvpcb_actions.cpp
|
||||
tools/cvpcb_control.cpp
|
||||
tools/cvpcb_selection_tool.cpp
|
||||
)
|
||||
|
40
cvpcb/tools/cvpcb_actions.cpp
Normal file
40
cvpcb/tools/cvpcb_actions.cpp
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2017 Jon Evans <jon@craftyjon.com>
|
||||
* Copyright (C) 2017-2019 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <tool/tool_manager.h>
|
||||
#include <bitmaps.h>
|
||||
#include "cvpcb_actions.h"
|
||||
|
||||
|
||||
// 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
|
||||
|
||||
|
||||
// CVPCB_SELECTION_TOOL
|
||||
//
|
||||
TOOL_ACTION CVPCB_ACTIONS::selectionActivate( "cvpcb.InteractiveSelection",
|
||||
AS_GLOBAL, 0, "",
|
||||
"", "", NULL, AF_ACTIVATE ); // No description, it is not supposed to be shown anywhere
|
||||
|
||||
|
@ -31,11 +31,6 @@ using namespace std::placeholders;
|
||||
#include <cvpcb_id.h>
|
||||
|
||||
|
||||
TOOL_ACTION CVPCB_ACTIONS::selectionActivate( "cvpcb.InteractiveSelection",
|
||||
AS_GLOBAL, 0, "",
|
||||
"", "", NULL, AF_ACTIVATE ); // No description, it is not supposed to be shown anywhere
|
||||
|
||||
|
||||
CVPCB_SELECTION_TOOL::CVPCB_SELECTION_TOOL() :
|
||||
TOOL_INTERACTIVE( "cvpcb.InteractiveSelection" ),
|
||||
m_frame( nullptr )
|
||||
|
@ -130,7 +130,6 @@ set( EESCHEMA_SRCS
|
||||
sch_painter.cpp
|
||||
annotate.cpp
|
||||
autoplace_fields.cpp
|
||||
tools/backanno.cpp
|
||||
bus_alias.cpp
|
||||
bus-wire-junction.cpp
|
||||
class_libentry.cpp
|
||||
@ -221,6 +220,8 @@ set( EESCHEMA_SRCS
|
||||
netlist_exporters/netlist_exporter_orcadpcb2.cpp
|
||||
netlist_exporters/netlist_exporter_pspice.cpp
|
||||
|
||||
tools/backanno.cpp
|
||||
tools/ee_actions.cpp
|
||||
tools/ee_inspection_tool.cpp
|
||||
tools/ee_picker_tool.cpp
|
||||
tools/ee_point_editor.cpp
|
||||
|
672
eeschema/tools/ee_actions.cpp
Normal file
672
eeschema/tools/ee_actions.cpp
Normal file
@ -0,0 +1,672 @@
|
||||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2019 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* 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 <tool/tool_action.h>
|
||||
#include <bitmaps.h>
|
||||
#include <tools/ee_actions.h>
|
||||
|
||||
|
||||
// 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, "",
|
||||
_( "Electrical Rules &Checker" ), _( "Perform electrical rules check" ),
|
||||
erc_xpm );
|
||||
|
||||
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 );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::showMarkerInfo( "eeschema.InspectionTool.showMarkerInfo",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Show Marker Info" ), _( "Display the marker's info in a dialog" ),
|
||||
info_xpm );
|
||||
|
||||
|
||||
// EE_PICKER
|
||||
//
|
||||
TOOL_ACTION EE_ACTIONS::pickerTool( "eeschema.InteractivePicker",
|
||||
AS_GLOBAL, 0, "", "", "", NULL, AF_ACTIVATE );
|
||||
|
||||
|
||||
// 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 );
|
||||
|
||||
|
||||
// LIB_CONTROL
|
||||
//
|
||||
TOOL_ACTION EE_ACTIONS::newSymbol( "eeschema.SymbolLibraryControl.newSymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "New Symbol..." ), _( "Create a new symbol" ),
|
||||
new_component_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::editSymbol( "eeschema.SymbolLibraryControl.editSymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Edit Symbol" ), _( "Show selected symbol on editor canvas" ),
|
||||
edit_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::duplicateSymbol( "eeschema.SymbolLibraryControl.duplicateSymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Duplicate Symbol" ), _( "Make a copy of the selected symbol" ),
|
||||
duplicate_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::deleteSymbol( "eeschema.SymbolLibraryControl.deleteSymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Delete Symbol" ), _( "Remove the selected symbol from its library" ),
|
||||
delete_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::cutSymbol( "eeschema.SymbolLibraryControl.cutSymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Cut Symbol" ), "",
|
||||
cut_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::copySymbol( "eeschema.SymbolLibraryControl.copySymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Copy Symbol" ), "",
|
||||
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, "",
|
||||
_( "Export Symbol..." ), _( "Export a symbol to a new library file" ),
|
||||
export_part_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::addSymbolToSchematic( "eeschema.SymbolLibraryControl.addSymbolToSchematic",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Symbol to Schematic" ), _( "Add Symbol to Schematic" ),
|
||||
export_xpm );
|
||||
|
||||
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" ),
|
||||
plot_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::exportSymbolAsSVG( "eeschema.SymbolLibraryControl.exportSymbolAsSVG",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Export Symbol as SVG..." ), _( "Create SVG file from the current symbol" ),
|
||||
plot_svg_xpm );
|
||||
|
||||
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 );
|
||||
|
||||
|
||||
// LIB_DRAWING_TOOLS
|
||||
//
|
||||
TOOL_ACTION EE_ACTIONS::placeSymbolPin( "eeschema.SymbolDrawing.placeSymbolPin",
|
||||
AS_GLOBAL,
|
||||
'P', LEGACY_HK_NAME( "Create Pin" ),
|
||||
_( "Add Pin" ), _( "Add a pin" ),
|
||||
pin_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeSymbolText( "eeschema.SymbolDrawing.placeSymbolText",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Text" ), _( "Add a text item" ),
|
||||
text_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawSymbolRectangle( "eeschema.SymbolDrawing.drawSymbolRectangle",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Rectangle" ), _( "Add a rectangle" ),
|
||||
add_rectangle_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawSymbolCircle( "eeschema.SymbolDrawing.drawSymbolCircle",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Circle" ), _( "Add a circle" ),
|
||||
add_circle_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawSymbolArc( "eeschema.SymbolDrawing.drawSymbolArc",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Arc" ), _( "Add an arc" ),
|
||||
add_arc_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawSymbolLines( "eeschema.SymbolDrawing.drawSymbolLines",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Lines" ), _( "Add connected graphic lines" ),
|
||||
add_graphical_segments_xpm, AF_ACTIVATE );
|
||||
|
||||
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 );
|
||||
|
||||
|
||||
// LIB_PIN_TOOL
|
||||
//
|
||||
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" ),
|
||||
add_component_xpm, AF_ACTIVATE );
|
||||
|
||||
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" ),
|
||||
noconn_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeJunction( "eeschema.InteractiveDrawing.placeJunction",
|
||||
AS_GLOBAL,
|
||||
'J', LEGACY_HK_NAME( "Add Junction" ),
|
||||
_( "Add Junction" ), _( "Add a junction" ),
|
||||
add_junction_xpm, AF_ACTIVATE );
|
||||
|
||||
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" ),
|
||||
add_line2bus_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeBusBusEntry( "eeschema.InteractiveDrawing.placeBusBusEntry",
|
||||
AS_GLOBAL,
|
||||
'/', LEGACY_HK_NAME( "Add Bus Entry" ),
|
||||
_( "Add Bus to Bus Entry" ), _( "Add a bus entry to a bus" ),
|
||||
add_bus2bus_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeLabel( "eeschema.InteractiveDrawing.placeLabel",
|
||||
AS_GLOBAL,
|
||||
'L', LEGACY_HK_NAME( "Add Label" ),
|
||||
_( "Add Label" ), _( "Add a net label" ),
|
||||
add_line_label_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeHierLabel( "eeschema.InteractiveDrawing.placeHierarchicalLabel",
|
||||
AS_GLOBAL,
|
||||
'H', LEGACY_HK_NAME( "Add Hierarchical Label" ),
|
||||
_( "Add Hierarchical Label" ), _( "Add a hierarchical sheet label" ),
|
||||
add_hierarchical_label_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawSheet( "eeschema.InteractiveDrawing.drawSheet",
|
||||
AS_GLOBAL,
|
||||
'S', LEGACY_HK_NAME( "Add Sheet" ),
|
||||
_( "Add Sheet" ), _( "Add a hierarchical sheet" ),
|
||||
add_hierarchical_subsheet_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeSheetPin( "eeschema.InteractiveDrawing.placeSheetPin",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Sheet Pin" ), _( "Add a sheet pin" ),
|
||||
add_hierar_pin_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::importSheetPin( "eeschema.InteractiveDrawing.importSheetPin",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Import Sheet Pin" ), _( "Import a hierarchical sheet pin" ),
|
||||
import_hierarchical_label_xpm, AF_ACTIVATE );
|
||||
|
||||
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" ),
|
||||
add_glabel_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeSchematicText( "eeschema.InteractiveDrawing.placeSchematicText",
|
||||
AS_GLOBAL,
|
||||
'T', LEGACY_HK_NAME( "Add Graphic Text" ),
|
||||
_( "Add Text" ), _( "Add text" ),
|
||||
text_xpm, AF_ACTIVATE );
|
||||
|
||||
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,
|
||||
WXK_INSERT, LEGACY_HK_NAME( "Repeat Last Item" ),
|
||||
_( "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 );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::mirrorX( "eeschema.InteractiveEdit.mirrorX",
|
||||
AS_GLOBAL,
|
||||
'X', LEGACY_HK_NAME( "Mirror X" ),
|
||||
_( "Mirror Around Horizontal Axis" ), _( "Flips selected item(s) from top to bottom" ),
|
||||
mirror_v_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::mirrorY( "eeschema.InteractiveEdit.mirrorY",
|
||||
AS_GLOBAL,
|
||||
'Y', LEGACY_HK_NAME( "Mirror Y" ),
|
||||
_( "Mirror Around Vertical Axis" ), _( "Flips selected item(s) from left to right" ),
|
||||
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" ),
|
||||
_( "Edit Reference..." ), _( "Displays reference field dialog" ),
|
||||
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" ),
|
||||
_( "Autoplace Fields" ), _( "Runs the automatic placement algorithm on the symbol's fields" ),
|
||||
autoplace_fields_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::updateFieldsFromLibrary( "eeschema.InteractiveEdit.updateFieldsFromLibrary",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Update Fields from Library..." ), _( "Sets symbol fields to original library values" ),
|
||||
update_fields_xpm );
|
||||
|
||||
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::toShapeSlash( "eeschema.InteractiveEdit.toShapeSlash",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Set Bus Entry Shape /" ), _( "Change the bus entry shape to /" ),
|
||||
change_entry_orient_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toShapeBackslash( "eeschema.InteractiveEdit.toShapeBackslash",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Set Bus Entry Shape \\" ), _( "Change the bus entry shape to \\" ),
|
||||
change_entry_orient_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toLabel( "eeschema.InteractiveEdit.toLabel",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Change to Label" ), _( "Change existing item to a label" ),
|
||||
add_line_label_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toHLabel( "eeschema.InteractiveEdit.toHLabel",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Change to Hierarchical Label" ), _( "Change existing item to a hierarchical label" ),
|
||||
add_hierarchical_label_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toGLabel( "eeschema.InteractiveEdit.toGLabel",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Change to Global Label" ), _( "Change existing item to a global label" ),
|
||||
add_glabel_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toText( "eeschema.InteractiveEdit.toText",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Change to Text" ), _( "Change existing item to a text comment" ),
|
||||
text_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::cleanupSheetPins( "eeschema.InteractiveEdit.cleanupSheetPins",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Cleanup Sheet Pins" ), _( "Delete unreferenced sheet pins" ),
|
||||
nullptr );
|
||||
|
||||
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::deleteItemCursor( "eeschema.InteractiveEdit.deleteTool",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Delete Tool" ), _( "Delete clicked items" ),
|
||||
delete_xpm, AF_ACTIVATE );
|
||||
|
||||
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::refreshPreview( "eeschema.EditorControl.refreshPreview",
|
||||
AS_GLOBAL );
|
||||
|
||||
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",
|
||||
AS_GLOBAL );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::clearHighlight( "eeschema.EditorControl.clearHighlight",
|
||||
AS_GLOBAL );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::updateNetHighlighting( "eeschema.EditorControl.updateNetHighlighting",
|
||||
AS_GLOBAL );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::highlightNetCursor( "eeschema.EditorControl.highlightNetTool",
|
||||
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, "",
|
||||
_( "Assign Footprints..." ), _( "Run Cvpcb" ),
|
||||
cvpcb_xpm );
|
||||
|
||||
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 );
|
||||
|
||||
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, "",
|
||||
_( "Open PCB Editor" ), _( "Run Pcbnew" ),
|
||||
pcbnew_xpm );
|
||||
|
||||
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" ),
|
||||
bom_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::enterSheet( "eeschema.EditorControl.enterSheet",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Enter Sheet" ), _( "Display the selected sheet's contents in the Eeschema window" ),
|
||||
enter_sheet_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::leaveSheet( "eeschema.EditorControl.leaveSheet",
|
||||
AS_GLOBAL,
|
||||
MD_ALT + WXK_BACK, LEGACY_HK_NAME( "Leave Sheet" ),
|
||||
_( "Leave Sheet" ), _( "Display the parent sheet in the Eeschema window" ),
|
||||
leave_sheet_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::navigateHierarchy( "eeschema.EditorControl.navigateHierarchy",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Show Hierarchy Navigator" ), "",
|
||||
hierarchy_nav_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::explicitCrossProbe( "eeschema.EditorControl.explicitCrossProbe",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Highlight on PCB" ), _( "Highlight corresponding items in PCBNew" ),
|
||||
select_same_sheet_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toggleHiddenPins( "eeschema.EditorControl.showHiddenPins",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Show Hidden Pins" ), "",
|
||||
hidden_pin_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toggleForceHV( "eeschema.EditorControl.forceHVLines",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Force H/V Wires and Busses" ), "",
|
||||
lines90_xpm );
|
||||
|
||||
|
||||
// SCH_LINE_WIRE_BUS_TOOL
|
||||
//
|
||||
TOOL_ACTION EE_ACTIONS::drawWire( "eeschema.InteractiveDrawingLineWireBus.drawWires",
|
||||
AS_GLOBAL,
|
||||
'W', LEGACY_HK_NAME( "Begin Wire" ),
|
||||
_( "Add Wire" ), _( "Add a wire" ),
|
||||
add_line_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawBus( "eeschema.InteractiveDrawingLineWireBus.drawBusses",
|
||||
AS_GLOBAL,
|
||||
'B', LEGACY_HK_NAME( "Begin Bus" ),
|
||||
_( "Add Bus" ), _( "Add a bus" ),
|
||||
add_bus_xpm, AF_ACTIVATE );
|
||||
|
||||
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 );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawLines( "eeschema.InteractiveDrawingLineWireBus.drawLines",
|
||||
AS_GLOBAL,
|
||||
'I', LEGACY_HK_NAME( "Add Graphic PolyLine" ),
|
||||
_( "Add Lines" ), _( "Add connected graphic lines" ),
|
||||
add_dashed_line_xpm, AF_ACTIVATE );
|
||||
|
||||
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
|
||||
//
|
||||
TOOL_ACTION EE_ACTIONS::move( "eeschema.InteractiveEdit.move",
|
||||
AS_GLOBAL,
|
||||
'M', LEGACY_HK_NAME( "Move Item" ),
|
||||
_( "Move" ), _( "Moves the selected item(s)" ), move_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drag( "eeschema.InteractiveEdit.drag",
|
||||
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 );
|
||||
|
||||
|
@ -45,27 +45,6 @@
|
||||
#include <project.h>
|
||||
#include <dialogs/dialog_display_info_HTML_base.h>
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::runERC( "eeschema.InspectionTool.runERC",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Electrical Rules &Checker" ), _( "Perform electrical rules check" ),
|
||||
erc_xpm );
|
||||
|
||||
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 );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::showMarkerInfo( "eeschema.InspectionTool.showMarkerInfo",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Show Marker Info" ), _( "Display the marker's info in a dialog" ),
|
||||
info_xpm );
|
||||
|
||||
|
||||
EE_INSPECTION_TOOL::EE_INSPECTION_TOOL()
|
||||
: EE_TOOL_BASE<SCH_BASE_FRAME>( "eeschema.InspectionTool" )
|
||||
|
@ -27,9 +27,6 @@
|
||||
#include <tool/tool_manager.h>
|
||||
#include <sch_base_frame.h>
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::pickerTool( "eeschema.InteractivePicker",
|
||||
AS_GLOBAL, 0, "", "", "", NULL, AF_ACTIVATE );
|
||||
|
||||
|
||||
EE_PICKER_TOOL::EE_PICKER_TOOL()
|
||||
: EE_TOOL_BASE<SCH_BASE_FRAME>( "eeschema.InteractivePicker" )
|
||||
|
@ -46,17 +46,6 @@ using namespace std::placeholders;
|
||||
#include <eeschema_id.h>
|
||||
|
||||
|
||||
// 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 );
|
||||
|
||||
|
||||
// Few constants to avoid using bare numbers for point indices
|
||||
enum ARC_POINTS
|
||||
|
@ -46,39 +46,6 @@
|
||||
#include <eeschema_id.h>
|
||||
#include <menus_helpers.h>
|
||||
|
||||
// Selection tool actions
|
||||
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 );
|
||||
|
||||
|
||||
SELECTION_CONDITION EE_CONDITIONS::Empty = [] (const SELECTION& aSelection )
|
||||
{
|
||||
|
@ -35,84 +35,6 @@
|
||||
#include <project.h>
|
||||
#include <confirm.h>
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::newSymbol( "eeschema.SymbolLibraryControl.newSymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "New Symbol..." ), _( "Create a new symbol" ),
|
||||
new_component_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::editSymbol( "eeschema.SymbolLibraryControl.editSymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Edit Symbol" ), _( "Show selected symbol on editor canvas" ),
|
||||
edit_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::duplicateSymbol( "eeschema.SymbolLibraryControl.duplicateSymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Duplicate Symbol" ), _( "Make a copy of the selected symbol" ),
|
||||
duplicate_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::deleteSymbol( "eeschema.SymbolLibraryControl.deleteSymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Delete Symbol" ), _( "Remove the selected symbol from its library" ),
|
||||
delete_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::cutSymbol( "eeschema.SymbolLibraryControl.cutSymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Cut Symbol" ), "",
|
||||
cut_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::copySymbol( "eeschema.SymbolLibraryControl.copySymbol",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Copy Symbol" ), "",
|
||||
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, "",
|
||||
_( "Export Symbol..." ), _( "Export a symbol to a new library file" ),
|
||||
export_part_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::addSymbolToSchematic( "eeschema.SymbolLibraryControl.addSymbolToSchematic",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Symbol to Schematic" ), _( "Add Symbol to Schematic" ),
|
||||
export_xpm );
|
||||
|
||||
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" ),
|
||||
plot_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::exportSymbolAsSVG( "eeschema.SymbolLibraryControl.exportSymbolAsSVG",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Export Symbol as SVG..." ), _( "Create SVG file from the current symbol" ),
|
||||
plot_svg_xpm );
|
||||
|
||||
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 );
|
||||
|
||||
|
||||
bool LIB_CONTROL::Init()
|
||||
{
|
||||
|
@ -41,48 +41,6 @@
|
||||
#include <lib_polyline.h>
|
||||
#include <lib_rectangle.h>
|
||||
|
||||
// Drawing tool actions
|
||||
TOOL_ACTION EE_ACTIONS::placeSymbolPin( "eeschema.SymbolDrawing.placeSymbolPin",
|
||||
AS_GLOBAL,
|
||||
'P', LEGACY_HK_NAME( "Create Pin" ),
|
||||
_( "Add Pin" ), _( "Add a pin" ),
|
||||
pin_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeSymbolText( "eeschema.SymbolDrawing.placeSymbolText",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Text" ), _( "Add a text item" ),
|
||||
text_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawSymbolRectangle( "eeschema.SymbolDrawing.drawSymbolRectangle",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Rectangle" ), _( "Add a rectangle" ),
|
||||
add_rectangle_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawSymbolCircle( "eeschema.SymbolDrawing.drawSymbolCircle",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Circle" ), _( "Add a circle" ),
|
||||
add_circle_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawSymbolArc( "eeschema.SymbolDrawing.drawSymbolArc",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Arc" ), _( "Add an arc" ),
|
||||
add_arc_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawSymbolLines( "eeschema.SymbolDrawing.drawSymbolLines",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Lines" ), _( "Add connected graphic lines" ),
|
||||
add_graphical_segments_xpm, AF_ACTIVATE );
|
||||
|
||||
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 );
|
||||
|
||||
|
||||
static void* g_lastPinWeakPtr;
|
||||
|
||||
|
@ -33,22 +33,6 @@
|
||||
#include "lib_pin_tool.h"
|
||||
|
||||
|
||||
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 );
|
||||
|
||||
|
||||
static ELECTRICAL_PINTYPE g_LastPinType = PIN_INPUT;
|
||||
static int g_LastPinOrient = PIN_RIGHT;
|
||||
static GRAPHIC_PINSHAPE g_LastPinShape = PINSHAPE_LINE;
|
||||
|
@ -46,94 +46,6 @@
|
||||
#include <class_library.h>
|
||||
|
||||
|
||||
// Drawing tool actions
|
||||
TOOL_ACTION EE_ACTIONS::placeSymbol( "eeschema.InteractiveDrawing.placeSymbol",
|
||||
AS_GLOBAL,
|
||||
'A', LEGACY_HK_NAME( "Add Symbol" ),
|
||||
_( "Add Symbol" ), _( "Add a symbol" ),
|
||||
add_component_xpm, AF_ACTIVATE );
|
||||
|
||||
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" ),
|
||||
noconn_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeJunction( "eeschema.InteractiveDrawing.placeJunction",
|
||||
AS_GLOBAL,
|
||||
'J', LEGACY_HK_NAME( "Add Junction" ),
|
||||
_( "Add Junction" ), _( "Add a junction" ),
|
||||
add_junction_xpm, AF_ACTIVATE );
|
||||
|
||||
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" ),
|
||||
add_line2bus_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeBusBusEntry( "eeschema.InteractiveDrawing.placeBusBusEntry",
|
||||
AS_GLOBAL,
|
||||
'/', LEGACY_HK_NAME( "Add Bus Entry" ),
|
||||
_( "Add Bus to Bus Entry" ), _( "Add a bus entry to a bus" ),
|
||||
add_bus2bus_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeLabel( "eeschema.InteractiveDrawing.placeLabel",
|
||||
AS_GLOBAL,
|
||||
'L', LEGACY_HK_NAME( "Add Label" ),
|
||||
_( "Add Label" ), _( "Add a net label" ),
|
||||
add_line_label_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeHierLabel( "eeschema.InteractiveDrawing.placeHierarchicalLabel",
|
||||
AS_GLOBAL,
|
||||
'H', LEGACY_HK_NAME( "Add Hierarchical Label" ),
|
||||
_( "Add Hierarchical Label" ), _( "Add a hierarchical sheet label" ),
|
||||
add_hierarchical_label_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawSheet( "eeschema.InteractiveDrawing.drawSheet",
|
||||
AS_GLOBAL,
|
||||
'S', LEGACY_HK_NAME( "Add Sheet" ),
|
||||
_( "Add Sheet" ), _( "Add a hierarchical sheet" ),
|
||||
add_hierarchical_subsheet_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeSheetPin( "eeschema.InteractiveDrawing.placeSheetPin",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Add Sheet Pin" ), _( "Add a sheet pin" ),
|
||||
add_hierar_pin_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::importSheetPin( "eeschema.InteractiveDrawing.importSheetPin",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Import Sheet Pin" ), _( "Import a hierarchical sheet pin" ),
|
||||
import_hierarchical_label_xpm, AF_ACTIVATE );
|
||||
|
||||
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" ),
|
||||
add_glabel_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::placeSchematicText( "eeschema.InteractiveDrawing.placeSchematicText",
|
||||
AS_GLOBAL,
|
||||
'T', LEGACY_HK_NAME( "Add Graphic Text" ),
|
||||
_( "Add Text" ), _( "Add text" ),
|
||||
text_xpm, AF_ACTIVATE );
|
||||
|
||||
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_DRAWING_TOOLS::SCH_DRAWING_TOOLS() :
|
||||
EE_TOOL_BASE<SCH_EDIT_FRAME>( "eeschema.InteractiveDrawing" )
|
||||
{
|
||||
|
@ -49,146 +49,6 @@
|
||||
#include "sch_drawing_tools.h"
|
||||
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::repeatDrawItem( "eeschema.InteractiveEdit.repeatDrawItem",
|
||||
AS_GLOBAL,
|
||||
WXK_INSERT, LEGACY_HK_NAME( "Repeat Last Item" ),
|
||||
_( "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 );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::mirrorX( "eeschema.InteractiveEdit.mirrorX",
|
||||
AS_GLOBAL,
|
||||
'X', LEGACY_HK_NAME( "Mirror X" ),
|
||||
_( "Mirror Around Horizontal Axis" ), _( "Flips selected item(s) from top to bottom" ),
|
||||
mirror_v_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::mirrorY( "eeschema.InteractiveEdit.mirrorY",
|
||||
AS_GLOBAL,
|
||||
'Y', LEGACY_HK_NAME( "Mirror Y" ),
|
||||
_( "Mirror Around Vertical Axis" ), _( "Flips selected item(s) from left to right" ),
|
||||
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" ),
|
||||
_( "Edit Reference..." ), _( "Displays reference field dialog" ),
|
||||
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" ),
|
||||
_( "Autoplace Fields" ), _( "Runs the automatic placement algorithm on the symbol's fields" ),
|
||||
autoplace_fields_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::updateFieldsFromLibrary( "eeschema.InteractiveEdit.updateFieldsFromLibrary",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Update Fields from Library..." ), _( "Sets symbol fields to original library values" ),
|
||||
update_fields_xpm );
|
||||
|
||||
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::toShapeSlash( "eeschema.InteractiveEdit.toShapeSlash",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Set Bus Entry Shape /" ), _( "Change the bus entry shape to /" ),
|
||||
change_entry_orient_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toShapeBackslash( "eeschema.InteractiveEdit.toShapeBackslash",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Set Bus Entry Shape \\" ), _( "Change the bus entry shape to \\" ),
|
||||
change_entry_orient_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toLabel( "eeschema.InteractiveEdit.toLabel",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Change to Label" ), _( "Change existing item to a label" ),
|
||||
add_line_label_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toHLabel( "eeschema.InteractiveEdit.toHLabel",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Change to Hierarchical Label" ), _( "Change existing item to a hierarchical label" ),
|
||||
add_hierarchical_label_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toGLabel( "eeschema.InteractiveEdit.toGLabel",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Change to Global Label" ), _( "Change existing item to a global label" ),
|
||||
add_glabel_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toText( "eeschema.InteractiveEdit.toText",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Change to Text" ), _( "Change existing item to a text comment" ),
|
||||
text_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::cleanupSheetPins( "eeschema.InteractiveEdit.cleanupSheetPins",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Cleanup Sheet Pins" ), _( "Delete unreferenced sheet pins" ),
|
||||
nullptr );
|
||||
|
||||
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::deleteItemCursor( "eeschema.InteractiveEdit.deleteTool",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Delete Tool" ), _( "Delete clicked items" ),
|
||||
delete_xpm, AF_ACTIVATE );
|
||||
|
||||
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 );
|
||||
|
||||
|
||||
char g_lastBusEntryShape = '/';
|
||||
|
||||
|
||||
|
@ -51,122 +51,6 @@
|
||||
#include <dialogs/dialog_fields_editor_global.h>
|
||||
#include <invoke_sch_dialog.h>
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::refreshPreview( "eeschema.EditorControl.refreshPreview",
|
||||
AS_GLOBAL );
|
||||
|
||||
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",
|
||||
AS_GLOBAL );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::clearHighlight( "eeschema.EditorControl.clearHighlight",
|
||||
AS_GLOBAL );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::updateNetHighlighting( "eeschema.EditorControl.updateNetHighlighting",
|
||||
AS_GLOBAL );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::highlightNetCursor( "eeschema.EditorControl.highlightNetTool",
|
||||
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, "",
|
||||
_( "Assign Footprints..." ), _( "Run Cvpcb" ),
|
||||
cvpcb_xpm );
|
||||
|
||||
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 );
|
||||
|
||||
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, "",
|
||||
_( "Open PCB Editor" ), _( "Run Pcbnew" ),
|
||||
pcbnew_xpm );
|
||||
|
||||
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" ),
|
||||
bom_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::enterSheet( "eeschema.EditorControl.enterSheet",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Enter Sheet" ), _( "Display the selected sheet's contents in the Eeschema window" ),
|
||||
enter_sheet_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::leaveSheet( "eeschema.EditorControl.leaveSheet",
|
||||
AS_GLOBAL,
|
||||
MD_ALT + WXK_BACK, LEGACY_HK_NAME( "Leave Sheet" ),
|
||||
_( "Leave Sheet" ), _( "Display the parent sheet in the Eeschema window" ),
|
||||
leave_sheet_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::navigateHierarchy( "eeschema.EditorControl.navigateHierarchy",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Show Hierarchy Navigator" ), "",
|
||||
hierarchy_nav_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::explicitCrossProbe( "eeschema.EditorControl.explicitCrossProbe",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Highlight on PCB" ), _( "Highlight corresponding items in PCBNew" ),
|
||||
select_same_sheet_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toggleHiddenPins( "eeschema.EditorControl.showHiddenPins",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Show Hidden Pins" ), "",
|
||||
hidden_pin_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::toggleForceHV( "eeschema.EditorControl.forceHVLines",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Force H/V Wires and Busses" ), "",
|
||||
lines90_xpm );
|
||||
|
||||
|
||||
int SCH_EDITOR_CONTROL::New( const TOOL_EVENT& aEvent )
|
||||
{
|
||||
|
@ -42,51 +42,6 @@
|
||||
#include <sch_sheet.h>
|
||||
#include <advanced_config.h>
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawWire( "eeschema.InteractiveDrawingLineWireBus.drawWires",
|
||||
AS_GLOBAL,
|
||||
'W', LEGACY_HK_NAME( "Begin Wire" ),
|
||||
_( "Add Wire" ), _( "Add a wire" ),
|
||||
add_line_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawBus( "eeschema.InteractiveDrawingLineWireBus.drawBusses",
|
||||
AS_GLOBAL,
|
||||
'B', LEGACY_HK_NAME( "Begin Bus" ),
|
||||
_( "Add Bus" ), _( "Add a bus" ),
|
||||
add_bus_xpm, AF_ACTIVATE );
|
||||
|
||||
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 );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drawLines( "eeschema.InteractiveDrawingLineWireBus.drawLines",
|
||||
AS_GLOBAL,
|
||||
'I', LEGACY_HK_NAME( "Add Graphic PolyLine" ),
|
||||
_( "Add Lines" ), _( "Add connected graphic lines" ),
|
||||
add_dashed_line_xpm, AF_ACTIVATE );
|
||||
|
||||
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 );
|
||||
|
||||
|
||||
class BUS_UNFOLD_MENU : public ACTION_MENU
|
||||
{
|
||||
|
@ -37,21 +37,6 @@
|
||||
#include "sch_move_tool.h"
|
||||
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::move( "eeschema.InteractiveEdit.move",
|
||||
AS_GLOBAL,
|
||||
'M', LEGACY_HK_NAME( "Move Item" ),
|
||||
_( "Move" ), _( "Moves the selected item(s)" ), move_xpm, AF_ACTIVATE );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::drag( "eeschema.InteractiveEdit.drag",
|
||||
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 );
|
||||
|
||||
|
||||
// For adding to or removing from selections
|
||||
#define QUIET_MODE true
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#include <tool/tool_manager.h>
|
||||
#include <gerbview_id.h>
|
||||
#include <bitmaps.h>
|
||||
#include "gerbview_actions.h"
|
||||
|
||||
|
||||
@ -42,3 +43,104 @@ OPT<TOOL_EVENT> GERBVIEW_ACTIONS::TranslateLegacyId( int aId )
|
||||
|
||||
return OPT<TOOL_EVENT>();
|
||||
}
|
||||
|
||||
|
||||
// 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
|
||||
|
||||
|
||||
// GERBVIEW_CONTROL
|
||||
//
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::layerChanged( "gerbview.Control.layerChanged",
|
||||
AS_GLOBAL, 0, "", "", "",
|
||||
nullptr, AF_NOTIFY );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::highlightClear( "gerbview.Control.highlightClear",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Clear Highlight" ), "",
|
||||
highlight_remove_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::highlightNet( "gerbview.Control.highlightNet",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Highlight Net" ), "",
|
||||
general_ratsnest_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::highlightComponent( "gerbview.Control.highlightComponent",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Highlight Component" ), "",
|
||||
file_footprint_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::highlightAttribute( "gerbview.Control.highlightAttribute",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Highlight Attribute" ), "",
|
||||
flag_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::layerNext( "gerbview.Control.layerNext",
|
||||
AS_GLOBAL,
|
||||
'+', LEGACY_HK_NAME( "Switch to Next Layer" ),
|
||||
"", "" );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::layerPrev( "gerbview.Control.layerPrev",
|
||||
AS_GLOBAL,
|
||||
'-', LEGACY_HK_NAME( "Switch to Previous Layer" ),
|
||||
"", "" );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::linesDisplayOutlines( "gerbview.Control.linesDisplayOutlines",
|
||||
AS_GLOBAL,
|
||||
'L', LEGACY_HK_NAME( "Gbr Lines Display Mode" ),
|
||||
_( "Sketch Lines" ), _( "Show lines in outline mode" ),
|
||||
showtrack_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::flashedDisplayOutlines( "gerbview.Control.flashedDisplayOutlines",
|
||||
AS_GLOBAL,
|
||||
'F', LEGACY_HK_NAME( "Gbr Flashed Display Mode" ),
|
||||
_( "Sketch Flashed Items" ), _( "Show flashed items in outline mode" ),
|
||||
pad_sketch_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::polygonsDisplayOutlines( "gerbview.Control.polygonsDisplayOutlines",
|
||||
AS_GLOBAL,
|
||||
'P', LEGACY_HK_NAME( "Gbr Polygons Display Mode" ),
|
||||
_( "Sketch Polygons" ), _( "Show polygons in outline mode" ),
|
||||
opt_show_polygon_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::negativeObjectDisplay( "gerbview.Control.negativeObjectDisplay",
|
||||
AS_GLOBAL,
|
||||
'N', LEGACY_HK_NAME( "Gbr Negative Obj Display Mode" ),
|
||||
_( "Ghost Negative Objects" ), _( "Show negative objects in ghost color" ),
|
||||
gerbview_show_negative_objects_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::dcodeDisplay( "gerbview.Control.dcodeDisplay",
|
||||
AS_GLOBAL,
|
||||
'D', LEGACY_HK_NAME( "DCodes Display Mode" ),
|
||||
_( "Show DCodes" ), _( "Show dcode number" ),
|
||||
show_dcodenumber_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::toggleDiffMode( "gerbview.Control.toggleDiffMode",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Show in Differential Mode" ), _( "Show layers in diff (compare) mode" ),
|
||||
gbr_select_mode2_xpm );
|
||||
|
||||
|
||||
// GERBVIEW_SELECTION_TOOL
|
||||
//
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::selectionActivate( "gerbview.InteractiveSelection",
|
||||
AS_GLOBAL, 0, "",
|
||||
"", "", NULL, AF_ACTIVATE ); // No description, it is not supposed to be shown anywhere
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::selectionCursor( "gerbview.InteractiveSelection.Cursor",
|
||||
AS_GLOBAL );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::selectItem( "gerbview.InteractiveSelection.SelectItem",
|
||||
AS_GLOBAL );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::unselectItem( "gerbview.InteractiveSelection.UnselectItem",
|
||||
AS_GLOBAL );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::selectionClear( "gerbview.InteractiveSelection.Clear",
|
||||
AS_GLOBAL );
|
||||
|
||||
|
||||
|
@ -27,74 +27,6 @@
|
||||
#include "gerbview_control.h"
|
||||
#include "gerbview_selection_tool.h"
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::layerChanged( "gerbview.Control.layerChanged",
|
||||
AS_GLOBAL, 0, "", "", "",
|
||||
nullptr, AF_NOTIFY );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::highlightClear( "gerbview.Control.highlightClear",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Clear Highlight" ), "",
|
||||
highlight_remove_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::highlightNet( "gerbview.Control.highlightNet",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Highlight Net" ), "",
|
||||
general_ratsnest_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::highlightComponent( "gerbview.Control.highlightComponent",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Highlight Component" ), "",
|
||||
file_footprint_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::highlightAttribute( "gerbview.Control.highlightAttribute",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Highlight Attribute" ), "",
|
||||
flag_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::layerNext( "gerbview.Control.layerNext",
|
||||
AS_GLOBAL,
|
||||
'+', LEGACY_HK_NAME( "Switch to Next Layer" ),
|
||||
"", "" );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::layerPrev( "gerbview.Control.layerPrev",
|
||||
AS_GLOBAL,
|
||||
'-', LEGACY_HK_NAME( "Switch to Previous Layer" ),
|
||||
"", "" );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::linesDisplayOutlines( "gerbview.Control.linesDisplayOutlines",
|
||||
AS_GLOBAL,
|
||||
'L', LEGACY_HK_NAME( "Gbr Lines Display Mode" ),
|
||||
_( "Sketch Lines" ), _( "Show lines in outline mode" ),
|
||||
showtrack_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::flashedDisplayOutlines( "gerbview.Control.flashedDisplayOutlines",
|
||||
AS_GLOBAL,
|
||||
'F', LEGACY_HK_NAME( "Gbr Flashed Display Mode" ),
|
||||
_( "Sketch Flashed Items" ), _( "Show flashed items in outline mode" ),
|
||||
pad_sketch_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::polygonsDisplayOutlines( "gerbview.Control.polygonsDisplayOutlines",
|
||||
AS_GLOBAL,
|
||||
'P', LEGACY_HK_NAME( "Gbr Polygons Display Mode" ),
|
||||
_( "Sketch Polygons" ), _( "Show polygons in outline mode" ),
|
||||
opt_show_polygon_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::negativeObjectDisplay( "gerbview.Control.negativeObjectDisplay",
|
||||
AS_GLOBAL,
|
||||
'N', LEGACY_HK_NAME( "Gbr Negative Obj Display Mode" ),
|
||||
_( "Ghost Negative Objects" ), _( "Show negative objects in ghost color" ),
|
||||
gerbview_show_negative_objects_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::dcodeDisplay( "gerbview.Control.dcodeDisplay",
|
||||
AS_GLOBAL,
|
||||
'D', LEGACY_HK_NAME( "DCodes Display Mode" ),
|
||||
_( "Show DCodes" ), _( "Show dcode number" ),
|
||||
show_dcodenumber_xpm );
|
||||
|
||||
TOOL_ACTION GERBVIEW_ACTIONS::toggleDiffMode( "gerbview.Control.toggleDiffMode",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Show in Differential Mode" ), _( "Show layers in diff (compare) mode" ),
|
||||
gbr_select_mode2_xpm );
|
||||
|
||||
GERBVIEW_CONTROL::GERBVIEW_CONTROL() :
|
||||
TOOL_INTERACTIVE( "gerbview.Control" ),
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user