]> granicus.if.org Git - handbrake/commitdiff
MacGui: Add new anamorphic mode "Automatic".
authorDamiano Galassi <damiog@gmail.com>
Mon, 31 Oct 2016 17:40:08 +0000 (18:40 +0100)
committerDamiano Galassi <damiog@gmail.com>
Mon, 31 Oct 2016 17:40:08 +0000 (18:40 +0100)
macosx/English.lproj/HBPictureViewController.xib
macosx/English.lproj/PictureSettings.xib
macosx/HBAddPresetController.m
macosx/HBPicture+UIAdditions.h
macosx/HBPicture+UIAdditions.m
macosx/HBPicture.h
macosx/HBPicture.m
macosx/HBPictureController.m

index 0dd21b1d012fca900b0fa1b0804c24ce586bbd6a..ccc9a612bec1251415d64b6d8c246ebf90c54e94 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2553a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2657" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
     <dependencies>
         <deployment identifier="macosx"/>
         <development version="7000" identifier="xcode"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11542"/>
     </dependencies>
     <objects>
         <customObject id="-2" userLabel="File's Owner" customClass="HBPictureViewController">
@@ -679,18 +679,13 @@ Players will scale the image in order to achieve the specified aspect.</string>
                         <font key="font" metaFont="smallSystem"/>
                     </stepperCell>
                     <connections>
-                        <binding destination="-2" name="enabled2" keyPath="self.picture" previousBinding="JqM-hb-2O2" id="zEB-S1-VbO">
+                        <binding destination="-2" name="enabled" keyPath="self.picture" id="CiU-c8-Ky6">
                             <dictionary key="options">
-                                <integer key="NSMultipleValuesPlaceholder" value="-1"/>
-                                <integer key="NSNoSelectionPlaceholder" value="-1"/>
-                                <integer key="NSNotApplicablePlaceholder" value="-1"/>
-                                <integer key="NSNullPlaceholder" value="-1"/>
                                 <string key="NSValueTransformerName">NSIsNotNil</string>
                             </dictionary>
                         </binding>
                         <binding destination="-2" name="maxValue" keyPath="self.picture.maxWidth" id="rzD-bT-FPn"/>
                         <binding destination="-2" name="value" keyPath="self.picture.width" previousBinding="rzD-bT-FPn" id="0U8-Dc-QvL"/>
-                        <binding destination="-2" name="enabled" keyPath="self.picture.widthEditable" id="JqM-hb-2O2"/>
                         <outlet property="nextKeyView" destination="Hkl-7Z-J2e" id="uHh-Lp-0GY"/>
                     </connections>
                 </stepper>
@@ -734,7 +729,7 @@ You should use 2 unless you experience compatibility issues.</string>
                     <accessibility description="Storage Width"/>
                     <connections>
                         <accessibilityConnection property="title" destination="9oG-zm-Y0W" id="lTZ-u6-eUU"/>
-                        <binding destination="-2" name="enabled" keyPath="self.picture" previousBinding="L1O-OF-Smb" id="Ypo-AX-fuO">
+                        <binding destination="-2" name="enabled" keyPath="self.picture" id="HGq-yI-bDz">
                             <dictionary key="options">
                                 <string key="NSValueTransformerName">NSIsNotNil</string>
                             </dictionary>
@@ -744,7 +739,6 @@ You should use 2 unless you experience compatibility issues.</string>
                                 <bool key="NSValidatesImmediately" value="YES"/>
                             </dictionary>
                         </binding>
-                        <binding destination="-2" name="editable" keyPath="self.picture.widthEditable" id="L1O-OF-Smb"/>
                         <outlet property="nextKeyView" destination="FwZ-6T-zJe" id="FVz-Ke-KDt"/>
                     </connections>
                 </textField>
@@ -790,18 +784,18 @@ You should use 2 unless you experience compatibility issues.</string>
                 <popUpButton verticalHuggingPriority="750" id="w1f-3S-up0">
                     <rect key="frame" x="93" y="232" width="83" height="22"/>
                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                    <string key="toolTip">None   - Force pixel aspect ratio to 1:1.
