2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 // Window ID defines to make the code a bit more readable
12 #define WINDOW_INVALID 9999 // do not change. value is used to avoid include in headers.
13 #define WINDOW_HOME 10000
14 #define WINDOW_PROGRAMS 10001
15 #define WINDOW_PICTURES 10002
16 #define WINDOW_FILES 10003
17 #define WINDOW_SETTINGS_MENU 10004
18 #define WINDOW_SYSTEM_INFORMATION 10007
19 #define WINDOW_SCREEN_CALIBRATION 10011
21 #define WINDOW_SETTINGS_START 10016
22 #define WINDOW_SETTINGS_SYSTEM 10016
23 #define WINDOW_SETTINGS_SERVICE 10018
25 #define WINDOW_SETTINGS_MYPVR 10021
26 #define WINDOW_SETTINGS_MYGAMES 10022
28 #define WINDOW_VIDEO_NAV 10025
29 #define WINDOW_VIDEO_PLAYLIST 10028
31 #define WINDOW_LOGIN_SCREEN 10029
33 #define WINDOW_SETTINGS_PLAYER 10030
34 #define WINDOW_SETTINGS_MEDIA 10031
35 #define WINDOW_SETTINGS_INTERFACE 10032
37 #define WINDOW_SETTINGS_PROFILES 10034
38 #define WINDOW_SKIN_SETTINGS 10035
40 #define WINDOW_ADDON_BROWSER 10040
42 #define WINDOW_EVENT_LOG 10050
44 #define WINDOW_FAVOURITES 10060
46 #define WINDOW_SCREENSAVER_DIM 97
47 #define WINDOW_DEBUG_INFO 98
48 #define WINDOW_DIALOG_POINTER 10099
49 #define WINDOW_DIALOG_YES_NO 10100
50 #define WINDOW_DIALOG_PROGRESS 10101
51 #define WINDOW_DIALOG_KEYBOARD 10103
52 #define WINDOW_DIALOG_VOLUME_BAR 10104
53 #define WINDOW_DIALOG_SUB_MENU 10105
54 #define WINDOW_DIALOG_CONTEXT_MENU 10106
55 #define WINDOW_DIALOG_KAI_TOAST 10107
56 #define WINDOW_DIALOG_NUMERIC 10109
57 #define WINDOW_DIALOG_GAMEPAD 10110
58 #define WINDOW_DIALOG_BUTTON_MENU 10111
59 #define WINDOW_DIALOG_PLAYER_CONTROLS 10114
60 #define WINDOW_DIALOG_SEEK_BAR 10115
61 #define WINDOW_DIALOG_PLAYER_PROCESS_INFO 10116
62 #define WINDOW_DIALOG_MUSIC_OSD 10120
63 #define WINDOW_DIALOG_VIS_SETTINGS 10121
64 #define WINDOW_DIALOG_VIS_PRESET_LIST 10122
65 #define WINDOW_DIALOG_VIDEO_OSD_SETTINGS 10123
66 #define WINDOW_DIALOG_AUDIO_OSD_SETTINGS 10124
67 #define WINDOW_DIALOG_VIDEO_BOOKMARKS 10125
68 #define WINDOW_DIALOG_FILE_BROWSER 10126
69 #define WINDOW_DIALOG_NETWORK_SETUP 10128
70 #define WINDOW_DIALOG_MEDIA_SOURCE 10129
71 #define WINDOW_DIALOG_PROFILE_SETTINGS 10130
72 #define WINDOW_DIALOG_LOCK_SETTINGS 10131
73 #define WINDOW_DIALOG_CONTENT_SETTINGS 10132
74 #define WINDOW_DIALOG_LIBEXPORT_SETTINGS 10133
75 #define WINDOW_DIALOG_SONG_INFO 10135
76 #define WINDOW_DIALOG_SMART_PLAYLIST_EDITOR 10136
77 #define WINDOW_DIALOG_SMART_PLAYLIST_RULE 10137
78 #define WINDOW_DIALOG_BUSY 10138
79 #define WINDOW_DIALOG_PICTURE_INFO 10139
80 #define WINDOW_DIALOG_ADDON_SETTINGS 10140
81 #define WINDOW_DIALOG_FULLSCREEN_INFO 10142
82 #define WINDOW_DIALOG_SLIDER 10145
83 #define WINDOW_DIALOG_ADDON_INFO 10146
84 #define WINDOW_DIALOG_TEXT_VIEWER 10147
85 #ifdef HAS_OPTICAL_DRIVE
86 #define WINDOW_DIALOG_PLAY_EJECT 10148
88 #define WINDOW_DIALOG_PERIPHERALS 10149
89 #define WINDOW_DIALOG_PERIPHERAL_SETTINGS 10150
90 #define WINDOW_DIALOG_EXT_PROGRESS 10151
91 #define WINDOW_DIALOG_MEDIA_FILTER 10152
92 #define WINDOW_DIALOG_SUBTITLES 10153
93 #define WINDOW_DIALOG_KEYBOARD_TOUCH 10156
94 #define WINDOW_DIALOG_CMS_OSD_SETTINGS 10157
95 #define WINDOW_DIALOG_INFOPROVIDER_SETTINGS 10158
96 #define WINDOW_DIALOG_SUBTITLE_OSD_SETTINGS 10159
97 #define WINDOW_DIALOG_BUSY_NOCANCEL 10160
99 #define WINDOW_MUSIC_PLAYLIST 10500
100 #define WINDOW_MUSIC_NAV 10502
101 #define WINDOW_MUSIC_PLAYLIST_EDITOR 10503
103 #define WINDOW_DIALOG_OSD_TELETEXT 10550
105 // PVR related Window and Dialog ID's
107 #define WINDOW_DIALOG_PVR_ID_START 10600
108 #define WINDOW_DIALOG_PVR_GUIDE_INFO (WINDOW_DIALOG_PVR_ID_START)
109 #define WINDOW_DIALOG_PVR_RECORDING_INFO (WINDOW_DIALOG_PVR_ID_START+1)
110 #define WINDOW_DIALOG_PVR_TIMER_SETTING (WINDOW_DIALOG_PVR_ID_START+2)
111 #define WINDOW_DIALOG_PVR_GROUP_MANAGER (WINDOW_DIALOG_PVR_ID_START+3)
112 #define WINDOW_DIALOG_PVR_CHANNEL_MANAGER (WINDOW_DIALOG_PVR_ID_START+4)
113 #define WINDOW_DIALOG_PVR_GUIDE_SEARCH (WINDOW_DIALOG_PVR_ID_START+5)
114 #define WINDOW_DIALOG_PVR_CHANNEL_SCAN (WINDOW_DIALOG_PVR_ID_START+6)
115 #define WINDOW_DIALOG_PVR_UPDATE_PROGRESS (WINDOW_DIALOG_PVR_ID_START+7)
116 #define WINDOW_DIALOG_PVR_OSD_CHANNELS (WINDOW_DIALOG_PVR_ID_START+8)
117 #define WINDOW_DIALOG_PVR_CHANNEL_GUIDE (WINDOW_DIALOG_PVR_ID_START+9)
118 #define WINDOW_DIALOG_PVR_RADIO_RDS_INFO (WINDOW_DIALOG_PVR_ID_START+10)
119 #define WINDOW_DIALOG_PVR_RECORDING_SETTING (WINDOW_DIALOG_PVR_ID_START+11)
120 #define WINDOW_DIALOG_PVR_CLIENT_PRIORITIES (WINDOW_DIALOG_PVR_ID_START+12)
121 #define WINDOW_DIALOG_PVR_GUIDE_CONTROLS (WINDOW_DIALOG_PVR_ID_START+13)
122 #define WINDOW_DIALOG_PVR_ID_END WINDOW_DIALOG_PVR_GUIDE_CONTROLS
124 #define WINDOW_PVR_ID_START 10700
125 #define WINDOW_TV_CHANNELS (WINDOW_PVR_ID_START)
126 #define WINDOW_TV_RECORDINGS (WINDOW_PVR_ID_START+1)
127 #define WINDOW_TV_GUIDE (WINDOW_PVR_ID_START+2)
128 #define WINDOW_TV_TIMERS (WINDOW_PVR_ID_START+3)
129 #define WINDOW_TV_SEARCH (WINDOW_PVR_ID_START+4)
130 #define WINDOW_RADIO_CHANNELS (WINDOW_PVR_ID_START+5)
131 #define WINDOW_RADIO_RECORDINGS (WINDOW_PVR_ID_START+6)
132 #define WINDOW_RADIO_GUIDE (WINDOW_PVR_ID_START+7)
133 #define WINDOW_RADIO_TIMERS (WINDOW_PVR_ID_START+8)
134 #define WINDOW_RADIO_SEARCH (WINDOW_PVR_ID_START+9)
135 #define WINDOW_TV_TIMER_RULES (WINDOW_PVR_ID_START+10)
136 #define WINDOW_RADIO_TIMER_RULES (WINDOW_PVR_ID_START+11)
137 #define WINDOW_PVR_ID_END WINDOW_RADIO_TIMER_RULES
139 // virtual windows for PVR specific keymap bindings in fullscreen playback
140 #define WINDOW_FULLSCREEN_LIVETV 10800
141 #define WINDOW_FULLSCREEN_RADIO 10801
142 #define WINDOW_FULLSCREEN_LIVETV_PREVIEW 10802
143 #define WINDOW_FULLSCREEN_RADIO_PREVIEW 10803
144 #define WINDOW_FULLSCREEN_LIVETV_INPUT 10804
145 #define WINDOW_FULLSCREEN_RADIO_INPUT 10805
147 #define WINDOW_DIALOG_GAME_CONTROLLERS 10820
148 #define WINDOW_GAMES 10821
149 #define WINDOW_DIALOG_GAME_OSD 10822
150 #define WINDOW_DIALOG_GAME_VIDEO_FILTER 10823
151 #define WINDOW_DIALOG_GAME_STRETCH_MODE 10824
152 #define WINDOW_DIALOG_GAME_VOLUME 10825
153 #define WINDOW_DIALOG_GAME_ADVANCED_SETTINGS 10826
154 #define WINDOW_DIALOG_GAME_VIDEO_ROTATION 10827
155 #define WINDOW_DIALOG_GAME_PORTS 10828
156 #define WINDOW_DIALOG_IN_GAME_SAVES 10829
157 #define WINDOW_DIALOG_GAME_SAVES 10830
158 #define WINDOW_DIALOG_GAME_AGENTS 10831
160 //#define WINDOW_VIRTUAL_KEYBOARD 11000
161 // WINDOW_ID's from 11100 to 11199 reserved for Skins
163 #define WINDOW_DIALOG_SELECT 12000
164 #define WINDOW_DIALOG_MUSIC_INFO 12001
165 #define WINDOW_DIALOG_OK 12002
166 #define WINDOW_DIALOG_VIDEO_INFO 12003
167 #define WINDOW_DIALOG_MANAGE_VIDEO_VERSIONS 12004
168 #define WINDOW_FULLSCREEN_VIDEO 12005
169 #define WINDOW_VISUALISATION 12006
170 #define WINDOW_SLIDESHOW 12007
171 #define WINDOW_DIALOG_COLOR_PICKER 12008
173 //! @todo Numbers given here must match the ids given in strings.po for a translatable string for
174 //! the window. 12009 to 12014 are already taken for something else in strings.po (accidentally).
175 //! So, do not define windows with ids 12009 to 12014, unless strings.po got fixed.
177 #define WINDOW_DIALOG_SELECT_VIDEO_VERSION 12015
178 #define WINDOW_DIALOG_SELECT_VIDEO_EXTRA 12016
179 #define WINDOW_DIALOG_MANAGE_VIDEO_EXTRAS 12017
181 #define WINDOW_WEATHER 12600
182 #define WINDOW_SCREENSAVER 12900
183 #define WINDOW_DIALOG_VIDEO_OSD 12901
185 #define WINDOW_VIDEO_MENU 12902
186 #define WINDOW_VIDEO_TIME_SEEK 12905 // virtual window for time seeking during fullscreen video
188 #define WINDOW_FULLSCREEN_GAME 12906
190 #define WINDOW_SPLASH 12997 // splash window
191 #define WINDOW_START 12998 // first window to load
192 #define WINDOW_STARTUP_ANIM 12999 // for startup animations
194 // WINDOW_ID's from 13000 to 13099 reserved for Python
196 #define WINDOW_PYTHON_START 13000
197 #define WINDOW_PYTHON_END 13099
199 // WINDOW_ID's from 14000 to 14099 reserved for Addons
201 #define WINDOW_ADDON_START 14000
202 #define WINDOW_ADDON_END 14099