summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-08-29 17:36:17 +0200
committerDamiano Galassi <[email protected]>2015-08-29 17:36:17 +0200
commit20c7281478497e77af55c95da9a9bddc393e9b2d (patch)
tree0d7e658bb85ea982c70797c7051c1be09dc68262
parent2d847fea38299aa444bd27b1d9133f10eb9043a5 (diff)
MacGui: default to 'source maximum' in the Picture Size popup of the add preset window
-rw-r--r--macosx/English.lproj/AddPreset.xib18
-rw-r--r--macosx/HBAddPresetController.m7
2 files changed, 11 insertions, 14 deletions
diff --git a/macosx/English.lproj/AddPreset.xib b/macosx/English.lproj/AddPreset.xib
index 4d48828f9..07ffb9f62 100644
--- a/macosx/English.lproj/AddPreset.xib
+++ b/macosx/English.lproj/AddPreset.xib
@@ -1,9 +1,9 @@
<?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">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="8187.4" systemVersion="15A262e" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment identifier="macosx"/>
<development version="6300" identifier="xcode"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="8164.2"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="8187.4"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="HBAddPresetController">
@@ -97,12 +97,12 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" id="gOg-oO-8ar">
- <rect key="frame" x="1" y="6" width="52" height="16"/>
+ <rect key="frame" x="1" y="3" width="52" height="19"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<string key="toolTip">Select the maximum width allowed by the preset (has no effect if the preset specifies Strict anamorphic). 0 means no limit is placed on the width.</string>
<animations/>
- <textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="right" drawsBackground="YES" id="ExG-3m-WxY">
- <font key="font" metaFont="miniSystem"/>
+ <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="right" drawsBackground="YES" id="ExG-3m-WxY">
+ <font key="font" metaFont="smallSystem"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
@@ -119,12 +119,12 @@
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" id="Mga-dS-8BF">
- <rect key="frame" x="82" y="6" width="52" height="16"/>
+ <rect key="frame" x="82" y="3" width="52" height="19"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<string key="toolTip">Select the maximum height allowed by the preset (has no effect if the preset specifies Strict anamorphic). 0 means no limit is placed on the height.</string>
<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="tBe-1m-0r9">
- <font key="font" metaFont="miniSystem"/>
+ <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" alignment="left" drawsBackground="YES" id="tBe-1m-0r9">
+ <font key="font" metaFont="smallSystem"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
@@ -186,7 +186,7 @@ Gw
<connections>
<outlet property="delegate" destination="-2" id="YgD-Uk-vtp"/>
</connections>
- <point key="canvasLocation" x="514" y="410.5"/>
+ <point key="canvasLocation" x="269" y="371.5"/>
</window>
</objects>
</document>
diff --git a/macosx/HBAddPresetController.m b/macosx/HBAddPresetController.m
index 14999dfc6..61483a675 100644
--- a/macosx/HBAddPresetController.m
+++ b/macosx/HBAddPresetController.m
@@ -62,11 +62,8 @@
[self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"Source Maximum (post source scan)", @"")];
[[self.picSettingsPopUp lastItem] setTag: 2];
- /*
- * Default to Source Maximum for anamorphic Strict
- * Default to Custom for all other anamorphic modes
- */
- [self.picSettingsPopUp selectItemWithTag: (1 + ([self.preset.content[@"PicturePAR"] integerValue] == HB_ANAMORPHIC_STRICT))];
+ //Default to Source Maximum
+ [self.picSettingsPopUp selectItemWithTag:2];
/* Initialize custom height and width settings to current values */
[self.picWidth setStringValue: [NSString stringWithFormat:@"%d", (int)self.size.width]];