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...
 
#define MAX_BUS_UNFOLD_MENU_ITEMS   1024
 While it would seem that an unfold-from-bus menu with over 100 items would be hard to deal with, we've already had one user who wants 256. More...
 

Enumerations

enum  id_eeschema_frm {
  ID_IMPORT_NON_KICAD_SCH = ID_END_LIST, ID_LIBEDIT_SELECT_UNIT_NUMBER, ID_LIBVIEW_SELECT_PART, ID_LIBVIEW_NEXT,
  ID_LIBVIEW_PREVIOUS, ID_LIBVIEW_SELECT_UNIT_NUMBER, ID_LIBVIEW_LIB_LIST, ID_LIBVIEW_SYM_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 + MAX_BUS_UNFOLD_MENU_ITEMS, ID_POPUP_SCH_SELECT_UNIT_CMP,
  ID_POPUP_SCH_SELECT_UNIT1, ID_POPUP_SCH_SELECT_UNIT_SYM_MAX = ID_POPUP_SCH_SELECT_UNIT1 + MAX_UNIT_COUNT_PER_PACKAGE
}
 Command IDs for the schematic editor. More...
 

Variables

enum id_eeschema_frm kiface
 

Macro Definition Documentation

◆ MAX_BUS_UNFOLD_MENU_ITEMS

#define MAX_BUS_UNFOLD_MENU_ITEMS   1024

While it would seem that an unfold-from-bus menu with over 100 items would be hard to deal with, we've already had one user who wants 256.

Definition at line 50 of file eeschema_id.h.

◆ 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_UNIT_NUMBER 
ID_LIBVIEW_SELECT_PART 
ID_LIBVIEW_NEXT 
ID_LIBVIEW_PREVIOUS 
ID_LIBVIEW_SELECT_UNIT_NUMBER 
ID_LIBVIEW_LIB_LIST 
ID_LIBVIEW_SYM_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_SYM_MAX 

Definition at line 61 of file eeschema_id.h.

62 {
64 
65  /* Library editor horizontal toolbar IDs. */
67 
68  /* Library viewer horizontal toolbar IDs */
75 
76  ID_SIM_RUN,
80 
81  ID_END_EESCHEMA_ID_LIST, // End of IDs specific to Eeschema
82 
83  // These ID are used in context menus,
84  // and must not clash with any other menu ID inside Kicad
85  // So used ID inside the reserved popup ID
86  //
87  // Dynamically bound in AddMenusForBus():
90 
91  // Unit select context menus command IDs.
94  // ... leave room for MAX_UNIT_COUNT_PER_PACKAGE IDs ,
95  // to select one unit among MAX_UNIT_COUNT_PER_PACKAGE in popup menu
97 };
#define MAX_UNIT_COUNT_PER_PACKAGE
The maximum number of units per package.
Definition: eeschema_id.h:44
#define MAX_BUS_UNFOLD_MENU_ITEMS
While it would seem that an unfold-from-bus menu with over 100 items would be hard to deal with,...
Definition: eeschema_id.h:50

Variable Documentation

◆ kiface

enum id_eeschema_frm kiface