Revision: 14126
http://xbmc.svn.sourceforge.net/xbmc/?rev=14126&view=rev
Author: althekiller
Date: 2008-07-15 12:14:31 -0700 (Tue, 15 Jul 2008)
Log Message:
-----------
changed: dos2unixed some files with mixed line endings and set svn:eol-style native
Modified Paths:
--------------
branches/linuxport/XBMC/guilib/GUIBaseContainer.cpp
branches/linuxport/XBMC/guilib/GUIBaseContainer.h
branches/linuxport/XBMC/guilib/GUIColorManager.cpp
branches/linuxport/XBMC/guilib/GUIColorManager.h
branches/linuxport/XBMC/guilib/GUIControlGroup.cpp
branches/linuxport/XBMC/guilib/GUIControlGroup.h
branches/linuxport/XBMC/guilib/GUIControlGroupList.cpp
branches/linuxport/XBMC/guilib/GUIControlGroupList.h
branches/linuxport/XBMC/guilib/GUIFixedListContainer.cpp
branches/linuxport/XBMC/guilib/GUIFixedListContainer.h
branches/linuxport/XBMC/guilib/GUIInfoColor.cpp
branches/linuxport/XBMC/guilib/GUIInfoColor.h
branches/linuxport/XBMC/guilib/GUILargeImage.cpp
branches/linuxport/XBMC/guilib/GUILargeImage.h
branches/linuxport/XBMC/guilib/GUIListContainer.cpp
branches/linuxport/XBMC/guilib/GUIListContainer.h
branches/linuxport/XBMC/guilib/GUIListGroup.cpp
branches/linuxport/XBMC/guilib/GUIListGroup.h
branches/linuxport/XBMC/guilib/GUIListItemLayout.cpp
branches/linuxport/XBMC/guilib/GUIListItemLayout.h
branches/linuxport/XBMC/guilib/GUIListLabel.cpp
branches/linuxport/XBMC/guilib/GUIListLabel.h
branches/linuxport/XBMC/guilib/GUIMultiSelectText.cpp
branches/linuxport/XBMC/guilib/GUIMultiSelectText.h
branches/linuxport/XBMC/guilib/GUIPanelContainer.cpp
branches/linuxport/XBMC/guilib/GUIPanelContainer.h
branches/linuxport/XBMC/guilib/GUIScrollBarControl.cpp
branches/linuxport/XBMC/guilib/GUIScrollBarControl.h
branches/linuxport/XBMC/guilib/GUITextLayout.cpp
branches/linuxport/XBMC/guilib/GUITextLayout.h
branches/linuxport/XBMC/guilib/GUIWrappingListContainer.cpp
branches/linuxport/XBMC/guilib/GUIWrappingListContainer.h
branches/linuxport/XBMC/guilib/Geometry.h
branches/linuxport/XBMC/guilib/common/DirectInput.cpp
branches/linuxport/XBMC/guilib/common/DirectInput.h
branches/linuxport/XBMC/guilib/common/DirectInputKeyboard.h
branches/linuxport/XBMC/guilib/common/DirectInputMouse.cpp
branches/linuxport/XBMC/guilib/common/DirectInputMouse.h
branches/linuxport/XBMC/guilib/common/Keyboard.cpp
branches/linuxport/XBMC/guilib/common/Mouse.cpp
branches/linuxport/XBMC/guilib/common/Mouse.h
branches/linuxport/XBMC/language/Esperanto/strings.xml
branches/linuxport/XBMC/language/Slovak/strings.xml
branches/linuxport/XBMC/project/Win32BuildSetup/tools/Unrar/license.txt
branches/linuxport/XBMC/skin/Project Mayhem III/PAL/DialogAccessPoints.xml
branches/linuxport/XBMC/skin/Project Mayhem III/PAL/DialogPluginSettings.xml
branches/linuxport/XBMC/system/scrapers/video/KinoPoisk.xml
branches/linuxport/XBMC/system/scrapers/video/filmweb.xml
branches/linuxport/XBMC/tools/Changelog/stdafx.h
branches/linuxport/XBMC/tools/Scrap/Scraper.cpp
branches/linuxport/XBMC/tools/Scrap/ScraperParser.cpp
branches/linuxport/XBMC/tools/Scrap/ScraperParser.h
branches/linuxport/XBMC/tools/Scrap/scrap.cpp
branches/linuxport/XBMC/xbmc/Album.cpp
branches/linuxport/XBMC/xbmc/ApplicationRenderer.cpp
branches/linuxport/XBMC/xbmc/ApplicationRenderer.h
branches/linuxport/XBMC/xbmc/BusyIndicator.h
branches/linuxport/XBMC/xbmc/Edl.h
branches/linuxport/XBMC/xbmc/FileSystem/ASAPFileDirectory.cpp
branches/linuxport/XBMC/xbmc/FileSystem/ASAPFileDirectory.h
branches/linuxport/XBMC/xbmc/FileSystem/DirectoryTuxBox.cpp
branches/linuxport/XBMC/xbmc/FileSystem/DirectoryTuxBox.h
branches/linuxport/XBMC/xbmc/FileSystem/DllLibCMyth.h
branches/linuxport/XBMC/xbmc/FileSystem/FileCache.h
branches/linuxport/XBMC/xbmc/FileSystem/FileTuxBox.cpp
branches/linuxport/XBMC/xbmc/FileSystem/FileTuxBox.h
branches/linuxport/XBMC/xbmc/FileSystem/HDHomeRun.h
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYear.cpp
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYear.h
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYearAlbum.cpp
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYearAlbum.h
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYearSong.cpp
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYearSong.h
branches/linuxport/XBMC/xbmc/FileSystem/MusicFileDirectory.cpp
branches/linuxport/XBMC/xbmc/FileSystem/MusicFileDirectory.h
branches/linuxport/XBMC/xbmc/FileSystem/MusicSearchDirectory.cpp
branches/linuxport/XBMC/xbmc/FileSystem/MusicSearchDirectory.h
branches/linuxport/XBMC/xbmc/FileSystem/NptXbmcFile.cpp
branches/linuxport/XBMC/xbmc/FileSystem/PluginDirectory.cpp
branches/linuxport/XBMC/xbmc/FileSystem/PluginDirectory.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNode.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNode.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeActor.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeActor.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeDirector.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeDirector.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeEpisodes.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeEpisodes.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeGenre.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeGenre.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeMoviesOverview.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeMoviesOverview.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeMusicVideosOverview.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeMusicVideosOverview.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeOverview.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeOverview.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedEpisodes.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedEpisodes.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedMovies.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedMovies.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedMusicVideos.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedMusicVideos.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRoot.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRoot.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeSeasons.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeSeasons.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeStudio.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeStudio.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleMovies.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleMovies.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleMusicVideos.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleMusicVideos.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleTvShows.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleTvShows.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTvShowsOverview.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTvShowsOverview.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeYear.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeYear.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/QueryParams.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/QueryParams.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory.h
branches/linuxport/XBMC/xbmc/GUIDialogContentSettings.cpp
branches/linuxport/XBMC/xbmc/GUIDialogPluginSettings.h
branches/linuxport/XBMC/xbmc/GUIDialogSmartPlaylistRule.cpp
branches/linuxport/XBMC/xbmc/GUILargeTextureManager.cpp
branches/linuxport/XBMC/xbmc/GUILargeTextureManager.h
branches/linuxport/XBMC/xbmc/GUIWindowMusicPlaylistEditor.cpp
branches/linuxport/XBMC/xbmc/GUIWindowVideoNav.cpp
branches/linuxport/XBMC/xbmc/LastFmManager.cpp
branches/linuxport/XBMC/xbmc/LastFmManager.h
branches/linuxport/XBMC/xbmc/MediaSource.cpp
branches/linuxport/XBMC/xbmc/MediaSource.h
branches/linuxport/XBMC/xbmc/MusicInfoTagLoaderASAP.cpp
branches/linuxport/XBMC/xbmc/MusicInfoTagLoaderASAP.h
branches/linuxport/XBMC/xbmc/PictureInfoLoader.cpp
branches/linuxport/XBMC/xbmc/PictureInfoLoader.h
branches/linuxport/XBMC/xbmc/PictureInfoTag.cpp
branches/linuxport/XBMC/xbmc/PictureInfoTag.h
branches/linuxport/XBMC/xbmc/PluginSettings.cpp
branches/linuxport/XBMC/xbmc/ScraperSettings.h
branches/linuxport/XBMC/xbmc/UPnP.cpp
branches/linuxport/XBMC/xbmc/VideoInfoScanner.h
branches/linuxport/XBMC/xbmc/VideoInfoTag.cpp
branches/linuxport/XBMC/xbmc/ViewDatabase.cpp
branches/linuxport/XBMC/xbmc/ViewDatabase.h
branches/linuxport/XBMC/xbmc/ViewState.h
branches/linuxport/XBMC/xbmc/cores/DllLoader/LibraryLoader.h
branches/linuxport/XBMC/xbmc/cores/DummyVideoPlayer.h
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/RGBRendererV2.cpp
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/RGBRendererV2.h
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/WinRenderManager.cpp
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/WinRenderManager.h
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/WinRenderer.cpp
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/WinRenderer.h
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.h
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecSSA.cpp
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecText.cpp
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecText.h
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayImage.h
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxVobsub.cpp
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxVobsub.h
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFFmpeg.cpp
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFFmpeg.h
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/AACCodec.c
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/AACCodec.h
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/alac_decoder/demux.c
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/alac_decoder/stream.c
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/alac_decoder/stream.h
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/mp4ff/drms.c
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/mp4ff/mp4ff.h
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/mp4ff/mp4ffint.h
branches/linuxport/XBMC/xbmc/cores/paplayer/ADPCMCodec/ADPCMDll.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/ADPCMCodec.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/ASAPCodec.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/ASAPCodec.h
branches/linuxport/XBMC/xbmc/cores/paplayer/CachingCodec.h
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/XBMCCube.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/adp.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/adx.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/afc.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/cube.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/cube.h
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/decode.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/dsp.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/pcm.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/vag.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/wamain.h
branches/linuxport/XBMC/xbmc/cores/paplayer/DCACodec/libdts/parse.c
branches/linuxport/XBMC/xbmc/cores/paplayer/DllASAP.h
branches/linuxport/XBMC/xbmc/cores/paplayer/DllAdpcm.h
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/XBMCGYM.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/gym_play.h
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/psg.c
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/psg.h
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/ym2612.c
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/ym2612.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/APEtag/APEtag.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/APEtag/Main.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/APEtag/Test.dof
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/APEtag/Test.dpr
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v1/ID3v1.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v1/Main.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v1/Test.dof
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v1/Test.dpr
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v2/ID3v2.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v2/Main.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v2/Test.dof
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v2/Test.dpr
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Monkey/Main.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Monkey/Monkey.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Monkey/Test.dof
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Monkey/Test.dpr
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Analyze/Sample 1/Sample 1.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Compress/Sample 1/Sample 1.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Compress/Sample 2/Sample 2.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Decompress/Sample 1/Sample 1.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Decompress/Sample 2/Sample 2.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Decompress/Sample 3/Sample 3.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Console/Console.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Console/Console.vcproj
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Console/Resource Script.rc
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/MACDll.def
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/MACDll.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/MACDll.vcproj
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/Resource Script.rc
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Assembly/Tools.inc
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MACLib.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MACLib.vcproj
branches/linuxport/XBMC/xbmc/cores/paplayer/MP3Codec/MADCodec/MadMp3Decoder.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MP3Codec/MADCodec/MadMp3Decoder.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MP3Codec/MADCodec/stdafx.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MPCCodec/src/mpc_decoder.c
branches/linuxport/XBMC/xbmc/cores/paplayer/ModuleCodec/vc6/dumb/DumbDLL.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/TimidityCodec.h
branches/linuxport/XBMC/xbmc/cores/paplayer/flac-1.2.1/src/plugin_winamp2/include/winamp2/in2.h
branches/linuxport/XBMC/xbmc/cores/paplayer/paplayer_win32.cpp
branches/linuxport/XBMC/xbmc/id3v1genre.h
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/GUIPythonWindowXML.cpp
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/GUIPythonWindowXML.h
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/GUIPythonWindowXMLDialog.cpp
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/GUIPythonWindowXMLDialog.h
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/controlprogress.cpp
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/xbmcplugin.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/Source/Core/PltDatagramStream.h
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/Bsd/NptBsdSockets.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/PSP/NptPSPNetwork.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/Win32/NptWin32Debug.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/Tests/Maps1/MapsTest1.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/Tests/Threads1/ThreadsTest1.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/Tests/Xml1/XmlTest1Data.cpp
branches/linuxport/XBMC/xbmc/lib/libcdio/mmc.h
branches/linuxport/XBMC/xbmc/lib/libcmyth/cmyth_local.h
branches/linuxport/XBMC/xbmc/lib/libcmyth/proginfo.c
branches/linuxport/XBMC/xbmc/lib/libexif/libexif.h
branches/linuxport/XBMC/xbmc/linux/ConvUtils.cpp
branches/linuxport/XBMC/xbmc/linux/XSyncUtils.h
branches/linuxport/XBMC/xbmc/utils/CPUInfo.cpp
branches/linuxport/XBMC/xbmc/utils/Fanart.cpp
branches/linuxport/XBMC/xbmc/utils/TuxBoxUtil.cpp
branches/linuxport/XBMC/xbmc/win32/NetworkWin32.cpp
branches/linuxport/XBMC/xbmc/win32/PlatformDefs.h
branches/linuxport/XBMC/xbmc/win32/WIN32Util.h
branches/linuxport/XBMC/xbmc/win32/WMIInterface.cpp
branches/linuxport/XBMC/xbmc/win32/WMIInterface.h
Property Changed:
----------------
branches/linuxport/XBMC/guilib/GUIBaseContainer.cpp
branches/linuxport/XBMC/guilib/GUIBaseContainer.h
branches/linuxport/XBMC/guilib/GUIColorManager.cpp
branches/linuxport/XBMC/guilib/GUIColorManager.h
branches/linuxport/XBMC/guilib/GUIControlGroup.cpp
branches/linuxport/XBMC/guilib/GUIControlGroup.h
branches/linuxport/XBMC/guilib/GUIControlGroupList.cpp
branches/linuxport/XBMC/guilib/GUIControlGroupList.h
branches/linuxport/XBMC/guilib/GUIFixedListContainer.cpp
branches/linuxport/XBMC/guilib/GUIFixedListContainer.h
branches/linuxport/XBMC/guilib/GUIInfoColor.cpp
branches/linuxport/XBMC/guilib/GUIInfoColor.h
branches/linuxport/XBMC/guilib/GUILargeImage.cpp
branches/linuxport/XBMC/guilib/GUILargeImage.h
branches/linuxport/XBMC/guilib/GUIListContainer.cpp
branches/linuxport/XBMC/guilib/GUIListContainer.h
branches/linuxport/XBMC/guilib/GUIListGroup.cpp
branches/linuxport/XBMC/guilib/GUIListGroup.h
branches/linuxport/XBMC/guilib/GUIListItemLayout.cpp
branches/linuxport/XBMC/guilib/GUIListItemLayout.h
branches/linuxport/XBMC/guilib/GUIListLabel.cpp
branches/linuxport/XBMC/guilib/GUIListLabel.h
branches/linuxport/XBMC/guilib/GUIMultiSelectText.cpp
branches/linuxport/XBMC/guilib/GUIMultiSelectText.h
branches/linuxport/XBMC/guilib/GUIPanelContainer.cpp
branches/linuxport/XBMC/guilib/GUIPanelContainer.h
branches/linuxport/XBMC/guilib/GUIScrollBarControl.cpp
branches/linuxport/XBMC/guilib/GUIScrollBarControl.h
branches/linuxport/XBMC/guilib/GUITextLayout.cpp
branches/linuxport/XBMC/guilib/GUITextLayout.h
branches/linuxport/XBMC/guilib/GUIWrappingListContainer.cpp
branches/linuxport/XBMC/guilib/GUIWrappingListContainer.h
branches/linuxport/XBMC/guilib/Geometry.h
branches/linuxport/XBMC/guilib/common/DirectInput.cpp
branches/linuxport/XBMC/guilib/common/DirectInput.h
branches/linuxport/XBMC/guilib/common/DirectInputKeyboard.h
branches/linuxport/XBMC/guilib/common/DirectInputMouse.cpp
branches/linuxport/XBMC/guilib/common/DirectInputMouse.h
branches/linuxport/XBMC/guilib/common/Keyboard.cpp
branches/linuxport/XBMC/guilib/common/Mouse.cpp
branches/linuxport/XBMC/guilib/common/Mouse.h
branches/linuxport/XBMC/language/Slovak/strings.xml
branches/linuxport/XBMC/project/Win32BuildSetup/tools/Unrar/license.txt
branches/linuxport/XBMC/skin/Project Mayhem III/PAL/DialogAccessPoints.xml
branches/linuxport/XBMC/skin/Project Mayhem III/PAL/DialogPluginSettings.xml
branches/linuxport/XBMC/system/scrapers/video/KinoPoisk.xml
branches/linuxport/XBMC/system/scrapers/video/filmweb.xml
branches/linuxport/XBMC/tools/Changelog/stdafx.h
branches/linuxport/XBMC/tools/Scrap/Scraper.cpp
branches/linuxport/XBMC/tools/Scrap/ScraperParser.cpp
branches/linuxport/XBMC/tools/Scrap/ScraperParser.h
branches/linuxport/XBMC/tools/Scrap/scrap.cpp
branches/linuxport/XBMC/xbmc/Album.cpp
branches/linuxport/XBMC/xbmc/ApplicationRenderer.cpp
branches/linuxport/XBMC/xbmc/ApplicationRenderer.h
branches/linuxport/XBMC/xbmc/BusyIndicator.h
branches/linuxport/XBMC/xbmc/Edl.h
branches/linuxport/XBMC/xbmc/FileSystem/ASAPFileDirectory.cpp
branches/linuxport/XBMC/xbmc/FileSystem/ASAPFileDirectory.h
branches/linuxport/XBMC/xbmc/FileSystem/DirectoryTuxBox.cpp
branches/linuxport/XBMC/xbmc/FileSystem/DirectoryTuxBox.h
branches/linuxport/XBMC/xbmc/FileSystem/DllLibCMyth.h
branches/linuxport/XBMC/xbmc/FileSystem/FileCache.h
branches/linuxport/XBMC/xbmc/FileSystem/FileTuxBox.cpp
branches/linuxport/XBMC/xbmc/FileSystem/FileTuxBox.h
branches/linuxport/XBMC/xbmc/FileSystem/HDHomeRun.h
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYear.cpp
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYear.h
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYearAlbum.cpp
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYearAlbum.h
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYearSong.cpp
branches/linuxport/XBMC/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeYearSong.h
branches/linuxport/XBMC/xbmc/FileSystem/MusicFileDirectory.cpp
branches/linuxport/XBMC/xbmc/FileSystem/MusicFileDirectory.h
branches/linuxport/XBMC/xbmc/FileSystem/MusicSearchDirectory.cpp
branches/linuxport/XBMC/xbmc/FileSystem/MusicSearchDirectory.h
branches/linuxport/XBMC/xbmc/FileSystem/NptXbmcFile.cpp
branches/linuxport/XBMC/xbmc/FileSystem/PluginDirectory.cpp
branches/linuxport/XBMC/xbmc/FileSystem/PluginDirectory.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNode.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNode.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeActor.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeActor.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeDirector.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeDirector.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeEpisodes.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeEpisodes.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeGenre.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeGenre.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeMoviesOverview.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeMoviesOverview.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeMusicVideosOverview.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeMusicVideosOverview.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeOverview.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeOverview.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedEpisodes.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedEpisodes.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedMovies.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedMovies.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedMusicVideos.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRecentlyAddedMusicVideos.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRoot.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeRoot.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeSeasons.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeSeasons.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeStudio.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeStudio.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleMovies.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleMovies.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleMusicVideos.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleMusicVideos.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleTvShows.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTitleTvShows.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTvShowsOverview.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeTvShowsOverview.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeYear.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeYear.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/QueryParams.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory/QueryParams.h
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory.cpp
branches/linuxport/XBMC/xbmc/FileSystem/VideoDatabaseDirectory.h
branches/linuxport/XBMC/xbmc/GUIDialogContentSettings.cpp
branches/linuxport/XBMC/xbmc/GUIDialogPluginSettings.h
branches/linuxport/XBMC/xbmc/GUIDialogSmartPlaylistRule.cpp
branches/linuxport/XBMC/xbmc/GUILargeTextureManager.cpp
branches/linuxport/XBMC/xbmc/GUILargeTextureManager.h
branches/linuxport/XBMC/xbmc/GUIWindowMusicPlaylistEditor.cpp
branches/linuxport/XBMC/xbmc/GUIWindowVideoNav.cpp
branches/linuxport/XBMC/xbmc/LastFmManager.cpp
branches/linuxport/XBMC/xbmc/LastFmManager.h
branches/linuxport/XBMC/xbmc/MediaSource.cpp
branches/linuxport/XBMC/xbmc/MediaSource.h
branches/linuxport/XBMC/xbmc/MusicInfoTagLoaderASAP.cpp
branches/linuxport/XBMC/xbmc/MusicInfoTagLoaderASAP.h
branches/linuxport/XBMC/xbmc/PictureInfoLoader.cpp
branches/linuxport/XBMC/xbmc/PictureInfoLoader.h
branches/linuxport/XBMC/xbmc/PictureInfoTag.cpp
branches/linuxport/XBMC/xbmc/PictureInfoTag.h
branches/linuxport/XBMC/xbmc/PluginSettings.cpp
branches/linuxport/XBMC/xbmc/ScraperSettings.h
branches/linuxport/XBMC/xbmc/UPnP.cpp
branches/linuxport/XBMC/xbmc/VideoInfoScanner.h
branches/linuxport/XBMC/xbmc/VideoInfoTag.cpp
branches/linuxport/XBMC/xbmc/ViewDatabase.cpp
branches/linuxport/XBMC/xbmc/ViewDatabase.h
branches/linuxport/XBMC/xbmc/ViewState.h
branches/linuxport/XBMC/xbmc/cores/DllLoader/LibraryLoader.h
branches/linuxport/XBMC/xbmc/cores/DummyVideoPlayer.h
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/RGBRendererV2.cpp
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/RGBRendererV2.h
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/WinRenderManager.cpp
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/WinRenderManager.h
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/WinRenderer.cpp
branches/linuxport/XBMC/xbmc/cores/VideoRenderers/WinRenderer.h
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.h
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecSSA.cpp
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecText.cpp
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecText.h
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayImage.h
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxVobsub.cpp
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxVobsub.h
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFFmpeg.cpp
branches/linuxport/XBMC/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFFmpeg.h
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/AACCodec.c
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/AACCodec.h
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/alac_decoder/demux.c
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/alac_decoder/stream.c
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/alac_decoder/stream.h
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/mp4ff/drms.c
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/mp4ff/mp4ff.h
branches/linuxport/XBMC/xbmc/cores/paplayer/AACCodec/mp4ff/mp4ffint.h
branches/linuxport/XBMC/xbmc/cores/paplayer/ADPCMCodec/ADPCMDll.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/ADPCMCodec.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/ASAPCodec.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/ASAPCodec.h
branches/linuxport/XBMC/xbmc/cores/paplayer/CachingCodec.h
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/XBMCCube.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/adp.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/adx.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/afc.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/cube.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/cube.h
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/decode.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/dsp.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/pcm.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/vag.c
branches/linuxport/XBMC/xbmc/cores/paplayer/CubeCodec/wamain.h
branches/linuxport/XBMC/xbmc/cores/paplayer/DCACodec/libdts/parse.c
branches/linuxport/XBMC/xbmc/cores/paplayer/DllASAP.h
branches/linuxport/XBMC/xbmc/cores/paplayer/DllAdpcm.h
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/XBMCGYM.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/gym_play.h
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/psg.c
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/psg.h
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/ym2612.c
branches/linuxport/XBMC/xbmc/cores/paplayer/GYMCodec/ym2612.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/APEtag/APEtag.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/APEtag/Info.txt
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/APEtag/Main.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/APEtag/Test.cfg
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/APEtag/Test.dof
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/APEtag/Test.dpr
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v1/ID3v1.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v1/Info.txt
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v1/Main.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v1/Test.cfg
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v1/Test.dof
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v1/Test.dpr
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v2/ID3v2.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v2/Info.txt
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v2/Main.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v2/Test.cfg
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v2/Test.dof
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/ID3v2/Test.dpr
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Monkey/Info.txt
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Monkey/Main.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Monkey/Monkey.pas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Monkey/Test.cfg
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Monkey/Test.dof
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Monkey/Test.dpr
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/3rd Party/TMonkey (Delphi)/Readme.txt
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Analyze/Sample 1/Sample 1.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Analyze/Sample 1/Sample 1.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Compress/Sample 1/Sample 1.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Compress/Sample 1/Sample 1.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Compress/Sample 2/Sample 2.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Compress/Sample 2/Sample 2.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Decompress/Sample 1/Sample 1.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Decompress/Sample 1/Sample 1.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Decompress/Sample 2/Sample 2.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Decompress/Sample 2/Sample 2.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Decompress/Sample 3/Sample 3.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Decompress/Sample 3/Sample 3.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Makefile
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Shared/APETag.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Shared/All.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Shared/IO.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Shared/MACDll.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Shared/MACLib.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Shared/SmartPtr.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Console/Console.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Console/Console.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Console/Console.vcproj
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Console/Resource Script.rc
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Console/resource.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Credits.txt
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/History.txt
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/License.htm
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/MACDll.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/MACDll.def
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/MACDll.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/MACDll.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/MACDll.vcproj
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/Resource Script.rc
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACDll/resource.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APECompress.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APECompress.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APECompressCore.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APECompressCore.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APECompressCreate.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APECompressCreate.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APEDecompress.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APEDecompress.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APEHeader.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APEHeader.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APEInfo.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APEInfo.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APELink.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APELink.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APESimple.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APETag.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/APETag.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Assembly/Assembly.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Assembly/Assembly.nas
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Assembly/NNFilterAsm.lst
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Assembly/Tools.inc
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/BitArray.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/BitArray.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MACLib.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MACLib.dsp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MACLib.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MACLib.vcproj
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MACProgressHelper.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MACProgressHelper.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MD5.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MD5.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/MultichannelNNFilter.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/NNFilter.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/NNFilter.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/NewPredictor.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/NewPredictor.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/APEDecompressCore.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/APEDecompressCore.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/APEDecompressOld.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/APEDecompressOld.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/Anti-Predictor.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/Anti-Predictor.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/AntiPredictorExtraHigh.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/AntiPredictorFast.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/AntiPredictorHigh.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/AntiPredictorNormal.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/UnBitArrayOld.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/UnBitArrayOld.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/UnMAC.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Old/UnMAC.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Predictor.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Prepare.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/Prepare.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/ScaledFirstOrderFilter.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/StartFilter.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/UnBitArray.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/UnBitArray.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/UnBitArrayBase.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/UnBitArrayBase.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/WAVInputSource.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/MACLib/WAVInputSource.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Makefile
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Readme.htm
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/APEInfoDialog.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/APEInfoDialog.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/All.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/CharacterHelper.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/CharacterHelper.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/CircleBuffer.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/CircleBuffer.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/GlobalFunctions.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/GlobalFunctions.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/ID3Genres.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/IO.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/NoWindows.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/RollBuffer.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/SmartPtr.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/StdLibFileIO.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/StdLibFileIO.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/StdString.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/Unicows.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/WAVInfoDialog.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/WAVInfoDialog.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/WinFileIO.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MACDll/Source/Shared/WinFileIO.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MP3Codec/MADCodec/MadMp3Decoder.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/MP3Codec/MADCodec/MadMp3Decoder.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MP3Codec/MADCodec/stdafx.h
branches/linuxport/XBMC/xbmc/cores/paplayer/MPCCodec/src/mpc_decoder.c
branches/linuxport/XBMC/xbmc/cores/paplayer/ModuleCodec/vc6/dumb/DumbDLL.cpp
branches/linuxport/XBMC/xbmc/cores/paplayer/TimidityCodec.h
branches/linuxport/XBMC/xbmc/cores/paplayer/flac-1.2.1/src/plugin_winamp2/include/winamp2/in2.h
branches/linuxport/XBMC/xbmc/cores/paplayer/paplayer_win32.cpp
branches/linuxport/XBMC/xbmc/id3v1genre.h
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/GUIPythonWindowXML.cpp
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/GUIPythonWindowXML.h
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/GUIPythonWindowXMLDialog.cpp
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/GUIPythonWindowXMLDialog.h
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/controlprogress.cpp
branches/linuxport/XBMC/xbmc/lib/libPython/xbmcmodule/xbmcplugin.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/Source/Core/PltDatagramStream.h
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/Bsd/NptBsdSockets.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/PSP/NptPSPNetwork.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/Win32/NptWin32Debug.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/Tests/Maps1/MapsTest1.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/Tests/Threads1/ThreadsTest1.cpp
branches/linuxport/XBMC/xbmc/lib/libUPnP/Platinum/ThirdParty/Neptune/Source/Tests/Xml1/XmlTest1Data.cpp
branches/linuxport/XBMC/xbmc/lib/libcdio/mmc.h
branches/linuxport/XBMC/xbmc/lib/libcmyth/cmyth_local.h
branches/linuxport/XBMC/xbmc/lib/libcmyth/proginfo.c
branches/linuxport/XBMC/xbmc/lib/libexif/libexif.h
branches/linuxport/XBMC/xbmc/linux/ConvUtils.cpp
branches/linuxport/XBMC/xbmc/linux/XSyncUtils.h
branches/linuxport/XBMC/xbmc/utils/CPUInfo.cpp
branches/linuxport/XBMC/xbmc/utils/Fanart.cpp
branches/linuxport/XBMC/xbmc/utils/TuxBoxUtil.cpp
branches/linuxport/XBMC/xbmc/win32/NetworkWin32.cpp
branches/linuxport/XBMC/xbmc/win32/PlatformDefs.h
branches/linuxport/XBMC/xbmc/win32/WIN32Util.h
branches/linuxport/XBMC/xbmc/win32/WMIInterface.cpp
branches/linuxport/XBMC/xbmc/win32/WMIInterface.h
Modified: branches/linuxport/XBMC/guilib/GUIBaseContainer.cpp
===================================================================
--- branches/linuxport/XBMC/guilib/GUIBaseContainer.cpp 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIBaseContainer.cpp 2008-07-15 19:14:31 UTC (rev 14126)
@@ -145,7 +145,7 @@
}
if (message.GetMessage() == GUI_MSG_LABEL_ADD && message.GetItem())
{
- CGUIListItemPtr item = message.GetItem();
+ CGUIListItemPtr item = message.GetItem();
m_items.push_back(item);
if (m_pageControl)
{
@@ -293,8 +293,8 @@
CGUIListItemLayout *CGUIBaseContainer::GetFocusedLayout() const
{
- CGUIListItemPtr item = GetListItem(0);
- if (item.get()) return item->GetFocusedLayout();
+ CGUIListItemPtr item = GetListItem(0);
+ if (item.get()) return item->GetFocusedLayout();
return NULL;
}
@@ -369,7 +369,7 @@
int selected = GetSelectedItem();
if (selected >= 0 && selected < (int)m_items.size())
{
- CFileItemPtr item = boost::static_pointer_cast<CFileItem>(m_items[selected]);
+ CFileItemPtr item = boost::static_pointer_cast<CFileItem>(m_items[selected]);
// multiple action strings are concat'd together, separated with " , "
vector<CStdString> actions;
StringUtils::SplitString(item->m_strPath, " , ", actions);
@@ -406,7 +406,7 @@
int item = GetSelectedItem();
if (item >= 0 && item < (int)m_items.size())
{
- CGUIListItemPtr pItem = m_items[item];
+ CGUIListItemPtr pItem = m_items[item];
if (pItem->m_bIsFolder)
strLabel.Format("[%s]", pItem->GetLabel().c_str());
else
@@ -502,12 +502,12 @@
Reset();
for (unsigned int i = 0; i < m_staticItems.size(); ++i)
{
- CFileItemPtr item = boost::static_pointer_cast<CFileItem>(m_staticItems[i]);
+ CFileItemPtr item = boost::static_pointer_cast<CFileItem>(m_staticItems[i]);
// m_idepth is used to store the visibility condition
if (!item->m_idepth || g_infoManager.GetBool(item->m_idepth, GetParentID()))
{
m_items.push_back(item);
- if (item.get() == lastItem)
+ if (item.get() == lastItem)
m_lastItem = lastItem;
}
}
@@ -624,7 +624,7 @@
g_SkinInfo.ResolveIncludes(item);
if (item->FirstChild())
{
- CFileItemPtr newItem;
+ CFileItemPtr newItem;
// check whether we're using the more verbose method...
TiXmlNode *click = item->FirstChild("onclick");
if (click && click->FirstChild())
@@ -637,7 +637,7 @@
const char *id = item->Attribute("id");
int visibleCondition = 0;
CGUIControlFactory::GetConditionalVisibility(item, visibleCondition);
- newItem.reset(new CFileItem(CGUIControlFactory::FilterLabel(label)));
+ newItem.reset(new CFileItem(CGUIControlFactory::FilterLabel(label)));
// multiple action strings are concat'd together, separated with " , "
vector<CStdString> actions;
CGUIControlFactory::GetMultipleString(item, "onclick", actions);
@@ -657,7 +657,7 @@
const char *thumb = item->Attribute("thumb");
const char *icon = item->Attribute("icon");
const char *id = item->Attribute("id");
- newItem.reset(new CFileItem(label ? CGUIControlFactory::FilterLabel(label) : ""));
+ newItem.reset(new CFileItem(label ? CGUIControlFactory::FilterLabel(label) : ""));
newItem->m_strPath = item->FirstChild()->Value();
if (label2) newItem->SetLabel2(CGUIControlFactory::FilterLabel(label2));
if (thumb) newItem->SetThumbnailImage(thumb);
@@ -717,7 +717,7 @@
CLog::Log(LOGDEBUG, "%s for container %u", __FUNCTION__, GetID());
for (unsigned int i = 0; i < m_items.size(); ++i)
{
- CGUIListItemPtr item = m_items[i];
+ CGUIListItemPtr item = m_items[i];
if (item->GetFocusedLayout()) item->GetFocusedLayout()->DumpTextureUse();
if (item->GetLayout()) item->GetLayout()->DumpTextureUse();
}
@@ -804,7 +804,7 @@
case CONTAINER_NUM_ITEMS:
{
unsigned int numItems = GetNumItems();
- if (numItems && m_items[0]->IsFileItem() && (boost::static_pointer_cast<CFileItem>(m_items[0]))->IsParentFolder())
+ if (numItems && m_items[0]->IsFileItem() && (boost::static_pointer_cast<CFileItem>(m_items[0]))->IsParentFolder())
label.Format("%u", numItems-1);
else
label.Format("%u", numItems);
Property changes on: branches/linuxport/XBMC/guilib/GUIBaseContainer.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIBaseContainer.h
===================================================================
--- branches/linuxport/XBMC/guilib/GUIBaseContainer.h 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIBaseContainer.h 2008-07-15 19:14:31 UTC (rev 14126)
@@ -1,8 +1,8 @@
-/*!
-\file GUIListContainer.h
-\brief
-*/
-
+/*!
+\file GUIListContainer.h
+\brief
+*/
+
#pragma once
/*
@@ -24,138 +24,138 @@
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
* http://www.gnu.org/copyleft/gpl.html
*
- */
-
-#include "GUIControl.h"
-#include "GUIListItemLayout.h"
-#include "boost/shared_ptr.hpp"
-
-typedef boost::shared_ptr<CGUIListItem> CGUIListItemPtr;
-
-enum VIEW_TYPE { VIEW_TYPE_NONE = 0,
- VIEW_TYPE_LIST,
- VIEW_TYPE_ICON,
- VIEW_TYPE_BIG_LIST,
- VIEW_TYPE_BIG_ICON,
- VIEW_TYPE_WIDE,
- VIEW_TYPE_BIG_WIDE,
- VIEW_TYPE_WRAP,
- VIEW_TYPE_BIG_WRAP,
- VIEW_TYPE_AUTO,
- VIEW_TYPE_MAX };
-/*!
- \ingroup controls
- \brief
- */
-
-class CGUIBaseContainer : public CGUIControl
-{
-public:
- CGUIBaseContainer(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, ORIENTATION orientation, int scrollTime);
- virtual ~CGUIBaseContainer(void);
-
- virtual bool OnAction(const CAction &action);
- virtual void OnDown();
- virtual void OnUp();
- virtual void OnLeft();
- virtual void OnRight();
- virtual bool OnMouseOver(const CPoint &point);
- virtual bool OnMouseClick(DWORD dwButton, const CPoint &point);
- virtual bool OnMouseDoubleClick(DWORD dwButton, const CPoint &point);
- virtual bool OnMouseWheel(char wheel, const CPoint &point);
- virtual bool OnMessage(CGUIMessage& message);
- virtual void SetFocus(bool bOnOff);
- virtual void AllocResources();
- virtual void FreeResources();
- virtual void UpdateVisibility(const CGUIListItem *item = NULL);
-
- virtual unsigned int GetRows() const;
-
- virtual bool HasNextPage() const;
- virtual bool HasPreviousPage() const;
-
- void SetPageControl(DWORD id);
-
- virtual CStdString GetDescription() const;
- virtual void SaveStates(std::vector<CControlState> &states);
- virtual int GetSelectedItem() const;
-
- virtual void DoRender(DWORD currentTime);
- void LoadLayout(TiXmlElement *layout);
- void LoadContent(TiXmlElement *content);
-
- VIEW_TYPE GetType() const { return m_type; };
- const CStdString &GetLabel() const { return m_label; };
- void SetType(VIEW_TYPE type, const CStdString &label);
-
- virtual bool IsContainer() const { return true; };
- CGUIListItemPtr GetListItem(int offset, unsigned int flag = 0) const;
-
- virtual bool GetCondition(int condition, int data) const;
- CStdString GetLabel(int info) const;
-
-#ifdef _DEBUG
- virtual void DumpTextureUse();
-#endif
-protected:
- bool OnClick(DWORD actionID);
- virtual bool SelectItemFromPoint(const CPoint &point);
- virtual void RenderItem(float posX, float posY, CGUIListItem *item, bool focused);
- virtual void Scroll(int amount);
- virtual bool MoveDown(bool wrapAround);
- virtual bool MoveUp(bool wrapAround);
- virtual void MoveToItem(int item);
- virtual void ValidateOffset();
- virtual int CorrectOffset(int offset, int cursor) const;
- virtual void UpdateLayout(bool refreshAllItems = false);
- virtual void CalculateLayout();
- virtual void SelectItem(int item) {};
- virtual void Reset();
- virtual unsigned int GetNumItems() const { return m_items.size(); };
- virtual int GetCurrentPage() const;
- bool InsideLayout(const CGUIListItemLayout *layout, const CPoint &point);
-
- inline float Size() const;
- void MoveToRow(int row);
- void FreeMemory(int keepStart, int keepEnd);
- void GetCurrentLayouts();
- CGUIListItemLayout *GetFocusedLayout() const;
-
- int m_offset;
- int m_cursor;
- float m_analogScrollCount;
-
- ORIENTATION m_orientation;
- int m_itemsPerPage;
-
- std::vector< CGUIListItemPtr > m_items;
- typedef std::vector<CGUIListItemPtr> ::iterator iItems;
- CGUIListItem *m_lastItem;
-
- DWORD m_pageControl;
-
- DWORD m_renderTime;
-
- std::vector<CGUIListItemLayout> m_layouts;
- std::vector<CGUIListItemLayout> m_focusedLayouts;
-
- CGUIListItemLayout *m_layout;
- CGUIListItemLayout *m_focusedLayout;
-
- virtual void ScrollToOffset(int offset);
- DWORD m_scrollLastTime;
- int m_scrollTime;
- float m_scrollSpeed;
- float m_scrollOffset;
-
- VIEW_TYPE m_type;
- CStdString m_label;
-
- bool m_staticContent;
- std::vector<CGUIListItemPtr> m_staticItems;
- bool m_wasReset; // true if we've received a Reset message until we've rendered once. Allows
- // us to make sure we don't tell the infomanager that we've been moving when
- // the "movement" was simply due to the list being repopulated (thus cursor position
- // changing around)
-};
-
+ */
+
+#include "GUIControl.h"
+#include "GUIListItemLayout.h"
+#include "boost/shared_ptr.hpp"
+
+typedef boost::shared_ptr<CGUIListItem> CGUIListItemPtr;
+
+enum VIEW_TYPE { VIEW_TYPE_NONE = 0,
+ VIEW_TYPE_LIST,
+ VIEW_TYPE_ICON,
+ VIEW_TYPE_BIG_LIST,
+ VIEW_TYPE_BIG_ICON,
+ VIEW_TYPE_WIDE,
+ VIEW_TYPE_BIG_WIDE,
+ VIEW_TYPE_WRAP,
+ VIEW_TYPE_BIG_WRAP,
+ VIEW_TYPE_AUTO,
+ VIEW_TYPE_MAX };
+/*!
+ \ingroup controls
+ \brief
+ */
+
+class CGUIBaseContainer : public CGUIControl
+{
+public:
+ CGUIBaseContainer(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, ORIENTATION orientation, int scrollTime);
+ virtual ~CGUIBaseContainer(void);
+
+ virtual bool OnAction(const CAction &action);
+ virtual void OnDown();
+ virtual void OnUp();
+ virtual void OnLeft();
+ virtual void OnRight();
+ virtual bool OnMouseOver(const CPoint &point);
+ virtual bool OnMouseClick(DWORD dwButton, const CPoint &point);
+ virtual bool OnMouseDoubleClick(DWORD dwButton, const CPoint &point);
+ virtual bool OnMouseWheel(char wheel, const CPoint &point);
+ virtual bool OnMessage(CGUIMessage& message);
+ virtual void SetFocus(bool bOnOff);
+ virtual void AllocResources();
+ virtual void FreeResources();
+ virtual void UpdateVisibility(const CGUIListItem *item = NULL);
+
+ virtual unsigned int GetRows() const;
+
+ virtual bool HasNextPage() const;
+ virtual bool HasPreviousPage() const;
+
+ void SetPageControl(DWORD id);
+
+ virtual CStdString GetDescription() const;
+ virtual void SaveStates(std::vector<CControlState> &states);
+ virtual int GetSelectedItem() const;
+
+ virtual void DoRender(DWORD currentTime);
+ void LoadLayout(TiXmlElement *layout);
+ void LoadContent(TiXmlElement *content);
+
+ VIEW_TYPE GetType() const { return m_type; };
+ const CStdString &GetLabel() const { return m_label; };
+ void SetType(VIEW_TYPE type, const CStdString &label);
+
+ virtual bool IsContainer() const { return true; };
+ CGUIListItemPtr GetListItem(int offset, unsigned int flag = 0) const;
+
+ virtual bool GetCondition(int condition, int data) const;
+ CStdString GetLabel(int info) const;
+
+#ifdef _DEBUG
+ virtual void DumpTextureUse();
+#endif
+protected:
+ bool OnClick(DWORD actionID);
+ virtual bool SelectItemFromPoint(const CPoint &point);
+ virtual void RenderItem(float posX, float posY, CGUIListItem *item, bool focused);
+ virtual void Scroll(int amount);
+ virtual bool MoveDown(bool wrapAround);
+ virtual bool MoveUp(bool wrapAround);
+ virtual void MoveToItem(int item);
+ virtual void ValidateOffset();
+ virtual int CorrectOffset(int offset, int cursor) const;
+ virtual void UpdateLayout(bool refreshAllItems = false);
+ virtual void CalculateLayout();
+ virtual void SelectItem(int item) {};
+ virtual void Reset();
+ virtual unsigned int GetNumItems() const { return m_items.size(); };
+ virtual int GetCurrentPage() const;
+ bool InsideLayout(const CGUIListItemLayout *layout, const CPoint &point);
+
+ inline float Size() const;
+ void MoveToRow(int row);
+ void FreeMemory(int keepStart, int keepEnd);
+ void GetCurrentLayouts();
+ CGUIListItemLayout *GetFocusedLayout() const;
+
+ int m_offset;
+ int m_cursor;
+ float m_analogScrollCount;
+
+ ORIENTATION m_orientation;
+ int m_itemsPerPage;
+
+ std::vector< CGUIListItemPtr > m_items;
+ typedef std::vector<CGUIListItemPtr> ::iterator iItems;
+ CGUIListItem *m_lastItem;
+
+ DWORD m_pageControl;
+
+ DWORD m_renderTime;
+
+ std::vector<CGUIListItemLayout> m_layouts;
+ std::vector<CGUIListItemLayout> m_focusedLayouts;
+
+ CGUIListItemLayout *m_layout;
+ CGUIListItemLayout *m_focusedLayout;
+
+ virtual void ScrollToOffset(int offset);
+ DWORD m_scrollLastTime;
+ int m_scrollTime;
+ float m_scrollSpeed;
+ float m_scrollOffset;
+
+ VIEW_TYPE m_type;
+ CStdString m_label;
+
+ bool m_staticContent;
+ std::vector<CGUIListItemPtr> m_staticItems;
+ bool m_wasReset; // true if we've received a Reset message until we've rendered once. Allows
+ // us to make sure we don't tell the infomanager that we've been moving when
+ // the "movement" was simply due to the list being repopulated (thus cursor position
+ // changing around)
+};
+
Property changes on: branches/linuxport/XBMC/guilib/GUIBaseContainer.h
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIColorManager.cpp
===================================================================
--- branches/linuxport/XBMC/guilib/GUIColorManager.cpp 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIColorManager.cpp 2008-07-15 19:14:31 UTC (rev 14126)
@@ -19,96 +19,96 @@
*
*/
-#include "include.h"
-#include "GUIColorManager.h"
-#include "Util.h"
-#include "SkinInfo.h"
-
-CGUIColorManager g_colorManager;
-
-CGUIColorManager::CGUIColorManager(void)
-{
-}
-
-CGUIColorManager::~CGUIColorManager(void)
-{
- Clear();
-}
-
-void CGUIColorManager::Clear()
-{
- m_colors.clear();
-}
-
-// load the color file in
-void CGUIColorManager::Load(const CStdString &colorFile)
-{
- Clear();
-
- // first load the default color map if it exists
- CStdString path, basePath;
- CUtil::AddFileToFolder(g_SkinInfo.GetBaseDir(), "colors", basePath);
- CUtil::AddFileToFolder(basePath, "defaults.xml", path);
-
- TiXmlDocument xmlDoc;
- if (xmlDoc.LoadFile(PTH_IC(path.c_str())))
- LoadXML(xmlDoc);
-
- // now the color map requested
- if (colorFile.CompareNoCase("SKINDEFAULT") == 0)
- return; // nothing to do
-
- CUtil::AddFileToFolder(basePath, colorFile, path);
- CLog::Log(LOGINFO, "Loading colors from %s", path.c_str());
-
- if (xmlDoc.LoadFile(path.c_str()))
- LoadXML(xmlDoc);
-}
-
-bool CGUIColorManager::LoadXML(TiXmlDocument &xmlDoc)
-{
- TiXmlElement* pRootElement = xmlDoc.RootElement();
-
- CStdString strValue = pRootElement->Value();
- if (strValue != CStdString("colors"))
- {
- CLog::Log(LOGERROR, "color file doesnt start with <colors>");
- return false;
- }
-
- const TiXmlElement *color = pRootElement->FirstChildElement("color");
-
- while (color)
- {
- if (color->FirstChild() && color->Attribute("name"))
- {
- DWORD value = 0xffffffff;
- sscanf(color->FirstChild()->Value(), "%x", (unsigned int*) &value);
- CStdString name = color->Attribute("name");
- iColor it = m_colors.find(name);
- if (it != m_colors.end())
- (*it).second = value;
- else
- m_colors.insert(make_pair(name, value));
- }
- color = color->NextSiblingElement("color");
- }
- return true;
-}
-
-// lookup a color and return it's hex value
-DWORD CGUIColorManager::GetColor(const CStdString &color) const
-{
- // look in our color map
- CStdString trimmed(color);
- trimmed.TrimLeft("= ");
- icColor it = m_colors.find(trimmed);
- if (it != m_colors.end())
- return (*it).second;
-
- // try converting hex directly
- DWORD value = 0;
- sscanf(trimmed.c_str(), "%x", &value);
- return value;
-}
-
+#include "include.h"
+#include "GUIColorManager.h"
+#include "Util.h"
+#include "SkinInfo.h"
+
+CGUIColorManager g_colorManager;
+
+CGUIColorManager::CGUIColorManager(void)
+{
+}
+
+CGUIColorManager::~CGUIColorManager(void)
+{
+ Clear();
+}
+
+void CGUIColorManager::Clear()
+{
+ m_colors.clear();
+}
+
+// load the color file in
+void CGUIColorManager::Load(const CStdString &colorFile)
+{
+ Clear();
+
+ // first load the default color map if it exists
+ CStdString path, basePath;
+ CUtil::AddFileToFolder(g_SkinInfo.GetBaseDir(), "colors", basePath);
+ CUtil::AddFileToFolder(basePath, "defaults.xml", path);
+
+ TiXmlDocument xmlDoc;
+ if (xmlDoc.LoadFile(PTH_IC(path.c_str())))
+ LoadXML(xmlDoc);
+
+ // now the color map requested
+ if (colorFile.CompareNoCase("SKINDEFAULT") == 0)
+ return; // nothing to do
+
+ CUtil::AddFileToFolder(basePath, colorFile, path);
+ CLog::Log(LOGINFO, "Loading colors from %s", path.c_str());
+
+ if (xmlDoc.LoadFile(path.c_str()))
+ LoadXML(xmlDoc);
+}
+
+bool CGUIColorManager::LoadXML(TiXmlDocument &xmlDoc)
+{
+ TiXmlElement* pRootElement = xmlDoc.RootElement();
+
+ CStdString strValue = pRootElement->Value();
+ if (strValue != CStdString("colors"))
+ {
+ CLog::Log(LOGERROR, "color file doesnt start with <colors>");
+ return false;
+ }
+
+ const TiXmlElement *color = pRootElement->FirstChildElement("color");
+
+ while (color)
+ {
+ if (color->FirstChild() && color->Attribute("name"))
+ {
+ DWORD value = 0xffffffff;
+ sscanf(color->FirstChild()->Value(), "%x", (unsigned int*) &value);
+ CStdString name = color->Attribute("name");
+ iColor it = m_colors.find(name);
+ if (it != m_colors.end())
+ (*it).second = value;
+ else
+ m_colors.insert(make_pair(name, value));
+ }
+ color = color->NextSiblingElement("color");
+ }
+ return true;
+}
+
+// lookup a color and return it's hex value
+DWORD CGUIColorManager::GetColor(const CStdString &color) const
+{
+ // look in our color map
+ CStdString trimmed(color);
+ trimmed.TrimLeft("= ");
+ icColor it = m_colors.find(trimmed);
+ if (it != m_colors.end())
+ return (*it).second;
+
+ // try converting hex directly
+ DWORD value = 0;
+ sscanf(trimmed.c_str(), "%x", &value);
+ return value;
+}
+
Property changes on: branches/linuxport/XBMC/guilib/GUIColorManager.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIColorManager.h
===================================================================
--- branches/linuxport/XBMC/guilib/GUIColorManager.h 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIColorManager.h 2008-07-15 19:14:31 UTC (rev 14126)
@@ -1,13 +1,13 @@
-/*!
-\file GUIColorManager.h
-\brief
-*/
-
-#ifndef GUILIB_COLORMANAGER_H
-#define GUILIB_COLORMANAGER_H
-
-#pragma once
+/*!
+\file GUIColorManager.h
+\brief
+*/
+#ifndef GUILIB_COLORMANAGER_H
+#define GUILIB_COLORMANAGER_H
+
+#pragma once
+
/*
* Copyright (C) 2005-2008 Team XBMC
* http://www.xbmc.org
@@ -28,34 +28,34 @@
* http://www.gnu.org/copyleft/gpl.html
*
*/
-
-/*!
- \ingroup textures
- \brief
- */
-class CGUIColorManager
-{
-public:
- CGUIColorManager(void);
- virtual ~CGUIColorManager(void);
-
- void Load(const CStdString &colorFile);
-
- DWORD GetColor(const CStdString &color) const;
-
- void Clear();
-
-protected:
- bool LoadXML(TiXmlDocument &xmlDoc);
-
- std::map<CStdString, DWORD> m_colors;
- typedef std::map<CStdString, DWORD>::iterator iColor;
- typedef std::map<CStdString, DWORD>::const_iterator icColor;
-};
-
-/*!
- \ingroup textures
- \brief
- */
-extern CGUIColorManager g_colorManager;
-#endif
+
+/*!
+ \ingroup textures
+ \brief
+ */
+class CGUIColorManager
+{
+public:
+ CGUIColorManager(void);
+ virtual ~CGUIColorManager(void);
+
+ void Load(const CStdString &colorFile);
+
+ DWORD GetColor(const CStdString &color) const;
+
+ void Clear();
+
+protected:
+ bool LoadXML(TiXmlDocument &xmlDoc);
+
+ std::map<CStdString, DWORD> m_colors;
+ typedef std::map<CStdString, DWORD>::iterator iColor;
+ typedef std::map<CStdString, DWORD>::const_iterator icColor;
+};
+
+/*!
+ \ingroup textures
+ \brief
+ */
+extern CGUIColorManager g_colorManager;
+#endif
Property changes on: branches/linuxport/XBMC/guilib/GUIColorManager.h
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIControlGroup.cpp
===================================================================
--- branches/linuxport/XBMC/guilib/GUIControlGroup.cpp 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIControlGroup.cpp 2008-07-15 19:14:31 UTC (rev 14126)
@@ -19,518 +19,518 @@
*
*/
-#include "include.h"
-#include "GUIControlGroup.h"
-
-using namespace std;
-
-CGUIControlGroup::CGUIControlGroup(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height)
-: CGUIControl(dwParentID, dwControlId, posX, posY, width, height)
-{
- m_defaultControl = 0;
- m_focusedControl = 0;
- m_renderTime = 0;
- m_renderFocusedLast = false;
- ControlType = GUICONTROL_GROUP;
-}
-
-CGUIControlGroup::~CGUIControlGroup(void)
-{
- ClearAll();
-}
-
-void CGUIControlGroup::PreAllocResources()
-{
- CGUIControl::PreAllocResources();
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- if (!control->IsDynamicallyAllocated())
- control->PreAllocResources();
- }
-}
-
-void CGUIControlGroup::AllocResources()
-{
- CGUIControl::AllocResources();
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- if (!control->IsDynamicallyAllocated())
- control->AllocResources();
- }
-}
-
-void CGUIControlGroup::FreeResources()
-{
- CGUIControl::FreeResources();
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- control->FreeResources();
- }
-}
-
-void CGUIControlGroup::DynamicResourceAlloc(bool bOnOff)
-{
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- control->DynamicResourceAlloc(bOnOff);
- }
-}
-
-void CGUIControlGroup::Render()
-{
- g_graphicsContext.SetOrigin(m_posX, m_posY);
- CGUIControl *focusedControl = NULL;
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- control->UpdateVisibility();
- if (m_renderFocusedLast && control->HasFocus())
- focusedControl = control;
- else
- control->DoRender(m_renderTime);
- }
- if (focusedControl)
- focusedControl->DoRender(m_renderTime);
- CGUIControl::Render();
- g_graphicsContext.RestoreOrigin();
-}
-
-bool CGUIControlGroup::OnAction(const CAction &action)
-{
- ASSERT(false); // unimplemented
- return false;
-}
-
-bool CGUIControlGroup::HasFocus() const
-{
- for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- if (control->HasFocus())
- return true;
- }
- return false;
-}
-
-bool CGUIControlGroup::OnMessage(CGUIMessage& message)
-{
- switch (message.GetMessage() )
- {
- case GUI_MSG_ITEM_SELECT:
- {
- if (message.GetControlId() == GetID())
- {
- m_focusedControl = message.GetParam1();
- return true;
- }
- break;
- }
- case GUI_MSG_ITEM_SELECTED:
- {
- if (message.GetControlId() == GetID())
- {
- message.SetParam1(m_focusedControl);
- return true;
- }
- break;
- }
- case GUI_MSG_FOCUSED:
- { // a control has been focused
- m_focusedControl = message.GetControlId();
- SetFocus(true);
- // tell our parent thatwe have focus
- if (m_parentControl)
- m_parentControl->OnMessage(message);
- else
- SendWindowMessage(message);
- return true;
- }
- case GUI_MSG_SETFOCUS:
- {
- // first try our last focused control...
- if (m_focusedControl)
- {
- CGUIControl *control = GetFirstFocusableControl(m_focusedControl);
- if (control)
- {
- CGUIMessage msg(GUI_MSG_SETFOCUS, GetParentID(), control->GetID());
- return control->OnMessage(msg);
- }
- }
- // ok, no previously focused control, try the default control first
- if (m_defaultControl)
- {
- CGUIControl *control = GetFirstFocusableControl(m_defaultControl);
- if (control)
- {
- CGUIMessage msg(GUI_MSG_SETFOCUS, GetParentID(), control->GetID());
- return control->OnMessage(msg);
- }
- }
- // no success with the default control, so just find one to focus
- CGUIControl *control = GetFirstFocusableControl(0);
- if (control)
- {
- CGUIMessage msg(GUI_MSG_SETFOCUS, GetParentID(), control->GetID());
- return control->OnMessage(msg);
- }
- // unsuccessful
- return false;
- break;
- }
- case GUI_MSG_LOSTFOCUS:
- {
- // set all subcontrols unfocused
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- (*it)->SetFocus(false);
- if (!HasID(message.GetParam1()))
- { // we don't have the new id, so unfocus
- SetFocus(false);
- if (m_parentControl)
- m_parentControl->OnMessage(message);
- }
- return true;
- }
- break;
- case GUI_MSG_PAGE_CHANGE:
- case GUI_MSG_REFRESH_THUMBS:
- case GUI_MSG_REFRESH_LIST:
- { // send to all child controls (make sure the target is the control id)
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIMessage msg(message.GetMessage(), message.GetSenderId(), (*it)->GetID(), message.GetParam1());
- (*it)->OnMessage(msg);
- }
- return true;
- }
- break;
- }
- bool handled(false);
- //not intented for any specific control, send to all childs and our base handler.
- if (message.GetControlId() == 0)
- {
- for (iControls it = m_children.begin();it != m_children.end(); ++it)
- {
- CGUIControl* control = *it;
- handled |= control->OnMessage(message);
- }
- return CGUIControl::OnMessage(message) || handled;
- }
- // if it's intended for us, then so be it
- if (message.GetControlId() == GetID())
- return CGUIControl::OnMessage(message);
-
- // else, see if a child matches, and send to the child control if so
- for (iControls it = m_children.begin();it != m_children.end(); ++it)
- {
- CGUIControl* control = *it;
- if (control->HasVisibleID(message.GetControlId()))
- {
- if (control->OnMessage(message))
- return true;
- }
- }
- // Unhandled - send to all matching invisible controls as well
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl* control = *it;
- if (control->HasID(message.GetControlId()))
- {
- if (control->OnMessage(message))
- handled = true;
- }
- }
- return handled;
-}
-
-bool CGUIControlGroup::CanFocus() const
-{
- if (!CGUIControl::CanFocus()) return false;
- // see if we have any children that can be focused
- for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- if ((*it)->CanFocus())
- return true;
- }
- return false;
-}
-
-void CGUIControlGroup::DoRender(DWORD currentTime)
-{
- m_renderTime = currentTime;
- CGUIControl::DoRender(currentTime);
-}
-
-void CGUIControlGroup::SetInitialVisibility()
-{
- CGUIControl::SetInitialVisibility();
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- (*it)->SetInitialVisibility();
-}
-
-void CGUIControlGroup::QueueAnimation(ANIMATION_TYPE animType)
-{
- CGUIControl::QueueAnimation(animType);
- // send window level animations to our children as well
- if (animType == ANIM_TYPE_WINDOW_OPEN || animType == ANIM_TYPE_WINDOW_CLOSE)
- {
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- (*it)->QueueAnimation(animType);
- }
-}
-
-void CGUIControlGroup::ResetAnimation(ANIMATION_TYPE animType)
-{
- CGUIControl::ResetAnimation(animType);
- // send window level animations to our children as well
- if (animType == ANIM_TYPE_WINDOW_OPEN || animType == ANIM_TYPE_WINDOW_CLOSE)
- {
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- (*it)->ResetAnimation(animType);
- }
-}
-
-void CGUIControlGroup::ResetAnimations()
-{ // resets all animations, regardless of condition
- CGUIControl::ResetAnimations();
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- (*it)->ResetAnimations();
-}
-
-bool CGUIControlGroup::IsAnimating(ANIMATION_TYPE animType)
-{
- if (CGUIControl::IsAnimating(animType))
- return true;
-
- if (IsVisible())
- {
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- if ((*it)->IsAnimating(animType))
- return true;
- }
- }
- return false;
-}
-
-bool CGUIControlGroup::HasAnimation(ANIMATION_TYPE animType)
-{
- if (CGUIControl::HasAnimation(animType))
- return true;
-
- if (IsVisible())
- {
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- if ((*it)->HasAnimation(animType))
- return true;
- }
- }
- return false;
-}
-
-bool CGUIControlGroup::HitTest(const CPoint &point) const
-{
- for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *child = *it;
- if (child->HitTest(point - CPoint(m_posX, m_posX)))
- return true;
- }
- return false;
-}
-
-bool CGUIControlGroup::CanFocusFromPoint(const CPoint &point, CGUIControl **control, CPoint &controlPoint) const
-{
- if (!CGUIControl::CanFocus()) return false;
- CPoint controlCoords(point);
- m_transform.InverseTransformPosition(controlCoords.x, controlCoords.y);
- for (crControls it = m_children.rbegin(); it != m_children.rend(); ++it)
- {
- CGUIControl *child = *it;
- if (child->CanFocusFromPoint(controlCoords - CPoint(m_posX, m_posY), control, controlPoint))
- return true;
- }
- *control = NULL;
- return false;
-}
-
-void CGUIControlGroup::UnfocusFromPoint(const CPoint &point)
-{
- CPoint controlCoords(point);
- m_transform.InverseTransformPosition(controlCoords.x, controlCoords.y);
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *child = *it;
- child->UnfocusFromPoint(controlCoords - CPoint(m_posX, m_posY));
- }
- CGUIControl::UnfocusFromPoint(point);
-}
-
-bool CGUIControlGroup::HasID(DWORD dwID) const
-{
- if (CGUIControl::HasID(dwID)) return true;
- for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *child = *it;
- if (child->HasID(dwID))
- return true;
- }
- return false;
-}
-
-bool CGUIControlGroup::HasVisibleID(DWORD dwID) const
-{
- // call base class first as the group may be the requested control
- if (CGUIControl::HasVisibleID(dwID)) return true;
- // if the group isn't visible, then none of it's children can be
- if (!IsVisible()) return false;
- for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *child = *it;
- if (child->HasVisibleID(dwID))
- return true;
- }
- return false;
-}
-
-const CGUIControl* CGUIControlGroup::GetControl(int iControl) const
-{
- const CGUIControl* pPotential=NULL;
- for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- const CGUIControl* pControl = *it;
- if (pControl->IsGroup())
- {
- CGUIControlGroup *group = (CGUIControlGroup *)pControl;
- const CGUIControl *control = group->GetControl(iControl);
- if (control) pControl = control;
- }
- if ((int) pControl->GetID() == iControl)
- {
- if (pControl->IsVisible())
- return pControl;
- else if (!pPotential)
- pPotential = pControl;
- }
- }
- return pPotential;
-}
-
-int CGUIControlGroup::GetFocusedControlID() const
-{
- if (m_focusedControl) return m_focusedControl;
- CGUIControl *control = GetFocusedControl();
- if (control) return control->GetID();
- return 0;
-}
-
-CGUIControl *CGUIControlGroup::GetFocusedControl() const
-{
- for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- const CGUIControl* control = *it;
- if (control->HasFocus())
- {
- if (control->IsGroup())
- {
- CGUIControlGroup *group = (CGUIControlGroup *)control;
- return group->GetFocusedControl();
- }
- return (CGUIControl *)control;
- }
- }
- return NULL;
-}
-
-// in the case of id == 0, we don't match id
-CGUIControl *CGUIControlGroup::GetFirstFocusableControl(int id)
-{
- if (!CanFocus()) return NULL;
- if (id && id == (int) GetID()) return this; // we're focusable and they want us
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl* pControl = *it;
- if (pControl->IsGroup())
- {
- CGUIControlGroup *group = (CGUIControlGroup *)pControl;
- CGUIControl *control = group->GetFirstFocusableControl(id);
- if (control) return control;
- }
- if ((!id || (int) pControl->GetID() == id) && pControl->CanFocus())
- return pControl;
- }
- return NULL;
-}
-
-void CGUIControlGroup::AddControl(CGUIControl *control)
-{
- if (!control) return;
- m_children.push_back(control);
- control->SetParentControl(this);
-}
-
-void CGUIControlGroup::SaveStates(vector<CControlState> &states)
-{
- // save our state, and that of our children
- states.push_back(CControlState(GetID(), m_focusedControl));
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- (*it)->SaveStates(states);
-}
-
-// Note: This routine doesn't delete the control. It just removes it from the control list
-bool CGUIControlGroup::RemoveControl(int id)
-{
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- if (control->IsGroup())
- {
- CGUIControlGroup *group = (CGUIControlGroup *)control;
- if (group->RemoveControl(id))
- return true;
- }
- if ((int) control->GetID() == id)
- {
- m_children.erase(it);
- return true;
- }
- }
- return false;
-}
-
-void CGUIControlGroup::ClearAll()
-{
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- delete control;
- }
- m_children.clear();
-}
-
-void CGUIControlGroup::GetContainers(vector<CGUIControl *> &containers) const
-{
- for (ciControls it = m_children.begin();it != m_children.end(); ++it)
- {
- if ((*it)->IsContainer())
- containers.push_back(*it);
- else if ((*it)->IsGroup())
- ((CGUIControlGroup *)(*it))->GetContainers(containers);
- }
-}
-
-#ifdef _DEBUG
-void CGUIControlGroup::DumpTextureUse()
-{
- CLog::Log(LOGDEBUG, "%s for controlgroup %u", __FUNCTION__, GetID());
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- (*it)->DumpTextureUse();
- }
-}
+#include "include.h"
+#include "GUIControlGroup.h"
+
+using namespace std;
+
+CGUIControlGroup::CGUIControlGroup(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height)
+: CGUIControl(dwParentID, dwControlId, posX, posY, width, height)
+{
+ m_defaultControl = 0;
+ m_focusedControl = 0;
+ m_renderTime = 0;
+ m_renderFocusedLast = false;
+ ControlType = GUICONTROL_GROUP;
+}
+
+CGUIControlGroup::~CGUIControlGroup(void)
+{
+ ClearAll();
+}
+
+void CGUIControlGroup::PreAllocResources()
+{
+ CGUIControl::PreAllocResources();
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ if (!control->IsDynamicallyAllocated())
+ control->PreAllocResources();
+ }
+}
+
+void CGUIControlGroup::AllocResources()
+{
+ CGUIControl::AllocResources();
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ if (!control->IsDynamicallyAllocated())
+ control->AllocResources();
+ }
+}
+
+void CGUIControlGroup::FreeResources()
+{
+ CGUIControl::FreeResources();
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ control->FreeResources();
+ }
+}
+
+void CGUIControlGroup::DynamicResourceAlloc(bool bOnOff)
+{
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ control->DynamicResourceAlloc(bOnOff);
+ }
+}
+
+void CGUIControlGroup::Render()
+{
+ g_graphicsContext.SetOrigin(m_posX, m_posY);
+ CGUIControl *focusedControl = NULL;
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ control->UpdateVisibility();
+ if (m_renderFocusedLast && control->HasFocus())
+ focusedControl = control;
+ else
+ control->DoRender(m_renderTime);
+ }
+ if (focusedControl)
+ focusedControl->DoRender(m_renderTime);
+ CGUIControl::Render();
+ g_graphicsContext.RestoreOrigin();
+}
+
+bool CGUIControlGroup::OnAction(const CAction &action)
+{
+ ASSERT(false); // unimplemented
+ return false;
+}
+
+bool CGUIControlGroup::HasFocus() const
+{
+ for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ if (control->HasFocus())
+ return true;
+ }
+ return false;
+}
+
+bool CGUIControlGroup::OnMessage(CGUIMessage& message)
+{
+ switch (message.GetMessage() )
+ {
+ case GUI_MSG_ITEM_SELECT:
+ {
+ if (message.GetControlId() == GetID())
+ {
+ m_focusedControl = message.GetParam1();
+ return true;
+ }
+ break;
+ }
+ case GUI_MSG_ITEM_SELECTED:
+ {
+ if (message.GetControlId() == GetID())
+ {
+ message.SetParam1(m_focusedControl);
+ return true;
+ }
+ break;
+ }
+ case GUI_MSG_FOCUSED:
+ { // a control has been focused
+ m_focusedControl = message.GetControlId();
+ SetFocus(true);
+ // tell our parent thatwe have focus
+ if (m_parentControl)
+ m_parentControl->OnMessage(message);
+ else
+ SendWindowMessage(message);
+ return true;
+ }
+ case GUI_MSG_SETFOCUS:
+ {
+ // first try our last focused control...
+ if (m_focusedControl)
+ {
+ CGUIControl *control = GetFirstFocusableControl(m_focusedControl);
+ if (control)
+ {
+ CGUIMessage msg(GUI_MSG_SETFOCUS, GetParentID(), control->GetID());
+ return control->OnMessage(msg);
+ }
+ }
+ // ok, no previously focused control, try the default control first
+ if (m_defaultControl)
+ {
+ CGUIControl *control = GetFirstFocusableControl(m_defaultControl);
+ if (control)
+ {
+ CGUIMessage msg(GUI_MSG_SETFOCUS, GetParentID(), control->GetID());
+ return control->OnMessage(msg);
+ }
+ }
+ // no success with the default control, so just find one to focus
+ CGUIControl *control = GetFirstFocusableControl(0);
+ if (control)
+ {
+ CGUIMessage msg(GUI_MSG_SETFOCUS, GetParentID(), control->GetID());
+ return control->OnMessage(msg);
+ }
+ // unsuccessful
+ return false;
+ break;
+ }
+ case GUI_MSG_LOSTFOCUS:
+ {
+ // set all subcontrols unfocused
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ (*it)->SetFocus(false);
+ if (!HasID(message.GetParam1()))
+ { // we don't have the new id, so unfocus
+ SetFocus(false);
+ if (m_parentControl)
+ m_parentControl->OnMessage(message);
+ }
+ return true;
+ }
+ break;
+ case GUI_MSG_PAGE_CHANGE:
+ case GUI_MSG_REFRESH_THUMBS:
+ case GUI_MSG_REFRESH_LIST:
+ { // send to all child controls (make sure the target is the control id)
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIMessage msg(message.GetMessage(), message.GetSenderId(), (*it)->GetID(), message.GetParam1());
+ (*it)->OnMessage(msg);
+ }
+ return true;
+ }
+ break;
+ }
+ bool handled(false);
+ //not intented for any specific control, send to all childs and our base handler.
+ if (message.GetControlId() == 0)
+ {
+ for (iControls it = m_children.begin();it != m_children.end(); ++it)
+ {
+ CGUIControl* control = *it;
+ handled |= control->OnMessage(message);
+ }
+ return CGUIControl::OnMessage(message) || handled;
+ }
+ // if it's intended for us, then so be it
+ if (message.GetControlId() == GetID())
+ return CGUIControl::OnMessage(message);
+
+ // else, see if a child matches, and send to the child control if so
+ for (iControls it = m_children.begin();it != m_children.end(); ++it)
+ {
+ CGUIControl* control = *it;
+ if (control->HasVisibleID(message.GetControlId()))
+ {
+ if (control->OnMessage(message))
+ return true;
+ }
+ }
+ // Unhandled - send to all matching invisible controls as well
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl* control = *it;
+ if (control->HasID(message.GetControlId()))
+ {
+ if (control->OnMessage(message))
+ handled = true;
+ }
+ }
+ return handled;
+}
+
+bool CGUIControlGroup::CanFocus() const
+{
+ if (!CGUIControl::CanFocus()) return false;
+ // see if we have any children that can be focused
+ for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ if ((*it)->CanFocus())
+ return true;
+ }
+ return false;
+}
+
+void CGUIControlGroup::DoRender(DWORD currentTime)
+{
+ m_renderTime = currentTime;
+ CGUIControl::DoRender(currentTime);
+}
+
+void CGUIControlGroup::SetInitialVisibility()
+{
+ CGUIControl::SetInitialVisibility();
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ (*it)->SetInitialVisibility();
+}
+
+void CGUIControlGroup::QueueAnimation(ANIMATION_TYPE animType)
+{
+ CGUIControl::QueueAnimation(animType);
+ // send window level animations to our children as well
+ if (animType == ANIM_TYPE_WINDOW_OPEN || animType == ANIM_TYPE_WINDOW_CLOSE)
+ {
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ (*it)->QueueAnimation(animType);
+ }
+}
+
+void CGUIControlGroup::ResetAnimation(ANIMATION_TYPE animType)
+{
+ CGUIControl::ResetAnimation(animType);
+ // send window level animations to our children as well
+ if (animType == ANIM_TYPE_WINDOW_OPEN || animType == ANIM_TYPE_WINDOW_CLOSE)
+ {
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ (*it)->ResetAnimation(animType);
+ }
+}
+
+void CGUIControlGroup::ResetAnimations()
+{ // resets all animations, regardless of condition
+ CGUIControl::ResetAnimations();
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ (*it)->ResetAnimations();
+}
+
+bool CGUIControlGroup::IsAnimating(ANIMATION_TYPE animType)
+{
+ if (CGUIControl::IsAnimating(animType))
+ return true;
+
+ if (IsVisible())
+ {
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ if ((*it)->IsAnimating(animType))
+ return true;
+ }
+ }
+ return false;
+}
+
+bool CGUIControlGroup::HasAnimation(ANIMATION_TYPE animType)
+{
+ if (CGUIControl::HasAnimation(animType))
+ return true;
+
+ if (IsVisible())
+ {
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ if ((*it)->HasAnimation(animType))
+ return true;
+ }
+ }
+ return false;
+}
+
+bool CGUIControlGroup::HitTest(const CPoint &point) const
+{
+ for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *child = *it;
+ if (child->HitTest(point - CPoint(m_posX, m_posX)))
+ return true;
+ }
+ return false;
+}
+
+bool CGUIControlGroup::CanFocusFromPoint(const CPoint &point, CGUIControl **control, CPoint &controlPoint) const
+{
+ if (!CGUIControl::CanFocus()) return false;
+ CPoint controlCoords(point);
+ m_transform.InverseTransformPosition(controlCoords.x, controlCoords.y);
+ for (crControls it = m_children.rbegin(); it != m_children.rend(); ++it)
+ {
+ CGUIControl *child = *it;
+ if (child->CanFocusFromPoint(controlCoords - CPoint(m_posX, m_posY), control, controlPoint))
+ return true;
+ }
+ *control = NULL;
+ return false;
+}
+
+void CGUIControlGroup::UnfocusFromPoint(const CPoint &point)
+{
+ CPoint controlCoords(point);
+ m_transform.InverseTransformPosition(controlCoords.x, controlCoords.y);
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *child = *it;
+ child->UnfocusFromPoint(controlCoords - CPoint(m_posX, m_posY));
+ }
+ CGUIControl::UnfocusFromPoint(point);
+}
+
+bool CGUIControlGroup::HasID(DWORD dwID) const
+{
+ if (CGUIControl::HasID(dwID)) return true;
+ for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *child = *it;
+ if (child->HasID(dwID))
+ return true;
+ }
+ return false;
+}
+
+bool CGUIControlGroup::HasVisibleID(DWORD dwID) const
+{
+ // call base class first as the group may be the requested control
+ if (CGUIControl::HasVisibleID(dwID)) return true;
+ // if the group isn't visible, then none of it's children can be
+ if (!IsVisible()) return false;
+ for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *child = *it;
+ if (child->HasVisibleID(dwID))
+ return true;
+ }
+ return false;
+}
+
+const CGUIControl* CGUIControlGroup::GetControl(int iControl) const
+{
+ const CGUIControl* pPotential=NULL;
+ for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ const CGUIControl* pControl = *it;
+ if (pControl->IsGroup())
+ {
+ CGUIControlGroup *group = (CGUIControlGroup *)pControl;
+ const CGUIControl *control = group->GetControl(iControl);
+ if (control) pControl = control;
+ }
+ if ((int) pControl->GetID() == iControl)
+ {
+ if (pControl->IsVisible())
+ return pControl;
+ else if (!pPotential)
+ pPotential = pControl;
+ }
+ }
+ return pPotential;
+}
+
+int CGUIControlGroup::GetFocusedControlID() const
+{
+ if (m_focusedControl) return m_focusedControl;
+ CGUIControl *control = GetFocusedControl();
+ if (control) return control->GetID();
+ return 0;
+}
+
+CGUIControl *CGUIControlGroup::GetFocusedControl() const
+{
+ for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ const CGUIControl* control = *it;
+ if (control->HasFocus())
+ {
+ if (control->IsGroup())
+ {
+ CGUIControlGroup *group = (CGUIControlGroup *)control;
+ return group->GetFocusedControl();
+ }
+ return (CGUIControl *)control;
+ }
+ }
+ return NULL;
+}
+
+// in the case of id == 0, we don't match id
+CGUIControl *CGUIControlGroup::GetFirstFocusableControl(int id)
+{
+ if (!CanFocus()) return NULL;
+ if (id && id == (int) GetID()) return this; // we're focusable and they want us
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl* pControl = *it;
+ if (pControl->IsGroup())
+ {
+ CGUIControlGroup *group = (CGUIControlGroup *)pControl;
+ CGUIControl *control = group->GetFirstFocusableControl(id);
+ if (control) return control;
+ }
+ if ((!id || (int) pControl->GetID() == id) && pControl->CanFocus())
+ return pControl;
+ }
+ return NULL;
+}
+
+void CGUIControlGroup::AddControl(CGUIControl *control)
+{
+ if (!control) return;
+ m_children.push_back(control);
+ control->SetParentControl(this);
+}
+
+void CGUIControlGroup::SaveStates(vector<CControlState> &states)
+{
+ // save our state, and that of our children
+ states.push_back(CControlState(GetID(), m_focusedControl));
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ (*it)->SaveStates(states);
+}
+
+// Note: This routine doesn't delete the control. It just removes it from the control list
+bool CGUIControlGroup::RemoveControl(int id)
+{
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ if (control->IsGroup())
+ {
+ CGUIControlGroup *group = (CGUIControlGroup *)control;
+ if (group->RemoveControl(id))
+ return true;
+ }
+ if ((int) control->GetID() == id)
+ {
+ m_children.erase(it);
+ return true;
+ }
+ }
+ return false;
+}
+
+void CGUIControlGroup::ClearAll()
+{
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ delete control;
+ }
+ m_children.clear();
+}
+
+void CGUIControlGroup::GetContainers(vector<CGUIControl *> &containers) const
+{
+ for (ciControls it = m_children.begin();it != m_children.end(); ++it)
+ {
+ if ((*it)->IsContainer())
+ containers.push_back(*it);
+ else if ((*it)->IsGroup())
+ ((CGUIControlGroup *)(*it))->GetContainers(containers);
+ }
+}
+
+#ifdef _DEBUG
+void CGUIControlGroup::DumpTextureUse()
+{
+ CLog::Log(LOGDEBUG, "%s for controlgroup %u", __FUNCTION__, GetID());
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ (*it)->DumpTextureUse();
+ }
+}
#endif
Property changes on: branches/linuxport/XBMC/guilib/GUIControlGroup.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIControlGroup.h
===================================================================
--- branches/linuxport/XBMC/guilib/GUIControlGroup.h 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIControlGroup.h 2008-07-15 19:14:31 UTC (rev 14126)
@@ -1,10 +1,10 @@
-/*!
-\file GUIControlGroup.h
-\brief
-*/
-
-#pragma once
+/*!
+\file GUIControlGroup.h
+\brief
+*/
+#pragma once
+
/*
* Copyright (C) 2005-2008 Team XBMC
* http://www.xbmc.org
@@ -25,75 +25,75 @@
* http://www.gnu.org/copyleft/gpl.html
*
*/
-
-#include "GUIControl.h"
-
-/*!
- \ingroup controls
- \brief group of controls, useful for remembering last control + animating/hiding together
- */
-class CGUIControlGroup : public CGUIControl
-{
-public:
- CGUIControlGroup(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height);
- virtual ~CGUIControlGroup(void);
- virtual void Render();
- virtual bool OnAction(const CAction &action);
- virtual bool OnMessage(CGUIMessage& message);
- virtual bool HasFocus() const;
- virtual void PreAllocResources();
- virtual void AllocResources();
- virtual void FreeResources();
- virtual void DynamicResourceAlloc(bool bOnOff);
- virtual bool CanFocus() const;
-
- virtual bool HitTest(const CPoint &point) const;
- virtual bool CanFocusFromPoint(const CPoint &point, CGUIControl **control, CPoint &controlPoint) const;
- virtual void UnfocusFromPoint(const CPoint &point);
-
- virtual void SetInitialVisibility();
-
- virtual void DoRender(DWORD currentTime);
- virtual bool IsAnimating(ANIMATION_TYPE anim);
- virtual bool HasAnimation(ANIMATION_TYPE anim);
- virtual void QueueAnimation(ANIMATION_TYPE anim);
- virtual void ResetAnimation(ANIMATION_TYPE anim);
- virtual void ResetAnimations();
-
- virtual bool HasID(DWORD dwID) const;
- virtual bool HasVisibleID(DWORD dwID) const;
-
- int GetFocusedControlID() const;
- CGUIControl *GetFocusedControl() const;
- const CGUIControl *GetControl(int id) const;
- CGUIControl *GetFirstFocusableControl(int id);
- void GetContainers(std::vector<CGUIControl *> &containers) const;
-
- virtual void AddControl(CGUIControl *control);
- virtual bool RemoveControl(int id);
- virtual void ClearAll();
- void SetDefaultControl(DWORD id) { m_defaultControl = id; };
- void SetRenderFocusedLast(bool renderLast) { m_renderFocusedLast = renderLast; };
-
- virtual void SaveStates(std::vector<CControlState> &states);
-
- virtual bool IsGroup() const { return true; };
-
-#ifdef _DEBUG
- virtual void DumpTextureUse();
-#endif
-protected:
- // sub controls
- std::vector<CGUIControl *> m_children;
- typedef std::vector<CGUIControl *>::iterator iControls;
- typedef std::vector<CGUIControl *>::const_iterator ciControls;
- typedef std::vector<CGUIControl *>::const_reverse_iterator crControls;
-
- int m_defaultControl;
- int m_focusedControl;
- bool m_renderFocusedLast;
-
- // render time
- DWORD m_renderTime;
-};
+#include "GUIControl.h"
+
+/*!
+ \ingroup controls
+ \brief group of controls, useful for remembering last control + animating/hiding together
+ */
+class CGUIControlGroup : public CGUIControl
+{
+public:
+ CGUIControlGroup(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height);
+ virtual ~CGUIControlGroup(void);
+ virtual void Render();
+ virtual bool OnAction(const CAction &action);
+ virtual bool OnMessage(CGUIMessage& message);
+ virtual bool HasFocus() const;
+ virtual void PreAllocResources();
+ virtual void AllocResources();
+ virtual void FreeResources();
+ virtual void DynamicResourceAlloc(bool bOnOff);
+ virtual bool CanFocus() const;
+
+ virtual bool HitTest(const CPoint &point) const;
+ virtual bool CanFocusFromPoint(const CPoint &point, CGUIControl **control, CPoint &controlPoint) const;
+ virtual void UnfocusFromPoint(const CPoint &point);
+
+ virtual void SetInitialVisibility();
+
+ virtual void DoRender(DWORD currentTime);
+ virtual bool IsAnimating(ANIMATION_TYPE anim);
+ virtual bool HasAnimation(ANIMATION_TYPE anim);
+ virtual void QueueAnimation(ANIMATION_TYPE anim);
+ virtual void ResetAnimation(ANIMATION_TYPE anim);
+ virtual void ResetAnimations();
+
+ virtual bool HasID(DWORD dwID) const;
+ virtual bool HasVisibleID(DWORD dwID) const;
+
+ int GetFocusedControlID() const;
+ CGUIControl *GetFocusedControl() const;
+ const CGUIControl *GetControl(int id) const;
+ CGUIControl *GetFirstFocusableControl(int id);
+ void GetContainers(std::vector<CGUIControl *> &containers) const;
+
+ virtual void AddControl(CGUIControl *control);
+ virtual bool RemoveControl(int id);
+ virtual void ClearAll();
+ void SetDefaultControl(DWORD id) { m_defaultControl = id; };
+ void SetRenderFocusedLast(bool renderLast) { m_renderFocusedLast = renderLast; };
+
+ virtual void SaveStates(std::vector<CControlState> &states);
+
+ virtual bool IsGroup() const { return true; };
+
+#ifdef _DEBUG
+ virtual void DumpTextureUse();
+#endif
+protected:
+ // sub controls
+ std::vector<CGUIControl *> m_children;
+ typedef std::vector<CGUIControl *>::iterator iControls;
+ typedef std::vector<CGUIControl *>::const_iterator ciControls;
+ typedef std::vector<CGUIControl *>::const_reverse_iterator crControls;
+
+ int m_defaultControl;
+ int m_focusedControl;
+ bool m_renderFocusedLast;
+
+ // render time
+ DWORD m_renderTime;
+};
+
Property changes on: branches/linuxport/XBMC/guilib/GUIControlGroup.h
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIControlGroupList.cpp
===================================================================
--- branches/linuxport/XBMC/guilib/GUIControlGroupList.cpp 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIControlGroupList.cpp 2008-07-15 19:14:31 UTC (rev 14126)
@@ -19,312 +19,312 @@
*
*/
-#include "include.h"
-#include "GUIControlGroupList.h"
-#include "utils/GUIInfoManager.h"
-
-#define TIME_TO_SCROLL 200;
-
-CGUIControlGroupList::CGUIControlGroupList(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, float itemGap, DWORD pageControl, ORIENTATION orientation, bool useControlPositions)
-: CGUIControlGroup(dwParentID, dwControlId, posX, posY, width, height)
-{
- m_itemGap = itemGap;
- m_pageControl = pageControl;
- m_offset = 0;
- m_totalSize = 10;
- m_orientation = orientation;
- m_scrollOffset = 0;
- m_scrollSpeed = 0;
- m_useControlPositions = useControlPositions;
- ControlType = GUICONTROL_GROUPLIST;
-}
-
-CGUIControlGroupList::~CGUIControlGroupList(void)
-{
-}
-
-void CGUIControlGroupList::Render()
-{
- if (m_scrollSpeed != 0)
- {
- m_offset += m_scrollSpeed * (m_renderTime - m_scrollTime);
- if ((m_scrollSpeed < 0 && m_offset < m_scrollOffset) ||
- (m_scrollSpeed > 0 && m_offset > m_scrollOffset))
- {
- m_offset = m_scrollOffset;
- m_scrollSpeed = 0;
- }
- }
- m_scrollTime = m_renderTime;
-
- ValidateOffset();
- if (m_pageControl)
- {
- CGUIMessage message(GUI_MSG_LABEL_RESET, GetParentID(), m_pageControl, (DWORD)m_height, (DWORD)m_totalSize);
- SendWindowMessage(message);
- CGUIMessage message2(GUI_MSG_ITEM_SELECT, GetParentID(), m_pageControl, (DWORD)m_offset);
- SendWindowMessage(message2);
- }
- // we run through the controls, rendering as we go
- bool render(g_graphicsContext.SetClipRegion(m_posX, m_posY, m_width, m_height));
- float pos = 0;
- float focusedPos = 0;
- CGUIControl *focusedControl = NULL;
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- // note we render all controls, even if they're offscreen, as then they'll be updated
- // with respect to animations
- CGUIControl *control = *it;
- control->UpdateVisibility();
- if (m_renderFocusedLast && control->HasFocus())
- {
- focusedControl = control;
- focusedPos = pos;
- }
- else
- {
- if (m_orientation == VERTICAL)
- g_graphicsContext.SetOrigin(m_posX, m_posY + pos - m_offset);
- else
- g_graphicsContext.SetOrigin(m_posX + pos - m_offset, m_posY);
- control->DoRender(m_renderTime);
- }
- if (control->IsVisible())
- pos += Size(control) + m_itemGap;
- g_graphicsContext.RestoreOrigin();
- }
- if (focusedControl)
- {
- if (m_orientation == VERTICAL)
- g_graphicsContext.SetOrigin(m_posX, m_posY + focusedPos - m_offset);
- else
- g_graphicsContext.SetOrigin(m_posX + focusedPos - m_offset, m_posY);
- focusedControl->DoRender(m_renderTime);
- }
- if (render) g_graphicsContext.RestoreClipRegion();
- CGUIControl::Render();
-}
-
-bool CGUIControlGroupList::OnMessage(CGUIMessage& message)
-{
- switch (message.GetMessage() )
- {
- case GUI_MSG_FOCUSED:
- { // a control has been focused
- // scroll if we need to and update our page control
- ValidateOffset();
- float offset = 0;
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- if (!control->IsVisible())
- continue;
- if (control->HasID(message.GetControlId()))
- {
- if (offset < m_offset)
- ScrollTo(offset);
- else if (offset + Size(control) > m_offset + Size())
- ScrollTo(offset + Size(control) - Size());
- break;
- }
- offset += Size(control) + m_itemGap;
- }
- }
- break;
- case GUI_MSG_SETFOCUS:
- {
- // we've been asked to focus. We focus the last control if it's on this page,
- // else we'll focus the first focusable control from our offset (after verifying it)
- ValidateOffset();
- // now check the focusControl's offset
- float offset = 0;
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- if (!control->IsVisible())
- continue;
- if (control->HasID(m_focusedControl))
- {
- if (offset >= m_offset && offset + Size(control) <= m_offset + Size())
- return CGUIControlGroup::OnMessage(message);
- break;
- }
- offset += Size(control) + m_itemGap;
- }
- // find the first control on this page
- offset = 0;
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- if (!control->IsVisible())
- continue;
- if (control->CanFocus() && offset >= m_offset && offset + Size(control) <= m_offset + Size())
- {
- m_focusedControl = control->GetID();
- break;
- }
- offset += Size(control) + m_itemGap;
- }
- }
- break;
- case GUI_MSG_PAGE_CHANGE:
- {
- if (message.GetSenderId() == m_pageControl)
- { // it's from our page control
- ScrollTo((float)message.GetParam1());
- return true;
- }
- }
- break;
- }
- return CGUIControlGroup::OnMessage(message);
-}
-
-void CGUIControlGroupList::ValidateOffset()
-{
- // calculate how many items we have on this page
- m_totalSize = 0;
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *control = *it;
- if (!control->IsVisible()) continue;
- m_totalSize += Size(control) + m_itemGap;
- }
- if (m_totalSize > 0) m_totalSize -= m_itemGap;
- // check our m_offset range
- if (m_offset > m_totalSize - Size())
- m_offset = m_totalSize - Size();
- if (m_offset < 0) m_offset = 0;
-}
-
-void CGUIControlGroupList::AddControl(CGUIControl *control)
-{
- // NOTE: We override control navigation here, but we don't override the <onleft> etc. builtins
- // if specified.
- if (control)
- { // set the navigation of items so that they form a list
- if (m_orientation == VERTICAL)
- {
- DWORD upID = GetControlIdUp();
- DWORD downID = GetControlIdDown();
- if (m_children.size())
- {
- CGUIControl *top = m_children[0];
- if (downID == GetID())
- downID = top->GetID();
- if (upID == GetID())
- top->SetNavigation(control->GetID(), top->GetControlIdDown(), GetControlIdLeft(), GetControlIdRight());
- CGUIControl *prev = m_children[m_children.size() - 1];
- upID = prev->GetID();
- prev->SetNavigation(prev->GetControlIdUp(), control->GetID(), GetControlIdLeft(), GetControlIdRight());
- }
- control->SetNavigation(upID, downID, GetControlIdLeft(), GetControlIdRight());
- }
- else
- {
-
- DWORD leftID = GetControlIdLeft();
- DWORD rightID = GetControlIdRight();
- if (m_children.size())
- {
- CGUIControl *left = m_children[0];
- if (rightID == GetID())
- rightID = left->GetID();
- if (leftID == GetID())
- left->SetNavigation(GetControlIdUp(), GetControlIdDown(), control->GetID(), left->GetControlIdRight());
- CGUIControl *prev = m_children[m_children.size() - 1];
- leftID = prev->GetID();
- prev->SetNavigation(GetControlIdUp(), GetControlIdDown(), prev->GetControlIdLeft(), control->GetID());
- }
- control->SetNavigation(GetControlIdUp(), GetControlIdDown(), leftID, rightID);
- }
- // old versions of the grouplist used to set the positions of all controls
- // directly. The new version (with <usecontrolcoords>true</usecontrolcoords>)
- // allows offsets to be set via the posx, posy coordinates.
- if (!m_useControlPositions)
- control->SetPosition(0,0);
- CGUIControlGroup::AddControl(control);
- }
-}
-
-void CGUIControlGroupList::ClearAll()
-{
- CGUIControlGroup::ClearAll();
- m_offset = 0;
-}
-
-inline float CGUIControlGroupList::Size(const CGUIControl *control) const
-{
- return (m_orientation == VERTICAL) ? control->GetYPosition() + control->GetHeight() : control->GetXPosition() + control->GetWidth();
-}
-
-inline float CGUIControlGroupList::Size() const
-{
- return (m_orientation == VERTICAL) ? m_height : m_width;
-}
-
-void CGUIControlGroupList::ScrollTo(float offset)
-{
- m_scrollOffset = offset;
- m_scrollSpeed = (m_scrollOffset - m_offset) / TIME_TO_SCROLL;
-}
-
-bool CGUIControlGroupList::CanFocusFromPoint(const CPoint &point, CGUIControl **control, CPoint &controlPoint) const
-{
- if (!CGUIControl::CanFocus()) return false;
- float pos = 0;
- CPoint controlCoords(point);
- m_transform.InverseTransformPosition(controlCoords.x, controlCoords.y);
- for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- const CGUIControl *child = *it;
- if (child->IsVisible())
- {
- if (pos + Size(child) > m_offset && pos < m_offset + Size())
- { // we're on screen
- float offsetX = m_orientation == VERTICAL ? m_posX : m_posX + pos - m_offset;
- float offsetY = m_orientation == VERTICAL ? m_posY + pos - m_offset : m_posY;
- if (child->CanFocusFromPoint(controlCoords - CPoint(offsetX, offsetY), control, controlPoint))
- return true;
- }
- pos += Size(child) + m_itemGap;
- }
- }
- *control = NULL;
- return false;
-}
-
-void CGUIControlGroupList::UnfocusFromPoint(const CPoint &point)
-{
- float pos = 0;
- CPoint controlCoords(point);
- m_transform.InverseTransformPosition(controlCoords.x, controlCoords.y);
- for (iControls it = m_children.begin(); it != m_children.end(); ++it)
- {
- CGUIControl *child = *it;
- if (child->IsVisible())
- {
- if (pos + Size(child) > m_offset && pos < m_offset + Size())
- { // we're on screen
- CPoint offset = (m_orientation == VERTICAL) ? CPoint(m_posX, m_posY + pos - m_offset) : CPoint(m_posX + pos - m_offset, m_posY);
- child->UnfocusFromPoint(controlCoords - offset);
- }
- pos += Size(child) + m_itemGap;
- }
- }
- CGUIControl::UnfocusFromPoint(point);
-}
-
-bool CGUIControlGroupList::GetCondition(int condition, int data) const
-{
- switch (condition)
- {
- case CONTAINER_HAS_NEXT:
- return (m_totalSize >= Size() && m_offset < m_totalSize - Size());
- case CONTAINER_HAS_PREVIOUS:
- return (m_offset > 0);
- default:
- return false;
- }
-}
-
+#include "include.h"
+#include "GUIControlGroupList.h"
+#include "utils/GUIInfoManager.h"
+
+#define TIME_TO_SCROLL 200;
+
+CGUIControlGroupList::CGUIControlGroupList(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, float itemGap, DWORD pageControl, ORIENTATION orientation, bool useControlPositions)
+: CGUIControlGroup(dwParentID, dwControlId, posX, posY, width, height)
+{
+ m_itemGap = itemGap;
+ m_pageControl = pageControl;
+ m_offset = 0;
+ m_totalSize = 10;
+ m_orientation = orientation;
+ m_scrollOffset = 0;
+ m_scrollSpeed = 0;
+ m_useControlPositions = useControlPositions;
+ ControlType = GUICONTROL_GROUPLIST;
+}
+
+CGUIControlGroupList::~CGUIControlGroupList(void)
+{
+}
+
+void CGUIControlGroupList::Render()
+{
+ if (m_scrollSpeed != 0)
+ {
+ m_offset += m_scrollSpeed * (m_renderTime - m_scrollTime);
+ if ((m_scrollSpeed < 0 && m_offset < m_scrollOffset) ||
+ (m_scrollSpeed > 0 && m_offset > m_scrollOffset))
+ {
+ m_offset = m_scrollOffset;
+ m_scrollSpeed = 0;
+ }
+ }
+ m_scrollTime = m_renderTime;
+
+ ValidateOffset();
+ if (m_pageControl)
+ {
+ CGUIMessage message(GUI_MSG_LABEL_RESET, GetParentID(), m_pageControl, (DWORD)m_height, (DWORD)m_totalSize);
+ SendWindowMessage(message);
+ CGUIMessage message2(GUI_MSG_ITEM_SELECT, GetParentID(), m_pageControl, (DWORD)m_offset);
+ SendWindowMessage(message2);
+ }
+ // we run through the controls, rendering as we go
+ bool render(g_graphicsContext.SetClipRegion(m_posX, m_posY, m_width, m_height));
+ float pos = 0;
+ float focusedPos = 0;
+ CGUIControl *focusedControl = NULL;
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ // note we render all controls, even if they're offscreen, as then they'll be updated
+ // with respect to animations
+ CGUIControl *control = *it;
+ control->UpdateVisibility();
+ if (m_renderFocusedLast && control->HasFocus())
+ {
+ focusedControl = control;
+ focusedPos = pos;
+ }
+ else
+ {
+ if (m_orientation == VERTICAL)
+ g_graphicsContext.SetOrigin(m_posX, m_posY + pos - m_offset);
+ else
+ g_graphicsContext.SetOrigin(m_posX + pos - m_offset, m_posY);
+ control->DoRender(m_renderTime);
+ }
+ if (control->IsVisible())
+ pos += Size(control) + m_itemGap;
+ g_graphicsContext.RestoreOrigin();
+ }
+ if (focusedControl)
+ {
+ if (m_orientation == VERTICAL)
+ g_graphicsContext.SetOrigin(m_posX, m_posY + focusedPos - m_offset);
+ else
+ g_graphicsContext.SetOrigin(m_posX + focusedPos - m_offset, m_posY);
+ focusedControl->DoRender(m_renderTime);
+ }
+ if (render) g_graphicsContext.RestoreClipRegion();
+ CGUIControl::Render();
+}
+
+bool CGUIControlGroupList::OnMessage(CGUIMessage& message)
+{
+ switch (message.GetMessage() )
+ {
+ case GUI_MSG_FOCUSED:
+ { // a control has been focused
+ // scroll if we need to and update our page control
+ ValidateOffset();
+ float offset = 0;
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ if (!control->IsVisible())
+ continue;
+ if (control->HasID(message.GetControlId()))
+ {
+ if (offset < m_offset)
+ ScrollTo(offset);
+ else if (offset + Size(control) > m_offset + Size())
+ ScrollTo(offset + Size(control) - Size());
+ break;
+ }
+ offset += Size(control) + m_itemGap;
+ }
+ }
+ break;
+ case GUI_MSG_SETFOCUS:
+ {
+ // we've been asked to focus. We focus the last control if it's on this page,
+ // else we'll focus the first focusable control from our offset (after verifying it)
+ ValidateOffset();
+ // now check the focusControl's offset
+ float offset = 0;
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ if (!control->IsVisible())
+ continue;
+ if (control->HasID(m_focusedControl))
+ {
+ if (offset >= m_offset && offset + Size(control) <= m_offset + Size())
+ return CGUIControlGroup::OnMessage(message);
+ break;
+ }
+ offset += Size(control) + m_itemGap;
+ }
+ // find the first control on this page
+ offset = 0;
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ if (!control->IsVisible())
+ continue;
+ if (control->CanFocus() && offset >= m_offset && offset + Size(control) <= m_offset + Size())
+ {
+ m_focusedControl = control->GetID();
+ break;
+ }
+ offset += Size(control) + m_itemGap;
+ }
+ }
+ break;
+ case GUI_MSG_PAGE_CHANGE:
+ {
+ if (message.GetSenderId() == m_pageControl)
+ { // it's from our page control
+ ScrollTo((float)message.GetParam1());
+ return true;
+ }
+ }
+ break;
+ }
+ return CGUIControlGroup::OnMessage(message);
+}
+
+void CGUIControlGroupList::ValidateOffset()
+{
+ // calculate how many items we have on this page
+ m_totalSize = 0;
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *control = *it;
+ if (!control->IsVisible()) continue;
+ m_totalSize += Size(control) + m_itemGap;
+ }
+ if (m_totalSize > 0) m_totalSize -= m_itemGap;
+ // check our m_offset range
+ if (m_offset > m_totalSize - Size())
+ m_offset = m_totalSize - Size();
+ if (m_offset < 0) m_offset = 0;
+}
+
+void CGUIControlGroupList::AddControl(CGUIControl *control)
+{
+ // NOTE: We override control navigation here, but we don't override the <onleft> etc. builtins
+ // if specified.
+ if (control)
+ { // set the navigation of items so that they form a list
+ if (m_orientation == VERTICAL)
+ {
+ DWORD upID = GetControlIdUp();
+ DWORD downID = GetControlIdDown();
+ if (m_children.size())
+ {
+ CGUIControl *top = m_children[0];
+ if (downID == GetID())
+ downID = top->GetID();
+ if (upID == GetID())
+ top->SetNavigation(control->GetID(), top->GetControlIdDown(), GetControlIdLeft(), GetControlIdRight());
+ CGUIControl *prev = m_children[m_children.size() - 1];
+ upID = prev->GetID();
+ prev->SetNavigation(prev->GetControlIdUp(), control->GetID(), GetControlIdLeft(), GetControlIdRight());
+ }
+ control->SetNavigation(upID, downID, GetControlIdLeft(), GetControlIdRight());
+ }
+ else
+ {
+
+ DWORD leftID = GetControlIdLeft();
+ DWORD rightID = GetControlIdRight();
+ if (m_children.size())
+ {
+ CGUIControl *left = m_children[0];
+ if (rightID == GetID())
+ rightID = left->GetID();
+ if (leftID == GetID())
+ left->SetNavigation(GetControlIdUp(), GetControlIdDown(), control->GetID(), left->GetControlIdRight());
+ CGUIControl *prev = m_children[m_children.size() - 1];
+ leftID = prev->GetID();
+ prev->SetNavigation(GetControlIdUp(), GetControlIdDown(), prev->GetControlIdLeft(), control->GetID());
+ }
+ control->SetNavigation(GetControlIdUp(), GetControlIdDown(), leftID, rightID);
+ }
+ // old versions of the grouplist used to set the positions of all controls
+ // directly. The new version (with <usecontrolcoords>true</usecontrolcoords>)
+ // allows offsets to be set via the posx, posy coordinates.
+ if (!m_useControlPositions)
+ control->SetPosition(0,0);
+ CGUIControlGroup::AddControl(control);
+ }
+}
+
+void CGUIControlGroupList::ClearAll()
+{
+ CGUIControlGroup::ClearAll();
+ m_offset = 0;
+}
+
+inline float CGUIControlGroupList::Size(const CGUIControl *control) const
+{
+ return (m_orientation == VERTICAL) ? control->GetYPosition() + control->GetHeight() : control->GetXPosition() + control->GetWidth();
+}
+
+inline float CGUIControlGroupList::Size() const
+{
+ return (m_orientation == VERTICAL) ? m_height : m_width;
+}
+
+void CGUIControlGroupList::ScrollTo(float offset)
+{
+ m_scrollOffset = offset;
+ m_scrollSpeed = (m_scrollOffset - m_offset) / TIME_TO_SCROLL;
+}
+
+bool CGUIControlGroupList::CanFocusFromPoint(const CPoint &point, CGUIControl **control, CPoint &controlPoint) const
+{
+ if (!CGUIControl::CanFocus()) return false;
+ float pos = 0;
+ CPoint controlCoords(point);
+ m_transform.InverseTransformPosition(controlCoords.x, controlCoords.y);
+ for (ciControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ const CGUIControl *child = *it;
+ if (child->IsVisible())
+ {
+ if (pos + Size(child) > m_offset && pos < m_offset + Size())
+ { // we're on screen
+ float offsetX = m_orientation == VERTICAL ? m_posX : m_posX + pos - m_offset;
+ float offsetY = m_orientation == VERTICAL ? m_posY + pos - m_offset : m_posY;
+ if (child->CanFocusFromPoint(controlCoords - CPoint(offsetX, offsetY), control, controlPoint))
+ return true;
+ }
+ pos += Size(child) + m_itemGap;
+ }
+ }
+ *control = NULL;
+ return false;
+}
+
+void CGUIControlGroupList::UnfocusFromPoint(const CPoint &point)
+{
+ float pos = 0;
+ CPoint controlCoords(point);
+ m_transform.InverseTransformPosition(controlCoords.x, controlCoords.y);
+ for (iControls it = m_children.begin(); it != m_children.end(); ++it)
+ {
+ CGUIControl *child = *it;
+ if (child->IsVisible())
+ {
+ if (pos + Size(child) > m_offset && pos < m_offset + Size())
+ { // we're on screen
+ CPoint offset = (m_orientation == VERTICAL) ? CPoint(m_posX, m_posY + pos - m_offset) : CPoint(m_posX + pos - m_offset, m_posY);
+ child->UnfocusFromPoint(controlCoords - offset);
+ }
+ pos += Size(child) + m_itemGap;
+ }
+ }
+ CGUIControl::UnfocusFromPoint(point);
+}
+
+bool CGUIControlGroupList::GetCondition(int condition, int data) const
+{
+ switch (condition)
+ {
+ case CONTAINER_HAS_NEXT:
+ return (m_totalSize >= Size() && m_offset < m_totalSize - Size());
+ case CONTAINER_HAS_PREVIOUS:
+ return (m_offset > 0);
+ default:
+ return false;
+ }
+}
+
Property changes on: branches/linuxport/XBMC/guilib/GUIControlGroupList.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIControlGroupList.h
===================================================================
--- branches/linuxport/XBMC/guilib/GUIControlGroupList.h 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIControlGroupList.h 2008-07-15 19:14:31 UTC (rev 14126)
@@ -1,10 +1,10 @@
-/*!
-\file GUIControlGroupList.h
-\brief
-*/
-
-#pragma once
+/*!
+\file GUIControlGroupList.h
+\brief
+*/
+#pragma once
+
/*
* Copyright (C) 2005-2008 Team XBMC
* http://www.xbmc.org
@@ -25,44 +25,44 @@
* http://www.gnu.org/copyleft/gpl.html
*
*/
-
-#include "GUIControlGroup.h"
-
-/*!
- \ingroup controls
- \brief list of controls that is scrollable
- */
-class CGUIControlGroupList : public CGUIControlGroup
-{
-public:
- CGUIControlGroupList(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, float itemGap, DWORD pageControl, ORIENTATION orientation, bool useControlPositions);
- virtual ~CGUIControlGroupList(void);
- virtual void Render();
- virtual bool OnMessage(CGUIMessage& message);
- virtual bool CanFocusFromPoint(const CPoint &point, CGUIControl **control, CPoint &controlPoint) const;
- virtual void UnfocusFromPoint(const CPoint &point);
-
- virtual void AddControl(CGUIControl *control);
- virtual void ClearAll();
-
- virtual bool GetCondition(int condition, int data) const;
-protected:
- void ValidateOffset();
- inline float Size(const CGUIControl *control) const;
- inline float Size() const;
- void ScrollTo(float offset);
-
- float m_itemGap;
- DWORD m_pageControl;
-
- float m_offset; // measurement in pixels of our origin
- float m_totalSize;
-
- float m_scrollSpeed;
- float m_scrollOffset;
- DWORD m_scrollTime;
-
- bool m_useControlPositions;
- ORIENTATION m_orientation;
-};
-
+
+#include "GUIControlGroup.h"
+
+/*!
+ \ingroup controls
+ \brief list of controls that is scrollable
+ */
+class CGUIControlGroupList : public CGUIControlGroup
+{
+public:
+ CGUIControlGroupList(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, float itemGap, DWORD pageControl, ORIENTATION orientation, bool useControlPositions);
+ virtual ~CGUIControlGroupList(void);
+ virtual void Render();
+ virtual bool OnMessage(CGUIMessage& message);
+ virtual bool CanFocusFromPoint(const CPoint &point, CGUIControl **control, CPoint &controlPoint) const;
+ virtual void UnfocusFromPoint(const CPoint &point);
+
+ virtual void AddControl(CGUIControl *control);
+ virtual void ClearAll();
+
+ virtual bool GetCondition(int condition, int data) const;
+protected:
+ void ValidateOffset();
+ inline float Size(const CGUIControl *control) const;
+ inline float Size() const;
+ void ScrollTo(float offset);
+
+ float m_itemGap;
+ DWORD m_pageControl;
+
+ float m_offset; // measurement in pixels of our origin
+ float m_totalSize;
+
+ float m_scrollSpeed;
+ float m_scrollOffset;
+ DWORD m_scrollTime;
+
+ bool m_useControlPositions;
+ ORIENTATION m_orientation;
+};
+
Property changes on: branches/linuxport/XBMC/guilib/GUIControlGroupList.h
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIFixedListContainer.cpp
===================================================================
--- branches/linuxport/XBMC/guilib/GUIFixedListContainer.cpp 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIFixedListContainer.cpp 2008-07-15 19:14:31 UTC (rev 14126)
@@ -68,7 +68,7 @@
float focusedPosX = 0;
float focusedPosY = 0;
- CGUIListItemPtr focusedItem;
+ CGUIListItemPtr focusedItem;
int current = offset;
while (posX < m_posX + m_width && posY < m_posY + m_height && m_items.size())
{
@@ -86,7 +86,7 @@
focusedItem = item;
}
else
- RenderItem(posX, posY, item.get(), focused);
+ RenderItem(posX, posY, item.get(), focused);
}
// increment our position
@@ -99,7 +99,7 @@
}
// and render the focused item last (for overlapping purposes)
if (focusedItem)
- RenderItem(focusedPosX, focusedPosY, focusedItem.get(), true);
+ RenderItem(focusedPosX, focusedPosY, focusedItem.get(), true);
g_graphicsContext.RestoreClipRegion();
Property changes on: branches/linuxport/XBMC/guilib/GUIFixedListContainer.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIFixedListContainer.h
===================================================================
--- branches/linuxport/XBMC/guilib/GUIFixedListContainer.h 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIFixedListContainer.h 2008-07-15 19:14:31 UTC (rev 14126)
@@ -1,10 +1,10 @@
-/*!
-\file GUIFixedListContainer.h
-\brief
-*/
-
-#pragma once
+/*!
+\file GUIFixedListContainer.h
+\brief
+*/
+#pragma once
+
/*
* Copyright (C) 2005-2008 Team XBMC
* http://www.xbmc.org
@@ -25,32 +25,32 @@
* http://www.gnu.org/copyleft/gpl.html
*
*/
-
-#include "GUIBaseContainer.h"
-
-/*!
- \ingroup controls
- \brief
- */
-class CGUIFixedListContainer : public CGUIBaseContainer
-{
-public:
- CGUIFixedListContainer(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, ORIENTATION orientation, int scrollTime, int fixedPosition);
- virtual ~CGUIFixedListContainer(void);
-
- virtual void Render();
- virtual bool OnAction(const CAction &action);
- virtual bool OnMessage(CGUIMessage& message);
-
-protected:
- virtual void Scroll(int amount);
- virtual bool MoveDown(bool wrapAround);
- virtual bool MoveUp(bool wrapAround);
- virtual void ValidateOffset();
- virtual bool SelectItemFromPoint(const CPoint &point);
- virtual void SelectItem(int item);
- virtual bool HasNextPage() const;
- virtual bool HasPreviousPage() const;
- virtual int GetCurrentPage() const;
-};
-
+
+#include "GUIBaseContainer.h"
+
+/*!
+ \ingroup controls
+ \brief
+ */
+class CGUIFixedListContainer : public CGUIBaseContainer
+{
+public:
+ CGUIFixedListContainer(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, ORIENTATION orientation, int scrollTime, int fixedPosition);
+ virtual ~CGUIFixedListContainer(void);
+
+ virtual void Render();
+ virtual bool OnAction(const CAction &action);
+ virtual bool OnMessage(CGUIMessage& message);
+
+protected:
+ virtual void Scroll(int amount);
+ virtual bool MoveDown(bool wrapAround);
+ virtual bool MoveUp(bool wrapAround);
+ virtual void ValidateOffset();
+ virtual bool SelectItemFromPoint(const CPoint &point);
+ virtual void SelectItem(int item);
+ virtual bool HasNextPage() const;
+ virtual bool HasPreviousPage() const;
+ virtual int GetCurrentPage() const;
+};
+
Property changes on: branches/linuxport/XBMC/guilib/GUIFixedListContainer.h
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIInfoColor.cpp
===================================================================
--- branches/linuxport/XBMC/guilib/GUIInfoColor.cpp 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIInfoColor.cpp 2008-07-15 19:14:31 UTC (rev 14126)
@@ -19,63 +19,63 @@
*
*/
-#include "include.h"
-#include "GUIInfoColor.h"
-#include "utils/CharsetConverter.h"
-#include "utils/GUIInfoManager.h"
-#include "LocalizeStrings.h"
-#include "GUIColorManager.h"
-
-using namespace std;
-
-CGUIInfoColor::CGUIInfoColor(DWORD color)
-{
- m_color = color;
- m_info = 0;
-}
-
-const CGUIInfoColor &CGUIInfoColor::operator=(DWORD color)
-{
- m_color = color;
- m_info = 0;
- return *this;
-}
-
-const CGUIInfoColor &CGUIInfoColor::operator=(const CGUIInfoColor &color)
-{
- m_color = color.m_color;
- m_info = color.m_info;
- return *this;
-}
-
-DWORD CGUIInfoColor::GetColor() const
-{
- if (!m_info)
- return m_color; // no infolabel so just return the stored color
-
- // Expand the infolabel, and then convert it to a color
- CStdString infoLabel(g_infoManager.GetLabel(m_info));
- if (infoLabel.IsEmpty())
- return 0;
-
- // We now have an expanded label that we can convert into a color
- int color;
- sscanf(infoLabel.c_str(), "%x", (unsigned int*)&color);
- return color;
-}
-
-void CGUIInfoColor::Parse(const CStdString &label)
-{
- // Check for the standard $INFO[] block layout, and strip it if present
- CStdString label2 = label;
- if (label.Equals("-", false))
- return;
-
- if (label.Left(5).Equals("$INFO", false))
- label2 = label.Mid(6, label.length()-7);
-
- m_info = g_infoManager.TranslateString(label2);
- if (!m_info)
- m_color = g_colorManager.GetColor(label);
-}
-
+#include "include.h"
+#include "GUIInfoColor.h"
+#include "utils/CharsetConverter.h"
+#include "utils/GUIInfoManager.h"
+#include "LocalizeStrings.h"
+#include "GUIColorManager.h"
+
+using namespace std;
+
+CGUIInfoColor::CGUIInfoColor(DWORD color)
+{
+ m_color = color;
+ m_info = 0;
+}
+
+const CGUIInfoColor &CGUIInfoColor::operator=(DWORD color)
+{
+ m_color = color;
+ m_info = 0;
+ return *this;
+}
+
+const CGUIInfoColor &CGUIInfoColor::operator=(const CGUIInfoColor &color)
+{
+ m_color = color.m_color;
+ m_info = color.m_info;
+ return *this;
+}
+
+DWORD CGUIInfoColor::GetColor() const
+{
+ if (!m_info)
+ return m_color; // no infolabel so just return the stored color
+
+ // Expand the infolabel, and then convert it to a color
+ CStdString infoLabel(g_infoManager.GetLabel(m_info));
+ if (infoLabel.IsEmpty())
+ return 0;
+
+ // We now have an expanded label that we can convert into a color
+ int color;
+ sscanf(infoLabel.c_str(), "%x", (unsigned int*)&color);
+ return color;
+}
+
+void CGUIInfoColor::Parse(const CStdString &label)
+{
+ // Check for the standard $INFO[] block layout, and strip it if present
+ CStdString label2 = label;
+ if (label.Equals("-", false))
+ return;
+
+ if (label.Left(5).Equals("$INFO", false))
+ label2 = label.Mid(6, label.length()-7);
+
+ m_info = g_infoManager.TranslateString(label2);
+ if (!m_info)
+ m_color = g_colorManager.GetColor(label);
+}
+
Property changes on: branches/linuxport/XBMC/guilib/GUIInfoColor.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIInfoColor.h
===================================================================
--- branches/linuxport/XBMC/guilib/GUIInfoColor.h 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIInfoColor.h 2008-07-15 19:14:31 UTC (rev 14126)
@@ -1,13 +1,13 @@
-/*!
-\file GUIInfoColor.h
-\brief
-*/
-
-#ifndef GUILIB_GUIINFOCOLOR_H
-#define GUILIB_GUIINFOCOLOR_H
-
-#pragma once
+/*!
+\file GUIInfoColor.h
+\brief
+*/
+#ifndef GUILIB_GUIINFOCOLOR_H
+#define GUILIB_GUIINFOCOLOR_H
+
+#pragma once
+
/*
* Copyright (C) 2005-2008 Team XBMC
* http://www.xbmc.org
@@ -28,22 +28,22 @@
* http://www.gnu.org/copyleft/gpl.html
*
*/
-
-class CGUIInfoColor
-{
-public:
- CGUIInfoColor(DWORD color = 0);
-
- const CGUIInfoColor &operator=(const CGUIInfoColor &color);
- const CGUIInfoColor &operator=(DWORD color);
- operator DWORD() const { return GetColor(); };
-
- void Parse(const CStdString &label);
-
-private:
- DWORD GetColor() const;
- int m_info;
- DWORD m_color;
-};
-
-#endif
+
+class CGUIInfoColor
+{
+public:
+ CGUIInfoColor(DWORD color = 0);
+
+ const CGUIInfoColor &operator=(const CGUIInfoColor &color);
+ const CGUIInfoColor &operator=(DWORD color);
+ operator DWORD() const { return GetColor(); };
+
+ void Parse(const CStdString &label);
+
+private:
+ DWORD GetColor() const;
+ int m_info;
+ DWORD m_color;
+};
+
+#endif
Property changes on: branches/linuxport/XBMC/guilib/GUIInfoColor.h
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUILargeImage.cpp
===================================================================
--- branches/linuxport/XBMC/guilib/GUILargeImage.cpp 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUILargeImage.cpp 2008-07-15 19:14:31 UTC (rev 14126)
@@ -163,8 +163,8 @@
void CGUILargeImage::SetFileName(const CStdString& strFileName, bool setConstant)
{
- if (setConstant)
- m_image.file.SetLabel(strFileName, "");
+ if (setConstant)
+ m_image.file.SetLabel(strFileName, "");
// no fallback is required - it's handled at rendertime
if (m_strFileName.Equals(strFileName)) return;
// Don't completely free resources here - we may be just changing
Property changes on: branches/linuxport/XBMC/guilib/GUILargeImage.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUILargeImage.h
===================================================================
--- branches/linuxport/XBMC/guilib/GUILargeImage.h 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUILargeImage.h 2008-07-15 19:14:31 UTC (rev 14126)
@@ -1,10 +1,10 @@
-/*!
-\file GUILargeImage.h
-\brief
-*/
-
-#pragma once
+/*!
+\file GUILargeImage.h
+\brief
+*/
+#pragma once
+
/*
* Copyright (C) 2005-2008 Team XBMC
* http://www.xbmc.org
@@ -25,34 +25,34 @@
* http://www.gnu.org/copyleft/gpl.html
*
*/
-
-#include "guiImage.h"
-
-/*!
- \ingroup controls
- \brief
- */
-
-class CGUILargeImage : public CGUIImage
-{
-public:
- CGUILargeImage(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, const CImage& texture);
- virtual ~CGUILargeImage(void);
-
- virtual void PreAllocResources();
- virtual void AllocResources();
- virtual void FreeResources();
- virtual void Render();
- virtual void SetAspectRatio(const CAspectRatio &aspect);
-
-protected:
- virtual void SetFileName(const CStdString &strFileName, bool setConstant = false);
- virtual void AllocateOnDemand();
- virtual void FreeTextures();
- virtual int GetOrientation() const;
-
- bool m_usingBundledTexture;
- int m_orientation;
- CGUIImage m_fallbackImage;
-};
-
+
+#include "guiImage.h"
+
+/*!
+ \ingroup controls
+ \brief
+ */
+
+class CGUILargeImage : public CGUIImage
+{
+public:
+ CGUILargeImage(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, const CImage& texture);
+ virtual ~CGUILargeImage(void);
+
+ virtual void PreAllocResources();
+ virtual void AllocResources();
+ virtual void FreeResources();
+ virtual void Render();
+ virtual void SetAspectRatio(const CAspectRatio &aspect);
+
+protected:
+ virtual void SetFileName(const CStdString &strFileName, bool setConstant = false);
+ virtual void AllocateOnDemand();
+ virtual void FreeTextures();
+ virtual int GetOrientation() const;
+
+ bool m_usingBundledTexture;
+ int m_orientation;
+ CGUIImage m_fallbackImage;
+};
+
Property changes on: branches/linuxport/XBMC/guilib/GUILargeImage.h
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: branches/linuxport/XBMC/guilib/GUIListContainer.cpp
===================================================================
--- branches/linuxport/XBMC/guilib/GUIListContainer.cpp 2008-07-15 19:07:44 UTC (rev 14125)
+++ branches/linuxport/XBMC/guilib/GUIListContainer.cpp 2008-07-15 19:14:31 UTC (rev 14126)
@@ -19,343 +19,343 @@
*
*/
-#include "include.h"
-#include "GUIListContainer.h"
-#include "GUIListItem.h"
-
-//#ifdef PRE_SKIN_VERSION_2_1_COMPATIBILITY
-#include "utils/GUIInfoManager.h"
-//#endif
-
-CGUIListContainer::CGUIListContainer(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height, ORIENTATION orientation, int scrollTime)
- : CGUIBaseContainer(dwParentID, dwControlId, posX, posY, width, height, orientation, scrollTime)
-{
- ControlType = GUICONTAINER_LIST;
- m_type = VIEW_TYPE_LIST;
-//#ifdef PRE_SKIN_VERSION_2_1_COMPATIBILITY
- m_spinControl = NULL;
-//#endif
-}
-
-CGUIListContainer::~CGUIListContainer(void)
-{
-}
-
-void CGUIListContainer::Render()
-{
- ValidateOffset();
-
- if (m_bInvalidated)
- UpdateLayout();
-
- if (!m_layout || !m_focusedLayout) return;
-
- m_scrollOffset += m_scrollSpeed * (m_renderTime - m_scrollLastTime);
- if ((m_scrollSpeed < 0 && m_scrollOffset < m_offset * m_layout->Size(m_orientation)) ||
- (m_scrollSpeed > 0 && m_scrollOffset > m_offset * m_layout->Size(m_orientation)))
- {
- m_scrollOffset = m_offset * m_layout->Size(m_orientation);
- m_scrollSpeed = 0;
- }
- m_scrollLastTime = m_renderTime;
-
- int offset = (int)(m_scrollOffset / m_layout->Size(m_orientation));
- // Free memory not used on screen at the moment, do this first so there's more memory for the new items.
- FreeMemory(CorrectOffset(offset, 0), CorrectOffset(offset, m_itemsPerPage + 1));
-
- g_graphicsContext.SetClipRegion(m_posX, m_posY, m_width, m_height);
- float posX = m_posX;
- float posY = m_posY;
- // we offset our draw position to take into account scrolling and whether or not our focused
- // item is offscreen "above" the list.
- float drawOffset = offset * m_layout->Size(m_orientation) - m_scrollOffset;
- if (offset > m_offset + m_cursor)
- drawOffset += m_focusedLayout->Size(m_orientation) - m_layout->Size(m_orientation);
-
- if (m_orientation == VERTICAL)
- posY += drawOffset;
- else
- posX += drawOffset;
-
- float focusedPosX = 0;
- float focusedPosY = 0;
- CGUIListItemPtr focusedItem;
- int current = offset;
- while (posX < m_posX + m_width && posY < m_posY + m_height && m_items.size())
- {
- if (current >= (int)m_items.size())
- break;
- CGUIListItemPtr item = m_items[current];
- bool focused = (current == m_offset + m_cursor);
- // render our item
- if (focused)
- {
- focusedPosX = posX;
- focusedPosY = posY;
- focusedItem = item;
- }
- else
- RenderItem(posX, posY, item.get(), focused);
-
- // increment our position
- if (m_orientation == VERTICAL)
- posY += focused ? m_focusedLayout->Size(m_orientation) : m_layout->Size(m_orientation);
- else
- posX += focused ? m_focusedLayout->Size(m_orientation) : m_layout->Size(m_orientation);
-
- current++;
- }
- // and render the focused item last (for overlapping purposes)
- if (focusedItem)
- RenderItem(focusedPosX, focusedPosY, focusedItem.get(), true);
-
- g_graphicsContext.RestoreClipRegion();
-
- if (m_pageControl)
- { // tell our pagecontrol (scrollbar or whatever) to update
- CGUIMessage msg(GUI_MSG_ITEM_SELECT, GetID(), m_pageControl, offset);
- SendWindowMessage(msg);
- }
-
- CGUIBaseContainer::Render();
-}
-
-bool CGUIListContainer::OnAction(const CAction &action)
-{
- switch (action.wID)
- {
- case ACTION_PAGE_UP:
- {
- if (m_offset == 0)
- { // already on the first page, so move to the first item
- SetCursor(0);
- }
- else
- { // scroll up to the previous page
- Scroll( -m_itemsPerPage);
- }
- return true;
- }
- break;
- case ACTION_PAGE_DOWN:
- {
- if (m_offset == (int)m_items.size() - m_itemsPerPage || (int)m_items.size() < m_itemsPerPage)
- { // already at the last page, so move to the last item.
- SetCursor(m_items.size() - m_offset - 1);
- }
- else
- { // scroll down to the next page
- Scroll(m_itemsPerPage);
- }
- return true;
- }
- break;
- // smooth scrolling (for analog controls)
- case ACTION_SCROLL_UP:
- {
- m_analogScrollCount += action.fAmount1 * action.fAmount1;
- bool handled = false;
- while (m_analogScrollCount > 0.4)
- {
- handled = true;
- m_analogScrollCount -= 0.4f;
- if (m_offset > 0 && m_cursor <= m_itemsPerPage / 2)
- {
- Scroll(-1);
- }
- else if (m_cursor > 0)
- {
- SetCursor(m_cursor - 1);
- }
- }
- return handled;
- }
- break;
- case ACTION_SCROLL_DOWN:
- {
- m_analogScrollCount += action.fAmount1 * action.fAmount1;
- bool handled = false;
- while (m_analogScrollCount > 0.4)
- {
- handled = true;
- m_analogScrollCount -= 0.4f;
- if (m_offset + m_itemsPerPage < (int)m_items.size() && m_cursor >= m_itemsPerPage / 2)
- {
- Scroll(1);
- }
- else if (m_cursor < m_itemsPerPage - 1 && m_offset + m_cursor < (int)m_items.size() - 1)
- {
- SetCursor(m_cursor + 1);
- }
- }
- return handled;
- }
- break;
- }
- return CGUIBaseContainer::OnAction(action);
-}
-
-bool CGUIListContainer::OnMessage(CGUIMessage& message)
-{
- if (message.GetControlId() == GetID() )
- {
- if (message.GetMessage() == GUI_MSG_LABEL_RESET)
- {
- SetCursor(0);
- }
- else if (message.GetMessage() == GUI_MSG_ITEM_SELECT)
- {
- SelectItem(message.GetParam1());
- return true;
- }
- else if (message.GetMessage() == GUI_MSG_SETFOCUS)
- {
- if (message.GetParam1()) // subfocus item is specified, so set the offset appropriately
- m_cursor = (int)message.GetParam1() - 1;
- }
- }
- return CGUIBaseContainer::OnMessage(message);
-}
-
-bool CGUIListContainer::MoveUp(bool wrapAround)
-{
- if (m_cursor > 0)
- {
- SetCursor(m_cursor - 1);
- }
- else if (m_cursor == 0 && m_offset)
- {
- ScrollToOffset(m_offset - 1);
- }
- else if (wrapAround)
- {
- if (m_items.size() > 0)
- { // move 2 last item in list, and set our container moving up
- int offset = m_items.size() - m_itemsPerPage;
- if (offset < 0) offset = 0;
- SetCursor(m_items.size() - offset - 1);
- ScrollToOffset(offset);
- g_infoManager.SetContainerMoving(GetID(), -1);
- }
- }
- else
- return false;
- return true;
-}
-
-bool CGUIListContainer::MoveDown(bool wrapAround)
-{
- if (m_offset + m_cursor + 1 < (int)m_items.size())
- {
- if (m_cursor + 1 < m_itemsPerPage)
- {
- SetCursor(m_cursor + 1);
- }
- else
- {
- ScrollToOffset(m_offset + 1);
- }
- }
- else if(wrapAround)
- { // move first item in list, and set our container moving in the "down" direction
- SetCursor(0);
- ScrollToOffset(0);
- g_infoManager.SetContainerMoving(GetID(), 1);
- }
- else
- return false;
- return true;
-}
-
-// scrolls the said amount
-void CGUIListContainer::Scroll(int amount)
-{
- // increase or decrease the offset
- int offset = m_offset + amount;
- if (offset > (int)m_items.size() - m_itemsPerPage)
- {
- offset = m_items.size() - m_itemsPerPage;
- }
- if (offset < 0) offset = 0;
- ScrollToOffset(offset);
-}
-
-void CGUIListContainer::ValidateOffset()
-{ // first thing is we check the range of m_offset
- if (!m_layout) return;
- if (m_offset > (int)m_items.size() - m_itemsPerPage)
- {
- m_offset = m_items.size() - m_itemsPerPage;
- m_scrollOffset = m_offset * m_layout->Size(m_orientation);
- }
- if (m_offset < 0)
- {
- m_offset = 0;
- m_scrollOffset = 0;
- }
-}
-
-void CGUIListContainer::SetCursor(int cursor)
-{
- if (cursor > m_itemsPerPage - 1) cursor = m_itemsPerPage - 1;
- if (cursor < 0) cursor = 0;
- if (!m_wasReset)
- g_infoManager.SetContainerMoving(GetID(), cursor - m_cursor);
- m_cursor = cursor;
-}
-
-void CGUIListContainer::SelectItem(int item)
-{
- // Check that m_offset is valid
- ValidateOffset();
- // only select an item if it's in a valid range
- if (item >= 0 && item < (int)m_items.size())
- {
- // Select the item requested
- if (item >= m_offset && item < m_offset + m_itemsPerPage)
- { // the item is on the current page, so don't change it.
- SetCursor(item - m_offset);
- }
- else if (item < m_offset)
- { // item is on a previous page - make it the first item on the page
- SetCursor(0);
- ScrollToOffset(item);
- }
- else // (item >= m_offset+m_itemsPerPage)
- { // item is on a later page - make it the last item on the page
- SetCursor(m_itemsPerPage - 1);
- ScrollToOffset(item - m_cursor);
- }
- }
-}
-//#ifdef PRE_SKIN_VERSION_2_1_COMPATIBILITY
-CGUIListContainer::CGUIListContainer(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height,
- const CLabelInfo& labelInfo, const CLabelInfo& labelInfo2,
- const CImage& textureButton, const CImage& textureButtonFocus,
- float textureHeight, float itemWidth, float itemHeight, float spaceBetweenItems, CGUIControl *pSpin)
-: CGUIBaseContainer(dwParentID, dwControlId, posX, posY, width, height, VERTICAL, 200)
-{
- CGUIListItemLayout layout;
- layout.CreateListControlLayouts(width, textureHeight + spaceBetweenItems, false, labelInfo, labelInfo2, textureButton, textureButtonFocus, textureHeight, itemWidth, itemHeight, 0, 0);
- m_layouts.push_back(layout);
- CStdString condition;
- condition.Format("control.hasfocus(%i)", dwControlId);
- CStdString condition2 = "!" + condition;
- CGUIListItemLayout focusLayout;
- focusLayout.CreateListControlLayouts(width, textureHeight + spaceBetweenItems, true, labelInfo, labelInfo2, textureButton, textureButtonFocus, textureHeight, itemWidth, itemHeight, g_infoManager.TranslateString(condition2), g_infoManager.TranslateString(condition));
- m_focusedLayouts.push_back(focusLayout);
- m_height = floor(m_height / (textureHeight + spaceBetweenItems)) * (textureHeight + spaceBetweenItems);
- m_spinControl = pSpin;
- ControlType = GUICONTAINER_LIST;
-}
-//#endif
-
-bool CGUIListContainer::HasNextPage() const
-{
- return (m_offset != (int)m_items.size() - m_itemsPerPage && (int)m_items.size() >= m_itemsPerPage);
-}
-
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|