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
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
Generated on Thu Jan 27 20:57:32 2005 for StepMania by
1.3.7