-Loose  - Align dimensions to chosen 'Alignment' value and pick pixel aspect ratio that preserves the original display aspect ratio
-Strict - Keep original source dimensions and pixel aspect ratio</string>
+                    <string key="toolTip">None  - Force pixel aspect ratio to 1:1.
+Loose - Align dimensions to chosen 'Alignment' value and pick pixel aspect ratio that preserves the original display aspect ratio.
+Automatic - Use a pixel aspect ratio that maximizes storage resolution while preserving the original display aspect ratio.</string>
                     <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" id="vx1-8S-fyc">
                         <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                         <font key="font" metaFont="smallSystem"/>
                         <menu key="menu" title="OtherViews" id="qSV-uB-Iup">
                             <items>
                                 <menuItem title="Off" id="1O3-th-4M5"/>
-                                <menuItem title="Strict" id="JyN-AK-Hae"/>
-                                <menuItem title="Loose" id="Uiw-Nb-u5X"/>
-                                <menuItem title="Custom" id="f12-Dh-fDw"/>
+                                <menuItem title="Auto" tag="4" id="JyN-AK-Hae"/>
+                                <menuItem title="Loose" tag="2" id="Uiw-Nb-u5X"/>
+                                <menuItem title="Custom" tag="3" id="f12-Dh-fDw"/>
                             </items>
                         </menu>
                     </popUpButtonCell>
@@ -812,7 +806,7 @@ Strict - Keep original source dimensions and pixel aspect ratio</string>
                                 <string key="NSValueTransformerName">NSIsNotNil</string>
                             </dictionary>
                         </binding>
-                        <binding destination="-2" name="selectedIndex" keyPath="self.picture.anamorphicMode" id="RJ9-6L-8mC"/>
+                        <binding destination="-2" name="selectedTag" keyPath="self.picture.anamorphicMode" id="ugL-AX-WF2"/>
                     </connections>
                 </popUpButton>
                 <textField verticalHuggingPriority="750" id="tHY-g2-oWj">
@@ -876,7 +870,7 @@ Strict - Keep original source dimensions and pixel aspect ratio</string>
                     <accessibility description="Storage Height"/>
                     <connections>
                         <accessibilityConnection property="title" destination="uqQ-uA-3xF" id="Cho-Kz-bXA"/>
-                        <binding destination="-2" name="enabled" keyPath="self.picture" previousBinding="GH2-sh-F1c" id="ImG-wf-FaF">
+                        <binding destination="-2" name="enabled" keyPath="self.picture" id="nha-oa-kQ8">
                             <dictionary key="options">
                                 <string key="NSValueTransformerName">NSIsNotNil</string>
                             </dictionary>
@@ -886,7 +880,6 @@ Strict - Keep original source dimensions and pixel aspect ratio</string>
                                 <bool key="NSValidatesImmediately" value="YES"/>
                             </dictionary>
                         </binding>
-                        <binding destination="-2" name="editable" keyPath="self.picture.heightEditable" id="GH2-sh-F1c"/>
                         <outlet property="nextKeyView" destination="2s0-5k-fjU" id="D8H-ff-R52"/>
                     </connections>
                 </textField>
@@ -953,17 +946,12 @@ Players will scale the image in order to achieve the specified aspect.</string>
                         <font key="font" metaFont="smallSystem"/>
                     </stepperCell>
                     <connections>
-                        <binding destination="-2" name="enabled2" keyPath="self.picture" previousBinding="Rhl-EQ-AWd" id="hqb-mF-nWe">
+                        <binding destination="-2" name="enabled" keyPath="self.picture" id="wcZ-Lg-5Y2">
                             <dictionary key="options">
