Mini Kabibi Habibi
// Copyright 2023 Adobe Systems Incorporated
vOverlayPopupID = 5501;
font = static_small_font;
// Note - this is a special case, regular #defines such as Macintosh or WIN_32 are not available here
#ifdef MacEve
cropNumTemplate = '$$$/Dialog/PerspectiveCropOptions/CropNumberTemplate/Mac=00000000.000';
#endif
#ifdef WinEve
cropNumTemplate = '$$$/Dialog/PerspectiveCropOptions/CropNumberTemplate/Win=000000000.000';
#endif
vEditWidth = zstring_width(zstring: cropNumTemplate, font_id: gUIFont, font_size: gSmallFontSize);
view(class_name: 'TPerspectiveCropOptions', view_id: 'panl', width: gOptionsPanelWidth, height: gOptionsPanelHeight, spacing: gGap, placement: place_row, child_vertical: align_center, child_horizontal: align_left, margin_width: gOptionsMarginWidth, margin_height: gOptionsMarginHeight) {
group(child_vertical: align_center, placement: place_row, spacing: gSmallGap, tooltip: '$$$/PerspectiveCropOptions/Tooltip/Width=Set the width for cropped image') {
static_text(view_id: 'widL', class_name: 'THotText', horizontal: align_right, name: '$$$/Dialog/PerspectiveCropOptions/Width=W:');
edit_text(view_id: 'cols', class_name: 'TUnitsFixedPoint', width: vEditWidth);
}
view(class_name: gIconButtonClass, spacing: 0, margin: 1, horizontal: align_right) {
group(spacing: 0, margin: 1, frame: gIconButtonOtherButtonFrame) {
icon_button(data_type: 'int32', width: 18, height: 18, view_id: 'aswp', sticky: false, tooltip: '$$$/TextOptions/ToolTips/SwapAspect=Swaps height and width', initial_value: 0, icon_root_name: 'SwapValues');
}
}
group(child_vertical: align_center, placement: place_row, spacing: gSmallGap, tooltip: '$$$/PerspectiveCropOptions/Tooltip/Height=Set the height for cropped image') {
static_text(view_id: 'hgtL', class_name: 'THotText', horizontal: align_right, name: '$$$/Dialog/PerspectiveCropOptions/Height=H:');
edit_text(view_id: 'rows', class_name: 'TUnitsFixedPoint', width: vEditWidth);
}
view(class_name: 'TNarrowGroupSeparator', width: 1, height: gOptionsPanelGroupBarHeight, vertical: align_center);
cluster(view_id: 'resU', class_name: 'TImageResUnit', margin_height: 0, margin_width: 0, spacing: gSmallGap, child_vertical: align_center, placement: place_row, tooltip: '$$$/PerspectiveCropOptions/Tooltip/Resolution=Set the resolution for cropped image') {
static_text(class_name: 'THotText', horizontal: align_right, name: '$$$/Dialog/PerspectiveCropOptions/Resolution=Resolution:');
edit_text(view_id: 'res ', class_name: 'TFixedPoint', width: vEditWidth);
popup(resource_id: 1026, view_id: 'pres', height: gSmallPopupHeight);
}
view(class_name: 'TNarrowGroupSeparator', width: 1, height: gOptionsPanelGroupBarHeight, vertical: align_center);
group(margin_left: 2, margin_right: 2, child_vertical: align_center, placement: place_row, spacing: 8) {
button(view_id: 'frnt', height: gSmallButtonHeight, name: '$$$/Dialog/PerspectiveCropOptions/FrontImage=Front Image', dismiss: false, tooltip: '$$$/PerspectiveCropOptions/Tooltip/FrontImage=Use values from front image');
button(view_id: 'cler', height: gSmallButtonHeight, name: '$$$/Dialog/PerspectiveCropOptions/Clear=Clear', dismiss: false, tooltip: '$$$/PerspectiveCropOptions/Tooltip/Clear=Clear width, height and resolution values');
}
view(class_name: 'TNarrowGroupSeparator', width: 1, height: gOptionsPanelGroupBarHeight, vertical: align_center);
check_box(view_id: 'vrly', class_name: 'TMiniCheckBox', name: '$$$/Dialog/PerspectiveCropOptions/GridOverlay=Show Grid', alternate_icon: 'ShowGrid', tooltip: '$$$/PerspectiveCropOptions/Tooltip/Overlay=Display a grid over the selected area');
group(horizontal: align_left, placement: place_row, spacing: 5, child_vertical: align_center, margin: 0, view_id: 'okcg') {
view(class_name: gIconButtonClass, spacing: 0, margin: 1) {
group(spacing: 0, margin: 1, frame: gIconButtonOtherButtonFrame, child_vertical: align_center) {
view(view_id: 'cncl', class_name: 'TBevelCancelButton', width: 20, height: 20, tooltip: '$$$/CropCommandOptions/ToolTip/Cancel=Cancel current crop operation');
}
}
view(class_name: gIconButtonClass, spacing: 0, margin: 1) {
group(spacing: 0, margin: 1, frame: gIconButtonOtherButtonFrame, child_vertical: align_center, placement: place_row) {
view(view_id: 'acpt', class_name: 'TBevelOKButton', width: 20, height: 20, tooltip: '$$$/CropCommandOptions/ToolTip/OK=Commit current crop operation');
}
}
}
}
// Footer - Copyright 2023 Adobe Systems Incorporated