#define THE_SCREEN_WIDTH 960
#define THE_SCREEN_HEIGHT 600
#define THE_SCREEN_DEPTH 7

#include "suit.h"


/***** DANGER!!! ****/
/* this code is machine generated by SUIT - do NOT edit this file!! */ 

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("explain","text box","ROOT");
MAKE("event tester","event tester class","ROOT");
MAKE("Event Tester Demo Program","label","ROOT");
MAKE("Done","button","ROOT");
SET("button","disabled color","GP_color",1,0,"grey, black");
SET("button","justification","SUIT_enum",1,0,"\"center\" of {\"left\" \"center\" \"right\"}");
SET("button","shrink to fit","boolean",1,0,"yes");
SET("event tester class","label","text",1,0,"");
SET("label","has border","boolean",1,0,"no");
SET("label","justification","SUIT_enum",1,0,"\"center\" of {\"left\" \"center\" \"right\"}");
SET("label","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","screen height","int",0,1,"600");
SET("ROOT","screen width","int",0,1,"960");
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 960 600");
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("explain","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("explain","label","text",0,0,"@bold(About The Events Demo:)

This demonstration shows the different kinds of mouse events that SUIT can generate. The possible events are:

@bold(click) : a quick press and release of the mouse button
@bold(shift-click) : mouse click with shift key held down
@bold(control-click) : mouse click with control key down
@bold(meta-click) : mouse click with meta key down. Under some window managers (e.g. mwm), it may not be possible to trap some of the mouse and keyboard events like shift-click
@bold(mouse motion) : mouse button held down while mouse moves
 @bold(mouse down) : this event is usually turned into mouse motion.
@bold(mouse up) : Generate this event by pressing the mouse button down outside, and dragging the button into the widget
@bold(keystroke) :any press of the keyboard keys");
SET("explain","line spacing","double",0,0,"1.000000");
SET("explain","viewport","viewport",0,0,"12 277 340 537");
SET("event tester","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("event tester","border raised","boolean",0,0,"no");
SET("event tester","label","text",0,0,"Event was a CONTROL - ");
SET("event tester","viewport","viewport",0,0,"339 108 668 188");
SET("Event Tester Demo Program","active display","SUIT_enum",0,0,"\"standard\" of {\"standard\"}");
SET("Event Tester Demo Program","label","text",0,0,"Event Tester Demo Program");
SET("Event Tester Demo Program","viewport","viewport",0,0,"478 542 632 566");
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","label","text",0,0,"Done");
SET("Done","viewport","viewport",0,0,"872 442 909 466");


} /* end of INIT_suiRoutine */

void SUIT_initFromCode(char *programName)

{

SUIT_interiorInitFromCode(programName, INIT_suiRoutine, THE_SCREEN_WIDTH, THE_SCREEN_HEIGHT, THE_SCREEN_DEPTH);

}
