Project

General

Profile

Bug #87 ยป xbmc4xbox-infolabels.diff

nuka1195, 19/08/2010 02:17 PM

View differences:

xbmc/cores/paplayer/PAPlayer_xbox.cpp (working copy)
{
m_iSpeed = iSpeed;
m_callback.OnPlayBackSpeedChanged(iSpeed);
if (iSpeed == 1)
{
m_callback.OnPlayBackResumed();
CLog::Log(LOGDEBUG, "PAPlayer: Playback resumed");
}
}
void PAPlayer::UpdateCacheLevel()
xbmc/lib/libPython/xbmcmodule/player.cpp (working copy)
// Player_OnPlayBackResumed
PyDoc_STRVAR(onPlayBackResumed__doc__,
"onPlayBackPaused() -- onPlayBackResumed method.\n"
"onPlayBackResumed() -- onPlayBackResumed method.\n"
"\n"
"Will be called when user resumes a paused file");
xbmc/utils/GUIInfoManager.cpp (working copy)
else if (info.Equals("exists")) return MUSICPLAYER_EXISTS;
else if (info.Equals("hasprevious")) return MUSICPLAYER_HASPREVIOUS;
else if (info.Equals("hasnext")) return MUSICPLAYER_HASNEXT;
else if (info.Equals("filename")) return MUSICPLAYER_FILENAME;
return 0;
}
......
case MUSICPLAYER_RATING:
case MUSICPLAYER_COMMENT:
case MUSICPLAYER_LYRICS:
case MUSICPLAYER_FILENAME:
strLabel = GetMusicLabel(info);
break;
case VIDEOPLAYER_TITLE:
......
return ((CGUITextBox *)control)->GetLabel(info.m_info);
}
}
else if (info.m_info >= MUSICPLAYER_TITLE && info.m_info <= MUSICPLAYER_DISC_NUMBER)
else if (info.m_info >= MUSICPLAYER_TITLE && info.m_info <= MUSICPLAYER_FILENAME)
return GetMusicPlaylistInfo(info);
else if (info.m_info == CONTAINER_PROPERTY)
{
......
}
else
{ // no window specified - assume active
window = g_windowManager.GetWindow(g_windowManager.GetActiveWindow());
window = GetWindowWithCondition(contextWindow, 0);
}
if (window)
......
case MUSICPLAYER_TITLE:
if (tag.GetTitle().size()) { return tag.GetTitle(); }
break;
case MUSICPLAYER_FILENAME:
if (tag.GetURL().size()) { return tag.GetURL(); }
break;
case MUSICPLAYER_LYRICS:
if (tag.GetLyrics().size()) { return tag.GetLyrics(); }
break;
case MUSICPLAYER_ALBUM:
if (tag.GetAlbum().size()) { return tag.GetAlbum(); }
break;
xbmc/utils/GUIInfoManager.h (working copy)
#define MUSICPLAYER_EXISTS 224
#define MUSICPLAYER_PLAYLISTPLAYING 225
#define MUSICPLAYER_ALBUM_ARTIST 226
#define MUSICPLAYER_FILENAME 227
#define VIDEOPLAYER_TITLE 250
#define VIDEOPLAYER_GENRE 251
......
// the multiple information vector
#define MULTI_INFO_START 40000
#define MULTI_INFO_END 41000 // 1000 references is all we have for now
#define MULTI_INFO_END 49999
#define COMBINED_VALUES_START 100000
// forward
......
void SetLibraryBool(int condition, bool value);
bool GetLibraryBool(int condition);
void ResetLibraryBools();
CStdString LocalizeTime(const CDateTime &time, TIME_FORMAT format) const;
protected:
// routines for window retrieval
......
int TranslateListItem(const CStdString &info);
int TranslateMusicPlayerString(const CStdString &info) const;
TIME_FORMAT TranslateTimeFormat(const CStdString &format);
CStdString LocalizeTime(const CDateTime &time, TIME_FORMAT format) const;
bool GetItemBool(const CGUIListItem *item, int condition) const;
CStdString VideoWidthToResolutionDescription(int iWidth) const;
CStdString VideoAspectToAspectDescription(float fAspect) const;
    (1-1/1)