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
vRadioButtonWidth = 16;
vPixelReplSpacerSize = 14;
#endif
#ifdef WinEve
vRadioButtonWidth = 14;
vPixelReplSpacerSize = 3;
#endif
vPixelReplSpacing = gSmallGap - 2;
zNameLabel = '$$$/Variables/Define/Name=N&ame:';
zNameLabel2 = '$$$/Variables/Define/Name2=Nam&e:';
vNameLabelWidth = zstring_width(zstring: zNameLabel);
dialog(class_name: 'TVariablesDialog', isResizeable: true, name: '$$$/Variables/Variables=Variables', resize_size_horizontal: sizeRelSuperView, resize_size_vertical: sizeRelSuperView) {
view(class_name: 'TBufferedParent', placement: place_row, resize_size_vertical: sizeRelSuperView, resize_size_horizontal: sizeRelSuperView) {
popup_cluster(resource_id: 4400, view_id: 'vpcm', cluster_id: 'vpcc', placement: place_offscreen, horizontal: align_left, resize_size_vertical: sizeRelSuperView, resize_size_horizontal: sizeRelSuperView) {
group(view_id: 'defi', resize_size_horizontal: sizeRelSuperView) {
group(placement: place_row, resize_size_horizontal: sizeRelSuperView) {
popup(view_id: 'layr', resource_id: 4401, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView);
group(placement: place_row, spacing: gIconButtonSpacing, margin: gClusterMargin, resize_location_horizontal: locationRelSuperView) {
icon_button(data_type: 'int32', width: gDialogIconWidth, height: gDialogIconHeight, spacing: 0, view_id: 'pvsl', sticky: false, tooltip: '$$$/Variables/ToolTips/PrevLayer=Go to the previous layer', initial_value: 0, icon_root_name: 'CompPrev');
icon_button(data_type: 'int32', width: gDialogIconWidth, height: gDialogIconHeight, spacing: 0, view_id: 'nxtl', sticky: false, tooltip: '$$$/Variables/ToolTips/Nextlayer=Go to the next layer', initial_value: 0, icon_root_name: 'CompNext');
}
}
cluster(name: '$$$/Variables/Define/Type=Variable Type', resize_size_horizontal: sizeRelSuperView) {
check_box(view_id: 'visc', name: '$$$/Variables/Define/Visibility=&Visibility');
group(placement: place_row, spacing: gSmallGap, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
edit_text(view_id: 'vise', class_name: 'TVariableNameText', name: zNameLabel, enabled: false, width: max_char_width() * 10);
zpopup(view_id: 'visf', resource_id: 4402, width: gJustArrowPopupWidth);
icon_image(view_id: 'visl', width: 16, height: 16, icon_root_name: 'CellLinkIndicator', enabled: false);
static_text(view_id: 'visn', font: static_small_font, vertical: align_bottom, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView, class_name: 'TVarLinkedLayersText', wincontrol: false);
}
group(placement: place_offscreen, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
group(view_id: 'tlro', horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
check_box(view_id: 'txtc', name: '$$$/Variables/Define/Text=Te&xt Replacement');
group(placement: place_row, spacing: gSmallGap, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
edit_text(view_id: 'txte', class_name: 'TVariableNameText', name: zNameLabel2, enabled: false, width: max_char_width() * 10);
zpopup(view_id: 'txtf', resource_id: 4403, width: gJustArrowPopupWidth);
icon_image(view_id: 'txtl', width: 16, height: 16, icon_root_name: 'CellLinkIndicator', enabled: false);
static_text(view_id: 'txtn', font: static_small_font, vertical: align_bottom, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView, class_name: 'TVarLinkedLayersText', wincontrol: false);
}
}
group(view_id: 'plro', horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
check_box(view_id: 'pixc', name: '$$$/Variables/Define/Pixel=Pi&xel Replacement');
group(placement: place_row, spacing: gSmallGap, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
edit_text(view_id: 'pixe', class_name: 'TVariableNameText', name: zNameLabel2, enabled: false, width: max_char_width() * 10);
zpopup(view_id: 'pixf', resource_id: 4404, width: gJustArrowPopupWidth);
icon_image(view_id: 'pixl', width: 16, height: 16, icon_root_name: 'CellLinkIndicator', enabled: false);
static_text(view_id: 'pixn', font: static_small_font, vertical: align_bottom, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView, class_name: 'TVarLinkedLayersText', wincontrol: false);
}
group(placement: place_row) {
label_place_holder();
group(placement: place_row) {
popup(view_id: 'mthd', resource_id: 4405);
group(placement: place_row, spacing: 0) {
static_text(view_id: 'algl', name: '$$$/Variables/Define/Alignment=Alignment:');
view(class_name: 'TQuadStateControl', view_id: 'algn', width: 25, height: 25);
}
}
}
group(placement: place_row) {
label_place_holder();
check_box(view_id: 'clip', name: '$$$/Variables/Define/Clip=&Clip to Bounding Box');
}
}
}
}
cluster(view_id: 'desc', name: '$$$/Variables/Define/Description=Description', placement: place_offscreen, resize_size_horizontal: sizeRelSuperView) {
group(view_id: 'dfit', placement: place_row) {
static_text(font: static_small_font, name: '$$$/Variables/MethodDesc/Fit=The Fit method resizes the image^rto fit within the bounding box^rwhile preserving proportions.');
icon_image(width: 235, height: 105, icon_root_name: 'VarPlacement_Fit', enabled: false, cacheIt: false, horizontal: align_right, wantsOSComposite: true);
}
group(view_id: 'dfil', placement: place_row) {
static_text(font: static_small_font, name: '$$$/Variables/MethodDesc/Fill=The Fill method resizes the image^rto fill the bounding box while^rpreserving proportions. It may^roverlap edges in one dimension.');
icon_image(width: 235, height: 105, icon_root_name: 'VarPlacement_Fill', enabled: false, cacheIt: false, horizontal: align_right, wantsOSComposite: true);
}
group(view_id: 'dasi', placement: place_row) {
static_text(font: static_small_font, name: '$$$/Variables/MethodDesc/AsIs=The As Is method preserves the^rsize of the replacement image.^rIt may overlap edges in one or^rboth dimensions.');
icon_image(width: 235, height: 105, icon_root_name: 'VarPlacement_AsIs', enabled: false, cacheIt: false, horizontal: align_right, wantsOSComposite: true);
}
group(view_id: 'dcfm', placement: place_row) {
static_text(font: static_small_font, name: '$$$/Variables/MethodDesc/Conform=The Conform method resizes the ^rimage to fill the bounding box.^rIt may not preserve the original^rproportions.');
icon_image(width: 235, height: 105, icon_root_name: 'VarPlacement_Conform', enabled: false, cacheIt: false, horizontal: align_right, wantsOSComposite: true);
}
static_text(view_id: 'gmt ', placement: place_row, font: static_small_font, horizontal: align_fill, height: 105, resize_size_horizontal: sizeRelSuperView);
}
}
group(view_id: 'data', vertical: align_fill, resize_size_horizontal: sizeRelSuperView, resize_size_vertical: sizeRelSuperView) {
cluster(name: '$$$/Variables/DataSets/DataSets=Data Sets', placement: place_row, spacing: gGap, resize_size_horizontal: sizeRelSuperView) {
static_text(name: '$$$/Variables/DataSet/Name=&Data Set:');
edit_text(view_id: 'dsnf', class_name: 'TDataSetNameText', characters: 15, enabled: false, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView);
popup(view_id: 'dsnp', resource_id: 4406, class_name: 'TDataSetNamePopup', width: gJustArrowPopupWidth, tooltip: '$$$/Variables/ToolTip/DataSetNameFlyout=Use this flyout to switch to another data set', horizontal: align_right, resize_location_horizontal: locationRelSuperView);
group(placement: place_row, spacing: gIconButtonSpacing, margin: gClusterMargin, horizontal: align_right, resize_location_horizontal: locationRelSuperView) {
icon_button(data_type: 'int32', width: gDialogIconWidth, height: gDialogIconHeight, spacing: 0, view_id: 'pvds', sticky: false, tooltip: '$$$/Variables/ToolTips/PrevDS=Go to the previous data set', initial_value: 0, icon_root_name: 'CompPrev');
icon_button(data_type: 'int32', width: gDialogIconWidth, height: gDialogIconHeight, spacing: 0, view_id: 'nxds', sticky: false, tooltip: '$$$/Variables/ToolTips/NextDS=Go to the next data set', initial_value: 0, icon_root_name: 'CompNext');
group(width: 10);
icon_button(data_type: 'int32', width: gDialogIconWidth, height: gDialogIconHeight, spacing: 0, view_id: 'nwds', sticky: false, tooltip: '$$$/Variables/ToolTips/NewDS=Create a new data set based on the current data set', initial_value: 0, icon_root_name: 'SaveAs');
icon_button(data_type: 'int32', width: gDialogIconWidth, height: gDialogIconHeight, spacing: 0, view_id: 'dlds', sticky: false, tooltip: '$$$/Variables/ToolTips/DeleteDS=Delete this data set', initial_value: 0, icon_root_name: 'Trashcan');
}
}
cluster(view_id: 'vars', name: '$$$/Variables/Variables=Variables', vertical: align_fill, resize_size_horizontal: sizeRelSuperView, resize_size_vertical: sizeRelSuperView) {
group(placement: place_row, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
popup(view_id: 'dsvp', resource_id: 4407, resize_size_horizontal: sizeRelSuperView, tooltip: '$$$/Variables/ToolTip/VariableSelectPopup=Select a variable to edit its value');
group(placement: place_row, spacing: gIconButtonSpacing, margin: gClusterMargin, resize_location_horizontal: locationRelSuperView) {
icon_button(data_type: 'int32', width: gDialogIconWidth, height: gDialogIconHeight, spacing: 0, view_id: 'pvsv', sticky: false, tooltip: '$$$/Variables/ToolTips/PrevVar=Go to the previous variable', initial_value: 0, icon_root_name: 'CompPrev');
icon_button(data_type: 'int32', width: gDialogIconWidth, height: gDialogIconHeight, spacing: 0, view_id: 'nxtv', sticky: false, tooltip: '$$$/Variables/ToolTips/NextVar=Go to the next variable', initial_value: 0, icon_root_name: 'CompNext');
}
}
group(placement: place_row, resize_size_horizontal: sizeRelSuperView, horizontal: align_fill) {
static_text(name: '$$$/Variables/DataSets/Value=Value:', vertical: align_top, horizontal: align_right);
group(view_id: 'vvcg', placement: place_offscreen, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
group(view_id: 'vvvg', placement: place_column) {
radio(view_id: 'visi', name: '$$$/Variables/DataSets/VisValueVisible=Visible');
radio(view_id: 'invs', name: '$$$/Variables/DataSets/VisValueInvisible=Invisible');
}
group(view_id: 'tvvg', placement: place_row, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
edit_text(view_id: 'tvve', class_name: 'TTextReplacementValueText', characters: 30, max_chars: 16384, lines: 4, scroller: true, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView);
}
group(view_id: 'pvvg', placement: place_column, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
group(placement: place_row, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView, spacing: vPixelReplSpacing) {
radio(view_id: 'repl', width: vRadioButtonWidth);
button(dismiss: false, name: '$$$/Variables/DataSets/SelectFile=&Select File...', view_id: 'chos', dialogButton: false, vertical: align_top, tooltip: '$$$/Variables/ToolTips/SelectReplacementFile=Select a replacement file');
group(width: vPixelReplSpacerSize);
static_text(view_id: 'pvvv', class_name: 'TFilePathView', font: static_small_font, horizontal: align_fill, resize_size_horizontal: sizeRelSuperView, vertical: align_center, wincontrol: false);
}
radio(view_id: 'dnrp', name: '$$$/Variables/DataSets/DoNotReplace=Do Not Replace');
}
}
}
group(placement: place_column, spacing: 0, horizontal: align_fill, vertical: align_fill, view_id: 'lstp', resize_size_horizontal: sizeRelSuperView, resize_size_vertical: sizeRelSuperView) {
view(class_name: 'TDSTColumnHeadersView', view_id: 'tblh', horizontal: align_fill, height: gSmallStaticTextHeight + 4, resize_size_horizontal: sizeRelSuperView);
scroller(view_id: 'scrl', horizontal: align_fill, vertical: align_fill, height: 1, class_name: 'TScroller', vertical_scroll: true, horizontal_scroll: false, resize_size_horizontal: sizeRelSuperView, resize_size_vertical: sizeRelSuperView) {
view(view_id: 'dstb', class_name: 'TDataSetTableView', horizontal: align_fill, height: 145, resize_size_horizontal: sizeRelSuperView, resize_size_vertical: sizeVariable);
}
}
}
}
}
group(spacing: gLargeSpace, horizontal: align_right, vertical: align_top, child_horizontal: align_fill, resize_location_vertical: locationFixed, resize_location_horizontal: locationRelSuperView) {
group(child_horizontal: align_fill) {
button(name: gOKString, view_id: 'ok ',
default: true);
button(name: gCancelString, view_id: 'cncl',
default: false);
button(dismiss: false, name: '$$$/ControlsStrings/Previous=&Prev', view_id: 'prvs');
button(dismiss: false, name: '$$$/ControlsStrings/Next=&Next', view_id: 'next');
}
group(view_id: 'dsoc', child_horizontal: align_fill) {
button(dismiss: false, name: '$$$/ControlsStrings/Import=&Import...', view_id: 'impt');
button(dismiss: false, name: '$$$/ControlsStrings/Apply=&Apply', view_id: 'aply');
check_box(name: '$$$/Variables/ControlsStrings/Preview=Pre&view', view_id: 'prev', tooltip: '$$$/Variables/ApplyDataSet/Tooltip/Preview=Preview the selected data set');
}
}
}
}
// Footer - Copyright 2023 Adobe Systems Incorporated