layout REDImporterSetupDialog
{
	view dva_dialog(identifier: 'REDImporterSetup', name: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIREDImporterSetupDialogTitle=RED R3D Source Settings: ', spacing: 15, canResize: 'false', resizeChildren: 'true')
	{
		column(horizontalSpacing: 10, verticalSpacing: 10, leftMargin: 10, rightMargin: 10, topMargin: 10, bottomMargin: 10, horizontalAlignment: 'center')
		{
			dva_static_image(name: '$$$/MediaCoreUI/REDImporterSetupDialog/kResDLGPreview=Preview', horizontal: align_center, identifier: 'preview', minWidth: 468, minHeight: 263, maxWidth: 468, maxHeight: 186, showBorder: true);
			dva_static_text(name: '$$$/MediaCoreUI/REDImporterSetupDialog/kTimecodeStatic=00:00:00:00', identifier:'timecodeStatic', topSpace:3, horizontal: align_center);
			dva_slider(identifier: 'scrubSlider', horizontal: align_center, maxHeight:15, minHeight:15, direction: 'horizontal', maxLength:500, minLength:500, value: 0.0, minValue: 0.0, maxValue: 1000.0, decimalPlaces:0, increment: 1);

			row(horizontalSpacing: 6, verticalSpacing: 6)
			{
				column(horizontalSpacing: 10, verticalSpacing: 10)
				{
					row(horizontalSpacing: 6, verticalSpacing: 6, horizontalAlignment: 'center')
					{
						dva_popup(identifier: 'presetPopup', label: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIPreset=Preset: ', bindRight:'true', minWidth: 180, maxWidth: 170)
						{
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/AsShot=As Shot');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/PresetDefault=Default');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/PresetCustom=Custom');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/PresetSeparator=------------');
						}
						dva_button(name:'$$$/MediaCoreUI/REDImporterSetupDialog/SavePreset=Save Preset', identifier:'savePresetButton');
					}
					dva_groupbox(name: "$$$/MediaCoreUI/REDImporterSetupDialog/DecodingGroup=Decoding", minWidth: 350, minHeight: 140, headerType: 'static_text', placement: place_column, horizontal: align_fill)
					{
						dva_popup(identifier: 'debayerDetailPopup', label: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIDebayerDetail=Debayer Detail: ', minWidth: 200, maxWidth: 200, horizontal: align_right)
						{
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/DebayerLow=Low');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/DebayerMedium=Medium');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/DebayerHigh=High');
						}
						dva_popup(identifier: 'chromaDenoisePopup', label: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIChromaDenoise=Chroma Denoise: ', minWidth: 200, maxWidth: 200, horizontal: align_right)
						{
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/ChromaDenoiseOff=Off');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/ChromaDenoiseMinimum=Minimum');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/ChromaDenoiseMilder=Milder');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/ChromaDenoiseMild=Mild');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/ChromaDenoiseMedium=Medium');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/ChromaDenoiseStrong=Strong');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/ChromaDenoiseMaximum=Maximum');
						}
						dva_popup(identifier: 'OLPFCompensationPopup', label: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIOLPFCompensation=OLPF Compensation: ', minWidth: 200, maxWidth: 200, horizontal: align_right)
						{
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/OLPFCompensationOff=Off');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialogOLPFCompensationLow=Low');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/OLPFCompensationMedium=Medium');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/OLPFCompensationHigh=High');
						}
						dva_checkbox(identifier: 'maxBitDepthCheckbox', name: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIMaxBitDepth=Maximum Bit Depth (Global setting, requires restart)', horizontal: align_left);
					}
					dva_groupbox(name: "$$$/MediaCoreUI/REDImporterSetupDialog/WhiteBalance=White Balance", verticalSpacing: 5, horizontalSpacing: 10, minWidth: 350, minHeight: 120, headerType: 'static_text', placement: place_column, horizontal: align_fill)
					{
						row(horizontal: align_fill)
						{
							dva_static_text(identifier:'kelvinLabel', name:'$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIKelvin=Kelvin:', minWidth:55 );
							dva_slider(identifier: 'kelvinScrubSlider', horizontal: align_fill, maxHeight:15, minHeight:15, direction: 'horizontal', value: 0.0, minValue: 0.0, maxValue: 100.0, decimalPlaces:0, increment: 1);
							dva_text_edit(identifier:'kelvinTextEdit', minWidth:70, minHeight:20);
						}
						row(horizontal: align_fill)
						{
							dva_static_text(name:'$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUITint=Tint:', identifier:'tintLabel', minWidth:55);
							dva_slider(identifier: 'tintScrubSlider', horizontal: align_fill, maxHeight:15, minHeight:15, direction: 'horizontal', value: 0.0, minValue: 0.0, maxValue: 100.0, decimalPlaces:0, increment: 1);
							dva_text_edit(identifier:'tintTextEdit', minWidth:70, minHeight:20);
						}
						row(horizontal: align_fill)
						{
							dva_static_text(name:'$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUISaturation=Saturation:', identifier:'saturationLabel', minWidth:55);
							dva_slider(identifier: 'saturationScrubSlider', horizontal: align_fill, maxHeight:15, minHeight:15, direction: 'horizontal', value: 0.0, minValue: 0.0, maxValue: 100.0, decimalPlaces:0, increment: 1);
							dva_text_edit(identifier:'saturationTextEdit', minWidth:70, minHeight:20 );
						}
					}
					dva_popup(identifier: 'TimecodePopup', label: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUITimecode=TimeCode: ', minWidth: 160, horizontal: align_right)
					{
						dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/TimecodeEdgecode=Edgecode');
						dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/TimecodeAbsolute=Absolute');
					}
				}
				column(horizontalSpacing: 10, verticalSpacing: 10, horizontalAlignment: 'center')
				{
					dva_groupbox(name: "$$$/MediaCoreUI/REDImporterSetupDialog/ColorSettings=Color Settings", verticalSpacing: 10, horizontalSpacing: 10, minWidth: 350, minHeight: 150, headerType: 'static_text', placement: place_column, horizontal: align_fill)
					{
						dva_popup(identifier: 'ISOPopup', label: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIISO=ISO: ', minWidth:155, horizontal: align_left)
						{
						}
						row(horizontal: align_fill)
						{
							dva_static_text(identifier:'exposureLabel', name:'$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIExposure=Exposure:', minWidth:60);
							dva_slider(identifier: 'exposureScrubSlider', horizontal: align_fill, maxHeight:15, minHeight:15, minWidth:50, direction: 'horizontal', value: 0.0, minValue: 0.0, maxValue: 100.0, decimalPlaces:0, increment: 1);
							dva_text_edit(identifier:'exposureTextEdit', minWidth:70, minHeight:20);
						}
						row(horizontal: align_fill)
						{
							dva_static_text(name:'$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIRed=Red:', identifier:'redLabel', minWidth:60);
							dva_slider(identifier: 'redScrubSlider', horizontal: align_fill, maxHeight:15, minHeight:15, direction: 'horizontal', value: 0.0, minValue: 0.0, maxValue: 100.0, decimalPlaces:0, increment: 1);
							dva_text_edit(identifier:'redTextEdit', minWidth:70, minHeight:20);
						}
						row(horizontal: align_fill)
						{
							dva_static_text(name:'$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIGreen=Green:', identifier:'greenLabel', minWidth:60);
							dva_slider(identifier: 'greenScrubSlider', horizontal: align_fill, maxHeight:15, minHeight:15, direction: 'horizontal', value: 0.0, minValue: 0.0, maxValue: 100.0, decimalPlaces:0, increment: 1);
							dva_text_edit(identifier:'greenTextEdit', minWidth:70, minHeight:20);
						}
						row(horizontal: align_fill)
						{
							dva_static_text(name:'$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIBlue=Blue:', identifier:'blueLabel', minWidth:60);
							dva_slider(identifier: 'blueScrubSlider', horizontal: align_fill, maxHeight:15, minHeight:15, direction: 'horizontal', value: 0.0, minValue: 0.0, maxValue: 100.0, decimalPlaces:0, increment: 1);
							dva_text_edit(identifier:'blueTextEdit', minWidth:70, minHeight:20);
						}
						row(horizontal: align_fill)
						{
							dva_static_text(identifier:'brightnessLabel', name:'$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIBrightness=Brightness:', minWidth:60);
							dva_slider(identifier: 'brightnessScrubSlider', horizontal: align_fill, maxHeight:15, minHeight:15, minWidth:50, direction: 'horizontal', value: 0.0, minValue: 0.0, maxValue: 100.0, decimalPlaces:0, increment: 1);
							dva_text_edit(identifier:'brightnessTextEdit', minWidth:70, minHeight:20);
						}
						row(horizontal: align_fill)
						{
							dva_static_text(identifier:'contrastLabel', name:'$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIContrast=Contrast:', minWidth:60);
							dva_slider(identifier: 'contrastScrubSlider', horizontal: align_fill, maxHeight:15, minHeight:15, minWidth:50, direction: 'horizontal', value: 0.0, minValue: 0.0, maxValue: 100.0, decimalPlaces:0, increment: 1);
							dva_text_edit(identifier:'contrastTextEdit', minWidth:70, minHeight:20);
						}
						row(horizontal: align_fill)
						{
							dva_static_text(identifier:'highlightLabel', name:'$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIHighlight=Highlight:', minWidth:60);
							dva_slider(identifier: 'highlightScrubSlider', horizontal: align_fill, maxHeight:15, minHeight:15, minWidth:50, direction: 'horizontal', value: 0.0, minValue: 0.0, maxValue: 100.0, decimalPlaces:0, increment: 1);
							dva_text_edit(identifier:'highlightTextEdit', minWidth:70, minHeight:20);
						}
						dva_popup(identifier: 'colorspacePopup', label: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIColorspace=Color Space: ', minWidth:155, horizontal: align_left)
						{
						}
						dva_popup(identifier: 'gammaCurvePopup', label: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIGammaCurve=Gamma Curve: ', minWidth:155, horizontal: align_left)
						{
						}
						dva_popup(identifier: 'userCurvePopup', label: '$$$/MediaCoreUI/REDImporterSetupDialog/kResMediaCoreUIUserCurve=User Curve: ', minWidth:155, horizontal: align_left)
						{
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/AsShot=As Shot');
							dva_popup_item(name: '$$$/MediaCoreUI/REDImporterSetupDialog/UserCurveDisabled=Disabled');
						}
					}
				}
			}
			row(horizontal: align_fill, horizontal: align_right)
			{
				dva_ok_cancel_row(minWidth:80, minHeight:20);
			}
		}
	}
}