2013-09-27 18:52:34 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2016-05-04 12:59:14 +00:00
|
|
|
* Copyright (C) 2013-2016 CERN
|
2016-06-08 11:19:53 +00:00
|
|
|
* Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
|
2013-09-27 18:52:34 +00:00
|
|
|
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
|
|
|
*
|
|
|
|
* 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 "common_actions.h"
|
|
|
|
#include <tool/action_manager.h>
|
2014-02-17 17:21:00 +00:00
|
|
|
#include <pcbnew_id.h>
|
2015-04-30 08:46:01 +00:00
|
|
|
#include <layers_id_colors_and_visibility.h>
|
2015-05-05 18:39:41 +00:00
|
|
|
#include <bitmaps.h>
|
2013-12-18 14:38:38 +00:00
|
|
|
#include <wx/defs.h>
|
2015-05-05 18:39:42 +00:00
|
|
|
#include <hotkeys.h>
|
2013-09-27 18:52:34 +00:00
|
|
|
|
2015-04-03 19:10:09 +00:00
|
|
|
// These members are static in class COMMON_ACTIONS: Build them here:
|
|
|
|
|
2013-09-27 18:52:34 +00:00
|
|
|
// Selection tool actions
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::selectionActivate( "pcbnew.InteractiveSelection",
|
2014-07-09 13:10:32 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
"", "", NULL, AF_ACTIVATE ); // No description, it is not supposed to be shown anywhere
|
2013-09-27 18:52:34 +00:00
|
|
|
|
2014-11-21 10:49:28 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::selectionCursor( "pcbnew.InteractiveSelection.Cursor",
|
2014-07-09 13:10:32 +00:00
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" ); // No description, it is not supposed to be shown anywhere
|
2014-07-09 11:50:27 +00:00
|
|
|
|
2014-11-21 10:50:13 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::selectItem( "pcbnew.InteractiveSelection.SelectItem",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" ); // No description, it is not supposed to be shown anywhere
|
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::unselectItem( "pcbnew.InteractiveSelection.UnselectItem",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" ); // No description, it is not supposed to be shown anywhere
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::selectionClear( "pcbnew.InteractiveSelection.Clear",
|
2014-07-09 13:10:32 +00:00
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" ); // No description, it is not supposed to be shown anywhere
|
2014-02-04 15:03:56 +00:00
|
|
|
|
2015-03-10 08:36:04 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::selectConnection( "pcbnew.InteractiveSelection.SelectConnection",
|
2015-07-09 15:11:34 +00:00
|
|
|
AS_GLOBAL, 'U',
|
2015-05-18 11:48:10 +00:00
|
|
|
_( "trivial connection" ), _( "Selects a connection between two junctions." ) );
|
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::selectCopper( "pcbnew.InteractiveSelection.SelectCopper",
|
2015-07-09 15:11:34 +00:00
|
|
|
AS_GLOBAL, 'I',
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "copper connection" ), _( "Selects whole copper connection." ) );
|
2015-03-10 08:36:04 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::selectNet( "pcbnew.InteractiveSelection.SelectNet",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "whole net" ), _( "Selects all tracks & vias belonging to the same net." ) );
|
2015-03-10 08:36:04 +00:00
|
|
|
|
2014-10-13 13:25:16 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::find( "pcbnew.InteractiveSelection.Find",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, 0, //TOOL_ACTION::LegacyHotKey( HK_FIND_ITEM ), // handled by wxWidgets
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Find an item" ), _( "Searches the document for an item" ), find_xpm );
|
2014-10-13 13:25:16 +00:00
|
|
|
|
2014-10-13 13:22:14 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::findMove( "pcbnew.InteractiveSelection.FindMove",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_GET_AND_MOVE_FOOTPRINT ) );
|
|
|
|
|
2014-10-13 13:22:14 +00:00
|
|
|
|
2013-12-03 15:09:03 +00:00
|
|
|
// Edit tool actions
|
2015-02-18 00:10:20 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::editFootprintInFpEditor( "pcbnew.InteractiveEdit.editFootprintInFpEditor",
|
2015-06-16 13:27:59 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_EDIT_MODULE_WITH_MODEDIT ),
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Open in Footprint Editor" ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Opens the selected footprint in the Footprint Editor" ),
|
|
|
|
module_editor_xpm );
|
2015-02-18 00:10:20 +00:00
|
|
|
|
2015-04-02 14:09:48 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::copyPadToSettings( "pcbnew.InteractiveEdit.copyPadToSettings",
|
2015-06-16 13:27:59 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Copy pad settings to Current Settings" ),
|
|
|
|
_( "Copies the properties of selected pad to the current template pad settings." ) );
|
2015-02-18 00:10:20 +00:00
|
|
|
|
2015-04-02 14:09:48 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::copySettingsToPads( "pcbnew.InteractiveEdit.copySettingsToPads",
|
2015-06-16 13:27:59 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Copy Current Settings to pads" ),
|
|
|
|
_( "Copies the current template pad settings to the selected pad(s)." ) );
|
2015-02-18 00:10:20 +00:00
|
|
|
|
2015-06-16 13:27:59 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::globalEditPads( "pcbnew.InteractiveEdit.globalPadEdit",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Global Pad Edition" ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Changes pad properties globally." ), global_options_pad_xpm );
|
2015-02-18 00:10:20 +00:00
|
|
|
|
2013-12-03 15:09:03 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::editActivate( "pcbnew.InteractiveEdit",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_MOVE_ITEM ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Move" ), _( "Moves the selected item(s)" ), move_xpm, AF_ACTIVATE );
|
2013-09-27 18:52:34 +00:00
|
|
|
|
2015-02-12 03:22:24 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::duplicate( "pcbnew.InteractiveEdit.duplicate",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_DUPLICATE_ITEM ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Duplicate" ), _( "Duplicates the selected item(s)" ), duplicate_module_xpm );
|
2015-02-12 03:22:24 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::duplicateIncrement( "pcbnew.InteractiveEdit.duplicateIncrementPads",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_DUPLICATE_ITEM_AND_INCREMENT ),
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Duplicate" ), _( "Duplicates the selected item(s), incrementing pad numbers" ) );
|
2015-02-12 03:22:24 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::moveExact( "pcbnew.InteractiveEdit.moveExact",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_MOVE_ITEM_EXACT ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Move Exactly..." ), _( "Moves the selected item(s) by an exact amount" ),
|
|
|
|
move_module_xpm );
|
2015-02-12 03:22:24 +00:00
|
|
|
|
2015-02-12 03:22:24 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::createArray( "pcbnew.InteractiveEdit.createArray",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_CREATE_ARRAY ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Create array" ), _( "Create array" ), array_module_xpm, AF_ACTIVATE );
|
2015-02-12 03:22:24 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::rotate( "pcbnew.InteractiveEdit.rotate",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ROTATE_ITEM ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Rotate" ), _( "Rotates selected item(s)" ), rotate_cw_xpm );
|
2013-09-27 18:52:34 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::flip( "pcbnew.InteractiveEdit.flip",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_FLIP_ITEM ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Flip" ), _( "Flips selected item(s)" ), swap_layer_xpm );
|
2013-12-03 14:57:09 +00:00
|
|
|
|
2013-12-18 14:38:38 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::remove( "pcbnew.InteractiveEdit.remove",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_DELETE ),
|
2015-04-30 08:46:04 +00:00
|
|
|
_( "Remove" ), _( "Deletes selected item(s)" ), delete_xpm );
|
2013-12-09 10:01:05 +00:00
|
|
|
|
2016-08-15 15:16:47 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::removeAlt( "pcbnew.InteractiveEdit.removeAlt",
|
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_BACK_SPACE ),
|
|
|
|
_( "Remove (alterative)" ), _( "Deletes selected item(s)" ), delete_xpm );
|
|
|
|
|
|
|
|
|
2013-12-03 15:09:03 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::properties( "pcbnew.InteractiveEdit.properties",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_EDIT_ITEM ),
|
2015-05-22 11:00:43 +00:00
|
|
|
_( "Properties..." ), _( "Displays item properties dialog" ), editor_xpm );
|
2014-02-06 14:09:38 +00:00
|
|
|
|
2014-04-09 15:05:05 +00:00
|
|
|
|
2014-02-17 17:21:00 +00:00
|
|
|
// Drawing tool actions
|
2014-02-06 16:12:37 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::drawLine( "pcbnew.InteractiveDrawing.line",
|
2014-02-17 17:21:00 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Draw a line" ), _( "Draw a line" ), NULL, AF_ACTIVATE );
|
2014-02-06 16:12:37 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::drawCircle( "pcbnew.InteractiveDrawing.circle",
|
2014-02-17 17:21:00 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Draw a circle" ), _( "Draw a circle" ), NULL, AF_ACTIVATE );
|
2014-02-10 09:58:58 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::drawArc( "pcbnew.InteractiveDrawing.arc",
|
2014-02-17 17:21:00 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Draw an arc" ), _( "Draw an arc" ), NULL, AF_ACTIVATE );
|
2014-02-10 14:40:25 +00:00
|
|
|
|
2014-07-09 12:01:06 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::placeText( "pcbnew.InteractiveDrawing.text",
|
2014-02-17 17:21:00 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Add a text" ), _( "Add a text" ), NULL, AF_ACTIVATE );
|
2014-02-11 13:38:44 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::drawDimension( "pcbnew.InteractiveDrawing.dimension",
|
2014-02-17 17:21:00 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Add a dimension" ), _( "Add a dimension" ), NULL, AF_ACTIVATE );
|
2014-02-11 16:15:33 +00:00
|
|
|
|
2014-02-13 15:10:32 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::drawZone( "pcbnew.InteractiveDrawing.zone",
|
2014-02-17 17:21:00 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Add a filled zone" ), _( "Add a filled zone" ), NULL, AF_ACTIVATE );
|
2014-02-13 15:10:32 +00:00
|
|
|
|
2014-02-13 15:24:33 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::drawKeepout( "pcbnew.InteractiveDrawing.keepout",
|
2014-02-17 17:21:00 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Add a keepout area" ), _( "Add a keepout area" ), NULL, AF_ACTIVATE );
|
2014-02-13 15:24:33 +00:00
|
|
|
|
2014-07-09 13:02:56 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::placeDXF( "pcbnew.InteractiveDrawing.placeDXF",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
"", "", NULL, AF_ACTIVATE );
|
2014-07-09 13:02:56 +00:00
|
|
|
|
2014-07-09 12:01:06 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::setAnchor( "pcbnew.InteractiveDrawing.setAnchor",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Place the footprint anchor" ), _( "Place the footprint anchor" ),
|
2015-04-02 14:09:48 +00:00
|
|
|
NULL, AF_ACTIVATE );
|
2014-07-09 12:01:06 +00:00
|
|
|
|
2014-08-04 12:23:19 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::incWidth( "pcbnew.InteractiveDrawing.incWidth",
|
|
|
|
AS_CONTEXT, '+',
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Increase the line width" ), _( "Increase the line width" ) );
|
2014-08-04 12:23:19 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::decWidth( "pcbnew.InteractiveDrawing.decWidth",
|
|
|
|
AS_CONTEXT, '-',
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Decrease the line width" ), _( "Decrease the line width" ) );
|
2014-08-04 12:23:19 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::arcPosture( "pcbnew.InteractiveDrawing.arcPosture",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_CONTEXT, TOOL_ACTION::LegacyHotKey( HK_SWITCH_TRACK_POSTURE ),
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Switch the arc posture" ), _( "Switch the arc posture" ) );
|
2014-08-04 12:23:19 +00:00
|
|
|
|
2014-07-09 14:57:01 +00:00
|
|
|
|
2014-03-24 07:45:05 +00:00
|
|
|
// View Controls
|
2015-04-30 08:46:02 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoomIn( "common.Control.zoomIn",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ZOOM_IN ),
|
2015-05-03 15:53:44 +00:00
|
|
|
_( "Zoom In" ), "", zoom_in_xpm );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2015-04-30 08:46:02 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoomOut( "common.Control.zoomOut",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ZOOM_OUT ),
|
2015-05-03 15:53:44 +00:00
|
|
|
_( "Zoom Out" ), "", zoom_out_xpm );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2015-04-30 08:46:02 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoomInCenter( "common.Control.zoomInCenter",
|
2014-03-24 16:20:23 +00:00
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
2015-04-30 08:46:02 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoomOutCenter( "common.Control.zoomOutCenter",
|
2014-03-24 16:20:23 +00:00
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
2015-04-30 08:46:02 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoomCenter( "common.Control.zoomCenter",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ZOOM_CENTER ),
|
2015-05-03 15:53:44 +00:00
|
|
|
_( "Center" ), "", zoom_center_on_screen_xpm );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2015-04-30 08:46:02 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoomFitScreen( "common.Control.zoomFitScreen",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ZOOM_AUTO ),
|
2015-05-03 15:53:44 +00:00
|
|
|
_( "Zoom Auto" ), "", zoom_fit_in_page_xpm );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2015-04-30 08:46:02 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoomPreset( "common.Control.zoomPreset",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
2014-03-24 16:20:23 +00:00
|
|
|
|
2014-03-24 07:45:05 +00:00
|
|
|
// Display modes
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::trackDisplayMode( "pcbnew.Control.trackDisplayMode",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_TRACK_DISPLAY_MODE ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::padDisplayMode( "pcbnew.Control.padDisplayMode",
|
2015-09-03 15:35:41 +00:00
|
|
|
AS_GLOBAL, 0,
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::viaDisplayMode( "pcbnew.Control.viaDisplayMode",
|
2015-09-03 15:35:41 +00:00
|
|
|
AS_GLOBAL, 0,
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 13:02:56 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoneDisplayEnable( "pcbnew.Control.zoneDisplayEnable",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoneDisplayDisable( "pcbnew.Control.zoneDisplayDisable",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoneDisplayOutlines( "pcbnew.Control.zoneDisplayOutlines",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::highContrastMode( "pcbnew.Control.highContrastMode",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_HIGHCONTRAST_MODE ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::highContrastInc( "pcbnew.Control.highContrastInc",
|
2014-04-09 15:33:22 +00:00
|
|
|
AS_GLOBAL, '>',
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::highContrastDec( "pcbnew.Control.highContrastDec",
|
2014-04-09 15:33:22 +00:00
|
|
|
AS_GLOBAL, '<',
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
|
|
|
|
|
|
|
// Layer control
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerTop( "pcbnew.Control.layerTop",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_LAYER_TO_COMPONENT ),
|
2015-04-30 08:46:01 +00:00
|
|
|
"", "", NULL, AF_NONE, (void*) F_Cu );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerInner1( "pcbnew.Control.layerInner1",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_LAYER_TO_INNER1 ),
|
2015-04-30 08:46:01 +00:00
|
|
|
"", "", NULL, AF_NONE, (void*) In1_Cu );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerInner2( "pcbnew.Control.layerInner2",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_LAYER_TO_INNER2 ),
|
2015-04-30 08:46:01 +00:00
|
|
|
"", "", NULL, AF_NONE, (void*) In2_Cu );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerInner3( "pcbnew.Control.layerInner3",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_LAYER_TO_INNER3 ),
|
2015-04-30 08:46:01 +00:00
|
|
|
"", "", NULL, AF_NONE, (void*) In3_Cu );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerInner4( "pcbnew.Control.layerInner4",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_LAYER_TO_INNER4 ),
|
2015-04-30 08:46:01 +00:00
|
|
|
"", "", NULL, AF_NONE, (void*) In4_Cu );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerInner5( "pcbnew.Control.layerInner5",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_LAYER_TO_INNER5 ),
|
2015-04-30 08:46:01 +00:00
|
|
|
"", "", NULL, AF_NONE, (void*) In5_Cu );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerInner6( "pcbnew.Control.layerInner6",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_LAYER_TO_INNER6 ),
|
2015-04-30 08:46:01 +00:00
|
|
|
"", "", NULL, AF_NONE, (void*) In6_Cu );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerBottom( "pcbnew.Control.layerBottom",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_LAYER_TO_COPPER ),
|
2015-04-30 08:46:01 +00:00
|
|
|
"", "", NULL, AF_NONE, (void*) B_Cu );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerNext( "pcbnew.Control.layerNext",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_LAYER_TO_NEXT ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerPrev( "pcbnew.Control.layerPrev",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_LAYER_TO_PREVIOUS ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2015-05-18 11:48:11 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerToggle( "pcbnew.Control.layerToggle",
|
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ADD_THROUGH_VIA ),
|
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerAlphaInc( "pcbnew.Control.layerAlphaInc",
|
2014-04-09 15:33:22 +00:00
|
|
|
AS_GLOBAL, '}',
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerAlphaDec( "pcbnew.Control.layerAlphaDec",
|
2014-04-09 15:33:22 +00:00
|
|
|
AS_GLOBAL, '{',
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 14:25:50 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::layerChanged( "pcbnew.Control.layerChanged",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
"", "", NULL, AF_NOTIFY );
|
2014-07-09 14:25:50 +00:00
|
|
|
|
2014-03-24 07:45:05 +00:00
|
|
|
|
|
|
|
// Grid control
|
2015-04-30 08:46:04 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::gridFast1( "common.Control.gridFast1",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_GRID_TO_FASTGRID1 ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2015-04-30 08:46:04 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::gridFast2( "common.Control.gridFast2",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_GRID_TO_FASTGRID2 ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2015-04-30 08:46:04 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::gridNext( "common.Control.gridNext",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_GRID_TO_NEXT ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2015-04-30 08:46:04 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::gridPrev( "common.Control.gridPrev",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_GRID_TO_PREVIOUS ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2015-04-30 08:46:04 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::gridSetOrigin( "common.Control.gridSetOrigin",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SET_GRID_ORIGIN ),
|
2014-06-04 15:46:43 +00:00
|
|
|
"", "" );
|
|
|
|
|
2016-05-04 12:59:14 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::gridResetOrigin( "common.Control.gridResetOrigin",
|
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_RESET_GRID_ORIGIN ),
|
|
|
|
"", "" );
|
|
|
|
|
2015-04-30 08:46:04 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::gridPreset( "common.Control.gridPreset",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
|
|
|
// Track & via size control
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::trackWidthInc( "pcbnew.EditorControl.trackWidthInc",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_TRACK_WIDTH_TO_NEXT ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::trackWidthDec( "pcbnew.EditorControl.trackWidthDec",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_TRACK_WIDTH_TO_PREVIOUS ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::viaSizeInc( "pcbnew.EditorControl.viaSizeInc",
|
2014-03-24 07:45:05 +00:00
|
|
|
AS_GLOBAL, '\'',
|
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::viaSizeDec( "pcbnew.EditorControl.viaSizeDec",
|
2014-03-24 07:45:05 +00:00
|
|
|
AS_GLOBAL, '\\',
|
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::trackViaSizeChanged( "pcbnew.EditorControl.trackViaSizeChanged",
|
2014-06-04 15:46:43 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
"", "", NULL, AF_NOTIFY );
|
2014-03-24 07:45:05 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
|
2014-07-09 14:57:01 +00:00
|
|
|
// Zone actions
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoneFill( "pcbnew.EditorControl.zoneFill",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Fill" ), _( "Fill zone(s)" ), fill_zone_xpm );
|
2014-07-09 14:57:01 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoneFillAll( "pcbnew.EditorControl.zoneFillAll",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ZONE_FILL_OR_REFILL ),
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Fill all" ), _( "Fill all zones" ) );
|
2014-07-09 14:57:01 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoneUnfill( "pcbnew.EditorControl.zoneUnfill",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Unfill" ), _( "Unfill zone(s)" ), zone_unfill_xpm );
|
2014-07-09 14:57:01 +00:00
|
|
|
|
2014-12-08 22:41:47 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoneUnfillAll( "pcbnew.EditorControl.zoneUnfillAll",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ZONE_REMOVE_FILLED ),
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Unfill all" ), _( "Unfill all zones" ) );
|
2014-12-08 22:41:47 +00:00
|
|
|
|
2015-06-19 15:32:33 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoneMerge( "pcbnew.EditorControl.zoneMerge",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
_( "Merge zones" ), _( "Merge zones" ) );
|
|
|
|
|
2014-07-09 14:57:01 +00:00
|
|
|
|
2015-03-10 15:58:26 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::placeTarget( "pcbnew.EditorControl.placeTarget",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Add layer alignment target" ), _( "Add layer alignment target" ), NULL, AF_ACTIVATE );
|
2015-03-10 15:58:26 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::placeModule( "pcbnew.EditorControl.placeModule",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ADD_MODULE ),
|
2015-11-17 16:18:00 +00:00
|
|
|
_( "Add footprints" ), _( "Add footprints" ), NULL, AF_ACTIVATE );
|
2015-03-10 15:58:26 +00:00
|
|
|
|
2015-06-18 15:51:51 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::drillOrigin( "pcbnew.EditorControl.drillOrigin",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
2015-06-26 15:32:48 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::crossProbeSchToPcb( "pcbnew.EditorControl.crossProbSchToPcb",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
2015-06-18 15:51:51 +00:00
|
|
|
|
2016-05-09 08:29:06 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::toggleLock( "pcbnew.EditorControl.toggleLock",
|
2015-09-03 15:35:41 +00:00
|
|
|
AS_GLOBAL, 'L',
|
2016-05-09 08:29:06 +00:00
|
|
|
"Toggle lock", "" );
|
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::lock( "pcbnew.EditorControl.lock",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
_( "Lock" ), "" );
|
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::unlock( "pcbnew.EditorControl.unlock",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
_( "Unlock" ), "" );
|
2015-09-03 15:35:41 +00:00
|
|
|
|
2015-08-07 16:24:42 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::appendBoard( "pcbnew.EditorControl.appendBoard",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
2015-06-18 15:51:50 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::highlightNet( "pcbnew.EditorControl.highlightNet",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
2015-06-18 15:51:51 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::highlightNetCursor( "pcbnew.EditorControl.highlightNetCursor",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
2015-03-10 15:58:26 +00:00
|
|
|
|
2014-07-09 13:02:56 +00:00
|
|
|
// Module editor tools
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::placePad( "pcbnew.ModuleEditor.placePad",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Add pads" ), _( "Add pads" ), NULL, AF_ACTIVATE );
|
2014-07-09 13:02:56 +00:00
|
|
|
|
2014-07-09 13:02:56 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::enumeratePads( "pcbnew.ModuleEditor.enumeratePads",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-03 19:10:09 +00:00
|
|
|
_( "Enumerate pads" ), _( "Enumerate pads" ), pad_enumerate_xpm, AF_ACTIVATE );
|
2014-07-09 13:02:56 +00:00
|
|
|
|
2014-07-09 13:02:56 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::copyItems( "pcbnew.ModuleEditor.copyItems",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_COPY_ITEM ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Copy items" ), _( "Copy items" ), NULL, AF_ACTIVATE );
|
2014-07-09 13:02:56 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::pasteItems( "pcbnew.ModuleEditor.pasteItems",
|
|
|
|
AS_GLOBAL, MD_CTRL + int( 'V' ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Paste items" ), _( "Paste items" ), NULL, AF_ACTIVATE );
|
2014-07-09 13:02:56 +00:00
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::moduleEdgeOutlines( "pcbnew.ModuleEditor.graphicOutlines",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::moduleTextOutlines( "pcbnew.ModuleEditor.textOutlines",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 13:02:56 +00:00
|
|
|
|
2015-06-30 12:08:24 +00:00
|
|
|
// Cursor control
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::cursorUp( "pcbnew.Control.cursorUp",
|
|
|
|
AS_GLOBAL, WXK_UP, "", "", NULL, AF_NONE, (void*) CURSOR_UP );
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::cursorDown( "pcbnew.Control.cursorDown",
|
|
|
|
AS_GLOBAL, WXK_DOWN, "", "" , NULL, AF_NONE, (void*) CURSOR_DOWN );
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::cursorLeft( "pcbnew.Control.cursorLeft",
|
|
|
|
AS_GLOBAL, WXK_LEFT, "", "" , NULL, AF_NONE, (void*) CURSOR_LEFT );
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::cursorRight( "pcbnew.Control.cursorRight",
|
|
|
|
AS_GLOBAL, WXK_RIGHT, "", "" , NULL, AF_NONE, (void*) CURSOR_RIGHT );
|
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::cursorUpFast( "pcbnew.Control.cursorUpFast",
|
|
|
|
AS_GLOBAL, MD_CTRL + WXK_UP, "", "", NULL, AF_NONE, (void*) ( CURSOR_UP | CURSOR_FAST_MOVE ) );
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::cursorDownFast( "pcbnew.Control.cursorDownFast",
|
|
|
|
AS_GLOBAL, MD_CTRL + WXK_DOWN, "", "" , NULL, AF_NONE, (void*) ( CURSOR_DOWN | CURSOR_FAST_MOVE ) );
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::cursorLeftFast( "pcbnew.Control.cursorLeftFast",
|
|
|
|
AS_GLOBAL, MD_CTRL + WXK_LEFT, "", "" , NULL, AF_NONE, (void*) ( CURSOR_LEFT | CURSOR_FAST_MOVE ) );
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::cursorRightFast( "pcbnew.Control.cursorRightFast",
|
|
|
|
AS_GLOBAL, MD_CTRL + WXK_RIGHT, "", "" , NULL, AF_NONE, (void*) ( CURSOR_RIGHT | CURSOR_FAST_MOVE ) );
|
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::cursorClick( "pcbnew.Control.cursorClick",
|
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_LEFT_CLICK ),
|
|
|
|
"", "", NULL, AF_NONE, (void*) CURSOR_CLICK );
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::cursorDblClick( "pcbnew.Control.cursorDblClick",
|
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_LEFT_DCLICK ),
|
|
|
|
"", "", NULL, AF_NONE, (void*) CURSOR_DBL_CLICK );
|
|
|
|
|
2015-06-30 12:08:29 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::panUp( "pcbnew.Control.panUp",
|
|
|
|
AS_GLOBAL, MD_SHIFT + WXK_UP, "", "", NULL, AF_NONE, (void*) CURSOR_UP );
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::panDown( "pcbnew.Control.panDown",
|
|
|
|
AS_GLOBAL, MD_SHIFT + WXK_DOWN, "", "" , NULL, AF_NONE, (void*) CURSOR_DOWN );
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::panLeft( "pcbnew.Control.panLeft",
|
|
|
|
AS_GLOBAL, MD_SHIFT + WXK_LEFT, "", "" , NULL, AF_NONE, (void*) CURSOR_LEFT );
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::panRight( "pcbnew.Control.panRight",
|
|
|
|
AS_GLOBAL, MD_SHIFT + WXK_RIGHT, "", "" , NULL, AF_NONE, (void*) CURSOR_RIGHT );
|
2015-06-30 12:08:24 +00:00
|
|
|
|
2014-03-24 07:45:05 +00:00
|
|
|
// Miscellaneous
|
2014-07-15 09:50:00 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::selectionTool( "pcbnew.Control.selectionTool",
|
2014-07-24 11:09:16 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
"", "", NULL, AF_ACTIVATE );
|
2014-07-15 09:50:00 +00:00
|
|
|
|
2016-06-08 11:19:53 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::zoomTool( "pcbnew.Control.zoomTool",
|
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ZOOM_SELECTION ),
|
|
|
|
_( "Zoom to selection" ), "", NULL, AF_ACTIVATE );
|
|
|
|
|
2015-06-18 15:51:51 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::pickerTool( "pcbnew.Picker", AS_GLOBAL, 0, "", "", NULL, AF_ACTIVATE );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::resetCoords( "pcbnew.Control.resetCoords",
|
2014-03-24 07:45:05 +00:00
|
|
|
AS_GLOBAL, ' ',
|
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::switchCursor( "pcbnew.Control.switchCursor",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::switchUnits( "pcbnew.Control.switchUnits",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SWITCH_UNITS ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2015-06-18 15:51:51 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::deleteItemCursor( "pcbnew.Control.deleteItemCursor",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::showHelp( "pcbnew.Control.showHelp",
|
2015-06-18 15:51:52 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_HELP ),
|
2014-03-24 07:45:05 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::toBeDone( "pcbnew.Control.toBeDone",
|
|
|
|
AS_GLOBAL, 0, // dialog saying it is not implemented yet
|
|
|
|
"", "" ); // so users are aware of that
|
|
|
|
|
2015-04-02 14:09:26 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::routerActivateSingle( "pcbnew.InteractiveRouter.SingleTrack",
|
2015-05-05 18:39:42 +00:00
|
|
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_ADD_NEW_TRACK ),
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Run push & shove router (single tracks)" ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Run push & shove router (single tracks)" ), ps_router_xpm, AF_ACTIVATE );
|
2014-07-09 14:50:31 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::routerActivateDiffPair( "pcbnew.InteractiveRouter.DiffPair",
|
|
|
|
AS_GLOBAL, '6',
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Run push & shove router (differential pairs)" ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Run push & shove router (differential pairs)" ), ps_diff_pair_xpm, AF_ACTIVATE );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::routerActivateSettingsDialog( "pcbnew.InteractiveRouter.SettingsDialog",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Open Interactive Router settings" ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Open Interactive Router settings" ), NULL, AF_ACTIVATE );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::routerActivateDpDimensionsDialog( "pcbnew.InteractiveRouter.DpDimensionsDialog",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Open Differential Pair Dimension settings" ),
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Open Differential Pair Dimension settings" ), ps_diff_pair_gap_xpm, AF_ACTIVATE );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::routerActivateTuneSingleTrace( "pcbnew.LengthTuner.TuneSingleTrack",
|
|
|
|
AS_GLOBAL, '7',
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Tune length of a single track" ), "", ps_tune_length_xpm, AF_ACTIVATE );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::routerActivateTuneDiffPair( "pcbnew.LengthTuner.TuneDiffPair",
|
|
|
|
AS_GLOBAL, '8',
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Tune length of a differential pair" ), "", NULL, AF_ACTIVATE );
|
2014-07-09 11:50:27 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::routerActivateTuneDiffPairSkew( "pcbnew.LengthTuner.TuneDiffPairSkew",
|
|
|
|
AS_GLOBAL, '9',
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Tune skew of a differential pair" ), "", NULL, AF_ACTIVATE );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::routerInlineDrag( "pcbnew.InteractiveRouter.InlineDrag",
|
2015-07-02 14:10:07 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-02-18 00:29:54 +00:00
|
|
|
"", "" );
|
|
|
|
|
2014-07-09 14:50:31 +00:00
|
|
|
// Point editor
|
2014-07-09 11:50:27 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::pointEditorUpdate( "pcbnew.PointEditor.update",
|
2014-07-09 13:10:32 +00:00
|
|
|
AS_GLOBAL, 0,
|
|
|
|
"", "" ); // No description, it is not supposed to be shown anywhere
|
2014-07-09 11:50:27 +00:00
|
|
|
|
2015-06-19 15:32:33 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::pointEditorAddCorner( "pcbnew.PointEditor.addCorner",
|
2014-07-09 14:50:31 +00:00
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:48 +00:00
|
|
|
_( "Create corner" ), _( "Create corner" ), add_corner_xpm );
|
2014-07-09 14:50:31 +00:00
|
|
|
|
2015-06-19 15:32:33 +00:00
|
|
|
TOOL_ACTION COMMON_ACTIONS::pointEditorRemoveCorner( "pcbnew.PointEditor.removeCorner",
|
|
|
|
AS_GLOBAL, 0,
|
|
|
|
_( "Remove corner" ), _( "Remove corner" ), delete_xpm );
|
|
|
|
|
2014-07-09 12:23:13 +00:00
|
|
|
// Placement tool
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::alignTop( "pcbnew.Place.alignTop",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Align items to the top" ),
|
|
|
|
_( "Aligns selected items to the top edge" ) );
|
2014-07-09 12:23:13 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::alignBottom( "pcbnew.Place.alignBottom",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Align items to the bottom" ),
|
|
|
|
_( "Aligns selected items to the bottom edge" ) );
|
2014-07-09 12:23:13 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::alignLeft( "pcbnew.Place.alignLeft",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Align items to the left" ),
|
2015-04-03 19:10:09 +00:00
|
|
|
_( "Aligns selected items to the left edge" ) );
|
2014-07-09 12:23:13 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::alignRight( "pcbnew.Place.alignRight",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Align items to the right" ),
|
|
|
|
_( "Aligns selected items to the right edge" ) );
|
2014-07-09 12:23:13 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::distributeHorizontally( "pcbnew.Place.distributeHorizontally",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Distribute horizontally" ),
|
|
|
|
_( "Distributes selected items along the horizontal axis" ) );
|
2014-07-09 12:23:13 +00:00
|
|
|
|
|
|
|
TOOL_ACTION COMMON_ACTIONS::distributeVertically( "pcbnew.Place.distributeVertically",
|
|
|
|
AS_GLOBAL, 0,
|
2015-04-03 19:10:09 +00:00
|
|
|
_( "Distribute vertically" ),
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "Distributes selected items along the vertical axis" ) );
|
2014-07-09 12:23:13 +00:00
|
|
|
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
boost::optional<TOOL_EVENT> COMMON_ACTIONS::TranslateLegacyId( int aId )
|
2014-02-17 17:21:00 +00:00
|
|
|
{
|
|
|
|
switch( aId )
|
|
|
|
{
|
|
|
|
case ID_PCB_MODULE_BUTT:
|
2014-07-09 11:50:27 +00:00
|
|
|
return COMMON_ACTIONS::placeModule.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
|
|
|
|
case ID_TRACK_BUTT:
|
2015-02-18 00:29:54 +00:00
|
|
|
return COMMON_ACTIONS::routerActivateSingle.MakeEvent();
|
|
|
|
|
|
|
|
case ID_DIFF_PAIR_BUTT:
|
|
|
|
return COMMON_ACTIONS::routerActivateDiffPair.MakeEvent();
|
|
|
|
|
|
|
|
case ID_TUNE_SINGLE_TRACK_LEN_BUTT:
|
|
|
|
return COMMON_ACTIONS::routerActivateTuneSingleTrace.MakeEvent();
|
2015-02-18 16:53:46 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
case ID_TUNE_DIFF_PAIR_LEN_BUTT:
|
|
|
|
return COMMON_ACTIONS::routerActivateTuneDiffPair.MakeEvent();
|
2015-02-18 16:53:46 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
case ID_TUNE_DIFF_PAIR_SKEW_BUTT:
|
|
|
|
return COMMON_ACTIONS::routerActivateTuneDiffPairSkew.MakeEvent();
|
2015-02-18 16:53:46 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
case ID_MENU_INTERACTIVE_ROUTER_SETTINGS:
|
|
|
|
return COMMON_ACTIONS::routerActivateSettingsDialog.MakeEvent();
|
|
|
|
|
|
|
|
case ID_MENU_DIFF_PAIR_DIMENSIONS:
|
|
|
|
return COMMON_ACTIONS::routerActivateDpDimensionsDialog.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
|
|
|
|
case ID_PCB_ZONES_BUTT:
|
2014-07-09 11:50:27 +00:00
|
|
|
return COMMON_ACTIONS::drawZone.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
|
|
|
|
case ID_PCB_KEEPOUT_AREA_BUTT:
|
2014-07-09 11:50:27 +00:00
|
|
|
return COMMON_ACTIONS::drawKeepout.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
|
|
|
|
case ID_PCB_ADD_LINE_BUTT:
|
2014-07-09 12:01:06 +00:00
|
|
|
case ID_MODEDIT_LINE_TOOL:
|
2014-07-09 11:50:27 +00:00
|
|
|
return COMMON_ACTIONS::drawLine.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
|
|
|
|
case ID_PCB_CIRCLE_BUTT:
|
2014-07-09 12:01:06 +00:00
|
|
|
case ID_MODEDIT_CIRCLE_TOOL:
|
2014-07-09 11:50:27 +00:00
|
|
|
return COMMON_ACTIONS::drawCircle.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
|
|
|
|
case ID_PCB_ARC_BUTT:
|
2014-07-09 12:01:06 +00:00
|
|
|
case ID_MODEDIT_ARC_TOOL:
|
2014-07-09 11:50:27 +00:00
|
|
|
return COMMON_ACTIONS::drawArc.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
|
|
|
|
case ID_PCB_ADD_TEXT_BUTT:
|
2014-07-09 11:50:27 +00:00
|
|
|
case ID_MODEDIT_TEXT_TOOL:
|
2014-07-09 12:01:06 +00:00
|
|
|
return COMMON_ACTIONS::placeText.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
|
|
|
|
case ID_PCB_DIMENSION_BUTT:
|
2014-07-09 11:50:27 +00:00
|
|
|
return COMMON_ACTIONS::drawDimension.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
|
|
|
|
case ID_PCB_MIRE_BUTT:
|
2014-07-09 11:50:27 +00:00
|
|
|
return COMMON_ACTIONS::placeTarget.MakeEvent();
|
2014-06-04 15:46:43 +00:00
|
|
|
|
2014-07-09 12:01:06 +00:00
|
|
|
case ID_MODEDIT_PAD_TOOL:
|
|
|
|
return COMMON_ACTIONS::placePad.MakeEvent();
|
|
|
|
|
2014-07-09 13:02:56 +00:00
|
|
|
case ID_GEN_IMPORT_DXF_FILE:
|
|
|
|
return COMMON_ACTIONS::placeDXF.MakeEvent();
|
|
|
|
|
2014-07-09 12:01:06 +00:00
|
|
|
case ID_MODEDIT_ANCHOR_TOOL:
|
|
|
|
return COMMON_ACTIONS::setAnchor.MakeEvent();
|
|
|
|
|
2014-06-04 15:46:43 +00:00
|
|
|
case ID_PCB_PLACE_GRID_COORD_BUTT:
|
2014-07-09 12:01:06 +00:00
|
|
|
case ID_MODEDIT_PLACE_GRID_COORD:
|
2014-07-09 11:50:27 +00:00
|
|
|
return COMMON_ACTIONS::gridSetOrigin.MakeEvent();
|
|
|
|
|
|
|
|
case ID_ZOOM_IN: // toolbar button "Zoom In"
|
|
|
|
return COMMON_ACTIONS::zoomInCenter.MakeEvent();
|
|
|
|
|
|
|
|
case ID_ZOOM_OUT: // toolbar button "Zoom In"
|
|
|
|
return COMMON_ACTIONS::zoomOutCenter.MakeEvent();
|
|
|
|
|
|
|
|
case ID_ZOOM_PAGE: // toolbar button "Fit on Screen"
|
|
|
|
return COMMON_ACTIONS::zoomFitScreen.MakeEvent();
|
2014-07-09 11:50:27 +00:00
|
|
|
|
2014-07-09 13:02:56 +00:00
|
|
|
case ID_TB_OPTIONS_SHOW_TRACKS_SKETCH:
|
|
|
|
return COMMON_ACTIONS::trackDisplayMode.MakeEvent();
|
|
|
|
|
|
|
|
case ID_TB_OPTIONS_SHOW_PADS_SKETCH:
|
|
|
|
return COMMON_ACTIONS::padDisplayMode.MakeEvent();
|
|
|
|
|
|
|
|
case ID_TB_OPTIONS_SHOW_VIAS_SKETCH:
|
|
|
|
return COMMON_ACTIONS::viaDisplayMode.MakeEvent();
|
|
|
|
|
|
|
|
case ID_TB_OPTIONS_SHOW_ZONES:
|
|
|
|
return COMMON_ACTIONS::zoneDisplayEnable.MakeEvent();
|
|
|
|
|
|
|
|
case ID_TB_OPTIONS_SHOW_ZONES_DISABLE:
|
|
|
|
return COMMON_ACTIONS::zoneDisplayDisable.MakeEvent();
|
|
|
|
|
|
|
|
case ID_TB_OPTIONS_SHOW_ZONES_OUTLINES_ONLY:
|
|
|
|
return COMMON_ACTIONS::zoneDisplayOutlines.MakeEvent();
|
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
case ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH:
|
|
|
|
return COMMON_ACTIONS::moduleEdgeOutlines.MakeEvent();
|
|
|
|
|
|
|
|
case ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH:
|
|
|
|
return COMMON_ACTIONS::moduleTextOutlines.MakeEvent();
|
|
|
|
|
2014-07-09 13:02:56 +00:00
|
|
|
case ID_TB_OPTIONS_SHOW_HIGH_CONTRAST_MODE:
|
|
|
|
return COMMON_ACTIONS::highContrastMode.MakeEvent();
|
|
|
|
|
2014-10-13 13:25:16 +00:00
|
|
|
case ID_FIND_ITEMS:
|
|
|
|
return COMMON_ACTIONS::find.MakeEvent();
|
|
|
|
|
2014-10-13 13:22:14 +00:00
|
|
|
case ID_POPUP_PCB_GET_AND_MOVE_MODULE_REQUEST:
|
|
|
|
return COMMON_ACTIONS::findMove.MakeEvent();
|
|
|
|
|
2014-07-15 09:50:00 +00:00
|
|
|
case ID_NO_TOOL_SELECTED:
|
|
|
|
return COMMON_ACTIONS::selectionTool.MakeEvent();
|
|
|
|
|
2016-06-08 11:19:53 +00:00
|
|
|
case ID_ZOOM_SELECTION:
|
|
|
|
return COMMON_ACTIONS::zoomTool.MakeEvent();
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
case ID_PCB_DELETE_ITEM_BUTT:
|
2015-06-18 15:51:51 +00:00
|
|
|
case ID_MODEDIT_DELETE_TOOL:
|
|
|
|
return COMMON_ACTIONS::deleteItemCursor.MakeEvent();
|
|
|
|
|
|
|
|
case ID_PCB_PLACE_OFFSET_COORD_BUTT:
|
|
|
|
return COMMON_ACTIONS::drillOrigin.MakeEvent();
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
case ID_PCB_HIGHLIGHT_BUTT:
|
2015-06-18 15:51:51 +00:00
|
|
|
return COMMON_ACTIONS::highlightNetCursor.MakeEvent();
|
|
|
|
|
2015-08-07 16:24:42 +00:00
|
|
|
case ID_APPEND_FILE:
|
|
|
|
return COMMON_ACTIONS::appendBoard.MakeEvent();
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
case ID_PCB_SHOW_1_RATSNEST_BUTT:
|
|
|
|
return COMMON_ACTIONS::toBeDone.MakeEvent();
|
2014-02-17 17:21:00 +00:00
|
|
|
}
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
return boost::optional<TOOL_EVENT>();
|
2014-02-17 17:21:00 +00:00
|
|
|
}
|