Mini Kabibi Habibi
layout exr_decode_options {
constant:
mEXRAlphaDestination: 700;
mEXRAlphaHandling: 701;
mEXRSoloChannel: 702;
mEXRLayerSort: 703;
minMenuWidth: 250;
exrAlphaDestinationLabel: '$$$/Format/OpenEXR/Dialog/Decode/AlphaDestination/Label=Alpha destination:';
exrAlphaHandlingLabel: '$$$/Format/OpenEXR/Dialog/Decode/AlphaHandling/Label=Alpha color handling:';
exrSoloChannelLabel: '$$$/Format/OpenEXR/Dialog/Decode/SoloChannel/Label=Open solo channels as:';
exrLayerSortLabel: '$$$/Format/OpenEXR/Dialog/Decode/LayerSort/Label=Layer sorting:';
exrAlphaDestinationTip: '$$$/Format/OpenEXR/Dialog/Decode/AlphaDestination/Tip=Select how alpha channels are imported';
exrAlphaHandlingTip: '$$$/Format/OpenEXR/Dialog/Decode/AlphaHandling/Tip=Select how colors with alpha should be processed';
exrSoloChannelTip: '$$$/Format/OpenEXR/Dialog/Decode/SoloChannel/Tip=Choose layer type for solo channels';
exrLayerSortTip: '$$$/Format/OpenEXR/Dialog/Decode/LayerSort/Tip=Choose how layers are sorted';
interface:
macintosh: true;
windows: false <== !macintosh;
view exr_decode_options_dialog(name: '$$$/Format/OpenEXR/Dialog/Decode/Title=OpenEXR Read Options',
placement: place_column,
horizontal: align_fill,
vertical: align_fill,
margin: gLargeSpace,
isResizable: false) {
column(horizontal: align_fill,
spacing: gSpace) {
row(horizontal: align_fill,
spacing: gGap) {
TStaticText(identifier: @alpha_destination_label,
horizontal: align_left,
name: exrAlphaDestinationLabel,
tooltip: exrAlphaDestinationTip,
isLabel: true,
wincontrol: false);
ZMenuPopup(identifier: @alpha_destination_menu,
resourceIdentifier: mEXRAlphaDestination,
width: minMenuWidth,
horizontal: align_fill,
tooltip: exrAlphaDestinationTip);
}
row(horizontal: align_fill,
spacing: gGap) {
TStaticText(identifier: @alpha_handling_label,
horizontal: align_left,
name: exrAlphaHandlingLabel,
tooltip: exrAlphaHandlingTip,
isLabel: true,
wincontrol: false);
ZMenuPopup(identifier: @alpha_handling_menu,
resourceIdentifier: mEXRAlphaHandling,
width: minMenuWidth,
horizontal: align_fill,
tooltip: exrAlphaHandlingTip);
}
row(horizontal: align_fill,
spacing: gGap) {
TStaticText(identifier: @solo_channel_label,
horizontal: align_left,
name: exrSoloChannelLabel,
tooltip: exrSoloChannelTip,
isLabel: true,
wincontrol: false);
ZMenuPopup(identifier: @solo_channel_menu,
resourceIdentifier: mEXRSoloChannel,
width: minMenuWidth,
horizontal: align_fill,
tooltip: exrSoloChannelTip);
}
row(horizontal: align_fill,
spacing: gGap) {
TStaticText(identifier: @layer_sort_label,
horizontal: align_left,
name: exrLayerSortLabel,
tooltip: exrLayerSortTip,
isLabel: true,
wincontrol: false);
ZMenuPopup(identifier: @layer_sort_menu,
resourceIdentifier: mEXRLayerSort,
width: minMenuWidth,
horizontal: align_fill,
tooltip: exrLayerSortTip);
}
}
column(horizontal: align_fill,
vertical: align_bottom,
margin: [gMargin, 0, 0, 0]) {
TOptional(bind: @macintosh,
placement: place_row,
horizontal: align_right) {
TButton(name: '$$$/ControlsStrings/Cancel=Cancel',
identifier: @cancel,
dismiss: true);
TButton(name: '$$$/ControlsStrings/OK=OK',
identifier: @ok,
dismiss: true,
default: true);
}
/* Flip button order for Windows. */
TOptional(bind: @windows,
placement: place_row,
horizontal: align_right) {
TButton(name: '$$$/ControlsStrings/OK=OK',
identifier: @ok,
dismiss: true,
default: true);
TButton(name: '$$$/ControlsStrings/Cancel=Cancel',
identifier: @cancel,
dismiss: true);
}
}
}
}