-
-
Notifications
You must be signed in to change notification settings - Fork 491
/
eeschema_id.h
104 lines (85 loc) · 3.52 KB
/
eeschema_id.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2008 Wayne Stambaugh <[email protected]>
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
*
* 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
*/
#ifndef __EESCHEMA_ID_H__
#define __EESCHEMA_ID_H__
#include <id.h>
/**
* The maximum number of units per package.
* While counts approaching 100 start to make the unit-selection popup menu
* difficult to use, the limit is currently 'ZZ' (26 * 26).
*/
#define MAX_UNIT_COUNT_PER_PACKAGE 676
#define MAX_ALT_PIN_FUNCTION_ITEMS 1024
/**
* 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
/**
* Command IDs for the schematic editor.
*
* Please add IDs that are unique to the schematic editor (Eeschema) here and
* not in the global id.h file. This will prevent the entire project from
* being rebuilt when adding new command to Eeschema.
*/
enum id_eeschema_frm
{
ID_IMPORT_NON_KICAD_SCH = ID_END_LIST,
/* Library editor horizontal toolbar IDs. */
ID_LIBEDIT_SELECT_UNIT_NUMBER,
/* Library viewer horizontal toolbar IDs */
ID_LIBVIEW_NEXT,
ID_LIBVIEW_PREVIOUS,
ID_LIBVIEW_SELECT_UNIT_NUMBER,
ID_LIBVIEW_LIB_FILTER,
ID_LIBVIEW_LIB_LIST,
ID_LIBVIEW_SYM_FILTER,
ID_LIBVIEW_SYM_LIST,
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,
ID_POPUP_SCH_UNFOLD_BUS_END = ID_POPUP_SCH_UNFOLD_BUS + MAX_BUS_UNFOLD_MENU_ITEMS,
// Unit select context menus command IDs.
ID_POPUP_SCH_SELECT_UNIT,
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
ID_POPUP_SCH_SELECT_UNIT_END = ID_POPUP_SCH_SELECT_UNIT1 + MAX_UNIT_COUNT_PER_PACKAGE,
ID_POPUP_SCH_SELECT_BASE,
ID_POPUP_SCH_SELECT_ALT,
ID_POPUP_SCH_PIN_TRICKS_START,
ID_POPUP_SCH_PIN_TRICKS_NO_CONNECT = ID_POPUP_SCH_PIN_TRICKS_START,
ID_POPUP_SCH_PIN_TRICKS_WIRE,
ID_POPUP_SCH_PIN_TRICKS_NET_LABEL,
ID_POPUP_SCH_PIN_TRICKS_HIER_LABEL,
ID_POPUP_SCH_PIN_TRICKS_GLOBAL_LABEL,
ID_POPUP_SCH_PIN_TRICKS_END = ID_POPUP_SCH_PIN_TRICKS_GLOBAL_LABEL,
ID_POPUP_SCH_ALT_PIN_FUNCTION,
ID_POPUP_SCH_ALT_PIN_FUNCTION_END = ID_POPUP_SCH_ALT_PIN_FUNCTION + MAX_ALT_PIN_FUNCTION_ITEMS
};
#endif /* __EESCHEMA_ID_H__ */