# Automatically generated PSI dialog (PSI version 2.1)
# Thu Apr  4 06:26:03 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);
}


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

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


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


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(2) float VALUE(rad.val) STRETCH(1, 0);
    rad.chmenu;
}


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

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

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

    { LOOKTEXT(plain, "Height") SIZE (1.5, 0)}
    SLIDERFIELD float 0 10 VALUE(height.val) STRETCH(1,0);
    height.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 2 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 3 50 VALUE(cols.val) STRETCH(1,0);
    cols.chmenu;
}


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

    { LOOKTEXT(plain, "First U Cap") SIZE(1.5, 0)}
    firstu.menu VALUE(firstu.menuval)
		LOOKTEXT(select, firstu.menuval) STRETCH(1, 0);
}


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

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

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

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


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

    { LOOKTEXT(plain, "Last U Cap") SIZE(1.5, 0)}
    lastu.menu VALUE(lastu.menuval)
		LOOKTEXT(select, lastu.menuval) STRETCH(1, 0);
}


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

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

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

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


stdswitcher.gad = 
{
    LAYOUT(vertical) STRETCH(1, 0)

    { LOOK(none) SIZE(0, 0.05) }	# Spacer

    BUTTONSTRIP radio
    {
	LAYOUT(horizontal!) MARGIN(0, 0.05) LOOK(whiteunderline) STRETCH(1, 0)
	VALUE(stdswitcher.gad.val)

	BUTTON push LAYOUT(horizontal!) LOOKTEXT(folder, "Tube") STRETCH(1, 0);
	BUTTON push LAYOUT(horizontal!) LOOKTEXT(folder, "Caps") STRETCH(1, 0);
    }
    {
	LAYOUT(vertical) LOOK(tabdialog) STRETCH(1, 0) MARGIN(0.05, 0)

	{ SIZE(0, 0.05) }

	SWITCHER
	{
	    LOOK(plain) STRETCH(1, 0) LAYOUT(overlap!)
	    VALUE(stdswitcher.gad.val)
	    {
		LAYOUT(vertical) MARGIN(0, 0.025) STRETCH(1, 0)

		type.gad;
		surftype.gad;
		axis.gad;
		t.gad;
		rad.gad;
		height.gad;
		rows.gad;
		cols.gad;
	    }

	    {
		LAYOUT(vertical) MARGIN(0, 0.025) STRETCH(1, 0)

		firstu.gad;
		firstucap.gad;
		lastu.gad;
		lastucap.gad;
	    }

	}
    }
}

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

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


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

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


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


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(2) string VALUE(rad.val.expr) STRETCH(1, 0)
	    LAYOUT(horizontal!);
}


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

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

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

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


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


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

    { LOOKTEXT(plain, "First U Cap") SIZE(1.5, 0)}
    firstu.menu.expr VALUE(firstu.menuval.expr)
	     LOOKTEXT(select, firstu.menuval.expr) STRETCH(1, 0);
}


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

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

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

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


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

    { LOOKTEXT(plain, "Last U Cap") SIZE(1.5, 0)}
    lastu.menu.expr VALUE(lastu.menuval.expr)
	     LOOKTEXT(select, lastu.menuval.expr) STRETCH(1, 0);
}


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

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

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

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


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

    { LOOK(none) SIZE(0, 0.05) }	# Spacer

    BUTTONSTRIP radio
    {
	LAYOUT(horizontal!) MARGIN(0, 0.05) LOOK(whiteunderline) STRETCH(1, 0)
	VALUE(stdswitcher.gad.expr.val)

	BUTTON push LAYOUT(horizontal!) LOOKTEXT(folder, "Tube") STRETCH(1, 0);
	BUTTON push LAYOUT(horizontal!) LOOKTEXT(folder, "Caps") STRETCH(1, 0);
    }
    {
	LAYOUT(vertical) LOOK(tabdialog) STRETCH(1, 0) MARGIN(0.05, 0)

	{ SIZE(0, 0.05) }

	SWITCHER
	{
	    LOOK(plain) STRETCH(1, 0) LAYOUT(overlap!)
	    VALUE(stdswitcher.gad.expr.val)
	    {
		LAYOUT(vertical) MARGIN(0, 0.025) STRETCH(1, 0)

		type.gad.expr;
		surftype.gad.expr;
		axis.gad.expr;
		t.gad.expr;
		rad.gad.expr;
		height.gad.expr;
		rows.gad.expr;
		cols.gad.expr;
	    }

	    {
		LAYOUT(vertical) MARGIN(0, 0.025) STRETCH(1, 0)

		firstu.gad.expr;
		firstucap.gad.expr;
		lastu.gad.expr;
		lastucap.gad.expr;
	    }

	}
    }
}

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

    stdswitcher.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;
