#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	tifDialogId[5] ;
extern int	tifListMenuId0 ;
extern int	tifListFunc0() ;
extern int	tifScrollBarId0 ;
extern int	tifScrollFunc0() ;
extern int	tifMesId[16] ;
extern int	tifTIconId[2] ;
extern int	tifTIconFunc0() ;
extern int	tifDButtonId[9] ;
extern int	tifDButtonFunc0() ;
extern int	tifDButtonFunc1() ;
extern int	tifListMenuId1 ;
extern int	tifListFunc1() ;
extern int	tifDButtonFunc5() ;
extern int	tifDButtonFunc3() ;
extern int	tifDButtonFunc4() ;
extern int	tifDButtonFunc6() ;
extern int	tifDButtonFunc2() ;
extern int	tifNumBoxId ;
extern int	tifScrollBarId1 ;
extern int	tifScrollFunc1() ;
extern int	tifDButtonFunc7() ;
extern int	tifWaitDialogId ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataIRCTIF = { "MmiInit",  38, 0 } ;

/* tifDialogId[0] */

static MMIPACKET d001 = {	&tifDialogId[0],
							NULL,
							&MJ_ALERTL40,
							OFFSET(ALERTL40),
							MS_NONE
						} ;
static ALERTL40	d001d = {	MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_FIXEDL40,
							  22,  43, 619, 457, 8, 4, 8,
							MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   0,   0,   0,   0
						} ;

/* tifDialogId[1] */

static MMIPACKET d002 = {	&tifDialogId[1],
							&tifDialogId[0],
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d002d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
							  44,  59, 299, 418,15, 4, 8,
							MS_DFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* tifListMenuId0 */

static MMIPACKET d003 = {	&tifListMenuId0,
							&tifDialogId[1],
							&MJ_LMENUL40,
							OFFSET(LMENUL40),
							MS_NONE
						} ;
static LMENUL40	d003d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
							  61,  70, 144, 405, 8,15, 8,
							MS_FRAMEL40,
							tifListFunc0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							0,0,0,0,0,0
						} ;

/* tifScrollBarId0 */

static MMIPACKET d004 = {	&tifScrollBarId0,
							&tifDialogId[1],
							&MJ_SCRLL40,
							OFFSET(SCRLL40),
							MS_NONE
						} ;
static SCRLL40	d004d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
							 145,  70, 160, 405, 8, 6, 7,
							MS_PANELL40 | MS_FRAMEL40,
							tifScrollFunc0,
							   0,   0, 255,  16,  16,
							 263, 264
						} ;

/* tifMesId[10] */

static MMIPACKET d005 = {	&tifMesId[10],
							&tifDialogId[1],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d005d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 170,  68, 294,  91, 8,15, 8,
							MS_NONEL40,
							"原画ディレクトリ",
							   1,  12,  12,
							MS_BOLDL40,
							   0,   0
						} ;

/* tifDialogId[4] */

