#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	alertDlg ;
extern int	alertMsg ;
extern int	alertExecBtn ;
extern int	alertFunc() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataALRT = { "MmiInit",   5, 0 } ;

/* alertDlg */

static MMIPACKET d001 = {	&alertDlg,
							NULL,
							&MJ_ALERTL40,
							OFFSET(ALERTL40),
							MS_NONE
						} ;
static ALERTL40	d001d = {	MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_SAVEL40,
							   0,   0, 239,  79, 8,15, 8,
							MS_ALERTL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   0,   0,   0,   0
						} ;

/* alertMsg */

static MMIPACKET d002 = {	&alertMsg,
							&alertDlg,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d002d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  40,  24, 199,  43, 8,15, 8,
							MS_OPAQUEL40,
							"アラート",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* alertExecBtn */

static MMIPACKET d003 = {	&alertExecBtn,
							&alertDlg,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d003d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 168,  48, 223,  67, 8,15, 8,
							MS_ROUNDL40 | MS_FRAMEL40 | MS_DEFAULTL40,
							alertFunc,
							0x8012
						} ;

/* NULL */

static MMIPACKET d004 = {	NULL,
							&alertDlg,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d004d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 164,  48, 227,  67, 8,15, 8,
							MS_NONEL40,
							"確 認",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d005 = {	NULL,
							&alertDlg,
							&MJ_MSGL40,
							0,
							MS_NONE
						} ;
static MSGL40	d005d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							   8,   2,  71,  21, 8,15, 8,
							MS_NONEL40,
							"[GHEL v1.2]",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

