/****************************************************************************
	Aplikace specialni klavesnice

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

#ifndef SPECIALS_H
#define SPECIALS_H

#include "OS_types.h"

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

*****************************************************************************/
typedef enum SPECIALS_STATE
{
	SPECIALS_NOT_INITIALIZED = M_TASK_NOT_INITIALIZED,
	SPECIALS_INITIALIZE,
	SPECIALS_PROCEED_CONFIG,
	SPECIALS_CONFIGURED,
	SPECIALS_ACTIVE = M_TASK_RUNNING,
	SPECIALS_RESTART = M_TASK_RESTART,
	SPECIALS_DRAW,
	SPECIALS_READY = M_TASK_READY,
	SPECIALS_WAITING = M_TASK_WAITING,
	SPECIALS_STOP,
	SPECIALS_FAILED = M_TASK_FAILED,
}SPECIALS_STATE;

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

*****************************************************************************/
#define SPECIALS_XA 10
#define SPECIALS_XC 470
#define SPECIALS_YA 80
#define SPECIALS_YC 250

#define SPECIALS_FS_BUTTONS_WIDTH 40
#define SPECIALS_FS_BUTTONS_HEIGHT 30
#define SPECIALS_FS_BUTTONS_TOP 25
#define SPECIALS_FS_BUTTONS_LEFT 8
#define SPECIALS_FS_BUTTONS_DISTANCE 5

#define SPECIALS_FN_BUTTONS_WIDTH 51
#define SPECIALS_FN_BUTTONS_HEIGHT SPECIALS_FS_BUTTONS_HEIGHT
#define SPECIALS_FN_BUTTONS_DISTANCE 5
#define SPECIALS_FN_BUTTONS_LEFT 8
#define SPECIALS_FN_BUTTONS_TOP (SPECIALS_FS_BUTTONS_TOP + SPECIALS_FS_BUTTONS_HEIGHT*2 + SPECIALS_FN_BUTTONS_DISTANCE*2)

/****************************************************************************
	Definice objektu aplikace

*****************************************************************************/
typedef enum SPECIALS_OBJECTS
{
	SPECIALS_MAIN_SHAPE,
	FN_F1,
	FN_F2,
	FN_F3,
	FN_F4,
	FN_F5,
	FN_F6,
	FN_F7,
	FN_F8,
	FN_F9,
	FN_F10,
	FN_F11,
	FN_F12,
	FN_CTRL,
	FN_ALT,
	FN_ESCAPE,
	FN_DEL,
	FN_BACKSPACE,
	FN_TAB,
	FN_HOME,
	FN_END,
	FN_SPACE,
	FN_ENTER,
	BTN_BACK,
	SPECIALS_OBJECT_COUNT,
}SPECIALS_OBJECTS;

void AppSpecials(void);
RESULT SPMsgBox(MESSAGE * msg);

#endif






