Where can I find the categories in MyMusicNav?
#1
I am trying to edit the categories that you can select from once loading music window. The options are Songs, Artists, Genre, Top100 etc. I can compile etc. and know my way around the playlist side of things having done some work there but I cannot determine where the song categories are coming from (I feel that I am looking for a needle in a haystack here). I know there are other ways to achieve the song sorting etc. but for my particular task I need to be able to remove categories from this view. Hiding them acceptable.

So far I have found the categories being called upon in the file GUIViewStateMusic.cpp under:

CGUIViewStateMusicDatabase::CGUIViewStateMusicDatabase(const CFileItemList& items) : CGUIViewStateWindowMusic(items)



Is this the right spot or am I way off?? Thanks in advance.
Reply
#2
Would this be the area to look (MusicDatabaseDirectory)?

// Create a node object
CDirectoryNode* CDirectoryNode::CreateNode(NODE_TYPE Type, const std:Confusedtring& strName, CDirectoryNode* pParent)
{
switch (Type)
{
case NODE_TYPE_ROOT:
return new CDirectoryNodeRoot(strName, pParent);
case NODE_TYPE_OVERVIEW:
return new CDirectoryNodeOverview(strName, pParent);
case NODE_TYPE_GENRE:
case NODE_TYPE_YEAR:
return new CDirectoryNodeGrouped(Type, strName, pParent);
case NODE_TYPE_ARTIST:
return new CDirectoryNodeArtist(strName, pParent);
case NODE_TYPE_ALBUM:
return new CDirectoryNodeAlbum(strName, pParent);
case NODE_TYPE_SONG:
return new CDirectoryNodeSong(strName, pParent);
case NODE_TYPE_SINGLES:
return new CDirectoryNodeSingles(strName, pParent);
case NODE_TYPE_TOP100:
return new CDirectoryNodeTop100(strName, pParent);
case NODE_TYPE_ALBUM_TOP100:
return new CDirectoryNodeAlbumTop100(strName, pParent);
case NODE_TYPE_ALBUM_TOP100_SONGS:
return new CDirectoryNodeAlbumTop100Song(strName, pParent);
case NODE_TYPE_SONG_TOP100:
return new CDirectoryNodeSongTop100(strName, pParent);
case NODE_TYPE_ALBUM_RECENTLY_ADDED:
return new CDirectoryNodeAlbumRecentlyAdded(strName, pParent);
case NODE_TYPE_ALBUM_RECENTLY_ADDED_SONGS:
return new CDirectoryNodeAlbumRecentlyAddedSong(strName, pParent);
case NODE_TYPE_ALBUM_RECENTLY_PLAYED:
return new CDirectoryNodeAlbumRecentlyPlayed(strName, pParent);
case NODE_TYPE_ALBUM_RECENTLY_PLAYED_SONGS:
return new CDirectoryNodeAlbumRecentlyPlayedSong(strName, pParent);
case NODE_TYPE_ALBUM_COMPILATIONS:
return new CDirectoryNodeAlbumCompilations(strName, pParent);
case NODE_TYPE_ALBUM_COMPILATIONS_SONGS:
return new CDirectoryNodeAlbumCompilationsSongs(strName, pParent);
case NODE_TYPE_YEAR_ALBUM:
return new CDirectoryNodeYearAlbum(strName, pParent);
case NODE_TYPE_YEAR_SONG:
return new CDirectoryNodeYearSong(strName, pParent);
default:
break;
}

return NULL;
}
Reply

Logout Mark Read Team Forum Stats Members Help
Where can I find the categories in MyMusicNav?0