#define THE_SCREEN_WIDTH 640
#define THE_SCREEN_HEIGHT 480
#define THE_SCREEN_DEPTH 7

#include "suit.h"


/*--------------------------------------------------------------------------------*/
/*                                                                                */
/*                                  NOTE:                                         */
/*                                                                                */
/*    This file contains all the permanent properties of this application's       */
/*    objects and is read in as a data file.  Compiling this file as part of      */
/*    your application "hard codes" your interface.  Please see "shipping"        */
/*    in the SUIT reference manual for further information.                       */
/*                                                                                */
/*                                                                                */
/*                              !! DANGER !!                                      */
/*                                                                                */
/*      This file is machine-generated, and its contents are very important.      */
/*                                                                                */
/*          If you must edit this file, do so with extreme caution!               */
/*                                                                                */
/*                              !! DANGER !!                                      */
/*                                                                                */
/*--------------------------------------------------------------------------------*/


extern void SUIT_interiorInitFromCode (char *programName, SUIT_functionPointer suiRoutine,
									   int width, int height, int depth);

extern SUIT_type *si_getType(char *typeName);

extern void si_addChildToObject(SUIT_object, SUIT_object, boolean);

static void MAKE (char *name, char *class, char *parent) 
{ 
	SUIT_object o = SUIT_name(name); 
	SUIT_object p = SUIT_name(parent); 
	if (p != NULL) {
		if (o == NULL) 
			o = SUIT_createObjectByClass(name, class); 
		si_addChildToObject(SUIT_name(parent), o, FALSE); 
	}
} 
 


static void SET (char *objOrClass, char *propertyName, char *propertyType, boolean atClass,
				 boolean locked, char *stringValue) 
{ 
	SUIT_type   *type; 
	boolean errorStatus; 
	Pointer retval; 
	SUIT_level level = OBJECT; 
	SUIT_object o; 
	 
	if (atClass) 
		level = CLASS; 
	if (level == CLASS) 
		o = SUIT_dummyObjectInClass(objOrClass); 
	else 
		o = SUIT_name(objOrClass); 
	type = si_getType(propertyType); 
	retval = type->convertFromAscii(stringValue, &errorStatus); 
	if (errorStatus == FALSE) 
	SUIT_setProperty(o, propertyName, propertyType, retval, level); 

	if (locked) 
		SUIT_lockProperty(o, propertyName, level); 
}


