Window IDs: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Sho
(Window parameters)
>Jmarshall
No edit summary
Line 35: Line 35:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">myprograms </div>
<div class="indent">programs </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_PROGRAMS </div>
<div class="indent">WINDOW_PROGRAMS </div>
Line 46: Line 46:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">mypictures </div>
<div class="indent">pictures </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_PICTURES </div>
<div class="indent">WINDOW_PICTURES </div>
Line 57: Line 57:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">myfiles </div>
<div class="indent">filemanager </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_FILES </div>
<div class="indent">WINDOW_FILES </div>
Line 79: Line 79:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">mymusic </div>
<div class="indent">music </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_MUSIC </div>
<div class="indent">WINDOW_MUSIC </div>
Line 90: Line 90:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">myvideos </div>
<div class="indent">video </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_VIDEOS </div>
<div class="indent">WINDOW_VIDEOS </div>
Line 134: Line 134:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">mypicturessettings </div>
<div class="indent">picturessettings </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_SETTINGS_MYPICTURES </div>
<div class="indent">WINDOW_SETTINGS_MYPICTURES </div>
Line 145: Line 145:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">myprogramssettings </div>
<div class="indent">programssettings </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_SETTINGS_MYPROGRAMS </div>
<div class="indent">WINDOW_SETTINGS_MYPROGRAMS </div>
Line 156: Line 156:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">myweathersettings </div>
<div class="indent">weathersettings </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_SETTINGS_MYWEATHER </div>
<div class="indent">WINDOW_SETTINGS_MYWEATHER </div>
Line 167: Line 167:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">mymusicsettings </div>
<div class="indent">musicsettings </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_SETTINGS_MYMUSIC </div>
<div class="indent">WINDOW_SETTINGS_MYMUSIC </div>
Line 189: Line 189:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">myvideossettings </div>
<div class="indent">videossettings </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_SETTINGS_MYVIDEOS </div>
<div class="indent">WINDOW_SETTINGS_MYVIDEOS </div>
Line 233: Line 233:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">myvideolibrary </div>
<div class="indent">videolibrary </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_VIDEO_NAV </div>
<div class="indent">WINDOW_VIDEO_NAV </div>
Line 244: Line 244:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">myvideofiles </div>
<div class="indent">videofiles </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_VIDEO_FILES </div>
<div class="indent">WINDOW_VIDEO_FILES </div>
Line 255: Line 255:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">myvideoplaylist </div>
<div class="indent">videoplaylist </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_VIDEO_PLAYLIST </div>
<div class="indent">WINDOW_VIDEO_PLAYLIST </div>
Line 674: Line 674:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">mymusicplaylist </div>
<div class="indent">musicplaylist </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_MUSIC_PLAYLIST </div>
<div class="indent">WINDOW_MUSIC_PLAYLIST </div>
Line 685: Line 685:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">mymusicfiles </div>
<div class="indent">musicfiles </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_MUSIC_FILES </div>
<div class="indent">WINDOW_MUSIC_FILES </div>
Line 696: Line 696:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">mymusiclibrary </div>
<div class="indent">musiclibrary </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_MUSIC_NAV </div>
<div class="indent">WINDOW_MUSIC_NAV </div>
Line 707: Line 707:
|- class="userrow"
|- class="userrow"
| class="usercell" |
| class="usercell" |
<div class="indent">mymusicplaylisteditor </div>
<div class="indent">musicplaylisteditor </div>
| class="usercell" |
| class="usercell" |
<div class="indent">WINDOW_MUSIC_PLAYLIST_EDITOR </div>
<div class="indent">WINDOW_MUSIC_PLAYLIST_EDITOR </div>

Revision as of 00:21, 18 September 2007

This table cross-references Window names, Window definitions, Window ID, and the delta Window ID's (this is the delta from the home window.) The code that performs the cross-reference is found in ButtonTranslator.cpp.

  • keymap.xml uses the Window name.
  • XBMC's C++ code uses the Window definitions and Window ID's.
  • skin .xml files use the Delta Window ID's
  • XBMC.ActivateWindow() can use either the Window name, the Window ID, or the delta Window ID.
  • sounds.xml can use the window name or window ID

You can use parameters with all media windows, as can be seen here:

