Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

MusicList.h

Go to the documentation of this file.
00001 #ifndef MUSICLIST_H 00002 #define MUSICLIST_H 00003 00004 #include "ActorFrame.h" 00005 #include "BitmapText.h" 00006 #include "song.h" 00007 00008 const int MAX_MLIST_COLUMNS = 5; 00009 00010 class MusicList : public ActorFrame 00011 { 00012 BitmapText m_textTitles[MAX_MLIST_COLUMNS]; 00013 00014 struct group { 00015 CString ContentsText[MAX_MLIST_COLUMNS]; 00016 int m_iNumSongsInGroup; 00017 }; 00018 00019 vector<group> m_ContentsText; 00020 00021 int NumGroups, CurGroup; 00022 00023 public: 00024 MusicList(); 00025 void Load(); 00026 00027 /* Add a new group. */ 00028 void AddGroup(); 00029 00030 /* Add songs to the group that was just added. */ 00031 void AddSongsToGroup(const vector<Song*> &songs); 00032 00033 /* Set the displayed group number. */ 00034 void SetGroupNo(int group); 00035 00036 void TweenOnScreen(); 00037 void TweenOffScreen(); 00038 int GetNumSongs() const { return m_ContentsText[CurGroup].m_iNumSongsInGroup; } 00039 }; 00040 00041 #endif 00042 00043 /* 00044 * (c) 2001-2003 Chris Danford 00045 * All rights reserved. 00046 * 00047 * Permission is hereby granted, free of charge, to any person obtaining a 00048 * copy of this software and associated documentation files (the 00049 * "Software"), to deal in the Software without restriction, including 00050 * without limitation the rights to use, copy, modify, merge, publish, 00051 * distribute, and/or sell copies of the Software, and to permit persons to 00052 * whom the Software is furnished to do so, provided that the above 00053 * copyright notice(s) and this permission notice appear in all copies of 00054 * the Software and that both the above copyright notice(s) and this 00055 * permission notice appear in supporting documentation. 00056 * 00057 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00058 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00059 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00060 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00061 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00062 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00063 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00064 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00065 * PERFORMANCE OF THIS SOFTWARE. 00066 */

Generated on Thu Jan 27 20:57:25 2005 for StepMania by doxygen 1.3.7