#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	DB_typeAlert ;
extern int	DB_typeBtn ;
extern int	DB_typeFunc() ;
extern int	DB_typesub ;
extern int	DB_typetytle ;
extern int	DB_typeText ;
extern int	DB_typeText_sc ;
extern int	DB_type_scFunc() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataTYPED = { "MmiInit",   6, 0 } ;

/* DB_typeAlert */

static MMIPACKET d001 = {	&DB_typeAlert,
							NULL,
							&MJ_ALERTL40,
							OFFSET(ALERTL40),
							MS_NONE
						} ;
static ALERTL40	d001d = {	MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_SAVEL40,
							  30,  92, 478, 376, 0, 7, 9,
							MS_ALERTL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   0,   0,   0,   0
						} ;

/* DB_typeBtn */

static MMIPACKET d002 = {	&DB_typeBtn,
							&DB_typeAlert,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d002d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							  41, 101, 123, 129,12, 9, 8,
							MS_PANELL40 | MS_FRAMEL40,
							DB_typeFunc,
							0x0000
						} ;

/* DB_typesub */

static MMIPACKET d003 = {	&DB_typesub,
							&DB_typeAlert,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d003d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  54, 104, 107, 127, 1,12,15,
							MS_NONEL40,
							"閉じる",
							   2,  16,  16,
							MS_NONEL40,
							   0,   0
						} ;

/* DB_typetytle */

static MMIPACKET d004 = {	&DB_typetytle,
							&DB_typeAlert,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d004d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 175, 102, 334, 127, 0,15, 0,
							MS_NONEL40,
							"ヘルプ",
							   2,  16,  16,
							MS_NONEL40,
							   0,   0
						} ;

/* DB_typeText */

static MMIPACKET d005 = {	&DB_typeText,
							&DB_typeAlert,
							&MJ_TEXTL40,
							OFFSET(TEXTL40),
							MS_NONE
						} ;
static TEXTL40	d005d = 	{	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
							  39, 134, 450, 358, 0, 1,15,
							MS_FRAMEL40,
							0,
							   0,   0,   0,   0,
							   0,   0,   0,   0,   0,
							      -1,   0,   0,
							   0,   0,   0,   0,
							   0,
							   0,   0,   0,   0,
							   1,  12,  12,   0,   0,
							   0,   0,   0,   0,   0,   0,   0,
							   0,   0,   0,   0,
							  24
						} ;

/* DB_typeText_sc */

static MMIPACKET d006 = {	&DB_typeText_sc,
							&DB_typeAlert,
							&MJ_SCRLL40,
							OFFSET(SCRLL40),
							MS_NONE
						} ;
static SCRLL40	d006d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
							 452, 133, 467, 359, 0,15, 1,
							MS_PANELL40 | MS_FRAMEL40,
							DB_type_scFunc,
							   0,   0, 255,  16,  16,
							 263, 264
						} ;

