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/exposure2-3760.exv

// Copyright 2023 Adobe Systems Incorporated

vSliderWidth = 256;
// Note - this is a special case, regular #defines such as Macintosh or WIN_32 are not available here

#ifdef MacEve
vSliderHeight = 18;
vSliderInset = 0;
#endif

#ifdef WinEve
vSliderHeight = 12;
vSliderInset = 5;
#endif

vRampInset = 5;
vRampHeight = 2;
vRampWidth = vSliderWidth - 2 * vRampInset;
vEyeDropperIconHeight = 26 * gFontScale;
vEyeDropperIconWidth = 30 * gFontScale;
vEyeDropperClusterWidth = vEyeDropperIconWidth * 3;
vEyeDropperClusterHeight = vEyeDropperIconHeight;
vExpSpace = vSliderWidth - 2 * gSliderLineInset - 3 * max_char_width() - gEditDoubleOutset - zstring_width(zstring: '$$$/Dialog/Exposure/Exposure=&Exposure:');
vOffSpace = vSliderWidth - 2 * gSliderLineInset - 3 * max_char_width() - gEditDoubleOutset - zstring_width(zstring: '$$$/Dialog/Exposure/Offset=&Offset:');
vGamSpace = vSliderWidth - 2 * gSliderLineInset - 3 * max_char_width() - gEditDoubleOutset - zstring_width(zstring: '$$$/Dialog/Exposure/Gamma=&Gamma:');
zPresetTooltip = '$$$/Adjustment/Exposure/ToolTip/PresetLabel=Select an Exposure preset';
zPresetIconTooltip = '$$$/Adjustment/ToolTip/PresetIcon=Preset options';
zPresetLabel = '$$$/Dialog/Exposure/Presets=P&reset:';
zExposure = '$$$/Dialog/Exposure/Exposure=&Exposure:';
zOffset = '$$$/Dialog/Exposure/Offset=&Offset:';
zGamma = '$$$/Dialog/Exposure/GammaCorrection=&Gamma Correction:';
vExposureWidth = zstring_width(zstring: zExposure);
vOffsetWidth = zstring_width(zstring: zOffset);
vGammaWidth = zstring_width(zstring: zGamma);
vLabelWidth = max(vExposureWidth, vOffsetWidth, vGammaWidth);
vEditWidth = 7 * max_digit_width() + gEditDoubleOutset;
// Note - this is a special case, regular #defines such as Macintosh or WIN_32 are not available here

#ifdef MacEve
vPresetPopupWidth = zstring_asinteger(zstring: '$$$/Dialog/Exposure/Metrics/Mac/PresetPopupWidth=188');
#endif

#ifdef WinEve
vPresetPopupWidth = zstring_asinteger(zstring: '$$$/Dialog/Exposure/Metrics/Win/PresetPopupWidth=188');
#endif

dialog(class_name: 'TAdjustorSheetOptionsDialog', name: '$$$/Dialog/Exposure/Title=Exposure', placement: place_row, target_id: 'etxt') {
    group(spacing: gLargeSpace, placement: place_column, vertical: align_top, child_horizontal: align_fill) {
        group(child_horizontal: align_fill) {
            button(name: gOKString, view_id: 'ok  ',
                default: true);
            button(name: gCancelString, view_id: 'cncl',
                default: false);
        }
        view(view_id: 'bwtl', class_name: 'TView', placement: place_row, height: vEyeDropperClusterHeight, width: vEyeDropperClusterWidth, horizontal: align_center, spacing: 0) {
            control(view_id: 'sltA', class_name: 'TTempBlackPointSlot', height: vEyeDropperIconHeight, width: vEyeDropperIconWidth);
            control(view_id: 'sltB', class_name: 'TTempGrayPointSlot', height: vEyeDropperIconHeight, width: vEyeDropperIconWidth);
            control(view_id: 'sltC', class_name: 'TTempWhitePointSlot', height: vEyeDropperIconHeight, width: vEyeDropperIconWidth);
        }
        check_box(view_id: 'prev', name: '$$$/ControlsStrings/Preview=&Preview');
    }
    group(placement: place_column) {
        group(placement: place_row, horizontal: align_fill, margin_bottom: 12) {
            group(placement: place_row, spacing: 5, horizontal: align_fill) {
                static_text(view_id: 'ptxt', tooltip: zPresetTooltip, name: zPresetLabel, horizontal: align_left);
                zpopup(resource_id: 543, view_id: 'expr', width: vPresetPopupWidth, tooltip: zPresetTooltip);
            }
            icon_button(data_type: 'int32', view_id: 'fio ', width: gDialogIconWidth, height: gDialogIconHeight, tooltip: zPresetIconTooltip, initial_value: 0, spacing: 0, icon_root_name: 'PresetIO');
        }
        cluster(view_id: 'expo', class_name: 'TEditSlider', placement: place_column, spacing: 2, child_horizontal: align_fill, margin: 0) {
            group(placement: place_row, margin_left: vSliderInset, margin_right: vSliderInset) {
                static_text(view_id: 'elab', name: zExposure, width: vLabelWidth, class_name: 'THotText', hot_text_edit_id: 'etxt', horizontal: align_left);
                edit_text(view_id: 'etxt', width: vEditWidth, class_name: 'TFixedPoint', horizontal: align_right);
            }
            slider(view_id: 'esld', height: vSliderHeight, width: vSliderWidth);
        }
        cluster(view_id: 'shad', class_name: 'TEditSlider', placement: place_column, spacing: 2, child_horizontal: align_fill, margin: 0) {
            group(placement: place_row, margin_left: vSliderInset, margin_right: vSliderInset) {
                static_text(view_id: 'slab', name: zOffset, width: vLabelWidth, class_name: 'THotText', hot_text_edit_id: 'stxt', horizontal: align_left);
                edit_text(view_id: 'stxt', width: vEditWidth, class_name: 'TFixedPoint', horizontal: align_right);
            }
            slider(view_id: 'ssld', height: vSliderHeight, width: vSliderWidth);
        }
        cluster(view_id: 'brit', class_name: 'TEditSlider', placement: place_column, spacing: 2, child_horizontal: align_fill, margin: 0) {
            group(placement: place_row, horizontal: align_fill, margin_left: vSliderInset, margin_right: vSliderInset) {
                static_text(view_id: 'blab', name: zGamma, width: vLabelWidth, class_name: 'THotText', hot_text_edit_id: 'btxt', horizontal: align_left);
                edit_text(view_id: 'btxt', width: vEditWidth, class_name: 'TFixedPoint', horizontal: align_right);
            }
            slider(view_id: 'bsld', height: vSliderHeight, width: vSliderWidth);
        }
    }
}
// Footer - Copyright 2023 Adobe Systems Incorporated