# Automatically generated PSI dialog (PSI version 2.0)
# Fri Jun 30 16:36:50 EDT 1995
#
# Then hand edited so that there are enable buttons setting the affect.val
# bitfield and the switched gadgets are surrounded by a line look.

SF_SIZES 0 0.3 2;

group.gad = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Group") SIZE (1.5, 0)}
    FIELD string VALUE(group.val) STRETCH(1,0);
    group.menu VALUE(group.menuval)
	    SIZE(0.25, 0.25) LOOK(arrowright);
}


negate.gad = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Operation") SIZE(1.5, 0)}
    negate.menu VALUE(negate.menuval)
		LOOKTEXT(select, negate.menuval) STRETCH(1, 0);
}


geotype.gad = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Geometry Type") SIZE(1.5, 0)}
    geotype.menu VALUE(geotype.menuval)
		LOOKTEXT(select, geotype.menuval) STRETCH(1, 0);
}


groupop.gad = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Operation") SIZE(1.5, 0)}
    groupop.menu VALUE(groupop.menuval)
		LOOKTEXT(select, groupop.menuval) STRETCH(1, 0);
}



pattern.gad = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Pattern") SIZE (1.5, 0)}
    FIELD string VALUE(pattern.val) STRETCH(1,0);
}


start.chmenu = SWITCHER
{
    LOOK(plain) VALUE(start.jive)

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(start.jive)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) HELP("Channel Button (click to edit channels, alt-click to delete them)") VALUE(start.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

start.gad =
{
    LAYOUT(horizontal!) STRETCH(1, 0)

    { LOOKTEXT(plain, "Start/End") SIZE (1.5, 0)}
    VECTORFIELD(2) integer VALUE(start.val) STRETCH(1, 0);
    start.chmenu;
}


inc.chmenu = SWITCHER
{
    LOOK(plain) VALUE(inc.jive)

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(inc.jive)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) HELP("Channel Button (click to edit channels, alt-click to delete them)") VALUE(inc.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

inc.gad =
{
    LAYOUT(horizontal!) STRETCH(1, 0)

    { LOOKTEXT(plain, "Every _ of _") SIZE (1.5, 0)}
    VECTORFIELD(2) integer VALUE(inc.val) STRETCH(1, 0);
    inc.chmenu;
}


boundtype.gad = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Bounding Type") SIZE(1.5, 0)}
    boundtype.menu VALUE(boundtype.menuval)
		LOOKTEXT(select, boundtype.menuval) STRETCH(1, 0);
}


size.chmenu = SWITCHER
{
    LOOK(plain) VALUE(size.jive)

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(size.jive)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) HELP("Channel Button (click to edit channels, alt-click to delete them)") VALUE(size.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

size.gad =
{
    LAYOUT(horizontal!) STRETCH(1, 0)

    { LOOKTEXT(plain, "Size") SIZE (1.5, 0)}
    VECTORFIELD(3) float VALUE(size.val) STRETCH(1, 0);
    size.chmenu;
}


t.chmenu = SWITCHER
{
    LOOK(plain) VALUE(t.jive)

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(t.jive)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) HELP("Channel Button (click to edit channels, alt-click to delete them)") VALUE(t.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

t.gad =
{
    LAYOUT(horizontal!) STRETCH(1, 0)

    { LOOKTEXT(plain, "Center") SIZE (1.5, 0)}
    VECTORFIELD(3) float VALUE(t.val) STRETCH(1, 0);
    t.chmenu;
}


dir.chmenu = SWITCHER
{
    LOOK(plain) VALUE(dir.jive)

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(dir.jive)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) HELP("Channel Button (click to edit channels, alt-click to delete them)") VALUE(dir.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

dir.gad =
{
    LAYOUT(horizontal!) STRETCH(1, 0) MARGIN(0, 0.025)

    {
	LAYOUT(vertical!) STRETCH(1, 0)
	{
	    LAYOUT(horizontal) STRETCH(1, 0)
	    { LOOKTEXT(plain, "Direction") SIZE (1.5, 0)}
	    dir.chmenu;
	}
	VECTORFIELD(3) float VALUE(dir.val) STRETCH(1, 0);
    }
    POLAR VALUE(dir.val) LOOK(bevel);
}


angle.chmenu = SWITCHER
{
    LOOK(plain) VALUE(angle.jive)

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(angle.jive)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) HELP("Channel Button (click to edit channels, alt-click to delete them)") VALUE(angle.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

angle.xcf = XCF floatarray VALUE(angle.val) FULLOVERLAY;

angle.gad =
{
    LAYOUT(horizontal!) STRETCH(1, 0)
    { LOOKTEXT(plain, "Spread Angle") SIZE (1.5, 0)}

    XCFPARENT angle.xcf center
    {
	LAYOUT(horizontal) STRETCH(1, 0) MARGIN(0, 0.1) LOOK(BANDH)
	VALUE(angle.val)
	{
	    LAYOUT(horizontal!) STRETCH(1,0)
	    FIELD float VALUE(angle.val) STRETCH(1, 0);
	    ANGLEJACK VALUE(angle.val);
	}
    }
    angle.chmenu;
}



affect.gad = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Affector") SIZE (1.5, 0)}
    SLIDERFIELD integer 0 10 VALUE(affect.val) STRETCH(1,0);
}


buttons =
{
    LAYOUT(vertical) MARGIN(0.05, 0)

    #switcher controller
    BUTTONSTRIP radio
    {
	LAYOUT(horizontal)  STRETCH(1, 0) MARGIN(0, 0.04) LOOK(plain)
	VALUE(stdswitcher.gad.val)

	BUTTON push LOOKTEXT(radio, "Number")	SIZE(3.82/3, 0);
	BUTTON push LOOKTEXT(radio, "Bounding")	SIZE(3.82/3, 0);
	BUTTON push LOOKTEXT(radio, "Normal")	SIZE(3.82/3, 0);
    }

    #page enable buttons
    BUTTONSTRIP bitmap
    {
        LAYOUT(horizontal) STRETCH(1, 0) MARGIN(0, 0.04) LOOK(plain)
	VALUE(affect.val) 

        BUTTON toggle LOOKTEXT(check, "Enable") SIZE(3.82/3, 0);
        BUTTON toggle LOOKTEXT(check, "Enable") SIZE(3.82/3, 0);
        BUTTON toggle LOOKTEXT(check, "Enable") SIZE(3.82/3, 0);
    }
}

stdswitcher.gad = 
{
    LAYOUT(vertical) STRETCH(1, 0) MARGIN(0, 0) LOOK(line)

    buttons;

    SWITCHER
    {
	LOOK(line) STRETCH(1, 0) LAYOUT(overlap!) MARGIN(0.05, 0)
	VALUE(stdswitcher.gad.val)
	{
	    LAYOUT(vertical) MARGIN(0, 0.025) STRETCH(1, 0)

	    groupop.gad;
	    pattern.gad;
	    start.gad;
	    inc.gad;
	}

	{
	    LAYOUT(vertical) MARGIN(0, 0.025) STRETCH(1, 0)

	    boundtype.gad;
	    size.gad;
	    t.gad;
	}

	{
	    LAYOUT(vertical) MARGIN(0, 0.025) STRETCH(1, 0)

	    dir.gad;
	    angle.gad;
	}

    }
}

dialog_norm.gad = 
{
    LAYOUT(vertical!) MARGIN(0, 0.025) STRETCH(0, 0) LOOK(plain)
    { LOOK(underline) SIZE(4, 0.01) STRETCH(0, 0) }

    group.gad;
    negate.gad;
    geotype.gad;
    stdswitcher.gad;
}



group.gad.expr = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Group") SIZE (1.5, 0)}
    FIELD string VALUE(group.val.expr) STRETCH(1,0);
    group.menu.expr VALUE(group.menuval.expr)
	    SIZE(0.25, 0.25) LOOK(arrowright);
}


negate.gad.expr =
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Operation") SIZE(1.5, 0)}
    negate.menu.expr VALUE(negate.menuval.expr)
	     LOOKTEXT(select, negate.menuval.expr) STRETCH(1, 0);
}


geotype.gad.expr =
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Geometry Type") SIZE(1.5, 0)}
    geotype.menu.expr VALUE(geotype.menuval.expr)
	     LOOKTEXT(select, geotype.menuval.expr) STRETCH(1, 0);
}


groupop.gad.expr =
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Operation") SIZE(1.5, 0)}
    groupop.menu.expr VALUE(groupop.menuval.expr)
	     LOOKTEXT(select, groupop.menuval.expr) STRETCH(1, 0);
}



