Mini Kabibi Habibi
// Copyright 2023 Adobe Systems Incorporated
// Note - this is a special case, regular #defines such as Macintosh or WIN_32 are not available here
#ifdef MacEve
vArrowPopupWidth = 37;
#endif
#ifdef WinEve
vArrowPopupWidth = 26;
#endif
mShowAnyZStringCategory = 4710; // empty menu with no label
vNewImage = 1250;
dialog(name: '$$$/NewDialog/Title=New', class_name: 'TNewImageDialog', show: true, view_id: 'wind', placement: place_row, child_horizontal: align_fill, target_id: 'name') {
group(name: 'OKCancel', show: true) {
button(name: gOKString, horizontal: align_fill, view_id: 'ok ', show: true, dismiss: true,
default: true, tooltip: '$$$/NewDialog/ToolTip/OK=Create a new document using the specified settings');
button(name: gCancelString, horizontal: align_fill, view_id: 'cncl', show: true, dismiss: true, tooltip: '$$$/NewDialog/ToolTip/Cancel=Discard changes and do not create a new document');
button(name: '$$$/NewDialog/SaveSettings=&Save Preset...', horizontal: align_fill, view_id: 'svst', dismiss: false, show: true, tooltip: '$$$/NewDialog/ToolTip/SavePreset=Save the specified values for later use');
button(name: '$$$/NewDialog/DeleteSettings=&Delete Preset...', horizontal: align_fill, view_id: 'dlst', dismiss: false, show: true, tooltip: '$$$/NewDialog/ToolTip/DeletePreset=Remove the selected preset from the list of presets');
view(height: 100);
static_text(view_id: 'szlb', name: '$$$/NewDialog/ImageSizeLabel=Image Size: ', horizontal: align_center);
static_text(view_id: 'size', name: '$$$/NewDialog/ImageSize=WWWWWWW', horizontal: align_center, tooltip: '$$$/NewDialog/ToolTips/SizeReadout=Size of the document with current settings');
}
group(placement: place_column, spacing: gGap, child_horizontal: align_fill) {
edit_text(view_id: 'name', class_name: 'TFilenameText', width: 16 * max_char_width(), tooltip: '$$$/NewDialog/ToolTip/Name=Set the name for this new document', name: '$$$/NewDialog/Name=&Name:');
popup_cluster(resource_id: vNewImage, view_id: 'psze', child_horizontal: align_fill, placement: place_column, tooltip: '$$$/NewDialog/ToolTip/ImageSizePreset=Select predefined settings for new documents') {
group(placement: place_offscreen) {
group(view_id: 'grp0', placement: place_row, spacing: gGap, horizontal: align_right) {
group(child_horizontal: align_fill) {
popup(view_id: 'psz2', resource_id: vNewImage + 6, tooltip: '$$$/NewDialog/ToolTip/Subsize=Select size of the Preset type for the new document');
cluster(view_id: 'colU', class_name: 'TImageSizeUnit', placement: place_row, spacing: gGap, margin: 0) {
static_text(horizontal: align_right, class_name: 'THotText', name: '$$$/NewDialog/Width=&Width:', tooltip: '$$$/NewDialog/ToolTip/Width=Set the width of the new document');
edit_text(view_id: 'cols', class_name: 'TFixedPoint', width: 7 * max_char_width(), tooltip: '$$$/NewDialog/ToolTip/Width=Set the width of the new document');
popup(view_id: 'pcol', resource_id: 1004, horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/Units=Press the Shift key to change units separately');
}
cluster(view_id: 'rowU', class_name: 'TImageSizeUnit', placement: place_row, spacing: gGap, margin: 0) {
static_text(horizontal: align_right, class_name: 'THotText', name: '$$$/NewDialog/Height=&Height:', tooltip: '$$$/NewDialog/ToolTip/Height=Set the height of the new document');
edit_text(view_id: 'rows', class_name: 'TFixedPoint', width: 7 * max_char_width(), tooltip: '$$$/NewDialog/ToolTip/Height=Set the height of the new document');
popup(view_id: 'prow', resource_id: 1005, horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/Units=Press the Shift key to change units separately');
}
cluster(view_id: 'resU', class_name: 'TImageResUnit', placement: place_row, spacing: gGap, margin: 0) {
static_text(horizontal: align_right, class_name: 'THotText', name: '$$$/NewDialog/Resolution=&Resolution:', tooltip: '$$$/NewDialog/ToolTip/Resolution=Set the resolution for the new document.');
edit_text(view_id: 'res ', class_name: 'TFixedPoint', width: 7 * max_char_width(), tooltip: '$$$/NewDialog/ToolTip/Resolution=Set the resolution for the new document.');
popup(view_id: 'pres', resource_id: 1002, horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/ResolutionUnits=Set the units for resolution');
}
cluster(placement: place_row, margin: 0) {
popup(view_id: 'mode', resource_id: 1007, width: max(zstring_width(zstring: '$$$/Menu/ModePopup/Bitmap=Bitmap') + vArrowPopupWidth, zstring_width(zstring: '$$$/Menu/ModePopup/Grayscale=Grayscale') + vArrowPopupWidth, zstring_width(zstring: '$$$/Menu/ModePopup/RGBColor=RGB Color') + vArrowPopupWidth, zstring_width(zstring: '$$$/Menu/ModePopup/CMYKColor=CMYK Color') + vArrowPopupWidth, zstring_width(zstring: '$$$/Menu/ModePopup/LabColor=Lab Color') + vArrowPopupWidth, 7 * max_char_width() - gGap), tooltip: '$$$/NewDialog/ToolTip/ColorMode=Set the color mode for the new document');
popup(view_id: 'dept', resource_id: vNewImage + 3, horizontal: align_fill, label_width: 0, tooltip: '$$$/NewDialog/ToolTip/BitDepth=Specify the bit depth, which determines the maximum number of colors that can be used');
}
cluster(placement: place_row, spacing: gGap, child_horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/Content=Set the initial background contents for the new document') {
popup(view_id: 'ctnt', resource_id: vNewImage + 2);
control(frame: gIconButtonBevelFrame, view_id: 'bcol', class_name: 'TColorPatch', width: gStaticTextHeight, height: gStaticTextHeight, horizontal: align_right);
}
cluster(view_id: 'advn', child_horizontal: align_fill, name: '$$$/NewDialog/Advanced=Advanced', use_reveal: false) {
popup(resource_id: vNewImage + 4, view_id: 'prfl', horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/Profile=Specify a color profile for color management', include_view: !showOCIOOptions);
popup(resource_id: vNewImage + 1, view_id: 'para', horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/PixelAspectRatio=Set the pixel aspect ratio for the new document');
cluster(placement: place_row, spacing: gGap, margin: 0, tooltip: '$$$/NewDialog/ToolTip/Config=A configuration is a catalog of color spaces and tools for converting between those spaces', include_view: showOCIOOptions) {
static_text(horizontal: align_right, name: '$$$/NewDialog/OCIOConfig=Configuration:');
zpopup(resource_id: mShowAnyZStringCategory, view_id: 'conf', horizontal: align_fill);
}
cluster(placement: place_row, spacing: gGap, margin: 0, tooltip: '$$$/NewDialog/ToolTip/Work=Color space used for compositing operations (not for display)', include_view: showOCIOOptions) {
static_text(horizontal: align_right, name: '$$$/NewDialog/WorkingSpace=Working Space:');
icon_button(class_name: 'TMenuButton', view_id: 'work', height: gSmallStaticTextHeight + gSpace - 1, horizontal: align_fill, vertical: align_top, resize_size_horizontal: sizeRelSuperView);
}
}
}
}
group(view_id: 'grp1', placement: place_row, spacing: gGap, horizontal: align_right) {
group(child_horizontal: align_fill) {
popup(view_id: 'psz2', resource_id: vNewImage + 7, tooltip: '$$$/NewDialog/ToolTip/Subsize=Select size of the Preset type for the new document');
cluster(view_id: 'colU', class_name: 'TImageSizeUnit', placement: place_row, spacing: gGap, margin: 0) {
static_text(horizontal: align_right, class_name: 'THotText', name: '$$$/NewDialog/Width=&Width:', tooltip: '$$$/NewDialog/ToolTip/Width=Set the width of the new document');
edit_text(view_id: 'cols', class_name: 'TFixedPoint', width: 7 * max_char_width(), tooltip: '$$$/NewDialog/ToolTip/Width=Set the width of the new document');
popup(view_id: 'pcol', resource_id: 1004, horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/Units=Press the Shift key to change units separately');
}
cluster(view_id: 'rowU', class_name: 'TImageSizeUnit', placement: place_row, spacing: gGap, margin: 0) {
static_text(horizontal: align_right, class_name: 'THotText', name: '$$$/NewDialog/Height=&Height:', tooltip: '$$$/NewDialog/ToolTip/Height=Set the height of the new document');
edit_text(view_id: 'rows', class_name: 'TFixedPoint', width: 7 * max_char_width(), tooltip: '$$$/NewDialog/ToolTip/Height=Set the height of the new document');
popup(view_id: 'prow', resource_id: 1005, horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/Units=Press the Shift key to change units separately');
}
cluster(view_id: 'resU', class_name: 'TImageResUnit', placement: place_row, spacing: gGap, margin: 0) {
static_text(horizontal: align_right, class_name: 'THotText', name: '$$$/NewDialog/Resolution=&Resolution:', tooltip: '$$$/NewDialog/ToolTip/Resolution=Set the resolution for the new document.');
edit_text(view_id: 'res ', class_name: 'TFixedPoint', width: 7 * max_char_width(), tooltip: '$$$/NewDialog/ToolTip/Resolution=Set the resolution for the new document.');
popup(view_id: 'pres', resource_id: 1002, horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/ResolutionUnits=Set the units for resolution');
}
cluster(placement: place_row, spacing: gGap, child_horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/Content=Set the initial background contents for the new document') {
popup(view_id: 'ctnt', resource_id: vNewImage + 2);
control(frame: gIconButtonBevelFrame, view_id: 'bcol', class_name: 'TColorPatch', width: gStaticTextHeight, height: gStaticTextHeight, horizontal: align_right);
}
cluster(view_id: 'advn', child_horizontal: align_fill, name: '$$$/NewDialog/Advanced=Advanced', use_reveal: false) {
check_box(view_id: 'ocio', name: '$$$/NewDialog/UseOCIO=Enable OpenColorIO', include_view: showOCIOOptions);
popup(resource_id: vNewImage + 4, view_id: 'prfl', horizontal: align_fill, tooltip: '$$$/NewDialog/ToolTip/Profile=Specify a color profile for color management');
}
}
}
}
}
}
}
// Footer - Copyright 2023 Adobe Systems Incorporated