NAME
DEFINITION
WINDOW ID
DELTA WINDOW ID
SOURCE XML FILE
home
WINDOW_HOME
10000
0
Home.xml
programs
WINDOW_PROGRAMS
10001
1
MyPrograms.xml
pictures
WINDOW_PICTURES
10002
2
MyPics.xml
filemanager
WINDOW_FILES
10003
3
FileManager.xml
settings
WINDOW_SETTINGS_MENU
10004
4
Settings.xml
music
WINDOW_MUSIC
10005
5
None – this is just a wrapper for the current My Music view (who's IDs are 501 and 502)
video
WINDOW_VIDEOS
10006
6
None – this is just a wrapper for the current My Video view (who's IDs are 21-25)
systeminfo
WINDOW_SYSTEM_INFORMATION
10007
7
SettingsSystemInfo.xml
guicalibration
WINDOW_UI_CALIBRATION
10010
10
SettingsUICalibration.xml
screencalibration
WINDOW_MOVIE_CALIBRATION
10011
11
SettingsScreenCalibration.xml
picturessettings
WINDOW_SETTINGS_MYPICTURES
10012
12
SettingsCategory.xml
programssettings
WINDOW_SETTINGS_MYPROGRAMS
10013
13
SettingsCategory.xml
weathersettings
WINDOW_SETTINGS_MYWEATHER
10014
14
SettingsCategory.xml
musicsettings
WINDOW_SETTINGS_MYMUSIC
10015
15
SettingsCategory.xml
systemsettings
WINDOW_SETTINGS_SYSTEM
10016
16
SettingsCategory.xml
videossettings
WINDOW_SETTINGS_MYVIDEOS
10017
17
SettingsCategory.xml
networksettings
WINDOW_SETTINGS_NETWORK
10018
18
SettingsCategory.xml
appearancesettings
WINDOW_SETTINGS_APPEARANCE
10019
19
SettingsCategory.xml
scripts
WINDOW_SCRIPTS
10020
20
MyScripts.xml
videolibrary
WINDOW_VIDEO_NAV
10025
25
MyVideoNav.xml - Replaces the following .XML files: MyVideoGenre (WINDOW_VIDEO_GENRE), MyVideoActors (WINDOW_VIDEO_ACTOR), MyVideoYear (WINDOW_VIDEO_YEAR), MyVideoTitle (WINDOW_VIDEO_TITLE)
videofiles
WINDOW_VIDEO_FILES
10024
24
MyVideo.xml
videoplaylist
WINDOW_VIDEO_PLAYLIST
10028
28
MyVideoPlaylist.xml
LoginScreen
WINDOW_LOGINSCREEN
10029
29
LogonScreen.xml
profiles
WINDOW_SETTINGS_PROFILES
10034
34
SettingsProfile.xml
gamesaves
WINDOW_GAMESAVES
10035
35
MyGameSaves.xml
yesnodialog
WINDOW_DIALOG_YES_NO
10100
100
DialogYesNo.xml
progressdialog
WINDOW_DIALOG_PROGRESS
10101
101
DialogProgress.xml
invitedialog
WINDOW_DIALOG_INVITE
10102
102
DialogInvite.xml
virtualkeyboard
WINDOW_DIALOG_KEYBOARD
10103
103
DialogKeyboard.xml
volumebar
WINDOW_DIALOG_VOLUME_BAR
10104
104
DialogVolumeBar.xml
submenu
WINDOW_DIALOG_SUB_MENU
10105
105
DialogSubMenu.xml
contextmenu
WINDOW_DIALOG_CONTEXT_MENU
10106
106
DialogContextMenu.xml
infodialog
WINDOW_DIALOG_KAI_TOAST
10107
107
DialogKaiToast.xml
hostdialog
WINDOW_DIALOG_HOST
10108
108
DialogHost.xml
numericinput
WINDOW_DIALOG_NUMERIC
10109
109
DialogNumeric.xml
gamepadinput
WINDOW_DIALOG_GAMEPAD
10110
110
DialogGamepad.xml
shutdownmenu
WINDOW_DIALOG_BUTTON_MENU
10111
111
DialogButtonMenu.xml
scandialog
WINDOW_DIALOG_MUSIC_SCAN
10112
112
DialogMusicScan.xml
mutebug
WINDOW_DIALOG_MUTE_BUG
10113
113
DialogMuteBug.xml
playercontrols
WINDOW_DIALOG_PLAYER_CONTROLS
10114
114
PlayerControls.xml
seekbar
WINDOW_DIALOG_SEEK_BAR
10115
115
DialogSeekBar.xml
musicosd
WINDOW_DIALOG_MUSIC_OSD
10120
120
MusicOSD.xml
visualisationsettings
WINDOW_DIALOG_VIS_SETTINGS
10121
121
MusicOSDVisSettings.xml
visualisationpresetlist
WINDOW_DIALOG_VIS_PRESET_LIST
10122
122
VisualizationPresetList.xml
OSD Video Settings
WINDOW_DIALOG_VIDEO_OSD_SETTINGS
10123
123
VideoOSDSettings.xml
Audio OSD Settings
WINDOW_DIALOG_AUDIO_OSD_SETTINGS
10124
124
VideoOSDSettings.xml
Video Bookmarks
WINDOW_DIALOG_VIDEO_BOOKMARKS
10125
125
VideoOSDBookmarks.xml
File Browser
WINDOW_DIALOG_FILE_BROWSER
10126
126
FileBrowser.xml
trainersettings
WINDOW_DIALOG_TRAINER_SETTINGS
10127
127
TrainerSettings.xml
networksetup
WINDOW_DIALOG_NETWORK_SETUP
10128
128
DialogNetworkSetup.xml
mediasource
WINDOW_DIALOG_MEDIA_SOURCE
10129
129
DialogMediaSource.xml
ProfileSettings
WINDOW_PROFILE_SETTINGS
10130
130
ProfileSettings.xml
LockSettings
WINDOW_LOCK_SETTINGS
10131
131
LockSettings.xml
contentsettings
WINDOW_DIALOG_CONTENT_SETTINGS
10132
132
DialogContentSettings.xml
scandialog
WINDOW_DIALOG_VIDEO_SCAN
10133
133
DialogVideoScan.xml
favourites
WINDOW_DIALOG_FAVOURITES
10134
134
DialogFavourites.xml
smartplaylisteditor
WINDOW_DIALOG_SMART_PLAYLIST_EDITOR
10136
136
SmartPlaylistEditor.xml
smartplaylistrule
WINDOW_DIALOG_SMART_PLAYLIST_RULE
10137
137
SmartPlaylistRule.xml
busydialog
WINDOW_DIALOG_BUSY
10138
138
DialogBusy.xml
musicplaylist
WINDOW_MUSIC_PLAYLIST
10500
500
MyMusicPlaylist.xml
musicfiles
WINDOW_MUSIC_FILES
10501
501
MyMusicSongs.xml
musiclibrary
WINDOW_MUSIC_NAV
10502
502
MyMusicNav.xml
musicplaylisteditor
WINDOW_MUSIC_PLAYLIST_EDITOR
10503
503
MyMusicPlaylistEditor.xml
virtualkeyboard
WINDOW_VIRTUAL_KEYBOARD
11000
1000
.
selectdialog
WINDOW_DIALOG_SELECT
12000
2000
DialogSelect.xml
musicinformation
WINDOW_MUSIC_INFO
12001
2001
DialogAlbumInfo.xml
okdialog
WINDOW_DIALOG_OK
12002
2002
DialogOK.xml
movieinformation
WINDOW_VIDEO_INFO
12003
2003
DialogVideoInfo.xml
scriptsdebuginfo
WINDOW_SCRIPTS_INFO
12004
2004
DialogScriptInfo.xml
fullscreenvideo
WINDOW_FULLSCREEN_VIDEO
12005
2005
VideoFullScreen.xml
visualisation
WINDOW_VISUALISATION
12006
2006
MusicVisualisation.xml
slideshow
WINDOW_SLIDESHOW
12007
2007
SlideShow.xml
filestackingdialog
WINDOW_DIALOG_FILESTACKING
12008
2008
DialogFileStacking.xml
weather
WINDOW_WEATHER
12600
2600
MyWeather.xml
xlinkkai
WINDOW_BUDDIES
12700
2700
MyBuddies.xml
screensaver
WINDOW_SCREENSAVER
12900
2900
none
videoosd
WINDOW_OSD
12901
2901
VideoOSD.xml
videomenu
WINDOW_MEDIA_MENU
12902
2902
none
startup
WINDOW_STARTUP
12999
2999
startup.xml
startwindow
-
-
-
shortcut to the current startwindow

In addition, there are the following “special” windows whose id is not really a concern (and you'll notice isn't unique)

Pointer - - 105 Pointer.xml
musicoverlay
WINDOW_MUSIC_OVERLAY
12903
2903
MusicOverlay.xml
videooverlay
WINDOW_VIDEO_OVERLAY
12904
2904
VideoOverlay.xml
Python Windows - - 3000–3099 none