global proc AEhmOffsetCurveNodeTemplate( string $nodeName )
{
	//Start the scroll layout
    editorTemplate -beginScrollLayout;
	
	
	// The all go into the collapsable "Parameters" section
	editorTemplate -beginLayout "Basic Parameters" -collapse false;
	
	editorTemplate -addControl "compute";
	editorTemplate -addControl "scaleFactor";
	editorTemplate -callCustom "operationOptionMenu" "booleanControlReplace" "booleanOp";
	editorTemplate -addControl "offsetA";
	editorTemplate -addControl "offsetB";
	editorTemplate -addControl "quality";
	editorTemplate -endLayout;
	

	
	//This will add the extra attributes frame
    editorTemplate -addExtraControls;

    editorTemplate -endScrollLayout;
	
	
	// Tell the attribute editor not to display the attributes we
	// don't care about.
	editorTemplate -suppress "inCurves";
	editorTemplate -suppress "inCurvesMatrix";
	editorTemplate -suppress "inMeshes";
	editorTemplate -suppress "inMeshesMatrix";
	editorTemplate -suppress "outCurves";
	editorTemplate -suppress "outCurvesMatrix";
	editorTemplate -suppress "outMeshes";
	editorTemplate -suppress "outMeshesMatrix";
	
}


//============ CUSTOM CONTROLS ========================

//Use this trick for custom limits on controls
global proc operationOptionMenu( string $attrName )
	{
/* 	//owLayout -nc 1 -cal 1 "center" -cat 1 "both" 0;	
	optionMenuGrp -label "operation" -w 10 optionMenuControl ; 

	// Add the menu items
	menuItem-label "Union" -d 0;
	menuItem -label "Difference A-B" -d 1;
	menuItem -label "Difference B-A" -d 2;
	menuItem -label "Intersection" -d 3;
	menuItem -label "Panel A-B" -d 4;
	menuItem -label "Panel B-A" -d 5; */
	
	attrEnumOptionMenuGrp -l "Operation" -columnAlign 1 "right" -at $attrName
    -ei 0 "Union"
    -ei 1 "Difference A-B"
    -ei 2 "Difference B-A"
    -ei 3 "Intersection"
    -ei 4 "Panel A-B"
	-ei 5 "Panel B-A"
    optionMenuControl;
	
	//First connect control..
	//connectControl optionMenuControl $attrName;
	}


global proc booleanControlReplace( string $attrName )
	{
	// Install the connection between the optionMenu and the
	// actual boolean control
	attrEnumOptionMenuGrp -e -at $attrName optionMenuControl;
	//connectControl optionMenuControl $attrName;
	}