2011-10-19 20:32:21 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2017-10-22 00:48:25 +00:00
|
|
|
* Copyright (C) 2008 Wayne Stambaugh <stambaughw@gmail.com>
|
2019-04-14 00:44:05 +00:00
|
|
|
* Copyright (C) 2008-2019 KiCad Developers, see change_log.txt for contributors.
|
2011-10-19 20:32:21 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2010-02-04 17:46:12 +00:00
|
|
|
#ifndef __EESCHEMA_ID_H__
|
|
|
|
#define __EESCHEMA_ID_H__
|
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <id.h>
|
2010-02-04 17:46:12 +00:00
|
|
|
|
2011-03-25 19:16:05 +00:00
|
|
|
|
|
|
|
/**
|
2018-09-13 19:24:22 +00:00
|
|
|
* 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.
|
2011-03-25 19:16:05 +00:00
|
|
|
*/
|
2018-09-13 19:24:22 +00:00
|
|
|
#define MAX_SELECT_ITEM_IDS 200
|
2011-03-25 19:16:05 +00:00
|
|
|
|
2015-04-07 13:19:30 +00:00
|
|
|
/**
|
|
|
|
* The maximum number of units per package.
|
2018-08-12 10:21:08 +00:00
|
|
|
* While counts approaching 100 start to make the unit-selection popup menu
|
|
|
|
* difficult to use, the limit is currently 'ZZ' (26 * 26).
|
2015-04-07 13:19:30 +00:00
|
|
|
*/
|
2018-08-12 10:21:08 +00:00
|
|
|
#define MAX_UNIT_COUNT_PER_PACKAGE 676
|
2015-04-07 13:19:30 +00:00
|
|
|
|
2011-03-25 19:16:05 +00:00
|
|
|
|
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
|
|
|
|
{
|
2012-10-13 18:23:03 +00:00
|
|
|
ID_UPDATE_ONE_SHEET = ID_END_LIST,
|
2012-09-28 17:47:41 +00:00
|
|
|
ID_SAVE_ONE_SHEET_UNDER_NEW_NAME,
|
2017-09-20 14:20:38 +00:00
|
|
|
ID_IMPORT_NON_KICAD_SCH,
|
2012-09-28 17:47:41 +00:00
|
|
|
|
2015-04-25 22:26:51 +00:00
|
|
|
/* Schematic editor main menubar IDs. */
|
|
|
|
ID_RESCUE_CACHED,
|
2017-08-12 12:09:39 +00:00
|
|
|
ID_EDIT_SYM_LIB_TABLE,
|
2019-03-11 21:32:05 +00:00
|
|
|
ID_BUS_MANAGER,
|
2017-10-22 00:48:25 +00:00
|
|
|
ID_REMAP_SYMBOLS,
|
2017-11-20 16:14:25 +00:00
|
|
|
ID_EDIT_COMPONENTS_TO_SYMBOLS_LIB_ID,
|
2018-09-04 00:00:17 +00:00
|
|
|
ID_GRID_SETTINGS,
|
2015-04-25 22:26:51 +00:00
|
|
|
|
2010-02-04 17:46:12 +00:00
|
|
|
/* Schematic editor horizontal toolbar IDs */
|
2012-10-13 18:23:03 +00:00
|
|
|
ID_HIERARCHY,
|
2019-05-06 20:37:54 +00:00
|
|
|
ID_SCH_LEAVE_SHEET,
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_TO_LIBVIEW,
|
|
|
|
ID_GET_ANNOTATE,
|
|
|
|
ID_GET_ERC,
|
|
|
|
ID_BACKANNO_ITEMS,
|
2017-08-25 13:27:06 +00:00
|
|
|
ID_UPDATE_FIELDS,
|
2012-09-17 17:42:27 +00:00
|
|
|
ID_GEN_PLOT_SCHEMATIC,
|
2010-02-04 17:46:12 +00:00
|
|
|
|
2018-04-01 18:58:27 +00:00
|
|
|
/* Schematic editor vertical toolbar IDs */
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_SCHEMATIC_VERTICAL_TOOLBAR_START,
|
2019-04-14 00:44:05 +00:00
|
|
|
ID_HIGHLIGHT_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,
|
2019-04-15 23:56:41 +00:00
|
|
|
ID_GLOBALLABEL_BUTT,
|
2010-02-04 17:46:12 +00:00
|
|
|
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,
|
|
|
|
|
2018-04-01 18:58:27 +00:00
|
|
|
// Schematic editor menu place IDs (equivalent to vertical toolbar IDs
|
|
|
|
// for submenus.
|
|
|
|
// On Windows we cannot use the same ID for 2 items in the same frame.
|
|
|
|
// Usually it creates issues (wxASSERTS, item not displayed, ...)
|
|
|
|
ID_SCHEMATIC_PLACE_MENU_START,
|
|
|
|
ID_MENU_PLACE_COMPONENT,
|
|
|
|
ID_MENU_PLACE_POWER_BUTT,
|
|
|
|
ID_MENU_BUS_BUTT,
|
|
|
|
ID_MENU_WIRE_BUTT,
|
|
|
|
ID_MENU_BUSTOBUS_ENTRY_BUTT,
|
|
|
|
ID_MENU_WIRETOBUS_ENTRY_BUTT,
|
|
|
|
ID_MENU_LABEL_BUTT,
|
|
|
|
ID_MENU_GLABEL_BUTT,
|
|
|
|
ID_MENU_HIERLABEL_BUTT,
|
|
|
|
ID_MENU_IMPORT_HLABEL_BUTT,
|
|
|
|
ID_MENU_SHEET_PIN_BUTT,
|
|
|
|
ID_MENU_NOCONN_BUTT,
|
|
|
|
ID_MENU_JUNCTION_BUTT,
|
|
|
|
ID_MENU_SHEET_SYMBOL_BUTT,
|
|
|
|
ID_MENU_TEXT_COMMENT_BUTT,
|
|
|
|
ID_MENU_LINE_COMMENT_BUTT,
|
|
|
|
ID_MENU_ADD_IMAGE_BUTT,
|
|
|
|
ID_MENU_DELETE_ITEM_BUTT,
|
|
|
|
ID_SCHEMATIC_PLACE_MENU_END,
|
|
|
|
|
2011-03-04 19:16:00 +00:00
|
|
|
// Toolbar options id:
|
|
|
|
ID_TB_OPTIONS_HIDDEN_PINS,
|
|
|
|
ID_TB_OPTIONS_BUS_WIRES_ORIENT,
|
|
|
|
|
2019-03-11 21:32:05 +00:00
|
|
|
// Dynamically bound in AddMenusForBus()
|
|
|
|
ID_POPUP_SCH_UNFOLD_BUS,
|
|
|
|
ID_POPUP_SCH_UNFOLD_BUS_END = ID_POPUP_SCH_UNFOLD_BUS + 64,
|
|
|
|
|
2019-05-06 20:37:54 +00:00
|
|
|
ID_SCH_DISPLAYDOC_CMP,
|
|
|
|
ID_SCH_CALL_LIBEDIT_AND_LOAD_CMP,
|
2011-05-28 18:51:32 +00:00
|
|
|
|
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,
|
2015-04-07 13:19:30 +00:00
|
|
|
// ... leave room for MAX_UNIT_COUNT_PER_PACKAGE IDs ,
|
|
|
|
// to select one unit among MAX_UNIT_COUNT_PER_PACKAGE in popup menu
|
|
|
|
ID_POPUP_SCH_SELECT_UNIT_CMP_MAX = ID_POPUP_SCH_SELECT_UNIT1
|
|
|
|
+ MAX_UNIT_COUNT_PER_PACKAGE,
|
2010-02-04 17:46:12 +00:00
|
|
|
|
2011-10-28 20:30:50 +00:00
|
|
|
// Change orientation command IDs.
|
|
|
|
ID_SCH_MIRROR_X,
|
|
|
|
ID_SCH_MIRROR_Y,
|
|
|
|
|
|
|
|
ID_SCH_ROTATE_CLOCKWISE,
|
|
|
|
ID_SCH_ROTATE_COUNTERCLOCKWISE,
|
2011-10-27 13:34:28 +00:00
|
|
|
ID_SCH_EDIT_ITEM,
|
|
|
|
ID_SCH_EDIT_COMPONENT_VALUE,
|
|
|
|
ID_SCH_EDIT_COMPONENT_REFERENCE,
|
|
|
|
ID_SCH_EDIT_COMPONENT_FOOTPRINT,
|
2019-04-27 14:32:40 +00:00
|
|
|
ID_SCH_MOVE,
|
|
|
|
ID_SCH_DRAG,
|
|
|
|
ID_SCH_DUPLICATE,
|
|
|
|
ID_SCH_DELETE,
|
2019-04-28 23:34:43 +00:00
|
|
|
ID_SCH_END_LINE_WIRE_OR_BUS,
|
2019-03-11 21:32:05 +00:00
|
|
|
ID_SCH_UNFOLD_BUS,
|
2011-04-19 12:08:12 +00:00
|
|
|
|
2015-12-13 16:56:47 +00:00
|
|
|
ID_AUTOPLACE_FIELDS,
|
|
|
|
|
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,
|
|
|
|
|
2019-04-30 13:54:32 +00:00
|
|
|
ID_HOTKEY_SELECT_NODE,
|
|
|
|
ID_HOTKEY_SELECT_CONNECTION,
|
2016-11-16 12:09:34 +00:00
|
|
|
ID_HOTKEY_HIGHLIGHT,
|
2019-04-14 00:44:05 +00:00
|
|
|
ID_HIGHLIGHT_NET,
|
2019-04-15 21:09:14 +00:00
|
|
|
ID_ADD_PART_TO_SCHEMATIC,
|
2016-11-16 12:09:34 +00:00
|
|
|
|
2018-07-27 10:46:09 +00:00
|
|
|
/* Library editor: edit events */
|
2017-10-31 11:13:20 +00:00
|
|
|
ID_LIBEDIT_NEW_LIBRARY,
|
|
|
|
ID_LIBEDIT_ADD_LIBRARY,
|
2018-07-27 10:46:09 +00:00
|
|
|
ID_LIBEDIT_SAVE,
|
|
|
|
ID_LIBEDIT_SAVE_AS,
|
|
|
|
ID_LIBEDIT_SAVE_ALL,
|
|
|
|
ID_LIBEDIT_REVERT,
|
2017-11-12 17:55:20 +00:00
|
|
|
ID_LIBEDIT_NEW_PART,
|
|
|
|
ID_LIBEDIT_EDIT_PART,
|
|
|
|
ID_LIBEDIT_IMPORT_PART,
|
|
|
|
ID_LIBEDIT_EXPORT_PART,
|
|
|
|
ID_LIBEDIT_REMOVE_PART,
|
2018-08-29 20:53:41 +00:00
|
|
|
ID_LIBEDIT_CUT_PART,
|
|
|
|
ID_LIBEDIT_COPY_PART,
|
|
|
|
ID_LIBEDIT_PASTE_PART,
|
2017-11-13 19:39:36 +00:00
|
|
|
ID_LIBEDIT_DUPLICATE_PART,
|
2017-10-31 11:13:20 +00:00
|
|
|
|
|
|
|
/* Library editor horizontal toolbar IDs. */
|
2012-01-23 04:33:36 +00:00
|
|
|
ID_DE_MORGAN_NORMAL_BUTT,
|
|
|
|
ID_DE_MORGAN_CONVERT_BUTT,
|
2018-01-23 11:15:19 +00:00
|
|
|
ID_LIBEDIT_SYNC_PIN_EDIT,
|
2015-03-27 10:26:07 +00:00
|
|
|
ID_LIBEDIT_EDIT_PIN_BY_TABLE,
|
2012-01-23 04:33:36 +00:00
|
|
|
ID_LIBEDIT_VIEW_DOC,
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_LIBEDIT_CHECK_PART,
|
2017-10-31 11:13:20 +00:00
|
|
|
ID_LIBEDIT_GET_FRAME_EDIT_PART,
|
2012-01-23 04:33:36 +00:00
|
|
|
ID_LIBEDIT_SELECT_PART_NUMBER,
|
2010-02-04 17:46:12 +00:00
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
/* 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,
|
|
|
|
ID_LIBEDIT_DELETE_ITEM_BUTT,
|
2010-02-04 17:46:12 +00:00
|
|
|
|
|
|
|
/* Library editor context menu IDs */
|
2012-01-23 04:33:36 +00:00
|
|
|
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_FIELD_EDIT_ITEM,
|
|
|
|
ID_POPUP_LIBEDIT_DELETE_CURRENT_POLY_SEGMENT,
|
2010-03-20 19:57:59 +00:00
|
|
|
|
2016-11-04 12:59:45 +00:00
|
|
|
/* Library editor toolbar options IDs */
|
|
|
|
ID_LIBEDIT_SHOW_ELECTRICAL_TYPE,
|
2017-10-31 11:13:20 +00:00
|
|
|
ID_LIBEDIT_SHOW_HIDE_SEARCH_TREE,
|
2016-11-04 12:59:45 +00:00
|
|
|
|
2010-03-18 20:35:29 +00:00
|
|
|
/* Library editor menubar IDs */
|
|
|
|
ID_LIBEDIT_GEN_PNG_FILE,
|
|
|
|
ID_LIBEDIT_GEN_SVG_FILE,
|
2010-02-04 17:46:12 +00:00
|
|
|
|
|
|
|
/* Library viewer horizontal toolbar IDs */
|
2016-10-21 12:38:08 +00:00
|
|
|
ID_LIBVIEW_SELECT_PART,
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_LIBVIEW_NEXT,
|
|
|
|
ID_LIBVIEW_PREVIOUS,
|
|
|
|
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,
|
2012-08-21 10:45:54 +00:00
|
|
|
ID_SET_RELATIVE_OFFSET,
|
2016-11-04 11:13:22 +00:00
|
|
|
ID_LIBVIEW_SHOW_ELECTRICAL_TYPE,
|
2012-08-21 10:45:54 +00:00
|
|
|
|
2016-01-29 10:24:39 +00:00
|
|
|
ID_UPDATE_PCB_FROM_SCH,
|
2016-08-11 12:40:57 +00:00
|
|
|
ID_UPDATE_SCH_FROM_PCB,
|
|
|
|
|
2016-08-11 12:42:00 +00:00
|
|
|
ID_SIM_RUN,
|
|
|
|
ID_SIM_TUNE,
|
2016-08-11 12:41:45 +00:00
|
|
|
ID_SIM_PROBE,
|
2016-08-11 12:42:00 +00:00
|
|
|
ID_SIM_SETTINGS,
|
|
|
|
ID_SIM_ADD_SIGNALS,
|
|
|
|
ID_SIM_SHOW,
|
2016-10-21 12:38:08 +00:00
|
|
|
|
2016-08-11 12:42:00 +00:00
|
|
|
ID_END_EESCHEMA_ID_LIST
|
2010-02-04 17:46:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __EESCHEMA_ID_H__ */
|