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

ScreenSetTime.h

Go to the documentation of this file.
00001 #ifndef SCREEN_SET_TIME_H 00002 #define SCREEN_SET_TIME_H 00003 00004 #include "ScreenWithMenuElements.h" 00005 #include "BitmapText.h" 00006 00007 enum SetTimeSelection 00008 { 00009 year, 00010 month, 00011 day, 00012 hour, 00013 minute, 00014 second, 00015 NUM_SET_TIME_SELECTIONS 00016 }; 00017 00018 class ScreenSetTime : public ScreenWithMenuElements 00019 { 00020 public: 00021 ScreenSetTime( CString sName ); 00022 00023 virtual void Update( float fDelta ); 00024 virtual void DrawPrimitives(); 00025 virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI ); 00026 virtual void HandleScreenMessage( const ScreenMessage SM ); 00027 00028 virtual void MenuUp( PlayerNumber pn ); 00029 virtual void MenuDown( PlayerNumber pn ); 00030 virtual void MenuLeft( PlayerNumber pn ); 00031 virtual void MenuRight( PlayerNumber pn ); 00032 virtual void MenuStart( PlayerNumber pn ); 00033 virtual void MenuBack( PlayerNumber pn ); 00034 00035 private: 00036 SetTimeSelection m_Selection; 00037 time_t m_TimeOffset; 00038 void ChangeSelection( int iDirection ); 00039 void ChangeValue( int iDirection ); 00040 00041 BitmapText m_textTitle[NUM_SET_TIME_SELECTIONS]; 00042 BitmapText m_textValue[NUM_SET_TIME_SELECTIONS]; 00043 BitmapText m_textDayOfWeek; 00044 }; 00045 00046 #endif 00047 00048 /* 00049 * (c) 2004 Chris Danford 00050 * All rights reserved. 00051 * 00052 * Permission is hereby granted, free of charge, to any person obtaining a 00053 * copy of this software and associated documentation files (the 00054 * "Software"), to deal in the Software without restriction, including 00055 * without limitation the rights to use, copy, modify, merge, publish, 00056 * distribute, and/or sell copies of the Software, and to permit persons to 00057 * whom the Software is furnished to do so, provided that the above 00058 * copyright notice(s) and this permission notice appear in all copies of 00059 * the Software and that both the above copyright notice(s) and this 00060 * permission notice appear in supporting documentation. 00061 * 00062 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00063 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00064 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00065 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00066 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00067 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00068 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00069 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00070 * PERFORMANCE OF THIS SOFTWARE. 00071 */

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