KiCad PCB EDA Suite
eeschema_id.h File Reference
#include <id.h>

Go to the source code of this file.

Macros

#define MAX_SELECT_ITEM_IDS   200
 The maximum number of items in the clarify selection context menu. More...
 
#define MAX_UNIT_COUNT_PER_PACKAGE   676
 The maximum number of units per package. More...
 

Enumerations

enum  id_eeschema_frm {
  ID_IMPORT_NON_KICAD_SCH = ID_END_LIST, ID_LIBEDIT_SELECT_PART_NUMBER, ID_LIBEDIT_IMPORT_BODY_BUTT, ID_LIBEDIT_EXPORT_BODY_BUTT,
  ID_LIBVIEW_SELECT_PART, ID_LIBVIEW_NEXT, ID_LIBVIEW_PREVIOUS, ID_LIBVIEW_SELECT_PART_NUMBER,
  ID_LIBVIEW_LIB_LIST, ID_LIBVIEW_CMP_LIST, ID_SIM_RUN, ID_SIM_TUNE,
  ID_SIM_PROBE, ID_SIM_ADD_SIGNALS, ID_END_EESCHEMA_ID_LIST, ID_POPUP_SCH_UNFOLD_BUS = ID_POPUP_MENU_START,
  ID_POPUP_SCH_UNFOLD_BUS_END = ID_POPUP_SCH_UNFOLD_BUS + 128, ID_POPUP_SCH_SELECT_UNIT_CMP, ID_POPUP_SCH_SELECT_UNIT1, ID_POPUP_SCH_SELECT_UNIT_CMP_MAX = ID_POPUP_SCH_SELECT_UNIT1 + MAX_UNIT_COUNT_PER_PACKAGE
}
 Command IDs for the schematic editor. More...
 

Macro Definition Documentation

◆ MAX_SELECT_ITEM_IDS

#define MAX_SELECT_ITEM_IDS   200

The maximum number of items in the clarify selection context menu.

While in most cases it is highly unlikely that there would ever be more than 10 items at the current cursor, there are some exceptions (a bunch of pins created at once, for instance). The current setting of 200 is arbitrary.

Definition at line 37 of file eeschema_id.h.

◆ MAX_UNIT_COUNT_PER_PACKAGE

#define MAX_UNIT_COUNT_PER_PACKAGE   676

The maximum number of units per package.

While counts approaching 100 start to make the unit-selection popup menu difficult to use, the limit is currently 'ZZ' (26 * 26).

Definition at line 44 of file eeschema_id.h.

Enumeration Type Documentation

◆ id_eeschema_frm

Command IDs for the schematic editor.

Please add IDs that are unique to the schematic editor (Eeschema) here and not in the global id.h file. This will prevent the entire project from being rebuilt when adding new command to Eeschema.

Enumerator
ID_IMPORT_NON_KICAD_SCH 
ID_LIBEDIT_SELECT_PART_NUMBER 
ID_LIBEDIT_IMPORT_BODY_BUTT 
ID_LIBEDIT_EXPORT_BODY_BUTT 
ID_LIBVIEW_SELECT_PART 
ID_LIBVIEW_NEXT 
ID_LIBVIEW_PREVIOUS 
ID_LIBVIEW_SELECT_PART_NUMBER 
ID_LIBVIEW_LIB_LIST 
ID_LIBVIEW_CMP_LIST 
ID_SIM_RUN 
ID_SIM_TUNE 
ID_SIM_PROBE 
ID_SIM_ADD_SIGNALS 
ID_END_EESCHEMA_ID_LIST 
ID_POPUP_SCH_UNFOLD_BUS 
ID_POPUP_SCH_UNFOLD_BUS_END 
ID_POPUP_SCH_SELECT_UNIT_CMP 
ID_POPUP_SCH_SELECT_UNIT1 
ID_POPUP_SCH_SELECT_UNIT_CMP_MAX 

Definition at line 55 of file eeschema_id.h.

56 {
58 
59  /* Library editor horizontal toolbar IDs. */
61 
62  /* Library editor vertical toolbar IDs. */
65 
66  /* Library viewer horizontal toolbar IDs */
73 
74  ID_SIM_RUN,
78 
79  ID_END_EESCHEMA_ID_LIST, // End of IDs specific to Eeschema
80 
81  // These ID are used in context menus,
82  // and must not clash with any other menu ID inside Kicad
83  // So used ID inside the reserved popup ID
84  //
85  // Dynamically bound in AddMenusForBus():
88 
89  // Unit select context menus command IDs.
92  // ... leave room for MAX_UNIT_COUNT_PER_PACKAGE IDs ,
93  // to select one unit among MAX_UNIT_COUNT_PER_PACKAGE in popup menu
95 };
#define MAX_UNIT_COUNT_PER_PACKAGE
The maximum number of units per package.
Definition: eeschema_id.h:44