-                                <integer key="NSMultipleValuesPlaceholder" value="-1"/>
-                                <integer key="NSNoSelectionPlaceholder" value="-1"/>
-                                <integer key="NSNotApplicablePlaceholder" value="-1"/>
-                                <integer key="NSNullPlaceholder" value="-1"/>
                                 <string key="NSValueTransformerName">NSIsNotNil</string>
                             </dictionary>
                         </binding>
                         <binding destination="-2" name="value" keyPath="self.picture.height" previousBinding="yUT-oM-ZsK" id="kln-nB-kei"/>
-                        <binding destination="-2" name="enabled" keyPath="self.picture.heightEditable" id="Rhl-EQ-AWd"/>
                         <binding destination="-2" name="maxValue" keyPath="self.picture.maxHeight" id="yUT-oM-ZsK"/>
                     </connections>
                 </stepper>
index 691076fe6ac07a6de626eacfbccffe642e3cb7a8..1e6870f658c36994633fd8ad7e7de93e418c4a1f 100644 (file)
@@ -1,9 +1,10 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="8164.2" systemVersion="15A225f" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2657" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
     <dependencies>
         <deployment identifier="macosx"/>
-        <development version="6300" identifier="xcode"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="8164.2"/>
+        <development version="7000" identifier="xcode"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11542"/>
+        <capability name="box content view" minToolsVersion="7.0"/>
     </dependencies>
     <objects>
         <customObject id="-2" userLabel="File's Owner" customClass="HBPictureController">
@@ -34,7 +35,6 @@
                     <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="XmO-LR-1DQ">
                         <rect key="frame" x="257" y="61" width="120" height="17"/>
                         <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
-                        <animations/>
                         <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Nothing to inspect" id="buq-K6-Wvy">
                             <font key="font" metaFont="system"/>
                             <color key="textColor" name="highlightColor" catalog="System" colorSpace="catalog"/>
                             </binding>
                         </connections>
                     </textField>
-                    <box title="Box" borderType="none" titlePosition="noTitle" id="436">
+                    <box borderType="none" title="Box" titlePosition="noTitle" id="436">
                         <rect key="frame" x="17" y="5" width="358" height="126"/>
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                        <view key="contentView">
+                        <view key="contentView" id="izI-da-gGT">
                             <rect key="frame" x="0.0" y="0.0" width="358" height="126"/>
                             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                             <subviews>
                                 <textField verticalHuggingPriority="750" id="402">
                                     <rect key="frame" x="192" y="106" width="82" height="16"/>
                                     <autoresizingMask key="autoresizingMask"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Display Width:" id="403">
                                         <font key="font" metaFont="smallSystem"/>
                                         <color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
@@ -75,7 +74,6 @@
                                 <textField verticalHuggingPriority="750" id="440">
                                     <rect key="frame" x="278" y="81" width="37" height="16"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="left" drawsBackground="YES" id="441">
                                         <numberFormatter key="formatter" formatterBehavior="default10_4" usesGroupingSeparator="NO" minimumIntegerDigits="0" maximumIntegerDigits="42" id="14I-lw-kIN"/>
                                         <font key="font" metaFont="miniSystem"/>
                                 <textField verticalHuggingPriority="750" id="442">
                                     <rect key="frame" x="278" y="56" width="37" height="16"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="left" drawsBackground="YES" id="443">
                                         <numberFormatter key="formatter" formatterBehavior="default10_4" usesGroupingSeparator="NO" minimumIntegerDigits="0" maximumIntegerDigits="42" id="t04-vN-OL7"/>
                                         <font key="font" metaFont="miniSystem"/>
                                 <textField verticalHuggingPriority="750" id="444">
                                     <rect key="frame" x="207" y="81" width="67" height="16"/>
                                     <autoresizingMask key="autoresizingMask"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="PAR Width:" id="445">
                                         <font key="font" metaFont="smallSystem"/>
                                         <color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
                                 <textField verticalHuggingPriority="750" id="446">
                                     <rect key="frame" x="202" y="56" width="71" height="16"/>
                                     <autoresizingMask key="autoresizingMask"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="PAR Height:" id="447">
                                         <font key="font" metaFont="smallSystem"/>
                                         <color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
                                 <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="44">
                                     <rect key="frame" x="143" y="103" width="15" height="22"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <stepperCell key="cell" controlSize="small" continuous="YES" alignment="left" increment="16" minValue="64" maxValue="59" doubleValue="59" id="169">
                                         <font key="font" metaFont="smallSystem"/>
                                     </stepperCell>
                                     <connections>
                                         <binding destination="-2" name="maxValue" keyPath="self.picture.maxWidth" id="P3g-UC-vRH"/>
                                         <binding destination="-2" name="value" keyPath="self.picture.width" previousBinding="P3g-UC-vRH" id="Ilz-OP-M5c"/>