pattern.gad.expr = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Pattern") SIZE (1.5, 0)}
    FIELD string VALUE(pattern.val.expr) STRETCH(1,0);
}


start.chmenu.expr = SWITCHER
{
    LOOK(plain) VALUE(start.jive.expr)

    BUTTON push SENDS(0) VALUE(start.jive.expr)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) VALUE(start.jive.expr)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

start.gad.expr =
{
    LAYOUT(vertical!) STRETCH(1, 0)

    {
	LAYOUT(horizontal!) STRETCH(1, 0)

	{ LOOKTEXT(plain, "Start/End") STRETCH(1, 0)}
	start.chmenu.expr;
    }

    VECTORFIELD(2) string VALUE(start.val.expr) STRETCH(1, 0)
	    LAYOUT(horizontal!);
}


inc.chmenu.expr = SWITCHER
{
    LOOK(plain) VALUE(inc.jive.expr)

    BUTTON push SENDS(0) VALUE(inc.jive.expr)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) VALUE(inc.jive.expr)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

inc.gad.expr =
{
    LAYOUT(vertical!) STRETCH(1, 0)

    {
	LAYOUT(horizontal!) STRETCH(1, 0)

	{ LOOKTEXT(plain, "Every _ of _") STRETCH(1, 0)}
	inc.chmenu.expr;
    }

    VECTORFIELD(2) string VALUE(inc.val.expr) STRETCH(1, 0)
	    LAYOUT(horizontal!);
}


