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

GroupList.h

Go to the documentation of this file.
00001 #ifndef GROUP_LIST_H 00002 #define GROUP_LIST_H 00003 00004 #include "ActorFrame.h" 00005 #include "Sprite.h" 00006 #include "BitmapText.h" 00007 00008 class GroupList: public ActorFrame 00009 { 00010 ActorFrame m_Frame; 00011 vector<Sprite *> m_sprButtons; 00012 vector<BitmapText *> m_textLabels; 00013 vector<ActorFrame *> m_ButtonFrames; 00014 vector<CString> m_asLabels; 00015 00016 vector<bool> m_bHidden; 00017 00018 /* Currently selected label. */ 00019 int m_iSelection; 00020 /* Label that's currently at the top of the screen. */ 00021 int m_iTop; 00022 00023 void BeforeChange(); 00024 void AfterChange(); 00025 bool ItemIsOnScreen( int n ) const; 00026 void ResetTextSize( int item ); 00027 00028 public: 00029 GroupList(); 00030 ~GroupList(); 00031 00032 void SetSelection(unsigned sel); 00033 int GetSelection() const { return m_iSelection; } 00034 CString GetSelectionName() const { return m_asLabels[m_iSelection]; } 00035 void Up(); 00036 void Down(); 00037 void Load( const CStringArray& asGroupNames ); 00038 void TweenOffScreen(); 00039 void TweenOnScreen(); 00040 }; 00041 00042 #endif 00043 00044 /* 00045 * (c) 2001-2003 Chris Danford, Glenn Maynard 00046 * All rights reserved. 00047 * 00048 * Permission is hereby granted, free of charge, to any person obtaining a 00049 * copy of this software and associated documentation files (the 00050 * "Software"), to deal in the Software without restriction, including 00051 * without limitation the rights to use, copy, modify, merge, publish, 00052 * distribute, and/or sell copies of the Software, and to permit persons to 00053 * whom the Software is furnished to do so, provided that the above 00054 * copyright notice(s) and this permission notice appear in all copies of 00055 * the Software and that both the above copyright notice(s) and this 00056 * permission notice appear in supporting documentation. 00057 * 00058 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00059 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00060 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00061 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00062 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00063 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00064 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00065 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00066 * PERFORMANCE OF THIS SOFTWARE. 00067 */

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