#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	setDialogId ;
extern int	setMesId[17] ;
extern int	setOKBtnId ;
extern int	setOKchk() ;
extern int	setCanBtnId ;
extern int	setSubDialogId ;
extern int	waitNumId ;
extern int	waitSet() ;
extern int	setBtnId[9] ;
extern int	playSet() ;
extern int	zoomSet() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataIRCSET = { "MmiInit",  26, 0 } ;

/* setDialogId */

static MMIPACKET d001 = {	&setDialogId,
							NULL,
							&MJ_ALERTL40,
							OFFSET(ALERTL40),
							MS_NONE
						} ;
static ALERTL40	d001d = {	MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
							 160, 115, 480, 365, 8, 4, 8,
							MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   0,   0,   0,   0
						} ;

/* setMesId[0] */

static MMIPACKET d002 = {	&setMesId[0],
							&setDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d002d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 180, 118, 339, 141, 0,15, 8,
							MS_NONEL40,
							"再 生",
							   1,  12,  12,
							MS_BOLDL40,
							   3,   0
						} ;

/* setOKBtnId */

static MMIPACKET d003 = {	&setOKBtnId,
							&setDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d003d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 225, 334, 286, 356,12, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							setOKchk,
							0x8012
						} ;

/* setMesId[15] */

static MMIPACKET d004 = {	&setMesId[15],
							&setDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d004d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 226, 336, 285, 355, 0, 7, 8,
							MS_NONEL40,
							"再  生",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setCanBtnId */

static MMIPACKET d005 = {	&setCanBtnId,
							&setDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d005d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 354, 334, 415, 356,10, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							setOKchk,
							0x8011
						} ;

/* setMesId[7] */

static MMIPACKET d006 = {	&setMesId[7],
							&setDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d006d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 355, 336, 414, 355, 0, 7, 8,
							MS_NONEL40,
							"取  消",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setSubDialogId */

static MMIPACKET d007 = {	&setSubDialogId,
							&setDialogId,
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d007d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
							 180, 142, 461, 327, 8, 4, 8,
							MS_DFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* setMesId[8] */

static MMIPACKET d008 = {	&setMesId[8],
							&setSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d008d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 218, 149, 287, 164, 0,15, 8,
							MS_NONEL40,
							"ウェイト",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* waitNumId */

static MMIPACKET d009 = {	&waitNumId,
							&setSubDialogId,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d009d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
							 216, 170, 291, 193, 8, 4, 8,
							MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
							waitSet,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							   0,  -6,  99,   1,   0,
							 263, 264
						} ;

/* setMesId[16] */

static MMIPACKET d010 = {	&setMesId[16],
							&setSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d010d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 352, 214, 438, 229, 0,15, 8,
							MS_NONEL40,
							"データ保存領域",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setBtnId[2] */

static MMIPACKET d011 = {	&setBtnId[2],
							&setSubDialogId,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d011d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 346, 232, 441, 248, 8, 4, 8,
							MS_NONEL40,
							playSet,
							0x0000, 259, 260
						} ;

/* setMesId[9] */

static MMIPACKET d012 = {	&setMesId[9],
							&setSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d012d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 370, 232, 450, 248, 0,15, 8,
							MS_NONEL40,
							"メモリ",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setBtnId[3] */

static MMIPACKET d013 = {	&setBtnId[3],
							&setSubDialogId,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d013d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 346, 252, 441, 268, 8, 4, 8,
							MS_NONEL40,
							playSet,
							0x0000, 259, 260
						} ;

/* setMesId[10] */

static MMIPACKET d014 = {	&setMesId[10],
							&setSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d014d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 370, 252, 450, 268, 0,15, 8,
							MS_NONEL40,
							"ディスク",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setMesId[6] */

static MMIPACKET d015 = {	&setMesId[6],
							&setSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d015d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 209, 212, 296, 227, 0,15, 8,
							MS_NONEL40,
							"表示倍率",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setBtnId[4] */

static MMIPACKET d016 = {	&setBtnId[4],
							&setSubDialogId,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d016d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 220, 234, 295, 250, 8, 4, 8,
							MS_NONEL40,
							zoomSet,
							0x0000, 259, 260
						} ;

/* setMesId[11] */

static MMIPACKET d017 = {	&setMesId[11],
							&setSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d017d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 243, 234, 308, 250, 0,15, 8,
							MS_NONEL40,
							"0.5 倍",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setBtnId[5] */

static MMIPACKET d018 = {	&setBtnId[5],
							&setSubDialogId,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d018d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 220, 251, 295, 267, 8, 4, 8,
							MS_NONEL40,
							zoomSet,
							0x0000, 259, 260
						} ;

/* setMesId[12] */

static MMIPACKET d019 = {	&setMesId[12],
							&setSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d019d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 243, 251, 308, 267, 0,15, 8,
							MS_NONEL40,
							" １ 倍",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setBtnId[6] */

static MMIPACKET d020 = {	&setBtnId[6],
							&setSubDialogId,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d020d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 220, 268, 295, 284, 8, 4, 8,
							MS_NONEL40,
							zoomSet,
							0x0000, 259, 260
						} ;

/* setMesId[13] */

static MMIPACKET d021 = {	&setMesId[13],
							&setSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d021d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 243, 268, 308, 284, 0,15, 8,
							MS_NONEL40,
							"1.5 倍",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setBtnId[7] */

static MMIPACKET d022 = {	&setBtnId[7],
							&setSubDialogId,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d022d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 220, 285, 295, 301, 8, 4, 8,
							MS_NONEL40,
							zoomSet,
							0x0000, 259, 260
						} ;

/* setMesId[14] */

static MMIPACKET d023 = {	&setMesId[14],
							&setSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d023d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 243, 285, 308, 301, 0,15, 8,
							MS_NONEL40,
							" ２ 倍",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setMesId[4] */

static MMIPACKET d024 = {	&setMesId[4],
							&setSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d024d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 353, 279, 440, 294, 0,15, 8,
							MS_NONEL40,
							"ループモード",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* setBtnId[8] */

static MMIPACKET d025 = {	&setBtnId[8],
							&setSubDialogId,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d025d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 346, 299, 441, 315, 8, 4, 8,
							MS_NONEL40,
							0,
							0x0000, 279, 280
						} ;

/* setMesId[5] */

static MMIPACKET d026 = {	&setMesId[5],
							&setSubDialogId,
							&MJ_MSGL40,
							0,
							MS_NONE
						} ;
static MSGL40	d026d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 370, 299, 450, 315, 0,15, 8,
							MS_NONEL40,
							"ループ再生",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