static MMIPACKET d006 = {	&tifDialogId[4],
							&tifDialogId[1],
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d006d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
							 178,  95, 281, 405,15, 4, 8,
							MS_DFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* tifTIconId[0] */

static MMIPACKET d007 = {	&tifTIconId[0],
							&tifDialogId[4],
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d007d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 184, 261, 275, 278, 8, 4, 8,
							MS_NONEL40,
							tifTIconFunc0,
							0x0000, 259, 260
						} ;

/* tifMesId[11] */

static MMIPACKET d008 = {	&tifMesId[11],
							&tifDialogId[4],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d008d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 196, 261, 275, 280, 8,15, 8,
							MS_NONEL40,
							"一つずつ登録",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifTIconId[1] */

static MMIPACKET d009 = {	&tifTIconId[1],
							&tifDialogId[4],
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d009d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 184, 288, 275, 305, 8, 4, 8,
							MS_NONEL40,
							tifTIconFunc0,
							0x0000, 259, 260
						} ;

/* tifMesId[12] */

static MMIPACKET d010 = {	&tifMesId[12],
							&tifDialogId[4],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d010d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 201, 287, 258, 306, 8,15, 8,
							MS_NONEL40,
							"一括登録",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifDButtonId[0] */

static MMIPACKET d011 = {	&tifDButtonId[0],
							&tifDialogId[4],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d011d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 190, 310, 269, 335,12, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							tifDButtonFunc0,
							0x0000
						} ;

/* tifMesId[0] */

static MMIPACKET d012 = {	&tifMesId[0],
							&tifDialogId[4],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d012d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 201, 313, 258, 332, 8,15, 8,
							MS_NONEL40,
							"一括登録",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifDButtonId[1] */

static MMIPACKET d013 = {	&tifDButtonId[1],
							&tifDialogId[4],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d013d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 190, 367, 269, 392,12, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							tifDButtonFunc1,
							0x0000
						} ;

/* tifMesId[1] */

static MMIPACKET d014 = {	&tifMesId[1],
							&tifDialogId[4],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d014d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 201, 370, 258, 389, 8,15, 8,
							MS_NONEL40,
							"全 登 録",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifDialogId[2] */

static MMIPACKET d015 = {	&tifDialogId[2],
							&tifDialogId[0],
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d015d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
							 342,  59, 597, 418,15, 4, 8,
							MS_DFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* tifListMenuId1 */

static MMIPACKET d016 = {	&tifListMenuId1,
							&tifDialogId[2],
							&MJ_LMENUL40,
							OFFSET(LMENUL40),
							MS_NONE
						} ;
static LMENUL40	d016d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
							 359,  70, 442, 405, 8,15, 8,
							MS_FRAMEL40,
							tifListFunc1,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							0,0,0,0,0,0
						} ;

/* tifMesId[13] */

static MMIPACKET d017 = {	&tifMesId[13],
							&tifDialogId[2],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d017d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 467,  70, 594,  89, 8,15, 8,
							MS_NONEL40,
							"原画登録パネル",
							   1,  12,  12,
							MS_BOLDL40,
							   0,   0
						} ;

/* tifDialogId[3] */

static MMIPACKET d018 = {	&tifDialogId[3],
							&tifDialogId[2],
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d018d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
							 476,  95, 579, 405,15, 4, 8,
							MS_DFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* tifDButtonId[5] */

static MMIPACKET d019 = {	&tifDButtonId[5],
							&tifDialogId[3],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d019d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 488, 310, 567, 335,12, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							tifDButtonFunc5,
							0x0000
						} ;

/* tifMesId[5] */

static MMIPACKET d020 = {	&tifMesId[5],
							&tifDialogId[3],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d020d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 505, 313, 558, 332, 8,15, 8,
							MS_NONEL40,
							"挿  入",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifDButtonId[3] */

static MMIPACKET d021 = {	&tifDButtonId[3],
							&tifDialogId[3],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d021d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 488, 240, 567, 265,10, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							tifDButtonFunc3,
							0x0000
						} ;

/* tifMesId[3] */

static MMIPACKET d022 = {	&tifMesId[3],
							&tifDialogId[3],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d022d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 503, 243, 556, 262, 8,15, 8,
							MS_NONEL40,
							"削  除",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifDButtonId[4] */

static MMIPACKET d023 = {	&tifDButtonId[4],
							&tifDialogId[3],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d023d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 488, 275, 567, 300,12, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							tifDButtonFunc4,
							0x0000
						} ;

/* tifMesId[4] */

static MMIPACKET d024 = {	&tifMesId[4],
							&tifDialogId[3],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d024d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 504, 278, 557, 297, 8,15, 8,
							MS_NONEL40,
							"取  得",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifDButtonId[6] */

static MMIPACKET d025 = {	&tifDButtonId[6],
							&tifDialogId[3],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d025d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 488, 367, 567, 392,10, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							tifDButtonFunc6,
							0x0000
						} ;

/* tifMesId[6] */

static MMIPACKET d026 = {	&tifMesId[6],
							&tifDialogId[3],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d026d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 503, 370, 556, 389, 8,15, 8,
							MS_NONEL40,
							"全 削 除",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifDButtonId[2] */

static MMIPACKET d027 = {	&tifDButtonId[2],
							&tifDialogId[3],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d027d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 488, 204, 567, 229,12, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							tifDButtonFunc2,
							0x0000
						} ;

/* tifMesId[2] */

static MMIPACKET d028 = {	&tifMesId[2],
							&tifDialogId[3],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d028d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 501, 207, 556, 226, 8,15, 8,
							MS_NONEL40,
							"表  示",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifMesId[8] */

static MMIPACKET d029 = {	&tifMesId[8],
							&tifDialogId[3],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d029d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 487, 157, 531, 176, 8,15, 8,
							MS_NONEL40,
							"登録数",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifNumBoxId */

static MMIPACKET d030 = {	&tifNumBoxId,
							&tifDialogId[3],
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d030d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_FIXEDL40,
							 527, 155, 568, 178, 8, 4, 8,
							MS_NONEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							   0,   0,2000,   1,   0,
							 263, 264
						} ;

/* tifScrollBarId1 */

static MMIPACKET d031 = {	&tifScrollBarId1,
							&tifDialogId[2],
							&MJ_SCRLL40,
							OFFSET(SCRLL40),
							MS_NONE
						} ;
static SCRLL40	d031d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
							 443,  70, 458, 405, 8, 6, 7,
							MS_PANELL40 | MS_FRAMEL40,
							tifScrollFunc1,
							   0,   0, 255,  16,  16,
							 263, 264
						} ;

/* tifMesId[9] */

static MMIPACKET d032 = {	&tifMesId[9],
							&tifDialogId[0],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d032d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 310, 239, 333, 262, 8,15, 8,
							MS_NONEL40,
							"→",
							   1,  16,  12,
							MS_BOLDL40,
							   0,   0
						} ;

/* tifDButtonId[7] */

static MMIPACKET d033 = {	&tifDButtonId[7],
							&tifDialogId[0],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d033d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 522, 425, 601, 450,12, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							tifDButtonFunc7,
							0x0000
						} ;

/* tifMesId[7] */

static MMIPACKET d034 = {	&tifMesId[7],
							&tifDialogId[0],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d034d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 536, 428, 589, 447, 8,15, 8,
							MS_NONEL40,
							"終  了",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* tifWaitDialogId */

static MMIPACKET d035 = {	&tifWaitDialogId,
							NULL,
							&MJ_ALERTL40,
							OFFSET(ALERTL40),
							MS_NONE
						} ;
static ALERTL40	d035d = {	MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
							 161, 413, 480, 456, 8, 4, 8,
							MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   0,   0,   0,   0
						} ;

/* tifMesId[14] */

static MMIPACKET d036 = {	&tifMesId[14],
							&tifWaitDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d036d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 249, 425, 393, 443, 0, 6, 8,
							MS_NONEL40,
							"終了しました。",
							   1,  12,  12,
							MS_BOLDL40,
							   0,   0
						} ;

/* tifDButtonId[8] */

static MMIPACKET d037 = {	&tifDButtonId[8],
							&tifWaitDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d037d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 410, 423, 469, 446,12, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							tifDButtonFunc7,
							0x0000
						} ;

/* tifMesId[15] */

static MMIPACKET d038 = {	&tifMesId[15],
							&tifWaitDialogId,
							&MJ_MSGL40,
							0,
							MS_NONE
						} ;
static MSGL40	d038d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 418, 426, 464, 444, 0, 6, 8,
							MS_NONEL40,
							"確  認",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

