#define THE_SCREEN_WIDTH 960
#define THE_SCREEN_HEIGHT 600
#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 -- do NOT remove it!  @ */
MAKE("Done","button","ROOT");
MAKE("Edit: menu","menu","ROOT");
MAKE("Cut","button","Edit: menu");
MAKE("Paste","button","Edit: menu");
MAKE("File: menu","menu","ROOT");
MAKE("Open","button","File: menu");
MAKE("Save","button","File: menu");
MAKE("Quit","button","File: menu");
MAKE("my menu bar","stacker","ROOT");
MAKE("File","pulldown menu","my menu bar");
MAKE("Edit","pulldown menu","my menu bar");
SET("button","disabled color","GP_color",1,0,"grey, black");
SET("button","hotkey","text",1,0,"");
SET("button","justification","SUIT_enum",1,0,"\"center\" of {\"left\" \"center\" \"right\"}");
SET("button","shrink to fit","boolean",1,0,"yes");
SET("stacker","shrink to fit","boolean",1,0,"yes");
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,"2");
SET("ROOT","clip to viewport","boolean",0,0,"yes");
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,"times,,12.000000");
SET("ROOT","foreground color","GP_color",0,0,"black, black");
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","show temporary properties","boolean",0,0,"no");
SET("ROOT","shrink to fit","boolean",0,0,"no");
SET("ROOT","springiness","SUIT_springiness",0,0,"63");
SET("ROOT","SUIT system font","GP_font",0,0,"helvetica,,14.000000");
SET("ROOT","viewport","viewport",0,1,"0 0 959 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("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,"573 191 610 215");
SET("Edit: menu","active display","SUIT_enum",0,0,"\"vertical\" of {\"vertical\"}");
SET("Edit: menu","stuck down","boolean",0,0,"no");
SET("Edit: menu","viewport","viewport",0,0,"436 369 484 426");
SET("Edit: menu","visible","boolean",0,0,"no");
SET("Cut","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("Cut","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Cut","disabled","boolean",0,0,"no");
SET("Cut","has border","boolean",0,0,"no");
SET("Cut","label","text",0,0,"Cut");
SET("Cut","shrink to fit","boolean",0,0,"no");
SET("Cut","viewport","viewport",0,0,"4 30 44 55");
SET("Paste","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("Paste","border raised","boolean",0,0,"yes");
SET("Paste","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Paste","disabled","boolean",0,0,"no");
SET("Paste","has background","boolean",0,0,"yes");
SET("Paste","has border","boolean",0,0,"no");
SET("Paste","label","text",0,0,"Paste");
SET("Paste","shrink to fit","boolean",0,0,"no");
SET("Paste","viewport","viewport",0,0,"4 2 44 26");
SET("File: menu","active display","SUIT_enum",0,0,"\"vertical\" of {\"vertical\"}");
SET("File: menu","stuck down","boolean",0,0,"no");
SET("File: menu","viewport","viewport",0,0,"401 341 447 426");
SET("File: menu","visible","boolean",0,0,"no");
SET("Open","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("Open","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Open","disabled","boolean",0,0,"no");
SET("Open","has border","boolean",0,0,"no");
SET("Open","label","text",0,0,"Open");
SET("Open","shrink to fit","boolean",0,0,"no");
SET("Open","viewport","viewport",0,0,"4 58 42 83");
SET("Save","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("Save","border raised","boolean",0,0,"yes");
SET("Save","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Save","disabled","boolean",0,0,"no");
SET("Save","has background","boolean",0,0,"yes");
SET("Save","has border","boolean",0,0,"no");
SET("Save","label","text",0,0,"Save");
SET("Save","shrink to fit","boolean",0,0,"no");
SET("Save","viewport","viewport",0,0,"4 30 42 54");
SET("Quit","active display","SUIT_enum",0,0,"\"standard\" of {\"button with hotkey\" \"standard\"}");
SET("Quit","border raised","boolean",0,0,"yes");
SET("Quit","callback function","SUIT_functionPointer",0,0,"function ptr");
SET("Quit","disabled","boolean",0,0,"no");
SET("Quit","has background","boolean",0,0,"yes");
SET("Quit","has border","boolean",0,0,"no");
SET("Quit","label","text",0,0,"Quit");
SET("Quit","shrink to fit","boolean",0,0,"no");
SET("Quit","viewport","viewport",0,0,"4 2 42 26");
SET("my menu bar","active display","SUIT_enum",0,0,"\"horizontal stacking\" of {\"horizontal stacking\" \"vertical stacking\"}");
SET("my menu bar","has border","boolean",0,0,"no");
SET("my menu bar","viewport","viewport",0,0,"399 429 469 457");
SET("File","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("File","has border","boolean",0,0,"yes");
SET("File","label","text",0,0,"File");
SET("File","original height","int",0,0,"25");
SET("File","original width","int",0,0,"31");
SET("File","viewport","viewport",0,0,"2 2 32 26");
SET("Edit","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("Edit","has border","boolean",0,0,"yes");
SET("Edit","label","text",0,0,"Edit");
SET("Edit","original height","int",0,0,"25");
SET("Edit","original width","int",0,0,"32");
SET("Edit","viewport","viewport",0,0,"37 2 68 26");


} /* end of INIT_suiRoutine */



void SUIT_initFromCode (char *programName)
{
    SUIT_interiorInitFromCode (programName, INIT_suiRoutine, THE_SCREEN_WIDTH,
                               THE_SCREEN_HEIGHT, THE_SCREEN_DEPTH);
}
