/****************************************************************************
	Aplikace pro nastaveni podsvetleni

*****************************************************************************/
#ifndef BACKLIGHT_SETUP_H
#define BACKLIGHT_SETUP_H

/****************************************************************************
	Definice geometrickych rozmeru aplikace

*****************************************************************************/
#define BACKLIGHT_SETUP_DIVISOR_LEFT 120
#define BACKLIGHT_SETUP_DIVISOR_TOP 40
#define BACKLIGHT_SETUP_DIVISOR_WIDTH 240
#define BACKLIGHT_SETUP_DIVISOR_HEIGHT 220

#define BACKLIGHT_SETUP_YA BACKLIGHT_SETUP_DIVISOR_TOP
#define BACKLIGHT_SETUP_XA BACKLIGHT_SETUP_DIVISOR_LEFT
#define BACKLIGHT_SETUP_XC BACKLIGHT_SETUP_DIVISOR_WIDTH+BACKLIGHT_SETUP_DIVISOR_LEFT
#define BACKLIGHT_SETUP_YC BACKLIGHT_SETUP_DIVISOR_TOP+BACKLIGHT_SETUP_DIVISOR_HEIGHT

#define BACKLIGHT_SETUP_SHOW_FIELD_LEFT 25
#define BACKLIGHT_SETUP_SHOW_FIELD_TOP 28
#define BACKLIGHT_SETUP_SHOW_FIELD_WIDTH 130
#define BACKLIGHT_SETUP_SHOW_FIELD_HEIGHT 35
#define BACKLIGHT_SETUP_SHOW_FIELD_DISTANCE 15

#define BACKLIGHT_SETUP_CHANGE_WIDTH 30
#define BACKLIGHT_SETUP_SHOW_FIELD_CHNG_WIDTH 60



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

*****************************************************************************/
typedef enum BACKLIGHT_SETUP_OBJECT
{
	BACKLIGHT_SETUP_DIVISOR,
	BACKLIGHT_SETUP_TIMEOUT_UP,
	BACKLIGHT_SETUP_TIMEOUT_DOWN,
	BACKLIGHT_SETUP_TIMEOUT,
	BACKLIGHT_SETUP_HARD_TIMEOUT_UP,
	BACKLIGHT_SETUP_HARD_TIMEOUT_DOWN,
	BACKLIGHT_SETUP_HARD_TIMEOUT,
	BACKLIGHT_SETUP_BRIGHTNESS_DOWN,
	BACKLIGHT_SETUP_BRIGHTNESS_UP,
	BACKLIGHT_SETUP_BRIGHTNESS,
	BACKLIGHT_SETUP_END,
	BACKLIGHT_SETUP_OBJECT_COUNT,
}BACKLIGHT_SETUP_OBJECT;


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

*****************************************************************************/
typedef enum BACKLIGHT_SETUP_STATE
{
	BACKLIGHT_SETUP_NOT_INITIALIZED = M_TASK_NOT_INITIALIZED,
	BACKLIGHT_SETUP_INITIALIZE,
	BACKLIGHT_SETUP_RESTART = M_TASK_RESTART,
	BACKLIGHT_SETUP_DRAW,
	BACKLIGHT_SETUP_ACTIVE = M_TASK_RUNNING,
	BACKLIGHT_SETUP_WAITING = M_TASK_WAITING,
	BACKLIGHT_SETUP_DIALOG_WAITING = M_TASK_DIALOG_WAITING,
	BACKLIGHT_SETUP_SWITCH,
	BACKLIGHT_SETUP_READY = M_TASK_READY,
	BACKLIGHT_SETUP_STOP,
	BACKLIGHT_SETUP_ERROR = M_TASK_FAILED,
}BACKLIGHT_SETUP_STATE;


RESULT BSMsgBox(MESSAGE * msg);
void AppBacklightSetup(void);

#endif