-                                        <binding destination="-2" name="enabled" keyPath="self.picture.widthEditable" id="ied-mi-MjS"/>
                                     </connections>
                                 </stepper>
                                 <popUpButton verticalHuggingPriority="750" id="384">
                                     <rect key="frame" x="75" y="15" width="46" height="15"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <popUpButtonCell key="cell" type="push" title="4" bezelStyle="rounded" alignment="left" controlSize="mini" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="389" id="385">
                                         <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                         <font key="font" metaFont="miniSystem"/>
                                 <textField verticalHuggingPriority="750" id="42">
                                     <rect key="frame" x="76" y="107" width="62" height="16"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="left" drawsBackground="YES" id="167">
                                         <numberFormatter key="formatter" formatterBehavior="default10_4" localizesFormat="NO" usesGroupingSeparator="NO" minimumIntegerDigits="0" maximumIntegerDigits="42" id="le0-iC-NhW"/>
                                         <font key="font" metaFont="miniSystem"/>
                                                 <bool key="NSValidatesImmediately" value="YES"/>
                                             </dictionary>
                                         </binding>
-                                        <binding destination="-2" name="editable" keyPath="self.picture.widthEditable" id="YBx-pZ-bPA"/>
                                     </connections>
                                 </textField>
                                 <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="46">
                                     <rect key="frame" x="143" y="78" width="15" height="22"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <stepperCell key="cell" controlSize="small" continuous="YES" alignment="left" increment="16" minValue="64" maxValue="59" doubleValue="64" id="171">
                                         <font key="font" metaFont="smallSystem"/>
                                     </stepperCell>
                                     <connections>
                                         <binding destination="-2" name="value" keyPath="self.picture.height" previousBinding="nJk-wN-aaB" id="l4c-7G-SMf"/>
-                                        <binding destination="-2" name="enabled" keyPath="self.picture.heightEditable" id="Fdi-IK-Y16"/>
                                         <binding destination="-2" name="maxValue" keyPath="self.picture.maxHeight" id="nJk-wN-aaB"/>
                                     </connections>
                                 </stepper>
                                 <textField verticalHuggingPriority="750" id="138">
                                     <rect key="frame" x="-1" y="38" width="73" height="14"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="small" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Anamorphic:" id="174">
                                         <font key="font" metaFont="smallSystem"/>
                                         <color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
                                 <textField verticalHuggingPriority="750" id="41">
                                     <rect key="frame" x="29" y="82" width="43" height="14"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Height:" id="166">
                                         <font key="font" metaFont="smallSystem"/>
                                         <color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
                                 <popUpButton verticalHuggingPriority="750" id="132">
                                     <rect key="frame" x="75" y="38" width="80" height="15"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
-                                    <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" controlSize="mini" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" id="173">
+                                    <string key="toolTip">None  - Force pixel aspect ratio to 1:1.
+Loose - Align dimensions to chosen 'Alignment' value and pick pixel aspect ratio that preserves the original display aspect ratio.
+Automatic - Use a pixel aspect ratio that maximizes storage resolution while preserving the original display aspect ratio.</string>
+                                    <popUpButtonCell key="cell" type="push" title="Off" bezelStyle="rounded" alignment="left" controlSize="mini" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="135" id="173">
                                         <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                         <font key="font" metaFont="miniSystem"/>
                                         <menu key="menu" title="OtherViews" id="134">
                                             <items>
