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.

94 lines
3.2 KiB

9 years ago
  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2008 Wayne Stambaugh <stambaughw@gmail.com>
  5. * Copyright (C) 2008-2021 KiCad Developers, see change_log.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. #ifndef __EESCHEMA_ID_H__
  25. #define __EESCHEMA_ID_H__
  26. #include <id.h>
  27. /**
  28. * The maximum number of items in the clarify selection context menu. While in
  29. * most cases it is highly unlikely that there would ever be more than 10 items
  30. * at the current cursor, there are some exceptions (a bunch of pins created at
  31. * once, for instance). The current setting of 200 is arbitrary.
  32. */
  33. #define MAX_SELECT_ITEM_IDS 200
  34. /**
  35. * The maximum number of units per package.
  36. * While counts approaching 100 start to make the unit-selection popup menu
  37. * difficult to use, the limit is currently 'ZZ' (26 * 26).
  38. */
  39. #define MAX_UNIT_COUNT_PER_PACKAGE 676
  40. /**
  41. * Command IDs for the schematic editor.
  42. *
  43. * Please add IDs that are unique to the schematic editor (Eeschema) here and
  44. * not in the global id.h file. This will prevent the entire project from
  45. * being rebuilt when adding new command to Eeschema.
  46. */
  47. enum id_eeschema_frm
  48. {
  49. ID_IMPORT_NON_KICAD_SCH = ID_END_LIST,
  50. /* Library editor horizontal toolbar IDs. */
  51. ID_LIBEDIT_SELECT_UNIT_NUMBER,
  52. /* Library viewer horizontal toolbar IDs */
  53. ID_LIBVIEW_SELECT_PART,
  54. ID_LIBVIEW_NEXT,
  55. ID_LIBVIEW_PREVIOUS,
  56. ID_LIBVIEW_SELECT_UNIT_NUMBER,
  57. ID_LIBVIEW_LIB_LIST,
  58. ID_LIBVIEW_SYM_LIST,
  59. ID_SIM_RUN,
  60. ID_SIM_TUNE,
  61. ID_SIM_PROBE,
  62. ID_SIM_ADD_SIGNALS,
  63. ID_END_EESCHEMA_ID_LIST, // End of IDs specific to Eeschema
  64. // These ID are used in context menus,
  65. // and must not clash with any other menu ID inside Kicad
  66. // So used ID inside the reserved popup ID
  67. //
  68. // Dynamically bound in AddMenusForBus():
  69. ID_POPUP_SCH_UNFOLD_BUS = ID_POPUP_MENU_START,
  70. ID_POPUP_SCH_UNFOLD_BUS_END = ID_POPUP_SCH_UNFOLD_BUS + 128,
  71. // Unit select context menus command IDs.
  72. ID_POPUP_SCH_SELECT_UNIT_CMP,
  73. ID_POPUP_SCH_SELECT_UNIT1,
  74. // ... leave room for MAX_UNIT_COUNT_PER_PACKAGE IDs ,
  75. // to select one unit among MAX_UNIT_COUNT_PER_PACKAGE in popup menu
  76. ID_POPUP_SCH_SELECT_UNIT_SYM_MAX = ID_POPUP_SCH_SELECT_UNIT1 + MAX_UNIT_COUNT_PER_PACKAGE
  77. };
  78. #endif /* __EESCHEMA_ID_H__ */