/****************************************************************************
	Aplikace pro nastaveni data a casu

*****************************************************************************/

#ifndef TIME_SETUP_H
#define TIME_SETUP_H

/****************************************************************************
	Definice oblasti aplikace

*****************************************************************************/
#define TIME_SETUP_YA 21
#define TIME_SETUP_XA 0
#define TIME_SETUP_XC 480
#define TIME_SETUP_YC 272

/****************************************************************************
	Definice rozmeru objektu

*****************************************************************************/
#define TIME_SETUP_DIVISOR_LEFT 30
#define TIME_SETUP_DIVISOR_TOP 35
#define TIME_SETUP_DIVISOR_WIDTH 420
#define TIME_SETUP_DIVISOR_HEIGHT 70

#define TIME_SETUP_SHOW_FIELD_LEFT 25
#define TIME_SETUP_SHOW_FIELD_TOP 25
#define TIME_SETUP_SHOW_FIELD_WIDTH 60
#define TIME_SETUP_SHOW_FIELD_HEIGHT 35

/****************************************************************************
	Definice ID objektu

*****************************************************************************/
typedef enum TIME_SETUP_OBJECT
{
	TIME_SETUP_TIME_BG,
	TIME_SETUP_DATE_BG,
	TIME_SETUP_HOURS_UP,
	TIME_SETUP_HOURS_DOWN,
	TIME_SETUP_MINUTES_UP,
	TIME_SETUP_MINUTES_DOWN,
	TIME_SETUP_SHOW_TIME_HOURS,
	TIME_SETUP_SHOW_TIME_MINUTES,
	TIME_SETUP_DAYS_UP,
	TIME_SETUP_DAYS_DOWN,
	TIME_SETUP_SHOW_DATE_DAYS,
	TIME_SETUP_MONTHS_UP,
	TIME_SETUP_MONTHS_DOWN,
	TIME_SETUP_SHOW_DATE_MONTHS,
	TIME_SETUP_YEARS_UP,
	TIME_SETUP_YEARS_DOWN,
	TIME_SETUP_SHOW_DATE_YEARS,
	TIME_SETUP_SHOW_DATE,
	TIME_SETUP_EXIT_BUTTON,
	TIME_SETUP_SAVE_BUTTON,
	TIME_SETUP_SYNC_BUTTON,
	TIME_SETUP_OBJECT_COUNT,
}TIME_SETUP_OBJECT;

/****************************************************************************
	Definice stavu aplikace

*****************************************************************************/
typedef enum TIME_SETUP_STATE
{
	TIME_SETUP_NOT_INITIALIZED = M_TASK_NOT_INITIALIZED,
	TIME_SETUP_INITIALIZE,
	TIME_SETUP_RESTART = M_TASK_RESTART,
	TIME_SETUP_DRAW,
	TIME_SETUP_ACTIVE = M_TASK_RUNNING,
	TIME_SETUP_WAITING = M_TASK_WAITING,
	TIME_SETUP_DIALOG_WAITING = M_TASK_DIALOG_WAITING,
	TIME_SETUP_SWITCH,
	TIME_SETUP_READY = M_TASK_READY,
	TIME_SETUP_STOP,
	TIME_SETUP_ERROR = M_TASK_FAILED,
}TIME_SETUP_STATE;


RESULT TSMsgBox(MESSAGE * msg);
void AppTimeSetup(void);

#endif