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


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

    { LOOKTEXT(plain, "Image Input") SIZE (1.5, 0)}
    FIELD string VALUE(file.val) STRETCH(1,0);
    BUTTON push VALUE(file.path) LOOKICON(DialogBox, bevel)
	    SIZE(0.25, 0.25);
}


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

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

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

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


doResample.gad = BUTTON toggle LOOKTEXT(check, "Resample Shapes")
		VALUE(doResample.val) STRETCH(1, 0);


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

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

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

    { LOOKTEXT(plain, "Step Size") SIZE (1.5, 0)}
    SLIDERFIELD float 1 10 VALUE(step.val) STRETCH(1,0);
    step.chmenu;
}


doSmooth.gad = BUTTON toggle LOOKTEXT(check, "Smooth Shapes")
		VALUE(doSmooth.val) STRETCH(1, 0);


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

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

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

    { LOOKTEXT(plain, "Corner Delta") SIZE (1.5, 0)}
    SLIDERFIELD float 1 5 VALUE(corner.val) STRETCH(1,0);
    corner.chmenu;
}


fitCurve.gad = BUTTON toggle LOOKTEXT(check, "Fit to Curves")
		VALUE(fitCurve.val) STRETCH(1, 0);


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

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

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

    { LOOKTEXT(plain, "Fitting Error") SIZE (1.5, 0)}
    SLIDERFIELD float 0.1 100 VALUE(error.val) STRETCH(1,0);
    error.chmenu;
}


convPoly.gad = BUTTON toggle LOOKTEXT(check, "Convert To Poly")
		VALUE(convPoly.val) STRETCH(1, 0);


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

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

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

    { LOOKTEXT(plain, "Level of Detail") SIZE (1.5, 0)}
    SLIDERFIELD float 0.001 5 VALUE(lod.val) STRETCH(1,0);
    lod.chmenu;
}


hole.gad = BUTTON toggle LOOKTEXT(check, "Hole Faces")
		VALUE(hole.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) }

    file.gad;
    thresh.gad;
    doResample.gad;
    step.gad;
    doSmooth.gad;
    corner.gad;
    fitCurve.gad;
    error.gad;
    convPoly.gad;
    lod.gad;
    hole.gad;
}


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

    { LOOKTEXT(plain, "Image Input") SIZE (1.5, 0)}
    FIELD string VALUE(file.val.expr) STRETCH(1,0);
    BUTTON push VALUE(file.path.expr) LOOKICON(DialogBox, bevel)
	    SIZE(0.25, 0.25);
}


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

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

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

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


doResample.gad.expr = BUTTON toggle LOOKTEXT(check, "Resample Shapes")
		     VALUE(doResample.val.expr) STRETCH(1, 0);


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

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

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

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


doSmooth.gad.expr = BUTTON toggle LOOKTEXT(check, "Smooth Shapes")
		     VALUE(doSmooth.val.expr) STRETCH(1, 0);


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

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

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

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


fitCurve.gad.expr = BUTTON toggle LOOKTEXT(check, "Fit to Curves")
		     VALUE(fitCurve.val.expr) STRETCH(1, 0);


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

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

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

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


convPoly.gad.expr = BUTTON toggle LOOKTEXT(check, "Convert To Poly")
		     VALUE(convPoly.val.expr) STRETCH(1, 0);


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

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

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

    { LOOKTEXT(plain, "Level of Detail") SIZE (1.5, 0)}
    FIELD string VALUE(lod.val.expr) STRETCH(1,0);
    lod.chmenu.expr;
}


hole.gad.expr = BUTTON toggle LOOKTEXT(check, "Hole Faces")
		     VALUE(hole.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) }

    file.gad.expr;
    thresh.gad.expr;
    doResample.gad.expr;
    step.gad.expr;
    doSmooth.gad.expr;
    corner.gad.expr;
    fitCurve.gad.expr;
    error.gad.expr;
    convPoly.gad.expr;
    lod.gad.expr;
    hole.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;