static void INIT_suiRoutine(void)
{
/* this line is for parsing simplicity @ */
MAKE("my drawing area's \"foreground color\"","color chips","ROOT");
MAKE("string diagonal angle","type in box","ROOT");
MAKE("String diagonal","button","ROOT");
MAKE("Done","button","ROOT");
MAKE("Abort","button","ROOT");
MAKE("Reset","button","ROOT");
MAKE("animate X","on/off switch","ROOT");
MAKE("z rotation","type in box","ROOT");
MAKE("x rotation","type in box","ROOT");
MAKE("y rotation","type in box","ROOT");
MAKE("string to type","type in box","ROOT");
MAKE("X rotate","button","ROOT");
MAKE("Y rotate","button","ROOT");
MAKE("Z rotate","button","ROOT");
MAKE("my drawing area","drawing area","ROOT");
SET("arrow button","border raised","boolean",1,0,"no");
SET("arrow button","direction","SUIT_enum",1,0,"\"up\" of {\"up\" \"down\" \"left\" \"right\"}");
SET("arrow button","draw filled","boolean",1,0,"no");
SET("arrow button","has background","boolean",1,0,"no");
SET("arrow button","intermediate feedback","boolean",1,0,"no");
SET("arrow button","shadow thickness","int",1,0,"3");
SET("billboard","border raised","boolean",1,0,"no");
SET("borderless bulletin board","has border","boolean",1,0,"no");
SET("bounded value","arrowhead angle","int",1,0,"10");
SET("bounded value","arrowhead length","double",1,0,"0.200000");
SET("bounded value","button background color","GP_color",1,0,"black, black");
SET("bounded value","button foreground color","GP_color",1,0,"grey, white");
SET("bounded value","current value","double",1,0,"0.000000");
SET("bounded value","granularity","double",1,0,"0.000000");
SET("bounded value","has arrow","boolean",1,0,"yes");
SET("bounded value","has tick marks","boolean",1,0,"yes");
SET("bounded value","increase clockwise","boolean",1,0,"yes");
SET("bounded value","minimum value","double",1,0,"0.000000");
SET("bounded value","needle color","GP_color",1,0,"black, black");
SET("bounded value","start angle","double",1,0,"0.000000");
SET("button","disabled color","GP_color",1,0,"grey, black");
SET("button","justification","SUIT_enum",1,0,"\"center\" of {\"left\" \"center\" \"right\"}");
SET("button","rounding factor","double",1,0,"0.500000");
SET("button","shrink to fit","boolean",1,0,"yes");
SET("color chips","chip border","double",1,0,"0.080000");
SET("color chips","has background","boolean",1,0,"no");
SET("color chips","highlight color","GP_color",1,0,"black, black");
SET("dialog box","border type","SUIT_enum",1,0,"\"fancy motif\" of {\"simple\" \"motif\" \"fancy motif\"}");
SET("dialog box","border width","int",1,0,"8");
SET("dialog box","cache using canvas","boolean",1,0,"yes");
SET("drawing area","base window","window",1,0,"0.000000 217.000000 742.000000 637.000000");
SET("drawing area","do fake 3D","boolean",1,0,"no");
SET("drawing area","show axis lines","boolean",1,0,"yes");
SET("drawing area","show rectangle","boolean",1,0,"no");
SET("drawing area","time to wait","int",1,0,"0");
SET("elevator","border raised","boolean",1,0,"no");
SET("elevator","has background","boolean",1,0,"no");
SET("elevator","sliding","boolean",1,0,"no");
SET("label","has border","boolean",1,0,"no");
SET("label","justification","SUIT_enum",1,0,"\"center\" of {\"left\" \"center\" \"right\"}");
SET("label","rounding factor","double",1,0,"0.500000");
SET("label","shrink to fit","boolean",1,0,"yes");
SET("on/off switch","disabled color","GP_color",1,0,"grey, black");
SET("on/off switch","shrink to fit","boolean",1,0,"yes");
SET("place mat","border raised","boolean",1,0,"no");
SET("property list","border raised","boolean",1,0,"no");
SET("property list","lock color","GP_color",1,0,"black, black");
SET("property list","text spacing","double",1,0,"1.500000");
SET("radio buttons","current value","SUIT_enum",1,0,"\"default value\" of {\"default value\"}");
SET("scrollable property list","has background","boolean",1,0,"no");
SET("scrollable property list","has border","boolean",1,0,"no");
SET("scrollable property list","lock color","GP_color",1,0,"black, white");
SET("type in box","any keystroke triggers","boolean",1,0,"no");
SET("type in box","append to buffer","boolean",1,0,"no");
SET("type in box","backward char key","text",1,0,"C-b");
SET("type in box","backward-char key","text",1,0,"C b");
SET("type in box","beginning of line key","text",1,0,"C-a");
SET("type in box","beginning of text key","text",1,0,"M-<");
SET("type in box","beginning-of-line key","text",1,0,"C a");
SET("type in box","beginning-of-text key","text",1,0,"M <");
SET("type in box","border raised","boolean",1,0,"no");
SET("type in box","calculate block","boolean",1,0,"no");
SET("type in box","calculate lines","boolean",1,0,"no");
SET("type in box","cursor color","GP_color",1,0,"black, black");
SET("type in box","cursor index","int",1,0,"0");
SET("type in box","cursor style","SUIT_enum",1,0,"\"vertical bar\" of {\"i-beam\" \"vertical bar\"}");
SET("type in box","cursor x","int",1,0,"0");
SET("type in box","cursor y","int",1,0,"0");
SET("type in box","delete char key","text",1,0,"C-d");
SET("type in box","delete entire line key","text",1,0,"C-u");
SET("type in box","delete-char key","text",1,0,"C d");
SET("type in box","delete-entire-line key","text",1,0,"C u");
SET("type in box","done editing key","text",1,0,"C-x");
SET("type in box","done-editing key","text",1,0,"C x");
SET("type in box","end of line key","text",1,0,"C-e");
SET("type in box","end of text key","text",1,0,"M->");
SET("type in box","end-of-line key","text",1,0,"C e");
SET("type in box","end-of-text key","text",1,0,"M >");
SET("type in box","forward char key","text",1,0,"C-f");
SET("type in box","forward-char key","text",1,0,"C f");
SET("type in box","highlight block","boolean",1,0,"no");
SET("type in box","input sequence","text",1,0,"");
SET("type in box","kill line key","text",1,0,"C-k");
SET("type in box","kill-line key","text",1,0,"C k");
SET("type in box","last click time","double",1,0,"0.000000");
SET("type in box","last mark index","int",1,0,"0");
SET("type in box","mark end index","int",1,0,"0");
SET("type in box","mark index","int",1,0,"0");
SET("type in box","next line key","text",1,0,"C-n");
SET("type in box","next-line key","text",1,0,"C n");
SET("type in box","open line key","text",1,0,"C-o");
SET("type in box","open-line key","text",1,0,"C o");
SET("type in box","previous line key","text",1,0,"C-p");
SET("type in box","previous-line key","text",1,0,"C p");
SET("type in box","repaint key","text",1,0,"C l");
SET("type in box","scroll down key","text",1,0,"M-v");
SET("type in box","scroll up key","text",1,0,"C-v");
SET("type in box","scroll-down key","text",1,0,"M v");
SET("type in box","scroll-up key","text",1,0,"C v");
SET("type in box","set mark key","text",1,0,"C-`");
SET("type in box","set-mark key","text",1,0,"C q");
SET("type in box","shrink to fit","boolean",1,0,"yes");
SET("type in box","spacing gap","int",1,0,"3");
SET("type in box","start x","int",1,0,"0");
SET("type in box","start y","double",1,0,"0.000000");
SET("type in box","tab length","int",1,0,"5");
SET("type in box","time between clicks for double click","double",1,0,"400000.000000");
SET("type in box","wipe block key","text",1,0,"C-w");
SET("type in box","wipe-block key","text",1,0,"C w");
SET("type in box","yank key","text",1,0,"C y");
SET("ROOT","animated","boolean",0,0,"no");
SET("ROOT","background color","GP_color",0,0,"grey, white");
SET("ROOT","border color","GP_color",0,0,"grey, black");
SET("ROOT","border raised","boolean",0,0,"yes");
SET("ROOT","border type","SUIT_enum",0,0,"\"motif\" of {\"simple\" \"motif\" \"fancy motif\"}");
SET("ROOT","border width","int",0,0,"4");
SET("ROOT","clip to viewport","boolean",0,0,"yes");
SET("ROOT","composite","boolean",0,0,"yes");
SET("ROOT","current hit","int",0,0,"0");
SET("ROOT","default object height","int",0,0,"80");
SET("ROOT","default object width","int",0,0,"80");
SET("ROOT","draw border on inside","boolean",0,0,"no");
SET("ROOT","font","GP_font",0,0,"helvetica,type specific: styles: style bold,18.000000");
SET("ROOT","foreground color","GP_color",0,0,"black, black");
SET("ROOT","handle gravity","int",0,0,"2");
SET("ROOT","handle width","int",0,0,"8");
SET("ROOT","has background","boolean",0,0,"yes");
SET("ROOT","has border","boolean",0,0,"yes");
SET("ROOT","margin","int",0,0,"5");
SET("ROOT","open border color","GP_color",0,0,"red, black");
SET("ROOT","screen depth","int",0,1,"7");
SET("ROOT","show temporary properties","boolean",0,0,"no");
SET("ROOT","shrink to fit","boolean",0,0,"no");
SET("ROOT","springiness","SUIT_springiness",0,0,"44");
SET("ROOT","SUIT enabled","boolean",0,1,"yes");
SET("ROOT","SUIT system font","GP_font",0,0,"helvetica,,14.000000");
SET("ROOT","update sui file on exit","boolean",0,0,"yes");
SET("ROOT","viewport","viewport",0,1,"0 0 751 599");
SET("ROOT","visible","boolean",0,0,"yes");
SET("ROOT","wallpaper","text",0,0,"");
SET("ROOT","window","window",0,1,"0.000000 0.000000 1.000000 1.000000");
SET("my drawing area's \"foreground color\"","active display","SUIT_enum",0,0,"\"parquet\" of {\"standard\" \"parquet\"}");
SET("my drawing area's \"foreground color\"","callback function","SUIT_functionPointer",0,0,"ChainedPropertyCallback");
SET("my drawing area's \"foreground color\"","chained from property type","text",0,0,"GP_color");
SET("my drawing area's \"foreground color\"","chained to object","text",0,0,"my drawing area");
SET("my drawing area's \"foreground color\"","chained to property","text",0,0,"foreground color");
SET("my drawing area's \"foreground color\"","chained to property type","text",0,0,"GP_color");
SET("my drawing area's \"foreground color\"","current value","GP_color",0,0,"green, white");
SET("my drawing area's \"foreground color\"","previous value","GP_color",0,0,"white, white");
SET("my drawing area's \"foreground color\"","valid colors","int",0,0,"19");
SET("my drawing area's \"foreground color\"","viewport","viewport",0,0,"491 13 654 199");
SET("string diagonal angle","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("string diagonal angle","altered","boolean",0,0,"yes");
SET("string diagonal angle","append to buffer","boolean",0,0,"no");
SET("string diagonal angle","calculate block","boolean",0,0,"yes");
SET("string diagonal angle","calculate lines","boolean",0,0,"no");
SET("string diagonal angle","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("string diagonal angle","current value","text",0,0,"12");
SET("string diagonal angle","cursor index","int",0,0,"2");
SET("string diagonal angle","cursor x","int",0,0,"25");
SET("string diagonal angle","cursor y","int",0,0,"10");
SET("string diagonal angle","cut buffer","text",0,0,"2");
SET("string diagonal angle","highlight block","boolean",0,0,"yes");
SET("string diagonal angle","input sequence","text",0,0,"");
SET("string diagonal angle","last mark index","int",0,0,"1");
SET("string diagonal angle","mark end index","int",0,0,"2");
SET("string diagonal angle","mark index","int",0,0,"1");
SET("string diagonal angle","number of lines","int",0,0,"1");
SET("string diagonal angle","paint block only","boolean",0,0,"yes");
SET("string diagonal angle","read only","boolean",0,0,"no");
SET("string diagonal angle","start x","int",0,0,"5");
SET("string diagonal angle","start y","double",0,0,"26.000000");
SET("string diagonal angle","viewport","viewport",0,0,"290 68 370 99");
SET("String diagonal","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("String diagonal","border raised","boolean",0,0,"yes");
SET("String diagonal","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("String diagonal","disabled","boolean",0,0,"no");
SET("String diagonal","label","text",0,0,"String diagonal");
SET("String diagonal","viewport","viewport",0,0,"288 115 433 146");
SET("Done","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("Done","border raised","boolean",0,0,"yes");
SET("Done","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Done","disabled","boolean",0,0,"no");
SET("Done","done callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Done","has background","boolean",0,0,"yes");
SET("Done","label","text",0,0,"Done");
SET("Done","viewport","viewport",0,0,"672 16 730 47");
SET("Abort","abort callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Abort","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("Abort","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Abort","disabled","boolean",0,0,"no");
SET("Abort","label","text",0,0,"Abort");
SET("Abort","viewport","viewport",0,0,"671 62 731 93");
SET("Reset","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("Reset","border raised","boolean",0,0,"yes");
SET("Reset","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Reset","disabled","boolean",0,0,"no");
SET("Reset","label","text",0,0,"Reset");
SET("Reset","viewport","viewport",0,0,"171 168 232 199");
SET("animate X","active display","SUIT_enum",0,0,"\"motif square\" of {\"dot in circle\" \"check box\" \"motif diamond\" \"motif square\"}");
SET("animate X","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("animate X","current value","boolean",0,0,"no");
SET("animate X","disabled","boolean",0,0,"no");
SET("animate X","label","text",0,0,"animate X");
SET("animate X","viewport","viewport",0,0,"15 168 141 199");
SET("z rotation","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("z rotation","altered","boolean",0,0,"yes");
SET("z rotation","append to buffer","boolean",0,0,"no");
SET("z rotation","calculate block","boolean",0,0,"yes");
SET("z rotation","calculate lines","boolean",0,0,"no");
SET("z rotation","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("z rotation","current value","text",0,0,"15");
SET("z rotation","cursor index","int",0,0,"1");
SET("z rotation","cursor x","int",0,0,"15");
SET("z rotation","cursor y","int",0,0,"10");
SET("z rotation","highlight block","boolean",0,0,"no");
SET("z rotation","input sequence","text",0,0,"");
SET("z rotation","last mark index","int",0,0,"0");
SET("z rotation","mark end index","int",0,0,"0");
SET("z rotation","mark index","int",0,0,"0");
SET("z rotation","number of lines","int",0,0,"1");
SET("z rotation","old cursor index","int",0,0,"2");
SET("z rotation","paint block only","boolean",0,0,"yes");
SET("z rotation","read only","boolean",0,0,"no");
SET("z rotation","start x","int",0,0,"5");
SET("z rotation","start y","double",0,0,"32.000000");
SET("z rotation","viewport","viewport",0,0,"108 10 255 41");
SET("x rotation","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("x rotation","altered","boolean",0,0,"yes");
SET("x rotation","append to buffer","boolean",0,0,"no");
SET("x rotation","calculate block","boolean",0,0,"yes");
SET("x rotation","calculate lines","boolean",0,0,"no");
SET("x rotation","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("x rotation","current value","text",0,0,"15");
SET("x rotation","cursor index","int",0,0,"2");
SET("x rotation","cursor x","int",0,0,"25");
SET("x rotation","cursor y","int",0,0,"10");
SET("x rotation","highlight block","boolean",0,0,"no");
SET("x rotation","input sequence","text",0,0,"");
SET("x rotation","last click time","double",0,0,"77469000868.000000");
SET("x rotation","last mark index","int",0,0,"1");
SET("x rotation","mark end index","int",0,0,"1");
SET("x rotation","mark index","int",0,0,"1");
SET("x rotation","number of lines","int",0,0,"1");
SET("x rotation","old cursor index","int",0,0,"2");
SET("x rotation","paint block only","boolean",0,0,"yes");
SET("x rotation","read only","boolean",0,0,"no");
SET("x rotation","start x","int",0,0,"5");
SET("x rotation","start y","double",0,0,"32.000000");
SET("x rotation","viewport","viewport",0,0,"108 114 255 145");
SET("y rotation","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("y rotation","altered","boolean",0,0,"yes");
SET("y rotation","append to buffer","boolean",0,0,"no");
SET("y rotation","calculate block","boolean",0,0,"yes");
SET("y rotation","calculate lines","boolean",0,0,"no");
SET("y rotation","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("y rotation","current value","text",0,0,"10");
SET("y rotation","cursor index","int",0,0,"2");
SET("y rotation","cursor x","int",0,0,"25");
SET("y rotation","cursor y","int",0,0,"10");
SET("y rotation","cut buffer","text",0,0,"3");
SET("y rotation","highlight block","boolean",0,0,"no");
SET("y rotation","input sequence","text",0,0,"");
SET("y rotation","last mark index","int",0,0,"1");
SET("y rotation","mark end index","int",0,0,"1");
SET("y rotation","mark index","int",0,0,"1");
SET("y rotation","number of lines","int",0,0,"1");
SET("y rotation","old cursor index","int",0,0,"2");
SET("y rotation","paint block only","boolean",0,0,"yes");
SET("y rotation","read only","boolean",0,0,"no");
SET("y rotation","start x","int",0,0,"5");
SET("y rotation","start y","double",0,0,"32.000000");
SET("y rotation","viewport","viewport",0,0,"108 62 255 93");
SET("string to type","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("string to type","altered","boolean",0,0,"yes");
SET("string to type","any keystroke triggers","boolean",0,0,"yes");
SET("string to type","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("string to type","current value","text",0,0,"WEE!");
SET("string to type","cut buffer","text",0,0,"FLAT");
SET("string to type","number of lines","int",0,0,"1");
SET("string to type","old cursor index","int",0,0,"4");
SET("string to type","paint block only","boolean",0,0,"yes");
SET("string to type","read only","boolean",0,0,"no");
SET("string to type","viewport","viewport",0,0,"288 165 472 196");
SET("X rotate","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("X rotate","border raised","boolean",0,0,"yes");
SET("X rotate","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("X rotate","disabled","boolean",0,0,"no");
SET("X rotate","has background","boolean",0,0,"yes");
SET("X rotate","label","text",0,0,"X rotate");
SET("X rotate","viewport","viewport",0,0,"6 115 85 146");
SET("Y rotate","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("Y rotate","border raised","boolean",0,0,"yes");
SET("Y rotate","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Y rotate","disabled","boolean",0,0,"no");
SET("Y rotate","has background","boolean",0,0,"yes");
SET("Y rotate","label","text",0,0,"Y rotate");
SET("Y rotate","viewport","viewport",0,0,"6 62 86 93");
SET("Z rotate","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("Z rotate","border raised","boolean",0,0,"yes");
SET("Z rotate","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Z rotate","disabled","boolean",0,0,"no");
SET("Z rotate","has background","boolean",0,0,"yes");
SET("Z rotate","label","text",0,0,"Z rotate");
SET("Z rotate","viewport","viewport",0,0,"7 8 85 39");
SET("my drawing area","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("my drawing area","background color","GP_color",0,0,"black, black");
SET("my drawing area","border raised","boolean",0,0,"no");
SET("my drawing area","data","text",0,0,"WEE!");
SET("my drawing area","foreground color","GP_color",0,1,"green, white");
SET("my drawing area","show axis lines","boolean",0,0,"no");
SET("my drawing area","time to wait","int",0,0,"-1");
SET("my drawing area","viewport","viewport",0,0,"0 216 742 636");
SET("my drawing area","window","window",0,0,"-1448.400000 -1917.000000 9088.000000 4047.000000");


} /* end of INIT_suiRoutine */



void SUIT_initFromCode (char *programName)
{
	SUIT_interiorInitFromCode (programName, INIT_suiRoutine, THE_SCREEN_WIDTH,
							   THE_SCREEN_HEIGHT, THE_SCREEN_DEPTH);
}
