#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	idMorphSucceedWin ;
extern int	idMorphSucceedTitleMsg ;
extern int	idMorphSucceedMsg ;
extern int	idMorphSucceedStopDBtn ;
extern int	MorphSucceedStopDBtnFunc() ;
extern int	idMorphSetupWin ;
extern int	MorphSetupBackWinFunc() ;
extern int	idMorphSetupBetweenNBox ;
extern int	MorphSetupBetweenNBoxFunc() ;
extern int	idMorphSetupSpecTIcon[4] ;
extern int	MorphSetupSpecTIconFunc() ;
extern int	idMorphSetupBackTIcon[2] ;
extern int	MorphSetupBackTIconFunc() ;
extern int	idMorphSetupOkDBtn ;
extern int	MorphSetupOkDBtnFunc() ;
extern int	idMorphSetupCancelDBtn ;
extern int	MorphSetupCancelDBtnFunc() ;
extern int	idMorphSetupTitleMsg ;
extern int	idMorphBetweenMsg ;
extern int	idMorphSetupTransTypeTIcon[4] ;
extern int	MorphSetupTransTypeTIconFunc() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataZMORPHGO = { "MmiInit",  44, 0 } ;

/* idMorphSucceedWin */

static MMIPACKET d001 = {	&idMorphSucceedWin,
							NULL,
							&MJ_WINDOWL40,
							OFFSET(WINDOWL40),
							MS_NONE
						} ;
static WINDOWL40	d001d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_HIDEL40,
							  80,  96, 383, 282, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   1,  17,   0,   0,
							 128,  96, 640, 480,
							0,
							"ウィンドウ",
						} ;

/* idMorphSucceedTitleMsg */

static MMIPACKET d002 = {	&idMorphSucceedTitleMsg,
							&idMorphSucceedWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d002d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  80, 104, 383, 119, 8, 6, 8,
							MS_NONEL40,
							"モーフィング計算実行中",
							   1,  12,  12,
							MS_BOLDL40,
							   0,   0
						} ;

/* idMorphSucceedMsg */

