#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	DB_alert ;
extern int	DB_alert_sub[6] ;
extern int	DB_Alert_ret() ;
extern int	DB_alert_freemen ;
extern int	DB_alert_logo ;
extern int	DB_himituButton ;
extern int	himitu() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataALERT = { "MmiInit",  10, 0 } ;

/* DB_alert */

static MMIPACKET d001 = {	&DB_alert,
							NULL,
							&MJ_ALERTL40,
							OFFSET(ALERTL40),
							MS_NONE
						} ;
static ALERTL40	d001d = {	MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_FIXEDL40,
							 193,  73, 448, 355, 0, 7, 0,
							MS_ALERTL40 | MS_FRAMEL40,
							NULL, 605,   4,
							   0,   0,   0,   0
						} ;

/* DB_alert_sub[0] */

static MMIPACKET d002 = {	&DB_alert_sub[0],
							&DB_alert,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d002d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 241,  83, 400, 106, 1,15, 8,
							MS_NONEL40,
							"ソフトウェア検索 V1.0 L11",
							   2,  16,  16,
							MS_BOLDL40,
							   0,   0
						} ;

/* DB_alert_sub[1] */

static MMIPACKET d003 = {	&DB_alert_sub[1],
							&DB_alert,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d003d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 241, 106, 400, 126, 1,15, 8,
							MS_NONEL40,
							"All rights Reserved,",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* DB_alert_sub[2] */

static MMIPACKET d004 = {	&DB_alert_sub[2],
							&DB_alert,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d004d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 241, 126, 400, 144, 1,15, 8,
							MS_NONEL40,
							"Copyright (C) TOOLS 1993,1994",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* DB_alert_sub[3] */

static MMIPACKET d005 = {	&DB_alert_sub[3],
							&DB_alert,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d005d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 271, 313, 370, 338, 9, 7, 9,
							MS_PANELL40 | MS_DEFAULTL40,
							DB_Alert_ret,
							0x0000
						} ;

/* DB_alert_sub[4] */

static MMIPACKET d006 = {	&DB_alert_sub[4],
							&DB_alert,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d006d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 305, 316, 336, 336, 1,15, 8,
							MS_NONEL40,
							"了解",
							   2,  16,  16,
							MS_NONEL40,
							  16,   0
						} ;

/* DB_alert_sub[5] */

static MMIPACKET d007 = {	&DB_alert_sub[5],
							&DB_alert,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d007d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 241, 276, 400, 307, 1,15, 8,
							MS_NONEL40,
							"Programed by White of Cat",
							   2,  16,  16,
							MS_NONEL40,
							   0,   0
						} ;

/* DB_alert_freemen */

static MMIPACKET d008 = {	&DB_alert_freemen,
							&DB_alert,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d008d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 241, 260, 400, 280, 0,15, 1,
							MS_NONEL40,
							"28000K bytes free",
							   2,  16,  16,
							MS_NONEL40,
							   0,   0
						} ;

/* DB_alert_logo */

static MMIPACKET d009 = {	&DB_alert_logo,
							&DB_alert,
							&MJ_HYPER,
							OFFSET(HYPER),
							MS_NONE
						} ;
static HYPER	d009d = {	MS_NONEL40,
							 230, 146, 411, 255, 0, 0, 0,
							MS_NONEL40,
						} ;

/* DB_himituButton */

static MMIPACKET d010 = {	&DB_himituButton,
							&DB_alert,
							&MJ_BUTTONL40,
							OFFSET(BUTTONL40),
							MS_NONE
						} ;
static BUTTONL40	d010d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 216, 282, 423, 301, 0, 0, 0,
							MS_NONEL40,
							himitu,
							0x0000
						} ;

