2010-02-04 17:46:12 +00:00
|
|
|
#ifndef __EESCHEMA_ID_H__
|
|
|
|
#define __EESCHEMA_ID_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include "id.h"
|
|
|
|
|
2011-03-25 19:16:05 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The maximum number of items in the clarify selection context menu. It is
|
|
|
|
* highly unlikely that there would ever be more than 10 items at the current
|
|
|
|
* cursor. Increase this number if that ever becomes a problem.
|
|
|
|
*/
|
|
|
|
#define MAX_SELECT_ITEM_IDS 10
|
|
|
|
|
|
|
|
|
2010-02-04 17:46:12 +00:00
|
|
|
/**
|
|
|
|
* Command IDs for the schematic editor.
|
|
|
|
*
|
2011-09-30 18:15:37 +00:00
|
|
|
* Please add IDs that are unique to the schematic editor (Eeschema) here and
|
2010-02-04 17:46:12 +00:00
|
|
|
* not in the global id.h file. This will prevent the entire project from
|
2011-09-30 18:15:37 +00:00
|
|
|
* being rebuilt when adding new command to Eeschema.
|
2010-02-04 17:46:12 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
enum id_eeschema_frm
|
|
|
|
{
|
|
|
|
/* Schematic editor horizontal toolbar IDs */
|
|
|
|
ID_HIERARCHY = ID_END_LIST,
|
|
|
|
ID_TO_LIBVIEW,
|
|
|
|
ID_GET_ANNOTATE,
|
|
|
|
ID_GET_ERC,
|
|
|
|
ID_BACKANNO_ITEMS,
|
|
|
|
|
|
|
|
/* Schematic editor veritcal toolbar IDs */
|
|
|
|
ID_SCHEMATIC_VERTICAL_TOOLBAR_START,
|
|
|
|
ID_HIERARCHY_PUSH_POP_BUTT,
|
2011-02-21 13:54:29 +00:00
|
|
|
ID_SCH_PLACE_COMPONENT,
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_PLACE_POWER_BUTT,
|
|
|
|
ID_BUS_BUTT,
|
|
|
|
ID_WIRE_BUTT,
|
|
|
|
ID_BUSTOBUS_ENTRY_BUTT,
|
|
|
|
ID_WIRETOBUS_ENTRY_BUTT,
|
|
|
|
ID_LABEL_BUTT,
|
|
|
|
ID_GLABEL_BUTT,
|
|
|
|
ID_HIERLABEL_BUTT,
|
|
|
|
ID_IMPORT_HLABEL_BUTT,
|
2011-03-30 19:26:05 +00:00
|
|
|
ID_SHEET_PIN_BUTT,
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_NOCONN_BUTT,
|
|
|
|
ID_JUNCTION_BUTT,
|
|
|
|
ID_SHEET_SYMBOL_BUTT,
|
|
|
|
ID_TEXT_COMMENT_BUTT,
|
|
|
|
ID_LINE_COMMENT_BUTT,
|
2011-08-31 14:59:20 +00:00
|
|
|
ID_ADD_IMAGE_BUTT,
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_SCHEMATIC_DELETE_ITEM_BUTT,
|
|
|
|
ID_SCHEMATIC_VERTICAL_TOOLBAR_END,
|
|
|
|
|
2011-03-04 19:16:00 +00:00
|
|
|
// Toolbar options id:
|
|
|
|
ID_TB_OPTIONS_HIDDEN_PINS,
|
|
|
|
ID_TB_OPTIONS_BUS_WIRES_ORIENT,
|
|
|
|
|
2010-02-04 17:46:12 +00:00
|
|
|
/* Schematic editor context menu IDs. */
|
|
|
|
ID_POPUP_SCH_COPY_ITEM,
|
|
|
|
|
|
|
|
ID_POPUP_START_RANGE,
|
|
|
|
ID_POPUP_SCH_DELETE,
|
|
|
|
ID_POPUP_SCH_BREAK_WIRE,
|
|
|
|
ID_POPUP_SCH_DELETE_CONNECTION,
|
|
|
|
ID_POPUP_SCH_DELETE_NODE,
|
|
|
|
ID_POPUP_SCH_DELETE_CMP,
|
|
|
|
ID_POPUP_SCH_DRAG_CMP_REQUEST,
|
|
|
|
ID_POPUP_SCH_DRAG_WIRE_REQUEST,
|
|
|
|
ID_POPUP_SCH_UNUSED_2,
|
|
|
|
ID_POPUP_SCH_ENTRY_SELECT_SLASH,
|
|
|
|
ID_POPUP_SCH_ENTRY_SELECT_ANTISLASH,
|
|
|
|
|
|
|
|
ID_POPUP_SCH_EDIT_CMP,
|
|
|
|
ID_POPUP_SCH_INIT_CMP,
|
|
|
|
|
|
|
|
ID_POPUP_SCH_EDIT_TEXT,
|
|
|
|
ID_POPUP_SCH_ROTATE_TEXT,
|
|
|
|
ID_POPUP_SCH_SET_SHAPE_TEXT,
|
|
|
|
ID_POPUP_END_LINE,
|
|
|
|
ID_POPUP_SCH_END_SHEET,
|
|
|
|
ID_POPUP_SCH_EDIT_SHEET,
|
|
|
|
ID_POPUP_SCH_RESIZE_SHEET,
|
|
|
|
ID_POPUP_SCH_CLEANUP_SHEET,
|
2011-03-30 19:26:05 +00:00
|
|
|
ID_POPUP_SCH_EDIT_SHEET_PIN,
|
|
|
|
ID_POPUP_SCH_MOVE_SHEET_PIN,
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_POPUP_IMPORT_GLABEL,
|
|
|
|
ID_POPUP_SCH_GENERIC_ORIENT_CMP,
|
|
|
|
ID_POPUP_SCH_GENERIC_EDIT_CMP,
|
|
|
|
ID_POPUP_SCH_EDIT_VALUE_CMP,
|
|
|
|
ID_POPUP_SCH_EDIT_REF_CMP,
|
|
|
|
ID_POPUP_SCH_EDIT_FOOTPRINT_CMP,
|
|
|
|
ID_POPUP_SCH_EDIT_CONVERT_CMP,
|
2011-03-02 00:46:08 +00:00
|
|
|
ID_POPUP_SCH_ROTATE_FIELD,
|
|
|
|
ID_POPUP_SCH_EDIT_FIELD,
|
|
|
|
ID_POPUP_SCH_DISPLAYDOC_CMP,
|
|
|
|
ID_POPUP_SCH_ENTER_SHEET,
|
|
|
|
ID_POPUP_SCH_LEAVE_SHEET,
|
|
|
|
ID_POPUP_SCH_ADD_JUNCTION,
|
|
|
|
ID_POPUP_SCH_ADD_LABEL,
|
|
|
|
ID_POPUP_SCH_ADD_GLABEL,
|
|
|
|
ID_POPUP_SCH_GETINFO_MARKER,
|
2011-08-31 14:59:20 +00:00
|
|
|
// Edit or change image orientation or context menu command IDs.
|
|
|
|
ID_POPUP_SCH_EDIT_IMAGE,
|
|
|
|
ID_POPUP_SCH_ROTATE_IMAGE,
|
|
|
|
ID_POPUP_SCH_MIRROR_X_IMAGE,
|
|
|
|
ID_POPUP_SCH_MIRROR_Y_IMAGE,
|
2011-03-02 00:46:08 +00:00
|
|
|
ID_POPUP_END_RANGE,
|
|
|
|
|
2011-05-28 18:51:32 +00:00
|
|
|
ID_POPUP_SCH_CALL_LIBEDIT_AND_LOAD_CMP,
|
|
|
|
|
2011-03-02 00:46:08 +00:00
|
|
|
// Unit select context menus command IDs.
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_POPUP_SCH_SELECT_UNIT_CMP,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT1,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT2,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT3,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT4,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT5,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT6,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT7,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT8,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT9,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT10,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT11,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT12,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT13,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT14,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT15,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT16,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT17,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT18,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT19,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT20,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT21,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT22,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT23,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT24,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT25,
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT26,
|
|
|
|
|
2011-03-03 01:58:12 +00:00
|
|
|
// Change text type context menu command IDs.
|
|
|
|
ID_POPUP_SCH_CHANGE_TYPE_TEXT,
|
|
|
|
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_LABEL,
|
|
|
|
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_GLABEL,
|
|
|
|
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_HLABEL,
|
|
|
|
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_COMMENT,
|
|
|
|
|
2011-03-03 19:55:44 +00:00
|
|
|
// Change component orientation context menu command IDs.
|
2011-08-31 14:59:20 +00:00
|
|
|
ID_POPUP_SCH_MIRROR_X_CMP,
|
|
|
|
ID_POPUP_SCH_MIRROR_Y_CMP,
|
2011-03-03 19:55:44 +00:00
|
|
|
ID_POPUP_SCH_ROTATE_CMP_CLOCKWISE,
|
|
|
|
ID_POPUP_SCH_ROTATE_CMP_COUNTERCLOCKWISE,
|
|
|
|
ID_POPUP_SCH_ORIENT_NORMAL_CMP,
|
|
|
|
|
2011-04-27 19:44:32 +00:00
|
|
|
ID_SELECT_ITEM_START,
|
|
|
|
ID_SELECT_ITEM_END = ID_SELECT_ITEM_START + MAX_SELECT_ITEM_IDS,
|
2011-03-25 19:16:05 +00:00
|
|
|
|
2011-04-19 12:08:12 +00:00
|
|
|
ID_POPUP_SCH_MOVE_ITEM,
|
|
|
|
|
2011-02-05 19:22:58 +00:00
|
|
|
// Schematic editor commmands. These are command IDs that are generated by multiple
|
|
|
|
// events (menus, toolbar, context menu, etc.) that result in the same event handler.
|
|
|
|
ID_CANCEL_CURRENT_COMMAND,
|
|
|
|
|
2010-03-20 19:57:59 +00:00
|
|
|
/* Library editor main menubar IDs. */
|
|
|
|
ID_LIBEDIT_DIMENSIONS,
|
|
|
|
|
2010-02-04 17:46:12 +00:00
|
|
|
/* Library editor horizontal toolbar IDs. */
|
|
|
|
ID_LIBEDIT_SELECT_PART,
|
|
|
|
ID_LIBEDIT_SELECT_CURRENT_LIB,
|
|
|
|
ID_LIBEDIT_SAVE_CURRENT_LIB,
|
|
|
|
ID_LIBEDIT_SAVE_CURRENT_PART,
|
|
|
|
ID_LIBEDIT_NEW_PART,
|
2010-12-02 21:41:56 +00:00
|
|
|
ID_LIBEDIT_NEW_PART_FROM_EXISTING,
|
|
|
|
ID_LIBEDIT_GET_FRAME_EDIT_PART,
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_LIBEDIT_GET_FRAME_EDIT_FIELDS,
|
|
|
|
ID_LIBEDIT_DELETE_PART,
|
|
|
|
ID_DE_MORGAN_NORMAL_BUTT,
|
|
|
|
ID_DE_MORGAN_CONVERT_BUTT,
|
|
|
|
ID_LIBEDIT_EDIT_PIN_BY_PIN,
|
|
|
|
ID_LIBEDIT_VIEW_DOC,
|
|
|
|
ID_LIBEDIT_CHECK_PART,
|
|
|
|
|
|
|
|
ID_LIBEDIT_SELECT_PART_NUMBER,
|
|
|
|
ID_LIBEDIT_SELECT_ALIAS,
|
|
|
|
|
|
|
|
/* Library editor vertical toolbar IDs. */
|
|
|
|
ID_LIBEDIT_PIN_BUTT,
|
|
|
|
ID_LIBEDIT_BODY_LINE_BUTT,
|
|
|
|
ID_LIBEDIT_BODY_ARC_BUTT,
|
|
|
|
ID_LIBEDIT_BODY_CIRCLE_BUTT,
|
|
|
|
ID_LIBEDIT_BODY_RECT_BUTT,
|
|
|
|
ID_LIBEDIT_BODY_TEXT_BUTT,
|
|
|
|
ID_LIBEDIT_ANCHOR_ITEM_BUTT,
|
|
|
|
ID_LIBEDIT_IMPORT_BODY_BUTT,
|
|
|
|
ID_LIBEDIT_EXPORT_BODY_BUTT,
|
2011-02-21 13:54:29 +00:00
|
|
|
ID_LIBEDIT_DELETE_ITEM_BUTT,
|
2010-02-04 17:46:12 +00:00
|
|
|
|
2011-02-28 13:53:49 +00:00
|
|
|
ID_LIBEDIT_ROTATE_ITEM,
|
|
|
|
|
2010-02-04 17:46:12 +00:00
|
|
|
/* Library editor context menu IDs */
|
|
|
|
ID_LIBEDIT_EDIT_PIN,
|
|
|
|
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_ITEM,
|
|
|
|
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINSIZE_ITEM,
|
|
|
|
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINNAMESIZE_ITEM,
|
|
|
|
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINNUMSIZE_ITEM,
|
|
|
|
ID_POPUP_LIBEDIT_BODY_EDIT_ITEM,
|
|
|
|
ID_POPUP_LIBEDIT_DELETE_ITEM,
|
|
|
|
ID_POPUP_LIBEDIT_MODIFY_ITEM,
|
|
|
|
ID_POPUP_LIBEDIT_END_CREATE_ITEM,
|
|
|
|
ID_POPUP_LIBEDIT_CANCEL_EDITING,
|
|
|
|
ID_POPUP_LIBEDIT_MOVE_ITEM_REQUEST,
|
|
|
|
ID_POPUP_LIBEDIT_FIELD_EDIT_ITEM,
|
|
|
|
ID_POPUP_LIBEDIT_DELETE_CURRENT_POLY_SEGMENT,
|
2010-03-20 19:57:59 +00:00
|
|
|
|
2010-03-18 20:35:29 +00:00
|
|
|
/* Library editor menubar IDs */
|
|
|
|
ID_LIBEDIT_SAVE_CURRENT_LIB_AS,
|
|
|
|
ID_LIBEDIT_GEN_PNG_FILE,
|
|
|
|
ID_LIBEDIT_GEN_SVG_FILE,
|
2010-02-04 17:46:12 +00:00
|
|
|
|
|
|
|
/* Library viewer horizontal toolbar IDs */
|
|
|
|
ID_LIBVIEW_NEXT,
|
|
|
|
ID_LIBVIEW_PREVIOUS,
|
|
|
|
ID_LIBVIEW_SELECT_PART,
|
|
|
|
ID_LIBVIEW_SELECT_LIB,
|
|
|
|
ID_LIBVIEW_VIEWDOC,
|
|
|
|
ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT,
|
|
|
|
ID_LIBVIEW_DE_MORGAN_CONVERT_BUTT,
|
|
|
|
ID_LIBVIEW_SELECT_PART_NUMBER,
|
|
|
|
ID_LIBVIEW_LIB_LIST,
|
|
|
|
ID_LIBVIEW_CMP_LIST,
|
|
|
|
ID_LIBVIEW_LIBWINDOW,
|
|
|
|
ID_LIBVIEW_CMPWINDOW,
|
|
|
|
ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC,
|
|
|
|
ID_SET_RELATIVE_OFFSET
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __EESCHEMA_ID_H__ */
|