# Automatically generated PSI dialog (PSI version 2.1)
# Thu Apr  4 06:26:02 2013


SF_SIZES 0 0.3 2;
rad.chmenu = SWITCHER
{
    LOOK(plain) VALUE(rad.jive)

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

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

    { LOOKTEXT(plain, "Radius") SIZE (1.5, 0)}
    VECTORFIELD(3) float VALUE(rad.val) STRETCH(1, 0);
    rad.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;
}


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 -5 10 VALUE(weight.val) STRETCH(1,0);
    weight.chmenu;
}


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

    { LOOKTEXT(plain, "Kernel Function") SIZE(1.5, 0)}
    kernel.menu VALUE(kernel.menuval)
		LOOKTEXT(select, kernel.menuval) STRETCH(1, 0);
}


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

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

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

    { LOOKTEXT(plain, "XY Exponent") SIZE (1.5, 0)}
    SLIDERFIELD float 0 5 VALUE(xyexp.val) STRETCH(1,0);
    xyexp.chmenu;
}


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

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

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

    { LOOKTEXT(plain, "Z Exponent") SIZE (1.5, 0)}
    SLIDERFIELD float 0 5 VALUE(zexp.val) STRETCH(1,0);
    zexp.chmenu;
}


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

    rad.gad;
    t.gad;
    weight.gad;
    kernel.gad;
    xyexp.gad;
    zexp.gad;
}


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

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

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

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

	{ LOOKTEXT(plain, "Radius") STRETCH(1, 0)}
	rad.chmenu.expr;
    }

    VECTORFIELD(3) string VALUE(rad.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!);
}


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


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

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


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

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

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

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


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

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

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

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


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

    rad.gad.expr;
    t.gad.expr;
    weight.gad.expr;
    kernel.gad.expr;
    xyexp.gad.expr;
    zexp.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;