-                                                <menuItem title="Item 1" id="135"/>
-                                                <menuItem title="Item 2" id="136"/>
-                                                <menuItem title="Item 3" id="137"/>
+                                                <menuItem title="Off" state="on" id="135"/>
+                                                <menuItem title="Auto" tag="4" id="136"/>
+                                                <menuItem title="Loose" tag="2" id="137"/>
+                                                <menuItem title="Custom" tag="3" id="Gsa-Ti-xiw"/>
                                             </items>
                                         </menu>
                                     </popUpButtonCell>
                                     <connections>
-                                        <binding destination="-2" name="selectedIndex" keyPath="self.picture.anamorphicMode" id="nZC-Kh-dDe"/>
+                                        <binding destination="-2" name="selectedTag" keyPath="self.picture.anamorphicMode" id="edu-WH-uPF"/>
                                     </connections>
                                 </popUpButton>
                                 <textField verticalHuggingPriority="750" id="390">
                                     <rect key="frame" x="19" y="15" width="53" height="14"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="small" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Modulus:" id="391">
                                         <font key="font" metaFont="smallSystem"/>
                                         <color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
                                 <textField verticalHuggingPriority="750" id="47">
                                     <rect key="frame" x="32" y="108" width="38" height="14"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Width:" id="172">
                                         <font key="font" metaFont="smallSystem"/>
                                         <color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
                                 <textField verticalHuggingPriority="750" id="43">
                                     <rect key="frame" x="76" y="81" width="62" height="16"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="left" drawsBackground="YES" id="168">
                                         <numberFormatter key="formatter" formatterBehavior="default10_4" localizesFormat="NO" usesGroupingSeparator="NO" minimumIntegerDigits="0" maximumIntegerDigits="42" id="9iU-HJ-b4u"/>
                                         <font key="font" metaFont="miniSystem"/>
                                                 <bool key="NSValidatesImmediately" value="YES"/>
                                             </dictionary>
                                         </binding>
-                                        <binding destination="-2" name="editable" keyPath="self.picture.heightEditable" id="Je1-xf-WNB"/>
                                     </connections>
                                 </textField>
                                 <button id="45">
                                     <rect key="frame" x="73" y="57" width="125" height="18"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <buttonCell key="cell" type="check" title="Keep Aspect Ratio" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="170" customClass="HBHUDButtonCell">
                                         <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
                                         <font key="font" metaFont="smallSystem"/>
                                 <textField verticalHuggingPriority="750" id="396">
                                     <rect key="frame" x="278" y="106" width="61" height="16"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="left" drawsBackground="YES" id="397">
                                         <numberFormatter key="formatter" formatterBehavior="default10_4" usesGroupingSeparator="NO" minimumIntegerDigits="0" maximumIntegerDigits="42" id="nQn-4z-uRG"/>
                                         <font key="font" metaFont="miniSystem"/>
                                     </connections>
                                 </textField>
                             </subviews>
-                            <animations/>
                         </view>
