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 (C) 1992-2017 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
31#ifndef ID_H_
32#define ID_H_
33
34#include <wx/defs.h>
35
61// Define room for IDs, for each sub application
62#define ROOM_FOR_KICADMANAGER 50
63#define ROOM_FOR_3D_VIEWER 100
64#define ROOM_FOR_PANEL_PREV_MODEL 50
65
66
69#define DEFAULT_FILE_HISTORY_SIZE 9
70#define MAX_FILE_HISTORY_SIZE 99
71
73{
74 ID_LOAD_FILE = wxID_HIGHEST,
79
80 // ID for menuitems used in our file history management,
81 // when we do not use wxFILE_ID (restricted to 9 items)
87
89
97
98 // id for toolbars
103
142
144
146
147 // Popup Menu (mouse Right button) (id consecutifs)
148
149 /* Reserve IDs for popup menu zoom levels. If you need more
150 * levels of zoom, change ID_POPUP_ZOOM_LEVEL_END. Note that more
151 * than 15 entries in a context submenu may get too large to display
152 * cleanly. Add any additional popup zoom IDs above here or the
153 * zoom event handler will not work properly.
154 */
157
160
161 // KiFace server for standalone operation
164
165 // IDs specifics to a sub-application (Eeschema, Kicad manager....) start here
166 //
167 // We reserve here Ids for each sub-application, to avoid duplicate IDs
168 // between them.
169 // mainly we experienced issues related to wxUpdateUIEvent calls when 2 (or more) wxFrames
170 // share the same ID in menus, mainly in menubars/toolbars
171 // The reason is the fact wxWidgets propagates the wxUpdateUIEvent to all parent windows
172 // to find wxUpdateUIEvent event functions matching the menuitem IDs found when activate a
173 // menu in the first frame.
174
175 // Reserve ROOM_FOR_KICADMANAGER IDs, for Kicad manager
176 // Change it if this count is too small.
179
180 // Reserve ROOM_FOR_KICADMANAGER IDs, for Kicad manager
181 // Change it if this count is too small.
184
187
188 // Reseve ID for popup menus, when we need to know a menu item is inside a popup menu
190 // The extra here need to minimum be larger than MAX_BUS_UNFOLD_MENU_ITEMS + 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:63
#define MAX_FILE_HISTORY_SIZE
Definition: id.h:70
main_id
Definition: id.h:73
@ ID_KICAD_PANEL_PREV_MODEL_START
Definition: id.h:185
@ ID_LANGUAGE_NORWEGIAN
Definition: id.h:115
@ ID_LANGUAGE_SWEDISH
Definition: id.h:139
@ ID_LANGUAGE_CATALAN
Definition: id.h:128
@ ID_POPUP_GRID_START
Definition: id.h:158
@ ID_LANGUAGE_CHINESE_SIMPLIFIED
Definition: id.h:129
@ ID_LANGUAGE_GERMAN
Definition: id.h:113
@ ID_NEW_BOARD
Definition: id.h:75
@ ID_KICAD_3D_VIEWER_START
Definition: id.h:182
@ ID_LANGUAGE_DUTCH
Definition: id.h:131
@ ID_POPUP_MENU_START
Definition: id.h:189
@ ID_KICAD_MANAGER_END
Definition: id.h:178
@ ID_SAVE_BOARD
Definition: id.h:76
@ ID_LANGUAGE_GREEK
Definition: id.h:114
@ ID_LANGUAGE_HUNGARIAN
Definition: id.h:124
@ ID_LANGUAGE_LITHUANIAN
Definition: id.h:135
@ ID_ON_GRID_SELECT
Definition: id.h:145
@ ID_LANGUAGE_PORTUGUESE_BRAZILIAN
Definition: id.h:118
@ ID_LANGUAGE_DEFAULT
Definition: id.h:106
@ ID_LANGUAGE_POLISH
Definition: id.h:125
@ ID_GEN_PLOT_DXF
Definition: id.h:95
@ ID_LANGUAGE_THAI
Definition: id.h:138
@ ID_FILE_LIST_CLEAR
Definition: id.h:86
@ ID_LANGUAGE_CHOICE
Definition: id.h:104
@ ID_POPUP_GRID_END
Definition: id.h:159
@ ID_LANGUAGE_JAPANESE
Definition: id.h:132
@ ID_LANGUAGE_VIETNAMESE
Definition: id.h:136
@ ID_LANGUAGE_ITALIAN
Definition: id.h:121
@ ID_POPUP_ZOOM_LEVEL_END
Definition: id.h:156
@ ID_LANGUAGE_KOREAN
Definition: id.h:127
@ ID_LANGUAGE_SERBIAN
Definition: id.h:137
@ ID_EDA_SOCKET_EVENT
Definition: id.h:163
@ ID_LANGUAGE_RUSSIAN
Definition: id.h:116
@ ID_GEN_PLOT_PS
Definition: id.h:91
@ ID_POPUP_ZOOM_LEVEL_START
Definition: id.h:155
@ ID_LANGUAGE_CZECH
Definition: id.h:126
@ ID_LOAD_FILE
Definition: id.h:74
@ ID_OPT_TOOLBAR
Definition: id.h:101
@ ID_V_TOOLBAR
Definition: id.h:100
@ ID_EDA_SOCKET_EVENT_SERV
Definition: id.h:162
@ ID_FILE
Definition: id.h:82
@ ID_GEN_PLOT_GERBER
Definition: id.h:93
@ ID_FILE_LIST_EMPTY
Definition: id.h:85
@ ID_POPUP_MENU_END
Definition: id.h:192
@ ID_ON_ZOOM_SELECT
Definition: id.h:143
@ ID_LANGUAGE_UKRANIAN
Definition: id.h:140
@ ID_LANGUAGE_LATVIAN
Definition: id.h:134
@ ID_GEN_PLOT
Definition: id.h:90
@ ID_KICAD_3D_VIEWER_END
Definition: id.h:183
@ ID_LANGUAGE_SLOVENIAN
Definition: id.h:122
@ ID_SAVE_BOARD_AS
Definition: id.h:77
@ ID_LANGUAGE_SPANISH
Definition: id.h:111
@ ID_GEN_PLOT_SVG
Definition: id.h:94
@ ID_GEN_PLOT_HPGL
Definition: id.h:92
@ ID_LANGUAGE_PORTUGUESE
Definition: id.h:117
@ ID_FILEMAX
Definition: id.h:84
@ ID_LANGUAGE_CHOICE_END
Definition: id.h:141
@ ID_AUX_TOOLBAR
Definition: id.h:102
@ ID_LANGUAGE_ENGLISH
Definition: id.h:107
@ ID_LANGUAGE_SPANISH_MEXICAN
Definition: id.h:112
@ ID_FILE1
Definition: id.h:83
@ ID_LANGUAGE_SLOVAK
Definition: id.h:123
@ ID_H_TOOLBAR
Definition: id.h:99
@ ID_LANGUAGE_CHINESE_TRADITIONAL
Definition: id.h:130
@ ID_LANGUAGE_FINNISH
Definition: id.h:109
@ ID_LANGUAGE_BULGARIAN
Definition: id.h:133
@ ID_GEN_PLOT_PDF
Definition: id.h:96
@ ID_KICAD_PANEL_PREV_MODEL_END
Definition: id.h:186
@ ID_LANGUAGE_TURKISH
Definition: id.h:119
@ ID_LANGUAGE_DANISH
Definition: id.h:105
@ ID_END_LIST
Definition: id.h:194
@ ID_LANGUAGE_FRENCH
Definition: id.h:108
@ ID_PREFERENCES_RESET_PANEL
Definition: id.h:88
@ ID_LANGUAGE_HEBREW
Definition: id.h:110
@ ID_AUTO_SAVE_TIMER
Definition: id.h:78
@ ID_LANGUAGE_INDONESIAN
Definition: id.h:120
@ ID_KICAD_MANAGER_START
Definition: id.h:177
#define ROOM_FOR_KICADMANAGER
Common command IDs shared by more than one of the KiCad applications.
Definition: id.h:62
#define ROOM_FOR_PANEL_PREV_MODEL
Definition: id.h:64