boundtype.gad.expr =
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Bounding Type") SIZE(1.5, 0)}
    boundtype.menu.expr VALUE(boundtype.menuval.expr)
	     LOOKTEXT(select, boundtype.menuval.expr) STRETCH(1, 0);
}


size.chmenu.expr = SWITCHER
{
    LOOK(plain) VALUE(size.jive.expr)

    BUTTON push SENDS(0) VALUE(size.jive.expr)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) VALUE(size.jive.expr)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

size.gad.expr =
{
    LAYOUT(vertical!) STRETCH(1, 0)

    {
	LAYOUT(horizontal!) STRETCH(1, 0)

	{ LOOKTEXT(plain, "Size") STRETCH(1, 0)}
	size.chmenu.expr;
    }

    VECTORFIELD(3) string VALUE(size.val.expr) STRETCH(1, 0)
	    LAYOUT(horizontal!);
}


t.chmenu.expr = SWITCHER
{
    LOOK(plain) VALUE(t.jive.expr)

    BUTTON push SENDS(0) VALUE(t.jive.expr)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) VALUE(t.jive.expr)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

t.gad.expr =
{
    LAYOUT(vertical!) STRETCH(1, 0)

    {
	LAYOUT(horizontal!) STRETCH(1, 0)

	{ LOOKTEXT(plain, "Center") STRETCH(1, 0)}
	t.chmenu.expr;
    }

    VECTORFIELD(3) string VALUE(t.val.expr) STRETCH(1, 0)
	    LAYOUT(horizontal!);
}


dir.chmenu.expr = SWITCHER
{
    LOOK(plain) VALUE(dir.jive.expr)

    BUTTON push SENDS(0) VALUE(dir.jive.expr)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) VALUE(dir.jive.expr)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

dir.gad.expr =
{
    LAYOUT(vertical!) STRETCH(1, 0)

    {
	LAYOUT(horizontal!) STRETCH(1, 0)

	{ LOOKTEXT(plain, "Direction") STRETCH(1, 0)}
	dir.chmenu.expr;
    }

    VECTORFIELD(3) string VALUE(dir.val.expr) STRETCH(1, 0)
	    LAYOUT(horizontal!);
}


angle.chmenu.expr = SWITCHER
{
    LOOK(plain) VALUE(angle.jive.expr)

    BUTTON push SENDS(0) VALUE(angle.jive.expr)
	    LOOKICON(PSI_ChannelNone, bevel) SIZE(0.245, 0.245);
    BUTTON push SENDS(1) VALUE(angle.jive.expr)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

angle.gad.expr = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Spread Angle") SIZE (1.5, 0)}
    FIELD string VALUE(angle.val.expr) STRETCH(1,0);
    angle.chmenu.expr;
}



affect.gad.expr = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

    { LOOKTEXT(plain, "Affector") SIZE (1.5, 0)}
    FIELD string VALUE(affect.val.expr) STRETCH(1,0);
}

buttons.expr =
{
    LAYOUT(vertical) MARGIN(0.05, 0)

    #switcher controller
    BUTTONSTRIP radio
    {
	LAYOUT(horizontal)  STRETCH(1, 0) MARGIN(0, 0.04) LOOK(plain)
	VALUE(stdswitcher.gad.expr.val)

	BUTTON push LOOKTEXT(radio, "Number")	SIZE(3.82/3, 0);
	BUTTON push LOOKTEXT(radio, "Bounding")	SIZE(3.82/3, 0);
	BUTTON push LOOKTEXT(radio, "Normal")	SIZE(3.82/3, 0);
    }

    #page enable buttons
    BUTTONSTRIP bitmap
    {
        LAYOUT(horizontal) STRETCH(1, 0) MARGIN(0, 0.04) LOOK(plain)
	VALUE(affect.val) 

        BUTTON toggle LOOKTEXT(check, "Enable") SIZE(3.82/3, 0);
        BUTTON toggle LOOKTEXT(check, "Enable") SIZE(3.82/3, 0);
        BUTTON toggle LOOKTEXT(check, "Enable") SIZE(3.82/3, 0);
    }
}