-                        <animations/>
-                        <color key="borderColor" white="0.0" alpha="0.41999999999999998" colorSpace="calibratedWhite"/>
-                        <color key="fillColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
                         <connections>
                             <binding destination="-2" name="hidden" keyPath="self.picture" id="KPV-JY-efR">
                                 <dictionary key="options">
                     <box borderType="none" titlePosition="noTitle" id="7">
                         <rect key="frame" x="377" y="5" width="254" height="126"/>
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                        <view key="contentView">
+                        <view key="contentView" id="tBW-2g-t2L">
                             <rect key="frame" x="0.0" y="0.0" width="254" height="126"/>
                             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                             <subviews>
                                 <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="12">
                                     <rect key="frame" x="169" y="55" width="15" height="22"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <animations/>
                                     <stepperCell key="cell" controlSize="small" continuous="YES" alignment="left" increment="2" maxValue="59" id="152">
                                         <font key="font" metaFont="smallSystem"/>
                                     </stepperCell>
                                 <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="15">
                                     <rect key="frame" x="232" y="45" width="15" height="22"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <animations/>
                                     <stepperCell key="cell" controlSize="small" continuous="YES" alignment="left" increment="2" maxValue="59" id="155">
                                         <font key="font" metaFont="smallSystem"/>
                                     </stepperCell>
                                 <matrix verticalHuggingPriority="750" allowsEmptySelection="NO" autosizesCells="NO" id="16">
                                     <rect key="frame" x="64" y="84" width="90" height="43"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <animations/>
                                     <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
                                     <size key="cellSize" width="90" height="20"/>
                                     <size key="intercellSpacing" width="2" height="3"/>
                                 <textField verticalHuggingPriority="750" id="13">
                                     <rect key="frame" x="131" y="58" width="36" height="16"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="left" drawsBackground="YES" id="153">
                                         <font key="font" metaFont="miniSystem"/>
                                         <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
                                 <textField verticalHuggingPriority="750" id="10">
                                     <rect key="frame" x="131" y="31" width="36" height="16"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="left" drawsBackground="YES" id="150">
                                         <font key="font" metaFont="miniSystem"/>
                                         <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
                                 <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="19">
                                     <rect key="frame" x="110" y="46" width="15" height="22"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <animations/>
                                     <stepperCell key="cell" controlSize="small" continuous="YES" alignment="left" increment="2" maxValue="59" id="156">
                                         <font key="font" metaFont="smallSystem"/>
                                     </stepperCell>
                                 <textField verticalHuggingPriority="750" id="11">
                                     <rect key="frame" x="72" y="49" width="36" height="16"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="left" drawsBackground="YES" id="151">
                                         <font key="font" metaFont="miniSystem"/>
                                         <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
                                 <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="14">
                                     <rect key="frame" x="169" y="28" width="15" height="22"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <animations/>
                                     <stepperCell key="cell" controlSize="small" continuous="YES" alignment="left" increment="2" maxValue="59" id="154">
                                         <font key="font" metaFont="smallSystem"/>
                                     </stepperCell>
                                 <textField verticalHuggingPriority="750" id="382">
                                     <rect key="frame" x="3" y="107" width="59" height="17"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Cropping:" id="383">
                                         <font key="font" metaFont="smallSystem"/>
                                         <color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
                                 <textField verticalHuggingPriority="750" id="9">
                                     <rect key="frame" x="194" y="48" width="36" height="16"/>
                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <animations/>
                                     <textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="left" drawsBackground="YES" id="149">
                                         <font key="font" metaFont="miniSystem"/>
                                         <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
                                     </connections>
                                 </textField>
                             </subviews>
-                            <animations/>
                         </view>
-                        <animations/>
-                        <color key="borderColor" white="0.0" alpha="0.41999999999999998" colorSpace="calibratedWhite"/>
-                        <color key="fillColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
                         <connections>
                             <binding destination="-2" name="hidden" keyPath="self.picture" id="jts-02-CW1">
                                 <dictionary key="options">
                         </connections>
                     </box>
                 </subviews>
-                <animations/>
             </view>
             <connections>
                 <outlet property="delegate" destination="-2" id="hby-dR-NFK"/>
             </connections>
-            <point key="canvasLocation" x="-203" y="-67"/>
+            <point key="canvasLocation" x="117" y="-28"/>
         </window>
         <userDefaultsController representsSharedInstance="YES" id="vUw-ux-GVV"/>
     </objects>
