2014-10-23 17:53:38 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
2016-04-18 15:03:59 +00:00
|
|
|
* Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
|
2014-10-23 17:53:38 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2010-01-17 20:25:10 +00:00
|
|
|
/**
|
2010-12-14 15:56:30 +00:00
|
|
|
* @file pcbnew/hotkeys.h
|
2012-05-13 15:31:58 +00:00
|
|
|
* Pcbnew hotkeys
|
2010-01-17 20:25:10 +00:00
|
|
|
*/
|
2014-02-11 18:32:09 +00:00
|
|
|
#ifndef _PCBNEW_HOTKEYS_H
|
2010-01-17 20:25:10 +00:00
|
|
|
#define _PCBNEW_HOTKEYS_H
|
2007-08-30 14:57:35 +00:00
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <hotkeys_basic.h>
|
2007-08-30 14:57:35 +00:00
|
|
|
|
2010-02-14 18:14:33 +00:00
|
|
|
// List of hot keys id.
|
|
|
|
// see also enum common_hotkey_id_commnand in hotkeys_basic.h
|
|
|
|
// for shared hotkeys id
|
2007-08-30 14:57:35 +00:00
|
|
|
enum hotkey_id_commnand {
|
2010-02-14 18:14:33 +00:00
|
|
|
HK_DELETE = HK_COMMON_END,
|
2007-08-30 14:57:35 +00:00
|
|
|
HK_BACK_SPACE,
|
2010-08-12 19:41:13 +00:00
|
|
|
HK_ROTATE_ITEM,
|
2018-02-25 18:30:59 +00:00
|
|
|
HK_ROTATE_ITEM_CLOCKWISE,
|
2012-05-30 17:38:52 +00:00
|
|
|
HK_FLIP_ITEM,
|
2012-07-04 19:50:47 +00:00
|
|
|
HK_COPY_ITEM,
|
2010-08-12 19:41:13 +00:00
|
|
|
HK_MOVE_ITEM,
|
2015-02-12 03:22:24 +00:00
|
|
|
HK_MOVE_ITEM_EXACT,
|
2017-05-10 13:55:03 +00:00
|
|
|
HK_POSITION_RELATIVE,
|
2010-08-17 10:41:44 +00:00
|
|
|
HK_DRAG_ITEM,
|
2009-12-02 09:59:49 +00:00
|
|
|
HK_GET_AND_MOVE_FOOTPRINT,
|
2007-08-30 14:57:35 +00:00
|
|
|
HK_LOCK_UNLOCK_FOOTPRINT,
|
2009-12-03 12:28:04 +00:00
|
|
|
HK_ADD_NEW_TRACK,
|
2018-02-25 18:30:59 +00:00
|
|
|
HK_ROUTE_DIFF_PAIR,
|
|
|
|
HK_ROUTE_TUNE_SINGLE,
|
|
|
|
HK_ROUTE_TUNE_DIFF_PAIR,
|
|
|
|
HK_ROUTE_TUNE_SKEW,
|
2018-05-20 13:08:06 +00:00
|
|
|
HK_ROUTE_TUNE_SETTINGS,
|
2018-05-14 02:31:21 +00:00
|
|
|
HK_ROUTE_TUNE_INCREASE_SPACING,
|
|
|
|
HK_ROUTE_TUNE_DECREASE_SPACING,
|
|
|
|
HK_ROUTE_TUNE_INCREASE_AMP,
|
|
|
|
HK_ROUTE_TUNE_DECREASE_AMP,
|
2013-08-28 16:14:39 +00:00
|
|
|
HK_ADD_THROUGH_VIA,
|
2013-09-20 10:52:33 +00:00
|
|
|
HK_SEL_LAYER_AND_ADD_THROUGH_VIA,
|
2013-08-28 16:14:39 +00:00
|
|
|
HK_ADD_BLIND_BURIED_VIA,
|
2013-09-20 10:52:33 +00:00
|
|
|
HK_SEL_LAYER_AND_ADD_BLIND_BURIED_VIA,
|
2009-12-02 09:59:49 +00:00
|
|
|
HK_ADD_MICROVIA,
|
2010-06-16 15:01:45 +00:00
|
|
|
HK_SWITCH_TRACK_POSTURE,
|
2011-08-30 09:42:42 +00:00
|
|
|
HK_DRAG_TRACK_KEEP_SLOPE,
|
2007-09-10 04:51:01 +00:00
|
|
|
HK_SWITCH_UNITS,
|
2009-06-19 20:13:22 +00:00
|
|
|
HK_SWITCH_TRACK_DISPLAY_MODE,
|
2015-03-26 19:04:52 +00:00
|
|
|
HK_3D_VIEWER,
|
2007-08-30 14:57:35 +00:00
|
|
|
HK_FIND_ITEM,
|
2010-08-10 18:34:26 +00:00
|
|
|
HK_EDIT_ITEM,
|
2015-03-14 07:43:36 +00:00
|
|
|
HK_EDIT_MODULE_WITH_MODEDIT,
|
2015-02-12 03:22:24 +00:00
|
|
|
HK_DUPLICATE_ITEM,
|
|
|
|
HK_DUPLICATE_ITEM_AND_INCREMENT,
|
2015-02-12 03:22:24 +00:00
|
|
|
HK_CREATE_ARRAY,
|
2011-09-07 09:27:02 +00:00
|
|
|
HK_PLACE_ITEM,
|
2011-09-09 11:02:03 +00:00
|
|
|
HK_SWITCH_TRACK_WIDTH_TO_NEXT,
|
|
|
|
HK_SWITCH_TRACK_WIDTH_TO_PREVIOUS,
|
|
|
|
HK_SWITCH_GRID_TO_FASTGRID1,
|
|
|
|
HK_SWITCH_GRID_TO_FASTGRID2,
|
|
|
|
HK_SWITCH_GRID_TO_NEXT,
|
|
|
|
HK_SWITCH_GRID_TO_PREVIOUS,
|
2007-08-30 14:57:35 +00:00
|
|
|
HK_SWITCH_LAYER_TO_COPPER,
|
|
|
|
HK_SWITCH_LAYER_TO_COMPONENT,
|
|
|
|
HK_SWITCH_LAYER_TO_NEXT,
|
|
|
|
HK_SWITCH_LAYER_TO_PREVIOUS,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER1,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER2,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER3,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER4,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER5,
|
2007-09-06 11:52:26 +00:00
|
|
|
HK_SWITCH_LAYER_TO_INNER6,
|
2009-06-19 20:13:22 +00:00
|
|
|
HK_SWITCH_LAYER_TO_INNER7,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER8,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER9,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER10,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER11,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER12,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER13,
|
|
|
|
HK_SWITCH_LAYER_TO_INNER14,
|
|
|
|
HK_ADD_MODULE,
|
2018-05-14 03:22:11 +00:00
|
|
|
HK_ADD_LINE,
|
|
|
|
HK_ADD_POLYGON,
|
|
|
|
HK_ADD_CIRCLE,
|
|
|
|
HK_ADD_ARC,
|
|
|
|
HK_ADD_TEXT,
|
|
|
|
HK_ADD_DIMENSION,
|
|
|
|
HK_ADD_ZONE,
|
|
|
|
HK_ADD_FREE_VIA,
|
|
|
|
HK_ADD_KEEPOUT,
|
|
|
|
HK_ADD_CUTOUT,
|
|
|
|
HK_ADD_SIMILAR_ZONE,
|
|
|
|
HK_ADD_DXF,
|
|
|
|
HK_ADD_ANCHOR,
|
|
|
|
HK_INC_LINE_WIDTH,
|
|
|
|
HK_DEC_LINE_WIDTH,
|
2012-02-19 17:33:06 +00:00
|
|
|
HK_SWITCH_HIGHCONTRAST_MODE,
|
2018-02-25 18:30:59 +00:00
|
|
|
HK_HIGHCONTRAST_INC,
|
|
|
|
HK_HIGHCONTRAST_DEC,
|
2015-12-22 21:25:59 +00:00
|
|
|
HK_CANVAS_LEGACY,
|
2013-04-15 15:57:03 +00:00
|
|
|
HK_CANVAS_OPENGL,
|
|
|
|
HK_CANVAS_CAIRO,
|
2014-04-03 07:40:55 +00:00
|
|
|
HK_LEFT_CLICK,
|
2014-12-06 21:21:13 +00:00
|
|
|
HK_LEFT_DCLICK,
|
|
|
|
HK_ZONE_FILL_OR_REFILL,
|
2017-06-17 16:11:40 +00:00
|
|
|
HK_ZONE_REMOVE_FILLED,
|
2018-02-25 18:30:59 +00:00
|
|
|
HK_INC_LAYER_ALPHA,
|
|
|
|
HK_DEC_LAYER_ALPHA,
|
2017-06-30 12:30:10 +00:00
|
|
|
HK_SEL_TRIVIAL_CONNECTION,
|
2017-06-30 12:59:16 +00:00
|
|
|
HK_SEL_COPPER_CONNECTION,
|
|
|
|
HK_ROUTING_OPTIONS,
|
|
|
|
HK_CUSTOM_TRACK_WIDTH,
|
|
|
|
HK_DP_DIMENSIONS,
|
|
|
|
HK_VIA_SIZE_INC,
|
2018-03-27 03:09:38 +00:00
|
|
|
HK_VIA_SIZE_DEC,
|
|
|
|
HK_HIGHLIGHT_NET_SELECTION
|
2007-08-30 14:57:35 +00:00
|
|
|
};
|
|
|
|
|
2011-09-29 16:49:40 +00:00
|
|
|
// Full list of hotkey descriptors for board editor and footprint editor
|
2018-02-14 22:07:59 +00:00
|
|
|
extern struct EDA_HOTKEY_CONFIG g_Pcbnew_Editor_Hotkeys_Descr[];
|
2009-12-02 09:59:49 +00:00
|
|
|
|
2007-09-06 11:52:26 +00:00
|
|
|
// List of hotkey descriptors for the board editor only
|
2018-02-14 22:07:59 +00:00
|
|
|
extern struct EDA_HOTKEY_CONFIG g_Board_Editor_Hotkeys_Descr[];
|
2009-12-02 09:59:49 +00:00
|
|
|
|
2007-09-06 11:52:26 +00:00
|
|
|
// List of hotkey descriptors for the footprint editor only
|
2018-02-14 22:07:59 +00:00
|
|
|
extern struct EDA_HOTKEY_CONFIG g_Module_Editor_Hotkeys_Descr[];
|
2010-11-24 15:10:33 +00:00
|
|
|
|
2012-02-09 20:33:38 +00:00
|
|
|
// List of hotkey descriptors for the footprint editor only
|
2018-02-14 22:07:59 +00:00
|
|
|
extern struct EDA_HOTKEY_CONFIG g_Module_Viewer_Hotkeys_Descr[];
|
2012-02-09 20:33:38 +00:00
|
|
|
|
2010-11-24 15:10:33 +00:00
|
|
|
// List of common hotkey descriptors
|
|
|
|
// used in hotkeys_board_editor.cpp and hotkeys_module_editor.cpp
|
2011-09-29 16:49:40 +00:00
|
|
|
extern EDA_HOTKEY* common_Hotkey_List[];
|
|
|
|
|
2010-11-24 15:10:33 +00:00
|
|
|
// List of hotkey descriptors for pcbnew
|
|
|
|
// used in hotkeys_board_editor.cpp
|
2011-09-29 16:49:40 +00:00
|
|
|
extern EDA_HOTKEY* board_edit_Hotkey_List[];
|
|
|
|
|
2010-11-24 15:10:33 +00:00
|
|
|
// List of hotkey descriptors for the module editor
|
|
|
|
// used in hotkeys_module_editor.cpp
|
2011-09-29 16:49:40 +00:00
|
|
|
extern EDA_HOTKEY* module_edit_Hotkey_List[];
|
2010-11-24 15:10:33 +00:00
|
|
|
|
2007-08-30 14:57:35 +00:00
|
|
|
|
2010-01-17 20:25:10 +00:00
|
|
|
#endif /* _PCBNEW_HOTKEYS_H_ */
|