Refactor some windows to views.
This commit is contained in:
18 files changed
+1685
-1879
No files matched your search
+124
-115
@@ -1,133 +1,142 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14269.14" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment version="101100" identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14269.14"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="ArtworkSelectorController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="addArtworkButton" destination="9" id="46"/>
|
||||
<outlet property="imageBrowser" destination="dsp-Oy-lJU" id="MJV-to-bBM"/>
|
||||
<outlet property="loadMoreArtworkButton" destination="7" id="48"/>
|
||||
<outlet property="slider" destination="8" id="43"/>
|
||||
<outlet property="window" destination="3" id="37"/>
|
||||
<outlet property="addArtworkButton" destination="fCL-eV-Fib" id="HSP-q9-au1"/>
|
||||
<outlet property="imageBrowser" destination="234-cJ-3Un" id="WQ5-6l-hLv"/>
|
||||
<outlet property="loadMoreArtworkButton" destination="iH5-SJ-sDV" id="AaQ-Ti-f6l"/>
|
||||
<outlet property="progress" destination="AYL-Jp-agY" id="7lH-Ug-dos"/>
|
||||
<outlet property="progressText" destination="NEi-uU-Lh7" id="nIf-3x-UiN"/>
|
||||
<outlet property="slider" destination="fMj-Ew-Qej" id="K1J-fq-A0m"/>
|
||||
<outlet property="view" destination="KSl-SU-b4m" id="WF4-1Q-B7f"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" visibleAtLaunch="NO" frameAutosaveName="artworkWindow" animationBehavior="default" id="3">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" resizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="227" y="346" width="480" height="380"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<value key="minSize" type="size" width="480" height="380"/>
|
||||
<view key="contentView" id="4">
|
||||
<rect key="frame" x="0.0" y="0.0" width="480" height="380"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9">
|
||||
<rect key="frame" x="338" y="12" width="128" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Set as artwork" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="14">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
<collectionViewItem id="tcm-Rs-Ndm" customClass="ArtworkSelectorViewItem" customModule="Subler" customModuleProvider="target"/>
|
||||
<view id="KSl-SU-b4m">
|
||||
<rect key="frame" x="0.0" y="0.0" width="543" height="555"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="fCL-eV-Fib">
|
||||
<rect key="frame" x="401" y="12" width="128" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Set as artwork" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="rMb-PC-yTA">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
DQ
|
||||
</string>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="addArtwork:" target="-2" id="38"/>
|
||||
</connections>
|
||||
</button>
|
||||
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="8">
|
||||
<rect key="frame" x="360" y="49" width="100" height="18"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="100" id="0Mf-Un-HXH"/>
|
||||
</constraints>
|
||||
<sliderCell key="cell" controlSize="small" continuous="YES" alignment="left" maxValue="100" doubleValue="50" tickMarkPosition="above" numberOfTickMarks="5" sliderType="linear" id="15"/>
|
||||
<accessibility description="Zoom"/>
|
||||
<connections>
|
||||
<action selector="zoomSliderDidChange:" target="-2" id="44"/>
|
||||
</connections>
|
||||
</slider>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="7">
|
||||
<rect key="frame" x="14" y="12" width="166" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Load more artwork..." bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="16">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent">l</string>
|
||||
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="loadMoreArtwork:" target="-2" id="47"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="49">
|
||||
<rect key="frame" x="265" y="12" width="73" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="50">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="addArtwork:" target="-2" id="eGv-gN-uXf"/>
|
||||
</connections>
|
||||
</button>
|
||||
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="fMj-Ew-Qej">
|
||||
<rect key="frame" x="423" y="49" width="100" height="18"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="100" id="6u0-UA-h3Q"/>
|
||||
</constraints>
|
||||
<sliderCell key="cell" controlSize="small" continuous="YES" alignment="left" maxValue="100" doubleValue="50" tickMarkPosition="above" numberOfTickMarks="5" sliderType="linear" id="ZF9-dG-qTM"/>
|
||||
<accessibility description="Zoom"/>
|
||||
<connections>
|
||||
<action selector="zoomSliderDidChange:" target="-2" id="aZZ-r0-e8K"/>
|
||||
</connections>
|
||||
</slider>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="iH5-SJ-sDV">
|
||||
<rect key="frame" x="14" y="12" width="166" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Load more artwork..." bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="40h-Rv-m31">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent">l</string>
|
||||
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="loadMoreArtwork:" target="-2" id="lrj-Sl-kGk"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Zyu-WY-ltM">
|
||||
<rect key="frame" x="328" y="12" width="73" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="UDG-fN-bQH">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
Gw
|
||||
</string>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="addNoArtwork:" target="-2" id="51"/>
|
||||
</connections>
|
||||
</button>
|
||||
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1V5-n3-xKs">
|
||||
<rect key="frame" x="20" y="75" width="440" height="285"/>
|
||||
<clipView key="contentView" drawsBackground="NO" id="5rm-GN-VhB">
|
||||
<rect key="frame" x="1" y="1" width="438" height="283"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<collectionView selectable="YES" allowsMultipleSelection="YES" id="dsp-Oy-lJU" customClass="CollectionView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="438" height="283"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="jsh-bc-hMg">
|
||||
<size key="itemSize" width="154" height="194"/>
|
||||
<edgeInsets key="sectionInset" left="8" right="8" top="8" bottom="8"/>
|
||||
</collectionViewFlowLayout>
|
||||
<color key="primaryBackgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="oM6-JY-ET6"/>
|
||||
<outlet property="delegate" destination="-2" id="uBZ-z7-Rag"/>
|
||||
</connections>
|
||||
</collectionView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="VPu-d7-Ls1">
|
||||
<rect key="frame" x="-100" y="-100" width="372" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="63w-uG-eHg">
|
||||
<rect key="frame" x="403" y="1" width="16" height="251"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
</scrollView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="9" firstAttribute="top" secondItem="8" secondAttribute="bottom" constant="10" id="42t-0L-Sim"/>
|
||||
<constraint firstItem="9" firstAttribute="leading" secondItem="49" secondAttribute="trailing" constant="12" symbolic="YES" id="9KU-rV-HX6"/>
|
||||
<constraint firstAttribute="trailing" secondItem="9" secondAttribute="trailing" constant="20" id="Afl-w6-Sam"/>
|
||||
<constraint firstAttribute="bottom" secondItem="7" secondAttribute="bottom" constant="19" id="Ef2-6N-v4D"/>
|
||||
<constraint firstItem="49" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="7" secondAttribute="trailing" constant="66" id="KZN-qg-yUG"/>
|
||||
<constraint firstItem="1V5-n3-xKs" firstAttribute="top" secondItem="4" secondAttribute="top" constant="20" id="Sbz-On-xIY"/>
|
||||
<constraint firstItem="7" firstAttribute="leading" secondItem="4" secondAttribute="leading" constant="20" id="UkB-GM-zr7"/>
|
||||
<constraint firstItem="7" firstAttribute="baseline" secondItem="49" secondAttribute="baseline" id="X0P-3j-fGS"/>
|
||||
<constraint firstItem="1V5-n3-xKs" firstAttribute="leading" secondItem="4" secondAttribute="leading" constant="20" id="YA3-u4-Re0"/>
|
||||
<constraint firstItem="8" firstAttribute="top" secondItem="1V5-n3-xKs" secondAttribute="bottom" constant="8" id="d0O-3L-94x"/>
|
||||
<constraint firstItem="8" firstAttribute="trailing" secondItem="9" secondAttribute="trailing" id="fJ9-o3-pFG"/>
|
||||
<constraint firstAttribute="trailing" secondItem="1V5-n3-xKs" secondAttribute="trailing" constant="20" id="hz6-yA-FD7"/>
|
||||
<constraint firstItem="49" firstAttribute="baseline" secondItem="9" secondAttribute="baseline" id="s1P-63-ywo"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<connections>
|
||||
<outlet property="delegate" destination="-2" id="35"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="154" y="-19"/>
|
||||
</window>
|
||||
<collectionViewItem id="tcm-Rs-Ndm" customClass="ArtworkSelectorViewItem" customModule="Subler" customModuleProvider="target"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="addNoArtwork:" target="-2" id="un8-s7-Akx"/>
|
||||
</connections>
|
||||
</button>
|
||||
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="c0O-We-pZd">
|
||||
<rect key="frame" x="20" y="75" width="503" height="460"/>
|
||||
<clipView key="contentView" id="cHe-z7-drT">
|
||||
<rect key="frame" x="1" y="1" width="501" height="458"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<collectionView selectable="YES" allowsMultipleSelection="YES" id="234-cJ-3Un" customClass="CollectionView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="501" height="900"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="lte-fF-bVi">
|
||||
<size key="itemSize" width="154" height="194"/>
|
||||
<edgeInsets key="sectionInset" left="8" right="8" top="8" bottom="8"/>
|
||||
</collectionViewFlowLayout>
|
||||
<color key="primaryBackgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="oxk-iV-At8"/>
|
||||
<outlet property="delegate" destination="-2" id="k48-9q-LQv"/>
|
||||
</connections>
|
||||
</collectionView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="xE2-pc-Ql5">
|
||||
<rect key="frame" x="-100" y="-100" width="372" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="nbX-9d-w82">
|
||||
<rect key="frame" x="486" y="1" width="16" height="458"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
</scrollView>
|
||||
<progressIndicator hidden="YES" wantsLayer="YES" horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" translatesAutoresizingMaskIntoConstraints="NO" id="AYL-Jp-agY">
|
||||
<rect key="frame" x="20" y="48" width="16" height="16"/>
|
||||
</progressIndicator>
|
||||
<textField hidden="YES" horizontalHuggingPriority="249" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="NEi-uU-Lh7">
|
||||
<rect key="frame" x="41" y="49" width="86" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Progress status" id="TbL-2H-ra9">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="NEi-uU-Lh7" firstAttribute="leading" secondItem="AYL-Jp-agY" secondAttribute="trailing" constant="7" id="9gb-nE-23k"/>
|
||||
<constraint firstItem="fCL-eV-Fib" firstAttribute="top" secondItem="fMj-Ew-Qej" secondAttribute="bottom" constant="10" id="Bit-fx-eYz"/>
|
||||
<constraint firstItem="c0O-We-pZd" firstAttribute="top" secondItem="KSl-SU-b4m" secondAttribute="top" constant="20" id="DaJ-l8-5JN"/>
|
||||
<constraint firstItem="fMj-Ew-Qej" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="NEi-uU-Lh7" secondAttribute="trailing" constant="8" symbolic="YES" id="DmC-ra-q6e"/>
|
||||
<constraint firstItem="NEi-uU-Lh7" firstAttribute="centerY" secondItem="AYL-Jp-agY" secondAttribute="centerY" id="Fo0-OX-4Ly"/>
|
||||
<constraint firstItem="fCL-eV-Fib" firstAttribute="leading" secondItem="Zyu-WY-ltM" secondAttribute="trailing" constant="12" symbolic="YES" id="Fz9-R7-etp"/>
|
||||
<constraint firstItem="NEi-uU-Lh7" firstAttribute="leading" secondItem="AYL-Jp-agY" secondAttribute="trailing" constant="7" id="PqF-a5-1TS"/>
|
||||
<constraint firstItem="iH5-SJ-sDV" firstAttribute="baseline" secondItem="Zyu-WY-ltM" secondAttribute="baseline" id="TZ5-Zf-m3E"/>
|
||||
<constraint firstItem="fMj-Ew-Qej" firstAttribute="top" secondItem="c0O-We-pZd" secondAttribute="bottom" constant="8" id="X3N-5S-LkA"/>
|
||||
<constraint firstItem="fMj-Ew-Qej" firstAttribute="trailing" secondItem="fCL-eV-Fib" secondAttribute="trailing" id="btb-8f-0H1"/>
|
||||
<constraint firstItem="Zyu-WY-ltM" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="iH5-SJ-sDV" secondAttribute="trailing" constant="66" id="bzt-5D-vZw"/>
|
||||
<constraint firstItem="AYL-Jp-agY" firstAttribute="leading" secondItem="KSl-SU-b4m" secondAttribute="leading" constant="20" id="c0r-TQ-wVA"/>
|
||||
<constraint firstAttribute="bottom" secondItem="iH5-SJ-sDV" secondAttribute="bottom" constant="19" id="eKv-c7-1DF"/>
|
||||
<constraint firstItem="AYL-Jp-agY" firstAttribute="top" secondItem="c0O-We-pZd" secondAttribute="bottom" constant="11" id="eXW-TZ-PUd"/>
|
||||
<constraint firstAttribute="trailing" secondItem="fCL-eV-Fib" secondAttribute="trailing" constant="20" id="fgc-7c-j3N"/>
|
||||
<constraint firstItem="Zyu-WY-ltM" firstAttribute="baseline" secondItem="fCL-eV-Fib" secondAttribute="baseline" id="jRI-f7-8kS"/>
|
||||
<constraint firstItem="c0O-We-pZd" firstAttribute="leading" secondItem="KSl-SU-b4m" secondAttribute="leading" constant="20" id="pXh-Mx-QuV"/>
|
||||
<constraint firstAttribute="trailing" secondItem="c0O-We-pZd" secondAttribute="trailing" constant="20" id="q23-OJ-7hs"/>
|
||||
<constraint firstItem="iH5-SJ-sDV" firstAttribute="leading" secondItem="KSl-SU-b4m" secondAttribute="leading" constant="20" id="vLK-rL-Fm5"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="171.5" y="241.5"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -1,137 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14269.14" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14269.14"/>
|
||||
<plugIn identifier="com.apple.imagekit.ibplugin" version="14269.14"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="ArtworkSelectorControllerOldStyle" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="addArtworkButton" destination="9" id="46"/>
|
||||
<outlet property="imageBrowser" destination="11" id="45"/>
|
||||
<outlet property="loadMoreArtworkButton" destination="7" id="48"/>
|
||||
<outlet property="slider" destination="8" id="43"/>
|
||||
<outlet property="window" destination="3" id="37"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" visibleAtLaunch="NO" frameAutosaveName="artworkWindow" animationBehavior="default" id="3">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" resizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="227" y="346" width="480" height="380"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<value key="minSize" type="size" width="480" height="380"/>
|
||||
<view key="contentView" id="4">
|
||||
<rect key="frame" x="0.0" y="0.0" width="480" height="380"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="188.66667175292969" horizontalPageScroll="10" verticalLineScroll="168" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="10">
|
||||
<rect key="frame" x="20" y="75" width="440" height="285"/>
|
||||
<clipView key="contentView" copiesOnScroll="NO" id="fMP-TL-qIZ">
|
||||
<rect key="frame" x="1" y="1" width="438" height="283"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<ikImageBrowserView autoresizesSubviews="NO" zoomValue="0.76223719120025635" translatesAutoresizingMaskIntoConstraints="NO" id="11">
|
||||
<rect key="frame" x="0.0" y="0.0" width="438" height="283"/>
|
||||
<ikCellsStyle key="cellsStyleMask" shadowed="YES" titled="YES" subtitled="YES"/>
|
||||
<autoresizingMask key="contentResizingMask" heightSizable="YES"/>
|
||||
<size key="cellSize" width="148" height="148"/>
|
||||
<connections>
|
||||
<outlet property="_dataSource" destination="-2" id="39"/>
|
||||
<outlet property="_delegate" destination="-2" id="40"/>
|
||||
<outlet property="dataSource" destination="-2" id="41"/>
|
||||
<outlet property="delegate" destination="-2" id="42"/>
|
||||
</connections>
|
||||
</ikImageBrowserView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailing" secondItem="11" secondAttribute="trailing" id="GpQ-w0-pL3"/>
|
||||
<constraint firstAttribute="bottom" secondItem="11" secondAttribute="bottom" id="Wx5-oU-I0v"/>
|
||||
<constraint firstItem="11" firstAttribute="top" secondItem="fMP-TL-qIZ" secondAttribute="top" id="te2-aY-Xqb"/>
|
||||
<constraint firstItem="11" firstAttribute="leading" secondItem="fMP-TL-qIZ" secondAttribute="leading" id="wbB-Cq-7RD"/>
|
||||
</constraints>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="12">
|
||||
<rect key="frame" x="-100" y="-100" width="438" height="15"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="13">
|
||||
<rect key="frame" x="424" y="1" width="15" height="250"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
</scrollView>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9">
|
||||
<rect key="frame" x="338" y="12" width="128" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Set as artwork" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="14">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
DQ
|
||||
</string>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="addArtwork:" target="-2" id="38"/>
|
||||
</connections>
|
||||
</button>
|
||||
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="8">
|
||||
<rect key="frame" x="364" y="49" width="96" height="18"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="96" id="0Mf-Un-HXH"/>
|
||||
</constraints>
|
||||
<sliderCell key="cell" controlSize="small" continuous="YES" state="on" alignment="left" minValue="0.20000000000000001" maxValue="1" doubleValue="0.60000000000000009" tickMarkPosition="above" numberOfTickMarks="5" sliderType="linear" id="15"/>
|
||||
<accessibility description="Zoom"/>
|
||||
<connections>
|
||||
<action selector="zoomSliderDidChange:" target="-2" id="44"/>
|
||||
</connections>
|
||||
</slider>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="7">
|
||||
<rect key="frame" x="14" y="12" width="166" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Load more artwork..." bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="16">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent">l</string>
|
||||
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="loadMoreArtwork:" target="-2" id="47"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="49">
|
||||
<rect key="frame" x="265" y="12" width="73" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="50">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
Gw
|
||||
</string>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="addNoArtwork:" target="-2" id="51"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailing" secondItem="10" secondAttribute="trailing" constant="20" symbolic="YES" id="2dF-3S-sSa"/>
|
||||
<constraint firstItem="9" firstAttribute="top" secondItem="8" secondAttribute="bottom" constant="10" id="42t-0L-Sim"/>
|
||||
<constraint firstItem="9" firstAttribute="leading" secondItem="49" secondAttribute="trailing" constant="12" symbolic="YES" id="9KU-rV-HX6"/>
|
||||
<constraint firstAttribute="bottom" secondItem="7" secondAttribute="bottom" constant="19" id="Ef2-6N-v4D"/>
|
||||
<constraint firstItem="8" firstAttribute="top" secondItem="10" secondAttribute="bottom" constant="8" id="KQW-kp-ljW"/>
|
||||
<constraint firstItem="49" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="7" secondAttribute="trailing" constant="66" id="KZN-qg-yUG"/>
|
||||
<constraint firstItem="7" firstAttribute="baseline" secondItem="49" secondAttribute="baseline" id="X0P-3j-fGS"/>
|
||||
<constraint firstItem="8" firstAttribute="trailing" secondItem="9" secondAttribute="trailing" id="fJ9-o3-pFG"/>
|
||||
<constraint firstItem="10" firstAttribute="top" secondItem="4" secondAttribute="top" constant="20" symbolic="YES" id="kpP-bZ-e5s"/>
|
||||
<constraint firstItem="10" firstAttribute="leading" secondItem="4" secondAttribute="leading" constant="20" symbolic="YES" id="qpm-9U-Mxg"/>
|
||||
<constraint firstItem="49" firstAttribute="baseline" secondItem="9" secondAttribute="baseline" id="s1P-63-ywo"/>
|
||||
<constraint firstItem="10" firstAttribute="trailing" secondItem="8" secondAttribute="trailing" id="tg4-M3-k3B"/>
|
||||
<constraint firstItem="10" firstAttribute="leading" secondItem="7" secondAttribute="leading" id="vgS-hd-TsB"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<connections>
|
||||
<outlet property="delegate" destination="-2" id="35"/>
|
||||
</connections>
|
||||
</window>
|
||||
</objects>
|
||||
</document>
|
||||
+345
-352
@@ -1,367 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14109" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14109"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="FileImportController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="importMetadataCheckbox" destination="36" id="ctf-Cj-LBY"/>
|
||||
<outlet property="tracksTableView" destination="7" id="fqn-pa-2UI"/>
|
||||
<outlet property="window" destination="1" id="3"/>
|
||||
<outlet property="importMetadataCheckbox" destination="9TF-SL-Kcx" id="dXp-S3-Ef2"/>
|
||||
<outlet property="tracksTableView" destination="DND-ed-VBj" id="DyK-8J-Yg3"/>
|
||||
<outlet property="view" destination="XhE-7o-ek3" id="bf5-qQ-HJa"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" showsToolbarButton="NO" visibleAtLaunch="NO" frameAutosaveName="SBFileImportWindow" animationBehavior="default" id="1">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" resizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="83" y="714" width="644" height="283"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<value key="minSize" type="size" width="550" height="216"/>
|
||||
<view key="contentView" id="2">
|
||||
<rect key="frame" x="0.0" y="0.0" width="644" height="283"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4">
|
||||
<rect key="frame" x="20" y="49" width="604" height="189"/>
|
||||
<clipView key="contentView" id="wpC-Js-I38">
|
||||
<rect key="frame" x="1" y="0.0" width="602" height="188"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" headerView="d1E-cV-kwd" viewBased="YES" id="7" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="602" height="165"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableColumns>
|
||||
<tableColumn identifier="check" width="20" minWidth="20" maxWidth="20" id="9">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333299" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<customCell key="dataCell" alignment="left" id="53">
|
||||
<font key="font" metaFont="system"/>
|
||||
</customCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="check" id="MEZ-zI-j7A" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="1" y="1" width="20" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="sgl-Nd-VyZ">
|
||||
<rect key="frame" x="1" y="-2" width="23" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="vja-6g-gbE">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="setCheck:" target="-2" id="9bY-sh-yDO"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="checkboxButton" destination="sgl-Nd-VyZ" id="GVn-qM-29C"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackId" editable="NO" width="26" minWidth="25" maxWidth="30" id="10">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Id">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333299" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="11">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="6VI-ju-vEZ">
|
||||
<rect key="frame" x="24" y="1" width="26" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="rZL-VU-9do">
|
||||
<rect key="frame" x="0.0" y="0.0" width="26" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="id" id="8jV-de-dNQ">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="rZL-VU-9do" id="iAU-fO-B3g"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackName" editable="NO" width="159" minWidth="40" maxWidth="400" id="15">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Name">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="16">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="mo6-bX-0Lf">
|
||||
<rect key="frame" x="53" y="1" width="159" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vTg-ca-LBV">
|
||||
<rect key="frame" x="0.0" y="0.0" width="159" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="yoP-fP-lic">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="vTg-ca-LBV" id="CQp-O2-hGS"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackDuration" editable="NO" width="84" minWidth="10" maxWidth="110" id="17">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Duration">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="right" title="Text Cell" id="18">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="24X-IQ-waU">
|
||||
<rect key="frame" x="215" y="1" width="84" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="p2s-Yz-qhZ">
|
||||
<rect key="frame" x="0.0" y="0.0" width="84" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="0" id="bif-2e-3RV">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="p2s-Yz-qhZ" id="I3Q-Av-NaP"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackLanguage" editable="NO" width="86" minWidth="10" maxWidth="90" id="20">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Language">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="right" title="Text Cell" id="21">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="4Bb-uI-db9">
|
||||
<rect key="frame" x="302" y="1" width="86" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="25J-SB-aeF">
|
||||
<rect key="frame" x="0.0" y="0.0" width="86" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Lang" usesSingleLineMode="YES" id="j7R-zS-fPy">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="25J-SB-aeF" id="an4-II-z6L"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackInfo" editable="NO" width="82" minWidth="10" maxWidth="90" id="22">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Info">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="right" title="Text Cell" id="23">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="W2R-SU-mbL">
|
||||
<rect key="frame" x="391" y="1" width="82" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="HCv-KV-l7J">
|
||||
<rect key="frame" x="0.0" y="0.0" width="82" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Info" usesSingleLineMode="YES" id="gDY-tC-Ecv">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="HCv-KV-l7J" id="Sod-SP-eWY"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackAction" width="124" minWidth="10" maxWidth="3.4028234663852886e+38" id="39">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Action">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<customCell key="dataCell" alignment="left" id="52">
|
||||
<font key="font" metaFont="system"/>
|
||||
</customCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="K4f-NU-em4" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="476" y="1" width="124" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<popUpButton fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="pAl-i2-yhV">
|
||||
<rect key="frame" x="0.0" y="-2" width="120" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<popUpButtonCell key="cell" type="bevel" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" selectedItem="Iwa-6U-c3K" id="VtC-oc-VAC">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" id="6Oy-4J-Chg">
|
||||
<items>
|
||||
<menuItem title="Item 1" state="on" id="Iwa-6U-c3K"/>
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
<connections>
|
||||
<action selector="setActionValue:" target="-2" id="MMj-r4-umH"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="popUpButton" destination="pAl-i2-yhV" id="mu9-zP-rn5"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
</tableColumns>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="24"/>
|
||||
<outlet property="delegate" destination="-2" id="49"/>
|
||||
<outlet property="menu" destination="Nqo-5L-aDh" id="63V-hm-RPy"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="6">
|
||||
<rect key="frame" x="1" y="172" width="602" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="5">
|
||||
<rect key="frame" x="588" y="17" width="15" height="12"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<tableHeaderView key="headerView" id="d1E-cV-kwd">
|
||||
<rect key="frame" x="0.0" y="0.0" width="602" height="23"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</tableHeaderView>
|
||||
</scrollView>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="13">
|
||||
<rect key="frame" x="17" y="246" width="94" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Select tracks:" id="14">
|
||||
<font key="font" metaFont="systemBold"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="25">
|
||||
<rect key="frame" x="548" y="13" width="82" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Add" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="28">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
DQ
|
||||
</string>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="addTracks:" target="-2" id="30"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="26">
|
||||
<rect key="frame" x="466" y="13" width="82" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="27">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
Gw
|
||||
</string>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="closeWindow:" target="-2" id="29"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="36">
|
||||
<rect key="frame" x="18" y="22" width="123" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Import Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" enabled="NO" state="on" inset="2" id="37">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="setImportMetadata:" target="-2" id="Dsh-Uq-duE"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="4" firstAttribute="top" secondItem="13" secondAttribute="bottom" constant="8" symbolic="YES" id="2UK-CM-pYX"/>
|
||||
<constraint firstItem="4" firstAttribute="trailing" secondItem="25" secondAttribute="trailing" id="2ge-8x-dr0"/>
|
||||
<constraint firstItem="13" firstAttribute="top" secondItem="2" secondAttribute="top" constant="20" symbolic="YES" id="7Ke-Hm-SZQ"/>
|
||||
<constraint firstItem="36" firstAttribute="baseline" secondItem="26" secondAttribute="baseline" id="8EW-Dh-aWT"/>
|
||||
<constraint firstItem="26" firstAttribute="baseline" secondItem="25" secondAttribute="baseline" id="AlZ-k8-usu"/>
|
||||
<constraint firstAttribute="bottom" secondItem="26" secondAttribute="bottom" constant="20" symbolic="YES" id="KcL-sz-rgd"/>
|
||||
<constraint firstItem="4" firstAttribute="leading" secondItem="36" secondAttribute="leading" id="P6D-hW-Duj"/>
|
||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="13" secondAttribute="trailing" constant="20" symbolic="YES" id="T2S-ze-SOI"/>
|
||||
<constraint firstItem="26" firstAttribute="width" secondItem="25" secondAttribute="width" id="YQp-jV-dmE"/>
|
||||
<constraint firstItem="26" firstAttribute="top" secondItem="4" secondAttribute="bottom" constant="8" id="ZjP-E3-av1"/>
|
||||
<constraint firstItem="13" firstAttribute="leading" secondItem="2" secondAttribute="leading" constant="19" id="iOs-ID-2Ec"/>
|
||||
<constraint firstAttribute="trailing" secondItem="4" secondAttribute="trailing" constant="20" symbolic="YES" id="mnc-3M-tQv"/>
|
||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="36" secondAttribute="trailing" constant="20" symbolic="YES" id="nAK-TB-b06"/>
|
||||
<constraint firstItem="4" firstAttribute="leading" secondItem="2" secondAttribute="leading" constant="20" symbolic="YES" id="oU0-Yr-ZwO"/>
|
||||
<constraint firstItem="25" firstAttribute="leading" secondItem="26" secondAttribute="trailing" constant="12" symbolic="YES" id="rNA-mf-SdH"/>
|
||||
<constraint firstItem="26" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="2" secondAttribute="leading" constant="20" symbolic="YES" id="xcH-VR-g52"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<point key="canvasLocation" x="-115" y="98"/>
|
||||
</window>
|
||||
<menu id="Nqo-5L-aDh">
|
||||
<items>
|
||||
<menuItem title="Uncheck" id="w6q-DP-C0O">
|
||||
@@ -385,5 +38,345 @@ Gw
|
||||
</menuItem>
|
||||
</items>
|
||||
</menu>
|
||||
<view id="XhE-7o-ek3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="644" height="283"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="i0j-gT-GFj">
|
||||
<rect key="frame" x="20" y="49" width="604" height="189"/>
|
||||
<clipView key="contentView" id="7EN-n0-nfZ">
|
||||
<rect key="frame" x="1" y="0.0" width="602" height="188"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" headerView="sBU-9S-4dG" viewBased="YES" id="DND-ed-VBj" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="602" height="163"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableColumns>
|
||||
<tableColumn identifier="check" width="20" minWidth="20" maxWidth="20" id="Hog-al-K5g">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333299" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<customCell key="dataCell" alignment="left" id="jnw-Ci-hhh">
|
||||
<font key="font" metaFont="system"/>
|
||||
</customCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="check" id="Mbd-sx-btg" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="1" y="1" width="20" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="1ll-Sc-7BH">
|
||||
<rect key="frame" x="1" y="-2" width="23" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="bHV-ZC-QMF">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="setCheck:" target="-2" id="ftv-PT-RZK"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="checkboxButton" destination="1ll-Sc-7BH" id="xU3-5P-8bp"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackId" editable="NO" width="26" minWidth="25" maxWidth="30" id="a2Q-90-iMO">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Id">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333299" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="HiW-NY-fnP">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="Mwk-zB-YnV">
|
||||
<rect key="frame" x="24" y="1" width="26" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AhE-Ui-y7O">
|
||||
<rect key="frame" x="0.0" y="0.0" width="26" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="id" id="Nrs-BO-n8T">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="AhE-Ui-y7O" id="SjO-vH-fqx"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackName" editable="NO" width="159" minWidth="40" maxWidth="400" id="oS0-t5-87P">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Name">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="ifF-d9-qC8">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="9IZ-65-8oh">
|
||||
<rect key="frame" x="53" y="1" width="159" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ZL5-qi-Bb2">
|
||||
<rect key="frame" x="0.0" y="0.0" width="159" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="jCv-4h-sH5">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="ZL5-qi-Bb2" id="iYO-ax-au2"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackDuration" editable="NO" width="84" minWidth="10" maxWidth="110" id="jac-jE-VHr">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Duration">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="right" title="Text Cell" id="BjT-y6-csH">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="LPp-tN-aPc">
|
||||
<rect key="frame" x="215" y="1" width="84" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ePb-gF-Yh9">
|
||||
<rect key="frame" x="0.0" y="0.0" width="84" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="0" id="2LD-y7-Ko1">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="ePb-gF-Yh9" id="LJ1-S0-32E"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackLanguage" editable="NO" width="86" minWidth="10" maxWidth="90" id="dyL-5A-jbn">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Language">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="right" title="Text Cell" id="atx-lx-B6i">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="5UN-oi-bMH">
|
||||
<rect key="frame" x="302" y="1" width="86" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="YPV-wk-baT">
|
||||
<rect key="frame" x="0.0" y="0.0" width="86" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Lang" usesSingleLineMode="YES" id="KM9-Op-UNe">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="YPV-wk-baT" id="ccf-YE-ZcJ"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackInfo" editable="NO" width="82" minWidth="10" maxWidth="90" id="qRv-Tq-YMF">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Info">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="right" title="Text Cell" id="DT7-XG-FT6">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="bSa-UM-PkK">
|
||||
<rect key="frame" x="391" y="1" width="82" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="HOa-Ac-L7m">
|
||||
<rect key="frame" x="0.0" y="0.0" width="82" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Info" usesSingleLineMode="YES" id="JH3-2P-Na2">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="HOa-Ac-L7m" id="uZ4-dV-rcC"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackAction" width="124" minWidth="10" maxWidth="3.4028234663852886e+38" id="zFW-wr-9sg">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Action">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<customCell key="dataCell" alignment="left" id="WCg-ZB-XHw">
|
||||
<font key="font" metaFont="system"/>
|
||||
</customCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="cfe-VB-dzz" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="476" y="1" width="124" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<popUpButton fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="DjR-kc-Ee1">
|
||||
<rect key="frame" x="0.0" y="-2" width="120" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<popUpButtonCell key="cell" type="bevel" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" selectedItem="97D-oX-nMc" id="FNV-pf-MUt">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" id="i8l-4s-h93">
|
||||
<items>
|
||||
<menuItem title="Item 1" state="on" id="97D-oX-nMc"/>
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
<connections>
|
||||
<action selector="setActionValue:" target="-2" id="10a-vV-nEe"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="popUpButton" destination="DjR-kc-Ee1" id="t1k-s2-Qsn"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
</tableColumns>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="WZO-uv-cFt"/>
|
||||
<outlet property="delegate" destination="-2" id="Pab-mY-rDR"/>
|
||||
<outlet property="menu" destination="Nqo-5L-aDh" id="Go6-LE-rKx"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="a0F-m0-dsM">
|
||||
<rect key="frame" x="1" y="172" width="602" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="lh7-bi-v7w">
|
||||
<rect key="frame" x="588" y="17" width="15" height="12"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<tableHeaderView key="headerView" id="sBU-9S-4dG">
|
||||
<rect key="frame" x="0.0" y="0.0" width="602" height="25"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</tableHeaderView>
|
||||
</scrollView>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ej1-kj-x1L">
|
||||
<rect key="frame" x="17" y="246" width="94" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Select tracks:" id="1JV-df-zeq">
|
||||
<font key="font" metaFont="systemBold"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="bu9-e9-KnU">
|
||||
<rect key="frame" x="548" y="13" width="82" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Add" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="QCb-5J-Vfs">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
DQ
|
||||
</string>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="addTracks:" target="-2" id="VMm-xo-Njj"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="V5i-UN-js5">
|
||||
<rect key="frame" x="466" y="13" width="82" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="vW6-FN-zyM">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
Gw
|
||||
</string>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="closeWindow:" target="-2" id="AoW-7a-ME1"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="9TF-SL-Kcx">
|
||||
<rect key="frame" x="18" y="22" width="123" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Import Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" enabled="NO" state="on" inset="2" id="0dA-so-rlU">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="setImportMetadata:" target="-2" id="0K1-dv-A7t"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="i0j-gT-GFj" firstAttribute="leading" secondItem="XhE-7o-ek3" secondAttribute="leading" constant="20" symbolic="YES" id="2R1-IH-rnd"/>
|
||||
<constraint firstItem="i0j-gT-GFj" firstAttribute="top" secondItem="ej1-kj-x1L" secondAttribute="bottom" constant="8" symbolic="YES" id="3dg-T4-OxU"/>
|
||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="9TF-SL-Kcx" secondAttribute="trailing" constant="20" symbolic="YES" id="4t6-qD-f25"/>
|
||||
<constraint firstItem="ej1-kj-x1L" firstAttribute="top" secondItem="XhE-7o-ek3" secondAttribute="top" constant="20" symbolic="YES" id="5Zq-9I-nq0"/>
|
||||
<constraint firstItem="ej1-kj-x1L" firstAttribute="leading" secondItem="XhE-7o-ek3" secondAttribute="leading" constant="19" id="6UE-cj-2SC"/>
|
||||
<constraint firstItem="V5i-UN-js5" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="XhE-7o-ek3" secondAttribute="leading" constant="20" symbolic="YES" id="9Nd-pZ-zNi"/>
|
||||
<constraint firstAttribute="trailing" secondItem="i0j-gT-GFj" secondAttribute="trailing" constant="20" symbolic="YES" id="LBz-hJ-tL7"/>
|
||||
<constraint firstItem="bu9-e9-KnU" firstAttribute="leading" secondItem="V5i-UN-js5" secondAttribute="trailing" constant="12" symbolic="YES" id="ate-ov-HAq"/>
|
||||
<constraint firstItem="V5i-UN-js5" firstAttribute="width" secondItem="bu9-e9-KnU" secondAttribute="width" id="e8w-Uu-srn"/>
|
||||
<constraint firstItem="V5i-UN-js5" firstAttribute="baseline" secondItem="bu9-e9-KnU" secondAttribute="baseline" id="pmu-Vu-nIL"/>
|
||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="ej1-kj-x1L" secondAttribute="trailing" constant="20" symbolic="YES" id="tnD-PT-2sx"/>
|
||||
<constraint firstItem="V5i-UN-js5" firstAttribute="top" secondItem="i0j-gT-GFj" secondAttribute="bottom" constant="8" id="ujM-RC-7D4"/>
|
||||
<constraint firstItem="9TF-SL-Kcx" firstAttribute="baseline" secondItem="V5i-UN-js5" secondAttribute="baseline" id="w5G-lk-jec"/>
|
||||
<constraint firstItem="i0j-gT-GFj" firstAttribute="leading" secondItem="9TF-SL-Kcx" secondAttribute="leading" id="whE-Tc-pZC"/>
|
||||
<constraint firstItem="i0j-gT-GFj" firstAttribute="trailing" secondItem="bu9-e9-KnU" secondAttribute="trailing" id="x02-Np-hqQ"/>
|
||||
<constraint firstAttribute="bottom" secondItem="V5i-UN-js5" secondAttribute="bottom" constant="20" symbolic="YES" id="xRz-ZB-J2X"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="-50" y="-36"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
+550
-558
File diff suppressed because it is too large.
Load diff
+372
-379
@@ -1,397 +1,390 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14105" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14105"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="ChapterSearchController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="addButton" destination="TwZ-hH-t4o" id="x1U-bO-DxZ"/>
|
||||
<outlet property="chapterTable" destination="rAm-CY-3va" id="08S-Hh-2nQ"/>
|
||||
<outlet property="progress" destination="VDL-VM-PgA" id="nlz-TO-CRu"/>
|
||||
<outlet property="progressText" destination="bkZ-I4-AOn" id="DoB-DJ-QrL"/>
|
||||
<outlet property="resultsTable" destination="4Q0-U2-W6V" id="CQn-uV-G1f"/>
|
||||
<outlet property="searchButton" destination="cCz-52-sHg" id="fLu-y9-7QM"/>
|
||||
<outlet property="searchTitle" destination="PZG-F6-4dQ" id="2L8-qm-FDY"/>
|
||||
<outlet property="window" destination="QvC-M9-y7g" id="vD9-Oz-kVE"/>
|
||||
<outlet property="addButton" destination="3EA-ze-TJM" id="ll3-uj-12X"/>
|
||||
<outlet property="chapterTable" destination="EaL-hZ-8qa" id="1Um-ff-IPj"/>
|
||||
<outlet property="progress" destination="xMV-K7-YOr" id="FTX-pq-sgW"/>
|
||||
<outlet property="progressText" destination="jnd-J4-PyK" id="EuQ-45-52M"/>
|
||||
<outlet property="resultsTable" destination="1tx-ei-5Gq" id="PxU-sD-YJ9"/>
|
||||
<outlet property="searchButton" destination="HL9-8j-ASe" id="Tgq-rv-I2s"/>
|
||||
<outlet property="searchTitle" destination="gqD-49-SVt" id="rfS-XZ-2M0"/>
|
||||
<outlet property="view" destination="laY-ru-6TM" id="EUR-8D-ABt"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Chapter Search" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" showsToolbarButton="NO" visibleAtLaunch="NO" frameAutosaveName="chapterWindow" animationBehavior="default" id="QvC-M9-y7g">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" resizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="196" y="240" width="537" height="468"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<value key="minSize" type="size" width="537" height="468"/>
|
||||
<view key="contentView" id="EiT-Mj-1SZ">
|
||||
<rect key="frame" x="0.0" y="0.0" width="537" height="468"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<button verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="TwZ-hH-t4o">
|
||||
<rect key="frame" x="441" y="13" width="82" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Add" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="6W1-pC-dAo">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="addChapter:" target="-2" id="sqr-KC-4m5"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="Zyk-o3-yzW">
|
||||
<rect key="frame" x="359" y="13" width="82" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="2Ki-5k-XEP">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
<view id="laY-ru-6TM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="537" height="468"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<button verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="3EA-ze-TJM">
|
||||
<rect key="frame" x="441" y="13" width="82" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Add" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="6fG-qc-eA5">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="addChapter:" target="-2" id="6Kw-hH-1Hd"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="gTi-Iq-Nr3">
|
||||
<rect key="frame" x="359" y="13" width="82" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="QM5-jw-kZn">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<string key="keyEquivalent" base64-UTF8="YES">
|
||||
Gw
|
||||
</string>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="closeWindow:" target="-2" id="haz-vm-Uuy"/>
|
||||
</connections>
|
||||
</button>
|
||||
<splitView translatesAutoresizingMaskIntoConstraints="NO" id="bYt-6B-9xM">
|
||||
<rect key="frame" x="20" y="61" width="497" height="346"/>
|
||||
<subviews>
|
||||
<scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="sfb-N4-GGo">
|
||||
<rect key="frame" x="0.0" y="0.0" width="497" height="139"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="closeWindow:" target="-2" id="pbV-DH-iuG"/>
|
||||
</connections>
|
||||
</button>
|
||||
<splitView translatesAutoresizingMaskIntoConstraints="NO" id="Wp0-Bs-YwM">
|
||||
<rect key="frame" x="20" y="61" width="497" height="346"/>
|
||||
<subviews>
|
||||
<scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="17" horizontalPageScroll="10" verticalLineScroll="17" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="nDM-fz-6g5">
|
||||
<rect key="frame" x="0.0" y="0.0" width="497" height="139"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<clipView key="contentView" id="yBC-YM-YEp">
|
||||
<rect key="frame" x="1" y="0.0" width="495" height="138"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" rowHeight="15" rowSizeStyle="automatic" headerView="SPx-Rw-QAC" viewBased="YES" id="1tx-ei-5Gq">
|
||||
<rect key="frame" x="0.0" y="0.0" width="495" height="113"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableColumns>
|
||||
<tableColumn identifier="title" width="230" minWidth="40" maxWidth="1000" id="3iF-NJ-e1F">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Title">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" controlSize="small" lineBreakMode="truncatingTail" alignment="left" title="Text Cell" id="zgo-hf-rwx">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="titleCell" id="Tky-Zp-cYn">
|
||||
<rect key="frame" x="1" y="1" width="230" height="15"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="cDF-HG-QsB">
|
||||
<rect key="frame" x="0.0" y="1" width="230" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="ikP-RU-BJG">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="cDF-HG-QsB" id="9Xu-LL-EtS"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="chaptercount" editable="NO" width="67" minWidth="10" maxWidth="3.4028234663852886e+38" id="O5Q-ih-ipB">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Chapters">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" controlSize="small" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="xaI-GU-HmU">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="chapterCountCell" id="dj8-Oz-5Hd">
|
||||
<rect key="frame" x="234" y="1" width="67" height="15"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="tMr-gF-MBo">
|
||||
<rect key="frame" x="0.0" y="1" width="66" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table" id="X1F-Qz-jAs">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="tMr-gF-MBo" id="ywy-bH-gfn"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="duration" editable="NO" width="90" minWidth="10" maxWidth="3.4028234663852886e+38" id="L1K-5d-J2y">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Duration">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" controlSize="small" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="HHD-4k-Jjn">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="durationCell" id="Q3c-Ec-o9q">
|
||||
<rect key="frame" x="304" y="1" width="90" height="15"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Xwg-6h-rXK">
|
||||
<rect key="frame" x="0.0" y="1" width="90" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="5iR-OE-ZoS">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="Xwg-6h-rXK" id="hGM-gz-pCr"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="confirmations" editable="NO" width="96" minWidth="10" maxWidth="3.4028234663852886e+38" id="NUF-4K-8JF">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Confirmations">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<levelIndicatorCell key="dataCell" controlSize="small" state="on" alignment="left" doubleValue="3" maxValue="100" levelIndicatorStyle="relevancy" id="Luc-bs-3F0">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
</levelIndicatorCell>
|
||||
<tableColumnResizingMask key="resizingMask" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="confirmationsCell" id="ROR-C8-kNy" customClass="LevelIndicatorTableCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="397" y="1" width="96" height="15"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<levelIndicator verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="GMz-ZA-5M8">
|
||||
<rect key="frame" x="3" y="2" width="91" height="12"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<levelIndicatorCell key="cell" controlSize="small" alignment="left" doubleValue="1" maxValue="50" levelIndicatorStyle="relevancy" id="GcM-6W-k0P"/>
|
||||
</levelIndicator>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="indicator" destination="GMz-ZA-5M8" id="Pg4-n0-qCO"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
</tableColumns>
|
||||
<accessibility description="Search results"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="Qc8-Pp-Asj"/>
|
||||
<outlet property="delegate" destination="-2" id="kCR-Ic-9Rt"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="wAd-hu-Fg8">
|
||||
<rect key="frame" x="1" y="122" width="495" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<clipView key="contentView" id="KWU-UC-z0x">
|
||||
<rect key="frame" x="1" y="0.0" width="495" height="138"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" rowHeight="14" rowSizeStyle="automatic" headerView="8oc-IY-tJx" viewBased="YES" id="4Q0-U2-W6V">
|
||||
<rect key="frame" x="0.0" y="0.0" width="495" height="115"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableColumns>
|
||||
<tableColumn identifier="title" width="230" minWidth="40" maxWidth="1000" id="htV-Xa-Z7y">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Title">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" controlSize="small" lineBreakMode="truncatingTail" alignment="left" title="Text Cell" id="Oen-p2-RWv">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="titleCell" id="zZ8-t5-m1I">
|
||||
<rect key="frame" x="1" y="1" width="230" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="J4H-Xf-BGM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="230" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="Gkz-hq-ron">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="J4H-Xf-BGM" id="huh-bh-b7s"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="chaptercount" editable="NO" width="67" minWidth="10" maxWidth="3.4028234663852886e+38" id="lfp-EW-qOv">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Chapters">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" controlSize="small" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="lkd-uW-eid">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="chapterCountCell" id="lOv-w3-ezX">
|
||||
<rect key="frame" x="234" y="1" width="67" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vql-7U-p3a">
|
||||
<rect key="frame" x="0.0" y="0.0" width="66" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table" id="bER-zD-d0H">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="vql-7U-p3a" id="yhr-n9-qNe"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="duration" editable="NO" width="90" minWidth="10" maxWidth="3.4028234663852886e+38" id="wqo-sz-7xt">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Duration">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" controlSize="small" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="GWw-pe-rYT">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="durationCell" id="7qV-1L-xfJ">
|
||||
<rect key="frame" x="304" y="1" width="90" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="mtY-XN-voz">
|
||||
<rect key="frame" x="0.0" y="0.0" width="90" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="OG4-Za-qex">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="mtY-XN-voz" id="x2t-Fc-KUg"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="confirmations" editable="NO" width="96" minWidth="10" maxWidth="3.4028234663852886e+38" id="rAU-DM-LSF">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Confirmations">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<levelIndicatorCell key="dataCell" controlSize="small" state="on" alignment="left" doubleValue="3" maxValue="100" levelIndicatorStyle="relevancy" id="b5O-HU-XVA">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
</levelIndicatorCell>
|
||||
<tableColumnResizingMask key="resizingMask" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="confirmationsCell" id="ss7-vt-71p" customClass="LevelIndicatorTableCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="397" y="1" width="96" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<levelIndicator verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="P7h-2D-UF1">
|
||||
<rect key="frame" x="3" y="1" width="91" height="12"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<levelIndicatorCell key="cell" controlSize="small" alignment="left" doubleValue="1" maxValue="50" levelIndicatorStyle="relevancy" id="UdD-6d-2TJ"/>
|
||||
</levelIndicator>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="indicator" destination="P7h-2D-UF1" id="ALn-QP-dYc"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
</tableColumns>
|
||||
<accessibility description="Search results"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="FVb-9R-yZP"/>
|
||||
<outlet property="delegate" destination="-2" id="7AM-1R-7L1"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="BFm-CX-YOM">
|
||||
<rect key="frame" x="1" y="122" width="495" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="F0B-th-j7i">
|
||||
<rect key="frame" x="-15" y="23" width="16" height="0.0"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<tableHeaderView key="headerView" id="8oc-IY-tJx">
|
||||
<rect key="frame" x="0.0" y="0.0" width="495" height="23"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</tableHeaderView>
|
||||
</scrollView>
|
||||
<scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="y6v-SF-vqw">
|
||||
<rect key="frame" x="0.0" y="148" width="497" height="198"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="DZI-g5-WqW">
|
||||
<rect key="frame" x="-15" y="23" width="16" height="0.0"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<clipView key="contentView" id="Lsd-dB-ca0">
|
||||
<rect key="frame" x="1" y="0.0" width="495" height="197"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="Cch-hl-a6n" viewBased="YES" id="rAm-CY-3va">
|
||||
<rect key="frame" x="0.0" y="0.0" width="495" height="174"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableViewGridLines key="gridStyleMask" vertical="YES"/>
|
||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableColumns>
|
||||
<tableColumn identifier="time" width="101" minWidth="40" maxWidth="1000" id="63j-1W-8G5">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Time">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" controlSize="small" alignment="right" title="Text Cell" id="MaK-bD-4NO">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="timeCell" id="LIH-rq-j44">
|
||||
<rect key="frame" x="1" y="1" width="101" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="7CB-sc-H30">
|
||||
<rect key="frame" x="0.0" y="0.0" width="101" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Table View Cell" id="mRi-8y-6RW">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="7CB-sc-H30" id="ixf-eJ-RbX"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="name" editable="NO" width="388" minWidth="40" maxWidth="1000" id="leg-gf-Wgj">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Title">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" controlSize="small" alignment="left" title="Text Cell" id="p96-MW-U2Y">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="nameCell" id="Eik-Cq-ZiW">
|
||||
<rect key="frame" x="105" y="1" width="388" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Vxr-6t-fpX">
|
||||
<rect key="frame" x="0.0" y="0.0" width="388" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="bTd-Eg-aMH">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="Vxr-6t-fpX" id="Plq-82-Yed"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
</tableColumns>
|
||||
<accessibility description="Result details"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="LEV-qs-Y3y"/>
|
||||
<outlet property="delegate" destination="-2" id="bGD-ld-paL"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="veD-gi-zkS">
|
||||
<rect key="frame" x="1" y="181" width="495" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="ri2-nS-xXv">
|
||||
<rect key="frame" x="-15" y="23" width="16" height="0.0"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<tableHeaderView key="headerView" id="Cch-hl-a6n">
|
||||
<rect key="frame" x="0.0" y="0.0" width="495" height="23"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</tableHeaderView>
|
||||
</scrollView>
|
||||
</subviews>
|
||||
<holdingPriorities>
|
||||
<real value="250"/>
|
||||
<real value="250"/>
|
||||
</holdingPriorities>
|
||||
</splitView>
|
||||
<progressIndicator hidden="YES" wantsLayer="YES" horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" translatesAutoresizingMaskIntoConstraints="NO" id="VDL-VM-PgA">
|
||||
<rect key="frame" x="20" y="21" width="16" height="16"/>
|
||||
</progressIndicator>
|
||||
<textField hidden="YES" horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="bkZ-I4-AOn">
|
||||
<rect key="frame" x="41" y="22" width="312" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Progress status" id="VxI-Tj-e1F">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<button horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="cCz-52-sHg">
|
||||
<rect key="frame" x="440" y="420" width="83" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Search" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="yAN-Rr-Kwt">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="searchForResults:" target="-2" id="hPr-85-c2D"/>
|
||||
</connections>
|
||||
</button>
|
||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="PZG-F6-4dQ">
|
||||
<rect key="frame" x="59" y="427" width="375" height="22"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="yrS-im-Pbr">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<connections>
|
||||
<outlet property="delegate" destination="-2" id="hNL-bJ-EM9"/>
|
||||
</connections>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" preferredMaxLayoutWidth="150" translatesAutoresizingMaskIntoConstraints="NO" id="qd5-NC-nta">
|
||||
<rect key="frame" x="18" y="430" width="35" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Title:" id="W86-Ok-9nr">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="qd5-NC-nta" firstAttribute="top" secondItem="EiT-Mj-1SZ" secondAttribute="top" constant="21" id="2Xm-ps-tMA"/>
|
||||
<constraint firstAttribute="trailing" secondItem="cCz-52-sHg" secondAttribute="trailing" constant="20" id="Abw-f2-qxJ"/>
|
||||
<constraint firstAttribute="bottom" secondItem="VDL-VM-PgA" secondAttribute="bottom" constant="21" id="B5v-4b-Ksd"/>
|
||||
<constraint firstItem="VDL-VM-PgA" firstAttribute="centerY" secondItem="bkZ-I4-AOn" secondAttribute="centerY" id="BTF-U5-WSw"/>
|
||||
<constraint firstItem="TwZ-hH-t4o" firstAttribute="leading" secondItem="Zyk-o3-yzW" secondAttribute="trailing" constant="12" id="CI5-FH-Agf"/>
|
||||
<constraint firstItem="bYt-6B-9xM" firstAttribute="leading" secondItem="EiT-Mj-1SZ" secondAttribute="leading" constant="20" id="Dkg-5a-acr"/>
|
||||
<constraint firstAttribute="trailing" secondItem="bYt-6B-9xM" secondAttribute="trailing" constant="20" id="ETW-iG-ELK"/>
|
||||
<constraint firstItem="cCz-52-sHg" firstAttribute="leading" secondItem="PZG-F6-4dQ" secondAttribute="trailing" constant="12" id="F20-iP-hiT"/>
|
||||
<constraint firstAttribute="bottom" secondItem="TwZ-hH-t4o" secondAttribute="bottom" constant="20" symbolic="YES" id="Gsh-7z-60C"/>
|
||||
<constraint firstItem="VDL-VM-PgA" firstAttribute="leading" secondItem="EiT-Mj-1SZ" secondAttribute="leading" constant="20" id="HN9-QS-DfB"/>
|
||||
<constraint firstItem="Zyk-o3-yzW" firstAttribute="top" secondItem="bYt-6B-9xM" secondAttribute="bottom" constant="20" symbolic="YES" id="KjC-FP-fak"/>
|
||||
<constraint firstItem="Zyk-o3-yzW" firstAttribute="leading" secondItem="bkZ-I4-AOn" secondAttribute="trailing" constant="14" id="PPy-iQ-k8B"/>
|
||||
<constraint firstItem="PZG-F6-4dQ" firstAttribute="baseline" secondItem="cCz-52-sHg" secondAttribute="baseline" id="Sld-7c-eTG"/>
|
||||
<constraint firstItem="TwZ-hH-t4o" firstAttribute="baseline" secondItem="Zyk-o3-yzW" secondAttribute="baseline" id="Xp6-aV-ihy"/>
|
||||
<constraint firstItem="VDL-VM-PgA" firstAttribute="leading" secondItem="qd5-NC-nta" secondAttribute="leading" id="Zrt-pO-o8D"/>
|
||||
<constraint firstItem="VDL-VM-PgA" firstAttribute="leading" secondItem="bYt-6B-9xM" secondAttribute="leading" id="dQp-Nl-Ne5"/>
|
||||
<constraint firstItem="qd5-NC-nta" firstAttribute="baseline" secondItem="PZG-F6-4dQ" secondAttribute="baseline" id="f0S-5r-hdw"/>
|
||||
<constraint firstItem="bkZ-I4-AOn" firstAttribute="leading" secondItem="VDL-VM-PgA" secondAttribute="trailing" constant="7" id="frZ-Xc-ae3"/>
|
||||
<constraint firstAttribute="trailing" secondItem="TwZ-hH-t4o" secondAttribute="trailing" constant="20" symbolic="YES" id="ihO-Xi-xd1"/>
|
||||
<constraint firstItem="PZG-F6-4dQ" firstAttribute="leading" secondItem="qd5-NC-nta" secondAttribute="trailing" constant="8" id="mbF-EL-jiT"/>
|
||||
<constraint firstItem="bYt-6B-9xM" firstAttribute="top" secondItem="cCz-52-sHg" secondAttribute="bottom" constant="20" symbolic="YES" id="nT7-AB-jfZ"/>
|
||||
<constraint firstItem="qd5-NC-nta" firstAttribute="leading" secondItem="EiT-Mj-1SZ" secondAttribute="leading" constant="20" id="oiP-wZ-XH9"/>
|
||||
<constraint firstItem="TwZ-hH-t4o" firstAttribute="width" secondItem="Zyk-o3-yzW" secondAttribute="width" id="z7Y-Gg-lg9"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<point key="canvasLocation" x="-9.5" y="59"/>
|
||||
</window>
|
||||
</scroller>
|
||||
<tableHeaderView key="headerView" id="SPx-Rw-QAC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="495" height="25"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</tableHeaderView>
|
||||
</scrollView>
|
||||
<scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="17" horizontalPageScroll="10" verticalLineScroll="17" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="Bt2-0h-SHc">
|
||||
<rect key="frame" x="0.0" y="148" width="497" height="198"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<clipView key="contentView" id="QH9-eV-xqj">
|
||||
<rect key="frame" x="1" y="0.0" width="495" height="197"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="15" rowSizeStyle="automatic" headerView="L2E-eg-WH8" viewBased="YES" id="EaL-hZ-8qa">
|
||||
<rect key="frame" x="0.0" y="0.0" width="495" height="172"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableViewGridLines key="gridStyleMask" vertical="YES"/>
|
||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableColumns>
|
||||
<tableColumn identifier="time" width="101" minWidth="40" maxWidth="1000" id="UaF-b6-Y6G">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Time">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" controlSize="small" alignment="right" title="Text Cell" id="thz-hn-9mI">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="timeCell" id="QwK-Zz-jTo">
|
||||
<rect key="frame" x="1" y="1" width="101" height="15"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="eMD-gh-3wc">
|
||||
<rect key="frame" x="0.0" y="1" width="101" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Table View Cell" id="vvL-dJ-iyy">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="eMD-gh-3wc" id="GpB-rM-MMT"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="name" editable="NO" width="388" minWidth="40" maxWidth="1000" id="kEl-ZX-dAp">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Title">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" controlSize="small" alignment="left" title="Text Cell" id="PzG-xQ-pIG">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="nameCell" id="9aB-Al-MNz">
|
||||
<rect key="frame" x="105" y="1" width="388" height="15"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="EM0-uf-cYI">
|
||||
<rect key="frame" x="0.0" y="1" width="388" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="V2V-18-rML">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="EM0-uf-cYI" id="f63-ad-Mh8"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
</tableColumns>
|
||||
<accessibility description="Result details"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="dDq-f7-NKv"/>
|
||||
<outlet property="delegate" destination="-2" id="38Z-6c-JZQ"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="9Ui-9m-0Lq">
|
||||
<rect key="frame" x="1" y="181" width="495" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="izF-CX-eZP">
|
||||
<rect key="frame" x="-15" y="23" width="16" height="0.0"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<tableHeaderView key="headerView" id="L2E-eg-WH8">
|
||||
<rect key="frame" x="0.0" y="0.0" width="495" height="25"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</tableHeaderView>
|
||||
</scrollView>
|
||||
</subviews>
|
||||
<holdingPriorities>
|
||||
<real value="250"/>
|
||||
<real value="250"/>
|
||||
</holdingPriorities>
|
||||
</splitView>
|
||||
<progressIndicator hidden="YES" wantsLayer="YES" horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" translatesAutoresizingMaskIntoConstraints="NO" id="xMV-K7-YOr">
|
||||
<rect key="frame" x="20" y="21" width="16" height="16"/>
|
||||
</progressIndicator>
|
||||
<textField hidden="YES" horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="jnd-J4-PyK">
|
||||
<rect key="frame" x="41" y="22" width="312" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Progress status" id="xUb-i4-9A1">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<button horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="HL9-8j-ASe">
|
||||
<rect key="frame" x="440" y="420" width="83" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Search" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="CPc-iU-dzR">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="searchForResults:" target="-2" id="shg-Oi-0yk"/>
|
||||
</connections>
|
||||
</button>
|
||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gqD-49-SVt">
|
||||
<rect key="frame" x="59" y="427" width="375" height="22"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="Oz7-XM-SKI">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<connections>
|
||||
<outlet property="delegate" destination="-2" id="d8E-Ln-wGk"/>
|
||||
</connections>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" preferredMaxLayoutWidth="150" translatesAutoresizingMaskIntoConstraints="NO" id="Aqm-Cr-xzu">
|
||||
<rect key="frame" x="18" y="430" width="35" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Title:" id="b8H-Nd-479">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="xMV-K7-YOr" firstAttribute="centerY" secondItem="jnd-J4-PyK" secondAttribute="centerY" id="0EC-o9-c6S"/>
|
||||
<constraint firstItem="3EA-ze-TJM" firstAttribute="width" secondItem="gTi-Iq-Nr3" secondAttribute="width" id="1UU-am-ahb"/>
|
||||
<constraint firstItem="gTi-Iq-Nr3" firstAttribute="top" secondItem="Wp0-Bs-YwM" secondAttribute="bottom" constant="20" symbolic="YES" id="2PP-vg-GxT"/>
|
||||
<constraint firstItem="gqD-49-SVt" firstAttribute="baseline" secondItem="HL9-8j-ASe" secondAttribute="baseline" id="2vK-ES-0iH"/>
|
||||
<constraint firstItem="xMV-K7-YOr" firstAttribute="leading" secondItem="Aqm-Cr-xzu" secondAttribute="leading" id="D3U-c7-KDb"/>
|
||||
<constraint firstItem="xMV-K7-YOr" firstAttribute="leading" secondItem="laY-ru-6TM" secondAttribute="leading" constant="20" id="DDU-bC-avi"/>
|
||||
<constraint firstItem="Aqm-Cr-xzu" firstAttribute="baseline" secondItem="gqD-49-SVt" secondAttribute="baseline" id="EjV-V4-Cpx"/>
|
||||
<constraint firstItem="Aqm-Cr-xzu" firstAttribute="top" secondItem="laY-ru-6TM" secondAttribute="top" constant="21" id="GxY-3a-0Ld"/>
|
||||
<constraint firstItem="gqD-49-SVt" firstAttribute="leading" secondItem="Aqm-Cr-xzu" secondAttribute="trailing" constant="8" id="PeX-Fh-ptj"/>
|
||||
<constraint firstAttribute="trailing" secondItem="HL9-8j-ASe" secondAttribute="trailing" constant="20" id="Q5w-S3-8u5"/>
|
||||
<constraint firstItem="HL9-8j-ASe" firstAttribute="leading" secondItem="gqD-49-SVt" secondAttribute="trailing" constant="12" id="QKQ-G7-Tm1"/>
|
||||
<constraint firstItem="Aqm-Cr-xzu" firstAttribute="leading" secondItem="laY-ru-6TM" secondAttribute="leading" constant="20" id="SeW-ve-S8S"/>
|
||||
<constraint firstAttribute="trailing" secondItem="3EA-ze-TJM" secondAttribute="trailing" constant="20" symbolic="YES" id="TQC-x8-ekz"/>
|
||||
<constraint firstItem="Wp0-Bs-YwM" firstAttribute="top" secondItem="HL9-8j-ASe" secondAttribute="bottom" constant="20" symbolic="YES" id="YyO-3J-PGG"/>
|
||||
<constraint firstItem="jnd-J4-PyK" firstAttribute="leading" secondItem="xMV-K7-YOr" secondAttribute="trailing" constant="7" id="ZoV-Pe-IMs"/>
|
||||
<constraint firstItem="gTi-Iq-Nr3" firstAttribute="leading" secondItem="jnd-J4-PyK" secondAttribute="trailing" constant="14" id="epS-jV-Geu"/>
|
||||
<constraint firstItem="Wp0-Bs-YwM" firstAttribute="leading" secondItem="laY-ru-6TM" secondAttribute="leading" constant="20" id="i5V-DJ-wsK"/>
|
||||
<constraint firstItem="xMV-K7-YOr" firstAttribute="leading" secondItem="Wp0-Bs-YwM" secondAttribute="leading" id="lAX-Hl-YYr"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Wp0-Bs-YwM" secondAttribute="trailing" constant="20" id="lbW-Ei-ZVw"/>
|
||||
<constraint firstItem="3EA-ze-TJM" firstAttribute="baseline" secondItem="gTi-Iq-Nr3" secondAttribute="baseline" id="rVr-vF-3sW"/>
|
||||
<constraint firstAttribute="bottom" secondItem="xMV-K7-YOr" secondAttribute="bottom" constant="21" id="rwy-QJ-PpQ"/>
|
||||
<constraint firstItem="3EA-ze-TJM" firstAttribute="leading" secondItem="gTi-Iq-Nr3" secondAttribute="trailing" constant="12" id="vTd-Bl-Rjc"/>
|
||||
<constraint firstAttribute="bottom" secondItem="3EA-ze-TJM" secondAttribute="bottom" constant="20" symbolic="YES" id="zdI-AV-TEM"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="155" y="71"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
+131
-193
@@ -7,12 +7,17 @@
|
||||
|
||||
import Cocoa
|
||||
import Quartz
|
||||
import MP42Foundation
|
||||
|
||||
private protocol ArtworkImageObjectDelegate: AnyObject {
|
||||
func reloadItem(_ item: ArtworkImageObject)
|
||||
}
|
||||
|
||||
private class ArtworkImageObject : NSObject {
|
||||
private class ArtworkImageObject : Equatable {
|
||||
|
||||
static func == (lhs: ArtworkImageObject, rhs: ArtworkImageObject) -> Bool {
|
||||
return lhs.source.url == rhs.source.url
|
||||
}
|
||||
|
||||
private var data: Data?
|
||||
private var version: Int
|
||||
@@ -36,15 +41,15 @@ private class ArtworkImageObject : NSObject {
|
||||
}
|
||||
}
|
||||
|
||||
func image() -> NSImage? {
|
||||
if let data = imageRepresentation() as? Data {
|
||||
var image: NSImage? {
|
||||
if let data = imageRepresentation() {
|
||||
return NSImage(data: data)
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
override func imageRepresentation() -> Any! {
|
||||
private func imageRepresentation() -> Data? {
|
||||
// Get the data outside the main thread
|
||||
var startDownload: Bool = false
|
||||
queue.sync {
|
||||
@@ -74,188 +79,28 @@ private class ArtworkImageObject : NSObject {
|
||||
}
|
||||
}
|
||||
|
||||
var localData: NSData? = nil
|
||||
var localData: Data? = nil
|
||||
|
||||
queue.sync {
|
||||
if let returnData = data {
|
||||
localData = NSData(data: returnData)
|
||||
localData = returnData
|
||||
}
|
||||
}
|
||||
return localData
|
||||
}
|
||||
|
||||
override func imageRepresentationType() -> String {
|
||||
return IKImageBrowserNSDataRepresentationType
|
||||
}
|
||||
|
||||
override func imageUID() -> String {
|
||||
return source.thumbURL.absoluteString
|
||||
}
|
||||
|
||||
override func imageVersion()-> Int {
|
||||
var returnValue: Int = 0
|
||||
queue.sync {
|
||||
returnValue = self.version
|
||||
}
|
||||
return returnValue
|
||||
}
|
||||
|
||||
override func imageTitle() -> String {
|
||||
var imageTitle: String {
|
||||
return source.service
|
||||
}
|
||||
|
||||
override func imageSubtitle() -> String {
|
||||
var imageSubtitle: String {
|
||||
return source.type.description
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protocol ArtworkSelectorControllerDelegate: AnyObject {
|
||||
func didSelect(artworks: [Artwork])
|
||||
}
|
||||
|
||||
class ArtworkSelectorControllerOldStyle: NSWindowController, ArtworkImageObjectDelegate {
|
||||
|
||||
@IBOutlet var imageBrowser: IKImageBrowserView!
|
||||
@IBOutlet var slider: NSSlider!
|
||||
@IBOutlet var addArtworkButton: NSButton!
|
||||
@IBOutlet var loadMoreArtworkButton: NSButton!
|
||||
|
||||
private var artworksUnloaded: [Artwork]
|
||||
private var artworks: [ArtworkImageObject]
|
||||
private let initialSize: CGSize?
|
||||
private let type: MetadataType
|
||||
|
||||
private weak var delegate: ArtworkSelectorControllerDelegate?
|
||||
|
||||
// MARK: - Init
|
||||
init(artworks: [Artwork], size: CGSize? = nil, type: MetadataType, delegate: ArtworkSelectorControllerDelegate) {
|
||||
self.delegate = delegate
|
||||
self.initialSize = size
|
||||
self.artworksUnloaded = artworks
|
||||
self.artworks = []
|
||||
self.type = type
|
||||
super.init(window: nil)
|
||||
}
|
||||
|
||||
required public init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
deinit {
|
||||
imageBrowser.delegate = nil
|
||||
imageBrowser.dataSource = nil
|
||||
|
||||
for artwork in artworks {
|
||||
artwork.cancel()
|
||||
}
|
||||
}
|
||||
|
||||
override public var windowNibName: NSNib.Name? {
|
||||
return "ArtworkSelectorOld"
|
||||
}
|
||||
|
||||
// MARK: - Load images
|
||||
override public func windowDidLoad() {
|
||||
super.windowDidLoad()
|
||||
|
||||
if let size = initialSize { window?.setContentSize(size) }
|
||||
|
||||
loadMoreArtworks(count: 8)
|
||||
|
||||
if let defaultService = UserDefaults.standard.string(forKey: "SBArtworkSelectorDefaultService|\(type.description)"),
|
||||
let defaultType = ArtworkType(rawValue: UserDefaults.standard.integer(forKey: "SBArtworkSelectorDefaultType|\(type.description)")) {
|
||||
selectArtwork(type: defaultType, service: defaultService)
|
||||
}
|
||||
|
||||
if imageBrowser.selectionIndexes().count == 0 {
|
||||
imageBrowser.setSelectionIndexes(IndexSet(integer: 0), byExtendingSelection: false)
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func loadMoreArtwork(_ sender: Any) {
|
||||
loadMoreArtworks(count: 8)
|
||||
}
|
||||
|
||||
// MARK: - User Interface
|
||||
@IBAction func zoomSliderDidChange(_ sender: Any) {
|
||||
imageBrowser.setZoomValue(slider.floatValue)
|
||||
imageBrowser.needsDisplay = true
|
||||
}
|
||||
|
||||
fileprivate func reloadItem(_ item: ArtworkImageObject) {
|
||||
imageBrowser.reloadData()
|
||||
}
|
||||
|
||||
private func selectArtwork(at index: Int) {
|
||||
imageBrowser.setSelectionIndexes(IndexSet(integer: index), byExtendingSelection: false)
|
||||
imageBrowser.scrollIndexToVisible(index)
|
||||
}
|
||||
|
||||
private func loadMoreArtworks(count: Int) {
|
||||
let endIndex = artworksUnloaded.count < count ? artworksUnloaded.count : count
|
||||
artworks.append(contentsOf: artworksUnloaded[0 ..< endIndex].map { ArtworkImageObject(artwork: $0, delegate: self) })
|
||||
artworksUnloaded.removeFirst(endIndex)
|
||||
loadMoreArtworkButton.isEnabled = artworksUnloaded.isEmpty == false
|
||||
imageBrowser.reloadData()
|
||||
}
|
||||
|
||||
private func selectArtwork(type: ArtworkType, service: String) {
|
||||
if let artwork = (artworks.filter { $0.source.type == type && $0.source.service == service } as [ArtworkImageObject]).first,
|
||||
let index = artworks.firstIndex(of: artwork) {
|
||||
selectArtwork(at: index)
|
||||
}
|
||||
else if let artwork = (artworks.filter { $0.source.type == type } as [ArtworkImageObject]).first,
|
||||
let index = artworks.firstIndex(of: artwork) {
|
||||
selectArtwork(at: index)
|
||||
}
|
||||
else if artworksUnloaded.isEmpty == false {
|
||||
for (index, artwork) in artworksUnloaded.enumerated() {
|
||||
if artwork.type == type {
|
||||
let offset = artworks.count
|
||||
loadMoreArtworks(count: index + 1)
|
||||
selectArtwork(at: index + offset)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func selectedArtworks() -> [ArtworkImageObject] {
|
||||
return imageBrowser.selectionIndexes().map { artworks[$0] }
|
||||
}
|
||||
|
||||
// MARK: - Finishing Up
|
||||
@IBAction func addArtwork(_ sender: Any) {
|
||||
delegate?.didSelect(artworks:selectedArtworks().map { $0.source })
|
||||
}
|
||||
|
||||
@IBAction func addNoArtwork(_ sender: Any) {
|
||||
delegate?.didSelect(artworks: [])
|
||||
}
|
||||
|
||||
// MARK: - IKImageBrowserDataSource
|
||||
override public func numberOfItems(inImageBrowser aBrowser: IKImageBrowserView!) -> Int {
|
||||
return artworks.count
|
||||
}
|
||||
|
||||
override public func imageBrowser(_ aBrowser: IKImageBrowserView!, itemAt index: Int) -> Any! {
|
||||
return artworks[index]
|
||||
}
|
||||
|
||||
// MARK: - IKImageBrowserDelegate
|
||||
override public func imageBrowser(_ aBrowser: IKImageBrowserView!, cellWasDoubleClickedAt index: Int) {
|
||||
addArtwork(self)
|
||||
}
|
||||
|
||||
override public func imageBrowserSelectionDidChange(_ aBrowser: IKImageBrowserView!) {
|
||||
addArtworkButton.isEnabled = aBrowser.selectionIndexes().isEmpty == false
|
||||
if let artwork = selectedArtworks().first {
|
||||
UserDefaults.standard.set(artwork.source.type.rawValue, forKey: "SBArtworkSelectorDefaultType|\(type.description)")
|
||||
UserDefaults.standard.set(artwork.source.service, forKey: "SBArtworkSelectorDefaultService|\(type.description)")
|
||||
}
|
||||
}
|
||||
|
||||
func didAddArtworks(metadata: MetadataResult)
|
||||
}
|
||||
|
||||
class CollectionView : NSCollectionView {
|
||||
@@ -283,29 +128,39 @@ class CollectionView : NSCollectionView {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
final class ArtworkSelectorController: NSWindowController, NSCollectionViewDataSource, NSCollectionViewDelegate, ArtworkImageObjectDelegate {
|
||||
final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSource, NSCollectionViewDelegate, ArtworkImageObjectDelegate {
|
||||
|
||||
@IBOutlet var imageBrowser: NSCollectionView!
|
||||
@IBOutlet var slider: NSSlider!
|
||||
@IBOutlet var addArtworkButton: NSButton!
|
||||
@IBOutlet var loadMoreArtworkButton: NSButton!
|
||||
|
||||
@IBOutlet var progress: NSProgressIndicator!
|
||||
@IBOutlet var progressText: NSTextField!
|
||||
|
||||
private var artworksUnloaded: [Artwork]
|
||||
private var artworks: [ArtworkImageObject]
|
||||
private let initialSize: CGSize?
|
||||
private let type: MetadataType
|
||||
private let standardSize = NSSize(width: 154, height: 192)
|
||||
private let metadata: MetadataResult
|
||||
|
||||
private weak var delegate: ArtworkSelectorControllerDelegate?
|
||||
|
||||
// MARK: UI State
|
||||
private enum ArtworkSearchState {
|
||||
case none
|
||||
case downloading
|
||||
case closing
|
||||
}
|
||||
|
||||
private var state: ArtworkSearchState = .none
|
||||
|
||||
// MARK: - Init
|
||||
init(artworks: [Artwork], size: CGSize? = nil, type: MetadataType, delegate: ArtworkSelectorControllerDelegate) {
|
||||
init(metadata: MetadataResult, delegate: ArtworkSelectorControllerDelegate) {
|
||||
self.delegate = delegate
|
||||
self.initialSize = size
|
||||
self.artworksUnloaded = artworks
|
||||
self.artworksUnloaded = metadata.remoteArtworks
|
||||
self.artworks = []
|
||||
self.type = type
|
||||
super.init(window: nil)
|
||||
self.metadata = metadata
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
}
|
||||
|
||||
required public init?(coder: NSCoder) {
|
||||
@@ -321,21 +176,21 @@ final class ArtworkSelectorController: NSWindowController, NSCollectionViewDataS
|
||||
}
|
||||
}
|
||||
|
||||
override public var windowNibName: NSNib.Name? {
|
||||
override public var nibName: NSNib.Name? {
|
||||
return "ArtworkSelector"
|
||||
}
|
||||
|
||||
// MARK: - Load images
|
||||
override public func windowDidLoad() {
|
||||
super.windowDidLoad()
|
||||
override public func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
window?.contentView?.wantsLayer = true
|
||||
|
||||
if let size = initialSize { window?.setContentSize(size) }
|
||||
view.wantsLayer = true
|
||||
|
||||
imageBrowser.register(ArtworkSelectorViewItem.self, forItemWithIdentifier: ArtworkSelectorController.itemView)
|
||||
loadMoreArtworks(count: 8)
|
||||
|
||||
let type = metadata.mediaKind.description
|
||||
|
||||
if let defaultService = UserDefaults.standard.string(forKey: "SBArtworkSelectorDefaultService|\(type.description)"),
|
||||
let defaultType = ArtworkType(rawValue: UserDefaults.standard.integer(forKey: "SBArtworkSelectorDefaultType|\(type.description)")) {
|
||||
selectArtwork(type: defaultType, service: defaultService)
|
||||
@@ -344,6 +199,14 @@ final class ArtworkSelectorController: NSWindowController, NSCollectionViewDataS
|
||||
if imageBrowser.selectionIndexPaths.count == 0 {
|
||||
selectArtwork(at: 0)
|
||||
}
|
||||
|
||||
updateUI()
|
||||
}
|
||||
|
||||
override func viewWillAppear() {
|
||||
if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout {
|
||||
layout.itemSize = standardSize
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func loadMoreArtwork(_ sender: Any) {
|
||||
@@ -353,19 +216,18 @@ final class ArtworkSelectorController: NSWindowController, NSCollectionViewDataS
|
||||
// MARK: - User Interface
|
||||
|
||||
@IBAction func zoomSliderDidChange(_ sender: Any) {
|
||||
let standardSize = NSSize(width: 154, height: 194)
|
||||
if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout {
|
||||
if slider.floatValue == 50 {
|
||||
layout.itemSize = standardSize
|
||||
} else if slider.floatValue < 50 {
|
||||
let zoomValue = (CGFloat(slider.floatValue) + 50) / 100
|
||||
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
|
||||
height: Int(standardSize.height * zoomValue))
|
||||
height: Int((standardSize.height - 32) * zoomValue + 32))
|
||||
|
||||
} else {
|
||||
let zoomValue = pow((CGFloat(slider.floatValue) + 50) / 100, 2.4)
|
||||
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
|
||||
height: Int(standardSize.height * zoomValue))
|
||||
height: Int((standardSize.height - 32) * zoomValue + 32))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -426,13 +288,89 @@ final class ArtworkSelectorController: NSWindowController, NSCollectionViewDataS
|
||||
return imageBrowser.selectionIndexPaths.map { artworks[$0.item] }
|
||||
}
|
||||
|
||||
// MARK - UI state
|
||||
|
||||
private func toggleUI(items: [NSControl], state: Bool) {
|
||||
items.forEach { $0.isEnabled = state }
|
||||
}
|
||||
|
||||
private func disableUI() {
|
||||
toggleUI(items: [slider, addArtworkButton, loadMoreArtworkButton], state: false)
|
||||
}
|
||||
|
||||
private func startProgressReport() {
|
||||
progress.startAnimation(self)
|
||||
progress.isHidden = false
|
||||
switch state {
|
||||
case .downloading:
|
||||
progressText.stringValue = NSLocalizedString("Downloading artworks", comment: "")
|
||||
case .closing: break
|
||||
default: break
|
||||
}
|
||||
progressText.isHidden = false
|
||||
}
|
||||
|
||||
private func stopProgressReport() {
|
||||
progress.stopAnimation(self)
|
||||
progress.isHidden = true
|
||||
progressText.isHidden = true
|
||||
}
|
||||
|
||||
private func updateUI() {
|
||||
switch state {
|
||||
case .none:
|
||||
stopProgressReport()
|
||||
case .downloading:
|
||||
disableUI()
|
||||
startProgressReport()
|
||||
case .closing:
|
||||
disableUI()
|
||||
stopProgressReport()
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Finishing Up
|
||||
|
||||
private func load(artworks: [Artwork]) {
|
||||
switch state {
|
||||
case .none:
|
||||
|
||||
state = .downloading
|
||||
updateUI()
|
||||
|
||||
DispatchQueue.global(qos: .userInitiated).async { [weak self] in
|
||||
let downloadedArtworks = artworks.compactMap { (artwork) -> MP42Image? in
|
||||
if let data = URLSession.data(from: artwork.url) {
|
||||
return MP42Image(data: data, type: MP42_ART_JPEG)
|
||||
} else if artwork.service == iTunesStore().name, // Hack, download smaller iTunes version if big iTunes version is not available
|
||||
let data = URLSession.data(from: artwork.url.deletingPathExtension().appendingPathExtension("600x600bb.jpg")) {
|
||||
return MP42Image(data: data, type: MP42_ART_JPEG)
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
DispatchQueue.main.async {
|
||||
self?.loadDone(images: downloadedArtworks)
|
||||
}
|
||||
}
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
private func loadDone(images: [MP42Image]) {
|
||||
self.state = .closing
|
||||
self.metadata.artworks.append(contentsOf: images)
|
||||
self.delegate?.didAddArtworks(metadata: self.metadata)
|
||||
self.updateUI()
|
||||
}
|
||||
|
||||
@IBAction func addArtwork(_ sender: Any) {
|
||||
delegate?.didSelect(artworks:selectedArtworks().map { $0.source })
|
||||
load(artworks: selectedArtworks().map { $0.source })
|
||||
}
|
||||
|
||||
@IBAction func addNoArtwork(_ sender: Any) {
|
||||
delegate?.didSelect(artworks: [])
|
||||
delegate?.didAddArtworks(metadata: metadata)
|
||||
}
|
||||
|
||||
// MARK: - Data source
|
||||
@@ -449,9 +387,9 @@ final class ArtworkSelectorController: NSWindowController, NSCollectionViewDataS
|
||||
|
||||
let artwork = artworks[index]
|
||||
|
||||
collectionViewItem.title = artwork.imageTitle()
|
||||
collectionViewItem.subtitle = artwork.imageSubtitle()
|
||||
collectionViewItem.image = artwork.image()
|
||||
collectionViewItem.title = artwork.imageTitle
|
||||
collectionViewItem.subtitle = artwork.imageSubtitle
|
||||
collectionViewItem.image = artwork.image
|
||||
|
||||
collectionViewItem.doubleAction = #selector(addArtwork)
|
||||
collectionViewItem.target = self
|
||||
@@ -464,6 +402,7 @@ final class ArtworkSelectorController: NSWindowController, NSCollectionViewDataS
|
||||
private func updateSelection() {
|
||||
addArtworkButton.isEnabled = imageBrowser.selectionIndexes.isEmpty == false
|
||||
if let artwork = selectedArtworks().first {
|
||||
let type = metadata.mediaKind.description
|
||||
UserDefaults.standard.set(artwork.source.type.rawValue, forKey: "SBArtworkSelectorDefaultType|\(type.description)")
|
||||
UserDefaults.standard.set(artwork.source.service, forKey: "SBArtworkSelectorDefaultService|\(type.description)")
|
||||
}
|
||||
@@ -476,5 +415,4 @@ final class ArtworkSelectorController: NSWindowController, NSCollectionViewDataS
|
||||
func collectionView(_ collectionView: NSCollectionView, didDeselectItemsAt indexPaths: Set<IndexPath>) {
|
||||
updateSelection()
|
||||
}
|
||||
|
||||
}
|
||||
@@ -12,7 +12,7 @@ protocol ChapterSearchControllerDelegate : AnyObject {
|
||||
func didSelect(chapters: [MP42TextSample])
|
||||
}
|
||||
|
||||
final class ChapterSearchController: NSWindowController, NSTableViewDataSource, NSTableViewDelegate, NSTextFieldDelegate {
|
||||
final class ChapterSearchController: NSViewController, NSTableViewDataSource, NSTableViewDelegate, NSTextFieldDelegate {
|
||||
|
||||
@IBOutlet var searchTitle: NSTextField!
|
||||
|
||||
@@ -51,7 +51,7 @@ final class ChapterSearchController: NSWindowController, NSTableViewDataSource,
|
||||
self.duration = duration
|
||||
self.state = .none
|
||||
|
||||
super.init(window: nil)
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
@@ -65,15 +65,15 @@ final class ChapterSearchController: NSWindowController, NSTableViewDataSource,
|
||||
chapterTable.dataSource = nil
|
||||
}
|
||||
|
||||
override var windowNibName: NSNib.Name? {
|
||||
override var nibName: NSNib.Name? {
|
||||
return "SBChapterSearch"
|
||||
}
|
||||
|
||||
override func windowDidLoad() {
|
||||
super.windowDidLoad()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
self.searchTitle.stringValue = searchTerm
|
||||
self.window?.makeFirstResponder(self.searchTitle)
|
||||
self.view.window?.makeFirstResponder(self.searchTitle)
|
||||
|
||||
updateUI()
|
||||
|
||||
@@ -120,7 +120,7 @@ final class ChapterSearchController: NSWindowController, NSTableViewDataSource,
|
||||
default:
|
||||
break
|
||||
}
|
||||
self.window?.sheetParent?.endSheet(self.window!, returnCode: NSApplication.ModalResponse.OK)
|
||||
presentingViewController?.dismiss(self)
|
||||
}
|
||||
|
||||
@IBAction func closeWindow(_ sender: Any) {
|
||||
@@ -130,7 +130,7 @@ final class ChapterSearchController: NSWindowController, NSTableViewDataSource,
|
||||
default:
|
||||
break
|
||||
}
|
||||
self.window?.sheetParent?.endSheet(self.window!, returnCode: NSApplication.ModalResponse.cancel)
|
||||
presentingViewController?.dismiss(self)
|
||||
}
|
||||
|
||||
// MARK - UI state
|
||||
@@ -175,7 +175,7 @@ final class ChapterSearchController: NSWindowController, NSTableViewDataSource,
|
||||
stopProgressReport()
|
||||
reloadTableData()
|
||||
swithDefaultButton(from: searchButton, to: addButton, disableOldButton: false)
|
||||
window?.makeFirstResponder(resultsTable)
|
||||
view.window?.makeFirstResponder(resultsTable)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import Cocoa
|
||||
import MP42Foundation
|
||||
|
||||
final class DocumentWindowController: NSWindowController, TracksViewControllerDelegate, ChapterSearchControllerDelegate, MetadataSearchControllerDelegate, FileImportControllerDelegate, ProgressViewControllerDelegate, NSDraggingDestination, NSMenuItemValidation, NSToolbarItemValidation {
|
||||
final class DocumentWindowController: NSWindowController, TracksViewControllerDelegate, ChapterSearchControllerDelegate, MetadataSearchViewControllerDelegate, FileImportControllerDelegate, ProgressViewControllerDelegate, NSDraggingDestination, NSMenuItemValidation, NSToolbarItemValidation {
|
||||
|
||||
private var doc: Document {
|
||||
return document as! Document
|
||||
@@ -254,8 +254,6 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
||||
|
||||
// MARK: Actions
|
||||
|
||||
private var sheetController: NSWindowController?
|
||||
|
||||
@IBAction func sendToExternalApp(_ sender: Any) {
|
||||
|
||||
if let filePath = doc.fileURL?.path, let script = NSAppleScript(source: """
|
||||
@@ -371,15 +369,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
||||
|
||||
@IBAction func searchMetadata(_ sender: Any?) {
|
||||
let terms = mp4.extractSearchTerms(fallbackURL : doc.fileURL)
|
||||
let controller = MetadataSearchController(delegate: self, searchTerms: terms)
|
||||
|
||||
guard let windowForSheet = doc.windowForSheet, let window = controller.window
|
||||
else { return }
|
||||
|
||||
sheetController = controller;
|
||||
windowForSheet.beginSheet(window, completionHandler: { response in
|
||||
self.sheetController = nil
|
||||
})
|
||||
let controller = MetadataSearchViewController(delegate: self, searchTerms: terms)
|
||||
self.contentViewController?.presentAsSheet(controller)
|
||||
}
|
||||
|
||||
@IBAction func searchChapters(_ sender: Any?) {
|
||||
@@ -389,14 +380,7 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
||||
let duration = UInt64(mp4.duration)
|
||||
|
||||
let controller = ChapterSearchController(delegate: self, title: title, duration: duration)
|
||||
|
||||
guard let windowForSheet = doc.windowForSheet, let window = controller.window
|
||||
else { return }
|
||||
|
||||
sheetController = controller;
|
||||
windowForSheet.beginSheet(window, completionHandler: { response in
|
||||
self.sheetController = nil
|
||||
})
|
||||
contentViewController?.presentAsSheet(controller)
|
||||
}
|
||||
|
||||
func didSelect(metadata: MetadataResult) {
|
||||
@@ -514,16 +498,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
||||
if controller.onlyContainsSubtitles {
|
||||
controller.addTracks(self)
|
||||
tracksViewController.reloadData()
|
||||
self.sheetController = nil;
|
||||
}
|
||||
else {
|
||||
guard let windowForSheet = doc.windowForSheet, let window = controller.window
|
||||
else { return }
|
||||
|
||||
sheetController = controller;
|
||||
windowForSheet.beginSheet(window, completionHandler: { response in
|
||||
self.sheetController = nil
|
||||
})
|
||||
} else {
|
||||
contentViewController?.presentAsSheet(controller)
|
||||
}
|
||||
}
|
||||
catch {
|
||||
|
||||
@@ -12,7 +12,7 @@ protocol FileImportControllerDelegate : AnyObject {
|
||||
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?)
|
||||
}
|
||||
|
||||
final class FileImportController: NSWindowController, NSTableViewDataSource, NSTableViewDelegate, NSMenuItemValidation {
|
||||
final class FileImportController: NSViewController, NSTableViewDataSource, NSTableViewDelegate, NSMenuItemValidation {
|
||||
|
||||
private enum ItemType {
|
||||
case file(MP42FileImporter)
|
||||
@@ -173,7 +173,7 @@ final class FileImportController: NSWindowController, NSTableViewDataSource, NST
|
||||
@IBOutlet var tracksTableView: ExpandedTableView!
|
||||
@IBOutlet var importMetadataCheckbox: NSButton!
|
||||
|
||||
override public var windowNibName: NSNib.Name? {
|
||||
override public var nibName: NSNib.Name? {
|
||||
return "FileImportController"
|
||||
}
|
||||
|
||||
@@ -196,15 +196,15 @@ final class FileImportController: NSWindowController, NSTableViewDataSource, NST
|
||||
self.items = rows
|
||||
self.importMetadata = metadata != nil && UserDefaults.standard.bool(forKey: "SBFileImporterImportMetadata")
|
||||
|
||||
super.init(window: nil)
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func windowDidLoad() {
|
||||
super.windowDidLoad()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
self.importMetadataCheckbox.isEnabled = metadata != nil
|
||||
self.importMetadataCheckbox.state = UserDefaults.standard.bool(forKey: "SBFileImporterImportMetadata") ? .on : .off
|
||||
@@ -288,7 +288,7 @@ final class FileImportController: NSWindowController, NSTableViewDataSource, NST
|
||||
// MARK: IBActions
|
||||
|
||||
@IBAction func closeWindow(_ sender: Any) {
|
||||
window?.sheetParent?.endSheet(window!, returnCode: NSApplication.ModalResponse.cancel)
|
||||
presentingViewController?.dismiss(self)
|
||||
}
|
||||
|
||||
@IBAction func addTracks(_ sender: Any) {
|
||||
@@ -356,7 +356,7 @@ final class FileImportController: NSWindowController, NSTableViewDataSource, NST
|
||||
delegate?.didSelect(tracks: selectedTracks,
|
||||
metadata: importMetadata ? metadata : nil)
|
||||
|
||||
window?.sheetParent?.endSheet(window!, returnCode: NSApplication.ModalResponse.OK)
|
||||
presentingViewController?.dismiss(self)
|
||||
}
|
||||
|
||||
// MARK: Actions
|
||||
|
||||
@@ -200,6 +200,15 @@ public class MetadataResult {
|
||||
public enum MediaKindType: Int {
|
||||
case tvShow = 10
|
||||
case movie = 9
|
||||
|
||||
public var description: String {
|
||||
switch self {
|
||||
case .movie:
|
||||
return "Movie"
|
||||
case .tvShow:
|
||||
return "TV"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public var mediaKind: MediaKindType
|
||||
|
||||
@@ -9,10 +9,10 @@ import Cocoa
|
||||
import MP42Foundation
|
||||
|
||||
protocol MetadataSearchControllerDelegate : AnyObject {
|
||||
func didSelect(metadata: MetadataResult)
|
||||
func didSelect(metadata: MetadataResult?)
|
||||
}
|
||||
|
||||
final class MetadataSearchController: NSWindowController, NSTableViewDataSource, NSTableViewDelegate, NSComboBoxDelegate, NSComboBoxDataSource, NSTextFieldDelegate, ArtworkSelectorControllerDelegate {
|
||||
final class MetadataSearchController: NSViewController, NSTableViewDataSource, NSTableViewDelegate, NSComboBoxDelegate, NSComboBoxDataSource, NSTextFieldDelegate {
|
||||
|
||||
@IBOutlet var searchMode: NSTabView!
|
||||
@IBOutlet var movieTab: NSTabViewItem!
|
||||
@@ -61,7 +61,6 @@ final class MetadataSearchController: NSWindowController, NSTableViewDataSource,
|
||||
private var tvShowService: MetadataService = MetadataSearch.defaultTVService
|
||||
|
||||
// MARK: Other
|
||||
private var artworkSelector: NSWindowController?
|
||||
private weak var delegate: MetadataSearchControllerDelegate?
|
||||
|
||||
private let terms: MetadataSearchTerms
|
||||
@@ -88,19 +87,19 @@ final class MetadataSearchController: NSWindowController, NSTableViewDataSource,
|
||||
self.delegate = delegate
|
||||
self.terms = searchTerms
|
||||
|
||||
super.init(window: nil)
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override var windowNibName: NSNib.Name? {
|
||||
override var nibName: NSNib.Name? {
|
||||
return "MetadataSearch"
|
||||
}
|
||||
|
||||
override func windowDidLoad() {
|
||||
super.windowDidLoad()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
movieMetadataProvider.addItems(withTitles: MetadataSearch.movieProviders)
|
||||
tvMetadataProvider.addItems(withTitles: MetadataSearch.tvProviders)
|
||||
@@ -289,55 +288,7 @@ final class MetadataSearchController: NSWindowController, NSTableViewDataSource,
|
||||
private func loadDone(search: MetadataSearch, result: MetadataResult) {
|
||||
DispatchQueue.main.async {
|
||||
self.state = .closing(search: search, result: result)
|
||||
if result.remoteArtworks.isEmpty {
|
||||
self.addMetadata()
|
||||
}
|
||||
else {
|
||||
self.selectArtwork(artworks: result.remoteArtworks, type: search.type)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func selectArtwork(artworks: [Artwork], type: MetadataType) {
|
||||
if #available(OSX 10.13, *) {
|
||||
let artworkSelectorController = ArtworkSelectorController(artworks: artworks, size: window?.frame.size,
|
||||
type: type, delegate: self)
|
||||
window?.beginSheet(artworkSelectorController.window!, completionHandler: nil)
|
||||
artworkSelector = artworkSelectorController
|
||||
} else {
|
||||
let artworkSelectorController = ArtworkSelectorControllerOldStyle(artworks: artworks, size: window?.frame.size,
|
||||
type: type, delegate: self)
|
||||
window?.beginSheet(artworkSelectorController.window!, completionHandler: nil)
|
||||
artworkSelector = artworkSelectorController
|
||||
}
|
||||
}
|
||||
|
||||
func didSelect(artworks: [Artwork]) {
|
||||
window?.endSheet((artworkSelector?.window)!)
|
||||
load(artworks: artworks)
|
||||
}
|
||||
|
||||
private func load(artworks: [Artwork]) {
|
||||
switch state {
|
||||
case .closing(_, let result):
|
||||
|
||||
DispatchQueue.global(qos: .userInitiated).async {
|
||||
for artwork in artworks {
|
||||
if let data = URLSession.data(from: artwork.url) {
|
||||
result.artworks.append(MP42Image(data: data, type: MP42_ART_JPEG))
|
||||
}
|
||||
// Hack, download smaller iTunes version if big iTunes version is not available
|
||||
else if artwork.service == iTunesStore().name,
|
||||
let data = URLSession.data(from: artwork.url.deletingPathExtension().appendingPathExtension("600x600bb.jpg")) {
|
||||
result.artworks.append(MP42Image(data: data, type: MP42_ART_JPEG))
|
||||
}
|
||||
}
|
||||
DispatchQueue.main.async {
|
||||
self.addMetadata()
|
||||
}
|
||||
}
|
||||
default:
|
||||
addMetadata()
|
||||
self.addMetadata()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -357,12 +308,11 @@ final class MetadataSearchController: NSWindowController, NSTableViewDataSource,
|
||||
default:
|
||||
break
|
||||
}
|
||||
window?.sheetParent?.endSheet(window!, returnCode: NSApplication.ModalResponse.OK)
|
||||
}
|
||||
|
||||
@IBAction func closeWindow(_ sender: Any) {
|
||||
cancelSearch()
|
||||
window?.sheetParent?.endSheet(window!, returnCode: NSApplication.ModalResponse.cancel)
|
||||
delegate?.didSelect(metadata: nil)
|
||||
}
|
||||
|
||||
// MARK - UI state
|
||||
@@ -385,10 +335,8 @@ final class MetadataSearchController: NSWindowController, NSTableViewDataSource,
|
||||
case .tvSearch:
|
||||
progressText.stringValue = NSLocalizedString("Downloading additional TV metadata…", comment: "")
|
||||
}
|
||||
case .closing:
|
||||
progressText.stringValue = NSLocalizedString("Downloading artwork…", comment: "")
|
||||
default:
|
||||
break
|
||||
case .closing: break
|
||||
default: break
|
||||
}
|
||||
progressText.isHidden = false
|
||||
}
|
||||
@@ -445,7 +393,7 @@ final class MetadataSearchController: NSWindowController, NSTableViewDataSource,
|
||||
swithDefaultButton(from: searchMovieButton, to: addButton, disableOldButton: nil)
|
||||
swithDefaultButton(from: searchTvButton, to: addButton, disableOldButton: nil)
|
||||
updateSearchButtonVisibility()
|
||||
window?.makeFirstResponder(resultsTable)
|
||||
view.window?.makeFirstResponder(resultsTable)
|
||||
case .additionalSearch:
|
||||
startProgressReport()
|
||||
reloadTableData()
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
//
|
||||
// MetadataSearchWindowController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 06/08/2019.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
protocol MetadataSearchViewControllerDelegate : AnyObject {
|
||||
func didSelect(metadata: MetadataResult)
|
||||
}
|
||||
|
||||
class MetadataSearchViewController: NSViewController, MetadataSearchControllerDelegate, ArtworkSelectorControllerDelegate {
|
||||
|
||||
private let searchTerms: MetadataSearchTerms
|
||||
|
||||
private lazy var metadataViewController: MetadataSearchController = {
|
||||
return MetadataSearchController(delegate: self, searchTerms: searchTerms)
|
||||
}()
|
||||
private var artworkViewController: ArtworkSelectorController?
|
||||
|
||||
private weak var delegate: MetadataSearchViewControllerDelegate?
|
||||
|
||||
init(delegate: MetadataSearchViewControllerDelegate, searchTerms: MetadataSearchTerms = .none) {
|
||||
self.delegate = delegate
|
||||
self.searchTerms = searchTerms
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override var preferredMinimumSize: NSSize {
|
||||
return NSSize(width: 560, height: 600)
|
||||
}
|
||||
|
||||
override func viewDidLoad() {
|
||||
view.frame.size = preferredMinimumSize
|
||||
addChild(metadataViewController)
|
||||
view.addSubview(metadataViewController.view)
|
||||
}
|
||||
|
||||
override func addChild(_ childViewController: NSViewController) {
|
||||
childViewController.view.frame.size = view.frame.size
|
||||
childViewController.view.autoresizingMask = [NSView.AutoresizingMask.width, NSView.AutoresizingMask.height]
|
||||
super.addChild(childViewController)
|
||||
}
|
||||
|
||||
override func transition(from fromViewController: NSViewController, to toViewController: NSViewController, options: NSViewController.TransitionOptions = [], completionHandler completion: (() -> Void)? = nil) {
|
||||
CATransaction.begin()
|
||||
addChild(toViewController)
|
||||
super.transition(from: fromViewController, to: toViewController, options: options, completionHandler: completion)
|
||||
CATransaction.commit()
|
||||
}
|
||||
|
||||
func didSelect(metadata: MetadataResult?) {
|
||||
if let result = metadata {
|
||||
if result.remoteArtworks.isEmpty {
|
||||
delegate?.didSelect(metadata: result)
|
||||
presentingViewController?.dismiss(self)
|
||||
} else {
|
||||
artworkViewController = ArtworkSelectorController(metadata: result, delegate: self)
|
||||
transition(from: metadataViewController, to: artworkViewController!, options: [.slideForward, .allowUserInteraction], completionHandler: {
|
||||
self.removeChild(at: 0)
|
||||
self.view.window?.makeFirstResponder(self.artworkViewController?.imageBrowser)
|
||||
})
|
||||
}
|
||||
} else {
|
||||
presentingViewController?.dismiss(self)
|
||||
}
|
||||
}
|
||||
|
||||
func didAddArtworks(metadata: MetadataResult) {
|
||||
delegate?.didSelect(metadata: metadata)
|
||||
presentingViewController?.dismiss(self)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="MetadataSearchViewController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="view" destination="HYk-Hf-rvN" id="sRR-e3-RvH"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<view id="HYk-Hf-rvN">
|
||||
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -39,10 +39,10 @@ final class OffsetViewController: NSViewController {
|
||||
track.startOffset = offsetField.doubleValue
|
||||
doc.updateChangeCount(.changeDone)
|
||||
}
|
||||
dismiss(self)
|
||||
presentingViewController?.dismiss(self)
|
||||
}
|
||||
|
||||
@IBAction func dismiss(_ sender: Any) {
|
||||
dismiss(self)
|
||||
presentingViewController?.dismiss(self)
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,7 @@ final class PresetEditorViewController: MovieViewController {
|
||||
}
|
||||
|
||||
@IBAction func done(_ sender: Any) {
|
||||
dismiss(self)
|
||||
presentingViewController?.dismiss(self)
|
||||
}
|
||||
|
||||
@IBAction func setReplaceArtworksState(_ sender: NSButton) {
|
||||
|
||||
+3
-3
@@ -126,7 +126,7 @@
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>1.5.16, Copyright 2019 Damiano Galassi</string>
|
||||
<string>1.5.17, Copyright 2019 Damiano Galassi</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>Subler.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
@@ -138,11 +138,11 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.5.16</string>
|
||||
<string>1.5.17</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.5.16</string>
|
||||
<string>1.5.17</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.video</string>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
|
||||
@@ -59,6 +59,8 @@
|
||||
A962D9EE1F8B7F9F00802EEF /* FileImportController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A962D9ED1F8B7F9F00802EEF /* FileImportController.swift */; };
|
||||
A9676A301FB6E85300C1E300 /* LanguageTransformer.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9676A2F1FB6E85300C1E300 /* LanguageTransformer.swift */; };
|
||||
A9676A341FB6EAAD00C1E300 /* ItemViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9676A331FB6EAAD00C1E300 /* ItemViewController.swift */; };
|
||||
A974F9D022F9B48900DBB30E /* MetadataSearchViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A974F9CE22F9B48900DBB30E /* MetadataSearchViewController.swift */; };
|
||||
A974F9D122F9B48900DBB30E /* MetadataSearchViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A974F9CF22F9B48900DBB30E /* MetadataSearchViewController.xib */; };
|
||||
A979B3862025C8BF00468362 /* DocumentWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A979B3842025C8BF00468362 /* DocumentWindowController.swift */; };
|
||||
A97C3AA5204F18C90007AD38 /* TokenCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97C3AA4204F18C90007AD38 /* TokenCellView.swift */; };
|
||||
A97D99DA22A0240C001FA3A7 /* OCRManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97D99D922A0240C001FA3A7 /* OCRManager.swift */; };
|
||||
@@ -135,7 +137,6 @@
|
||||
A9F7F8E01837C44B0036AE7E /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9ED7B21180067A2008FD3A8 /* IOKit.framework */; };
|
||||
A9F8045A1FB6F4FD0069FF43 /* ImageBrowserView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9F804591FB6F4FD0069FF43 /* ImageBrowserView.swift */; };
|
||||
A9FC6FF61EF2E3280034CCED /* TheTVDBService.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9FC6FF51EF2E3280034CCED /* TheTVDBService.swift */; };
|
||||
CD4E6E5D12F744210095C84F /* ArtworkSelectorOld.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD4E6E5B12F744210095C84F /* ArtworkSelectorOld.xib */; };
|
||||
CD71FEA612F1B62600F0A98D /* MetadataSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */; };
|
||||
CDE8E452174CBBD4009410B5 /* iTunesStores.json in Resources */ = {isa = PBXBuildFile; fileRef = CDE8E451174CBBD4009410B5 /* iTunesStores.json */; };
|
||||
/* End PBXBuildFile section */
|
||||
@@ -241,7 +242,6 @@
|
||||
A924A5111D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Classes/PropertyView/Base.lproj/VideoView.xib; sourceTree = "<group>"; };
|
||||
A924A5121D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
|
||||
A924A5141D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MetadataSearch.xib; sourceTree = "<group>"; };
|
||||
A924A5151D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ArtworkSelectorOld.xib; sourceTree = "<group>"; };
|
||||
A924A5161D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SBChapterSearch.xib; sourceTree = "<group>"; };
|
||||
A924A5171D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Queue.xib; sourceTree = "<group>"; };
|
||||
A924A5181D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/QueueOptions.xib; sourceTree = "<group>"; };
|
||||
@@ -285,6 +285,8 @@
|
||||
A96EA9E821FA47520033EC5F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = "<group>"; };
|
||||
A96EA9E921FA47520033EC5F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
A973B9F922A906D100BCB91E /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/OCRPrefsViewController.strings; sourceTree = "<group>"; };
|
||||
A974F9CE22F9B48900DBB30E /* MetadataSearchViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataSearchViewController.swift; path = Classes/MetadataSearchViewController.swift; sourceTree = "<group>"; };
|
||||
A974F9CF22F9B48900DBB30E /* MetadataSearchViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = MetadataSearchViewController.xib; path = Classes/MetadataSearchViewController.xib; sourceTree = "<group>"; };
|
||||
A979B3842025C8BF00468362 /* DocumentWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = DocumentWindowController.swift; path = Classes/DocumentWindowController.swift; sourceTree = "<group>"; };
|
||||
A97C3AA4204F18C90007AD38 /* TokenCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TokenCellView.swift; path = Classes/TokenCellView.swift; sourceTree = "<group>"; };
|
||||
A97D99D922A0240C001FA3A7 /* OCRManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OCRManager.swift; path = Classes/OCRManager.swift; sourceTree = "<group>"; };
|
||||
@@ -331,7 +333,6 @@
|
||||
A9BA1AD61DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = Classes/PropertyView/it.lproj/VideoView.strings; sourceTree = "<group>"; };
|
||||
A9BA1AD71DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/MainMenu.strings; sourceTree = "<group>"; };
|
||||
A9BA1AD91DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/MetadataSearch.strings; sourceTree = "<group>"; };
|
||||
A9BA1ADA1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/ArtworkSelectorOld.strings; sourceTree = "<group>"; };
|
||||
A9BA1ADD1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/SBChapterSearch.strings; sourceTree = "<group>"; };
|
||||
A9BA1ADE1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Queue.strings; sourceTree = "<group>"; };
|
||||
A9BA1ADF1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/QueueOptions.strings; sourceTree = "<group>"; };
|
||||
@@ -641,12 +642,13 @@
|
||||
A962D9ED1F8B7F9F00802EEF /* FileImportController.swift */,
|
||||
A93105351F9758EC00605146 /* FileImportController.xib */,
|
||||
A98542D820D197DF00EB9803 /* ArtworkSelector.swift */,
|
||||
CD4E6E5B12F744210095C84F /* ArtworkSelectorOld.xib */,
|
||||
A98542D520D197D300EB9803 /* ArtworkSelector.xib */,
|
||||
A98542DA20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift */,
|
||||
A98542DB20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib */,
|
||||
A997B0A91F348AB000974C9C /* MetadataSearchController.swift */,
|
||||
CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */,
|
||||
A974F9CE22F9B48900DBB30E /* MetadataSearchViewController.swift */,
|
||||
A974F9CF22F9B48900DBB30E /* MetadataSearchViewController.xib */,
|
||||
A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */,
|
||||
A9D4B8651C05BD04007845C4 /* SBChapterSearch.xib */,
|
||||
A9FD5D150F3C692400817716 /* PropertyView */,
|
||||
@@ -744,7 +746,7 @@
|
||||
2A37F4A9FDCFA73011CA2CEA /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 1000;
|
||||
LastUpgradeCheck = 1100;
|
||||
TargetAttributes = {
|
||||
8D15AC270486D014006FF6A4 = {
|
||||
LastSwiftMigration = 1020;
|
||||
@@ -841,8 +843,8 @@
|
||||
CD71FEA612F1B62600F0A98D /* MetadataSearch.xib in Resources */,
|
||||
A90CD5C01FD177230070A067 /* TokensViewController.xib in Resources */,
|
||||
A9A4A96B202F51FF00482D12 /* ProgressViewController.xib in Resources */,
|
||||
CD4E6E5D12F744210095C84F /* ArtworkSelectorOld.xib in Resources */,
|
||||
61CEC0CE1E7569E4000FECC1 /* MultiSelectView.xib in Resources */,
|
||||
A974F9D122F9B48900DBB30E /* MetadataSearchViewController.xib in Resources */,
|
||||
A9BC410818D9ABC000F8C92C /* QueueItem.xib in Resources */,
|
||||
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */,
|
||||
A9C31E642029A82200CEF474 /* AdvancedPrefsViewController.xib in Resources */,
|
||||
@@ -922,6 +924,7 @@
|
||||
A9C09C981F99F971007939EE /* ExpandedTableView.swift in Sources */,
|
||||
A90240DB2063BD3700E762FA /* MediaTagsController.swift in Sources */,
|
||||
A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */,
|
||||
A974F9D022F9B48900DBB30E /* MetadataSearchViewController.swift in Sources */,
|
||||
A956CE6B1F99EAAD00093992 /* Logger.swift in Sources */,
|
||||
A956CE691F99E93D00093992 /* ButtonToolbarItem.swift in Sources */,
|
||||
A98D44102036F661005CB092 /* AppDelegate.swift in Sources */,
|
||||
@@ -1304,15 +1307,6 @@
|
||||
name = QueueOptions.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CD4E6E5B12F744210095C84F /* ArtworkSelectorOld.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A924A5151D4B9E66008301A7 /* Base */,
|
||||
A9BA1ADA1DBF773700FD0B38 /* it */,
|
||||
);
|
||||
name = ArtworkSelectorOld.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
@@ -1417,7 +1411,10 @@
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CODE_SIGN_ENTITLEMENTS = Subler.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEVELOPMENT_TEAM = 5X9DE89KYV;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
@@ -1456,6 +1453,9 @@
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CODE_SIGN_ENTITLEMENTS = Subler.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = 5X9DE89KYV;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
/* Class = "NSWindow"; title = "Window"; ObjectID = "3"; */
|
||||
"3.title" = "Finestra";
|
||||
|
||||
/* Class = "NSSlider"; ibExternalAccessibilityDescription = "Zoom"; ObjectID = "8"; */
|
||||
"8.ibExternalAccessibilityDescription" = "Ingrandisci";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Set as artwork"; ObjectID = "14"; */
|
||||
"14.title" = "Imposta come illustrazione";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Load more artwork..."; ObjectID = "16"; */
|
||||
"16.title" = "Carica più illustrazioni…";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "None"; ObjectID = "50"; */
|
||||
"50.title" = "Nessuno";
|
||||
|
||||
Reference in new issue
Block a user