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>
|
2023-07-04 10:04:20 +00:00
|
|
|
* Copyright (C) 2008-2023 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
|
|
|
|
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
|
|
|
|
2023-08-28 11:29:47 +00:00
|
|
|
#define MAX_ALT_PIN_FUNCTION_ITEMS 1024
|
|
|
|
|
2022-01-21 17:40:16 +00:00
|
|
|
/**
|
|
|
|
* While it would seem that an unfold-from-bus menu with over 100 items would be
|
|
|
|
* hard to deal with, we've already had one user who wants 256.
|
|
|
|
*/
|
|
|
|
#define MAX_BUS_UNFOLD_MENU_ITEMS 1024
|
|
|
|
|
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
|
|
|
|
{
|
2019-05-24 23:36:31 +00:00
|
|
|
ID_IMPORT_NON_KICAD_SCH = ID_END_LIST,
|
2012-09-28 17:47:41 +00:00
|
|
|
|
2017-10-31 11:13:20 +00:00
|
|
|
/* Library editor horizontal toolbar IDs. */
|
2021-06-15 12:31:28 +00:00
|
|
|
ID_LIBEDIT_SELECT_UNIT_NUMBER,
|
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,
|
2021-06-15 12:31:28 +00:00
|
|
|
ID_LIBVIEW_SELECT_UNIT_NUMBER,
|
2022-07-09 18:41:03 +00:00
|
|
|
ID_LIBVIEW_LIB_FILTER,
|
2010-02-04 17:46:12 +00:00
|
|
|
ID_LIBVIEW_LIB_LIST,
|
2022-07-09 18:41:03 +00:00
|
|
|
ID_LIBVIEW_SYM_FILTER,
|
2021-06-10 14:10:55 +00:00
|
|
|
ID_LIBVIEW_SYM_LIST,
|
2012-08-21 10:45:54 +00:00
|
|
|
|
2019-05-21 10:48:37 +00:00
|
|
|
ID_END_EESCHEMA_ID_LIST, // End of IDs specific to Eeschema
|
|
|
|
|
|
|
|
// These ID are used in context menus,
|
|
|
|
// and must not clash with any other menu ID inside Kicad
|
|
|
|
// So used ID inside the reserved popup ID
|
|
|
|
//
|
|
|
|
// Dynamically bound in AddMenusForBus():
|
|
|
|
ID_POPUP_SCH_UNFOLD_BUS = ID_POPUP_MENU_START,
|
2022-01-21 17:40:16 +00:00
|
|
|
ID_POPUP_SCH_UNFOLD_BUS_END = ID_POPUP_SCH_UNFOLD_BUS + MAX_BUS_UNFOLD_MENU_ITEMS,
|
2019-05-21 10:48:37 +00:00
|
|
|
|
|
|
|
// Unit select context menus command IDs.
|
2023-08-28 11:29:47 +00:00
|
|
|
ID_POPUP_SCH_SELECT_UNIT,
|
2019-05-21 10:48:37 +00:00
|
|
|
ID_POPUP_SCH_SELECT_UNIT1,
|
|
|
|
// ... leave room for MAX_UNIT_COUNT_PER_PACKAGE IDs ,
|
|
|
|
// to select one unit among MAX_UNIT_COUNT_PER_PACKAGE in popup menu
|
2023-08-28 11:29:47 +00:00
|
|
|
ID_POPUP_SCH_SELECT_UNIT_END = ID_POPUP_SCH_SELECT_UNIT1 + MAX_UNIT_COUNT_PER_PACKAGE,
|
|
|
|
|
|
|
|
ID_POPUP_SCH_ALT_PIN_FUNCTION,
|
|
|
|
ID_POPUP_SCH_ALT_PIN_FUNCTION_END = ID_POPUP_SCH_ALT_PIN_FUNCTION + MAX_ALT_PIN_FUNCTION_ITEMS
|
2010-02-04 17:46:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __EESCHEMA_ID_H__ */
|