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
36#ifndef ID_H_
37#define ID_H_
38
39#include <wx/defs.h>
40
41// Define room for IDs, for each sub application
42#define ROOM_FOR_KICADMANAGER 50
43#define ROOM_FOR_3D_VIEWER 100
44#define ROOM_FOR_PANEL_PREV_MODEL 50
45
46
49#define DEFAULT_FILE_HISTORY_SIZE 9
50#define MAX_FILE_HISTORY_SIZE 99
51
53{
54 ID_AUTO_SAVE_TIMER = wxID_HIGHEST,
55
56 // ID for menuitems used in our file history management,
57 // when we do not use wxFILE_ID (restricted to 9 items)
63
65
111
113
115
116 // Popup Menu (mouse Right button) (id consecutifs)
117
118 /* Reserve IDs for popup menu zoom levels. If you need more
119 * levels of zoom, change ID_POPUP_ZOOM_LEVEL_END. Note that more
120 * than 15 entries in a context submenu may get too large to display
121 * cleanly. Add any additional popup zoom IDs above here or the
122 * zoom event handler will not work properly.
123 */
126
129
130 // KiFace server for standalone operation
133
134 // IDs specifics to a sub-application (Eeschema, Kicad manager....) start here
135 //
136 // We reserve here Ids for each sub-application, to avoid duplicate IDs
137 // between them.
138 // mainly we experienced issues related to wxUpdateUIEvent calls when 2 (or more) wxFrames
139 // share the same ID in menus, mainly in menubars/toolbars
140 // The reason is the fact wxWidgets propagates the wxUpdateUIEvent to all parent windows
141 // to find wxUpdateUIEvent event functions matching the menuitem IDs found when activate a
142 // menu in the first frame.
143
144 // Reserve ROOM_FOR_KICADMANAGER IDs, for Kicad manager
145 // Change it if this count is too small.
148
149 // Reserve ROOM_FOR_KICADMANAGER IDs, for Kicad manager
150 // Change it if this count is too small.
153
156
157 // Reserve ID for popup menus, when we need to know a menu item is inside a popup menu
159
160 // The extra here need to minimum be larger than MAX_BUS_UNFOLD_MENU_ITEMS +
161 // MAX_UNIT_COUNT_PER_PACKAGE.
162 // These values are stored in eeschema_id.h
164
167
168#endif // ID_H_
#define ROOM_FOR_3D_VIEWER
Definition: id.h:43
#define MAX_FILE_HISTORY_SIZE
Definition: id.h:50
main_id
Definition: id.h:53
@ ID_KICAD_PANEL_PREV_MODEL_START
Definition: id.h:154
@ ID_LANGUAGE_NORWEGIAN
Definition: id.h:77
@ ID_LANGUAGE_SWEDISH
Definition: id.h:101
@ ID_LANGUAGE_CATALAN
Definition: id.h:90
@ ID_LANGUAGE_NORWEGIAN_BOKMAL
Definition: id.h:108
@ ID_POPUP_GRID_START
Definition: id.h:127
@ ID_LANGUAGE_CHINESE_SIMPLIFIED
Definition: id.h:91
@ ID_LANGUAGE_GERMAN
Definition: id.h:75
@ ID_KICAD_3D_VIEWER_START
Definition: id.h:151
@ ID_LANGUAGE_DUTCH
Definition: id.h:93
@ ID_POPUP_MENU_START
Definition: id.h:158
@ ID_KICAD_MANAGER_END
Definition: id.h:147
@ ID_LANGUAGE_FARSI
Definition: id.h:105
@ ID_LANGUAGE_GREEK
Definition: id.h:76
@ ID_LANGUAGE_HUNGARIAN
Definition: id.h:86
@ ID_LANGUAGE_LITHUANIAN
Definition: id.h:97
@ ID_LANGUAGE_TAMIL
Definition: id.h:109
@ ID_LANGUAGE_ESTONIAN
Definition: id.h:104
@ ID_ON_GRID_SELECT
Definition: id.h:114
@ ID_LANGUAGE_PORTUGUESE_BRAZILIAN
Definition: id.h:80
@ ID_LANGUAGE_DEFAULT
Definition: id.h:68
@ ID_LANGUAGE_POLISH
Definition: id.h:87
@ ID_LANGUAGE_THAI
Definition: id.h:100
@ ID_FILE_LIST_CLEAR
Definition: id.h:62
@ ID_LANGUAGE_CHOICE
Definition: id.h:66
@ ID_POPUP_GRID_END
Definition: id.h:128
@ ID_LANGUAGE_JAPANESE
Definition: id.h:94
@ ID_LANGUAGE_VIETNAMESE
Definition: id.h:98
@ ID_LANGUAGE_ITALIAN
Definition: id.h:83
@ ID_POPUP_ZOOM_LEVEL_END
Definition: id.h:125
@ ID_LANGUAGE_KOREAN
Definition: id.h:89
@ ID_LANGUAGE_SERBIAN
Definition: id.h:99
@ ID_EDA_SOCKET_EVENT
Definition: id.h:132
@ ID_LANGUAGE_RUSSIAN
Definition: id.h:78
@ ID_POPUP_ZOOM_LEVEL_START
Definition: id.h:124
@ ID_LANGUAGE_CZECH
Definition: id.h:88
@ ID_EDA_SOCKET_EVENT_SERV
Definition: id.h:131
@ ID_FILE
Definition: id.h:58
@ ID_FILE_LIST_EMPTY
Definition: id.h:61
@ ID_POPUP_MENU_END
Definition: id.h:163
@ ID_ON_ZOOM_SELECT
Definition: id.h:112
@ ID_LANGUAGE_LATVIAN
Definition: id.h:96
@ ID_KICAD_3D_VIEWER_END
Definition: id.h:152
@ ID_LANGUAGE_SLOVENIAN
Definition: id.h:84
@ ID_LANGUAGE_SPANISH
Definition: id.h:73
@ ID_LANGUAGE_PORTUGUESE
Definition: id.h:79
@ ID_FILEMAX
Definition: id.h:60
@ ID_LANGUAGE_CHOICE_END
Definition: id.h:110
@ ID_LANGUAGE_ENGLISH
Definition: id.h:69
@ ID_LANGUAGE_CROATIAN
Definition: id.h:106
@ ID_LANGUAGE_SPANISH_MEXICAN
Definition: id.h:74
@ ID_FILE1
Definition: id.h:59
@ ID_LANGUAGE_SLOVAK
Definition: id.h:85
@ ID_LANGUAGE_CHINESE_TRADITIONAL
Definition: id.h:92
@ ID_LANGUAGE_FINNISH
Definition: id.h:71
@ ID_LANGUAGE_BULGARIAN
Definition: id.h:95
@ ID_LANGUAGE_ARABIC
Definition: id.h:103
@ ID_LANGUAGE_UKRAINIAN
Definition: id.h:102
@ ID_KICAD_PANEL_PREV_MODEL_END
Definition: id.h:155
@ ID_LANGUAGE_TURKISH
Definition: id.h:81
@ ID_LANGUAGE_DANISH
Definition: id.h:67
@ ID_END_LIST
Definition: id.h:165
@ ID_LANGUAGE_FRENCH
Definition: id.h:70
@ ID_PREFERENCES_RESET_PANEL
Definition: id.h:64
@ ID_LANGUAGE_HEBREW
Definition: id.h:72
@ ID_AUTO_SAVE_TIMER
Definition: id.h:54
@ ID_LANGUAGE_ROMANIAN
Definition: id.h:107
@ ID_LANGUAGE_INDONESIAN
Definition: id.h:82
@ ID_KICAD_MANAGER_START
Definition: id.h:146
#define ROOM_FOR_KICADMANAGER
Common command IDs shared by more than one of the KiCad applications.
Definition: id.h:42
#define ROOM_FOR_PANEL_PREV_MODEL
Definition: id.h:44