vbox : (margin = '10 10 0 0' clip = '0') :
{
	vbox : (id = 'medit_basic' clip = '0') :
	{
		//----------------
		// Tool
		//----------------
		sw-h2 : (selected = '1' text = 'Tool' size = '28')
		vbox : (next = '6') :
		{
			hbox : (size = '28' next = '1') :
			{
				button : (onClick = 'full' text = 'Full' flex = '1' next = '1') : (hint = 'Full Volume [U]')
				button : (onClick = 'fill' text = 'Fill' flex = '1') : (hint = 'Fill Voxels with Same Color [I]')
			}

			hbox : (size = '28' next = '1') :
			{
				button : (onClick = 'zero' text = 'Clear' flex = '1' next = '1') : (hint = 'Clear Voxels [Backspace/Delete]')
				button : (onClick = 'rev' text = 'Reverse*') : (flex = '1') : (hint = 'Reverse Empty Space')
			}

			hbox : (size = '28') :
			{
				button : (onClick = 'x2' text = '2X') : (flex = '1' next = '1') : (hint = 'Double Size')
				button : (onClick = 'xh' text = '1/2') : (flex = '1' next = '0') : (hint = 'Half Size')
			}
		}

		hbox : (size = '24' next = '1') :
		{
			bn-tool : (text = '^x25cf' textFont = 'symbol' onClick = 'sel_all' ) : (flex = '1' next = '1') : (hint = 'Select All [CTRL+A]')
			bn-tool : (text = '^x25d0' textFont = 'symbol' onClick = 'sel_inv' ) : (flex = '1' next = '1') : (hint = 'Select Inverse [CTRL+I]')
			bn-tool : (text = '^x25cc' textFont = 'symbol' onClick = 'sel_none') : (flex = '1' next = '0') : (hint = 'Select None [CTRL+D]')
		}
	
		hbox : (size = '24') :
		{
			bn-tool : (text = '^51' onClick = 'copy' ) : (flex = '1' next = '1') : (hint = 'Copy Voxels [CTRL+C]')
			bn-tool : (text = '^52' onClick = 'paste') : (flex = '1' next = '1') : (hint = 'Paste Voxels [CTRL+V]')
			bn-tool : (text = '^48' onClick = 'cut'  ) : (flex = '1' next = '0') : (hint = 'Cut Voxels [CTRL+X]')
		}
	}
	

	bar-h : (id = 'medit_sep0') : (prev = '6' next = '4')
	
	vbox : (id = 'medit_tran' clip = '0') :
	{
		//----------------
		// Rot
		//----------------
		sw-h2 : (selected = '0' text = 'Rotate 90' size = '28')
		hbox : (size = '28' ) : (hint = 'Rotate Model 90 Degrees') :
		{
			bn-x : (onClick = 'rot90 x' text = 'X') : (flex = '1' next = '1')
			bn-y : (onClick = 'rot90 y' text = 'Y') : (flex = '1' next = '1')
			bn-z : (onClick = 'rot90 z' text = 'Z') : (flex = '1' next = '0')
		}

		//----------------
		// Flip
		//----------------
		sw-h2 : (selected = '0' text = 'Flip' size = '28')
		hbox : (size = '28' ) : (hint = 'Flip Model') :
		{
			bn-x : (onClick = 'flip x' text = 'X' flex = '1' next = '1')
			bn-y : (onClick = 'flip y' text = 'Y' flex = '1' next = '1')
			bn-z : (onClick = 'flip z' text = 'Z' flex = '1' next = '0')
		}

		//----------------
		// Loop
		//----------------
		sw-h2 : (selected = '0' text = 'Loop' size = '28')
		vbox : (hint = 'Move Model') :
		{
			hbox : (size = '28' next = '1') :
			{
				bn-x : (onClick = 'loop x +1' text = '+X' repeated = '1') : (flex = '1' next = '1')
				bn-y : (onClick = 'loop y +1' text = '+Y' repeated = '1') : (flex = '1' next = '1')
				bn-z : (onClick = 'loop z +1' text = '+Z' repeated = '1') : (flex = '1' next = '0')
			}

			hbox : (size = '28' next = '3') :
			{
				bn-x : (onClick = 'loop x -1' text = '-X' repeated = '1') : (flex = '1' next = '1')
				bn-y : (onClick = 'loop y -1' text = '-Y' repeated = '1') : (flex = '1' next = '1')
				bn-z : (onClick = 'loop z -1' text = '-Z' repeated = '1') : (flex = '1' next = '0')
			}

			textField : (onEnter = 'loop' default = 'axis offset' text = 'z 2' maxLength = '30') : (size = '28')
			: (hint = 'Move Model : [Axis] [Offset]')
		}

		sw-h2 : (selected = '0' text = 'Scale' size = '28')
		textField : (onEnter = 'scale' default = 'axis scale' text = 'xyz 2' maxLength = '30')
		 : (size = '28')
		 : (hint = 'Scale Model : [Axis] [Scale]')

		sw-h2 : (selected = '0' text = 'Shear' size = '28')
		textField : (onEnter = 'shear' default = 'axis scale' text = 'z 0.2 0.2' maxLength = '30')
		 : (size = '28')
		 : (hint = 'Shear Model : [Axis] [Scale] [Scale]')
		
		sw-h2 : (selected = '0' text = 'Rotate' size = '28')
		textField : (onEnter = 'rot' default = 'axis angle' text = 'z 45' maxLength = '30')
		 : (size = '28')
		 : (hint = 'Rotate Model : [Axis] [Angle]')

		sw-h2 : (selected = '0' text = 'Repeat' size = '28')
		textField : (onEnter = 'repeat' default = 'axis scale' text = 'xy 2' maxLength = '30')
		 : (size = '28' next = '6')
		 : (hint = 'Repeat Model : [Axis] [Scale]')
	}

	bar-h : (id = 'medit_sep1') : (prev = '4' next = '4')
	
	vbox : (id = 'medit_mod' clip = '0') :
	{
		//----------------
		// Sym
		//----------------
		sw-h2 : (selected = '0' text = 'Mirror' size = '28')
		hbox : (size = '28') : (hint = 'Mirror') :
		{
			bn-x : (onClick = 'mir x' text = 'X' repeated = '1') : (flex = '1' next = '1')
			bn-y : (onClick = 'mir y' text = 'Y' repeated = '1') : (flex = '1' next = '1')
			bn-z : (onClick = 'mir z' text = 'Z' repeated = '1') : (flex = '1' next = '0')
		}

		sw-h2 : (selected = '0' text = 'Diagonal' size = '28')
		hbox : (size = '28') : (hint = 'Diagonal') :
		{
			bn-x : (onClick = 'dia x' text = 'X' repeated = '1') : (flex = '1' next = '1')
			bn-y : (onClick = 'dia y' text = 'Y' repeated = '1') : (flex = '1' next = '1')
			bn-z : (onClick = 'dia z' text = 'Z' repeated = '1') : (flex = '1' next = '0')
		}
		
		//----------------
		// Prim
		//----------------
		sw-h2 : (selected = '0' text = 'Shape' size = '28')
		vbox :
		{
			hbox : (size = '28' next = '1') :
			{
				button : (onClick = 'prim elli'	text = 'Ellipsoid'	flex = '1' next = '1') : (hint = 'Ellipsoid')
				button : (onClick = 'prim cyli'	text = 'Cylinder'	flex = '1') : (hint = 'Cylinder')
			}
			hbox : (size = '28' next = '1') :
			{
				button : (onClick = 'prim pyra'	text = 'Pyramid'	flex = '1' next = '1') : (hint = 'Pyramid')
				button : (onClick = 'prim cone'	text = 'Cone'	flex = '1') : (hint = 'Cone')
			}
			hbox : (size = '28' next = '1') :
			{
				button : (onClick = 'maze'		text = 'Maze'	flex = '1' next = '1') : (hint = 'Maze')
				button : (onClick = 'noise -1'	text = 'Perlin'	flex = '1') : (hint = 'Perlin Noise')
			}
			hbox : (size = '28') :
			{
				button : (onClick = 'fractal' text = 'Fractal') : (flex = '1') : (hint = 'Fractal Model with Patterns')
			}
		}
		
		//----------------
		// Modify
		//----------------
		sw-h2 : (selected = '0' text = 'Modify' size = '28')
		vbox :
		{
			hbox : (size = '28' next = '1') :
			{
				button : (onClick = 'flood 0' text = 'Hull') : (flex = '1' next = '1') : (hint = 'Remove All Invisible Voxels')
				button : (onClick = 'flood'   text = 'Flood') : (flex = '1') : (hint = 'Flood Fill All Invisible Space')
			}
			hbox : (size = '28' next = '1') :
			{
				button : (onClick = 'mask' text = 'Mask') : (flex = '1' next = '1') : (hint = 'Mask Model with Patterns')
				button : (onClick = 'tex'	text = 'Texture') : (flex = '1') : (hint = 'Texture Model with Patterns')
			}
			hbox : (size = '28') :
			{
				button : (onClick = 'dil' repeated = '1'	text = 'Dilation') : (flex = '1' next = '1') : (hint = 'Dilation')
				button : (onClick = 'ero' repeated = '1'	text = 'Erosion') : (flex = '1') : (hint = 'Erosion')
			}
		}
	}
}