index 26d7b96c1f0c5f874b3d627b7da2576be1ba3f5d..9c82e4087593ff420c98cff71db7388b868ada1a 100644 (file)
@@ -59,13 +59,8 @@ typedef NS_ENUM(NSUInteger, HBAddPresetControllerMode) {
 - (void)windowDidLoad {
     [super windowDidLoad];
 
-    /*
-     * Populate the preset picture settings popup.
-     *
-     * Custom is not applicable when the anamorphic mode is Strict.
-     *
-     * Use [NSMenuItem tag] to store preset values for each option.
-     */
+    // Populate the preset picture settings popup.
+    // Use [NSMenuItem tag] to store preset values for each option.
 
     // Default to Source Maximum
     HBAddPresetControllerMode mode = HBAddPresetControllerModeSourceMaximum;
@@ -73,16 +68,12 @@ typedef NS_ENUM(NSUInteger, HBAddPresetControllerMode) {
     [self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"None", nil)];
     [[self.picSettingsPopUp lastItem] setTag:HBAddPresetControllerModeNone];
 
-    if (![self.preset[@"PicturePAR"] isEqualToString:@"strict"])
+    [self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"Custom", nil)];
+    [[self.picSettingsPopUp lastItem] setTag:HBAddPresetControllerModeCustom];
+
+    if (self.defaultToCustom)
     {
-        // not Strict, Custom is applicable
-        [self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"Custom", nil)];
-        [[self.picSettingsPopUp lastItem] setTag:HBAddPresetControllerModeCustom];
-
-        if (self.defaultToCustom)
-        {
-            mode = HBAddPresetControllerModeCustom;
-        }
+        mode = HBAddPresetControllerModeCustom;
     }
     [self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"Source Maximum", nil)];
     [[self.picSettingsPopUp lastItem] setTag:HBAddPresetControllerModeSourceMaximum];
index c137061460e4821505c90114f68ad1f5a59722c8..0d191db45dfcc23f58b18e06c88aedbc111cabc2 100644 (file)
@@ -22,9 +22,6 @@
 @property (nonatomic, readonly) int maxVerticalCrop;
 @property (nonatomic, readonly) int maxHorizontalCrop;
 
-@property (nonatomic, readonly, getter=isWidthEditable) BOOL widthEditable;
-@property (nonatomic, readonly, getter=isHeightEditable) BOOL heightEditable;
-
 @property (nonatomic, readonly, getter=isKeepDisplayAspectEditable) BOOL keepDisplayAspectEditable;
 @property (nonatomic, readonly, getter=isCustomAnamorphicEnabled) BOOL customAnamorphicEnabled;
 
index 81da8c986ec5c11d7d08185fa80873ac6c8c7c39..265d1c1ad31067d770789569f0cc731cea1b97b3 100644 (file)
 
 #pragma mark - Editable state
 
