222 lines
5.6 KiB
C
222 lines
5.6 KiB
C
/* Liste des identificateurs des boutons et menus */
|
|
#ifndef ID_H
|
|
#define ID_H
|
|
|
|
#define MAX_ITEMS_IN_PICKER 15 ///< max no. items in the popup menu for item selection
|
|
|
|
/**
|
|
* Common command IDs shared by more than one of the kicad applications.
|
|
*
|
|
* Only place command IDs used in base window class event tables or shared
|
|
* across multple applications such as the zoom, grid, and language IDs.
|
|
* Application specific IDs should be defined in the appropriate header
|
|
* file to prevent the entire project from being rebuilt.
|
|
*/
|
|
|
|
enum main_id
|
|
{
|
|
ID_TO_PCB = wxID_HIGHEST,
|
|
ID_TO_CVPCB,
|
|
ID_LOAD_PROJECT,
|
|
ID_LOAD_ONE_SHEET,
|
|
ID_NEW_PROJECT,
|
|
ID_SAVE_PROJECT,
|
|
ID_SAVE_ONE_SHEET,
|
|
ID_SAVE_ONE_SHEET_AS,
|
|
ID_LOAD_FILE,
|
|
ID_APPEND_FILE,
|
|
ID_NEW_BOARD,
|
|
ID_SAVE_BOARD,
|
|
ID_SAVE_BOARD_AS,
|
|
|
|
ID_CONFIG_REQ,
|
|
ID_CONFIG_SAVE,
|
|
ID_CONFIG_READ,
|
|
|
|
ID_PREFERENCES_HOTKEY_START,
|
|
ID_PREFERENCES_HOTKEY_SUBMENU,
|
|
ID_PREFERENCES_HOTKEY_EXPORT_CONFIG,
|
|
ID_PREFERENCES_HOTKEY_IMPORT_CONFIG,
|
|
ID_PREFERENCES_HOTKEY_SHOW_EDITOR,
|
|
ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST,
|
|
ID_PREFERENCES_HOTKEY_END,
|
|
|
|
ID_GEN_PLOT,
|
|
ID_GEN_PLOT_PS,
|
|
ID_GEN_PLOT_HPGL,
|
|
ID_GEN_PLOT_GERBER,
|
|
ID_GEN_PLOT_SVG,
|
|
ID_GEN_PLOT_DXF,
|
|
ID_GEN_COPY_SHEET_TO_CLIPBOARD,
|
|
ID_GEN_COPY_BLOCK_TO_CLIPBOARD,
|
|
|
|
ID_GEN_EXPORT_FILE,
|
|
ID_GEN_EXPORT_SPECCTRA,
|
|
ID_GEN_EXPORT_FILE_GENCADFORMAT,
|
|
ID_GEN_EXPORT_FILE_MODULE_REPORT,
|
|
|
|
ID_GEN_IMPORT_FILE,
|
|
ID_GEN_IMPORT_SPECCTRA_SESSION,
|
|
ID_GEN_IMPORT_SPECCTRA_DESIGN,
|
|
|
|
ID_EXIT,
|
|
ID_OPTIONS_SETUP,
|
|
|
|
// Find id menu
|
|
ID_H_TOOLBAR,
|
|
ID_V_TOOLBAR,
|
|
ID_OPT_TOOLBAR,
|
|
ID_AUX_TOOLBAR,
|
|
|
|
ID_GENERAL_HELP,
|
|
ID_HELP_COPY_VERSION_STRING,
|
|
ID_LOCAL_HELP,
|
|
ID_KICAD_ABOUT,
|
|
|
|
ID_EDIT,
|
|
ID_NO_TOOL_SELECTED,
|
|
ID_SEL_BG_COLOR,
|
|
|
|
ID_COLORS_SETUP,
|
|
|
|
ID_REPEAT_BUTT,
|
|
|
|
ID_LANGUAGE_CHOICE,
|
|
ID_LANGUAGE_DEFAULT,
|
|
ID_LANGUAGE_ENGLISH,
|
|
ID_LANGUAGE_FRENCH,
|
|
ID_LANGUAGE_FINNISH,
|
|
ID_LANGUAGE_SPANISH,
|
|
ID_LANGUAGE_GERMAN,
|
|
ID_LANGUAGE_GREEK,
|
|
ID_LANGUAGE_RUSSIAN,
|
|
ID_LANGUAGE_PORTUGUESE,
|
|
ID_LANGUAGE_ITALIAN,
|
|
ID_LANGUAGE_SLOVENIAN,
|
|
ID_LANGUAGE_HUNGARIAN,
|
|
ID_LANGUAGE_POLISH,
|
|
ID_LANGUAGE_CZECH,
|
|
ID_LANGUAGE_KOREAN,
|
|
ID_LANGUAGE_CATALAN,
|
|
ID_LANGUAGE_CHINESE_SIMPLIFIED,
|
|
ID_LANGUAGE_DUTCH,
|
|
ID_LANGUAGE_JAPANESE,
|
|
ID_LANGUAGE_CHOICE_END,
|
|
|
|
ID_SET_REPEAT_OPTION,
|
|
|
|
// Popup Menu (mouse Right button) (id consecutifs)
|
|
|
|
ID_POPUP_GENERAL_START_RANGE, // first number
|
|
ID_POPUP_CANCEL_CURRENT_COMMAND,
|
|
ID_POPUP_CLOSE_CURRENT_TOOL,
|
|
ID_POPUP_MOVE_BLOCK,
|
|
ID_POPUP_DRAG_BLOCK,
|
|
ID_POPUP_COPY_BLOCK,
|
|
ID_POPUP_ROTATE_BLOCK,
|
|
ID_POPUP_DELETE_BLOCK,
|
|
ID_POPUP_FLIP_BLOCK,
|
|
ID_POPUP_PLACE_BLOCK,
|
|
ID_POPUP_ZOOM_BLOCK,
|
|
ID_POPUP_SELECT_ITEMS_BLOCK,
|
|
ID_POPUP_MIRROR_X_BLOCK,
|
|
ID_POPUP_MIRROR_Y_BLOCK,
|
|
ID_POPUP_MIRROR_UNUSED0,
|
|
ID_POPUP_MIRROR_UNUSED1,
|
|
ID_POPUP_MIRROR_UNUSED2,
|
|
ID_POPUP_MIRROR_UNUSED3,
|
|
ID_POPUP_OTHER_COMMANDS,
|
|
ID_POPUP_GENERAL_END_RANGE, // last number
|
|
|
|
ID_POPUP_ENTER_MENU,
|
|
|
|
ID_ON_ZOOM_SELECT,
|
|
ID_POPUP_ZOOM_START_RANGE, // first zoom id
|
|
ID_POPUP_CANCEL,
|
|
ID_POPUP_ZOOM_IN,
|
|
ID_POPUP_ZOOM_OUT,
|
|
ID_POPUP_ZOOM_SELECT,
|
|
ID_POPUP_ZOOM_CENTER,
|
|
|
|
/* Reserve IDs for popup menu zoom levels. If you need more
|
|
* levels of zoom, change ID_POPUP_ZOOM_LEVEL_END. Note that more
|
|
* than 15 entries in a context submenu may get too large to display
|
|
* cleanly. Add any additional popup zoom IDs above here or the
|
|
* zoom event handler will not work properly.
|
|
* currently room is provided for 32 levels (this is a very large value).
|
|
* Pcbnew use 18 values. For schematic 15 is enought
|
|
*/
|
|
ID_POPUP_ZOOM_LEVEL_START,
|
|
ID_POPUP_ZOOM_LEVEL_END = ID_POPUP_ZOOM_LEVEL_START + 32,
|
|
ID_POPUP_ZOOM_END_RANGE, // last zoom id
|
|
|
|
ID_ON_GRID_SELECT,
|
|
ID_POPUP_GRID_PLUS,
|
|
ID_POPUP_GRID_MOINS,
|
|
ID_POPUP_GRID_SELECT,
|
|
ID_POPUP_GRID_LEVEL_1000, // id for first predefined grid in inches (1000 * 0.0001 inch)
|
|
ID_POPUP_GRID_LEVEL_500,
|
|
ID_POPUP_GRID_LEVEL_250,
|
|
ID_POPUP_GRID_LEVEL_200,
|
|
ID_POPUP_GRID_LEVEL_100,
|
|
ID_POPUP_GRID_LEVEL_50,
|
|
ID_POPUP_GRID_LEVEL_25,
|
|
ID_POPUP_GRID_LEVEL_20,
|
|
ID_POPUP_GRID_LEVEL_10,
|
|
ID_POPUP_GRID_LEVEL_5,
|
|
ID_POPUP_GRID_LEVEL_2,
|
|
ID_POPUP_GRID_LEVEL_1, // id for last predefined grid in inches ( 0.0001 inch)
|
|
ID_POPUP_GRID_LEVEL_5MM,
|
|
ID_POPUP_GRID_LEVEL_2_5MM,
|
|
ID_POPUP_GRID_LEVEL_1MM, // id for first predefined grid in mm (1mm)
|
|
ID_POPUP_GRID_LEVEL_0_5MM,
|
|
ID_POPUP_GRID_LEVEL_0_25MM,
|
|
ID_POPUP_GRID_LEVEL_0_2MM,
|
|
ID_POPUP_GRID_LEVEL_0_1MM,
|
|
ID_POPUP_GRID_LEVEL_0_0_5MM,
|
|
ID_POPUP_GRID_LEVEL_0_0_25MM,
|
|
ID_POPUP_GRID_LEVEL_0_0_1MM,
|
|
ID_POPUP_GRID_USER,
|
|
|
|
ID_SHEET_SET,
|
|
ID_TO_LIBRARY,
|
|
ID_COMPONENT_BUTT,
|
|
|
|
ID_ZOOM_IN,
|
|
ID_ZOOM_OUT,
|
|
ID_ZOOM_PAGE,
|
|
ID_ZOOM_REDRAW,
|
|
|
|
/* Panning command event IDs. */
|
|
ID_PAN_UP,
|
|
ID_PAN_DOWN,
|
|
ID_PAN_LEFT,
|
|
ID_PAN_RIGHT,
|
|
|
|
ID_GET_NETLIST,
|
|
ID_GET_TOOLS,
|
|
ID_FIND_ITEMS,
|
|
|
|
ID_EDA_SOCKET_EVENT_SERV,
|
|
ID_EDA_SOCKET_EVENT,
|
|
|
|
/* Command IDs common to PCBNew and cvpcb. */
|
|
ID_PCB_DISPLAY_FOOTPRINT_DOC,
|
|
|
|
// Common to all
|
|
ID_TB_OPTIONS_SELECT_UNIT_MM,
|
|
ID_TB_OPTIONS_SELECT_UNIT_INCH,
|
|
ID_TB_OPTIONS_SELECT_CURSOR,
|
|
ID_TB_OPTIONS_SHOW_POLAR_COORD,
|
|
ID_TB_OPTIONS_SHOW_GRID,
|
|
|
|
// Common to pcbnew, cvpcb
|
|
ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH,
|
|
ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH,
|
|
ID_TB_OPTIONS_SHOW_PADS_SKETCH,
|
|
|
|
ID_END_LIST
|
|
};
|
|
|
|
#endif /* define ID_H */
|