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


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

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


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

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


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

    { LOOKTEXT(plain, "Orientation Plane") SIZE(1.5, 0)}
    orient.menu VALUE(orient.menuval)
		LOOKTEXT(select, orient.menuval) STRETCH(1, 0);
}


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

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

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

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


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

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

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

    { LOOKTEXT(plain, "Rows") SIZE (1.5, 0)}
    SLIDERFIELD integer 1 50 VALUE(rows.val) STRETCH(1,0);
    rows.chmenu;
}


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

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

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

    { LOOKTEXT(plain, "Columns") SIZE (1.5, 0)}
    SLIDERFIELD integer 1 50 VALUE(cols.val) STRETCH(1,0);
    cols.chmenu;
}


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

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

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

    { LOOKTEXT(plain, "U Order") SIZE (1.5, 0)}
    SLIDERFIELD integer 2 10 VALUE(orderu.val) STRETCH(1,0);
    orderu.chmenu;
}


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

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

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

    { LOOKTEXT(plain, "V Order") SIZE (1.5, 0)}
    SLIDERFIELD integer 2 10 VALUE(orderv.val) STRETCH(1,0);
    orderv.chmenu;
}


interpu.gad = BUTTON toggle LOOKTEXT(check, "End-point interpolate in U")
		VALUE(interpu.val) STRETCH(1, 0);


interpv.gad = BUTTON toggle LOOKTEXT(check, "End-point interpolate in V")
		VALUE(interpv.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) }

    type.gad;
    surftype.gad;
    orient.gad;
    size.gad;
    t.gad;
    rows.gad;
    cols.gad;
    orderu.gad;
    orderv.gad;
    interpu.gad;
    interpv.gad;
}


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

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


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

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


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

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


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

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

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

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

	{ LOOKTEXT(plain, "Size") STRETCH(1, 0)}
	size.chmenu.expr;
    }

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


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

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

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

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


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

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

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

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


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

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

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

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


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

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

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

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


interpu.gad.expr = BUTTON toggle LOOKTEXT(check, "End-point interpolate in U")
		     VALUE(interpu.val.expr) STRETCH(1, 0);


interpv.gad.expr = BUTTON toggle LOOKTEXT(check, "End-point interpolate in V")
		     VALUE(interpv.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) }

    type.gad.expr;
    surftype.gad.expr;
    orient.gad.expr;
    size.gad.expr;
    t.gad.expr;
    rows.gad.expr;
    cols.gad.expr;
    orderu.gad.expr;
    orderv.gad.expr;
    interpu.gad.expr;
    interpv.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;
