You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
4.9 KiB

16 years ago
16 years ago
16 years ago
16 years ago
  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
  5. * Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version 2
  10. * of the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, you may find one here:
  19. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  20. * or you may search the http://www.gnu.org website for the version 2 license,
  21. * or you may write to the Free Software Foundation, Inc.,
  22. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  23. */
  24. /**
  25. * @file pcbnew/hotkeys.h
  26. * Pcbnew hotkeys
  27. */
  28. #ifndef _PCBNEW_HOTKEYS_H
  29. #define _PCBNEW_HOTKEYS_H
  30. #include <hotkeys_basic.h>
  31. // List of hot keys id.
  32. // see also enum common_hotkey_id_commnand in hotkeys_basic.h
  33. // for shared hotkeys id
  34. enum hotkey_id_commnand {
  35. HK_DELETE = HK_COMMON_END,
  36. HK_BACK_SPACE,
  37. HK_ROTATE_ITEM,
  38. HK_ROTATE_ITEM_CLOCKWISE,
  39. HK_FLIP_ITEM,
  40. HK_COPY_ITEM,
  41. HK_MOVE_ITEM,
  42. HK_MOVE_ITEM_EXACT,
  43. HK_POSITION_RELATIVE,
  44. HK_DRAG_ITEM,
  45. HK_GET_AND_MOVE_FOOTPRINT,
  46. HK_LOCK_UNLOCK_FOOTPRINT,
  47. HK_ADD_NEW_TRACK,
  48. HK_ROUTE_DIFF_PAIR,
  49. HK_ROUTE_TUNE_SINGLE,
  50. HK_ROUTE_TUNE_DIFF_PAIR,
  51. HK_ROUTE_TUNE_SKEW,
  52. HK_ROUTE_TUNE_SETTINGS,
  53. HK_ROUTE_TUNE_INCREASE_SPACING,
  54. HK_ROUTE_TUNE_DECREASE_SPACING,
  55. HK_ROUTE_TUNE_INCREASE_AMP,
  56. HK_ROUTE_TUNE_DECREASE_AMP,
  57. HK_ADD_THROUGH_VIA,
  58. HK_SEL_LAYER_AND_ADD_THROUGH_VIA,
  59. HK_ADD_BLIND_BURIED_VIA,
  60. HK_SEL_LAYER_AND_ADD_BLIND_BURIED_VIA,
  61. HK_ADD_MICROVIA,
  62. HK_SWITCH_TRACK_POSTURE,
  63. HK_DRAG_TRACK_KEEP_SLOPE,
  64. HK_SWITCH_UNITS,
  65. HK_SWITCH_TRACK_DISPLAY_MODE,
  66. HK_3D_VIEWER,
  67. HK_FIND_ITEM,
  68. HK_EDIT_ITEM,
  69. HK_EDIT_MODULE_WITH_MODEDIT,
  70. HK_DUPLICATE_ITEM,
  71. HK_DUPLICATE_ITEM_AND_INCREMENT,
  72. HK_CREATE_ARRAY,
  73. HK_PLACE_ITEM,
  74. HK_SWITCH_TRACK_WIDTH_TO_NEXT,
  75. HK_SWITCH_TRACK_WIDTH_TO_PREVIOUS,
  76. HK_SWITCH_GRID_TO_FASTGRID1,
  77. HK_SWITCH_GRID_TO_FASTGRID2,
  78. HK_SWITCH_GRID_TO_NEXT,
  79. HK_SWITCH_GRID_TO_PREVIOUS,
  80. HK_SWITCH_LAYER_TO_COPPER,
  81. HK_SWITCH_LAYER_TO_COMPONENT,
  82. HK_SWITCH_LAYER_TO_NEXT,
  83. HK_SWITCH_LAYER_TO_PREVIOUS,
  84. HK_SWITCH_LAYER_TO_INNER1,
  85. HK_SWITCH_LAYER_TO_INNER2,
  86. HK_SWITCH_LAYER_TO_INNER3,
  87. HK_SWITCH_LAYER_TO_INNER4,
  88. HK_SWITCH_LAYER_TO_INNER5,
  89. HK_SWITCH_LAYER_TO_INNER6,
  90. HK_SWITCH_LAYER_TO_INNER7,
  91. HK_SWITCH_LAYER_TO_INNER8,
  92. HK_SWITCH_LAYER_TO_INNER9,
  93. HK_SWITCH_LAYER_TO_INNER10,
  94. HK_SWITCH_LAYER_TO_INNER11,
  95. HK_SWITCH_LAYER_TO_INNER12,
  96. HK_SWITCH_LAYER_TO_INNER13,
  97. HK_SWITCH_LAYER_TO_INNER14,
  98. HK_ADD_MODULE,
  99. HK_ADD_LINE,
  100. HK_ADD_POLYGON,
  101. HK_ADD_CIRCLE,
  102. HK_ADD_ARC,
  103. HK_ADD_TEXT,
  104. HK_ADD_DIMENSION,
  105. HK_ADD_ZONE,
  106. HK_ADD_FREE_VIA,
  107. HK_ADD_KEEPOUT,
  108. HK_ADD_CUTOUT,
  109. HK_ADD_SIMILAR_ZONE,
  110. HK_ADD_DXF,
  111. HK_ADD_ANCHOR,
  112. HK_INC_LINE_WIDTH,
  113. HK_DEC_LINE_WIDTH,
  114. HK_SWITCH_HIGHCONTRAST_MODE,
  115. HK_HIGHCONTRAST_INC,
  116. HK_HIGHCONTRAST_DEC,
  117. HK_CANVAS_LEGACY,
  118. HK_CANVAS_OPENGL,
  119. HK_CANVAS_CAIRO,
  120. HK_LEFT_CLICK,
  121. HK_LEFT_DCLICK,
  122. HK_ZONE_FILL_OR_REFILL,
  123. HK_ZONE_REMOVE_FILLED,
  124. HK_INC_LAYER_ALPHA,
  125. HK_DEC_LAYER_ALPHA,
  126. HK_SEL_TRIVIAL_CONNECTION,
  127. HK_SEL_COPPER_CONNECTION,
  128. HK_ROUTING_OPTIONS,
  129. HK_CUSTOM_TRACK_WIDTH,
  130. HK_DP_DIMENSIONS,
  131. HK_VIA_SIZE_INC,
  132. HK_VIA_SIZE_DEC,
  133. HK_HIGHLIGHT_NET_SELECTION,
  134. HK_INSERT_CORNER
  135. };
  136. // Full list of hotkey descriptors for board editor and footprint editor
  137. extern struct EDA_HOTKEY_CONFIG g_Pcbnew_Editor_Hotkeys_Descr[];
  138. // List of hotkey descriptors for the board editor only
  139. extern struct EDA_HOTKEY_CONFIG g_Board_Editor_Hotkeys_Descr[];
  140. // List of hotkey descriptors for the footprint editor only
  141. extern struct EDA_HOTKEY_CONFIG g_Module_Editor_Hotkeys_Descr[];
  142. // List of hotkey descriptors for the footprint editor only
  143. extern struct EDA_HOTKEY_CONFIG g_Module_Viewer_Hotkeys_Descr[];
  144. // List of common hotkey descriptors
  145. // used in hotkeys_board_editor.cpp and hotkeys_module_editor.cpp
  146. extern EDA_HOTKEY* common_Hotkey_List[];
  147. // List of hotkey descriptors for pcbnew
  148. // used in hotkeys_board_editor.cpp
  149. extern EDA_HOTKEY* board_edit_Hotkey_List[];
  150. // List of hotkey descriptors for the module editor
  151. // used in hotkeys_module_editor.cpp
  152. extern EDA_HOTKEY* module_edit_Hotkey_List[];
  153. #endif /* _PCBNEW_HOTKEYS_H_ */