vbox(id = 'menu_image' clip = '0' hidden = '1')(margin = '9 9 0 0') ::
{
	switch(class = 'panel')(def='h1' selected = '1' text = 'Image')(size = '28')

	vbox ::
	{
		opBox(class = 'tab')(def = 'outline' id = "pt_target" index = '0' next = '11' margin = '4 4 -3 -3' size = '44') ::
		{
			vbox(def = 'outline-i') ::
			{
				option(class = 'cmd')(select_value = [['menu_photo']]	onSelect = 'set pt_show motion 0' text = 'Photo'	)(corner = '12' radius = '2')(flex = '1')(hint = 'Still Image')
				option(class = 'cmd')(select_value = [['menu_spin']]	onSelect = 'set pt_show motion 1' text = 'Turntable')(flex = '1')(hint = 'Turntable Animation')
			}
		}
	
		//----------------
		// Photo
		//----------------
		vbox(id = 'menu_photo')(next = '8')(hint = 'Still Image') ::
		{
			vbox(next = '8') ::
			{
				hbox(size = '28')(hint = 'Image Width') ::
				{
					label(def = 'h3' text = 'Width')(flex = '1' next = '3')	

					textField(def = 'tf-bg' id = 'pt_photo_w' onEnter = 'set pt_photo_w' maxLength = '5')
					(size = '40' next ='3')
					resizer(class = 'int')(range = '1 12000' step = '10' space = '4')(size = '8')
				}
			
				hbox(size = '28')(hint = 'Image Height') ::
				{
					label(def = 'h3' text = 'Height')(flex = '1' next = '3')	

					textField(def = 'tf-bg' id = 'pt_photo_h' onEnter = 'set pt_photo_h' maxLength = '5')
					(size = '40' next ='3')
					resizer(class = 'int')(range = '1 12000' step = '10' space = '4')(size = '8')
				}

			}
		
			button(text = 'Render' onClick = 'task photo' delayed = '1')(size = '24' corner = '15' radius = '2' margin = '8 8 0 0')(hint = 'Final Render')
		}
	
		//----------------
		// Turntable
		//----------------
		vbox(id = 'menu_spin' hidden = '1')(next = '8')(hint = 'Turntable Animation') ::
		{
			vbox ::
			{
				hbox(size = '28')(hint = 'Number of Frames') ::
				{
					label(def = 'h3' text = 'Frames')(flex = '1' next = '3')	

					textField(def = 'tf-bg' id = 'pt_spin_frames' onEnter = 'set pt_spin_frames' maxLength = '4')
					(size = '40' next ='3')
					resizer( class = 'int')(range = '1 3600' step = '1' space = '4')(size = '8')
				}

				hbox(size = '28')(hint = 'Angle') ::
				{
					label(def = 'h3' text = 'Angle')(flex = '1' next = '3')	

					textField(def = 'tf-bg' id = 'pt_spin_angle' onEnter = 'set pt_spin_angle' maxLength = '4')
					(size = '40' next ='3')
					resizer( class = 'int')(range = '0 360' step = '5' space = '5')(size = '8')
				}

				vbox(hint = 'Motion Blur')(next = '8') :: 
				{
					hbox(size = '28') ::
					{
						label(def = 'h3' text = 'Blur')(flex = '1')	

						textField(def = 'tf-bg' id = 'pt_spin_blur' onEnter = 'set pt_spin_blur' maxLength = '4')
						(size = '40' next ='3')
						resizer( class = 'int')(range = '0 1000' step = '1' space = '3')(size = '8')
					}

					slider(id = 'pt_spin_blur_sl' onChange = 'set pt_spin_blur')(size = '24' )
				}
			}

			button(text = 'Render' onClick = 'task spin' delayed = '1')(size = '24' corner = '15' radius = '2' margin = '8 8 0 0')(hint = 'Final Render')
		}
	}

	sp(def = 'bar-h' size = '3')
	
	switch(class = 'panel')(def='h1' selected = '1' text = 'Filter')(size = '28')

	vbox ::
	{
		button(text = 'Denoise' onClick = 'denoise exec intel_oidn' delayed = '1')(size = '24' corner = '15' radius = '2' margin = '8 8 0 0')(hint = 'Denoise')
	}
}