static MMIPACKET d003 = {	&idMorphSucceedMsg,
							&idMorphSucceedWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d003d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  84, 128, 379, 143, 8, 6, 8,
							MS_OPAQUEL40,
							"5枚中 2枚目",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d004 = {	NULL,
							&idMorphSucceedWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d004d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  84, 220, 379, 235, 8, 6, 8,
							MS_NONEL40,
							"計算の終わった画像は、",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d005 = {	NULL,
							&idMorphSucceedWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d005d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  84, 236, 379, 251, 8, 6, 8,
							MS_NONEL40,
							"「動画倉庫」ウィンドウに格納されます",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idMorphSucceedStopDBtn */

static MMIPACKET d006 = {	&idMorphSucceedStopDBtn,
							&idMorphSucceedWin,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d006d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 200, 257, 263, 276, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							MorphSucceedStopDBtnFunc,
							0x0000
						} ;

/* NULL */

static MMIPACKET d007 = {	NULL,
							&idMorphSucceedWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d007d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 204, 258, 259, 273, 8, 6, 8,
							MS_NONEL40,
							"中断",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idMorphSetupWin */

static MMIPACKET d008 = {	&idMorphSetupWin,
							NULL,
							&MJ_WINDOWL40,
							OFFSET(WINDOWL40),
							MS_NONE
						} ;
static WINDOWL40	d008d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_HIDEL40,
							   8,  12, 319, 391, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0,
							 108, 176,  64,  48,
							 128,  96, 640, 480,
							MorphSetupBackWinFunc,
							NULL,
						} ;

/* idMorphSetupBetweenNBox */

static MMIPACKET d009 = {	&idMorphSetupBetweenNBox,
							&idMorphSetupWin,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d009d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
							 116,  44, 171,  75, 8, 6, 8,
							MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
							MorphSetupBetweenNBoxFunc,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							   5,   2, 255,   1,   0,
							 263, 264
						} ;

/* idMorphSetupSpecTIcon[0] */

static MMIPACKET d010 = {	&idMorphSetupSpecTIcon[0],
							&idMorphSetupWin,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d010d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 116,  88, 171, 103, 8, 6, 8,
							MS_NONEL40,
							MorphSetupSpecTIconFunc,
							0x0000, 259, 260
						} ;

/* idMorphSetupSpecTIcon[1] */

static MMIPACKET d011 = {	&idMorphSetupSpecTIcon[1],
							&idMorphSetupWin,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d011d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 196,  88, 239, 103, 8, 6, 8,
							MS_NONEL40,
							MorphSetupSpecTIconFunc,
							0x0000, 259, 260
						} ;

/* idMorphSetupSpecTIcon[2] */

static MMIPACKET d012 = {	&idMorphSetupSpecTIcon[2],
							&idMorphSetupWin,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d012d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 116, 104, 171, 119, 8, 6, 8,
							MS_NONEL40,
							MorphSetupSpecTIconFunc,
							0x0000, 259, 260
						} ;

/* idMorphSetupSpecTIcon[3] */

static MMIPACKET d013 = {	&idMorphSetupSpecTIcon[3],
							&idMorphSetupWin,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d013d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 196, 104, 287, 119, 8, 6, 8,
							MS_NONEL40,
							MorphSetupSpecTIconFunc,
							0x0000, 259, 260
						} ;

/* idMorphSetupBackTIcon[0] */

static MMIPACKET d014 = {	&idMorphSetupBackTIcon[0],
							&idMorphSetupWin,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d014d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 116, 148, 171, 163, 8, 6, 8,
							MS_NONEL40,
							MorphSetupBackTIconFunc,
							0x0000, 259, 260
						} ;

/* idMorphSetupBackTIcon[1] */

static MMIPACKET d015 = {	&idMorphSetupBackTIcon[1],
							&idMorphSetupWin,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d015d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 196, 148, 251, 163, 8, 6, 8,
							MS_NONEL40,
							MorphSetupBackTIconFunc,
							0x0000, 259, 260
						} ;

/* NULL */

static MMIPACKET d016 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d016d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  16,  88,  63, 103, 8, 6, 8,
							MS_NONEL40,
							"収束精度",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d017 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d017d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 132,  88, 171, 103, 8, 6, 8,
							MS_NONEL40,
							"ふつう",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d018 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d018d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 212,  88, 243, 103, 8, 6, 8,
							MS_NONEL40,
							"粗い",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d019 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d019d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 132, 104, 171, 119, 8, 6, 8,
							MS_NONEL40,
							"細かい",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d020 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d020d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 212, 104, 283, 119, 8, 6, 8,
							MS_NONEL40,
							"すごく細かい",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idMorphSetupOkDBtn */

static MMIPACKET d021 = {	&idMorphSetupOkDBtn,
							&idMorphSetupWin,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d021d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							  92, 356, 147, 375, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							MorphSetupOkDBtnFunc,
							0x0000
						} ;

/* NULL */

static MMIPACKET d022 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d022d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  96, 356, 143, 375, 8, 6, 8,
							MS_NONEL40,
							"計算開始",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idMorphSetupCancelDBtn */

static MMIPACKET d023 = {	&idMorphSetupCancelDBtn,
							&idMorphSetupWin,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d023d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 184, 356, 239, 375, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							MorphSetupCancelDBtnFunc,
							0x0000
						} ;

/* NULL */

static MMIPACKET d024 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d024d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 188, 356, 235, 375, 8, 6, 8,
							MS_NONEL40,
							"取消",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d025 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d025d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  16,  52, 107,  67, 8, 6, 8,
							MS_NONEL40,
							"作成画像の枚数",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idMorphSetupTitleMsg */

static MMIPACKET d026 = {	&idMorphSetupTitleMsg,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d026d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							   8,  20, 319,  35, 8, 6, 8,
							MS_NONEL40,
							"モーフィング",
							   1,  12,  12,
							MS_BOLDL40,
							   0,   0
						} ;

/* idMorphBetweenMsg */

static MMIPACKET d027 = {	&idMorphBetweenMsg,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d027d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 176,  52, 275,  67, 8, 6, 8,
							MS_OPAQUEL40,
							"（3枚を補間）",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d028 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d028d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  80, 120, 247, 135, 8, 6, 8,
							MS_NONEL40,
							"(細かいほど時間がかかります)",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d029 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d029d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  16, 148,  63, 163, 8, 6, 8,
							MS_NONEL40,
							"背景",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d030 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d030d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 132, 148, 159, 163, 8, 6, 8,
							MS_NONEL40,
							"なし",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d031 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d031d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 212, 148, 243, 163, 8, 6, 8,
							MS_NONEL40,
							"あり",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d032 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d032d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  80, 164, 295, 179, 8, 6, 8,
							MS_NONEL40,
							"(画像の左上端と同色の部分が透けます)",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d033 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d033d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  16, 188,  63, 203, 8, 6, 8,
							MS_NONEL40,
							"背景画像",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d034 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d034d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  80, 240, 307, 255, 8, 6, 8,
							MS_NONEL40,
							"(前もって静止画倉庫でマークしておいた",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d035 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d035d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  80, 256, 307, 271, 8, 6, 8,
							MS_NONEL40,
							" 画像が、背景画像となります)",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d036 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d036d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  16, 284, 103, 299, 8, 6, 8,
							MS_NONEL40,
							"変形速度",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idMorphSetupTransTypeTIcon[0] */

static MMIPACKET d037 = {	&idMorphSetupTransTypeTIcon[0],
							&idMorphSetupWin,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d037d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 116, 284, 215, 299, 8, 6, 8,
							MS_NONEL40,
							MorphSetupTransTypeTIconFunc,
							0x0000, 259, 260
						} ;

/* idMorphSetupTransTypeTIcon[1] */

static MMIPACKET d038 = {	&idMorphSetupTransTypeTIcon[1],
							&idMorphSetupWin,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d038d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 116, 300, 199, 315, 8, 6, 8,
							MS_NONEL40,
							MorphSetupTransTypeTIconFunc,
							0x0000, 259, 260
						} ;

/* idMorphSetupTransTypeTIcon[2] */

static MMIPACKET d039 = {	&idMorphSetupTransTypeTIcon[2],
							&idMorphSetupWin,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d039d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 220, 300, 307, 315, 8, 6, 8,
							MS_NONEL40,
							MorphSetupTransTypeTIconFunc,
							0x0000, 259, 260
						} ;

/* idMorphSetupTransTypeTIcon[3] */

static MMIPACKET d040 = {	&idMorphSetupTransTypeTIcon[3],
							&idMorphSetupWin,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d040d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 116, 316, 231, 331, 8, 6, 8,
							MS_NONEL40,
							MorphSetupTransTypeTIconFunc,
							0x0000, 259, 260
						} ;

/* NULL */

static MMIPACKET d041 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d041d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 132, 284, 215, 299, 8, 6, 8,
							MS_NONEL40,
							"同じ速さで変形",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d042 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d042d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 132, 300, 199, 315, 8, 6, 8,
							MS_NONEL40,
							"だんだん速く",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d043 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d043d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 236, 300, 303, 315, 8, 6, 8,
							MS_NONEL40,
							"だんだん遅く",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d044 = {	NULL,
							&idMorphSetupWin,
							&MJ_MSGL40,
							0,
							MS_NONE
						} ;
static MSGL40	d044d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 132, 316, 227, 331, 8, 6, 8,
							MS_NONEL40,
							"遅い→速い→遅い",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

