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.

144 lines
4.4 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_ADD_THROUGH_VIA,
  53. HK_SEL_LAYER_AND_ADD_THROUGH_VIA,
  54. HK_ADD_BLIND_BURIED_VIA,
  55. HK_SEL_LAYER_AND_ADD_BLIND_BURIED_VIA,
  56. HK_ADD_MICROVIA,
  57. HK_SWITCH_TRACK_POSTURE,
  58. HK_DRAG_TRACK_KEEP_SLOPE,
  59. HK_SWITCH_UNITS,
  60. HK_SWITCH_TRACK_DISPLAY_MODE,
  61. HK_3D_VIEWER,
  62. HK_FIND_ITEM,
  63. HK_EDIT_ITEM,
  64. HK_EDIT_MODULE_WITH_MODEDIT,
  65. HK_DUPLICATE_ITEM,
  66. HK_DUPLICATE_ITEM_AND_INCREMENT,
  67. HK_CREATE_ARRAY,
  68. HK_PLACE_ITEM,
  69. HK_SWITCH_TRACK_WIDTH_TO_NEXT,
  70. HK_SWITCH_TRACK_WIDTH_TO_PREVIOUS,
  71. HK_SWITCH_GRID_TO_FASTGRID1,
  72. HK_SWITCH_GRID_TO_FASTGRID2,
  73. HK_SWITCH_GRID_TO_NEXT,
  74. HK_SWITCH_GRID_TO_PREVIOUS,
  75. HK_SWITCH_LAYER_TO_COPPER,
  76. HK_SWITCH_LAYER_TO_COMPONENT,
  77. HK_SWITCH_LAYER_TO_NEXT,
  78. HK_SWITCH_LAYER_TO_PREVIOUS,
  79. HK_SWITCH_LAYER_TO_INNER1,
  80. HK_SWITCH_LAYER_TO_INNER2,
  81. HK_SWITCH_LAYER_TO_INNER3,
  82. HK_SWITCH_LAYER_TO_INNER4,
  83. HK_SWITCH_LAYER_TO_INNER5,
  84. HK_SWITCH_LAYER_TO_INNER6,
  85. HK_SWITCH_LAYER_TO_INNER7,
  86. HK_SWITCH_LAYER_TO_INNER8,
  87. HK_SWITCH_LAYER_TO_INNER9,
  88. HK_SWITCH_LAYER_TO_INNER10,
  89. HK_SWITCH_LAYER_TO_INNER11,
  90. HK_SWITCH_LAYER_TO_INNER12,
  91. HK_SWITCH_LAYER_TO_INNER13,
  92. HK_SWITCH_LAYER_TO_INNER14,
  93. HK_ADD_MODULE,
  94. HK_SLIDE_TRACK,
  95. HK_SWITCH_HIGHCONTRAST_MODE,
  96. HK_HIGHCONTRAST_INC,
  97. HK_HIGHCONTRAST_DEC,
  98. HK_CANVAS_LEGACY,
  99. HK_CANVAS_OPENGL,
  100. HK_CANVAS_CAIRO,
  101. HK_LEFT_CLICK,
  102. HK_LEFT_DCLICK,
  103. HK_ZONE_FILL_OR_REFILL,
  104. HK_ZONE_REMOVE_FILLED,
  105. HK_INC_LAYER_ALPHA,
  106. HK_DEC_LAYER_ALPHA,
  107. HK_SEL_TRIVIAL_CONNECTION,
  108. HK_SEL_COPPER_CONNECTION,
  109. HK_ROUTING_OPTIONS,
  110. HK_CUSTOM_TRACK_WIDTH,
  111. HK_DP_DIMENSIONS,
  112. HK_VIA_SIZE_INC,
  113. HK_VIA_SIZE_DEC
  114. };
  115. // Full list of hotkey descriptors for board editor and footprint editor
  116. extern struct EDA_HOTKEY_CONFIG g_Pcbnew_Editor_Hotkeys_Descr[];
  117. // List of hotkey descriptors for the board editor only
  118. extern struct EDA_HOTKEY_CONFIG g_Board_Editor_Hotkeys_Descr[];
  119. // List of hotkey descriptors for the footprint editor only
  120. extern struct EDA_HOTKEY_CONFIG g_Module_Editor_Hotkeys_Descr[];
  121. // List of hotkey descriptors for the footprint editor only
  122. extern struct EDA_HOTKEY_CONFIG g_Module_Viewer_Hotkeys_Descr[];
  123. // List of common hotkey descriptors
  124. // used in hotkeys_board_editor.cpp and hotkeys_module_editor.cpp
  125. extern EDA_HOTKEY* common_Hotkey_List[];
  126. // List of hotkey descriptors for pcbnew
  127. // used in hotkeys_board_editor.cpp
  128. extern EDA_HOTKEY* board_edit_Hotkey_List[];
  129. // List of hotkey descriptors for the module editor
  130. // used in hotkeys_module_editor.cpp
  131. extern EDA_HOTKEY* module_edit_Hotkey_List[];
  132. #endif /* _PCBNEW_HOTKEYS_H_ */