KiCad PCB EDA Suite
Loading...
Searching...
No Matches
id.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2017 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright (C) 2009-2016 Wayne Stambaugh <[email protected]>
6 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, you may find one here:
20 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21 * or you may search the http://www.gnu.org website for the version 2 license,
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
54#ifndef ID_H_
55#define ID_H_
56
57#include <wx/defs.h>
58
59// Define room for IDs, for each sub application
60#define ROOM_FOR_KICADMANAGER 50
61#define ROOM_FOR_3D_VIEWER 100
62#define ROOM_FOR_PANEL_PREV_MODEL 50
63
64
67#define DEFAULT_FILE_HISTORY_SIZE 9
68#define MAX_FILE_HISTORY_SIZE 99
69
71{
72 ID_LOAD_FILE = wxID_HIGHEST,
77
78 // ID for menuitems used in our file history management,
79 // when we do not use wxFILE_ID (restricted to 9 items)
85
87
95
96 // id for toolbars
101
140
142
144
145 // Popup Menu (mouse Right button) (id consecutifs)
146
147 /* Reserve IDs for popup menu zoom levels. If you need more
148 * levels of zoom, change ID_POPUP_ZOOM_LEVEL_END. Note that more
149 * than 15 entries in a context submenu may get too large to display
150 * cleanly. Add any additional popup zoom IDs above here or the
151 * zoom event handler will not work properly.
152 */
155
158
159 // KiFace server for standalone operation
162
163 // IDs specifics to a sub-application (Eeschema, Kicad manager....) start here
164 //
165 // We reserve here Ids for each sub-application, to avoid duplicate IDs
166 // between them.
167 // mainly we experienced issues related to wxUpdateUIEvent calls when 2 (or more) wxFrames
168 // share the same ID in menus, mainly in menubars/toolbars
169 // The reason is the fact wxWidgets propagates the wxUpdateUIEvent to all parent windows
170 // to find wxUpdateUIEvent event functions matching the menuitem IDs found when activate a
171 // menu in the first frame.
172
173 // Reserve ROOM_FOR_KICADMANAGER IDs, for Kicad manager
174 // Change it if this count is too small.
177
178 // Reserve ROOM_FOR_KICADMANAGER IDs, for Kicad manager
179 // Change it if this count is too small.
182
185
186 // Reserve ID for popup menus, when we need to know a menu item is inside a popup menu
188
189 // The extra here need to minimum be larger than MAX_BUS_UNFOLD_MENU_ITEMS +
190 // MAX_UNIT_COUNT_PER_PACKAGE.
191 // These values are stored in eeschema_id.h
193
196
197#endif // ID_H_
#define ROOM_FOR_3D_VIEWER
Definition: id.h:61
#define MAX_FILE_HISTORY_SIZE
Definition: id.h:68
main_id
Definition: id.h:71
@ ID_KICAD_PANEL_PREV_MODEL_START
Definition: id.h:183
@ ID_LANGUAGE_NORWEGIAN
Definition: id.h:113
@ ID_LANGUAGE_SWEDISH
Definition: id.h:137
@ ID_LANGUAGE_CATALAN
Definition: id.h:126
@ ID_POPUP_GRID_START
Definition: id.h:156
@ ID_LANGUAGE_CHINESE_SIMPLIFIED
Definition: id.h:127
@ ID_LANGUAGE_GERMAN
Definition: id.h:111
@ ID_NEW_BOARD
Definition: id.h:73
@ ID_KICAD_3D_VIEWER_START
Definition: id.h:180
@ ID_LANGUAGE_DUTCH
Definition: id.h:129
@ ID_POPUP_MENU_START
Definition: id.h:187
@ ID_KICAD_MANAGER_END
Definition: id.h:176
@ ID_SAVE_BOARD
Definition: id.h:74
@ ID_LANGUAGE_GREEK
Definition: id.h:112
@ ID_LANGUAGE_HUNGARIAN
Definition: id.h:122
@ ID_LANGUAGE_LITHUANIAN
Definition: id.h:133
@ ID_ON_GRID_SELECT
Definition: id.h:143
@ ID_LANGUAGE_PORTUGUESE_BRAZILIAN
Definition: id.h:116
@ ID_LANGUAGE_DEFAULT
Definition: id.h:104
@ ID_LANGUAGE_POLISH
Definition: id.h:123
@ ID_GEN_PLOT_DXF
Definition: id.h:93
@ ID_LANGUAGE_THAI
Definition: id.h:136
@ ID_FILE_LIST_CLEAR
Definition: id.h:84
@ ID_LANGUAGE_CHOICE
Definition: id.h:102
@ ID_POPUP_GRID_END
Definition: id.h:157
@ ID_LANGUAGE_JAPANESE
Definition: id.h:130
@ ID_LANGUAGE_VIETNAMESE
Definition: id.h:134
@ ID_LANGUAGE_ITALIAN
Definition: id.h:119
@ ID_POPUP_ZOOM_LEVEL_END
Definition: id.h:154
@ ID_LANGUAGE_KOREAN
Definition: id.h:125
@ ID_LANGUAGE_SERBIAN
Definition: id.h:135
@ ID_EDA_SOCKET_EVENT
Definition: id.h:161
@ ID_LANGUAGE_RUSSIAN
Definition: id.h:114
@ ID_GEN_PLOT_PS
Definition: id.h:89
@ ID_POPUP_ZOOM_LEVEL_START
Definition: id.h:153
@ ID_LANGUAGE_CZECH
Definition: id.h:124
@ ID_LOAD_FILE
Definition: id.h:72
@ ID_OPT_TOOLBAR
Definition: id.h:99
@ ID_V_TOOLBAR
Definition: id.h:98
@ ID_EDA_SOCKET_EVENT_SERV
Definition: id.h:160
@ ID_FILE
Definition: id.h:80
@ ID_GEN_PLOT_GERBER
Definition: id.h:91
@ ID_FILE_LIST_EMPTY
Definition: id.h:83
@ ID_POPUP_MENU_END
Definition: id.h:192
@ ID_ON_ZOOM_SELECT
Definition: id.h:141
@ ID_LANGUAGE_UKRANIAN
Definition: id.h:138
@ ID_LANGUAGE_LATVIAN
Definition: id.h:132
@ ID_GEN_PLOT
Definition: id.h:88
@ ID_KICAD_3D_VIEWER_END
Definition: id.h:181
@ ID_LANGUAGE_SLOVENIAN
Definition: id.h:120
@ ID_SAVE_BOARD_AS
Definition: id.h:75
@ ID_LANGUAGE_SPANISH
Definition: id.h:109
@ ID_GEN_PLOT_SVG
Definition: id.h:92
@ ID_GEN_PLOT_HPGL
Definition: id.h:90
@ ID_LANGUAGE_PORTUGUESE
Definition: id.h:115
@ ID_FILEMAX
Definition: id.h:82
@ ID_LANGUAGE_CHOICE_END
Definition: id.h:139
@ ID_AUX_TOOLBAR
Definition: id.h:100
@ ID_LANGUAGE_ENGLISH
Definition: id.h:105
@ ID_LANGUAGE_SPANISH_MEXICAN
Definition: id.h:110
@ ID_FILE1
Definition: id.h:81
@ ID_LANGUAGE_SLOVAK
Definition: id.h:121
@ ID_H_TOOLBAR
Definition: id.h:97
@ ID_LANGUAGE_CHINESE_TRADITIONAL
Definition: id.h:128
@ ID_LANGUAGE_FINNISH
Definition: id.h:107
@ ID_LANGUAGE_BULGARIAN
Definition: id.h:131
@ ID_GEN_PLOT_PDF
Definition: id.h:94
@ ID_KICAD_PANEL_PREV_MODEL_END
Definition: id.h:184
@ ID_LANGUAGE_TURKISH
Definition: id.h:117
@ ID_LANGUAGE_DANISH
Definition: id.h:103
@ ID_END_LIST
Definition: id.h:194
@ ID_LANGUAGE_FRENCH
Definition: id.h:106
@ ID_PREFERENCES_RESET_PANEL
Definition: id.h:86
@ ID_LANGUAGE_HEBREW
Definition: id.h:108
@ ID_AUTO_SAVE_TIMER
Definition: id.h:76
@ ID_LANGUAGE_INDONESIAN
Definition: id.h:118
@ ID_KICAD_MANAGER_START
Definition: id.h:175
#define ROOM_FOR_KICADMANAGER
Definition: id.h:60
#define ROOM_FOR_PANEL_PREV_MODEL
Definition: id.h:62