#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	AlertKakuninId ;
extern int	Kakunin_OK() ;
extern int	AlertGetYesNo ;
extern int	GetYesNoMessage[5] ;
extern int	DButton_getYESNO[2] ;
extern int	getYESNO_OK() ;
extern int	getYESNO_NO() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataMESSAGE = { "MmiInit",  11, 0 } ;

/* AlertKakuninId */

static MMIPACKET d001 = {	&AlertKakuninId,
							NULL,
							&MJ_ALERTL40,
							OFFSET(ALERTL40),
							MS_NONE
						} ;
static ALERTL40	d001d = {	MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_SAVEL40,
							 444, 110, 542, 141,14,10, 0,
							MS_PANELL40 | MS_FRAMEL40,
							NULL, 400,1000,
							   0,   0,   0,   0
						} ;

/* NULL */

static MMIPACKET d002 = {	NULL,
							&AlertKakuninId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d002d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 448, 113, 541, 139,10,10, 0,
							MS_FRAMEL40,
							Kakunin_OK,
							0x8012
						} ;

/* NULL */

static MMIPACKET d003 = {	NULL,
							&AlertKakuninId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d003d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 456, 119, 533, 134, 0,15,14,
							MS_NONEL40,
							"確　認",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* AlertGetYesNo */

static MMIPACKET d004 = {	&AlertGetYesNo,
							NULL,
							&MJ_ALERTL40,
							OFFSET(ALERTL40),
							MS_NONE
						} ;
static ALERTL40	d004d = {	MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
							 211, 167, 502, 284, 0,12, 0,
							MS_ALERTL40 | MS_FRAMEL40,
							NULL,   0, 700,
							   0,   0,   0,   0
						} ;

/* GetYesNoMessage[0] */

static MMIPACKET d005 = {	&GetYesNoMessage[0],
							&AlertGetYesNo,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d005d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 218, 183, 497, 198, 0, 0, 0,
							MS_NONEL40,
							"選んで下さい",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* DButton_getYESNO[0] */

static MMIPACKET d006 = {	&DButton_getYESNO[0],
							&AlertGetYesNo,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d006d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 370, 252, 427, 275, 0,15, 0,
							MS_PANELL40 | MS_FRAMEL40,
							getYESNO_OK,
							0x8012
						} ;

/* DButton_getYESNO[1] */

static MMIPACKET d007 = {	&DButton_getYESNO[1],
							&AlertGetYesNo,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d007d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 435, 251, 493, 274, 0,15, 0,
							MS_PANELL40 | MS_FRAMEL40,
							getYESNO_NO,
							0x8011
						} ;

/* GetYesNoMessage[3] */

static MMIPACKET d008 = {	&GetYesNoMessage[3],
							&AlertGetYesNo,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d008d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 378, 255, 418, 270, 0, 0, 0,
							MS_NONEL40,
							"ＹＥＳ",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* GetYesNoMessage[4] */

static MMIPACKET d009 = {	&GetYesNoMessage[4],
							&AlertGetYesNo,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d009d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 446, 254, 480, 269, 0, 0, 0,
							MS_NONEL40,
							"ＮＯ",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* GetYesNoMessage[1] */

static MMIPACKET d010 = {	&GetYesNoMessage[1],
							&AlertGetYesNo,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d010d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 217, 203, 496, 218, 0, 0, 0,
							MS_NONEL40,
							"選んで下さい",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* GetYesNoMessage[2] */

static MMIPACKET d011 = {	&GetYesNoMessage[2],
							&AlertGetYesNo,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d011d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 217, 224, 496, 239, 0, 0, 0,
							MS_NONEL40,
							"選んで下さい",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

