KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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_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_CADSTAR_ARCHIVE_PROJECT , ID_IMPORT_EAGLE_PROJECT , ID_IMPORT_EASYEDA_PROJECT ,
  ID_IMPORT_EASYEDAPRO_PROJECT , ID_GIT_INITIALIZE_PROJECT , ID_GIT_CLONE_PROJECT , ID_GIT_COMMIT_PROJECT ,
  ID_GIT_COMMIT_FILE , ID_GIT_SYNC_PROJECT , ID_GIT_FETCH , ID_GIT_PUSH ,
  ID_GIT_PULL , ID_GIT_RESOLVE_CONFLICT , ID_GIT_REVERT_LOCAL , ID_GIT_COMPARE ,
  ID_GIT_REMOVE_VCS , ID_GIT_ADD_TO_INDEX , ID_GIT_REMOVE_FROM_INDEX , ID_GIT_SWITCH_BRANCH ,
  ID_GIT_SWITCH_QUICK1 , ID_GIT_SWITCH_QUICK2 , ID_GIT_SWITCH_QUICK3 , ID_GIT_SWITCH_QUICK4 ,
  ID_GIT_SWITCH_QUICK5 , ID_JOBS_RUN , 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_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_CADSTAR_ARCHIVE_PROJECT 
ID_IMPORT_EAGLE_PROJECT 
ID_IMPORT_EASYEDA_PROJECT 
ID_IMPORT_EASYEDAPRO_PROJECT 
ID_GIT_INITIALIZE_PROJECT 
ID_GIT_CLONE_PROJECT 
ID_GIT_COMMIT_PROJECT 
ID_GIT_COMMIT_FILE 
ID_GIT_SYNC_PROJECT 
ID_GIT_FETCH 
ID_GIT_PUSH 
ID_GIT_PULL 
ID_GIT_RESOLVE_CONFLICT 
ID_GIT_REVERT_LOCAL 
ID_GIT_COMPARE 
ID_GIT_REMOVE_VCS 
ID_GIT_ADD_TO_INDEX 
ID_GIT_REMOVE_FROM_INDEX 
ID_GIT_SWITCH_BRANCH 
ID_GIT_SWITCH_QUICK1 
ID_GIT_SWITCH_QUICK2 
ID_GIT_SWITCH_QUICK3 
ID_GIT_SWITCH_QUICK4 
ID_GIT_SWITCH_QUICK5 
ID_JOBS_RUN 
ID_KICADMANAGER_END_LIST 

Definition at line 56 of file kicad_id.h.