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


SF_SIZES 0 0.3 2;

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

    { LOOKTEXT(plain, "Source Group") SIZE (1.5, 0)}
    FIELD string VALUE(rayGrp.val) STRETCH(1,0);
    rayGrp.menu VALUE(rayGrp.menuval)
	    SIZE(0.25, 0.25) LOOK(arrowright);
}


dotrans.gad = BUTTON toggle LOOKTEXT(check, "Do Transform Points")
		VALUE(dotrans.val) STRETCH(1, 0);


lookfar.gad = BUTTON toggle LOOKTEXT(check, "Look For Farthest Surface")
		VALUE(lookfar.val) STRETCH(1, 0);


putnml.gad = BUTTON toggle LOOKTEXT(check, "Put Hit Surface Normal")
		VALUE(putnml.val) STRETCH(1, 0);


pudist.gad = BUTTON toggle LOOKTEXT(check, "Put Hit Surface Distance In Point Alpha")
		VALUE(pudist.val) STRETCH(1, 0);


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

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

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

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


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

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

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

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


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

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

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

    { LOOKTEXT(plain, "Sample") SIZE (1.5, 0)}
    SLIDERFIELD integer 1 100 VALUE(sample.val) STRETCH(1,0);
    sample.chmenu;
}


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

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

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

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


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

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

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

    { LOOKTEXT(plain, "Random Seed") SIZE (1.5, 0)}
    SLIDERFIELD integer 0 10 VALUE(seed.val) STRETCH(1,0);
    seed.chmenu;
}


newgrp.gad = BUTTON toggle LOOKTEXT(check, "Create Point Group")
		VALUE(newgrp.val) STRETCH(1, 0);



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

    { LOOKTEXT(plain, "Ray Hit Group") SIZE (1.5, 0)}
    FIELD string VALUE(hitgrp.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) }

    rayGrp.gad;
    dotrans.gad;
    lookfar.gad;
    putnml.gad;
    pudist.gad;
    scale.gad;
    lift.gad;
    sample.gad;
    jitter.gad;
    seed.gad;
    newgrp.gad;
    hitgrp.gad;
}



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

    { LOOKTEXT(plain, "Source Group") SIZE (1.5, 0)}
    FIELD string VALUE(rayGrp.val.expr) STRETCH(1,0);
    rayGrp.menu.expr VALUE(rayGrp.menuval.expr)
	    SIZE(0.25, 0.25) LOOK(arrowright);
}


dotrans.gad.expr = BUTTON toggle LOOKTEXT(check, "Do Transform Points")
		     VALUE(dotrans.val.expr) STRETCH(1, 0);


lookfar.gad.expr = BUTTON toggle LOOKTEXT(check, "Look For Farthest Surface")
		     VALUE(lookfar.val.expr) STRETCH(1, 0);


putnml.gad.expr = BUTTON toggle LOOKTEXT(check, "Put Hit Surface Normal")
		     VALUE(putnml.val.expr) STRETCH(1, 0);


pudist.gad.expr = BUTTON toggle LOOKTEXT(check, "Put Hit Surface Distance In Point Alpha")
		     VALUE(pudist.val.expr) STRETCH(1, 0);


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

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

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

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


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

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

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

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


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

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

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

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


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

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

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

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


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

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

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

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


newgrp.gad.expr = BUTTON toggle LOOKTEXT(check, "Create Point Group")
		     VALUE(newgrp.val.expr) STRETCH(1, 0);



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

    { LOOKTEXT(plain, "Ray Hit Group") SIZE (1.5, 0)}
    FIELD string VALUE(hitgrp.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) }

    rayGrp.gad.expr;
    dotrans.gad.expr;
    lookfar.gad.expr;
    putnml.gad.expr;
    pudist.gad.expr;
    scale.gad.expr;
    lift.gad.expr;
    sample.gad.expr;
    jitter.gad.expr;
    seed.gad.expr;
    newgrp.gad.expr;
    hitgrp.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;
