Mini Kabibi Habibi
// Copyright 2023 Adobe Systems Incorporated
vidPresetPopup = 4800;
vidSaveButton = 4801;
vidAlignPopup = 4823;
vidCapsPopup = 4824;
vidCornersPopup = 4825;
vidDashedLineCheckbox = 4802;
vidDash1 = 4803;
vidGap1 = 4804;
vidDash2 = 4805;
vidGap2 = 4806;
vidDash3 = 4807;
vidGap3 = 4808;
SMNU_DialogStrokeAlignMode = 4807;
SMNU_DialogStrokeCapsMode = 4808;
SMNU_DialogStrokeCornersMode = 4809;
SMNU_DialogStrokePresetList = 4806;
SMNU_DummyForMeasuring = 4821;
zDialogTitle = '$$$/Dialog/VectorLayerMoreOptions/DialogTitle=Stroke';
zSaveButtonTitle = '$$$/Dialog/VectorLayerMoreOptions/SaveButton=Save';
zPresetListLabel = '$$$/DialogStrokePresetList/Title=Preset:';
zAlignLabel = '$$$/Dialog/VectorLayerMoreOptions/AlignPopup/Label=Align:';
zCapsLabel = '$$$/Dialog/VectorLayerMoreOptions/CapsPopup/Label=Caps:';
zCornersLabel = '$$$/Dialog/VectorLayerMoreOptions/CornersPopup/Label=Corners:';
zDashedLineLabel = '$$$/Dialog/VectorLayerMoreOptions/DashedLine/Label=Dashed Line';
zDashedLineToolTip = '$$$/Dialog/VectorLayerMoreOptions/DashedLine/Tooltip=Enable dashed line for stroke';
zLineCapsToolTip = '$$$/Dialog/VectorLayerMoreOptions/LineCaps/Tooltip=Set line cap type for stroke';
zLineAlignToolTip = '$$$/Dialog/VectorLayerMoreOptions/LineAlign/Tooltip=Set align type for stroke';
zLineJoinToolTip = '$$$/Dialog/VectorLayerMoreOptions/LineJoin/Tooltip=Set line join type for stroke';
zDashLabel = '$$$/Dialog/VectorLayerMoreOptions/Dash/Label=Dash:';
zGapLabel = '$$$/Dialog/VectorLayerMoreOptions/Gap/Label=Gap:';
zPresetTooltip = '$$$/Dialog/VectorLayerMoreOptions/ToolTips/Presets=Preset strokes';
zSavePresetTooltip = '$$$/Dialog/VectorLayerMoreOptions/ToolTips/SavePresets=Save stroke as preset';
zDashTooltip = '$$$/Dialog/VectorLayerMoreOptions/ToolTips/Dash=Set dash length';
zGapTooltip = '$$$/Dialog/VectorLayerMoreOptions/ToolTips/Gap=Set gap length';
zDashPresetCustom = '$$$/Menu/DialogStrokePresetList/CustomItem=Custom';
zDashPresetPreviewSize = 100;
// Note - this is a special case, regular #defines such as Macintosh or WIN_32 are not available here
#ifdef MacEve
zMenuItemMinWidth = 28;
#endif
#ifdef WinEve
zMenuItemMinWidth = 0;
#endif
zDashPresetCustomWidth = zstring_width(zstring: zDashPresetCustom, font_id: gUIFont, font_size: gSmallFontSize);
zDashPresetMenuOverhead = menu_width(resource_id: SMNU_DummyForMeasuring, font_id: gUIFont, font_size: gSmallFontSize) - zMenuItemMinWidth;
zDashPresetMenuWidth = zDashPresetCustomWidth + zDashPresetPreviewSize + zDashPresetMenuOverhead;
dialog(name: zDialogTitle, class_name: 'TVectorStrokeMoreOptionsDialog', margin_width: gLargeSpace, margin_height: gLargeSpace, placement: place_column, child_horizontal: align_fill) {
// Note - this is a special case, regular #defines such as Macintosh or WIN_32 are not available here
#ifdef MacEve
group(placement: place_row, horizontal: align_right, spacing: gGap, reverse: true) {
#endif
#ifdef WinEve
group(placement: place_row, horizontal: align_right, spacing: gGap) {
#endif
button(name: gOKString, horizontal: align_fill, view_id: 'ok ', dismiss: true,
default: true);
button(name: gCancelString, horizontal: align_fill, view_id: 'cncl', dismiss: true, cancel: true);
}
font = static_small_font;
group(placement: place_column, child_horizontal: align_fill, spacing: gLargeSpace) {
group(placement: place_column, child_horizontal: align_fill, spacing: gGap) {
group(placement: place_row, child_horizontal: align_fill, spacing: gGap, tooltip: zPresetTooltip) {
group(placement: place_row, spacing: gSmallGap) {
static_text(name: zPresetListLabel);
zpopup(resource_id: SMNU_DialogStrokePresetList, width: zDashPresetMenuWidth, horizontal: align_fill, view_id: vidPresetPopup);
}
button(name: zSaveButtonTitle, tooltip: zSavePresetTooltip, view_id: vidSaveButton, horizontal: align_right);
}
view(class_name: 'TGroupSeparator', height: 2, horizontal: align_fill);
}
group(placement: place_row, horizontal: align_fill, spacing: gGap) {
group(placement: place_column, horizontal: align_fill, spacing: gSmallGap) {
static_text(name: zAlignLabel);
zpopup(resource_id: SMNU_DialogStrokeAlignMode, horizontal: align_fill, width: 75, tooltip: zLineAlignToolTip, view_id: vidAlignPopup);
}
group(placement: place_column, horizontal: align_fill, spacing: gSmallGap) {
static_text(name: zCapsLabel);
zpopup(resource_id: SMNU_DialogStrokeCapsMode, horizontal: align_fill, width: 75, tooltip: zLineCapsToolTip, view_id: vidCapsPopup);
}
group(placement: place_column, horizontal: align_fill, spacing: gSmallGap) {
static_text(name: zCornersLabel);
zpopup(resource_id: SMNU_DialogStrokeCornersMode, horizontal: align_fill, width: 75, tooltip: zLineJoinToolTip, view_id: vidCornersPopup);
}
}
group(placement: place_column, horizontal: align_fill, spacing: gGap) {
check_box(class_name: 'TCheckBox', view_id: vidDashedLineCheckbox, name: zDashedLineLabel, tooltip: zDashedLineToolTip);
group(placement: place_row, horizontal: align_fill, spacing: gGap) {
group(placement: place_column, horizontal: align_fill, spacing: gSmallGap) {
static_text(name: zDashLabel, class_name: 'THotText');
edit_text(view_id: vidDash1, tooltip: zDashTooltip, class_name: 'TUnitsFixedPoint', width: max_char_width() * 3);
}
group(placement: place_column, horizontal: align_fill, spacing: gSmallGap) {
static_text(name: zGapLabel, class_name: 'THotText');
edit_text(view_id: vidGap1, tooltip: zGapTooltip, class_name: 'TUnitsFixedPoint', width: max_char_width() * 3);
}
group(placement: place_column, horizontal: align_fill, spacing: gSmallGap) {
static_text(name: zDashLabel, class_name: 'THotText');
edit_text(view_id: vidDash2, tooltip: zDashTooltip, class_name: 'TUnitsFixedPoint', width: max_char_width() * 3);
}
group(placement: place_column, horizontal: align_fill, spacing: gSmallGap) {
static_text(name: zGapLabel, class_name: 'THotText');
edit_text(view_id: vidGap2, tooltip: zGapTooltip, class_name: 'TUnitsFixedPoint', width: max_char_width() * 3);
}
group(placement: place_column, horizontal: align_fill, spacing: gSmallGap) {
static_text(name: zDashLabel, class_name: 'THotText');
edit_text(view_id: vidDash3, tooltip: zDashTooltip, class_name: 'TUnitsFixedPoint', width: max_char_width() * 3);
}
group(placement: place_column, horizontal: align_fill, spacing: gSmallGap) {
static_text(name: zGapLabel, class_name: 'THotText');
edit_text(view_id: vidGap3, tooltip: zGapTooltip, class_name: 'TUnitsFixedPoint', width: max_char_width() * 3);
}
}
}
}
}
// Footer - Copyright 2023 Adobe Systems Incorporated