-+ (NSSet<NSString *> *)keyPathsForValuesAffectingWidthEditable
-{
-    return [NSSet setWithObjects:@"anamorphicMode", nil];
-}
-
-- (BOOL)isWidthEditable
-{
-    return (self.anamorphicMode != HB_ANAMORPHIC_STRICT) ? YES : NO;
-}
-
-+ (NSSet<NSString *> *)keyPathsForValuesAffectingHeightEditable
-{
-    return [NSSet setWithObjects:@"anamorphicMode", nil];
-}
-
-- (BOOL)isHeightEditable
-{
-    return (self.anamorphicMode != HB_ANAMORPHIC_STRICT) ? YES : NO;
-}
-
 + (NSSet<NSString *> *)keyPathsForValuesAffectingKeepDisplayAspectEditable
 {
     return [NSSet setWithObjects:@"anamorphicMode", nil];
@@ -45,7 +25,7 @@
 
 - (BOOL)isKeepDisplayAspectEditable
 {
-    if (self.anamorphicMode == HB_ANAMORPHIC_STRICT ||
+    if (self.anamorphicMode == HB_ANAMORPHIC_AUTO ||
         self.anamorphicMode == HB_ANAMORPHIC_LOOSE)
     {
         return NO;
                 @"Source: %dx%d, ",
                 self.sourceWidth, self.sourceHeight];
 
-    if (self.anamorphicMode == HB_ANAMORPHIC_STRICT) // Original PAR Implementation
+    if (self.anamorphicMode == HB_ANAMORPHIC_AUTO)
     {
         sizeInfo = [NSString stringWithFormat:
-                    @"%@Output: %dx%d, Anamorphic: %dx%d Strict",
+                    @"%@Output: %dx%d, Anamorphic: %dx%d Auto",
                     sizeInfo, self.width, self.height, self.displayWidth, self.height];
     }
     else if (self.anamorphicMode == HB_ANAMORPHIC_LOOSE) // Loose Anamorphic
 {
     NSMutableString *summary = [NSMutableString stringWithString:@""];
     [summary appendString:self.info];
-
-    if (self.anamorphicMode != HB_ANAMORPHIC_STRICT)
-    {
-        // anamorphic is not Strict, show the modulus
-        [summary appendFormat:@", Modulus: %d", self.modulus];
-    }
-
+    [summary appendFormat:@", Modulus: %d", self.modulus];
     [summary appendFormat:@", Crop: %s %d/%d/%d/%d",
      self.autocrop ? "Auto" : "Custom",
      self.cropTop, self.cropBottom,
index e22f164c5b581549a13f7bf5dd29b410aef3c19b..d945936691c7b06c39dcf8875b6c8495d6f064c1 100644 (file)
@@ -15,7 +15,8 @@ typedef NS_ENUM(NSUInteger, HBPictureAnarmophicMode) {
     HBPictureAnarmophicModeNone,
     HBPictureAnarmophicModeStrict,
     HBPictureAnarmophicModeLoose,
-    HBPictureAnarmophicModeCustom
+    HBPictureAnarmophicModeCustom,
+    HBPictureAnarmophicModeAuto
 };
 
 extern NSString * const HBPictureChangedNotification;
index b9419e2bc50c9c3f87f4e7134b4437c70c15b355..97b1631aade0e2baef061c024ee43883f04d640c 100644 (file)
@@ -354,7 +354,7 @@ NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification";
     }
     _anamorphicMode = anamorphicMode;
 
-    if (self.anamorphicMode == HB_ANAMORPHIC_STRICT ||
+    if (self.anamorphicMode == HB_ANAMORPHIC_AUTO ||
         self.anamorphicMode == HB_ANAMORPHIC_LOOSE)
     {
         self.keepDisplayAspect = YES;
@@ -631,8 +631,8 @@ NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification";
         case HB_ANAMORPHIC_LOOSE:
             preset[@"PicturePAR"] = @"loose";
             break;
-        case HB_ANAMORPHIC_STRICT:
-            preset[@"PicturePAR"] = @"strict";
+        case HB_ANAMORPHIC_AUTO:
+            preset[@"PicturePAR"] = @"auto";
             break;
         case HB_ANAMORPHIC_CUSTOM:
             preset[@"PicturePAR"] = @"custom";
@@ -718,9 +718,9 @@ NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification";
         {
             self.anamorphicMode = HB_ANAMORPHIC_NONE;
         }
-        else if ([preset[@"PicturePAR"] isEqualToString:@"strict"])
+        else if ([preset[@"PicturePAR"] isEqualToString:@"auto"])
         {
-            self.anamorphicMode = HB_ANAMORPHIC_STRICT;
+            self.anamorphicMode = HB_ANAMORPHIC_AUTO;
         }
         else if ([preset[@"PicturePAR"] isEqualToString:@"custom"])
         {
index 371b6bc01d10c9c48f04068d417fa5da5e1869af..0014f687af94044ee93d5aba855b31977e8ba594 100644 (file)
@@ -65,10 +65,6 @@ static void *HBPictureControllerContext = &HBPictureControllerContext;
 {
     [[self window] setExcludedFromWindowsMenu:YES];
 
-    /* Populate the Anamorphic NSPopUp button here */
-    [fAnamorphicPopUp removeAllItems];
-    [fAnamorphicPopUp addItemsWithTitles:@[@"None", @"Strict", @"Loose", @"Custom"]];
-
     [self resizeInspectorForTab:nil];
     [self adjustSizingDisplay:nil];
 }