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


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


prenml.gad = BUTTON toggle LOOKTEXT(check, "Compute Normals")
		VALUE(prenml.val) STRETCH(1, 0);


unique.gad = BUTTON toggle LOOKTEXT(check, "Unique Points")
		VALUE(unique.val) STRETCH(1, 0);


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

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


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

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

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

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


orient.gad = BUTTON toggle LOOKTEXT(check, "Orient Polygons")
		VALUE(orient.val) STRETCH(1, 0);


cusp.gad = BUTTON toggle LOOKTEXT(check, "Cusp Polygons")
		VALUE(cusp.val) STRETCH(1, 0);


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, "Cusp Angle") SIZE (1.5, 0)}

    XCFPARENT angle.xcf xcf
    {
	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;
}


remove.gad = BUTTON toggle LOOKTEXT(check, "Remove Degenerate")
		VALUE(remove.val) STRETCH(1, 0);


postnml.gad = BUTTON toggle LOOKTEXT(check, "Compute Normals")
		VALUE(postnml.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) }

    group.gad;
    prenml.gad;
    unique.gad;
    cons.gad;
    dist.gad;
    orient.gad;
    cusp.gad;
    angle.gad;
    remove.gad;
    postnml.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);
}


prenml.gad.expr = BUTTON toggle LOOKTEXT(check, "Compute Normals")
		     VALUE(prenml.val.expr) STRETCH(1, 0);


unique.gad.expr = BUTTON toggle LOOKTEXT(check, "Unique Points")
		     VALUE(unique.val.expr) STRETCH(1, 0);


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

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


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

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

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

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


orient.gad.expr = BUTTON toggle LOOKTEXT(check, "Orient Polygons")
		     VALUE(orient.val.expr) STRETCH(1, 0);


cusp.gad.expr = BUTTON toggle LOOKTEXT(check, "Cusp Polygons")
		     VALUE(cusp.val.expr) STRETCH(1, 0);


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, "Cusp Angle") SIZE (1.5, 0)}
    FIELD string VALUE(angle.val.expr) STRETCH(1,0);
    angle.chmenu.expr;
}


remove.gad.expr = BUTTON toggle LOOKTEXT(check, "Remove Degenerate")
		     VALUE(remove.val.expr) STRETCH(1, 0);


postnml.gad.expr = BUTTON toggle LOOKTEXT(check, "Compute Normals")
		     VALUE(postnml.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) }

    group.gad.expr;
    prenml.gad.expr;
    unique.gad.expr;
    cons.gad.expr;
    dist.gad.expr;
    orient.gad.expr;
    cusp.gad.expr;
    angle.gad.expr;
    remove.gad.expr;
    postnml.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;