stdswitcher.gad.expr = 
{
    LAYOUT(vertical) STRETCH(1, 0) MARGIN(0, 0) LOOK(line)
    # width should be 4

    buttons.expr;

    SWITCHER
    {
	LOOK(line) STRETCH(1, 0) LAYOUT(overlap!) MARGIN(0.05, 0)
	VALUE(stdswitcher.gad.expr.val)
	{
	    LAYOUT(vertical) MARGIN(0, 0.025) STRETCH(1, 0)

	    groupop.gad.expr;
	    pattern.gad.expr;
	    start.gad.expr;
	    inc.gad.expr;
	}

	{
	    LAYOUT(vertical) MARGIN(0, 0.025) STRETCH(1, 0)

	    boundtype.gad.expr;
	    size.gad.expr;
	    t.gad.expr;
	}

	{
	    LAYOUT(vertical) MARGIN(0, 0.025) STRETCH(1, 0)

	    dir.gad.expr;
	    angle.gad.expr;
	}

    }
}

dialog_expr.gad = 
{
    LAYOUT(vertical!) MARGIN(0, 0.025) STRETCH(0, 0) LOOK(plain)
    { LOOK(underline) SIZE(4, 0.01) STRETCH(0, 0) }

    group.gad.expr;
    negate.gad.expr;
    geotype.gad.expr;
    stdswitcher.gad.expr;
}


switcher = SWITCHER
{
    VALUE(switcherval) LOOK(plain) LAYOUT(overlap!) STRETCH(0, 0)

    dialog_norm.gad;
    dialog_expr.gad;
}

PSI_KeyLight = SWITCHER
{
    VALUE(PSI_KeyStatus) SIZE(0.18, 0.18)

    BUTTON push HELP("The parameter list has no channels")
		LOOKICON(red_off,	none);
    BUTTON push HELP("All channels are at a keyframe")
		LOOKICON(green_on,	none);
    BUTTON push HELP("Some channels are at a keyframe and some are not")
		LOOKICON(yellow_green,	none);
    BUTTON push HELP("None of the channels are at a keyframe")
		LOOKICON(yellow_on,none);
    BUTTON push HELP("Some channels have been edited off keyframes")
		LOOKICON(red_on,	none);
}

PSI_KeyControls =
{
    LAYOUT(horizontal%) LOOK(line) MARGIN(0.05, 0.05)

    BUTTON push HELP("Previous keyframe") LOOKICON(StepBackward, bevel)
	VALUE(PSI_PrevKey) SIZE(0.18, 0.18);

    PSI_KeyLight;

    BUTTON push HELP("Next keyframe") LOOKICON(StepForeward, bevel)
	VALUE(PSI_NextKey) SIZE(0.18, 0.18);

    BUTTON push HELP("Add keyframes to all channels that have edited off a keyframe") LOOKTEXT(push, "Key") VALUE(PSI_HardenKey) SIZE(0, 0.18) DISABLED;
}

preset.menu = BUTTONSTRIP normal
{
    VALUE(PSI_PRESET) LAYOUT(vertical!) MARGIN(0.01, 0.0) FULLOVERLAY

    BUTTON push LOOKTEXT(pushdown, "Load ...");
    BUTTON push LOOKTEXT(pushdown, "Save as ...");
    { LOOK(line) SIZE(0, 0.02) DISABLED }
    BUTTON push LOOKTEXT(pushdown, "Defaults");
}

dialog = OPENNOTIFIER
{
    LAYOUT(vertical>) MARGIN(0, 0.05) LOOK(plain) VALUE(open.val)
    
    {
	LAYOUT(horizontal%) MARGIN(0, 0.05) STRETCH(1, 0) LOOK(plain)

	BUTTON toggle LOOKTEXT(check, "Expressions") VALUE(switcherval);
	{ LAYOUT(horizontal) STRETCH(1, 0) }
	PSI_KeyControls;
	MENUBUTTON preset.menu LOOKTEXT(popdown, "Presets") VALUE(PSI_PRESET);
	BUTTON push HELP("Undo last change to parameters") LOOKTEXT(push, "Undo") VALUE(PSI_UNDO);
    }

    switcher;
}
SF_SIZES;
