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


SF_SIZES 0 0.3 2;
cycle.gad = 
{
    LAYOUT(horizontal) STRETCH(1, 0)

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


pairs.gad = BUTTON toggle LOOKTEXT(check, "Sweep Along Pairs of Rails")
		VALUE(pairs.val) STRETCH(1, 0);


firstl.gad = BUTTON toggle LOOKTEXT(check, "Sweep Along First and Last Rail")
		VALUE(firstl.val) STRETCH(1, 0);


strech.gad = BUTTON toggle LOOKTEXT(check, "Stretch to Rails")
		VALUE(strech.val) STRETCH(1, 0);


usevtx.gad = BUTTON toggle LOOKTEXT(check, "Use Vertex")
		VALUE(usevtx.val) STRETCH(1, 0);


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

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

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

    { LOOKTEXT(plain, "Connection Points") SIZE (1.5, 0)}
    VECTORFIELD(2) integer VALUE(pt.val) STRETCH(1, 0);
    pt.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)}
    SLIDERFIELD float -5 5 VALUE(s.val) STRETCH(1,0);
    s.chmenu;
}


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

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

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

    { LOOKTEXT(plain, "Roll") SIZE (1.5, 0)}
    SLIDERFIELD float -180 180 VALUE(roll.val) STRETCH(1,0);
    roll.chmenu;
}


noflip.gad = BUTTON toggle LOOKTEXT(check, "Fix Flipping")
		VALUE(noflip.val) STRETCH(1, 0);


usedir.gad = BUTTON toggle LOOKTEXT(check, "Use Direction")
		VALUE(usedir.val) STRETCH(1, 0);


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


newg.gad = BUTTON toggle LOOKTEXT(check, "Create Groups")
		VALUE(newg.val) STRETCH(1, 0);



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

    { LOOKTEXT(plain, "Rail Groups") SIZE (1.5, 0)}
    FIELD string VALUE(railgrp.val) STRETCH(1,0);
}


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

    cycle.gad;
    pairs.gad;
    firstl.gad;
    strech.gad;
    usevtx.gad;
    pt.gad;
    s.gad;
    roll.gad;
    noflip.gad;
    usedir.gad;
    dir.gad;
    newg.gad;
    railgrp.gad;
}


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

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


pairs.gad.expr = BUTTON toggle LOOKTEXT(check, "Sweep Along Pairs of Rails")
		     VALUE(pairs.val.expr) STRETCH(1, 0);


firstl.gad.expr = BUTTON toggle LOOKTEXT(check, "Sweep Along First and Last Rail")
		     VALUE(firstl.val.expr) STRETCH(1, 0);


strech.gad.expr = BUTTON toggle LOOKTEXT(check, "Stretch to Rails")
		     VALUE(strech.val.expr) STRETCH(1, 0);


usevtx.gad.expr = BUTTON toggle LOOKTEXT(check, "Use Vertex")
		     VALUE(usevtx.val.expr) STRETCH(1, 0);


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

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

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

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

	{ LOOKTEXT(plain, "Connection Points") STRETCH(1, 0)}
	pt.chmenu.expr;
    }

    VECTORFIELD(2) string VALUE(pt.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(horizontal) STRETCH(1, 0)

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


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

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

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

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


noflip.gad.expr = BUTTON toggle LOOKTEXT(check, "Fix Flipping")
		     VALUE(noflip.val.expr) STRETCH(1, 0);


usedir.gad.expr = BUTTON toggle LOOKTEXT(check, "Use Direction")
		     VALUE(usedir.val.expr) STRETCH(1, 0);


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


newg.gad.expr = BUTTON toggle LOOKTEXT(check, "Create Groups")
		     VALUE(newg.val.expr) STRETCH(1, 0);



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

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


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

    cycle.gad.expr;
    pairs.gad.expr;
    firstl.gad.expr;
    strech.gad.expr;
    usevtx.gad.expr;
    pt.gad.expr;
    s.gad.expr;
    roll.gad.expr;
    noflip.gad.expr;
    usedir.gad.expr;
    dir.gad.expr;
    newg.gad.expr;
    railgrp.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;
