KiCad PCB EDA Suite
kicad_id.h File Reference

IDs used in KiCad main frame foe menuitems and tools. More...

#include <id.h>
#include <eda_base_frame.h>

Go to the source code of this file.

Enumerations

enum  id_kicad_frm {
  ID_LEFT_FRAME = ID_KICAD_MANAGER_START, ID_PROJECT_TREE, ID_PROJECT_TXTEDIT, ID_PROJECT_SWITCH_TO_OTHER,
  ID_PROJECT_NEWDIR, ID_PROJECT_OPEN_DIR, ID_PROJECT_DELETE, ID_PROJECT_PRINT,
  ID_PROJECT_RENAME, ID_EDIT_LOCAL_FILE_IN_TEXT_EDITOR, ID_BROWSE_IN_FILE_EXPLORER, ID_SAVE_AND_ZIP_FILES,
  ID_READ_ZIP_ARCHIVE, ID_INIT_WATCHED_PATHS, ID_IMPORT_EAGLE_PROJECT, ID_KICADMANAGER_END_LIST
}
 Command IDs for KiCad. More...
 

Detailed Description

IDs used in KiCad main frame foe menuitems and tools.

Definition in file kicad_id.h.

Enumeration Type Documentation

◆ id_kicad_frm

Command IDs for KiCad.

Please add IDs that are unique to Kicad here and not in the global id.h file. This will prevent the entire project from being rebuilt when adding new commands to KiCad.

However, now the Kicad manager and other sub applications are running inside the same application, these IDs are kept unique inside the whole Kicad code See the global id.h which reserves room for the Kicad manager IDs and expand this room if needed

We have experienced issues with duplicate menus IDs between frames because wxUpdateUIEvent events are sent to parent frames, when a wxUpdateUIEvent event function does not exists for some menuitems ID, and therefore with duplicate menuitems IDs in different frames, the wrong menuitem can be used by a function called by the wxUpdateUIEvent event loop.

The number of items in this list should be less than ROOM_FOR_KICADMANAGER (see id.h)

Enumerator
ID_LEFT_FRAME 
ID_PROJECT_TREE 
ID_PROJECT_TXTEDIT 
ID_PROJECT_SWITCH_TO_OTHER 
ID_PROJECT_NEWDIR 
ID_PROJECT_OPEN_DIR 
ID_PROJECT_DELETE 
ID_PROJECT_PRINT 
ID_PROJECT_RENAME 
ID_EDIT_LOCAL_FILE_IN_TEXT_EDITOR 
ID_BROWSE_IN_FILE_EXPLORER 
ID_SAVE_AND_ZIP_FILES 
ID_READ_ZIP_ARCHIVE 
ID_INIT_WATCHED_PATHS 
ID_IMPORT_EAGLE_PROJECT 
ID_KICADMANAGER_END_LIST 

Definition at line 56 of file kicad_id.h.