# Automatically generated PSI dialog (PSI version 2.0)
# Fri Jun 30 16:37:01 EDT 1995
#
# Then hand edited so there's more space for the font name and string
# and the start font manager button is aligned better


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


#installer.gad = BUTTON push LOOKTEXT(push, "Start Font Manager")
#		VALUE(installer.val) STRETCH(1, 0);

installer.gad = {
	LAYOUT(horizontal) STRETCH(1, 0)
	{ LOOK(plain) SIZE(1.5, 0) DISABLED }
	BUTTON push LOOKTEXT(push, "Start Font Manager")
		    VALUE(installer.val) STRETCH(1, 0);
}


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

    { LOOKTEXT(plain, "Font") SIZE (0.5, 0)}
    FIELD string VALUE(file.val) STRETCH(1,0);
    BUTTON push VALUE(file.path) LOOKICON(DialogBox, bevel)
	    SIZE(0.25, 0.25);
    file.menu VALUE(file.menuval)
            SIZE(0.25, 0.25) LOOK(arrowright);
}



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

    { LOOKTEXT(plain, "Text") SIZE (0.5, 0)}
    FIELD string VALUE(text.val) STRETCH(1,0);
}


hcenter.gad = BUTTON toggle LOOKTEXT(check, "Center Text Horizontally")
		VALUE(hcenter.val) STRETCH(1, 0);


vcenter.gad = BUTTON toggle LOOKTEXT(check, "Center Text Vertically")
		VALUE(vcenter.val) 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;
}


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


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

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

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

    { LOOKTEXT(plain, "Kerning") SIZE (1.5, 0)}
    VECTORFIELD(2) float VALUE(kerning.val) STRETCH(1, 0);
    kerning.chmenu;
}


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

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

italic.xcf = XCF floatarray VALUE(italic.val) FULLOVERLAY;

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

    { LOOKTEXT(plain, "Italic Angle") SIZE (1.5, 0)}

    XCFPARENT italic.xcf center
    {
	LAYOUT(horizontal) STRETCH(1, 0) MARGIN(0, 0.1) LOOK(BANDH)
	VALUE(italic.val)
	{
	    LAYOUT(horizontal!) STRETCH(1,0)
	    FIELD float VALUE(italic.val) STRETCH(1, 0);
	    ANGLEJACK VALUE(italic.val);
	}
    }

    italic.chmenu;
}


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

    type.gad;
    installer.gad;
    file.gad;
    text.gad;
    hcenter.gad;
    vcenter.gad;
    t.gad;
    s.gad;
    kerning.gad;
    italic.gad;
    lod.gad;
    hole.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);
}


installer.gad.expr = {
	LAYOUT(horizontal) STRETCH(1, 0)
	{ LOOK(plain) SIZE(1.5, 0) DISABLED }
	BUTTON push LOOKTEXT(push, "Start Font Manager")
		    VALUE(installer.val.expr) STRETCH(1, 0);
}


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

    { LOOKTEXT(plain, "Font") SIZE (0.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);
    file.menu.expr VALUE(file.menuval.expr)
            SIZE(0.25, 0.25) LOOK(arrowright);
}



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

    { LOOKTEXT(plain, "Text") SIZE (0.5, 0)}
    FIELD string VALUE(text.val.expr) STRETCH(1,0);
}


hcenter.gad.expr = BUTTON toggle LOOKTEXT(check, "Center Text Horizontally")
		     VALUE(hcenter.val.expr) STRETCH(1, 0);


vcenter.gad.expr = BUTTON toggle LOOKTEXT(check, "Center Text Vertically")
		     VALUE(vcenter.val.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!);
}


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(vertical!) STRETCH(1, 0)

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

	{ LOOKTEXT(plain, "Scale") STRETCH(1, 0)}
	s.chmenu.expr;
    }

    VECTORFIELD(2) string VALUE(s.val.expr) STRETCH(1, 0)
	    LAYOUT(horizontal!);
}


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

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

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

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

	{ LOOKTEXT(plain, "Kerning") STRETCH(1, 0)}
	kerning.chmenu.expr;
    }

    VECTORFIELD(2) string VALUE(kerning.val.expr) STRETCH(1, 0)
	    LAYOUT(horizontal!);
}


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

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

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

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


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

    type.gad.expr;
    installer.gad.expr;
    file.gad.expr;
    text.gad.expr;
    hcenter.gad.expr;
    vcenter.gad.expr;
    t.gad.expr;
    s.gad.expr;
    kerning.gad.expr;
    italic.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;
