Skip to content

Commit

Permalink
MacGui: use an pair of 'OK' and 'Cancel' buttons in the defaults shee…
Browse files Browse the repository at this point in the history
…ts instead of a single done button. Fixed the bitrates and mixdowns popups in the audio defaults.
  • Loading branch information
galad87 committed Oct 29, 2015
1 parent 9dfee71 commit 5adef96
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 52 deletions.
31 changes: 23 additions & 8 deletions macosx/English.lproj/AudioDefaults.xib
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9059" systemVersion="15B42" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9059" systemVersion="15C27e" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment identifier="macosx"/>
<development version="6300" identifier="xcode"/>
Expand Down Expand Up @@ -156,18 +156,18 @@
</connections>
</button>
<button verticalHuggingPriority="750" id="sC2-52-liU">
<rect key="frame" x="744" y="14" width="54" height="28"/>
<rect key="frame" x="718" y="14" width="80" height="28"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
<animations/>
<buttonCell key="cell" type="push" title="Done" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="kDe-1L-VkD">
<buttonCell key="cell" type="push" title="OK" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="kDe-1L-VkD">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
<string key="keyEquivalent" base64-UTF8="YES">
DQ
</string>
</buttonCell>
<connections>
<action selector="done:" target="-2" id="Rdg-PN-7l6"/>
<action selector="ok:" target="-2" id="pNO-TU-osz"/>
<outlet property="nextKeyView" destination="oiD-QI-wly" id="1gO-sY-HNE"/>
</connections>
</button>
Expand Down Expand Up @@ -488,14 +488,14 @@ DQ
<menu key="menu" id="xhO-vr-WJF"/>
</popUpButtonCell>
<connections>
<binding destination="5No-Mm-bpD" name="content" keyPath="objectValue.sampleRates" id="adb-9q-L5r"/>
<binding destination="5No-Mm-bpD" name="enabled" keyPath="objectValue.mixdownEnabled" id="E9O-S2-Uq8"/>
<binding destination="5No-Mm-bpD" name="selectedValue" keyPath="objectValue.sampleRate" previousBinding="adb-9q-L5r" id="DxT-bF-prJ">
<dictionary key="options">
<string key="NSNullPlaceholder">Auto</string>
<string key="NSValueTransformerName">HBSampleRateTransformer</string>
</dictionary>
</binding>
<binding destination="5No-Mm-bpD" name="content" keyPath="objectValue.sampleRates" id="adb-9q-L5r"/>
</connections>
</popUpButton>
</subviews>
Expand Down Expand Up @@ -530,13 +530,13 @@ DQ
<menu key="menu" id="pWk-70-S7v"/>
</popUpButtonCell>
<connections>
<binding destination="Bxd-gI-dFS" name="content" keyPath="objectValue.bitRates" id="aT6-o7-lFG"/>
<binding destination="Bxd-gI-dFS" name="enabled" keyPath="objectValue.bitrateEnabled" id="paa-Sa-JU9"/>
<binding destination="Bxd-gI-dFS" name="selectedValue" keyPath="objectValue.bitRate" previousBinding="aT6-o7-lFG" id="CSr-pu-s9O">
<dictionary key="options">
<string key="NSValueTransformerName">HBIntegerTransformer</string>
</dictionary>
</binding>
<binding destination="Bxd-gI-dFS" name="content" keyPath="objectValue.bitRates" id="aT6-o7-lFG"/>
<binding destination="Bxd-gI-dFS" name="enabled" keyPath="objectValue.bitrateEnabled" id="paa-Sa-JU9"/>
</connections>
</popUpButton>
</subviews>
Expand Down Expand Up @@ -677,13 +677,28 @@ DQ
<binding destination="-2" name="value" keyPath="self.settings.secondaryEncoderMode" id="Umc-CV-pJy"/>
</connections>
</button>
<button verticalHuggingPriority="750" id="kJY-av-BYf">
<rect key="frame" x="640" y="14" width="80" height="28"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Jn4-1L-J1g">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
<string key="keyEquivalent" base64-UTF8="YES">
Gw
</string>
</buttonCell>
<connections>
<action selector="cancel:" target="-2" id="Vkr-zh-YAJ"/>
</connections>
</button>
</subviews>
<animations/>
</view>
<connections>
<outlet property="initialFirstResponder" destination="oiD-QI-wly" id="Vxi-xi-P0d"/>
</connections>
<point key="canvasLocation" x="-205.5" y="81"/>
<point key="canvasLocation" x="187.5" y="96"/>
</window>
<arrayController objectClassName="HBLang" id="ZBe-aP-wvq" userLabel="Languages Table Controller" customClass="HBLanguageArrayController">
<declaredKeys>
Expand Down

0 comments on commit 5adef96

Please sign in to comment.