Mini Kabibi Habibi

Current Path : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/layouts/Adjustments/Dialogs/
Upload File :
Current File : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/layouts/Adjustments/Dialogs/curves-1770.exv

// Copyright 2023 Adobe Systems Incorporated

	vEyeDropperIconHeight = 26 * gFontScale;
	vEyeDropperIconWidth = 30 * gFontScale;
	vUpRampWidth = 5;
	vPresetPopupWidth = 290;
	vUpRampHeight = 258;
	vPlotWidth = 258;
	vPlotHeight = 258;
	vRampWidth = 258;
	vRampHeight = 5;
	vSliderWidth = 265;
	vSliderHeight = 12;
	vCurvePencilButtonWidth = 30;
	vCurvePencilButtonHeight = 26;
	vGridButtonWidth = 26;
	vGridButtonHeight = 26;
	zPresetFiles = '$$$/Dialog/Curves/Presets=P&reset:';
// Note - this is a special case, regular #defines such as Macintosh or WIN_32 are not available here

#ifdef MacEve
	vEditWidth = 4;
	vPunchButtonSize = 23;
#endif

#ifdef WinEve
	vEditWidth = 5;
	vPunchButtonSize = 20;
#endif

	zPresetLabel = '$$$/Dialog/Curves/ToolTip/SelectCurvePreset=Select a Curve preset';
	zPresetIcon = '$$$/Dialog/Curves/ToolTip/PresetOptions=Preset options';
	zChannelList = '$$$/Dialog/Curves/ToolTip/ChannelCurves=Modify the curve for individual channels';
	zCurveIcon = '$$$/Dialog/Curves/ToolTip/CurveIcon=Edit points to modify the curve';
	zPencilIcon = '$$$/Dialog/Curves/ToolTip/PencilIcon=Draw to modify the curve';
	zOutput = '$$$/Dialog/Curves/ToolTip/Output=New intensity of selected point';
	zInput = '$$$/Dialog/Curves/ToolTip/Input=Current intensity of selected point';
	zBlackEyedropper = '$$$/Dialog/Curves/ToolTip/BlackEyedropper=Sample in image to set black point';
	zGrayEyedropper = '$$$/Dialog/Curves/ToolTip/GrayEyedropper=Sample in image to set gray point';
	zWhiteEyedropper = '$$$/Dialog/Curves/ToolTip/WhiteEyedropper=Sample in image to set white point';
	zShowClipping = '$$$/Dialog/Curves/ToolTip/ShowClipping=Show where clipping occurs in the image';
	zCurveDisplayOptions = '$$$/Dialog/Curves/ToolTip/CurveDisplayOptions=Customize the curve display';
	zLight = '$$$/Dialog/Curves/ToolTip/Light=Show amount of light (additive)';
	zPigment = '$$$/Dialog/Curves/ToolTip/Pigment=Show amount of pigment (subtractive)';
	zSimpleGridIcon = '$$$/Dialog/Curves/ToolTip/SimpleGridIcon=Display simple grid with quarter-tone increments';
	zDetailedGridIcon = '$$$/Dialog/Curves/ToolTip/DetailedGridIcon=Display detailed grid with 10% increments';
	zChannelOverlays = '$$$/Dialog/Curves/ToolTip/ChannelOverlays=Show color channels on composite curve';
	zHistogram = '$$$/Dialog/Curves/ToolTip/Histogram=Show histogram for reference';
	zBaseline = '$$$/Dialog/Curves/ToolTip/Baseline=Show diagonal line for baseline curve values';
	zIntersection = '$$$/Dialog/Curves/ToolTip/Intersection=Show intersection lines for precise point placement';
	zPreviewCheckbox = '$$$/Dialog/Curves/ToolTip/PreviewCheckbox=Toggle on/off preview in document';
	zSmooth = '$$$/Dialog/Curves/ToolTip/Smooth=Smooth the curve values';
	zAuto = '$$$/Dialog/Curves/ToolTip/Auto=Automatically correct for color, contrast, or levels';
	zOption = '$$$/Dialog/Curves/ToolTip/Options=Set Auto options';
	dialog(name: '$$$/Dialog/Curves/Title=Curves', class_name: 'TAdjustorSheetOptionsDialog', child_horizontal: align_fill, resize_size_horizontal: sizeRelSuperView, resize_size_vertical: sizeRelSuperView) {
	    group(view_id: 'butn', spacing: gLargeSpace, vertical: align_fill, resize_size_horizontal: sizeVariable, resize_size_vertical: sizeRelSuperView) {
	        group(name: 'OKCancel', horizontal: align_fill, child_horizontal: align_fill) {
	            button(name: gOKString, view_id: 'ok  ', dismiss: true,
	                default: true);
	            button(name: gCancelString, view_id: 'cncl', dismiss: true);
	        }
	        button(view_id: 'smoo', name: '$$$/Dialog/Curves/Smooth=S&mooth', tooltip: zSmooth, dismiss: false, horizontal: align_fill);
	        group(child_horizontal: align_fill, horizontal: align_fill) {
	            button(view_id: 'auto', name: '$$$/Dialog/Curves/Auto=&Auto', tooltip: zAuto, dismiss: false);
	            button(view_id: 'optn', name: '$$$/Dialog/Curves/OptionsDotDotDot=Op&tions...', tooltip: zOption, dismiss: false);
	        }
	        check_box(view_id: 'prev', name: '$$$/ControlsStrings/Preview=&Preview', tooltip: zPreviewCheckbox, horizontal: align_fill);
	    }
	    group(view_id: 'opcl', spacing: gLargeSpace, child_horizontal: align_fill) {
	        cluster(view_id: 'rdio', class_name: 'TRadioCluster', child_horizontal: align_left, placement: place_column, horizontal: align_fill, spacing: gLargeSpace, name: '$$$/Dialog/Curves/ShowAmountOf=Show Amount of:') {
	            radio(view_id: 'ligt', name: '$$$/Dialog/Curves/Light=&Light  (0-255)', tooltip: zLight);
	            radio(view_id: 'ink ', name: '$$$/Dialog/Curves/Ink=Pi&gment/Ink %', tooltip: zPigment);
	        }
	        cluster(view_id: 'grid', placement: place_row, spacing: 0, name: '$$$/Dialog/Curves/GridLabel=Grid size:', vertical: align_center) {
	            view(view_id: 'grd1', class_name: 'TIconButtonBase', height: vGridButtonHeight, width: vGridButtonWidth, tooltip: zSimpleGridIcon);
	            view(view_id: 'grd2', class_name: 'TIconButtonBase', height: vGridButtonHeight, width: vGridButtonWidth, tooltip: zDetailedGridIcon);
	        }
	        cluster(placement: place_column, child_vertical: align_top, view_id: 'tcls', name: '$$$/Dialog/Curves/ShowCheckboxes=Show:') {
	            check_box(name: '$$$/Dialog/Curves/ChannelOverlays=Channel O&verlays', view_id: 'covl', tooltip: zChannelOverlays);
	            check_box(name: '$$$/Dialog/Curves/Histogram=&Histogram', view_id: 'hist', tooltip: zHistogram);
	            check_box(name: '$$$/Dialog/Curves/Baseline=&Baseline', view_id: 'midl', tooltip: zBaseline);
	            check_box(name: '$$$/Dialog/Curves/IntersectionLine=I&ntersection Line', view_id: 'itsc', tooltip: zIntersection);
	        }
	    }
	    group(placement: place_column) {
	        group(placement: place_row, horizontal: align_fill) {
	            group(placement: place_row, spacing: 5, horizontal: align_fill) {
	                static_text(view_id: 'ptxt', tooltip: zPresetLabel, horizontal: align_left, name: zPresetFiles);
	                zpopup(resource_id: 543, view_id: 'cvpr', width: vPresetPopupWidth, tooltip: zPresetLabel);
	            }
	            icon_button(data_type: 'int32', view_id: 'fio ', width: gDialogIconWidth, height: gDialogIconHeight, tooltip: zPresetIcon, initial_value: 0, spacing: 0, icon_root_name: 'PresetIO');
	        }
	        popup_cluster(view_id: 'band', resource_id: 1014, cluster_id: 'pclu', class_name: 'TPopupCluster', child_horizontal: align_fill) {
	            group(view_id: 'plgp', placement: place_row, spacing: 0, horizontal: align_center, resize_size_horizontal: sizeRelSuperView) {
	                view(view_id: 'lfvw', class_name: 'TView', placement: place_row, vertical: align_top, horizontal: align_left, spacing: 0) {
	                    group(horizontal: align_left, vertical: align_fill, spacing: 0, height: vUpRampHeight + vRampHeight + vSliderHeight + gStaticTextHeight + vEyeDropperIconHeight) {
	                        group(horizontal: align_left, vertical: align_top, height: vUpRampHeight) {
	                            view(view_id: 'mode', class_name: 'TView', placement: place_row, spacing: 0, vertical: align_top, margin_right: gGap) {
	                                icon_button(view_id: 'tol1', data_type: 'int32', tooltip: zCurveIcon, icon_root_name: 'Curve', initial_value: 0, height: vCurvePencilButtonHeight, width: vCurvePencilButtonWidth);
	                                icon_button(view_id: 'tol2', data_type: 'int32', tooltip: zPencilIcon, icon_root_name: 'ToolPencil', initial_value: 0, height: vCurvePencilButtonHeight, width: vCurvePencilButtonWidth);
	                            }
	                            view(view_id: 'otvw', class_name: 'TView', horizontal: align_left, vertical: align_bottom, spacing: 0) {
	                                static_text(name: '$$$/Dialog/Curves/Output=&Output:', tooltip: zOutput);
	                                group(placement: place_offscreen, vertical: align_center, child_vertical: align_center, horizontal: align_left, child_horizontal: align_left) {
	                                    group(view_id: 'edt1', child_horizontal: align_left) {
	                                        edit_text(view_id: 'oute', class_name: 'TCurvesFixedPoint', tooltip: zOutput, characters: vEditWidth, max_chars: vEditWidth);
	                                    }
	                                    group(view_id: 'txt1', child_horizontal: align_left) {
	                                        group(placement: place_row, child_horizontal: align_left) {
	                                            control(view_id: 'cnt2', child_horizontal: align_left) {
	                                                static_text(view_id: 'outs', tooltip: zOutput, class_name: 'TBufferedText', characters: 4);
	                                            }
	                                        }
	                                    }
	                                }
	                            }
	                        }
	                        control(view_id: 'sltT', class_name: 'TTempCurveSamplerToolSlot', horizontal: align_left, vertical: align_bottom, height: vEyeDropperIconHeight, width: vEyeDropperIconWidth);
	                    }
	                }
	                group(horizontal: align_right, vertical: align_top, child_vertical: align_top, spacing: 0, resize_size_horizontal: sizeRelSuperView) {
	                    group(placement: place_column, spacing: 0) {
	                        group(horizontal: align_left, vertical: align_top, placement: place_row, spacing: 0, resize_size_horizontal: sizeRelSuperView) {
	                            view(view_id: 'frm2', margin: 0, horizontal: align_right, vertical: align_top, height: vUpRampHeight, width: vUpRampWidth) {
	                                control(view_id: 'rct2', height: vUpRampHeight - 2, width: vUpRampWidth - 2, resize_size_horizontal: sizeRelSuperView) {
	                                    view(view_id: 'rmp2', class_name: 'TBandRamp', height: vUpRampHeight - 2, width: vUpRampWidth - 2, resize_size_horizontal: sizeRelSuperView);
	                                }
	                            }
	                            view(view_id: 'pfrm', class_name: 'TBevelViewDown', horizontal: align_left, height: vPlotHeight, width: vPlotWidth) {
	                                view(view_id: 'plot', class_name: 'TMultiCurvePlot', height: vPlotHeight, width: vPlotWidth);
	                            }
	                        }
	                        view(view_id: 'slpr', class_name: 'TView', spacing: 0, child_horizontal: align_left) {
	                            group(margin_left: vUpRampWidth - 1, spacing: 0) {
	                                view(view_id: 'rfrm', margin: 0, height: vRampHeight, width: vRampWidth) {
	                                    control(view_id: 'rrct', height: vRampHeight - 2, width: vRampWidth, resize_size_horizontal: sizeRelSuperView) {
	                                        view(view_id: 'ramp', class_name: 'TBandRamp', height: vRampHeight - 2, width: vRampWidth, resize_size_horizontal: sizeRelSuperView);
	                                    }
	                                }
	                            }
	                            group(margin_left: vUpRampWidth - 6, spacing: 0) {
	                                view(view_id: 'isld', class_name: 'TCurvesSliderSet', height: vSliderHeight, width: vSliderWidth);
	                            }
	                        }
	                    }
	                    group(horizontal: align_left, margin_left: vUpRampWidth) {
	                        static_text(name: '$$$/Dialog/Curves/Input=&Input:', tooltip: zInput);
	                    }
	                    group(placement: place_row, horizontal: align_fill, margin_left: vUpRampWidth) {
	                        group(horizontal: align_left) {
	                            group(placement: place_offscreen, vertical: align_center, child_vertical: align_center, horizontal: align_left, child_horizontal: align_left) {
	                                group(view_id: 'edt2', child_horizontal: align_left) {
	                                    edit_text(view_id: 'npte', class_name: 'TCurvesFixedPoint', tooltip: zInput, characters: vEditWidth, max_chars: vEditWidth);
	                                }
	                                group(view_id: 'txt2', child_horizontal: align_left) {
	                                    group(placement: place_row, child_horizontal: align_left) {
	                                        control(view_id: 'cnt1', child_horizontal: align_left) {
	                                            static_text(view_id: 'npts', tooltip: zInput, class_name: 'TBufferedText', characters: 4);
	                                        }
	                                    }
	                                }
	                            }
	                        }
	                        view(view_id: 'bwtl', class_name: 'TView', placement: place_row, horizontal: align_center, spacing: 0) {
	                            control(view_id: 'sltA', class_name: 'TTempBlackPointSlot', tooltip: zBlackEyedropper, height: vEyeDropperIconHeight, width: vEyeDropperIconWidth);
	                            control(view_id: 'sltB', class_name: 'TTempGrayPointSlot', tooltip: zGrayEyedropper, height: vEyeDropperIconHeight, width: vEyeDropperIconWidth);
	                            control(view_id: 'sltC', class_name: 'TTempWhitePointSlot', tooltip: zWhiteEyedropper, height: vEyeDropperIconHeight, width: vEyeDropperIconWidth);
	                        }
	                        group(horizontal: align_right, resize_size_horizontal: sizeRelSuperView) {
	                            check_box(name: '$$$/Dialog/Curves/ShowClipping=Sho&w Clipping', view_id: 'sclp', tooltip: zShowClipping);
	                        }
	                    }
	                }
	            }
	        }
	    }
	}
// Footer - Copyright 2023 Adobe Systems Incorporated