# Automatically generated PSI dialog (PSI version 2.0)
# Fri Jun 30 16:38:04 EDT 1995
#
# Then hand edited to get rid of the color editors for the diffuse
# parameter.


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);
}


doxform.gad = BUTTON toggle LOOKTEXT(check, "Do Transformation")
		VALUE(doxform.val) STRETCH(1, 0);


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

    { LOOKTEXT(plain, "Transform order") SIZE(1.5, 0)}
    xOrd.menu VALUE(xOrd.menuval)
		LOOKTEXT(select, xOrd.menuval) STRETCH(1, 0);
}


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

    { LOOKTEXT(plain, "Rotate order") SIZE(1.5, 0)}
    rOrd.menu VALUE(rOrd.menuval)
		LOOKTEXT(select, rOrd.menuval) STRETCH(1, 0);
}


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, "Translate") SIZE (1.5, 0)}
    VECTORFIELD(3) float VALUE(t.val) STRETCH(1, 0);
    t.chmenu;
}


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

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(r.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(r.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

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

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


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

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(s.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(s.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

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

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


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

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(p.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(p.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

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

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


doclr.gad = BUTTON toggle LOOKTEXT(check, "Primitive Colors")
		VALUE(doclr.val) STRETCH(1, 0);


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

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(diff.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(diff.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

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

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

doalpha.gad = BUTTON toggle LOOKTEXT(check, "Primitive Alpha")
		VALUE(doalpha.val) STRETCH(1, 0);


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

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(alpha.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(alpha.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

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

    { LOOKTEXT(plain, "Alpha") SIZE (1.5, 0)}
    SLIDERFIELD float 0 1 VALUE(alpha.val) STRETCH(1,0);
    alpha.chmenu;
}


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

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


reverse.gad = BUTTON toggle LOOKTEXT(check, "Reverse")
		VALUE(reverse.val) STRETCH(1, 0);


doweight.gad = BUTTON toggle LOOKTEXT(check, "Meta-surface Weight")
		VALUE(doweight.val) STRETCH(1, 0);


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

    BUTTON push SENDS(4) HELP("Channel Button (click to add channels)") VALUE(weight.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(weight.jive)
	    LOOKICON(PSI_Channel, bevel) SIZE(0.245, 0.245);
}

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

    { LOOKTEXT(plain, "Weight") SIZE (1.5, 0)}
    SLIDERFIELD float 0 1 VALUE(weight.val) STRETCH(1,0);
    weight.chmenu;
}


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

    { LOOK(none) SIZE(0, 0.05) }	# Spacer

    BUTTONSTRIP radio
    {
	LAYOUT(horizontal!) MARGIN(0, 0.05) LOOK(whiteunderline) STRETCH(1, 0)
	VALUE(stdswitcher.gad.val)

	BUTTON push LAYOUT(horizontal!) LOOKTEXT(folder, "Transform") STRETCH(1, 0);
	BUTTON push LAYOUT(horizontal!) LOOKTEXT(folder, "Attributes") STRETCH(1, 0);
    }
    {
	LAYOUT(vertical) LOOK(tabdialog) STRETCH(1, 0) MARGIN(0.05, 0)

	{ SIZE(0, 0.05) }

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

		doxform.gad;
		xOrd.gad;
		rOrd.gad;
		t.gad;
		r.gad;
		s.gad;
		p.gad;
	    }

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

		doclr.gad;
		diff.gad;
		doalpha.gad;
		alpha.gad;
		closure.gad;
		reverse.gad;
		doweight.gad;
		weight.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;
    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);
}


doxform.gad.expr = BUTTON toggle LOOKTEXT(check, "Do Transformation")
		     VALUE(doxform.val.expr) STRETCH(1, 0);


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

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


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

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


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, "Translate") STRETCH(1, 0)}
	t.chmenu.expr;
    }

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


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

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

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

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

	{ LOOKTEXT(plain, "Rotation") STRETCH(1, 0)}
	r.chmenu.expr;
    }

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


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

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

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

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

	{ LOOKTEXT(plain, "Scale") STRETCH(1, 0)}
	s.chmenu.expr;
    }

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


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

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

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

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

	{ LOOKTEXT(plain, "Pivot") STRETCH(1, 0)}
	p.chmenu.expr;
    }

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


doclr.gad.expr = BUTTON toggle LOOKTEXT(check, "Primitive Colors")
		     VALUE(doclr.val.expr) STRETCH(1, 0);


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

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

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

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

	{ LOOKTEXT(plain, "Diffuse Color") STRETCH(1, 0)}
	diff.chmenu.expr;
    }

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


doalpha.gad.expr = BUTTON toggle LOOKTEXT(check, "Primitive Alpha")
		     VALUE(doalpha.val.expr) STRETCH(1, 0);


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

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

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

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


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

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


reverse.gad.expr = BUTTON toggle LOOKTEXT(check, "Reverse")
		     VALUE(reverse.val.expr) STRETCH(1, 0);


doweight.gad.expr = BUTTON toggle LOOKTEXT(check, "Meta-surface Weight")
		     VALUE(doweight.val.expr) STRETCH(1, 0);


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

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

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

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


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

    { LOOK(none) SIZE(0, 0.05) }	# Spacer

    BUTTONSTRIP radio
    {
	LAYOUT(horizontal!) MARGIN(0, 0.05) LOOK(whiteunderline) STRETCH(1, 0)
	VALUE(stdswitcher.gad.expr.val)

	BUTTON push LAYOUT(horizontal!) LOOKTEXT(folder, "Transform") STRETCH(1, 0);
	BUTTON push LAYOUT(horizontal!) LOOKTEXT(folder, "Attributes") STRETCH(1, 0);
    }
    {
	LAYOUT(vertical) LOOK(tabdialog) STRETCH(1, 0) MARGIN(0.05, 0)

	{ SIZE(0, 0.05) }

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

		doxform.gad.expr;
		xOrd.gad.expr;
		rOrd.gad.expr;
		t.gad.expr;
		r.gad.expr;
		s.gad.expr;
		p.gad.expr;
	    }

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

		doclr.gad.expr;
		diff.gad.expr;
		doalpha.gad.expr;
		alpha.gad.expr;
		closure.gad.expr;
		reverse.gad.expr;
		doweight.gad.expr;
		weight.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;
    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;
