diff options
author | ritsuka <[email protected]> | 2015-01-20 07:58:22 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-20 07:58:22 +0000 |
commit | 9f4bbdbbd67e4365466fa6b98453dd0de8983098 (patch) | |
tree | 5025e56b384633fdfacc8150595f4ecb90b7990e /macosx/English.lproj | |
parent | 50445c5138c234e860dcf8b54134aa6668c896df (diff) |
MacGui: use bindings to enable/disable the main window ui elements.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6776 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/English.lproj')
-rw-r--r-- | macosx/English.lproj/MainMenu.xib | 77 |
1 files changed, 61 insertions, 16 deletions
diff --git a/macosx/English.lproj/MainMenu.xib b/macosx/English.lproj/MainMenu.xib index 2aa8f63da..e905e8410 100644 --- a/macosx/English.lproj/MainMenu.xib +++ b/macosx/English.lproj/MainMenu.xib @@ -92,6 +92,9 @@ <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> </textFieldCell> + <connections> + <binding destination="240" name="textColor" keyPath="self.labelColor" id="hQD-eK-scB"/> + </connections> </textField> <popUpButton verticalHuggingPriority="750" id="1541"> <rect key="frame" x="53" y="506" width="312" height="22"/> @@ -108,6 +111,11 @@ <accessibility description="Title"/> <connections> <action selector="titlePopUpChanged:" target="240" id="1567"/> + <binding destination="240" name="enabled" keyPath="self.job" id="qhW-2r-Dyu"> + <dictionary key="options"> + <string key="NSValueTransformerName">NSIsNotNil</string> + </dictionary> + </binding> </connections> </popUpButton> <popUpButton verticalHuggingPriority="750" id="5513"> @@ -119,6 +127,11 @@ <menu key="menu" title="OtherViews" id="5515"/> </popUpButtonCell> <connections> + <binding destination="240" name="enabled" keyPath="self.job" id="0hv-wd-DYQ"> + <dictionary key="options"> + <string key="NSValueTransformerName">NSIsNotNil</string> + </dictionary> + </binding> <binding destination="240" name="selectedIndex" keyPath="self.job.range.type" previousBinding="nr8-sN-wpW" id="eJw-0h-DAa"/> <binding destination="240" name="content" keyPath="self.job.range.types" id="nr8-sN-wpW"/> </connections> @@ -132,6 +145,7 @@ <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> </textFieldCell> <connections> + <binding destination="240" name="textColor" keyPath="self.labelColor" id="04p-bK-jZu"/> <binding destination="5676" name="hidden" keyPath="values.UseDvdNav" id="GhV-lP-BWw"> <dictionary key="options"> <string key="NSValueTransformerName">NSNegateBoolean</string> @@ -153,8 +167,13 @@ </popUpButtonCell> <accessibility description="Angle"/> <connections> + <binding destination="240" name="enabled" keyPath="self.job" id="E6D-8s-CYK"> + <dictionary key="options"> + <string key="NSValueTransformerName">NSIsNotNil</string> + </dictionary> + </binding> <binding destination="240" name="content" keyPath="self.job.angles" id="oFZ-d6-aeJ"/> - <binding destination="5676" name="hidden" keyPath="values.UseDvdNav" id="8xq-AL-yDc"> + <binding destination="5676" name="hidden" keyPath="values.UseDvdNav" previousBinding="E6D-8s-CYK" id="U04-3Y-Z7d"> <dictionary key="options"> <string key="NSValueTransformerName">NSNegateBoolean</string> </dictionary> @@ -169,6 +188,9 @@ <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> </textFieldCell> + <connections> + <binding destination="240" name="textColor" keyPath="self.labelColor" id="qTW-e6-NIe"/> + </connections> </textField> <textField verticalHuggingPriority="750" id="1553"> <rect key="frame" x="764" y="511" width="65" height="14"/> @@ -178,6 +200,13 @@ <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> </textFieldCell> + <connections> + <binding destination="240" name="hidden" keyPath="self.job" id="1z1-WP-lXF"> + <dictionary key="options"> + <string key="NSValueTransformerName">NSIsNil</string> + </dictionary> + </binding> + </connections> </textField> <textField verticalHuggingPriority="750" id="1554"> <rect key="frame" x="829" y="511" width="99" height="14"/> @@ -188,6 +217,11 @@ <color key="backgroundColor" red="0.76630436999999996" green="0.0" blue="0.0" alpha="0.0" colorSpace="calibratedRGB"/> </textFieldCell> <connections> + <binding destination="240" name="hidden" keyPath="self.job" id="Xf7-IA-bzp"> + <dictionary key="options"> + <string key="NSValueTransformerName">NSIsNil</string> + </dictionary> + </binding> <binding destination="240" name="value" keyPath="self.job.range.duration" id="D3F-S5-u15"/> </connections> </textField> @@ -214,6 +248,11 @@ </popUpButtonCell> <accessibility description="Format"/> <connections> + <binding destination="240" name="enabled" keyPath="self.job" id="rkV-UW-k5X"> + <dictionary key="options"> + <string key="NSValueTransformerName">NSIsNotNil</string> + </dictionary> + </binding> <binding destination="240" name="selectedValue" keyPath="self.job.container" previousBinding="7Po-AA-KsM" id="brh-Ek-It1"> <dictionary key="options"> <string key="NSValueTransformerName">HBContainerTransformer</string> @@ -231,6 +270,11 @@ </buttonCell> <connections> <action selector="browseFile:" target="240" id="1579"/> + <binding destination="240" name="enabled" keyPath="self.job" id="MHg-yi-1ag"> + <dictionary key="options"> + <string key="NSValueTransformerName">NSIsNotNil</string> + </dictionary> + </binding> </connections> </button> <box verticalHuggingPriority="750" title="Box" boxType="separator" titlePosition="noTitle" id="1623"> @@ -258,6 +302,11 @@ <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> </textFieldCell> <connections> + <binding destination="240" name="enabled" keyPath="self.job" id="13e-O9-Pfx"> + <dictionary key="options"> + <string key="NSValueTransformerName">NSIsNotNil</string> + </dictionary> + </binding> <binding destination="240" name="value" keyPath="self.job.destURL" id="Vmi-3b-LD5"> <dictionary key="options"> <bool key="NSContinuouslyUpdatesValue" value="YES"/> @@ -379,6 +428,9 @@ <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> </textFieldCell> + <connections> + <binding destination="240" name="textColor" keyPath="self.labelColor" id="Esr-ae-0fm"/> + </connections> </textField> <box verticalHuggingPriority="750" title="Box" boxType="separator" titlePosition="noTitle" id="3205"> <rect key="frame" x="386" y="543" width="540" height="5"/> @@ -431,6 +483,13 @@ <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> </textFieldCell> + <connections> + <binding destination="240" name="hidden" keyPath="self.job" id="6TJ-gX-20A"> + <dictionary key="options"> + <string key="NSValueTransformerName">NSIsNil</string> + </dictionary> + </binding> + </connections> </textField> <popUpButton verticalHuggingPriority="750" id="1545"> <rect key="frame" x="578" y="506" width="60" height="22"/> @@ -546,7 +605,7 @@ <connections> <outlet property="delegate" destination="240" id="433"/> </connections> - <point key="canvasLocation" x="954" y="541"/> + <point key="canvasLocation" x="842" y="531"/> </window> <menu title="MainMenu" systemMenu="main" id="29" userLabel="MainMenu"> <items> @@ -1017,14 +1076,6 @@ DQ <outlet property="fAdvancedTab" destination="2015" id="4eO-Lg-7cH"/> <outlet property="fAudioTab" destination="1475" id="AuZ-Uf-bla"/> <outlet property="fChaptersTitlesTab" destination="1989" id="oUt-8L-Ag2"/> - <outlet property="fDstBrowseButton" destination="1562" id="1578"/> - <outlet property="fDstFile1Field" destination="1552" id="1596"/> - <outlet property="fDstFile2Field" destination="1561" id="N8U-j2-c00"/> - <outlet property="fDstFormatField" destination="1556" id="1583"/> - <outlet property="fDstFormatPopUp" destination="1557" id="1584"/> - <outlet property="fDstMp4HttpOptFileCheck" destination="4579" id="4581"/> - <outlet property="fDstMp4iPodFileCheck" destination="4967" id="4969"/> - <outlet property="fEncodeStartStopPopUp" destination="5513" id="5527"/> <outlet property="fMainTabView" destination="1474" id="XMU-Vi-8QM"/> <outlet property="fOpenSourceTitleMMenu" destination="2698" id="2700"/> <outlet property="fPresetDrawer" destination="1841" id="1889"/> @@ -1037,20 +1088,14 @@ DQ <outlet property="fScanSrcTitleOpenButton" destination="2708" id="2712"/> <outlet property="fScanSrcTitlePanel" destination="2701" id="2713"/> <outlet property="fScanSrcTitlePathField" destination="2703" id="2709"/> - <outlet property="fSrcAngleLabel" destination="5180" id="5186"/> - <outlet property="fSrcAnglePopUp" destination="5181" id="5533"/> <outlet property="fSrcChapterEndPopUp" destination="1548" id="1569"/> <outlet property="fSrcChapterStartPopUp" destination="1545" id="1568"/> - <outlet property="fSrcChapterToField" destination="5505" id="5532"/> <outlet property="fSrcDVD2Field" destination="1539" id="1591"/> <outlet property="fSrcDsplyNameTitleScan" destination="2720" id="2721"/> - <outlet property="fSrcDuration1Field" destination="1553" id="1589"/> - <outlet property="fSrcDuration2Field" destination="1554" id="1590"/> <outlet property="fSrcFrameEndEncodingField" destination="5523" id="5526"/> <outlet property="fSrcFrameStartEncodingField" destination="5521" id="5525"/> <outlet property="fSrcTimeEndEncodingField" destination="5493" id="5508"/> <outlet property="fSrcTimeStartEncodingField" destination="5491" id="5507"/> - <outlet property="fSrcTitleField" destination="1540" id="1592"/> <outlet property="fSrcTitlePopUp" destination="1541" id="1593"/> <outlet property="fStatusField" destination="1123" id="1238"/> <outlet property="fSubtitlesTab" destination="5194" id="d9b-rJ-XrS"/> |