Refactor the document window controller and the prefs controller. Some regression still in there.
This commit is contained in:
49 files changed
+2505
-2379
No files matched your search
@@ -1,70 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13771" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13771"/>
|
||||
<capability name="Alignment constraints to the first baseline" minToolsVersion="6.0"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="SBPrefsController">
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="AdvancedPrefsViewController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="advancedView" destination="94" id="8hG-Wq-rYD"/>
|
||||
<outlet property="generalView" destination="76" id="0Fo-d5-cUM"/>
|
||||
<outlet property="window" destination="1" id="6"/>
|
||||
<outlet property="view" destination="94" id="7fP-dB-JCb"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Preferences" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" showsToolbarButton="NO" animationBehavior="default" id="1">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="625" y="992" width="620" height="130"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<view key="contentView" id="2">
|
||||
<rect key="frame" x="0.0" y="0.0" width="620" height="130"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</view>
|
||||
<toolbar key="toolbar" implicitIdentifier="0A22B294-70B1-4E35-B468-425EC64FF9C7" autosavesConfiguration="NO" displayMode="iconAndLabel" sizeMode="regular" id="W21-Kp-oTx">
|
||||
<allowedToolbarItems>
|
||||
<toolbarItem implicitItemIdentifier="NSToolbarSpaceItem" id="PFX-qh-pDu"/>
|
||||
<toolbarItem implicitItemIdentifier="NSToolbarFlexibleSpaceItem" id="j41-vQ-qUD"/>
|
||||
<toolbarItem implicitItemIdentifier="3D1B25A3-891C-42F5-ADA7-6B1B83F02120" explicitItemIdentifier="TOOLBAR_GENERAL" label="General" paletteLabel="General" tag="-1" image="NSPreferencesGeneral" autovalidates="NO" selectable="YES" id="h9J-Wg-NA5">
|
||||
<connections>
|
||||
<action selector="setPrefView:" target="-2" id="Whc-uQ-A0c"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="0809D367-75C6-4BB8-A355-B096AFFF8774" explicitItemIdentifier="TOOLBAR_METADATA" label="Metadata" paletteLabel="Metadata" tag="-1" image="NSUserAccounts" autovalidates="NO" selectable="YES" id="1NM-zc-8xJ">
|
||||
<connections>
|
||||
<action selector="setPrefView:" target="-2" id="Ag8-C8-L9t"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="17842401-943C-414A-8A69-EF8E637F2B25" explicitItemIdentifier="TOOLBAR_OUTPUT" label="Filename" paletteLabel="Filename" tag="-1" image="mp4-file" autovalidates="NO" selectable="YES" id="DgV-th-SMR">
|
||||
<connections>
|
||||
<action selector="setPrefView:" target="-2" id="TZd-0g-SWe"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="E63989A9-D0E0-4806-8068-3C2D03D45257" explicitItemIdentifier="TOOLBAR_SETS" label="Sets" paletteLabel="Sets" tag="-1" image="NSFolderSmart" autovalidates="NO" selectable="YES" id="x8c-1o-aZk">
|
||||
<connections>
|
||||
<action selector="setPrefView:" target="-2" id="qzJ-nP-jfu"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="302AF2AA-7CED-4DAB-B037-A208F5CBF88B" explicitItemIdentifier="TOOLBAR_ADVANCED" label="Advanced" paletteLabel="Advanced" tag="-1" image="NSAdvanced" autovalidates="NO" selectable="YES" id="yrt-qD-Ctd">
|
||||
<connections>
|
||||
<action selector="setPrefView:" target="-2" id="aWt-By-iD2"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
</allowedToolbarItems>
|
||||
<defaultToolbarItems>
|
||||
<toolbarItem reference="h9J-Wg-NA5"/>
|
||||
<toolbarItem reference="1NM-zc-8xJ"/>
|
||||
<toolbarItem reference="x8c-1o-aZk"/>
|
||||
<toolbarItem reference="DgV-th-SMR"/>
|
||||
<toolbarItem reference="yrt-qD-Ctd"/>
|
||||
</defaultToolbarItems>
|
||||
</toolbar>
|
||||
<point key="canvasLocation" x="-61" y="-1091"/>
|
||||
</window>
|
||||
<userDefaultsController id="3">
|
||||
<declaredKeys>
|
||||
<string>defaultPreset</string>
|
||||
@@ -75,224 +23,9 @@
|
||||
<string>chaptersPreviewTrack</string>
|
||||
</declaredKeys>
|
||||
</userDefaultsController>
|
||||
<customView id="76" userLabel="General View">
|
||||
<rect key="frame" x="0.0" y="0.0" width="717" height="268"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="77">
|
||||
<rect key="frame" x="152" y="231" width="174" height="17"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Check for update:" id="89">
|
||||
<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>
|
||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="78">
|
||||
<rect key="frame" x="152" y="206" width="174" height="17"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Window:" id="88">
|
||||
<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>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="79">
|
||||
<rect key="frame" x="330" y="230" width="232" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Automatically check daily" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="87">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="3" name="value" keyPath="values.SUEnableAutomaticChecks" id="90"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="80">
|
||||
<rect key="frame" x="330" y="205" width="232" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Remember Size" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="86">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="3" name="value" keyPath="values.rememberWindowSize" id="92">
|
||||
<dictionary key="options">
|
||||
<bool key="NSValidatesImmediately" value="YES"/>
|
||||
</dictionary>
|
||||
</binding>
|
||||
</connections>
|
||||
</button>
|
||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="81">
|
||||
<rect key="frame" x="152" y="181" width="174" height="17"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Chapters:" id="85">
|
||||
<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>
|
||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="206">
|
||||
<rect key="frame" x="152" y="115" width="174" height="17"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Show ratings for:" id="207">
|
||||
<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>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="139">
|
||||
<rect key="frame" x="152" y="54" width="174" height="17"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Privacy:" id="140">
|
||||
<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>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="82">
|
||||
<rect key="frame" x="330" y="180" width="232" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Create Preview Images at position:" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="84">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="3" name="value" keyPath="values.chaptersPreviewTrack" id="91">
|
||||
<dictionary key="options">
|
||||
<bool key="NSValidatesImmediately" value="YES"/>
|
||||
</dictionary>
|
||||
</binding>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="133">
|
||||
<rect key="frame" x="326" y="44" width="188" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Clear recent searches" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="134">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="clearRecentSearches:" target="-2" id="135"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="136">
|
||||
<rect key="frame" x="326" y="13" width="188" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Delete cached metadata" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="137">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="deleteCachedMetadata:" target="-2" id="141"/>
|
||||
</connections>
|
||||
</button>
|
||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="236">
|
||||
<rect key="frame" x="330" y="108" width="181" height="26"/>
|
||||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="237">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" title="OtherViews" id="238"/>
|
||||
</popUpButtonCell>
|
||||
<connections>
|
||||
<accessibilityConnection property="title" destination="206" id="SzO-00-e3U"/>
|
||||
<action selector="updateRatingsCountry:" target="-2" id="242"/>
|
||||
<binding destination="-2" name="content" keyPath="ratingsCountries" id="245"/>
|
||||
<binding destination="123" name="selectedValue" keyPath="values.SBRatingsCountry" previousBinding="245" id="248"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="249">
|
||||
<rect key="frame" x="332" y="95" width="165" height="14"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="USA ratings are always shown." id="250">
|
||||
<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>
|
||||
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="JhA-jk-CGt">
|
||||
<rect key="frame" x="350" y="155" width="212" height="24"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="208" id="d5Y-wo-ULU"/>
|
||||
</constraints>
|
||||
<sliderCell key="cell" state="on" alignment="left" maxValue="1" doubleValue="0.5" tickMarkPosition="below" numberOfTickMarks="7" sliderType="linear" id="iKX-dX-4IV"/>
|
||||
<connections>
|
||||
<binding destination="3" name="value" keyPath="values.SBChaptersPreviewPosition" id="JtQ-lM-MNU"/>
|
||||
<binding destination="3" name="enabled" keyPath="values.chaptersPreviewTrack" id="hNU-uO-zsL"/>
|
||||
</connections>
|
||||
</slider>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tVb-Qq-sU7">
|
||||
<rect key="frame" x="486" y="139" width="76" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="End" id="He0-rl-DBi">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mNP-6I-gV4">
|
||||
<rect key="frame" x="431" y="139" width="51" height="17"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="47" id="zjz-10-qHZ"/>
|
||||
</constraints>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="Middle" id="2o1-dB-mt1">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XPF-Mh-XYC">
|
||||
<rect key="frame" x="350" y="139" width="77" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Beginning" id="3Vs-qA-7Z6">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="78" firstAttribute="top" secondItem="77" secondAttribute="bottom" constant="8" id="0x2-Rj-d0b"/>
|
||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="baseline" secondItem="tVb-Qq-sU7" secondAttribute="baseline" id="52b-ml-AZy"/>
|
||||
<constraint firstItem="236" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" constant="24" id="828-Eq-y4d"/>
|
||||
<constraint firstItem="tVb-Qq-sU7" firstAttribute="leading" secondItem="mNP-6I-gV4" secondAttribute="trailing" constant="8" symbolic="YES" id="8Te-Q2-viz"/>
|
||||
<constraint firstItem="236" firstAttribute="trailing" secondItem="133" secondAttribute="trailing" id="8iW-3R-Ofd"/>
|
||||
<constraint firstItem="tVb-Qq-sU7" firstAttribute="trailing" secondItem="JhA-jk-CGt" secondAttribute="trailing" id="8jY-ZF-1WY"/>
|
||||
<constraint firstItem="249" firstAttribute="leading" secondItem="236" secondAttribute="leading" constant="2" id="CWh-CQ-Gjp"/>
|
||||
<constraint firstItem="XPF-Mh-XYC" firstAttribute="baseline" secondItem="mNP-6I-gV4" secondAttribute="baseline" id="EE8-Yr-xvv"/>
|
||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="centerX" secondItem="JhA-jk-CGt" secondAttribute="centerX" id="FZ2-ZC-gmG"/>
|
||||
<constraint firstItem="81" firstAttribute="width" secondItem="78" secondAttribute="width" id="H21-rp-ydr"/>
|
||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="firstBaseline" secondItem="tVb-Qq-sU7" secondAttribute="firstBaseline" id="HKj-xN-JbG"/>
|
||||
<constraint firstItem="136" firstAttribute="top" secondItem="133" secondAttribute="bottom" constant="10" id="HQd-fW-eDG"/>
|
||||
<constraint firstItem="XPF-Mh-XYC" firstAttribute="leading" secondItem="JhA-jk-CGt" secondAttribute="leading" id="Iqr-2A-PS6"/>
|
||||
<constraint firstItem="82" firstAttribute="baseline" secondItem="81" secondAttribute="baseline" id="JLw-rO-S2E"/>
|
||||
<constraint firstItem="236" firstAttribute="leading" secondItem="133" secondAttribute="leading" id="Jcj-3h-k8w"/>
|
||||
<constraint firstItem="81" firstAttribute="leading" secondItem="77" secondAttribute="leading" id="KVj-AM-bYM"/>
|
||||
<constraint firstItem="133" firstAttribute="leading" secondItem="136" secondAttribute="leading" id="Lfq-Nj-qQx"/>
|
||||
<constraint firstItem="206" firstAttribute="leading" secondItem="139" secondAttribute="leading" id="Mn0-be-4AT"/>
|
||||
<constraint firstItem="78" firstAttribute="leading" secondItem="77" secondAttribute="leading" id="Owr-i6-z72"/>
|
||||
<constraint firstItem="79" firstAttribute="baseline" secondItem="77" secondAttribute="baseline" id="Qf4-MW-Qiw"/>
|
||||
<constraint firstItem="JhA-jk-CGt" firstAttribute="trailing" secondItem="82" secondAttribute="trailing" id="Qgs-Zw-C8c"/>
|
||||
<constraint firstItem="78" firstAttribute="width" secondItem="77" secondAttribute="width" id="RFj-Z3-Mqe"/>
|
||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="leading" secondItem="XPF-Mh-XYC" secondAttribute="trailing" constant="8" symbolic="YES" id="S5b-Cs-odg"/>
|
||||
<constraint firstItem="79" firstAttribute="leading" secondItem="77" secondAttribute="trailing" constant="8" id="TdJ-QM-r1R"/>
|
||||
<constraint firstItem="236" firstAttribute="leading" secondItem="82" secondAttribute="leading" id="UjG-IS-OFm"/>
|
||||
<constraint firstItem="133" firstAttribute="leading" secondItem="139" secondAttribute="trailing" constant="8" symbolic="YES" id="Urf-rY-cPF"/>
|
||||
<constraint firstItem="206" firstAttribute="leading" secondItem="81" secondAttribute="leading" id="VZI-GJ-JXx"/>
|
||||
<constraint firstItem="81" firstAttribute="top" secondItem="78" secondAttribute="bottom" constant="8" id="Vf9-01-JAo"/>
|
||||
<constraint firstItem="82" firstAttribute="trailing" secondItem="79" secondAttribute="trailing" id="Wes-ja-CEq"/>
|
||||
<constraint firstItem="139" firstAttribute="baseline" secondItem="133" secondAttribute="baseline" id="WzU-N5-1tL"/>
|
||||
<constraint firstItem="133" firstAttribute="trailing" secondItem="136" secondAttribute="trailing" id="b4O-t4-ChA"/>
|
||||
<constraint firstItem="133" firstAttribute="top" secondItem="249" secondAttribute="bottom" constant="23" id="bSe-LH-CGb"/>
|
||||
<constraint firstItem="82" firstAttribute="leading" secondItem="81" secondAttribute="trailing" constant="8" id="cZV-zB-Lqc"/>
|
||||
<constraint firstItem="80" firstAttribute="leading" secondItem="78" secondAttribute="trailing" constant="8" id="dJd-xY-cDs"/>
|
||||
<constraint firstItem="XPF-Mh-XYC" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" id="gRG-D4-PHt"/>
|
||||
<constraint firstItem="236" firstAttribute="top" secondItem="XPF-Mh-XYC" secondAttribute="bottom" constant="7" id="kqP-kQ-aBz"/>
|
||||
<constraint firstItem="236" firstAttribute="leading" secondItem="206" secondAttribute="trailing" constant="8" symbolic="YES" id="mZd-aa-0Q2"/>
|
||||
<constraint firstAttribute="bottom" secondItem="136" secondAttribute="bottom" constant="20" id="pLl-pH-cU7"/>
|
||||
<constraint firstItem="206" firstAttribute="baseline" secondItem="236" secondAttribute="baseline" id="rAr-lj-Ndl"/>
|
||||
<constraint firstItem="77" firstAttribute="top" secondItem="76" secondAttribute="top" constant="20" id="svr-rg-ePI"/>
|
||||
<constraint firstItem="77" firstAttribute="leading" secondItem="76" secondAttribute="leading" priority="750" constant="154" id="u5W-Da-Da8"/>
|
||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="249" secondAttribute="trailing" constant="20" symbolic="YES" id="wS4-dr-Tpd"/>
|
||||
<constraint firstItem="80" firstAttribute="baseline" secondItem="78" secondAttribute="baseline" id="wko-SJ-fYa"/>
|
||||
<constraint firstItem="XPF-Mh-XYC" firstAttribute="firstBaseline" secondItem="mNP-6I-gV4" secondAttribute="firstBaseline" id="xDm-Kg-nsd"/>
|
||||
<constraint firstItem="249" firstAttribute="top" secondItem="236" secondAttribute="bottom" constant="2" id="yAF-h5-Kgz"/>
|
||||
<constraint firstItem="80" firstAttribute="trailing" secondItem="79" secondAttribute="trailing" id="yDn-Wd-KXg"/>
|
||||
<constraint firstItem="JhA-jk-CGt" firstAttribute="top" secondItem="82" secondAttribute="bottom" constant="5" id="yP1-bp-6Pa"/>
|
||||
<constraint firstAttribute="trailing" secondItem="79" secondAttribute="trailing" priority="750" constant="157" id="zbp-VJ-Uup"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="-40.5" y="-913"/>
|
||||
</customView>
|
||||
<customView id="94" userLabel="Advanced View">
|
||||
<rect key="frame" x="0.0" y="0.0" width="610" height="324"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="189">
|
||||
<rect key="frame" x="147" y="77" width="133" height="17"/>
|
||||
@@ -536,7 +269,7 @@
|
||||
<constraint firstItem="113" firstAttribute="width" secondItem="189" secondAttribute="width" id="Cj1-vf-YOM"/>
|
||||
<constraint firstItem="edJ-A5-eyf" firstAttribute="leading" secondItem="101" secondAttribute="trailing" constant="25" id="DZc-94-qf8"/>
|
||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="3fA-qQ-VvX" secondAttribute="trailing" constant="20" symbolic="YES" id="F1Y-Jv-W90"/>
|
||||
<constraint firstAttribute="bottom" secondItem="fTk-UL-aoX" secondAttribute="bottom" constant="20" id="G2J-DC-cm3"/>
|
||||
<constraint firstAttribute="bottom" secondItem="fTk-UL-aoX" secondAttribute="bottom" constant="20" symbolic="YES" id="G2J-DC-cm3"/>
|
||||
<constraint firstItem="ETf-LE-57P" firstAttribute="leading" secondItem="Pud-GM-vyU" secondAttribute="trailing" constant="7" id="H0z-Jb-pVI"/>
|
||||
<constraint firstItem="3fA-qQ-VvX" firstAttribute="top" secondItem="94" secondAttribute="top" constant="22" id="KBf-Cn-XkI"/>
|
||||
<constraint firstItem="3fA-qQ-VvX" firstAttribute="baseline" secondItem="hgg-QV-i0I" secondAttribute="baseline" id="Naa-uJ-Mn4"/>
|
||||
@@ -576,11 +309,4 @@
|
||||
</customView>
|
||||
<userDefaultsController representsSharedInstance="YES" id="123"/>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="NSAdvanced" width="32" height="32"/>
|
||||
<image name="NSFolderSmart" width="32" height="32"/>
|
||||
<image name="NSPreferencesGeneral" width="32" height="32"/>
|
||||
<image name="NSUserAccounts" width="32" height="32"/>
|
||||
<image name="mp4-file" width="32" height="32"/>
|
||||
</resources>
|
||||
</document>
|
||||
Executable
+244
@@ -0,0 +1,244 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="Alignment constraints to the first baseline" minToolsVersion="6.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="GeneralPrefsViewController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="view" destination="76" id="u5x-9E-WAf"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<userDefaultsController id="3">
|
||||
<declaredKeys>
|
||||
<string>defaultPreset</string>
|
||||
<string>checkForUpdate</string>
|
||||
<string>SUEnableAutomaticChecks</string>
|
||||
<string>windowSize</string>
|
||||
<string>rememberWindowSize</string>
|
||||
<string>chaptersPreviewTrack</string>
|
||||
</declaredKeys>
|
||||
</userDefaultsController>
|
||||
<customView id="76">
|
||||
<rect key="frame" x="0.0" y="0.0" width="717" height="268"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="77">
|
||||
<rect key="frame" x="152" y="231" width="174" height="17"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Check for update:" id="89">
|
||||
<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>
|
||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="78">
|
||||
<rect key="frame" x="152" y="206" width="174" height="17"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Window:" id="88">
|
||||
<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>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="79">
|
||||
<rect key="frame" x="330" y="230" width="232" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Automatically check daily" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="87">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="3" name="value" keyPath="values.SUEnableAutomaticChecks" id="90"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="80">
|
||||
<rect key="frame" x="330" y="205" width="232" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Remember Size" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="86">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="3" name="value" keyPath="values.rememberWindowSize" id="92">
|
||||
<dictionary key="options">
|
||||
<bool key="NSValidatesImmediately" value="YES"/>
|
||||
</dictionary>
|
||||
</binding>
|
||||
</connections>
|
||||
</button>
|
||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="81">
|
||||
<rect key="frame" x="152" y="181" width="174" height="17"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Chapters:" id="85">
|
||||
<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>
|
||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="206">
|
||||
<rect key="frame" x="152" y="115" width="174" height="17"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Show ratings for:" id="207">
|
||||
<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>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="139">
|
||||
<rect key="frame" x="152" y="54" width="174" height="17"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Privacy:" id="140">
|
||||
<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>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="82">
|
||||
<rect key="frame" x="330" y="180" width="232" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Create Preview Images at position:" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="84">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="3" name="value" keyPath="values.chaptersPreviewTrack" id="91">
|
||||
<dictionary key="options">
|
||||
<bool key="NSValidatesImmediately" value="YES"/>
|
||||
</dictionary>
|
||||
</binding>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="133">
|
||||
<rect key="frame" x="326" y="44" width="188" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Clear recent searches" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="134">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="clearRecentSearches:" target="-2" id="135"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="136">
|
||||
<rect key="frame" x="326" y="13" width="188" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Delete cached metadata" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="137">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<action selector="deleteCachedMetadata:" target="-2" id="141"/>
|
||||
</connections>
|
||||
</button>
|
||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="236">
|
||||
<rect key="frame" x="330" y="108" width="181" height="26"/>
|
||||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="237">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" title="OtherViews" id="238"/>
|
||||
</popUpButtonCell>
|
||||
<connections>
|
||||
<accessibilityConnection property="title" destination="206" id="SzO-00-e3U"/>
|
||||
<action selector="updateRatingsCountry:" target="-2" id="242"/>
|
||||
<binding destination="-2" name="content" keyPath="ratingsCountries" id="245"/>
|
||||
<binding destination="123" name="selectedValue" keyPath="values.SBRatingsCountry" previousBinding="245" id="248"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="249">
|
||||
<rect key="frame" x="332" y="95" width="165" height="14"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="USA ratings are always shown." id="250">
|
||||
<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>
|
||||
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="JhA-jk-CGt">
|
||||
<rect key="frame" x="350" y="155" width="212" height="24"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="208" id="d5Y-wo-ULU"/>
|
||||
</constraints>
|
||||
<sliderCell key="cell" state="on" alignment="left" maxValue="1" doubleValue="0.5" tickMarkPosition="below" numberOfTickMarks="7" sliderType="linear" id="iKX-dX-4IV"/>
|
||||
<connections>
|
||||
<binding destination="3" name="value" keyPath="values.SBChaptersPreviewPosition" id="JtQ-lM-MNU"/>
|
||||
<binding destination="3" name="enabled" keyPath="values.chaptersPreviewTrack" id="hNU-uO-zsL"/>
|
||||
</connections>
|
||||
</slider>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tVb-Qq-sU7">
|
||||
<rect key="frame" x="486" y="139" width="76" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="End" id="He0-rl-DBi">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mNP-6I-gV4">
|
||||
<rect key="frame" x="431" y="139" width="51" height="17"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="47" id="zjz-10-qHZ"/>
|
||||
</constraints>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="Middle" id="2o1-dB-mt1">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XPF-Mh-XYC">
|
||||
<rect key="frame" x="350" y="139" width="77" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Beginning" id="3Vs-qA-7Z6">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="78" firstAttribute="top" secondItem="77" secondAttribute="bottom" constant="8" id="0x2-Rj-d0b"/>
|
||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="baseline" secondItem="tVb-Qq-sU7" secondAttribute="baseline" id="52b-ml-AZy"/>
|
||||
<constraint firstItem="236" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" constant="24" id="828-Eq-y4d"/>
|
||||
<constraint firstItem="tVb-Qq-sU7" firstAttribute="leading" secondItem="mNP-6I-gV4" secondAttribute="trailing" constant="8" symbolic="YES" id="8Te-Q2-viz"/>
|
||||
<constraint firstItem="236" firstAttribute="trailing" secondItem="133" secondAttribute="trailing" id="8iW-3R-Ofd"/>
|
||||
<constraint firstItem="tVb-Qq-sU7" firstAttribute="trailing" secondItem="JhA-jk-CGt" secondAttribute="trailing" id="8jY-ZF-1WY"/>
|
||||
<constraint firstItem="249" firstAttribute="leading" secondItem="236" secondAttribute="leading" constant="2" id="CWh-CQ-Gjp"/>
|
||||
<constraint firstItem="XPF-Mh-XYC" firstAttribute="baseline" secondItem="mNP-6I-gV4" secondAttribute="baseline" id="EE8-Yr-xvv"/>
|
||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="centerX" secondItem="JhA-jk-CGt" secondAttribute="centerX" id="FZ2-ZC-gmG"/>
|
||||
<constraint firstItem="81" firstAttribute="width" secondItem="78" secondAttribute="width" id="H21-rp-ydr"/>
|
||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="firstBaseline" secondItem="tVb-Qq-sU7" secondAttribute="firstBaseline" id="HKj-xN-JbG"/>
|
||||
<constraint firstItem="136" firstAttribute="top" secondItem="133" secondAttribute="bottom" constant="10" id="HQd-fW-eDG"/>
|
||||
<constraint firstItem="XPF-Mh-XYC" firstAttribute="leading" secondItem="JhA-jk-CGt" secondAttribute="leading" id="Iqr-2A-PS6"/>
|
||||
<constraint firstItem="82" firstAttribute="baseline" secondItem="81" secondAttribute="baseline" id="JLw-rO-S2E"/>
|
||||
<constraint firstItem="236" firstAttribute="leading" secondItem="133" secondAttribute="leading" id="Jcj-3h-k8w"/>
|
||||
<constraint firstItem="81" firstAttribute="leading" secondItem="77" secondAttribute="leading" id="KVj-AM-bYM"/>
|
||||
<constraint firstItem="133" firstAttribute="leading" secondItem="136" secondAttribute="leading" id="Lfq-Nj-qQx"/>
|
||||
<constraint firstItem="206" firstAttribute="leading" secondItem="139" secondAttribute="leading" id="Mn0-be-4AT"/>
|
||||
<constraint firstItem="78" firstAttribute="leading" secondItem="77" secondAttribute="leading" id="Owr-i6-z72"/>
|
||||
<constraint firstItem="79" firstAttribute="baseline" secondItem="77" secondAttribute="baseline" id="Qf4-MW-Qiw"/>
|
||||
<constraint firstItem="JhA-jk-CGt" firstAttribute="trailing" secondItem="82" secondAttribute="trailing" id="Qgs-Zw-C8c"/>
|
||||
<constraint firstItem="78" firstAttribute="width" secondItem="77" secondAttribute="width" id="RFj-Z3-Mqe"/>
|
||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="leading" secondItem="XPF-Mh-XYC" secondAttribute="trailing" constant="8" symbolic="YES" id="S5b-Cs-odg"/>
|
||||
<constraint firstItem="79" firstAttribute="leading" secondItem="77" secondAttribute="trailing" constant="8" id="TdJ-QM-r1R"/>
|
||||
<constraint firstItem="236" firstAttribute="leading" secondItem="82" secondAttribute="leading" id="UjG-IS-OFm"/>
|
||||
<constraint firstItem="133" firstAttribute="leading" secondItem="139" secondAttribute="trailing" constant="8" symbolic="YES" id="Urf-rY-cPF"/>
|
||||
<constraint firstItem="206" firstAttribute="leading" secondItem="81" secondAttribute="leading" id="VZI-GJ-JXx"/>
|
||||
<constraint firstItem="81" firstAttribute="top" secondItem="78" secondAttribute="bottom" constant="8" id="Vf9-01-JAo"/>
|
||||
<constraint firstItem="82" firstAttribute="trailing" secondItem="79" secondAttribute="trailing" id="Wes-ja-CEq"/>
|
||||
<constraint firstItem="139" firstAttribute="baseline" secondItem="133" secondAttribute="baseline" id="WzU-N5-1tL"/>
|
||||
<constraint firstItem="133" firstAttribute="trailing" secondItem="136" secondAttribute="trailing" id="b4O-t4-ChA"/>
|
||||
<constraint firstItem="133" firstAttribute="top" secondItem="249" secondAttribute="bottom" constant="23" id="bSe-LH-CGb"/>
|
||||
<constraint firstItem="82" firstAttribute="leading" secondItem="81" secondAttribute="trailing" constant="8" id="cZV-zB-Lqc"/>
|
||||
<constraint firstItem="80" firstAttribute="leading" secondItem="78" secondAttribute="trailing" constant="8" id="dJd-xY-cDs"/>
|
||||
<constraint firstItem="XPF-Mh-XYC" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" id="gRG-D4-PHt"/>
|
||||
<constraint firstItem="236" firstAttribute="top" secondItem="XPF-Mh-XYC" secondAttribute="bottom" constant="7" id="kqP-kQ-aBz"/>
|
||||
<constraint firstItem="236" firstAttribute="leading" secondItem="206" secondAttribute="trailing" constant="8" symbolic="YES" id="mZd-aa-0Q2"/>
|
||||
<constraint firstAttribute="bottom" secondItem="136" secondAttribute="bottom" constant="20" symbolic="YES" id="pLl-pH-cU7"/>
|
||||
<constraint firstItem="206" firstAttribute="baseline" secondItem="236" secondAttribute="baseline" id="rAr-lj-Ndl"/>
|
||||
<constraint firstItem="77" firstAttribute="top" secondItem="76" secondAttribute="top" constant="20" id="svr-rg-ePI"/>
|
||||
<constraint firstItem="77" firstAttribute="leading" secondItem="76" secondAttribute="leading" priority="750" constant="154" id="u5W-Da-Da8"/>
|
||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="249" secondAttribute="trailing" constant="20" symbolic="YES" id="wS4-dr-Tpd"/>
|
||||
<constraint firstItem="80" firstAttribute="baseline" secondItem="78" secondAttribute="baseline" id="wko-SJ-fYa"/>
|
||||
<constraint firstItem="XPF-Mh-XYC" firstAttribute="firstBaseline" secondItem="mNP-6I-gV4" secondAttribute="firstBaseline" id="xDm-Kg-nsd"/>
|
||||
<constraint firstItem="249" firstAttribute="top" secondItem="236" secondAttribute="bottom" constant="2" id="yAF-h5-Kgz"/>
|
||||
<constraint firstItem="80" firstAttribute="trailing" secondItem="79" secondAttribute="trailing" id="yDn-Wd-KXg"/>
|
||||
<constraint firstItem="JhA-jk-CGt" firstAttribute="top" secondItem="82" secondAttribute="bottom" constant="5" id="yP1-bp-6Pa"/>
|
||||
<constraint firstAttribute="trailing" secondItem="79" secondAttribute="trailing" priority="750" constant="157" id="zbp-VJ-Uup"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="-40.5" y="-913"/>
|
||||
</customView>
|
||||
<userDefaultsController representsSharedInstance="YES" id="123"/>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2548a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
|
||||
@@ -325,7 +325,7 @@
|
||||
<menuItem title="Clear tracks names" id="hKY-N2-NzK">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="clearTracksNames:" target="-1" id="sbh-Ax-C4Y"/>
|
||||
<action selector="clearTrackNames:" target="-1" id="KsZ-tN-sdV"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Fix audio fallbacks" id="FXb-bX-0Wb">
|
||||
@@ -489,6 +489,7 @@
|
||||
</menu>
|
||||
</menuItem>
|
||||
</items>
|
||||
<point key="canvasLocation" x="-244" y="-303"/>
|
||||
</menu>
|
||||
<customObject id="419" customClass="NSFontManager"/>
|
||||
<customObject id="449" userLabel="AppDelegate" customClass="SBAppDelegate"/>
|
||||
|
||||
Executable
+30
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="PrefsWindowController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="window" destination="1" id="6"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Preferences" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="1" customClass="PrefsWindow" customModule="Subler" customModuleProvider="target">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
||||
<rect key="contentRect" x="625" y="992" width="620" height="220"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<view key="contentView" id="2">
|
||||
<rect key="frame" x="0.0" y="0.0" width="620" height="220"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</view>
|
||||
<connections>
|
||||
<outlet property="delegate" destination="-2" id="fTZ-1L-fn7"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="-387" y="-1512"/>
|
||||
</window>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -1,782 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13528" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13528"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="SBDocument">
|
||||
<connections>
|
||||
<outlet property="_64bit_data" destination="100188" id="100290"/>
|
||||
<outlet property="_64bit_time" destination="100190" id="100291"/>
|
||||
<outlet property="addTracks" destination="q3d-mv-KiV" id="ctO-gP-68V"/>
|
||||
<outlet property="cancelSave" destination="100252" id="100255"/>
|
||||
<outlet property="deleteTrack" destination="S3Y-pp-4q3" id="AZ2-ei-lcb"/>
|
||||
<outlet property="documentWindow" destination="5" id="AIQ-Aj-grJ"/>
|
||||
<outlet property="fileFormat" destination="100215" id="100225"/>
|
||||
<outlet property="offset" destination="100275" id="100288"/>
|
||||
<outlet property="offsetWindow" destination="100271" id="100285"/>
|
||||
<outlet property="progressBar" destination="100179" id="21T-ul-KQu"/>
|
||||
<outlet property="saveOperationName" destination="100177" id="OuQ-yM-1z7"/>
|
||||
<outlet property="saveView" destination="100187" id="100192"/>
|
||||
<outlet property="saveWindow" destination="100175" id="lQR-rJ-S5i"/>
|
||||
<outlet property="searchChapters" destination="Srh-TP-1hf" id="dW3-2c-Vgx"/>
|
||||
<outlet property="searchMetadata" destination="Q2q-Vv-Qt7" id="CnH-Ws-hen"/>
|
||||
<outlet property="sendToQueue" destination="APi-CJ-dh2" id="78o-8Y-G0j"/>
|
||||
<outlet property="splitView" destination="100127" id="100262"/>
|
||||
<outlet property="targetView" destination="100129" id="100142"/>
|
||||
<outlet property="tracksTable" destination="100031" id="yrL-dR-TXc"/>
|
||||
<outlet property="window" destination="5" id="18"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="5" userLabel="Window">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="120" y="866" width="690" height="510"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<value key="minSize" type="size" width="350" height="200"/>
|
||||
<view key="contentView" id="6">
|
||||
<rect key="frame" x="0.0" y="0.0" width="690" height="510"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<splitView translatesAutoresizingMaskIntoConstraints="NO" id="100127">
|
||||
<rect key="frame" x="-1" y="0.0" width="692" height="511"/>
|
||||
<subviews>
|
||||
<customView id="100128">
|
||||
<rect key="frame" x="0.0" y="0.0" width="692" height="144"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="100028">
|
||||
<rect key="frame" x="0.0" y="0.0" width="692" height="145"/>
|
||||
<clipView key="contentView" id="L1j-2Q-wsZ">
|
||||
<rect key="frame" x="1" y="0.0" width="690" height="144"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" headerView="100032" viewBased="YES" id="100031" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="690" height="121"/>
|
||||
<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="trackId" editable="NO" width="37" minWidth="30" maxWidth="38" id="100033">
|
||||
<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.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="charWrapping" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="100036">
|
||||
<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 identifier="IdCell" id="VW1-AO-dAi">
|
||||
<rect key="frame" x="1" y="1" width="37" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="MN4-i3-304">
|
||||
<rect key="frame" x="0.0" y="0.0" width="94" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Do not localize" id="kPa-fN-d6F">
|
||||
<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="MN4-i3-304" id="Arz-aV-7RW"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
<tableCellView identifier="disabledIdCell" id="pxy-uZ-6b2">
|
||||
<rect key="frame" x="1" y="20" width="37" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3M2-80-rYQ">
|
||||
<rect key="frame" x="0.0" y="0.0" width="94" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Do not localize" id="DTn-O5-qNK">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="disabledControlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="3M2-80-rYQ" id="krr-8y-c4P"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackEnabled" width="18" minWidth="18" maxWidth="50" id="100244">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Enabled">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<buttonCell key="dataCell" type="check" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="charWrapping" inset="2" id="100246">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="CheckCell" id="OXq-OQ-QE3" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="41" y="1" width="18" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button toolTip="Enable or disable the track" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="mPW-kC-RQT">
|
||||
<rect key="frame" x="0.0" 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="2z0-pR-IWm">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
</buttonCell>
|
||||
<accessibility description="Enabled"/>
|
||||
<connections>
|
||||
<action selector="setTrackEnabled:" target="-2" id="hye-KQ-7cT"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="checkboxButton" destination="mPW-kC-RQT" id="tRt-jF-45b"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackName" width="222" minWidth="100" maxWidth="3000" id="100034">
|
||||
<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" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="charWrapping" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="100035">
|
||||
<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 identifier="NameCell" id="jfS-3o-3iB">
|
||||
<rect key="frame" x="62" y="1" width="222" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="SHZ-wS-KHp">
|
||||
<rect key="frame" x="0.0" y="0.0" width="222" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" title="Do not localize" id="voc-Ho-i53">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<connections>
|
||||
<action selector="setTrackName:" target="-2" id="7Na-8r-ObE"/>
|
||||
</connections>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="SHZ-wS-KHp" id="bek-kE-Qo9"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackDuration" editable="NO" width="92" minWidth="92" maxWidth="92" id="100042">
|
||||
<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="charWrapping" sendsActionOnEndEditing="YES" alignment="right" title="Text" id="100123">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="DurationCell" id="OTa-na-4bI">
|
||||
<rect key="frame" x="287" y="1" width="92" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="206-PB-nxg">
|
||||
<rect key="frame" x="0.0" y="0.0" width="92" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="00:00:00" id="NiT-jo-7tv">
|
||||
<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="206-PB-nxg" id="7wc-C5-8sU"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackLanguage" width="158" minWidth="130" maxWidth="200" id="100044">
|
||||
<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>
|
||||
<comboBoxCell key="dataCell" lineBreakMode="charWrapping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" alignment="right" buttonBordered="NO" usesDataSource="YES" numberOfVisibleItems="8" id="100124">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</comboBoxCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="PopUpCell" id="Yb8-DO-WWM" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="382" y="1" width="158" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<popUpButton fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="yEl-bV-CL5">
|
||||
<rect key="frame" x="3" y="0.0" width="152" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<popUpButtonCell key="cell" type="bevel" bezelStyle="regularSquare" alignment="right" lineBreakMode="truncatingTail" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" id="MqR-oU-iTJ">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" autoenablesItems="NO" id="r4d-Rq-cBb"/>
|
||||
</popUpButtonCell>
|
||||
<connections>
|
||||
<action selector="setTrackLanguage:" target="-2" id="mGG-Kx-6X1"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="popUpButton" destination="yEl-bV-CL5" id="eea-8I-cVk"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackInfo" editable="NO" width="145" minWidth="80" maxWidth="440" id="100040">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Format">
|
||||
<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="charWrapping" selectable="YES" editable="YES" alignment="right" title="Text Cell" id="100041">
|
||||
<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 identifier="FormatCell" id="lpt-ck-ie2">
|
||||
<rect key="frame" x="543" y="1" width="145" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vEq-Qw-35S">
|
||||
<rect key="frame" x="0.0" y="0.0" width="145" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Do not localize" id="4fX-fC-9jF">
|
||||
<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="vEq-Qw-35S" id="anh-0N-Tx1"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
<tableCellView identifier="DisabledFormatCell" id="cWa-bG-vg7">
|
||||
<rect key="frame" x="543" y="20" width="145" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="zF5-nA-gdc">
|
||||
<rect key="frame" x="0.0" y="0.0" width="145" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Do not localize" id="B0B-3e-m7b">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="disabledControlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="zF5-nA-gdc" id="ISn-FR-5ap"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
</tableColumns>
|
||||
<accessibility description="Tracks"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="100038"/>
|
||||
<outlet property="delegate" destination="-2" id="100039"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="100030">
|
||||
<rect key="frame" x="1" y="145" width="690" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="100029">
|
||||
<rect key="frame" x="606" y="17" width="15" height="99"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<tableHeaderView key="headerView" id="100032">
|
||||
<rect key="frame" x="0.0" y="0.0" width="690" height="23"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</tableHeaderView>
|
||||
</scrollView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="100028" secondAttribute="bottom" id="bsg-JB-ioS"/>
|
||||
<constraint firstAttribute="trailing" secondItem="100028" secondAttribute="trailing" id="gWQ-Qf-w01"/>
|
||||
<constraint firstItem="100028" firstAttribute="leading" secondItem="100128" secondAttribute="leading" id="plc-Lt-28D"/>
|
||||
<constraint firstItem="100028" firstAttribute="top" secondItem="100128" secondAttribute="top" constant="-1" id="vvR-4n-JTK"/>
|
||||
</constraints>
|
||||
</customView>
|
||||
<customView fixedFrame="YES" id="100129">
|
||||
<rect key="frame" x="0.0" y="153" width="692" height="358"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
|
||||
</customView>
|
||||
</subviews>
|
||||
<holdingPriorities>
|
||||
<real value="250"/>
|
||||
<real value="250"/>
|
||||
</holdingPriorities>
|
||||
</splitView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="100127" firstAttribute="centerY" secondItem="6" secondAttribute="centerY" id="EEY-oF-XhX"/>
|
||||
<constraint firstAttribute="bottom" secondItem="100127" secondAttribute="bottom" id="ESy-wq-Vk4"/>
|
||||
<constraint firstItem="100127" firstAttribute="centerX" secondItem="6" secondAttribute="centerX" id="YbO-GW-gQx"/>
|
||||
<constraint firstItem="100127" firstAttribute="leading" secondItem="6" secondAttribute="leading" constant="-1" id="ymy-GG-YOH"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<toolbar key="toolbar" implicitIdentifier="61E0A00C-CBF2-4937-9418-AC0758672070" explicitIdentifier="SBDocumentToolbar26" displayMode="iconOnly" sizeMode="regular" id="100097">
|
||||
<allowedToolbarItems>
|
||||
<toolbarItem implicitItemIdentifier="NSToolbarFlexibleSpaceItem" id="100319"/>
|
||||
<toolbarItem implicitItemIdentifier="NSToolbarSpaceItem" id="100320"/>
|
||||
<toolbarItem implicitItemIdentifier="NSToolbarSeparatorItem" id="100321"/>
|
||||
<toolbarItem implicitItemIdentifier="D2E8E21C-DCD4-456F-B15A-9AC0AA5556DF" label="Import" paletteLabel="Import" toolTip="Import tracks from external files" image="NSAddTemplate" id="q3d-mv-KiV" customClass="ButtonToolbarItem" customModule="Subler" customModuleProvider="target">
|
||||
<size key="minSize" width="36" height="24"/>
|
||||
<size key="maxSize" width="36" height="28"/>
|
||||
<button key="view" verticalHuggingPriority="750" id="9Ap-vv-70i">
|
||||
<rect key="frame" x="3" y="14" width="36" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="NSAddTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="AQ2-uT-j34">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<connections>
|
||||
<action selector="selectFile:" target="-2" id="mw9-1U-2Pb"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="5B6FDF6D-9486-49B2-8EA4-184D76D0864C" label="Delete Track" paletteLabel="Delete Track" toolTip="Delete the selected track" image="ToolbarRemoveTemplate" id="S3Y-pp-4q3" customClass="ButtonToolbarItem" customModule="Subler" customModuleProvider="target">
|
||||
<size key="minSize" width="36" height="24"/>
|
||||
<size key="maxSize" width="36" height="28"/>
|
||||
<button key="view" verticalHuggingPriority="750" id="v1q-Kq-a3i">
|
||||
<rect key="frame" x="19" y="14" width="36" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="ToolbarRemoveTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="8VM-fA-aI5">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<connections>
|
||||
<action selector="deleteTrack:" target="-2" id="FiO-82-bMI"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="66402BE4-4A7B-4048-A584-2BC0F5E69600" label="Search Metadata" paletteLabel="Search Metadata" toolTip="Search metadata on the web" image="NSRevealFreestandingTemplate" id="Q2q-Vv-Qt7" customClass="ButtonToolbarItem" customModule="Subler" customModuleProvider="target">
|
||||
<size key="minSize" width="36" height="24"/>
|
||||
<size key="maxSize" width="36" height="24"/>
|
||||
<button key="view" verticalHuggingPriority="750" id="J1D-OD-RyX">
|
||||
<rect key="frame" x="31" y="14" width="36" height="24"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="NSRevealFreestandingTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="519-cF-OxE">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<connections>
|
||||
<action selector="searchMetadata:" target="-2" id="aEl-9y-ofV"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="C90398D0-2F66-43E9-8B04-6CCD8DDA90D2" label="Search Chapters" paletteLabel="Search Chapters" toolTip="Search chapters on the web" image="ToolbarChaptersTemplate" id="Srh-TP-1hf" customClass="ButtonToolbarItem" customModule="Subler" customModuleProvider="target">
|
||||
<size key="minSize" width="36" height="24"/>
|
||||
<size key="maxSize" width="36" height="28"/>
|
||||
<button key="view" verticalHuggingPriority="750" id="iya-i9-RSa">
|
||||
<rect key="frame" x="30" y="14" width="36" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="ToolbarChaptersTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="euM-l1-N2a">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<connections>
|
||||
<action selector="searchChapters:" target="-2" id="CoQ-HW-2Jh"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="9F789D5F-C25E-449F-ABCE-DDF99B4FF988" label="Send to Queue" paletteLabel="Send to Queue" toolTip="Send the current document to the queue" image="ToolbarActionTemplate" id="APi-CJ-dh2" customClass="ButtonToolbarItem" customModule="Subler" customModuleProvider="target">
|
||||
<size key="minSize" width="36" height="24"/>
|
||||
<size key="maxSize" width="36" height="28"/>
|
||||
<button key="view" verticalHuggingPriority="750" id="lvx-ga-BAF">
|
||||
<rect key="frame" x="25" y="14" width="36" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="ToolbarActionTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="ejq-HX-qca">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<connections>
|
||||
<action selector="sendToQueue:" target="-2" id="7qu-I8-jpD"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="2E3AB086-491A-436E-A610-14E36AEE8F49" label="Action" paletteLabel="Action" image="NSActionTemplate" id="zUI-mH-Ex4">
|
||||
<nil key="toolTip"/>
|
||||
<size key="minSize" width="38" height="24"/>
|
||||
<size key="maxSize" width="40" height="28"/>
|
||||
<popUpButton key="view" verticalHuggingPriority="750" id="JYe-b9-2AX">
|
||||
<rect key="frame" x="2" y="14" width="38" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<popUpButtonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" pullsDown="YES" id="1Gc-Er-ewA">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" id="qXi-k1-Z5m">
|
||||
<items>
|
||||
<menuItem state="on" image="NSActionTemplate" hidden="YES" id="Xoe-1j-Ves"/>
|
||||
<menuItem title="Insert a chapter every" id="1iZ-j6-1c7">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<menu key="submenu" title="Insert a chapter every" id="QKs-0o-K7h">
|
||||
<items>
|
||||
<menuItem title="1 minute" tag="1" id="lrb-Zt-fw3">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="addChaptersEvery:" target="-2" id="5D6-mj-l9t"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="2 minutes" tag="2" id="5Ea-m5-m0B">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="addChaptersEvery:" target="-2" id="gYz-Lb-HFp"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="5 minutes" tag="5" id="B8x-gu-3N5">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="addChaptersEvery:" target="-2" id="NGd-if-xw7"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="10 minutes" tag="10" id="WtI-hr-S0q">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="addChaptersEvery:" target="-2" id="Vx9-RD-9QV"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="15 minutes" tag="15" id="6fn-uW-2KI">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="addChaptersEvery:" target="-2" id="huW-sr-LTF"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="20 minutes" tag="20" id="U8I-6S-SEX">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="addChaptersEvery:" target="-2" id="Gv7-Qq-sDI"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="30 minutes" tag="30" id="Eyp-ad-KGL">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="addChaptersEvery:" target="-2" id="Ase-M9-6os"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
</items>
|
||||
</menu>
|
||||
</menuItem>
|
||||
<menuItem title="Organize alternate groups" id="BDw-rr-q41">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="iTunesFriendlyTrackGroups:" target="-2" id="udM-fi-yMw"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Clear tracks names" id="fRN-MT-g2r">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="clearTracksNames:" target="-2" id="RUq-PT-rgU"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Fix audio fallbacks" id="ErE-rx-lEt">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="fixAudioFallbacks:" target="-2" id="GPT-nd-hME"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem isSeparatorItem="YES" id="r5U-8I-2FN"/>
|
||||
<menuItem title="Offset…" id="De6-aI-btv">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="showTrackOffsetSheet:" target="-2" id="ZZ1-31-kTq"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
</popUpButton>
|
||||
</toolbarItem>
|
||||
</allowedToolbarItems>
|
||||
<defaultToolbarItems>
|
||||
<toolbarItem reference="q3d-mv-KiV"/>
|
||||
<toolbarItem reference="100321"/>
|
||||
<toolbarItem reference="zUI-mH-Ex4"/>
|
||||
<toolbarItem reference="S3Y-pp-4q3"/>
|
||||
<toolbarItem reference="100320"/>
|
||||
<toolbarItem reference="100319"/>
|
||||
<toolbarItem reference="100321"/>
|
||||
<toolbarItem reference="Q2q-Vv-Qt7"/>
|
||||
</defaultToolbarItems>
|
||||
</toolbar>
|
||||
<connections>
|
||||
<outlet property="delegate" destination="-2" id="17"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="367" y="-569"/>
|
||||
</window>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" visibleAtLaunch="NO" animationBehavior="default" id="100175" userLabel="Saving">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="196" y="389" width="297" height="121"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<view key="contentView" id="100176">
|
||||
<rect key="frame" x="0.0" y="0.0" width="297" height="121"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100177">
|
||||
<rect key="frame" x="17" y="84" width="88" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Optimizing…" id="100178">
|
||||
<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>
|
||||
<progressIndicator verticalHuggingPriority="750" fixedFrame="YES" maxValue="100" bezeled="NO" indeterminate="YES" style="bar" translatesAutoresizingMaskIntoConstraints="NO" id="100179">
|
||||
<rect key="frame" x="18" y="56" width="261" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
</progressIndicator>
|
||||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100252">
|
||||
<rect key="frame" x="201" y="12" width="82" height="32"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="100253">
|
||||
<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="cancelSaveOperation:" target="-2" id="100254"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
</view>
|
||||
<point key="canvasLocation" x="321" y="278"/>
|
||||
</window>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" visibleAtLaunch="NO" animationBehavior="default" id="100271" userLabel="Offset">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="196" y="400" width="346" height="102"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<view key="contentView" id="100272">
|
||||
<rect key="frame" x="0.0" y="0.0" width="346" height="102"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100277">
|
||||
<rect key="frame" x="307" y="62" width="22" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="ms" id="100278">
|
||||
<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>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100275">
|
||||
<rect key="frame" x="69" y="59" width="233" height="22"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="100276">
|
||||
<numberFormatter key="formatter" formatterBehavior="custom10_4" numberStyle="decimal" minimumIntegerDigits="1" maximumIntegerDigits="2000000000" maximumFractionDigits="10" id="EtR-hW-zoZ"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100279">
|
||||
<rect key="frame" x="237" y="12" width="95" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="OK" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="100282">
|
||||
<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="setTrackOffset:" target="-2" id="100289"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100280">
|
||||
<rect key="frame" x="142" y="12" width="95" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="100281">
|
||||
<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="closeOffsetSheet:" target="-2" id="100287"/>
|
||||
</connections>
|
||||
</button>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100273">
|
||||
<rect key="frame" x="18" y="62" width="46" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Offset:" id="100274">
|
||||
<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>
|
||||
<constraints>
|
||||
<constraint firstItem="100279" firstAttribute="baseline" secondItem="100280" secondAttribute="baseline" id="8H4-aH-eai"/>
|
||||
<constraint firstItem="100279" firstAttribute="leading" secondItem="100280" secondAttribute="trailing" constant="12" id="Ac6-q0-vlt"/>
|
||||
<constraint firstAttribute="bottom" secondItem="100279" secondAttribute="bottom" constant="19" id="Qia-HL-V2T"/>
|
||||
<constraint firstItem="100277" firstAttribute="baseline" secondItem="100275" secondAttribute="baseline" id="SIm-1P-duc"/>
|
||||
<constraint firstAttribute="trailing" secondItem="100277" secondAttribute="trailing" constant="19" id="TVe-SF-DLZ"/>
|
||||
<constraint firstItem="100277" firstAttribute="leading" secondItem="100275" secondAttribute="trailing" constant="7" id="b8c-Eq-ZRq"/>
|
||||
<constraint firstItem="100273" firstAttribute="baseline" secondItem="100275" secondAttribute="baseline" id="dTZ-zK-kpv"/>
|
||||
<constraint firstItem="100273" firstAttribute="top" secondItem="100272" secondAttribute="top" constant="23" id="eY1-J6-Whh"/>
|
||||
<constraint firstItem="100280" firstAttribute="width" secondItem="100279" secondAttribute="width" id="faA-4K-0CP"/>
|
||||
<constraint firstAttribute="trailing" secondItem="100279" secondAttribute="trailing" constant="20" id="iFU-1E-ffZ"/>
|
||||
<constraint firstItem="100273" firstAttribute="leading" secondItem="100272" secondAttribute="leading" constant="20" id="kOp-EH-fes"/>
|
||||
<constraint firstItem="100279" firstAttribute="leading" secondItem="100275" secondAttribute="trailing" constant="-59" id="mve-kU-loz"/>
|
||||
<constraint firstItem="100280" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="100272" secondAttribute="leading" constant="20" symbolic="YES" id="qaP-M9-RGY"/>
|
||||
<constraint firstItem="100275" firstAttribute="leading" secondItem="100273" secondAttribute="trailing" constant="7" id="sAp-D8-dgq"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<point key="canvasLocation" x="123" y="4"/>
|
||||
</window>
|
||||
<customView id="100187">
|
||||
<rect key="frame" x="0.0" y="0.0" width="388" height="82"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<subviews>
|
||||
<customView verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="mnz-j4-2OQ">
|
||||
<rect key="frame" x="24" y="0.0" width="340" height="82"/>
|
||||
<subviews>
|
||||
<button toolTip="Needed for mp4 larger than 4GB." translatesAutoresizingMaskIntoConstraints="NO" id="100188">
|
||||
<rect key="frame" x="98" y="28" width="144" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="64 bits chunk offset" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="100189">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="100263" name="value" keyPath="values.mp464bitOffset" id="100265"/>
|
||||
</connections>
|
||||
</button>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="100223">
|
||||
<rect key="frame" x="18" y="29" width="76" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Options:" id="100224">
|
||||
<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>
|
||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100215">
|
||||
<rect key="frame" x="98" y="48" width="225" height="26"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="220" id="CWX-o0-H8Z"/>
|
||||
</constraints>
|
||||
<popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="100218" id="100216">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" title="OtherViews" autoenablesItems="NO" id="100217">
|
||||
<items>
|
||||
<menuItem title="Item 1" state="on" id="100218">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="setSaveFormat:" target="-2" id="100242"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Item 2" tag="1" id="100219">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="Item 3" tag="2" id="100220">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
<connections>
|
||||
<action selector="setSaveFormat:" target="-2" id="100243"/>
|
||||
<binding destination="100263" name="selectedIndex" keyPath="values.defaultSaveFormat" id="100294">
|
||||
<dictionary key="options">
|
||||
<bool key="NSValidatesImmediately" value="YES"/>
|
||||
</dictionary>
|
||||
</binding>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="100221">
|
||||
<rect key="frame" x="18" y="54" width="76" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="File Format:" id="100222">
|
||||
<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>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="100190">
|
||||
<rect key="frame" x="98" y="8" width="102" height="18"/>
|
||||
<string key="toolTip">Note: don't use this option if you are not sure of what it is doing, it's not needed in almost every case.
|
||||
Enable 64bit timescale and duration support. Normally, it's only needed if a track will be longer than 10 hours.</string>
|
||||
<buttonCell key="cell" type="check" title="64 bits times" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="100191">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="100263" name="value" keyPath="values.mp464bitTimes" id="100266"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailing" secondItem="100190" secondAttribute="trailing" constant="142" id="3oO-7Z-5SP"/>
|
||||
<constraint firstItem="100190" firstAttribute="top" secondItem="100188" secondAttribute="bottom" constant="6" id="46F-aM-wkb"/>
|
||||
<constraint firstItem="100223" firstAttribute="leading" secondItem="mnz-j4-2OQ" secondAttribute="leading" constant="20" id="DUS-JY-Ob8"/>
|
||||
<constraint firstItem="100190" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="100188" secondAttribute="leading" id="GqE-pf-8l4"/>
|
||||
<constraint firstItem="100223" firstAttribute="trailing" secondItem="100221" secondAttribute="trailing" id="M7Q-Pf-AoO"/>
|
||||
<constraint firstItem="100223" firstAttribute="top" secondItem="100221" secondAttribute="bottom" constant="8" id="NIO-40-Ff9"/>
|
||||
<constraint firstAttribute="height" constant="82" id="QgN-pP-fGp"/>
|
||||
<constraint firstAttribute="bottom" secondItem="100190" secondAttribute="bottom" constant="10" id="QnU-Cc-d7I"/>
|
||||
<constraint firstItem="100215" firstAttribute="leading" secondItem="100221" secondAttribute="trailing" constant="8" symbolic="YES" id="TfO-H6-1Fr"/>
|
||||
<constraint firstItem="100221" firstAttribute="top" secondItem="mnz-j4-2OQ" secondAttribute="top" constant="11" id="W1f-ha-gXm"/>
|
||||
<constraint firstItem="100223" firstAttribute="width" secondItem="100221" secondAttribute="width" id="Ykt-xh-F12"/>
|
||||
<constraint firstItem="100188" firstAttribute="baseline" secondItem="100223" secondAttribute="baseline" id="ZDc-Ug-oGw"/>
|
||||
<constraint firstAttribute="trailing" secondItem="100188" secondAttribute="trailing" constant="100" id="cKd-bV-qHd"/>
|
||||
<constraint firstItem="100215" firstAttribute="baseline" secondItem="100221" secondAttribute="baseline" id="kJ4-iW-o2W"/>
|
||||
<constraint firstItem="100221" firstAttribute="leading" secondItem="mnz-j4-2OQ" secondAttribute="leading" constant="20" id="rRR-Vf-emg"/>
|
||||
<constraint firstItem="100188" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="100223" secondAttribute="trailing" constant="8" symbolic="YES" id="rsC-rt-qfA"/>
|
||||
<constraint firstAttribute="trailing" secondItem="100215" secondAttribute="trailing" constant="20" id="v0b-Gj-Oxi"/>
|
||||
</constraints>
|
||||
</customView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="mnz-j4-2OQ" firstAttribute="centerX" secondItem="100187" secondAttribute="centerX" id="Iri-xR-u1f"/>
|
||||
<constraint firstAttribute="bottom" secondItem="mnz-j4-2OQ" secondAttribute="bottom" id="cst-WF-TrG"/>
|
||||
<constraint firstItem="mnz-j4-2OQ" firstAttribute="top" secondItem="100187" secondAttribute="top" id="hgc-7Q-CTY"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="-338" y="186"/>
|
||||
</customView>
|
||||
<userDefaultsController representsSharedInstance="YES" id="100263"/>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="NSActionTemplate" width="14" height="14"/>
|
||||
<image name="NSAddTemplate" width="11" height="11"/>
|
||||
<image name="NSRevealFreestandingTemplate" width="14" height="14"/>
|
||||
<image name="ToolbarActionTemplate" width="24" height="24"/>
|
||||
<image name="ToolbarChaptersTemplate" width="14" height="13"/>
|
||||
<image name="ToolbarRemoveTemplate" width="16" height="16"/>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// AdvancedPrefsViewController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 06/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
class AdvancedPrefsViewController: NSViewController {
|
||||
|
||||
init() {
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
self.title = NSLocalizedString("Advanced", comment: "")
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import Cocoa
|
||||
|
||||
// MARK: - Attributed styles
|
||||
|
||||
private func monospaceAttributes(size: CGFloat, aligment: NSTextAlignment, headIndent: CGFloat = -10.0, firstLineHeadIndent: CGFloat = 0, bold: Bool) -> [NSAttributedStringKey : Any] {
|
||||
private func monospaceAttributes(size: CGFloat, aligment: NSTextAlignment, headIndent: CGFloat = -10.0, firstLineHeadIndent: CGFloat = 0, bold: Bool, color: NSColor = NSColor.gray) -> [NSAttributedStringKey : Any] {
|
||||
let ps = NSParagraphStyle.default.mutableCopy() as! NSMutableParagraphStyle
|
||||
ps.firstLineHeadIndent = firstLineHeadIndent
|
||||
ps.headIndent = headIndent
|
||||
@@ -19,12 +19,12 @@ private func monospaceAttributes(size: CGFloat, aligment: NSTextAlignment, headI
|
||||
return [NSAttributedStringKey.font: NSFont.monospacedDigitSystemFont(ofSize: size,
|
||||
weight: bold ? NSFont.Weight.bold : NSFont.Weight.regular),
|
||||
NSAttributedStringKey.paragraphStyle: ps,
|
||||
NSAttributedStringKey.foregroundColor: NSColor.gray]
|
||||
NSAttributedStringKey.foregroundColor: color]
|
||||
}
|
||||
else {
|
||||
return [NSAttributedStringKey.font: bold ? NSFont.boldSystemFont(ofSize: size) : NSFont.systemFont(ofSize: size),
|
||||
NSAttributedStringKey.paragraphStyle: ps,
|
||||
NSAttributedStringKey.foregroundColor: NSColor.gray]
|
||||
NSAttributedStringKey.foregroundColor: color]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,10 @@ private let detailMonospacedAttr = { () -> [NSAttributedStringKey : Any] in
|
||||
return monospaceAttributes(size: NSFont.smallSystemFontSize, aligment: NSTextAlignment.right, bold: false)
|
||||
}()
|
||||
|
||||
private let monospacedAttr = { () -> [NSAttributedStringKey : Any] in
|
||||
return monospaceAttributes(size: NSFont.systemFontSize, aligment: NSTextAlignment.right, bold: false, color: NSColor.controlTextColor)
|
||||
}()
|
||||
|
||||
private let groupRowAttr = { () -> [NSAttributedStringKey : Any] in
|
||||
return monospaceAttributes(size: NSFont.systemFontSize, aligment: NSTextAlignment.left, firstLineHeadIndent: 24, bold: true)
|
||||
}()
|
||||
@@ -54,9 +58,13 @@ extension String {
|
||||
return NSAttributedString(string: self, attributes: detailBoldMonospacedAttr)
|
||||
}
|
||||
|
||||
func monospacedAttributedString() -> NSAttributedString {
|
||||
func smallMonospacedAttributedString() -> NSAttributedString {
|
||||
return NSAttributedString(string: self, attributes: detailMonospacedAttr)
|
||||
}
|
||||
|
||||
func monospacedAttributedString() -> NSAttributedString {
|
||||
return NSAttributedString(string: self, attributes: monospacedAttr)
|
||||
}
|
||||
|
||||
func groupAttributedString() -> NSAttributedString {
|
||||
return NSAttributedString(string: self, attributes: groupRowAttr)
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="DetailsViewController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="view" destination="Hz6-mo-xeY" id="0bl-1N-x8E"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<customView id="Hz6-mo-xeY">
|
||||
<rect key="frame" x="0.0" y="0.0" width="480" height="272"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
</customView>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -0,0 +1,202 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="DocumentWindowController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="addTracks" destination="FY3-O2-t3T" id="fcf-d9-3eB"/>
|
||||
<outlet property="deleteTrack" destination="rhw-S4-nZ8" id="VaB-n8-rPm"/>
|
||||
<outlet property="searchChapters" destination="sa2-7a-h2I" id="qix-LL-OuP"/>
|
||||
<outlet property="searchMetadata" destination="uiq-J2-uPs" id="lv3-UJ-53r"/>
|
||||
<outlet property="sendToQueue" destination="app-IS-8EB" id="z6b-55-tmE"/>
|
||||
<outlet property="window" destination="s5f-yH-26m" id="YRM-He-gQ6"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="s5f-yH-26m" userLabel="Window">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="120" y="866" width="690" height="510"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<value key="minSize" type="size" width="690" height="510"/>
|
||||
<view key="contentView" id="rip-YL-WpY">
|
||||
<rect key="frame" x="0.0" y="0.0" width="690" height="510"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
</view>
|
||||
<toolbar key="toolbar" implicitIdentifier="61E0A00C-CBF2-4937-9418-AC0758672070" explicitIdentifier="SBDocumentToolbar26" displayMode="iconOnly" sizeMode="regular" id="PRH-t4-qwh">
|
||||
<allowedToolbarItems>
|
||||
<toolbarItem implicitItemIdentifier="NSToolbarFlexibleSpaceItem" id="Af5-ai-sw9"/>
|
||||
<toolbarItem implicitItemIdentifier="NSToolbarSpaceItem" id="qX7-s1-81X"/>
|
||||
<toolbarItem implicitItemIdentifier="NSToolbarSeparatorItem" id="mX6-y6-VZe"/>
|
||||
<toolbarItem implicitItemIdentifier="D2E8E21C-DCD4-456F-B15A-9AC0AA5556DF" label="Import" paletteLabel="Import" toolTip="Import tracks from external files" image="NSAddTemplate" id="FY3-O2-t3T" customClass="ButtonToolbarItem" customModule="Subler" customModuleProvider="target">
|
||||
<size key="minSize" width="36" height="24"/>
|
||||
<size key="maxSize" width="36" height="28"/>
|
||||
<button key="view" verticalHuggingPriority="750" id="UZy-eh-ZBz">
|
||||
<rect key="frame" x="3" y="14" width="36" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="NSAddTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="r0z-KC-Ehd">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<connections>
|
||||
<action selector="selectFile:" target="-2" id="mTY-vt-vsv"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="5B6FDF6D-9486-49B2-8EA4-184D76D0864C" label="Delete Track" paletteLabel="Delete Track" toolTip="Delete the selected track" image="ToolbarRemoveTemplate" id="rhw-S4-nZ8" customClass="ButtonToolbarItem" customModule="Subler" customModuleProvider="target">
|
||||
<size key="minSize" width="36" height="24"/>
|
||||
<size key="maxSize" width="36" height="28"/>
|
||||
<button key="view" verticalHuggingPriority="750" id="e81-Qg-Ncc">
|
||||
<rect key="frame" x="19" y="14" width="36" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="ToolbarRemoveTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="HWd-4N-V3A">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<connections>
|
||||
<action selector="deleteTrack:" target="-2" id="N1h-dg-CaR"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="66402BE4-4A7B-4048-A584-2BC0F5E69600" label="Search Metadata" paletteLabel="Search Metadata" toolTip="Search metadata on the web" image="NSRevealFreestandingTemplate" id="uiq-J2-uPs" customClass="ButtonToolbarItem" customModule="Subler" customModuleProvider="target">
|
||||
<size key="minSize" width="36" height="24"/>
|
||||
<size key="maxSize" width="36" height="24"/>
|
||||
<button key="view" verticalHuggingPriority="750" id="Nes-H1-fbL">
|
||||
<rect key="frame" x="31" y="14" width="36" height="24"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="NSRevealFreestandingTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="hLF-cH-6MQ">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<connections>
|
||||
<action selector="searchMetadata:" target="-2" id="3Jl-xK-nb3"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="C90398D0-2F66-43E9-8B04-6CCD8DDA90D2" label="Search Chapters" paletteLabel="Search Chapters" toolTip="Search chapters on the web" image="ToolbarChaptersTemplate" id="sa2-7a-h2I" customClass="ButtonToolbarItem" customModule="Subler" customModuleProvider="target">
|
||||
<size key="minSize" width="36" height="24"/>
|
||||
<size key="maxSize" width="36" height="28"/>
|
||||
<button key="view" verticalHuggingPriority="750" id="gh7-Et-PwJ">
|
||||
<rect key="frame" x="30" y="14" width="36" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="ToolbarChaptersTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="E5l-0l-Tsr">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<connections>
|
||||
<action selector="searchChapters:" target="-2" id="0wP-Eq-9mv"/>
|
||||
</connections>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="9F789D5F-C25E-449F-ABCE-DDF99B4FF988" label="Send to Queue" paletteLabel="Send to Queue" toolTip="Send the current document to the queue" image="ToolbarActionTemplate" id="app-IS-8EB" customClass="ButtonToolbarItem" customModule="Subler" customModuleProvider="target">
|
||||
<size key="minSize" width="36" height="24"/>
|
||||
<size key="maxSize" width="36" height="28"/>
|
||||
<button key="view" verticalHuggingPriority="750" id="c38-NC-1I2">
|
||||
<rect key="frame" x="25" y="14" width="36" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="ToolbarActionTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="ZbH-ut-l4n">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
</toolbarItem>
|
||||
<toolbarItem implicitItemIdentifier="2E3AB086-491A-436E-A610-14E36AEE8F49" label="Action" paletteLabel="Action" image="NSActionTemplate" id="V6w-Ey-bjV">
|
||||
<nil key="toolTip"/>
|
||||
<size key="minSize" width="38" height="24"/>
|
||||
<size key="maxSize" width="40" height="28"/>
|
||||
<popUpButton key="view" verticalHuggingPriority="750" id="QuP-nB-KsX">
|
||||
<rect key="frame" x="2" y="14" width="38" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<popUpButtonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" pullsDown="YES" selectedItem="LML-iW-skB" id="LNp-Kr-404">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" id="VNR-O6-D9w">
|
||||
<items>
|
||||
<menuItem state="on" image="NSActionTemplate" hidden="YES" id="LML-iW-skB"/>
|
||||
<menuItem title="Insert a chapter every" id="0vu-Jl-QDb">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<menu key="submenu" title="Insert a chapter every" id="o5I-IO-kDx">
|
||||
<items>
|
||||
<menuItem title="1 minute" tag="1" id="5Fm-fy-9es">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="2 minutes" tag="2" id="2M2-Yg-cgc">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="5 minutes" tag="5" id="8ah-BL-bge">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="10 minutes" tag="10" id="lJT-6k-8XM">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="15 minutes" tag="15" id="0bq-Ez-KMl">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="20 minutes" tag="20" id="xWX-8M-yu0">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="30 minutes" tag="30" id="bmM-jp-jgC">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
</items>
|
||||
</menu>
|
||||
</menuItem>
|
||||
<menuItem title="Organize alternate groups" id="lIX-K2-pbc">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="iTunesFriendlyTrackGroups:" target="-2" id="2bI-YD-rCZ"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Clear tracks names" id="pB8-A8-7tv">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="clearTrackNames:" target="-2" id="MeX-3f-VXG"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Fix audio fallbacks" id="rGe-lx-aht">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="fixAudioFallbacks:" target="-2" id="0By-xS-vpS"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem isSeparatorItem="YES" id="gUx-Ht-5aq"/>
|
||||
<menuItem title="Offset…" id="9r1-yN-sCW">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="showTrackOffsetSheet:" target="-2" id="0CQ-FC-l5B"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
</popUpButton>
|
||||
</toolbarItem>
|
||||
</allowedToolbarItems>
|
||||
<defaultToolbarItems>
|
||||
<toolbarItem reference="FY3-O2-t3T"/>
|
||||
<toolbarItem reference="mX6-y6-VZe"/>
|
||||
<toolbarItem reference="V6w-Ey-bjV"/>
|
||||
<toolbarItem reference="rhw-S4-nZ8"/>
|
||||
<toolbarItem reference="qX7-s1-81X"/>
|
||||
<toolbarItem reference="Af5-ai-sw9"/>
|
||||
<toolbarItem reference="mX6-y6-VZe"/>
|
||||
<toolbarItem reference="uiq-J2-uPs"/>
|
||||
</defaultToolbarItems>
|
||||
</toolbar>
|
||||
<point key="canvasLocation" x="1024" y="-701"/>
|
||||
</window>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="NSActionTemplate" width="14" height="14"/>
|
||||
<image name="NSAddTemplate" width="11" height="11"/>
|
||||
<image name="NSRevealFreestandingTemplate" width="14" height="14"/>
|
||||
<image name="ToolbarActionTemplate" width="24" height="24"/>
|
||||
<image name="ToolbarChaptersTemplate" width="14" height="13"/>
|
||||
<image name="ToolbarRemoveTemplate" width="16" height="16"/>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="OffsetViewController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="offsetField" destination="lhD-11-DBf" id="n8R-Hu-ysl"/>
|
||||
<outlet property="view" destination="gZj-Ij-29U" id="uD0-Uz-ykk"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<view id="gZj-Ij-29U" userLabel="Offset">
|
||||
<rect key="frame" x="0.0" y="0.0" width="346" height="102"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="p8t-DX-Sav">
|
||||
<rect key="frame" x="307" y="62" width="22" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="ms" id="nxC-E2-XnZ">
|
||||
<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>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="lhD-11-DBf">
|
||||
<rect key="frame" x="69" y="59" width="233" height="22"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="j35-C4-nht">
|
||||
<numberFormatter key="formatter" formatterBehavior="custom10_4" numberStyle="decimal" minimumIntegerDigits="1" maximumIntegerDigits="2000000000" maximumFractionDigits="10" id="bJb-JJ-awo"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Uf6-Aa-BAI">
|
||||
<rect key="frame" x="237" y="12" width="95" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="OK" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="zRv-hv-PCL">
|
||||
<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="setOffset:" target="-2" id="hEX-Nq-e5x"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="MtD-m7-VhK">
|
||||
<rect key="frame" x="142" y="12" width="95" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Ypd-2w-xig">
|
||||
<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="dismiss:" target="-2" id="yQT-S3-hgL"/>
|
||||
</connections>
|
||||
</button>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uuA-eC-Gdc">
|
||||
<rect key="frame" x="18" y="62" width="46" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Offset:" id="1MN-KJ-v23">
|
||||
<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>
|
||||
<constraints>
|
||||
<constraint firstItem="MtD-m7-VhK" firstAttribute="width" secondItem="Uf6-Aa-BAI" secondAttribute="width" id="328-hh-zhX"/>
|
||||
<constraint firstItem="Uf6-Aa-BAI" firstAttribute="leading" secondItem="lhD-11-DBf" secondAttribute="trailing" constant="-59" id="6XT-jW-RY8"/>
|
||||
<constraint firstItem="Uf6-Aa-BAI" firstAttribute="baseline" secondItem="MtD-m7-VhK" secondAttribute="baseline" id="CuP-zf-OT8"/>
|
||||
<constraint firstItem="lhD-11-DBf" firstAttribute="leading" secondItem="uuA-eC-Gdc" secondAttribute="trailing" constant="7" id="D02-Sv-P4W"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Uf6-Aa-BAI" secondAttribute="bottom" constant="19" id="IHU-xc-itz"/>
|
||||
<constraint firstItem="Uf6-Aa-BAI" firstAttribute="leading" secondItem="MtD-m7-VhK" secondAttribute="trailing" constant="12" id="IMX-HT-DUP"/>
|
||||
<constraint firstItem="uuA-eC-Gdc" firstAttribute="leading" secondItem="gZj-Ij-29U" secondAttribute="leading" constant="20" id="Pxz-m3-rpG"/>
|
||||
<constraint firstItem="p8t-DX-Sav" firstAttribute="leading" secondItem="lhD-11-DBf" secondAttribute="trailing" constant="7" id="WZj-l5-tt2"/>
|
||||
<constraint firstItem="uuA-eC-Gdc" firstAttribute="baseline" secondItem="lhD-11-DBf" secondAttribute="baseline" id="c4k-0u-RSa"/>
|
||||
<constraint firstItem="MtD-m7-VhK" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="gZj-Ij-29U" secondAttribute="leading" constant="20" symbolic="YES" id="cEH-Ne-ciw"/>
|
||||
<constraint firstItem="uuA-eC-Gdc" firstAttribute="top" secondItem="gZj-Ij-29U" secondAttribute="top" constant="23" id="d4e-kr-3AX"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Uf6-Aa-BAI" secondAttribute="trailing" constant="20" id="d8o-MK-asz"/>
|
||||
<constraint firstItem="p8t-DX-Sav" firstAttribute="baseline" secondItem="lhD-11-DBf" secondAttribute="baseline" id="q6R-jC-RnD"/>
|
||||
<constraint firstAttribute="trailing" secondItem="p8t-DX-Sav" secondAttribute="trailing" constant="19" id="vch-j0-7So"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13771" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13771"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
@@ -99,7 +99,7 @@
|
||||
</textField>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="Pbz-wc-RXA" secondAttribute="bottom" constant="20" id="0R2-Y8-s5e"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Pbz-wc-RXA" secondAttribute="bottom" constant="20" symbolic="YES" id="0R2-Y8-s5e"/>
|
||||
<constraint firstItem="Pbz-wc-RXA" firstAttribute="leading" secondItem="i8H-oP-Sif" secondAttribute="leading" id="4Vz-o1-zSY"/>
|
||||
<constraint firstItem="rzc-AK-4Vr" firstAttribute="leading" secondItem="TBF-BD-fSk" secondAttribute="leading" constant="16" id="Aws-ML-M7P"/>
|
||||
<constraint firstItem="TBF-BD-fSk" firstAttribute="top" secondItem="i8H-oP-Sif" secondAttribute="bottom" constant="32" id="C0O-NO-8Te"/>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13528" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13528"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
@@ -21,7 +21,7 @@
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<customView id="Hz6-mo-xeY">
|
||||
<rect key="frame" x="0.0" y="0.0" width="550" height="497"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1XK-zr-YdW">
|
||||
<rect key="frame" x="166" y="129" width="364" height="349"/>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13528" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13528"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
@@ -15,9 +15,9 @@
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<customView id="Sl5-b6-dQC" userLabel="Sets View">
|
||||
<customView id="Sl5-b6-dQC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="396" height="266"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Bgi-pA-eAO">
|
||||
<rect key="frame" x="20" y="46" width="356" height="200"/>
|
||||
@@ -91,6 +91,7 @@
|
||||
</clipView>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="200" id="JWr-Hr-fVF"/>
|
||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="356" id="m8D-Ig-Qb7"/>
|
||||
</constraints>
|
||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="D9w-7o-pBY">
|
||||
<rect key="frame" x="1" y="183" width="354" height="16"/>
|
||||
@@ -118,13 +119,13 @@
|
||||
<constraints>
|
||||
<constraint firstItem="SIg-lA-6FA" firstAttribute="top" secondItem="Bgi-pA-eAO" secondAttribute="bottom" constant="7" id="0sg-zC-Z0Q"/>
|
||||
<constraint firstItem="SIg-lA-6FA" firstAttribute="leading" secondItem="Sl5-b6-dQC" secondAttribute="leading" constant="20" id="4SR-ez-TOh"/>
|
||||
<constraint firstAttribute="bottom" secondItem="SIg-lA-6FA" secondAttribute="bottom" constant="20" id="9gr-DK-7bc"/>
|
||||
<constraint firstItem="Bgi-pA-eAO" firstAttribute="top" secondItem="Sl5-b6-dQC" secondAttribute="top" constant="20" id="CfB-Vj-Oio"/>
|
||||
<constraint firstItem="Bgi-pA-eAO" firstAttribute="leading" secondItem="Sl5-b6-dQC" secondAttribute="leading" constant="20" id="SNz-hG-5Nz"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Bgi-pA-eAO" secondAttribute="trailing" constant="20" id="cgL-bl-uVt"/>
|
||||
<constraint firstAttribute="bottom" secondItem="SIg-lA-6FA" secondAttribute="bottom" constant="20" symbolic="YES" id="iX7-35-KVJ"/>
|
||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="SIg-lA-6FA" secondAttribute="trailing" constant="20" symbolic="YES" id="ssz-R1-wNZ"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="-344" y="-648"/>
|
||||
<point key="canvasLocation" x="-347" y="-669"/>
|
||||
</customView>
|
||||
</objects>
|
||||
<resources>
|
||||
|
||||
@@ -0,0 +1,308 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="TracksViewController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="tracksTable" destination="Bpi-e7-pHx" id="oqE-b0-m8c"/>
|
||||
<outlet property="view" destination="Vef-Em-112" id="Aw6-ae-nYo"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<customView id="Vef-Em-112">
|
||||
<rect key="frame" x="0.0" y="0.0" width="736" height="249"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<subviews>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2JQ-Gr-ZXk">
|
||||
<rect key="frame" x="-1" y="0.0" width="738" height="250"/>
|
||||
<clipView key="contentView" id="S5b-XK-rba">
|
||||
<rect key="frame" x="1" y="0.0" width="736" height="249"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" headerView="etF-qp-SsT" viewBased="YES" id="Bpi-e7-pHx" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="736" height="226"/>
|
||||
<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="trackId" editable="NO" width="37" minWidth="30" maxWidth="38" id="sB1-FL-VRd">
|
||||
<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.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="charWrapping" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="wZU-Ig-GWL">
|
||||
<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 identifier="trackId" id="UQL-IB-uNb">
|
||||
<rect key="frame" x="1" y="1" width="37" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="MF3-VW-Szn">
|
||||
<rect key="frame" x="0.0" y="0.0" width="94" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Do not localize" id="n0U-5L-NwR">
|
||||
<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="MF3-VW-Szn" id="kaW-e7-kOh"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
<tableCellView identifier="disabledIdCell" id="dn8-s8-to1">
|
||||
<rect key="frame" x="1" y="20" width="37" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="mZb-Gw-cvH">
|
||||
<rect key="frame" x="0.0" y="0.0" width="94" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Do not localize" id="bHw-nm-BXK">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="disabledControlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="mZb-Gw-cvH" id="gRH-P5-5lA"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackEnabled" width="19" minWidth="18" maxWidth="50" id="Znw-bQ-tsE">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Enabled">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<buttonCell key="dataCell" type="check" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="charWrapping" inset="2" id="eUu-O3-fYd">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="trackEnabled" id="Gfc-fL-316" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="41" y="1" width="19" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button toolTip="Enable or disable the track" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="JD5-tO-uQc">
|
||||
<rect key="frame" x="0.0" 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="o6r-HB-3TZ">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
</buttonCell>
|
||||
<accessibility description="Enabled"/>
|
||||
<connections>
|
||||
<action selector="setTrackEnabled:" target="-2" id="1kA-Tg-THR"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="checkboxButton" destination="JD5-tO-uQc" id="57M-AE-SQp"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackName" width="235" minWidth="100" maxWidth="3000" id="3zj-cH-wWV">
|
||||
<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" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="charWrapping" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="1Yu-8E-I2L">
|
||||
<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 identifier="trackName" id="9fL-77-imQ">
|
||||
<rect key="frame" x="63" y="1" width="235" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gyX-Aq-rgC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="235" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" title="Do not localize" id="3TN-xY-oN3">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<connections>
|
||||
<action selector="setTrackName:" target="-2" id="dwa-Pb-Lx6"/>
|
||||
</connections>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="gyX-Aq-rgC" id="TQe-h4-eUC"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackDuration" editable="NO" width="92" minWidth="92" maxWidth="92" id="0dC-Ux-mUt">
|
||||
<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="charWrapping" sendsActionOnEndEditing="YES" alignment="right" title="Text" id="LgC-JT-Lsx">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="trackDuration" id="o3M-Vh-HrA">
|
||||
<rect key="frame" x="301" y="1" width="92" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3k9-Ev-UfR">
|
||||
<rect key="frame" x="0.0" y="0.0" width="92" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="00:00:00" id="LAW-aU-7Ie">
|
||||
<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="3k9-Ev-UfR" id="FrQ-9D-uIQ"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackLanguage" width="169" minWidth="130" maxWidth="200" id="qGd-Uo-RvP">
|
||||
<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>
|
||||
<comboBoxCell key="dataCell" lineBreakMode="charWrapping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" alignment="right" buttonBordered="NO" usesDataSource="YES" numberOfVisibleItems="8" id="Gmk-d2-Xf0">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</comboBoxCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="trackLanguage" id="iMB-mM-hYa" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="396" y="1" width="169" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<popUpButton fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Afo-xh-8aB">
|
||||
<rect key="frame" x="3" y="0.0" width="163" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<popUpButtonCell key="cell" type="bevel" bezelStyle="regularSquare" alignment="right" lineBreakMode="truncatingTail" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" id="WuP-cy-d5d">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" autoenablesItems="NO" id="kca-wV-cAJ"/>
|
||||
</popUpButtonCell>
|
||||
<connections>
|
||||
<action selector="setTrackLanguage:" target="-2" id="HbV-o0-oYg"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="popUpButton" destination="Afo-xh-8aB" id="aER-h2-Bmd"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="trackInfo" editable="NO" width="166" minWidth="80" maxWidth="440" id="vmh-dT-zIv">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Format">
|
||||
<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="charWrapping" selectable="YES" editable="YES" alignment="right" title="Text Cell" id="Fgi-du-Xch">
|
||||
<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 identifier="trackInfo" id="gfy-Nm-dJU">
|
||||
<rect key="frame" x="568" y="1" width="166" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="aWa-JY-QEe">
|
||||
<rect key="frame" x="0.0" y="0.0" width="166" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Do not localize" id="3I9-re-Mst">
|
||||
<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="aWa-JY-QEe" id="WkQ-XC-xgG"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
<tableCellView identifier="DisabledFormatCell" id="Nfv-nQ-DF5">
|
||||
<rect key="frame" x="568" y="20" width="166" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ezM-ed-YTi">
|
||||
<rect key="frame" x="0.0" y="0.0" width="166" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Do not localize" id="y3u-NN-Et0">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="disabledControlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<connections>
|
||||
<outlet property="textField" destination="ezM-ed-YTi" id="NQN-4k-mgQ"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
</tableColumns>
|
||||
<accessibility description="Tracks"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="oDJ-0A-Tw8"/>
|
||||
<outlet property="delegate" destination="-2" id="Ngy-cG-Bmx"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="567-mm-ioo">
|
||||
<rect key="frame" x="1" y="145" width="690" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="ykl-Gd-tEc">
|
||||
<rect key="frame" x="606" y="17" width="15" height="99"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<tableHeaderView key="headerView" id="etF-qp-SsT">
|
||||
<rect key="frame" x="0.0" y="0.0" width="736" height="23"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</tableHeaderView>
|
||||
</scrollView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="2JQ-Gr-ZXk" firstAttribute="top" secondItem="Vef-Em-112" secondAttribute="top" constant="-1" id="B9G-RG-Amh"/>
|
||||
<constraint firstAttribute="trailing" secondItem="2JQ-Gr-ZXk" secondAttribute="trailing" constant="-1" id="GGj-Wg-Fsz"/>
|
||||
<constraint firstAttribute="bottom" secondItem="2JQ-Gr-ZXk" secondAttribute="bottom" id="LfY-8l-9WZ"/>
|
||||
<constraint firstItem="2JQ-Gr-ZXk" firstAttribute="leading" secondItem="Vef-Em-112" secondAttribute="leading" constant="-1" id="NfM-fB-fz0"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="517" y="-19"/>
|
||||
</customView>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -232,10 +232,10 @@ class ChapterSearchController: NSWindowController, NSTableViewDataSource, NSTabl
|
||||
return result.title
|
||||
}
|
||||
else if tableColumn?.identifier.rawValue == "chaptercount" {
|
||||
return "\(result.chapters.count)".monospacedAttributedString()
|
||||
return "\(result.chapters.count)".smallMonospacedAttributedString()
|
||||
}
|
||||
else if tableColumn?.identifier.rawValue == "duration" {
|
||||
return StringFromTime(Int64(result.duration), 1000).monospacedAttributedString()
|
||||
return StringFromTime(Int64(result.duration), 1000).smallMonospacedAttributedString()
|
||||
}
|
||||
else if tableColumn?.identifier.rawValue == "confirmations" {
|
||||
return NSNumber(value: result.confimations)
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// DetailsViewController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 04/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
class DetailsViewController: NSViewController {
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// Do view setup here.
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,145 +0,0 @@
|
||||
//
|
||||
// Document+Swift.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 11/08/2017.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
extension SBDocument: ChapterSearchControllerDelegate, MetadataSearchControllerDelegate, FileImportControllerDelegate {
|
||||
|
||||
// MARK: File name
|
||||
|
||||
@objc func preferredFileName() -> String? {
|
||||
if let mediaKind = mp4.metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyMediaKind).first?.numberValue?.intValue,
|
||||
(mediaKind == 10 && UserDefaults.standard.bool(forKey: "SBSetTVShowFormat")) ||
|
||||
(mediaKind == 9 && UserDefaults.standard.bool(forKey: "SBSetMovieFormat")),
|
||||
let name = mp4.formattedFileName() {
|
||||
return name
|
||||
} else {
|
||||
return mp4.tracks.compactMap { $0.url }.first?.deletingPathExtension().lastPathComponent
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Metadata
|
||||
|
||||
@IBAction func searchMetadata(_ sender: Any?) {
|
||||
let terms = mp4.extractSearchTerms(fallbackURL : fileURL)
|
||||
let controller = MetadataSearchController(delegate: self, searchTerms: terms)
|
||||
|
||||
guard let windowForSheet = windowForSheet, let window = controller.window
|
||||
else { return }
|
||||
|
||||
sheetController = controller;
|
||||
windowForSheet.beginSheet(window, completionHandler: { response in
|
||||
self.sheetController = nil
|
||||
})
|
||||
}
|
||||
|
||||
@IBAction func searchChapters(_ sender: Any?) {
|
||||
let name = mp4.metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyName).first?.stringValue
|
||||
let url = mp4.firstSourceURL() ?? self.fileURL
|
||||
let title = (name?.isEmpty == false ? name : url?.lastPathComponent) ?? ""
|
||||
let duration = UInt64(mp4.duration)
|
||||
|
||||
let controller = ChapterSearchController(delegate: self, title: title, duration: duration)
|
||||
|
||||
guard let windowForSheet = windowForSheet, let window = controller.window
|
||||
else { return }
|
||||
|
||||
sheetController = controller;
|
||||
windowForSheet.beginSheet(window, completionHandler: { response in
|
||||
self.sheetController = nil
|
||||
})
|
||||
}
|
||||
|
||||
func didSelect(metadata: MetadataResult) {
|
||||
let defaults = UserDefaults.standard
|
||||
let map = metadata.mediaKind == 9 ? defaults.map(forKey: "SBMetadataMovieResultMap") : defaults.map(forKey: "SBMetadataTvShowResultMap")
|
||||
let keepEmptyKeys = defaults.bool(forKey: "SBMetadataKeepEmptyAnnotations")
|
||||
|
||||
if let map = map {
|
||||
let result = metadata.mappedMetadata(to: map, keepEmptyKeys: keepEmptyKeys)
|
||||
mp4.metadata.merge(result)
|
||||
}
|
||||
|
||||
if let hdType = mp4.hdType {
|
||||
for item in mp4.metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyHDVideo) {
|
||||
mp4.metadata.removeItem(item)
|
||||
}
|
||||
mp4.metadata.addItem(MP42MetadataItem(identifier: MP42MetadataKeyHDVideo, value: NSNumber(value: hdType.rawValue),
|
||||
dataType: .integer, extendedLanguageTag: nil))
|
||||
}
|
||||
updateChangeCount(.changeDone)
|
||||
reload()
|
||||
}
|
||||
|
||||
func didSelect(chapters: [MP42TextSample]) {
|
||||
let chapterTrack = MP42ChapterTrack()
|
||||
for chapter in chapters {
|
||||
chapterTrack.addChapter(chapter)
|
||||
}
|
||||
|
||||
mp4.addTrack(chapterTrack)
|
||||
updateChangeCount(.changeDone)
|
||||
reload()
|
||||
}
|
||||
|
||||
// MARK: File import
|
||||
|
||||
@objc func showImportSheet(fileURLs: [URL]) {
|
||||
do {
|
||||
let controller = try FileImportController(fileURLs: fileURLs, delegate: self)
|
||||
|
||||
if controller.onlyContainsSubtitles {
|
||||
controller.addTracks(self)
|
||||
tracksTable?.reloadData()
|
||||
reloadPropertyView()
|
||||
self.sheetController = nil;
|
||||
}
|
||||
else {
|
||||
guard let windowForSheet = windowForSheet, let window = controller.window
|
||||
else { return }
|
||||
|
||||
sheetController = controller;
|
||||
windowForSheet.beginSheet(window, completionHandler: { response in
|
||||
self.sheetController = nil
|
||||
})
|
||||
}
|
||||
}
|
||||
catch {
|
||||
if let windowForSheet = windowForSheet {
|
||||
presentError(error, modalFor: windowForSheet, delegate: nil, didPresent: nil, contextInfo: nil)
|
||||
} else {
|
||||
presentError(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?) {
|
||||
for track in tracks {
|
||||
mp4.addTrack(track)
|
||||
}
|
||||
|
||||
if tracks.isEmpty == false {
|
||||
updateChangeCount(.changeDone)
|
||||
|
||||
if UserDefaults.standard.bool(forKey: "SBOrganizeAlternateGroups") {
|
||||
mp4.organizeAlternateGroups()
|
||||
if UserDefaults.standard.bool(forKey: "SBInferMediaCharacteristics") {
|
||||
mp4.inferMediaCharacteristics()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if let metadata = metadata {
|
||||
mp4.metadata.merge(metadata)
|
||||
updateChangeCount(.changeDone)
|
||||
}
|
||||
|
||||
tracksTable?.reloadData()
|
||||
reloadPropertyView()
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,622 @@
|
||||
//
|
||||
// DocumentWindowController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 03/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
extension NSPasteboard.PasteboardType {
|
||||
|
||||
static let backwardsCompatibleFileURL: NSPasteboard.PasteboardType = {
|
||||
if #available(OSX 10.13, *) {
|
||||
return NSPasteboard.PasteboardType.fileURL
|
||||
} else {
|
||||
return NSPasteboard.PasteboardType(kUTTypeFileURL as String)
|
||||
}
|
||||
} ()
|
||||
|
||||
}
|
||||
|
||||
@objc(SBDocumentWindowController) class DocumentWindowController: NSWindowController, TracksViewControllerDelegate, ChapterSearchControllerDelegate, MetadataSearchControllerDelegate, FileImportControllerDelegate, ProgressViewControllerDelegate, NSDraggingDestination {
|
||||
|
||||
private var doc: SBDocument {
|
||||
return document as! SBDocument
|
||||
}
|
||||
|
||||
private var mp4: MP42File {
|
||||
return doc.mp4
|
||||
}
|
||||
|
||||
override var windowNibName: NSNib.Name? {
|
||||
return NSNib.Name(rawValue: "DocumentWindowController")
|
||||
}
|
||||
|
||||
init() {
|
||||
super.init(window: nil)
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func windowDidLoad() {
|
||||
super.windowDidLoad()
|
||||
|
||||
guard let window = window else {
|
||||
fatalError("`window` is expected to be non nil by this time.")
|
||||
}
|
||||
|
||||
sendToQueue.image = NSImage(named: NSImage.Name(rawValue: "NSShareTemplate"));
|
||||
|
||||
if UserDefaults.standard.bool(forKey: "rememberWindowSize") {
|
||||
window.setFrameAutosaveName(NSWindow.FrameAutosaveName(rawValue: "documentSave"))
|
||||
window.setFrameFrom("documentSave")
|
||||
}
|
||||
|
||||
window.contentViewController = splitViewController
|
||||
window.registerForDraggedTypes([NSPasteboard.PasteboardType.backwardsCompatibleFileURL])
|
||||
|
||||
didSelect(tracks: [])
|
||||
}
|
||||
|
||||
private static let splitViewResorationIdentifier = NSUserInterfaceItemIdentifier(rawValue: "splitViewSave")
|
||||
private static let splitViewResorationAutosaveName = NSSplitView.AutosaveName(rawValue: "splitViewSave")
|
||||
|
||||
private lazy var splitViewController: NSSplitViewController = {
|
||||
// Create a split view controller to contain split view items.
|
||||
let splitViewController = NSSplitViewController()
|
||||
splitViewController.view.wantsLayer = true
|
||||
splitViewController.splitView.isVertical = false
|
||||
splitViewController.splitView.dividerStyle = NSSplitView.DividerStyle.thick
|
||||
|
||||
let tracksSplitViewItem = NSSplitViewItem(viewController: tracksViewController)
|
||||
if #available(OSX 10.11, *) {
|
||||
tracksSplitViewItem.minimumThickness = 100
|
||||
}
|
||||
|
||||
splitViewController.addSplitViewItem(tracksSplitViewItem)
|
||||
|
||||
let detailsSplitViewItem = NSSplitViewItem(viewController: DetailsViewController())
|
||||
detailsSplitViewItem.canCollapse = true
|
||||
if #available(OSX 10.11, *) {
|
||||
detailsSplitViewItem.minimumThickness = 320
|
||||
}
|
||||
|
||||
splitViewController.addSplitViewItem(detailsSplitViewItem)
|
||||
|
||||
splitViewController.splitView.autosaveName = DocumentWindowController.splitViewResorationAutosaveName
|
||||
splitViewController.splitView.identifier = DocumentWindowController.splitViewResorationIdentifier
|
||||
|
||||
return splitViewController
|
||||
}()
|
||||
|
||||
private lazy var tracksViewController: TracksViewController = {
|
||||
let tracksViewController = TracksViewController(document: doc, delegate: self)
|
||||
return tracksViewController
|
||||
}()
|
||||
|
||||
private func detailsViewController(_ tracks: [MP42Track]) -> NSViewController {
|
||||
if tracks.count > 1 {
|
||||
let controller = MultiSelectViewController(nibName: NSNib.Name(rawValue: "MultiSelectView"),
|
||||
bundle: nil)
|
||||
controller.numberOfTracks = UInt(tracks.count)
|
||||
return controller
|
||||
}
|
||||
else {
|
||||
let track = tracks.first
|
||||
switch track {
|
||||
|
||||
case let track as MP42VideoTrack:
|
||||
let controller = SBVideoViewController(nibName: NSNib.Name(rawValue: "VideoView"),
|
||||
bundle: nil)
|
||||
controller.setTrack(track)
|
||||
controller.setFile(mp4)
|
||||
return controller
|
||||
|
||||
case let track as MP42AudioTrack:
|
||||
let controller = SoundViewController(mp4: mp4, track: track)
|
||||
return controller
|
||||
|
||||
case let track as MP42ChapterTrack:
|
||||
let controller = ChapterViewController(track: track)
|
||||
return controller
|
||||
|
||||
default:
|
||||
let movieViewController = SBMovieViewController(nibName: NSNib.Name(rawValue: "MovieView"),
|
||||
bundle: nil)
|
||||
movieViewController.metadata = mp4.metadata
|
||||
|
||||
return movieViewController
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@objc func reloadData() {
|
||||
tracksViewController.mp4 = doc.mp4
|
||||
}
|
||||
|
||||
// MARK: State restoration
|
||||
|
||||
|
||||
//- (void)encodeRestorableStateWithCoder:(NSCoder *)coder
|
||||
//{
|
||||
// [super encodeRestorableStateWithCoder:coder];
|
||||
// [coder encodeInteger:self.tracksTable.selectedRow forKey:@"selectedRow"];
|
||||
//}
|
||||
//
|
||||
//- (void)restoreStateWithCoder:(NSCoder *)coder
|
||||
//{
|
||||
// [super restoreStateWithCoder:coder];
|
||||
//
|
||||
// NSInteger selectedRow = [coder decodeIntegerForKey:@"selectedRow"];
|
||||
// if (selectedRow <= self.mp4.tracks.count) {
|
||||
// [self.tracksTable selectRowIndexes:[NSIndexSet indexSetWithIndex:selectedRow] byExtendingSelection:NO];
|
||||
// }
|
||||
//}
|
||||
|
||||
// MARK: Tracks controller delegate
|
||||
|
||||
func didSelect(tracks: [MP42Track]) {
|
||||
let detailsItem = splitViewController.splitViewItems[1]
|
||||
if let detailsViewController = detailsItem.viewController.childViewControllers.first {
|
||||
doc.undoManager?.removeAllActions(withTarget: detailsViewController)
|
||||
detailsViewController.view.removeFromSuperviewWithoutNeedingDisplay()
|
||||
detailsItem.viewController.removeChildViewController(at: 0)
|
||||
}
|
||||
|
||||
let trackViewController = detailsViewController(tracks)
|
||||
detailsItem.viewController.addChildViewController(trackViewController)
|
||||
trackViewController.view.frame = detailsItem.viewController.view.bounds
|
||||
trackViewController.view.autoresizingMask = [NSView.AutoresizingMask.width, NSView.AutoresizingMask.height]
|
||||
detailsItem.viewController.view.addSubview(trackViewController.view)
|
||||
}
|
||||
|
||||
// MARK: Validation
|
||||
|
||||
@IBOutlet var addTracks: NSToolbarItem!
|
||||
@IBOutlet var deleteTrack: NSToolbarItem!
|
||||
@IBOutlet var searchMetadata: NSToolbarItem!
|
||||
@IBOutlet var searchChapters: NSToolbarItem!
|
||||
@IBOutlet var sendToQueue: NSToolbarItem!
|
||||
|
||||
override func validateToolbarItem(_ item: NSToolbarItem) -> Bool {
|
||||
if item == addTracks ||
|
||||
item == searchMetadata ||
|
||||
item == searchChapters ||
|
||||
item == sendToQueue {
|
||||
return true;
|
||||
}
|
||||
|
||||
if item == deleteTrack {
|
||||
return tracksViewController.selectedTracks.isEmpty == false && NSApp.isActive;
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
||||
switch menuItem.action {
|
||||
case #selector(selectFile(_:)),
|
||||
#selector(selectMetadataFile(_:)),
|
||||
#selector(searchMetadata(_:)),
|
||||
#selector(searchChapters(_:)),
|
||||
#selector(sendToQueue(_:)),
|
||||
#selector(addChaptersEvery(_:)),
|
||||
#selector(iTunesFriendlyTrackGroups(_:)),
|
||||
#selector(clearTrackNames(_:)),
|
||||
#selector(fixAudioFallbacks(_:)):
|
||||
return true
|
||||
|
||||
case #selector(sendToExternalApp(_:)) where mp4.hasFileRepresentation && doc.isDocumentEdited == false:
|
||||
return true
|
||||
|
||||
case #selector(showTrackOffsetSheet(_:)) where tracksViewController.selectedTracks.isEmpty == false:
|
||||
return true
|
||||
|
||||
case #selector(export(_:)) where tracksViewController.selectedTracks.isEmpty == false:
|
||||
if let track = tracksViewController.selectedTracks.first, track.isMuxed {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Save status
|
||||
|
||||
var progressController: ProgressViewController?
|
||||
|
||||
@objc func startProgressReporting() {
|
||||
let progressController = ProgressViewController()
|
||||
progressController.delegate = self
|
||||
contentViewController?.presentViewControllerAsSheet(progressController)
|
||||
self.progressController = progressController
|
||||
mp4.progressHandler = { [weak progressController] progress in
|
||||
DispatchQueue.main.async {
|
||||
guard let progressController = progressController else { return }
|
||||
progressController.progressBar.doubleValue = progress
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@objc func endProgressReporting() {
|
||||
if let progressController = self.progressController {
|
||||
contentViewController?.dismissViewController(progressController)
|
||||
self.progressController = nil
|
||||
}
|
||||
}
|
||||
|
||||
func cancel() {
|
||||
mp4.cancel()
|
||||
}
|
||||
|
||||
// MARK: Actions
|
||||
|
||||
private var sheetController: NSWindowController?
|
||||
|
||||
@IBAction func sendToExternalApp(_ sender: Any) {
|
||||
let workspace = NSWorkspace.shared
|
||||
if let filePath = doc.fileURL?.path, let appPath = workspace.fullPath(forApplication: "iTunes") {
|
||||
workspace.openFile(filePath, withApplication: appPath)
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func sendToQueue(_ sender: Any) {
|
||||
guard let windowForSheet = doc.windowForSheet else { return }
|
||||
|
||||
let queue = SBQueueController.sharedManager
|
||||
if mp4.hasFileRepresentation {
|
||||
let item = SBQueueItem(mp4: mp4)
|
||||
queue.add(item)
|
||||
doc.close()
|
||||
}
|
||||
else {
|
||||
let panel = NSSavePanel()
|
||||
panel.prompt = NSLocalizedString("Send To Queue", comment: "")
|
||||
|
||||
let handler = { (response: NSApplication.ModalResponse) in
|
||||
if response == NSApplication.ModalResponse.OK, let url = panel.url {
|
||||
// NSDictionary *attributes = [self saveAttributes];
|
||||
let item = SBQueueItem(mp4: self.mp4, destinationURL: url, attributes: [:])
|
||||
queue.add(item)
|
||||
self.doc.close()
|
||||
}
|
||||
}
|
||||
|
||||
// [self prepareSavePanel:panel];
|
||||
panel.beginSheetModal(for: windowForSheet, completionHandler: handler)
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func deleteTrack(_ sender: Any) {
|
||||
let tracks = tracksViewController.selectedTracks
|
||||
mp4.removeTracks(tracks)
|
||||
|
||||
if UserDefaults.standard.bool(forKey: "SBOrganizeAlternateGroups") { mp4.organizeAlternateGroups() }
|
||||
if UserDefaults.standard.bool(forKey: "SBInferMediaCharacteristics") { mp4.inferMediaCharacteristics() }
|
||||
|
||||
doc.updateChangeCount(.changeDone)
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
|
||||
@IBAction func addChaptersEvery(_ sender: NSMenuItem) {
|
||||
let track: MP42ChapterTrack = mp4.chapters ?? { let track = MP42ChapterTrack(); self.mp4.addTrack(track); return track }()
|
||||
let minutes = sender.tag * 60 * 1000
|
||||
|
||||
if minutes > 0 {
|
||||
for (index, duration) in stride(from: 0, to: mp4.duration, by: minutes).enumerated() {
|
||||
track.addChapter("Chapter \(index + 1)", duration: UInt64(duration))
|
||||
}
|
||||
}
|
||||
else {
|
||||
track.addChapter("Chapter 1", duration: UInt64(mp4.duration))
|
||||
}
|
||||
|
||||
doc.updateChangeCount(.changeDone)
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
|
||||
@IBAction func iTunesFriendlyTrackGroups(_ sender: Any) {
|
||||
mp4.organizeAlternateGroups()
|
||||
mp4.inferMediaCharacteristics()
|
||||
|
||||
doc.updateChangeCount(.changeDone)
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
|
||||
@IBAction func clearTrackNames(_ sender: Any) {
|
||||
for track in mp4.tracks {
|
||||
track.name = ""
|
||||
}
|
||||
|
||||
doc.updateChangeCount(.changeDone)
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
|
||||
@IBAction func fixAudioFallbacks(_ sender: Any) {
|
||||
mp4.setAutoFallback()
|
||||
doc.updateChangeCount(.changeDone)
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
|
||||
@IBAction func showTrackOffsetSheet(_ sender: Any) {
|
||||
guard let track = tracksViewController.selectedTracks.first else { return }
|
||||
let controller = OffsetViewController(doc: doc, track: track)
|
||||
self.window?.contentViewController?.presentViewControllerAsSheet(controller)
|
||||
}
|
||||
|
||||
@IBAction func export(_ sender: Any) {
|
||||
guard let fileName = doc.fileURL?.deletingPathExtension().lastPathComponent,
|
||||
let track = tracksViewController.selectedTracks.first,
|
||||
let windowForSheet = doc.windowForSheet else { return }
|
||||
|
||||
// if (row != -1 && [[self trackAtAtTableRow:row] isKindOfClass:[MP42SubtitleTrack class]]) {
|
||||
// panel.allowedFileTypes = @[@"srt"];
|
||||
// filename = [filename stringByAppendingFormat:@".%@", [self trackAtAtTableRow:row].language];
|
||||
// }
|
||||
// else if (row != -1 ) {
|
||||
// filename = [filename stringByAppendingString:@" - Chapters"];
|
||||
// panel.allowedFileTypes = @[@"txt"];
|
||||
// }
|
||||
|
||||
let ext = (track as? MP42SubtitleTrack) != nil ? "srt" : "txt"
|
||||
|
||||
let panel = NSSavePanel()
|
||||
panel.canSelectHiddenExtension = true
|
||||
panel.nameFieldStringValue = "\(fileName).\(ext)"
|
||||
|
||||
panel.beginSheetModal(for: windowForSheet) { (response) in
|
||||
if response == NSApplication.ModalResponse.OK, let url = panel.url {
|
||||
do {
|
||||
try track.export(to: url)
|
||||
} catch {
|
||||
let alert = NSAlert()
|
||||
alert.addButton(withTitle: NSLocalizedString("OK", comment: "Export alert panel -> button"))
|
||||
alert.messageText = NSLocalizedString("File Could Not Be Saved", comment: "Export alert panel -> title")
|
||||
alert.informativeText = NSLocalizedString("There was a problem creating the file ", comment: "Export alert panel -> message") + url.lastPathComponent + "."
|
||||
alert.alertStyle = .warning
|
||||
alert.runModal()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Metadata
|
||||
|
||||
@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
|
||||
})
|
||||
}
|
||||
|
||||
@IBAction func searchChapters(_ sender: Any?) {
|
||||
let name = mp4.metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyName).first?.stringValue
|
||||
let url = mp4.firstSourceURL() ?? doc.fileURL
|
||||
let title = (name?.isEmpty == false ? name : url?.lastPathComponent) ?? ""
|
||||
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
|
||||
})
|
||||
}
|
||||
|
||||
func didSelect(metadata: MetadataResult) {
|
||||
let defaults = UserDefaults.standard
|
||||
let map = metadata.mediaKind == 9 ? defaults.map(forKey: "SBMetadataMovieResultMap") : defaults.map(forKey: "SBMetadataTvShowResultMap")
|
||||
let keepEmptyKeys = defaults.bool(forKey: "SBMetadataKeepEmptyAnnotations")
|
||||
|
||||
if let map = map {
|
||||
let result = metadata.mappedMetadata(to: map, keepEmptyKeys: keepEmptyKeys)
|
||||
mp4.metadata.merge(result)
|
||||
}
|
||||
|
||||
if let hdType = mp4.hdType {
|
||||
for item in mp4.metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyHDVideo) {
|
||||
mp4.metadata.removeItem(item)
|
||||
}
|
||||
mp4.metadata.addItem(MP42MetadataItem(identifier: MP42MetadataKeyHDVideo, value: NSNumber(value: hdType.rawValue),
|
||||
dataType: .integer, extendedLanguageTag: nil))
|
||||
}
|
||||
doc.updateChangeCount(.changeDone)
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
|
||||
func didSelect(chapters: [MP42TextSample]) {
|
||||
let chapterTrack = MP42ChapterTrack()
|
||||
for chapter in chapters {
|
||||
chapterTrack.addChapter(chapter)
|
||||
}
|
||||
|
||||
mp4.addTrack(chapterTrack)
|
||||
doc.updateChangeCount(.changeDone)
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
|
||||
// MARK: File import
|
||||
|
||||
private func addChapters(fileURL: URL) {
|
||||
mp4.addTrack(MP42ChapterTrack(fromFile: fileURL))
|
||||
|
||||
doc.updateChangeCount(.changeDone)
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
|
||||
private func updateChapters(fileURL: URL) {
|
||||
do {
|
||||
try mp4.chapters?.update(fromCSVFile: fileURL)
|
||||
}
|
||||
catch {
|
||||
if let windowForSheet = doc.windowForSheet {
|
||||
presentError(error, modalFor: windowForSheet, delegate: nil, didPresent: nil, contextInfo: nil)
|
||||
} else {
|
||||
presentError(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func addMetadata(fileURL: URL) {
|
||||
let ext = fileURL.pathExtension.lowercased()
|
||||
if ext == "xml" || ext == "nfo" {
|
||||
let metadata = MP42Metadata(url: fileURL)
|
||||
mp4.metadata.merge(metadata)
|
||||
|
||||
doc.updateChangeCount(.changeDone)
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
else if let file = try? MP42File(url: fileURL) {
|
||||
mp4.metadata.merge(file.metadata)
|
||||
|
||||
doc.updateChangeCount(.changeDone)
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func selectMetadataFile(_ sender: Any) {
|
||||
guard let windowForSheet = doc.windowForSheet else { return }
|
||||
let panel = NSOpenPanel()
|
||||
panel.allowsMultipleSelection = false
|
||||
panel.canChooseFiles = true
|
||||
panel.canChooseDirectories = false
|
||||
panel.allowedFileTypes = ["mp4", "m4v", "m4a", "xml", "nfo"]
|
||||
|
||||
panel.beginSheetModal(for: windowForSheet) { (response) in
|
||||
if response == NSApplication.ModalResponse.OK, let url = panel.url {
|
||||
self.addMetadata(fileURL: url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func selectFile(_ sender: Any) {
|
||||
guard let windowForSheet = doc.windowForSheet else { return }
|
||||
let supportedFileFormats = MP42FileImporter.supportedFileFormats() + ["txt", "csv"]
|
||||
|
||||
let panel = NSOpenPanel()
|
||||
panel.allowsMultipleSelection = true
|
||||
panel.canChooseFiles = true
|
||||
panel.canChooseDirectories = false
|
||||
panel.allowedFileTypes = supportedFileFormats
|
||||
|
||||
panel.beginSheetModal(for: windowForSheet) { (response) in
|
||||
if response == NSApplication.ModalResponse.OK {
|
||||
let ext = panel.url?.pathExtension.lowercased()
|
||||
if ext == "txt", let url = panel.url {
|
||||
self.addChapters(fileURL: url)
|
||||
}
|
||||
else if ext == "csv", let url = panel.url {
|
||||
self.updateChapters(fileURL: url)
|
||||
}
|
||||
else {
|
||||
self.showImportSheet(fileURLs: panel.urls)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@objc func showImportSheet(fileURLs: [URL]) {
|
||||
do {
|
||||
let controller = try FileImportController(fileURLs: fileURLs, delegate: self)
|
||||
|
||||
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
|
||||
})
|
||||
}
|
||||
}
|
||||
catch {
|
||||
if let windowForSheet = doc.windowForSheet {
|
||||
presentError(error, modalFor: windowForSheet, delegate: nil, didPresent: nil, contextInfo: nil)
|
||||
} else {
|
||||
presentError(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?) {
|
||||
for track in tracks {
|
||||
mp4.addTrack(track)
|
||||
}
|
||||
|
||||
if tracks.isEmpty == false {
|
||||
doc.updateChangeCount(.changeDone)
|
||||
|
||||
if UserDefaults.standard.bool(forKey: "SBOrganizeAlternateGroups") {
|
||||
mp4.organizeAlternateGroups()
|
||||
if UserDefaults.standard.bool(forKey: "SBInferMediaCharacteristics") {
|
||||
mp4.inferMediaCharacteristics()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if let metadata = metadata {
|
||||
mp4.metadata.merge(metadata)
|
||||
doc.updateChangeCount(.changeDone)
|
||||
}
|
||||
|
||||
tracksViewController.reloadData()
|
||||
}
|
||||
|
||||
// MARK: Drag & drop
|
||||
|
||||
func draggingEntered(_ sender: NSDraggingInfo) -> NSDragOperation {
|
||||
guard let types = sender.draggingPasteboard().types,
|
||||
types.contains(NSPasteboard.PasteboardType.backwardsCompatibleFileURL) &&
|
||||
sender.draggingSourceOperationMask().contains(.copy)
|
||||
else { return [] }
|
||||
|
||||
return []
|
||||
}
|
||||
|
||||
func performDragOperation(_ sender: NSDraggingInfo) -> Bool {
|
||||
let pasteboard = sender.draggingPasteboard()
|
||||
guard let types = pasteboard.types,
|
||||
types.contains(NSPasteboard.PasteboardType.backwardsCompatibleFileURL),
|
||||
let items = pasteboard.readObjects(forClasses: [NSURL.classForCoder()], options: [:]) as? [URL]
|
||||
else { return false }
|
||||
|
||||
let chapters = items.filter { $0.pathExtension.lowercased() == "txt" }
|
||||
if let url = chapters.first {
|
||||
addChapters(fileURL: url)
|
||||
}
|
||||
|
||||
let metadata = items.filter { let ext = $0.pathExtension.lowercased(); return ext == "xml" || ext == "nfo" }
|
||||
if let url = metadata.first {
|
||||
addMetadata(fileURL: url)
|
||||
}
|
||||
|
||||
let files = items.filter { MP42FileImporter.canInit(withFileType: $0.pathExtension) }
|
||||
if files.isEmpty == false {
|
||||
showImportSheet(fileURLs: files)
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// GeneralPrefsViewController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 06/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
class GeneralPrefsViewController: NSViewController {
|
||||
|
||||
init() {
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
self.title = NSLocalizedString("General", comment: "")
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
@IBAction func clearRecentSearches(_ sender: Any) {
|
||||
MetadataSearchController.clearRecentSearches()
|
||||
}
|
||||
|
||||
@IBAction func deleteCachedMetadata(_ sender: Any) {
|
||||
MetadataSearchController.deleteCachedMetadata()
|
||||
}
|
||||
|
||||
@IBAction func updateRatingsCountry(_ sender: Any) {
|
||||
MP42Ratings.defaultManager.updateCountry()
|
||||
}
|
||||
|
||||
@objc dynamic var ratingsCountries: [String] { return MP42Ratings.defaultManager.ratingsCountries }
|
||||
|
||||
}
|
||||
@@ -38,8 +38,8 @@ import Cocoa
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func loadView() {
|
||||
super.loadView()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
// Observe the item status
|
||||
statusObserver = item.observe(\.status, options: [.initial, .new]) { [weak self] observed, change in
|
||||
|
||||
@@ -80,6 +80,19 @@ extension MP42File {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MARK: File name
|
||||
|
||||
@objc func preferredFileName() -> String? {
|
||||
if let mediaKind = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyMediaKind).first?.numberValue?.intValue,
|
||||
(mediaKind == 10 && UserDefaults.standard.bool(forKey: "SBSetTVShowFormat")) ||
|
||||
(mediaKind == 9 && UserDefaults.standard.bool(forKey: "SBSetMovieFormat")),
|
||||
let name = formattedFileName() {
|
||||
return name
|
||||
} else {
|
||||
return tracks.compactMap { $0.url }.first?.deletingPathExtension().lastPathComponent
|
||||
}
|
||||
}
|
||||
|
||||
func formattedFileName() -> String? {
|
||||
guard let mediaKind = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyMediaKind).first?.numberValue?.intValue,
|
||||
let format = outputNameFormat(mediaKind: mediaKind)
|
||||
|
||||
@@ -50,14 +50,16 @@ class MetadataPrefsViewController : NSViewController, NSTableViewDelegate, NSTok
|
||||
self.matches = []
|
||||
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
|
||||
self.title = NSLocalizedString("Metadata", comment: "")
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError()
|
||||
}
|
||||
|
||||
override func loadView() {
|
||||
super.loadView()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
builtInTokenField.tokenizingCharacterSet = CharacterSet(charactersIn: "%")
|
||||
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// OffsetViewController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 06/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
class OffsetViewController: NSViewController {
|
||||
|
||||
private let doc: SBDocument
|
||||
private let track: MP42Track
|
||||
|
||||
@IBOutlet var offsetField: NSTextField!
|
||||
|
||||
init(doc: SBDocument, track: MP42Track) {
|
||||
self.doc = doc
|
||||
self.track = track
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
offsetField.doubleValue = track.startOffset
|
||||
}
|
||||
|
||||
@IBAction func setOffset(_ sender: Any) {
|
||||
if track.startOffset != offsetField.doubleValue {
|
||||
track.startOffset = offsetField.doubleValue
|
||||
doc.updateChangeCount(.changeDone)
|
||||
}
|
||||
dismissViewController(self)
|
||||
}
|
||||
|
||||
@IBAction func dismiss(_ sender: Any) {
|
||||
dismissViewController(self)
|
||||
}
|
||||
}
|
||||
@@ -24,14 +24,15 @@ class OutputPrefsViewController: NSViewController, NSTokenFieldDelegate {
|
||||
init() {
|
||||
self.separators = CharacterSet(charactersIn: "{}")
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
self.title = NSLocalizedString("Filename", comment: "")
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func loadView() {
|
||||
super.loadView()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
movieField.tokenizingCharacterSet = CharacterSet(charactersIn: "%")
|
||||
tvShowField.tokenizingCharacterSet = CharacterSet(charactersIn: "%")
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
//
|
||||
// PrefsTabViewController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 06/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
class PrefsTabViewController: NSTabViewController {
|
||||
|
||||
override func viewDidAppear() {
|
||||
super.viewDidAppear()
|
||||
updateWindowFrame(animated: false)
|
||||
}
|
||||
|
||||
override func transition(from fromViewController: NSViewController, to toViewController: NSViewController, options: NSViewController.TransitionOptions, completionHandler completion: (() -> Void)?) {
|
||||
|
||||
NSAnimationContext.runAnimationGroup({ context in
|
||||
|
||||
self.updateWindowFrame(animated: true)
|
||||
super.transition(from: fromViewController, to: toViewController, options: options, completionHandler: completion)
|
||||
tabView.isHidden = true
|
||||
|
||||
}, completionHandler: {
|
||||
self.tabView.isHidden = false
|
||||
})
|
||||
}
|
||||
|
||||
override func tabView(_ tabView: NSTabView, didSelect tabViewItem: NSTabViewItem?) {
|
||||
super.tabView(tabView, didSelect: tabViewItem)
|
||||
|
||||
if let window = view.window, let title = tabViewItem?.label {
|
||||
window.title = title
|
||||
}
|
||||
}
|
||||
|
||||
func updateWindowFrame(animated: Bool) {
|
||||
|
||||
guard let selectedItem = tabView.selectedTabViewItem, let window = view.window, let toViewController = selectedItem.viewController else {
|
||||
return
|
||||
}
|
||||
|
||||
let width = max(window.frame.size.width, toViewController.view.frame.size.width)
|
||||
let contentSize = NSSize(width: width, height: toViewController.view.frame.size.height)
|
||||
let newWindowSize = window.frameRect(forContentRect: NSRect(origin: NSPoint.zero, size: contentSize)).size
|
||||
|
||||
var frame = window.frame
|
||||
frame.origin.y += frame.height
|
||||
frame.origin.y -= newWindowSize.height
|
||||
frame.size = newWindowSize
|
||||
|
||||
if animated {
|
||||
window.animator().setFrame(frame, display: false)
|
||||
} else {
|
||||
window.setFrame(frame, display: false)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// PrefsWindow.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 06/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
class PrefsWindow: NSWindow {
|
||||
|
||||
override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
||||
if menuItem.action == #selector(NSWindow.toggleToolbarShown(_:)) {
|
||||
return false
|
||||
}
|
||||
return super.validateMenuItem(menuItem)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -61,116 +61,44 @@ import Cocoa
|
||||
defaults.register(defaults: settings)
|
||||
}
|
||||
|
||||
@IBOutlet var generalView: NSView!
|
||||
@IBOutlet var advancedView: NSView!
|
||||
|
||||
let metadataController: MetadataPrefsViewController
|
||||
let presetController: PresetPrefsViewController
|
||||
let outputController: OutputPrefsViewController
|
||||
|
||||
let general: NSToolbarItem.Identifier
|
||||
let metadata: NSToolbarItem.Identifier
|
||||
let presets: NSToolbarItem.Identifier
|
||||
let output: NSToolbarItem.Identifier
|
||||
let advanced: NSToolbarItem.Identifier
|
||||
|
||||
override var windowNibName: NSNib.Name? {
|
||||
return NSNib.Name(rawValue: "Prefs")
|
||||
return NSNib.Name(rawValue: "PrefsWindowController")
|
||||
}
|
||||
|
||||
init() {
|
||||
self.metadataController = MetadataPrefsViewController()
|
||||
self.presetController = PresetPrefsViewController()
|
||||
self.outputController = OutputPrefsViewController()
|
||||
lazy var tabsViewController: NSTabViewController = {
|
||||
let controller = PrefsTabViewController()
|
||||
|
||||
self.general = NSToolbarItem.Identifier("TOOLBAR_GENERAL")
|
||||
self.metadata = NSToolbarItem.Identifier("TOOLBAR_METADATA")
|
||||
self.presets = NSToolbarItem.Identifier("TOOLBAR_SETS")
|
||||
self.output = NSToolbarItem.Identifier("TOOLBAR_OUTPUT")
|
||||
self.advanced = NSToolbarItem.Identifier("TOOLBAR_ADVANCED")
|
||||
controller.tabStyle = NSTabViewController.TabStyle.toolbar
|
||||
controller.transitionOptions = [NSViewController.TransitionOptions.allowUserInteraction]
|
||||
controller.canPropagateSelectedChildViewControllerTitle = true
|
||||
|
||||
super.init(window: nil)
|
||||
}
|
||||
let general = NSTabViewItem(viewController: GeneralPrefsViewController())
|
||||
general.image = NSImage.init(imageLiteralResourceName: "NSPreferencesGeneral")
|
||||
controller.addTabViewItem(general)
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
let metadata = NSTabViewItem(viewController: MetadataPrefsViewController())
|
||||
metadata.image = NSImage.init(imageLiteralResourceName: "NSUserAccounts")
|
||||
controller.addTabViewItem(metadata)
|
||||
|
||||
let presets = NSTabViewItem(viewController: PresetPrefsViewController())
|
||||
presets.image = NSImage.init(imageLiteralResourceName: "NSFolderSmart")
|
||||
controller.addTabViewItem(presets)
|
||||
|
||||
let output = NSTabViewItem(viewController: OutputPrefsViewController())
|
||||
output.image = NSImage.init(imageLiteralResourceName: "mp4-file")
|
||||
controller.addTabViewItem(output)
|
||||
|
||||
let advanced = NSTabViewItem(viewController: AdvancedPrefsViewController())
|
||||
advanced.image = NSImage.init(imageLiteralResourceName: "NSAdvanced")
|
||||
controller.addTabViewItem(advanced)
|
||||
|
||||
return controller
|
||||
}()
|
||||
|
||||
override func windowDidLoad() {
|
||||
super.windowDidLoad()
|
||||
|
||||
window?.toolbar?.allowsUserCustomization = false
|
||||
window?.toolbar?.selectedItemIdentifier = general
|
||||
|
||||
if let items = window?.toolbar?.items, let item = (items.filter { $0.itemIdentifier == general }).first {
|
||||
selectItem(item, animate: false)
|
||||
}
|
||||
contentViewController = tabsViewController
|
||||
window?.title = tabsViewController.tabView.selectedTabViewItem?.label ?? ""
|
||||
}
|
||||
|
||||
// MARK: Panel switching
|
||||
|
||||
private func view(for identifier: NSToolbarItem.Identifier) -> NSView? {
|
||||
if identifier == general { return generalView }
|
||||
if identifier == metadata { return metadataController.view }
|
||||
if identifier == presets { return presetController.view }
|
||||
if identifier == output { return outputController.view }
|
||||
if identifier == advanced { return advancedView }
|
||||
return nil
|
||||
}
|
||||
|
||||
private func animationDuration(view: NSView, previousView: NSView?) -> TimeInterval {
|
||||
guard let previousView = previousView else { return 0 }
|
||||
return TimeInterval(abs(previousView.frame.size.height - view.frame.height)) * 0.0011
|
||||
}
|
||||
|
||||
private func selectItem(_ item: NSToolbarItem, animate: Bool) {
|
||||
guard let window = self.window,
|
||||
let view = self.view(for: item.itemIdentifier),
|
||||
window.contentView != view
|
||||
else { return }
|
||||
|
||||
let duration = animationDuration(view: view, previousView: window.contentView)
|
||||
window.contentView = view
|
||||
|
||||
if window.isVisible && animate {
|
||||
NSAnimationContext.runAnimationGroup({ context in
|
||||
if #available(OSX 10.11, *) {
|
||||
context.allowsImplicitAnimation = true
|
||||
context.duration = duration
|
||||
}
|
||||
else {
|
||||
context.duration = 0
|
||||
}
|
||||
window.layoutIfNeeded()
|
||||
view.isHidden = true
|
||||
}, completionHandler: {
|
||||
view.isHidden = false
|
||||
window.title = item.label
|
||||
})
|
||||
}
|
||||
else {
|
||||
window.title = item.label
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func setPrefView(_ sender: NSToolbarItem) {
|
||||
selectItem(sender, animate: true)
|
||||
}
|
||||
|
||||
// MARK: General panel
|
||||
|
||||
@IBAction func clearRecentSearches(_ sender: Any) {
|
||||
MetadataSearchController.clearRecentSearches()
|
||||
}
|
||||
|
||||
@IBAction func deleteCachedMetadata(_ sender: Any) {
|
||||
MetadataSearchController.deleteCachedMetadata()
|
||||
}
|
||||
|
||||
@IBAction func updateRatingsCountry(_ sender: Any) {
|
||||
MP42Ratings.defaultManager.updateCountry()
|
||||
}
|
||||
|
||||
@objc dynamic var ratingsCountries: [String] { return MP42Ratings.defaultManager.ratingsCountries }
|
||||
|
||||
}
|
||||
@@ -27,10 +27,10 @@ class PresetEditorViewController: SBMovieViewController {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func loadView() {
|
||||
override func viewDidLoad() {
|
||||
self.metadata = preset.metadata
|
||||
|
||||
super.loadView()
|
||||
super.viewDidLoad()
|
||||
|
||||
view.appearance = NSAppearance(named: .aqua)
|
||||
presetTitle.stringValue = preset.title
|
||||
|
||||
@@ -26,10 +26,11 @@ class PresetPrefsViewController: NSViewController, NSTableViewDataSource, NSTabl
|
||||
self.currentRow = 0
|
||||
self.presetManager = PresetManager.shared
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
self.title = NSLocalizedString("Sets", comment: "")
|
||||
}
|
||||
|
||||
override func loadView() {
|
||||
super.loadView()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
observer = NotificationCenter.default.addObserver(forName: presetManager.updateNotification,
|
||||
object: nil,
|
||||
@@ -99,7 +100,6 @@ class PresetPrefsViewController: NSViewController, NSTableViewDataSource, NSTabl
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@IBAction func toggleInfoWindow(_ sender: NSView) {
|
||||
let rowIndex = tableView.row(for: sender)
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// ProgressViewController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 07/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
protocol ProgressViewControllerDelegate : AnyObject {
|
||||
func cancel()
|
||||
}
|
||||
|
||||
class ProgressViewController: NSViewController {
|
||||
|
||||
@IBOutlet var cancelButton: NSButton!
|
||||
@IBOutlet var progressString: NSTextField!
|
||||
@IBOutlet var progressBar: NSProgressIndicator!
|
||||
|
||||
weak var delegate: ProgressViewControllerDelegate?
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// Do view setup here.
|
||||
}
|
||||
|
||||
@IBAction func cancel(_ sender: Any) {
|
||||
delegate?.cancel()
|
||||
cancelButton.isEnabled = false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="ProgressViewController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="cancelButton" destination="HZz-pP-MXs" id="GiP-1r-fc0"/>
|
||||
<outlet property="progressBar" destination="pqx-62-iaO" id="yfl-hJ-JYt"/>
|
||||
<outlet property="progressString" destination="3gK-a2-TtL" id="DUZ-xe-AeN"/>
|
||||
<outlet property="view" destination="OYD-Bw-L9a" id="ogq-w5-tvN"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<view id="OYD-Bw-L9a">
|
||||
<rect key="frame" x="0.0" y="0.0" width="297" height="121"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3gK-a2-TtL">
|
||||
<rect key="frame" x="17" y="84" width="88" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Saving…" id="1QY-aq-f1i">
|
||||
<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>
|
||||
<progressIndicator verticalHuggingPriority="750" fixedFrame="YES" maxValue="100" bezeled="NO" style="bar" translatesAutoresizingMaskIntoConstraints="NO" id="pqx-62-iaO">
|
||||
<rect key="frame" x="18" y="56" width="261" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
</progressIndicator>
|
||||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="HZz-pP-MXs">
|
||||
<rect key="frame" x="201" y="12" width="82" height="32"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="13i-3e-aOA">
|
||||
<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="cancel:" target="-2" id="IMy-Ts-QE7"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<point key="canvasLocation" x="-65" y="-65"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13528" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13528"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
@@ -19,7 +19,6 @@
|
||||
<subviews>
|
||||
<tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="5">
|
||||
<rect key="frame" x="-11" y="-12" width="502" height="279"/>
|
||||
<tabViewItems/>
|
||||
</tabView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
import Cocoa
|
||||
|
||||
@objc(SBChapterViewController) class ChapterViewController : NSViewController, NSTableViewDataSource, NSTableViewDelegate {
|
||||
class ChapterViewController : NSViewController, NSTableViewDataSource, NSTableViewDelegate {
|
||||
|
||||
var track: MP42ChapterTrack {
|
||||
didSet {
|
||||
@@ -22,7 +22,7 @@ import Cocoa
|
||||
return NSNib.Name(rawValue: "ChapterView")
|
||||
}
|
||||
|
||||
@objc init(track: MP42ChapterTrack) {
|
||||
init(track: MP42ChapterTrack) {
|
||||
self.track = track
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
}
|
||||
@@ -31,8 +31,8 @@ import Cocoa
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func loadView() {
|
||||
super.loadView()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
tableView.defaultEditingColumn = 1
|
||||
tableView.doubleAction = #selector(doubleClickAction(_:))
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ import Cocoa
|
||||
|
||||
class MultiSelectViewController : NSViewController {
|
||||
|
||||
@objc var numberOfTracks: UInt = 0
|
||||
var numberOfTracks: UInt = 0
|
||||
@IBOutlet var label: NSTextField!
|
||||
|
||||
override func loadView() {
|
||||
super.loadView()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
if numberOfTracks == 1 {
|
||||
label.stringValue = NSLocalizedString("1 track selected", comment: "")
|
||||
|
||||
@@ -70,9 +70,9 @@ static NSArray<NSArray *> *_mediaKinds;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)loadView
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super loadView];
|
||||
[super viewDidLoad];
|
||||
|
||||
_ratings = MP42Ratings.defaultManager.ratings;
|
||||
|
||||
|
||||
@@ -128,9 +128,9 @@ static NSString *getColorProfileName(uint16_t colorPrimaries,
|
||||
return [NSString stringWithFormat:@"%d-%d-%d", colorPrimaries, transferCharacteristics, matrixCoefficients];
|
||||
}
|
||||
|
||||
- (void)loadView
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super loadView];
|
||||
[super viewDidLoad];
|
||||
|
||||
_mediaTagsController = [[SBMediaTagsController alloc] initWithTrack:track];
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
import Cocoa
|
||||
|
||||
@objc(SBSoundViewController) class SoundViewController : NSViewController {
|
||||
class SoundViewController : NSViewController {
|
||||
|
||||
let track: MP42AudioTrack
|
||||
let file: MP42File
|
||||
@@ -24,7 +24,7 @@ import Cocoa
|
||||
return NSNib.Name(rawValue: "SoundView")
|
||||
}
|
||||
|
||||
@objc init(mp4: MP42File, track: MP42AudioTrack) {
|
||||
init(mp4: MP42File, track: MP42AudioTrack) {
|
||||
self.file = mp4
|
||||
self.track = track
|
||||
self.mediaTagsController = SBMediaTagsController(track: track)
|
||||
@@ -36,8 +36,8 @@ import Cocoa
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func loadView() {
|
||||
super.loadView()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
// Media Tags controls
|
||||
mediaTagsController.view.frame = mediaTagsView.bounds
|
||||
|
||||
+2
-13
@@ -263,29 +263,18 @@
|
||||
NSError * _Nullable error))completionHandler
|
||||
{
|
||||
NSString *extension = url.pathExtension.lowercaseString;
|
||||
MP42File *mp4 = nil;
|
||||
|
||||
if ([extension isEqualToString: @"mp4"] ||
|
||||
[extension isEqualToString: @"m4v"] ||
|
||||
[extension isEqualToString: @"m4a"] ||
|
||||
[extension isEqualToString: @"m4r"] ||
|
||||
[extension isEqualToString: @"m4b"]) {
|
||||
|
||||
mp4 = [[MP42File alloc] initWithURL:url error:NULL];
|
||||
}
|
||||
|
||||
if ([extension isEqualToString: @"mkv"] ||
|
||||
[extension isEqualToString: @"mka"] ||
|
||||
[extension isEqualToString: @"mks"] ||
|
||||
[extension isEqualToString: @"mov"] ||
|
||||
mp4 == nil) {
|
||||
[extension isEqualToString: @"mov"]) {
|
||||
|
||||
NSError *outError = nil;
|
||||
|
||||
SBDocument *doc = [self openUntitledDocumentAndDisplay:displayDocument error:&outError];
|
||||
completionHandler(doc, NO, outError);
|
||||
if (doc) {
|
||||
[doc showImportSheetWithFileURLs:@[url]];
|
||||
[doc.windowControllers.firstObject showImportSheetWithFileURLs:@[url]];
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class MP42File;
|
||||
@class ExpandedTableView;
|
||||
|
||||
@interface SBDocument : NSDocument
|
||||
|
||||
@@ -19,32 +18,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
- (instancetype)initWithMP4:(MP42File *)mp4File error:(NSError * __autoreleasing *)outError;
|
||||
|
||||
@property (nonatomic, weak) IBOutlet ExpandedTableView *tracksTable;
|
||||
@property (nonatomic, strong, nullable) NSWindowController *sheetController;
|
||||
|
||||
- (IBAction)selectFile:(id)sender;
|
||||
- (IBAction)deleteTrack:(id)sender;
|
||||
- (IBAction)sendToQueue:(id)sender;
|
||||
|
||||
- (IBAction)showTrackOffsetSheet:(id)sender;
|
||||
- (IBAction)setTrackOffset:(id)sender;
|
||||
- (IBAction)closeOffsetSheet:(id)sender;
|
||||
|
||||
- (IBAction)setSaveFormat:(NSPopUpButton *)sender;
|
||||
- (IBAction)cancelSaveOperation:(id)sender;
|
||||
- (IBAction)sendToExternalApp:(id)sender;
|
||||
|
||||
- (IBAction)saveAndOptimize:(id)sender;
|
||||
|
||||
- (IBAction)selectMetadataFile:(id)sender;
|
||||
- (IBAction)addChaptersEvery:(id)sender;
|
||||
- (IBAction)iTunesFriendlyTrackGroups:(id)sender;
|
||||
|
||||
- (IBAction)export:(id)sender;
|
||||
|
||||
- (void)reload;
|
||||
- (void)reloadPropertyView;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+43
-814
File diff suppressed because it is too large.
Load diff
@@ -60,8 +60,8 @@ static void *SBOptionsViewContex = &SBOptionsViewContex;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)loadView {
|
||||
[super loadView];
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
|
||||
// Hack to fix crappy anti-aliasing on Yosemite
|
||||
// unfortunately it fixes the checkboxes anti-aliasing,
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// SaveOptions.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 08/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
class SaveOptions: NSViewController {
|
||||
|
||||
@IBOutlet var fileFormat: NSPopUpButton!
|
||||
|
||||
@IBOutlet var _64bit_data: NSButton!
|
||||
@IBOutlet var _64bit_time: NSButton!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
let index = UserDefaults.standard.integer(forKey: "defaultSaveFormat")
|
||||
fileFormat.selectItem(at: index)
|
||||
|
||||
_64bit_data.state = UserDefaults.standard.bool(forKey: "mp464bitOffset") ? .on : .off
|
||||
_64bit_time.state = UserDefaults.standard.bool(forKey: "mp464bitTimes") ? .on : .off
|
||||
}
|
||||
|
||||
override func viewWillDisappear() {
|
||||
super.viewWillDisappear()
|
||||
|
||||
UserDefaults.standard.set(fileFormat.indexOfSelectedItem, forKey: "defaultSaveFormat")
|
||||
UserDefaults.standard.set(_64bit_data.state == .on, forKey: "mp464bitOffset")
|
||||
UserDefaults.standard.set(_64bit_time.state == .on, forKey: "mp464bitTimes")
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="SaveOptions" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="_64bit_data" destination="emp-1S-F7H" id="b8h-TJ-Hf7"/>
|
||||
<outlet property="_64bit_time" destination="3CX-Vp-T0h" id="8cp-ub-tQL"/>
|
||||
<outlet property="fileFormat" destination="kLA-Cm-c6R" id="bPE-OG-Iqz"/>
|
||||
<outlet property="view" destination="MW8-8K-w1S" id="gS9-5h-yIf"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<customView id="MW8-8K-w1S">
|
||||
<rect key="frame" x="0.0" y="0.0" width="388" height="82"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<subviews>
|
||||
<customView verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="4Ry-tR-0w3">
|
||||
<rect key="frame" x="24" y="0.0" width="340" height="82"/>
|
||||
<subviews>
|
||||
<button toolTip="Needed for mp4 larger than 4GB." translatesAutoresizingMaskIntoConstraints="NO" id="emp-1S-F7H">
|
||||
<rect key="frame" x="98" y="28" width="144" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="64 bits chunk offset" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="14x-xv-HKI">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="zba-Ja-Te5">
|
||||
<rect key="frame" x="18" y="29" width="76" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Options:" id="BXP-AU-x3T">
|
||||
<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>
|
||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="kLA-Cm-c6R">
|
||||
<rect key="frame" x="98" y="48" width="225" height="26"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="220" id="nSc-Ly-xDh"/>
|
||||
</constraints>
|
||||
<popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="Xuo-dp-0K0" id="33t-f6-cVS">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" title="OtherViews" autoenablesItems="NO" id="LBi-vr-peO">
|
||||
<items>
|
||||
<menuItem title="Item 1" state="on" id="Xuo-dp-0K0">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="Item 2" tag="1" id="vjJ-5z-7YZ">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="Item 3" tag="2" id="x4x-P4-Pf3">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
</popUpButton>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="XpL-JT-4Ap">
|
||||
<rect key="frame" x="18" y="54" width="76" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="File Format:" id="caN-zU-chS">
|
||||
<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>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="3CX-Vp-T0h">
|
||||
<rect key="frame" x="98" y="8" width="102" height="18"/>
|
||||
<string key="toolTip">Note: don't use this option if you are not sure of what it is doing, it's not needed in almost every case.
|
||||
Enable 64bit timescale and duration support. Normally, it's only needed if a track will be longer than 10 hours.</string>
|
||||
<buttonCell key="cell" type="check" title="64 bits times" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="DCI-a5-K73">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="3CX-Vp-T0h" secondAttribute="bottom" constant="10" id="1GJ-pY-dF2"/>
|
||||
<constraint firstItem="3CX-Vp-T0h" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="emp-1S-F7H" secondAttribute="leading" id="3QO-pI-h1c"/>
|
||||
<constraint firstAttribute="trailing" secondItem="kLA-Cm-c6R" secondAttribute="trailing" constant="20" id="5jk-uv-z5h"/>
|
||||
<constraint firstItem="emp-1S-F7H" firstAttribute="baseline" secondItem="zba-Ja-Te5" secondAttribute="baseline" id="7Ht-Pq-dzg"/>
|
||||
<constraint firstAttribute="trailing" secondItem="3CX-Vp-T0h" secondAttribute="trailing" constant="142" id="9rK-X2-uWr"/>
|
||||
<constraint firstItem="kLA-Cm-c6R" firstAttribute="leading" secondItem="XpL-JT-4Ap" secondAttribute="trailing" constant="8" symbolic="YES" id="Aaf-kz-2vP"/>
|
||||
<constraint firstItem="zba-Ja-Te5" firstAttribute="trailing" secondItem="XpL-JT-4Ap" secondAttribute="trailing" id="J9B-Ay-ffZ"/>
|
||||
<constraint firstItem="XpL-JT-4Ap" firstAttribute="leading" secondItem="4Ry-tR-0w3" secondAttribute="leading" constant="20" id="Lvt-ba-5d8"/>
|
||||
<constraint firstItem="XpL-JT-4Ap" firstAttribute="top" secondItem="4Ry-tR-0w3" secondAttribute="top" constant="11" id="Oa0-2T-0qx"/>
|
||||
<constraint firstItem="zba-Ja-Te5" firstAttribute="width" secondItem="XpL-JT-4Ap" secondAttribute="width" id="RMM-TK-h6J"/>
|
||||
<constraint firstItem="zba-Ja-Te5" firstAttribute="top" secondItem="XpL-JT-4Ap" secondAttribute="bottom" constant="8" id="h9j-De-mnb"/>
|
||||
<constraint firstItem="kLA-Cm-c6R" firstAttribute="baseline" secondItem="XpL-JT-4Ap" secondAttribute="baseline" id="id1-TO-wwz"/>
|
||||
<constraint firstAttribute="trailing" secondItem="emp-1S-F7H" secondAttribute="trailing" constant="100" id="lCH-K0-yN4"/>
|
||||
<constraint firstAttribute="height" constant="82" id="owK-Sa-daJ"/>
|
||||
<constraint firstItem="zba-Ja-Te5" firstAttribute="leading" secondItem="4Ry-tR-0w3" secondAttribute="leading" constant="20" id="qbp-1y-b6U"/>
|
||||
<constraint firstItem="3CX-Vp-T0h" firstAttribute="top" secondItem="emp-1S-F7H" secondAttribute="bottom" constant="6" id="teD-Iz-KKx"/>
|
||||
<constraint firstItem="emp-1S-F7H" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="zba-Ja-Te5" secondAttribute="trailing" constant="8" symbolic="YES" id="vk4-wu-sLE"/>
|
||||
</constraints>
|
||||
</customView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="4Ry-tR-0w3" firstAttribute="top" secondItem="MW8-8K-w1S" secondAttribute="top" id="MMR-FR-hu8"/>
|
||||
<constraint firstItem="4Ry-tR-0w3" firstAttribute="centerX" secondItem="MW8-8K-w1S" secondAttribute="centerX" id="ixL-3p-fAK"/>
|
||||
<constraint firstAttribute="bottom" secondItem="4Ry-tR-0w3" secondAttribute="bottom" id="og4-yI-jBc"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="-19" y="-26"/>
|
||||
</customView>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -27,8 +27,8 @@ class TokensViewController: NSViewController, NSTokenFieldDelegate {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func loadView() {
|
||||
super.loadView()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
tokenField.tokenizingCharacterSet = CharacterSet(charactersIn: "%")
|
||||
tokenField.stringValue = tokens.reduce("", { "\($0)%{\($1)}" })
|
||||
|
||||
@@ -0,0 +1,270 @@
|
||||
//
|
||||
// TracksViewController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 03/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
protocol TracksViewControllerDelegate: AnyObject {
|
||||
func didSelect(tracks: [MP42Track])
|
||||
}
|
||||
|
||||
class TracksViewController: NSViewController, NSTableViewDataSource, NSTableViewDelegate {
|
||||
|
||||
weak var delegate: TracksViewControllerDelegate?
|
||||
|
||||
private let document: SBDocument
|
||||
|
||||
var mp4: MP42File {
|
||||
didSet {
|
||||
reloadData()
|
||||
}
|
||||
}
|
||||
|
||||
@IBOutlet var tracksTable: ExpandedTableView!
|
||||
private let pasteboardType = NSPasteboard.PasteboardType(rawValue: "SublerTableViewDataType")
|
||||
|
||||
private static let languagesMenu: NSMenu = {
|
||||
let menu = NSMenu()
|
||||
menu.autoenablesItems = false
|
||||
|
||||
for title in MP42Languages.defaultManager.localizedExtendedLanguages {
|
||||
menu.addItem(withTitle: title, action: nil, keyEquivalent: "")
|
||||
}
|
||||
|
||||
return menu
|
||||
}()
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
tracksTable.registerForDraggedTypes([pasteboardType])
|
||||
tracksTable.doubleAction = #selector(doubleClickAction)
|
||||
}
|
||||
|
||||
init(document: SBDocument, delegate: TracksViewControllerDelegate) {
|
||||
self.document = document;
|
||||
self.mp4 = document.mp4
|
||||
self.delegate = delegate
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
func reloadData() {
|
||||
tracksTable.reloadData()
|
||||
delegate?.didSelect(tracks: selectedTracks)
|
||||
}
|
||||
|
||||
var selectedTracks: [MP42Track] {
|
||||
return tracksTable != nil ? tracksTable.selectedRowIndexes.compactMap { track(at: $0) } : []
|
||||
}
|
||||
|
||||
// MARK: Delegate
|
||||
|
||||
func tableViewSelectionDidChange(_ notification: Notification) {
|
||||
delegate?.didSelect(tracks: selectedTracks)
|
||||
}
|
||||
|
||||
@IBAction func doubleClickAction(_ sender: NSTableView) {
|
||||
// make sure they clicked a real cell and not a header or empty row
|
||||
if sender.clickedRow >= 1 {
|
||||
let column = sender.tableColumns[sender.clickedColumn]
|
||||
if column.identifier == trackNameColumn {
|
||||
sender.editColumn(sender.clickedColumn, row: sender.clickedRow, with: nil, select: true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Actions
|
||||
|
||||
@IBAction func setTrackEnabled(_ sender: NSButton) {
|
||||
let row = tracksTable.row(for: sender)
|
||||
if let track = track(at: row) {
|
||||
track.isEnabled = sender.state == NSControl.StateValue.on ? true : false
|
||||
document.updateChangeCount(.changeDone)
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func setTrackName(_ sender: NSTextField) {
|
||||
let row = tracksTable.row(for: sender)
|
||||
if let track = track(at: row), track.name != sender.stringValue {
|
||||
track.name = sender.stringValue
|
||||
document.updateChangeCount(.changeDone)
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func setTrackLanguage(_ sender: NSPopUpButton) {
|
||||
let manager = MP42Languages.defaultManager
|
||||
let row = tracksTable.row(for: sender)
|
||||
let index = sender.indexOfSelectedItem
|
||||
var language = sender.stringValue
|
||||
|
||||
if index > 0 && index < manager.localizedExtendedLanguages.count {
|
||||
let localizedLanguage = MP42Languages.defaultManager.localizedExtendedLanguages[sender.indexOfSelectedItem]
|
||||
language = MP42Languages.defaultManager.extendedTag(forLocalizedLang: localizedLanguage)
|
||||
}
|
||||
|
||||
if let track = track(at: row), track.language != language {
|
||||
track.language = language
|
||||
document.updateChangeCount(.changeDone)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Data source
|
||||
|
||||
private let trackIdColumn = NSUserInterfaceItemIdentifier(rawValue: "trackId")
|
||||
private let trackEnabledColumn = NSUserInterfaceItemIdentifier(rawValue: "trackEnabled")
|
||||
private let trackNameColumn = NSUserInterfaceItemIdentifier(rawValue: "trackName")
|
||||
private let trackDurationColumn = NSUserInterfaceItemIdentifier(rawValue: "trackDuration")
|
||||
private let trackLanguageColumn = NSUserInterfaceItemIdentifier(rawValue: "trackLanguage")
|
||||
private let trackInfoColumn = NSUserInterfaceItemIdentifier(rawValue: "trackInfo")
|
||||
|
||||
private let disabledIdCell = NSUserInterfaceItemIdentifier(rawValue: "disabledIdCell")
|
||||
private let disabledFormatCell = NSUserInterfaceItemIdentifier(rawValue: "DisabledFormatCell")
|
||||
|
||||
private func track(at row: Int) -> MP42Track? {
|
||||
return row <= 0 ? nil : mp4.track(at: UInt(row - 1))
|
||||
}
|
||||
|
||||
func numberOfRows(in tableView: NSTableView) -> Int {
|
||||
return mp4.tracks.count + 1
|
||||
}
|
||||
|
||||
func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {
|
||||
|
||||
if let track = track(at: row) {
|
||||
|
||||
switch tableColumn?.identifier {
|
||||
|
||||
case trackIdColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: trackIdColumn, owner:self) as? NSTableCellView
|
||||
cell?.textField?.stringValue = track.trackId == 0 ? NSLocalizedString("na", comment: "") : String(track.trackId)
|
||||
return cell
|
||||
|
||||
case trackEnabledColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: trackEnabledColumn, owner:self) as? CheckBoxCellView
|
||||
cell?.checkboxButton?.state = track.isEnabled ? NSControl.StateValue.on : NSControl.StateValue.off
|
||||
return cell
|
||||
|
||||
case trackNameColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: trackNameColumn, owner:self) as? NSTableCellView
|
||||
cell?.textField?.stringValue = track.name
|
||||
return cell
|
||||
|
||||
case trackDurationColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: trackDurationColumn, owner:self) as? NSTableCellView
|
||||
cell?.textField?.attributedStringValue = StringFromTime(Int64(track.duration), 1000).monospacedAttributedString()
|
||||
return cell
|
||||
|
||||
case trackLanguageColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: trackLanguageColumn, owner:self) as? PopUpCellView
|
||||
|
||||
if (cell?.popUpButton.numberOfItems == 0) {
|
||||
cell?.popUpButton.menu = TracksViewController.languagesMenu.copy() as? NSMenu
|
||||
}
|
||||
|
||||
cell?.popUpButton.selectItem(withTitle: MP42Languages.defaultManager.localizedLang(forExtendedTag: track.language))
|
||||
|
||||
if (cell?.popUpButton.indexOfSelectedItem == -1) {
|
||||
cell?.popUpButton.addItem(withTitle: track.language)
|
||||
cell?.popUpButton.selectItem(withTitle: track.language)
|
||||
}
|
||||
|
||||
cell?.textField?.stringValue = MP42Languages.defaultManager.localizedLang(forExtendedTag: track.language)
|
||||
return cell
|
||||
|
||||
case trackInfoColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: trackInfoColumn, owner:self) as? NSTableCellView
|
||||
cell?.textField?.stringValue = track.formatSummary
|
||||
return cell
|
||||
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
switch tableColumn?.identifier {
|
||||
|
||||
case trackIdColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: disabledIdCell, owner:self) as? NSTableCellView
|
||||
cell?.textField?.stringValue = "-"
|
||||
return cell
|
||||
|
||||
case trackNameColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: trackNameColumn, owner:self) as? NSTableCellView
|
||||
cell?.textField?.stringValue = NSLocalizedString("Metadata", comment: "")
|
||||
return cell
|
||||
|
||||
case trackDurationColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: trackDurationColumn, owner:self) as? NSTableCellView
|
||||
cell?.textField?.attributedStringValue = StringFromTime(Int64(mp4.duration), 1000).monospacedAttributedString()
|
||||
return cell
|
||||
|
||||
case trackLanguageColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: disabledFormatCell, owner:self) as? NSTableCellView
|
||||
cell?.textField?.stringValue = NSLocalizedString("-NA-", comment: "")
|
||||
return cell
|
||||
|
||||
case trackInfoColumn?:
|
||||
let cell = tableView.makeView(withIdentifier: disabledFormatCell, owner:self) as? NSTableCellView
|
||||
cell?.textField?.stringValue = NSLocalizedString("-NA-", comment: "")
|
||||
return cell
|
||||
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Drag & drop
|
||||
|
||||
func tableView(_ tableView: NSTableView,
|
||||
writeRowsWith rowIndexes: IndexSet,
|
||||
to pboard: NSPasteboard) -> Bool {
|
||||
let data: Data = NSKeyedArchiver.archivedData(withRootObject: rowIndexes)
|
||||
pboard.declareTypes([pasteboardType], owner: self)
|
||||
pboard.setData(data, forType: pasteboardType)
|
||||
return true
|
||||
}
|
||||
|
||||
func tableView(_ tableView: NSTableView,
|
||||
validateDrop info: NSDraggingInfo,
|
||||
proposedRow row: Int,
|
||||
proposedDropOperation: NSTableView.DropOperation) -> NSDragOperation {
|
||||
let count = mp4.tracks.count + 1
|
||||
|
||||
if proposedDropOperation == .above
|
||||
{
|
||||
if row < count && row != 0, let track = track(at: row), track.isMuxed == false {
|
||||
return .every
|
||||
}
|
||||
else if row == count {
|
||||
return .every
|
||||
}
|
||||
}
|
||||
return []
|
||||
|
||||
}
|
||||
|
||||
func tableView(_ tableView: NSTableView,
|
||||
acceptDrop info: NSDraggingInfo,
|
||||
row: Int,
|
||||
dropOperation: NSTableView.DropOperation) -> Bool {
|
||||
let data: Data = info.draggingPasteboard().data(forType: pasteboardType)!
|
||||
let rowIndexes: IndexSet = NSKeyedUnarchiver.unarchiveObject(with: data) as! IndexSet
|
||||
|
||||
if let dragRow = rowIndexes.first {
|
||||
mp4.moveTrack(at: UInt(dragRow - 1), to: UInt(row - 1))
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,10 @@
|
||||
//
|
||||
|
||||
#import "SBDocument.h"
|
||||
#import "SBQueueController.h"
|
||||
#import "SBQueueItem.h"
|
||||
#import "SBMovieViewController.h"
|
||||
#import "SBVideoViewController.h"
|
||||
#import "SBMediaTagsController.h"
|
||||
|
||||
#import <MP42Foundation/MP42Ratings.h>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
A90300C81DAE72C4008237D8 /* SBPresetPrefsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A90300CA1DAE72C4008237D8 /* SBPresetPrefsViewController.xib */; };
|
||||
A9067A0C1F3CA4E6008011DC /* MetadataPrefsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9067A0B1F3CA4E6008011DC /* MetadataPrefsViewController.swift */; };
|
||||
A906B5B11E434872007D12B1 /* Queue.sdef in Resources */ = {isa = PBXBuildFile; fileRef = A906B5B01E434872007D12B1 /* Queue.sdef */; };
|
||||
A90B023B10F3290A000416F3 /* Prefs.xib in Resources */ = {isa = PBXBuildFile; fileRef = A90B023910F3290A000416F3 /* Prefs.xib */; };
|
||||
A90B023B10F3290A000416F3 /* PrefsWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A90B023910F3290A000416F3 /* PrefsWindowController.xib */; };
|
||||
A90BC5E31F3A139700F9F3F3 /* MetadataResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90BC5E21F3A139700F9F3F3 /* MetadataResult.swift */; };
|
||||
A90C3E0C1FD16AF200F64532 /* TokensViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90C3E0A1FD16AF200F64532 /* TokensViewController.swift */; };
|
||||
A90CD5C01FD177230070A067 /* TokensViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A90CD5C21FD177230070A067 /* TokensViewController.xib */; };
|
||||
@@ -43,7 +43,8 @@
|
||||
A956CE651F99E5BB00093992 /* ActivityWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A956CE641F99E5BB00093992 /* ActivityWindowController.swift */; };
|
||||
A956CE691F99E93D00093992 /* ButtonToolbarItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = A956CE681F99E93D00093992 /* ButtonToolbarItem.swift */; };
|
||||
A956CE6B1F99EAAD00093992 /* Logger.swift in Sources */ = {isa = PBXBuildFile; fileRef = A956CE6A1F99EAAD00093992 /* Logger.swift */; };
|
||||
A9577CF61F3DC667009181F4 /* Document+Swift.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9577CF51F3DC667009181F4 /* Document+Swift.swift */; };
|
||||
A959001A202AF21800FD8F23 /* ProgressViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9590018202AF21800FD8F23 /* ProgressViewController.swift */; };
|
||||
A959001B202AF21800FD8F23 /* ProgressViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9590019202AF21800FD8F23 /* ProgressViewController.xib */; };
|
||||
A95B8DA91B09F37800F2F152 /* Subler_Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = A95B8DA81B09F37800F2F152 /* Subler_Tests.m */; };
|
||||
A961476313F567E10068F161 /* SBQueueController.m in Sources */ = {isa = PBXBuildFile; fileRef = A961476013F567E10068F161 /* SBQueueController.m */; };
|
||||
A961476713F568210068F161 /* Queue.xib in Resources */ = {isa = PBXBuildFile; fileRef = A961476513F568210068F161 /* Queue.xib */; };
|
||||
@@ -52,6 +53,7 @@
|
||||
A9676A341FB6EAAD00C1E300 /* ItemViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9676A331FB6EAAD00C1E300 /* ItemViewController.swift */; };
|
||||
A96946531BA3F83D0048C004 /* SBMediaTagsController.m in Sources */ = {isa = PBXBuildFile; fileRef = A96946511BA3F83D0048C004 /* SBMediaTagsController.m */; };
|
||||
A9707B9317B139780010F3DB /* Quartz.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD56966E12FAAFA90029FADB /* Quartz.framework */; };
|
||||
A979B3862025C8BF00468362 /* DocumentWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A979B3842025C8BF00468362 /* DocumentWindowController.swift */; };
|
||||
A982D0C0140AB66400B92357 /* SBQueueItem.m in Sources */ = {isa = PBXBuildFile; fileRef = A982D0BF140AB66400B92357 /* SBQueueItem.m */; };
|
||||
A984DB4B0F52D644001A20B2 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A984DB4A0F52D644001A20B2 /* Sparkle.framework */; };
|
||||
A984DB530F52D679001A20B2 /* Sparkle.framework in Copy Files */ = {isa = PBXBuildFile; fileRef = A984DB4A0F52D644001A20B2 /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
|
||||
@@ -66,7 +68,7 @@
|
||||
A99189D11F2F88F700623ED7 /* ChapterSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */; };
|
||||
A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A997B0A91F348AB000974C9C /* MetadataSearchController.swift */; };
|
||||
A998DABF1BA54CFF004D7969 /* SBMediaTagsController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A998DABD1BA54CFF004D7969 /* SBMediaTagsController.xib */; };
|
||||
A99EEA3F12B801AE002367D3 /* SBDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9B46AC012B79E230040517A /* SBDocument.xib */; };
|
||||
A99D23212029CD32002E7F27 /* PrefsWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99D23202029CD32002E7F27 /* PrefsWindow.swift */; };
|
||||
A9A77C4E1F306FA70018023B /* AttributedStyles.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A77C4D1F306FA70018023B /* AttributedStyles.swift */; };
|
||||
A9A8CEF91E43754400BC2AE1 /* SBQueueScriptCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = A9A8CEF81E43754400BC2AE1 /* SBQueueScriptCommand.m */; };
|
||||
A9A91B5D1FB6FBB700250D93 /* ChapterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A91B5C1FB6FBB700250D93 /* ChapterViewController.swift */; };
|
||||
@@ -80,6 +82,7 @@
|
||||
A9AB486817F0AEFD000AA72E /* VideoView.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9AB486217F0AEFD000AA72E /* VideoView.xib */; };
|
||||
A9AE26C01F3B66470041A57D /* SquaredTVArt.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9AE26BD1F3B66470041A57D /* SquaredTVArt.swift */; };
|
||||
A9AE70E11F2F7B3D001CF27C /* MetadataHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9AE70E01F2F7B3D001CF27C /* MetadataHelper.swift */; };
|
||||
A9B1056E2025D9B9009E91FC /* TracksViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9B1056C2025D9B9009E91FC /* TracksViewController.swift */; };
|
||||
A9B46AA412B79BB10040517A /* Subler.icns in Resources */ = {isa = PBXBuildFile; fileRef = A9B46AA312B79BB10040517A /* Subler.icns */; };
|
||||
A9B46ABF12B79D1C0040517A /* SBDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B46ABE12B79D1C0040517A /* SBDocument.m */; };
|
||||
A9B514191EFC12310055A035 /* TheTVDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9B514181EFC12310055A035 /* TheTVDB.swift */; };
|
||||
@@ -90,17 +93,30 @@
|
||||
A9C09C981F99F971007939EE /* ExpandedTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C09C971F99F971007939EE /* ExpandedTableView.swift */; };
|
||||
A9C09C9A1F9A0808007939EE /* EmptyViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C09C991F9A0808007939EE /* EmptyViewController.swift */; };
|
||||
A9C09C9C1F9A08A9007939EE /* MultiSelectViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C09C9B1F9A08A9007939EE /* MultiSelectViewController.swift */; };
|
||||
A9C31E572029A75F00CEF474 /* GeneralPrefsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C31E552029A75F00CEF474 /* GeneralPrefsViewController.swift */; };
|
||||
A9C31E5D2029A79000CEF474 /* GeneralPrefsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C31E5B2029A78F00CEF474 /* GeneralPrefsViewController.xib */; };
|
||||
A9C31E602029A80F00CEF474 /* AdvancedPrefsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C31E5E2029A80F00CEF474 /* AdvancedPrefsViewController.swift */; };
|
||||
A9C31E642029A82200CEF474 /* AdvancedPrefsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C31E622029A82200CEF474 /* AdvancedPrefsViewController.xib */; };
|
||||
A9C31E662029ABC800CEF474 /* PrefsTabViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C31E652029ABC800CEF474 /* PrefsTabViewController.swift */; };
|
||||
A9C5FA7419FA2FEC0051F3FF /* SBActivityWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C5FA7219FA2FEC0051F3FF /* SBActivityWindow.xib */; };
|
||||
A9C828F5195950C3004C4718 /* SBQueuePreferences.m in Sources */ = {isa = PBXBuildFile; fileRef = A9C828F4195950C3004C4718 /* SBQueuePreferences.m */; };
|
||||
A9CBAB1E1F29C083001C26B3 /* MetadataImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */; };
|
||||
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9D4B8651C05BD04007845C4 /* SBChapterSearch.xib */; };
|
||||
A9D64527202CA92400BA172B /* SaveOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D64525202CA92400BA172B /* SaveOptions.swift */; };
|
||||
A9D64528202CA92400BA172B /* SaveOptions.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9D64526202CA92400BA172B /* SaveOptions.xib */; };
|
||||
A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */; };
|
||||
A9DA3B9C1B918D5C00F1E40C /* SBApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = A9DA3B991B918D5C00F1E40C /* SBApplication.m */; };
|
||||
A9DA3BA31B918D6F00F1E40C /* ExceptionAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9DA3BA11B918D6F00F1E40C /* ExceptionAlert.xib */; };
|
||||
A9E932A71F34D31D00B1790B /* ArtworkSelector.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E932A61F34D31D00B1790B /* ArtworkSelector.swift */; };
|
||||
A9E97F141F274F1100DBA586 /* iTunesStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E97F131F274F1100DBA586 /* iTunesStore.swift */; };
|
||||
A9ECA0532029948900D5F30C /* OffsetViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9ECA0512029948900D5F30C /* OffsetViewController.swift */; };
|
||||
A9ECA0572029A10B00D5F30C /* DocumentWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9ECA0592029A10B00D5F30C /* DocumentWindowController.xib */; };
|
||||
A9ECA05A2029A10F00D5F30C /* TracksViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9ECA05C2029A10F00D5F30C /* TracksViewController.xib */; };
|
||||
A9ECA05D2029A11500D5F30C /* DetailsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9ECA05F2029A11500D5F30C /* DetailsViewController.xib */; };
|
||||
A9ECA0602029A13800D5F30C /* OffsetViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9ECA0622029A13800D5F30C /* OffsetViewController.xib */; };
|
||||
A9EEA5F218D65490008B54B4 /* SBOptionsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9EEA5F018D65490008B54B4 /* SBOptionsViewController.m */; };
|
||||
A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */; };
|
||||
A9F2A2662026EACD00C4B69A /* DetailsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9F2A2642026EACD00C4B69A /* DetailsViewController.swift */; };
|
||||
A9F4FF4B1FB708FB004473A8 /* SoundViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9F4FF4A1FB708FB004473A8 /* SoundViewController.swift */; };
|
||||
A9F5820C1DCC861F005F3E92 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A9F5820B1DCC861F005F3E92 /* Assets.xcassets */; };
|
||||
A9F680A81FD06E0200018371 /* OutputPrefsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9F680A61FD06E0200018371 /* OutputPrefsViewController.swift */; };
|
||||
@@ -192,7 +208,6 @@
|
||||
A90CD5C11FD177230070A067 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/TokensViewController.xib; sourceTree = "<group>"; };
|
||||
A90CD5C61FD177280070A067 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/OutputPrefsViewController.xib; sourceTree = "<group>"; };
|
||||
A91B196B1F2B0DCB0008675F /* QueueAction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = QueueAction.swift; path = Classes/QueueAction.swift; sourceTree = "<group>"; };
|
||||
A924A50C1D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SBDocument.xib; sourceTree = "<group>"; };
|
||||
A924A50D1D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Classes/PropertyView/Base.lproj/ChapterView.xib; sourceTree = "<group>"; };
|
||||
A924A50E1D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Classes/PropertyView/Base.lproj/EmptyView.xib; sourceTree = "<group>"; };
|
||||
A924A50F1D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Classes/PropertyView/Base.lproj/MovieView.xib; sourceTree = "<group>"; };
|
||||
@@ -205,7 +220,7 @@
|
||||
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>"; };
|
||||
A924A5191D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/QueueItem.xib; sourceTree = "<group>"; };
|
||||
A924A51A1D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Prefs.xib; sourceTree = "<group>"; };
|
||||
A924A51A1D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/PrefsWindowController.xib; sourceTree = "<group>"; };
|
||||
A924A51B1D4B9E67008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SBActivityWindow.xib; sourceTree = "<group>"; };
|
||||
A924A51C1D4B9E67008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SBMediaTagsController.xib; sourceTree = "<group>"; };
|
||||
A924A51D1D4B9E67008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ExceptionAlert.xib; sourceTree = "<group>"; };
|
||||
@@ -225,7 +240,8 @@
|
||||
A956CE641F99E5BB00093992 /* ActivityWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ActivityWindowController.swift; path = Classes/ActivityWindowController.swift; sourceTree = "<group>"; };
|
||||
A956CE681F99E93D00093992 /* ButtonToolbarItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ButtonToolbarItem.swift; path = Classes/ButtonToolbarItem.swift; sourceTree = "<group>"; };
|
||||
A956CE6A1F99EAAD00093992 /* Logger.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Logger.swift; path = Classes/Logger.swift; sourceTree = "<group>"; };
|
||||
A9577CF51F3DC667009181F4 /* Document+Swift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = "Document+Swift.swift"; path = "Classes/Document+Swift.swift"; sourceTree = "<group>"; };
|
||||
A9590018202AF21800FD8F23 /* ProgressViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ProgressViewController.swift; path = Classes/ProgressViewController.swift; sourceTree = "<group>"; };
|
||||
A9590019202AF21800FD8F23 /* ProgressViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ProgressViewController.xib; path = Classes/ProgressViewController.xib; sourceTree = "<group>"; };
|
||||
A95B8DA41B09F37700F2F152 /* Subler Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Subler Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A95B8DA71B09F37700F2F152 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
A95B8DA81B09F37800F2F152 /* Subler_Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Subler_Tests.m; sourceTree = "<group>"; };
|
||||
@@ -236,6 +252,7 @@
|
||||
A9676A331FB6EAAD00C1E300 /* ItemViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ItemViewController.swift; path = Classes/ItemViewController.swift; sourceTree = "<group>"; };
|
||||
A96946501BA3F83D0048C004 /* SBMediaTagsController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBMediaTagsController.h; path = Classes/SBMediaTagsController.h; sourceTree = "<group>"; };
|
||||
A96946511BA3F83D0048C004 /* SBMediaTagsController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBMediaTagsController.m; path = Classes/SBMediaTagsController.m; sourceTree = "<group>"; };
|
||||
A979B3842025C8BF00468362 /* DocumentWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = DocumentWindowController.swift; path = Classes/DocumentWindowController.swift; sourceTree = "<group>"; };
|
||||
A97BE36E0F73D72E00652CBD /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = /System/Library/Frameworks/QTKit.framework; sourceTree = "<absolute>"; };
|
||||
A982D0BE140AB66400B92357 /* SBQueueItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueueItem.h; path = Classes/SBQueueItem.h; sourceTree = "<group>"; };
|
||||
A982D0BF140AB66400B92357 /* SBQueueItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueueItem.m; path = Classes/SBQueueItem.m; sourceTree = "<group>"; };
|
||||
@@ -252,6 +269,7 @@
|
||||
A99189CC1F2F87EC00623ED7 /* ChapterImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterImporter.swift; path = Classes/MetadataImporters/ChapterImporter.swift; sourceTree = "<group>"; };
|
||||
A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterSearchController.swift; path = Classes/ChapterSearchController.swift; sourceTree = "<group>"; };
|
||||
A997B0A91F348AB000974C9C /* MetadataSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataSearchController.swift; path = Classes/MetadataSearchController.swift; sourceTree = "<group>"; };
|
||||
A99D23202029CD32002E7F27 /* PrefsWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PrefsWindow.swift; path = Classes/PrefsWindow.swift; sourceTree = "<group>"; };
|
||||
A9A77C4D1F306FA70018023B /* AttributedStyles.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AttributedStyles.swift; path = Classes/AttributedStyles.swift; sourceTree = "<group>"; };
|
||||
A9A8CEF71E43754400BC2AE1 /* SBQueueScriptCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueueScriptCommand.h; path = Classes/SBQueueScriptCommand.h; sourceTree = "<group>"; };
|
||||
A9A8CEF81E43754400BC2AE1 /* SBQueueScriptCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueueScriptCommand.m; path = Classes/SBQueueScriptCommand.m; sourceTree = "<group>"; };
|
||||
@@ -264,6 +282,7 @@
|
||||
A9AB485317F0AEAC000AA72E /* SBVideoViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBVideoViewController.m; path = Classes/PropertyView/SBVideoViewController.m; sourceTree = "<group>"; };
|
||||
A9AE26BD1F3B66470041A57D /* SquaredTVArt.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SquaredTVArt.swift; path = Classes/MetadataImporters/SquaredTVArt.swift; sourceTree = "<group>"; };
|
||||
A9AE70E01F2F7B3D001CF27C /* MetadataHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataHelper.swift; path = Classes/MetadataImporters/MetadataHelper.swift; sourceTree = "<group>"; };
|
||||
A9B1056C2025D9B9009E91FC /* TracksViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TracksViewController.swift; path = Classes/TracksViewController.swift; sourceTree = "<group>"; };
|
||||
A9B3411B1679CA3E00E6EE0C /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = System/Library/Frameworks/QTKit.framework; sourceTree = SDKROOT; };
|
||||
A9B46AA312B79BB10040517A /* Subler.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = Subler.icns; path = images/Subler.icns; sourceTree = "<group>"; };
|
||||
A9B46ABD12B79D1C0040517A /* SBDocument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBDocument.h; path = Classes/SBDocument.h; sourceTree = "<group>"; };
|
||||
@@ -272,7 +291,6 @@
|
||||
A9B514181EFC12310055A035 /* TheTVDB.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TheTVDB.swift; path = Classes/MetadataImporters/TheTVDB.swift; sourceTree = "<group>"; };
|
||||
A9BA1ACF1DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/SBPresetPrefsViewController.strings; sourceTree = "<group>"; };
|
||||
A9BA1AD01DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/SBMetadataPrefsViewController.strings; sourceTree = "<group>"; };
|
||||
A9BA1AD11DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/SBDocument.strings; sourceTree = "<group>"; };
|
||||
A9BA1AD21DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = Classes/PropertyView/it.lproj/ChapterView.strings; sourceTree = "<group>"; };
|
||||
A9BA1AD31DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = Classes/PropertyView/it.lproj/EmptyView.strings; sourceTree = "<group>"; };
|
||||
A9BA1AD41DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = Classes/PropertyView/it.lproj/MovieView.strings; sourceTree = "<group>"; };
|
||||
@@ -285,7 +303,7 @@
|
||||
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>"; };
|
||||
A9BA1AE01DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/QueueItem.strings; sourceTree = "<group>"; };
|
||||
A9BA1AE11DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Prefs.strings; sourceTree = "<group>"; };
|
||||
A9BA1AE11DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/PrefsWindowController.strings; sourceTree = "<group>"; };
|
||||
A9BA1AE21DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/SBActivityWindow.strings; sourceTree = "<group>"; };
|
||||
A9BA1AE31DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/SBMediaTagsController.strings; sourceTree = "<group>"; };
|
||||
A9BA1AE41DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/ExceptionAlert.strings; sourceTree = "<group>"; };
|
||||
@@ -299,10 +317,17 @@
|
||||
A9C09C971F99F971007939EE /* ExpandedTableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ExpandedTableView.swift; path = Classes/ExpandedTableView.swift; sourceTree = "<group>"; };
|
||||
A9C09C991F9A0808007939EE /* EmptyViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = EmptyViewController.swift; path = Classes/PropertyView/EmptyViewController.swift; sourceTree = "<group>"; };
|
||||
A9C09C9B1F9A08A9007939EE /* MultiSelectViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MultiSelectViewController.swift; path = Classes/PropertyView/MultiSelectViewController.swift; sourceTree = "<group>"; };
|
||||
A9C31E552029A75F00CEF474 /* GeneralPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = GeneralPrefsViewController.swift; path = Classes/GeneralPrefsViewController.swift; sourceTree = "<group>"; };
|
||||
A9C31E5C2029A78F00CEF474 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GeneralPrefsViewController.xib; sourceTree = "<group>"; };
|
||||
A9C31E5E2029A80F00CEF474 /* AdvancedPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AdvancedPrefsViewController.swift; path = Classes/AdvancedPrefsViewController.swift; sourceTree = "<group>"; };
|
||||
A9C31E632029A82200CEF474 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/AdvancedPrefsViewController.xib; sourceTree = "<group>"; };
|
||||
A9C31E652029ABC800CEF474 /* PrefsTabViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PrefsTabViewController.swift; path = Classes/PrefsTabViewController.swift; sourceTree = "<group>"; };
|
||||
A9C8182C0F74D6E300019BFF /* QuickTime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = /System/Library/Frameworks/QuickTime.framework; sourceTree = "<absolute>"; };
|
||||
A9C828F3195950C3004C4718 /* SBQueuePreferences.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueuePreferences.h; path = Classes/SBQueuePreferences.h; sourceTree = "<group>"; };
|
||||
A9C828F4195950C3004C4718 /* SBQueuePreferences.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueuePreferences.m; path = Classes/SBQueuePreferences.m; sourceTree = "<group>"; };
|
||||
A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataImporter.swift; path = Classes/MetadataImporters/MetadataImporter.swift; sourceTree = "<group>"; };
|
||||
A9D64525202CA92400BA172B /* SaveOptions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SaveOptions.swift; path = Classes/SaveOptions.swift; sourceTree = "<group>"; };
|
||||
A9D64526202CA92400BA172B /* SaveOptions.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = SaveOptions.xib; path = Classes/SaveOptions.xib; sourceTree = "<group>"; };
|
||||
A9D73C5018BF3F1100C6FFA6 /* SBQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueue.h; path = Classes/SBQueue.h; sourceTree = "<group>"; };
|
||||
A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueue.m; path = Classes/SBQueue.m; sourceTree = "<group>"; };
|
||||
A9DA3B991B918D5C00F1E40C /* SBApplication.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBApplication.m; path = Classes/SBApplication.m; sourceTree = "<group>"; };
|
||||
@@ -310,9 +335,15 @@
|
||||
A9E932A61F34D31D00B1790B /* ArtworkSelector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ArtworkSelector.swift; path = Classes/ArtworkSelector.swift; sourceTree = "<group>"; };
|
||||
A9E97F131F274F1100DBA586 /* iTunesStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iTunesStore.swift; path = Classes/MetadataImporters/iTunesStore.swift; sourceTree = "<group>"; };
|
||||
A9E9E5291FB21B4000BCC49D /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/FileImportController.strings; sourceTree = "<group>"; };
|
||||
A9ECA0512029948900D5F30C /* OffsetViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OffsetViewController.swift; path = Classes/OffsetViewController.swift; sourceTree = "<group>"; };
|
||||
A9ECA0582029A10B00D5F30C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/DocumentWindowController.xib; sourceTree = "<group>"; };
|
||||
A9ECA05B2029A10F00D5F30C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/TracksViewController.xib; sourceTree = "<group>"; };
|
||||
A9ECA05E2029A11500D5F30C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/DetailsViewController.xib; sourceTree = "<group>"; };
|
||||
A9ECA0612029A13800D5F30C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/OffsetViewController.xib; sourceTree = "<group>"; };
|
||||
A9ED7B21180067A2008FD3A8 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; };
|
||||
A9EEA5EF18D65490008B54B4 /* SBOptionsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBOptionsViewController.h; path = Classes/SBOptionsViewController.h; sourceTree = "<group>"; };
|
||||
A9EEA5F018D65490008B54B4 /* SBOptionsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBOptionsViewController.m; path = Classes/SBOptionsViewController.m; sourceTree = "<group>"; };
|
||||
A9F2A2642026EACD00C4B69A /* DetailsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = DetailsViewController.swift; path = Classes/DetailsViewController.swift; sourceTree = "<group>"; };
|
||||
A9F4FF4A1FB708FB004473A8 /* SoundViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SoundViewController.swift; path = Classes/PropertyView/SoundViewController.swift; sourceTree = "<group>"; };
|
||||
A9F5820B1DCC861F005F3E92 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
A9F680A61FD06E0200018371 /* OutputPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OutputPrefsViewController.swift; path = Classes/OutputPrefsViewController.swift; sourceTree = "<group>"; };
|
||||
@@ -482,7 +513,11 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A92ECCE21F49984C0063BFBD /* PrefsWindowController.swift */,
|
||||
A90B023910F3290A000416F3 /* Prefs.xib */,
|
||||
A90B023910F3290A000416F3 /* PrefsWindowController.xib */,
|
||||
A9C31E552029A75F00CEF474 /* GeneralPrefsViewController.swift */,
|
||||
A9C31E5B2029A78F00CEF474 /* GeneralPrefsViewController.xib */,
|
||||
A9C31E5E2029A80F00CEF474 /* AdvancedPrefsViewController.swift */,
|
||||
A9C31E622029A82200CEF474 /* AdvancedPrefsViewController.xib */,
|
||||
A944E5911F498FC4002E43F6 /* PresetPrefsViewController.swift */,
|
||||
A90300CA1DAE72C4008237D8 /* SBPresetPrefsViewController.xib */,
|
||||
A9067A0B1F3CA4E6008011DC /* MetadataPrefsViewController.swift */,
|
||||
@@ -491,6 +526,8 @@
|
||||
A90CD5C71FD177280070A067 /* OutputPrefsViewController.xib */,
|
||||
A90C3E0A1FD16AF200F64532 /* TokensViewController.swift */,
|
||||
A90CD5C21FD177230070A067 /* TokensViewController.xib */,
|
||||
A9C31E652029ABC800CEF474 /* PrefsTabViewController.swift */,
|
||||
A99D23202029CD32002E7F27 /* PrefsWindow.swift */,
|
||||
);
|
||||
name = Preferences;
|
||||
sourceTree = "<group>";
|
||||
@@ -570,8 +607,18 @@
|
||||
children = (
|
||||
A9B46ABD12B79D1C0040517A /* SBDocument.h */,
|
||||
A9B46ABE12B79D1C0040517A /* SBDocument.m */,
|
||||
A9577CF51F3DC667009181F4 /* Document+Swift.swift */,
|
||||
A9B46AC012B79E230040517A /* SBDocument.xib */,
|
||||
A979B3842025C8BF00468362 /* DocumentWindowController.swift */,
|
||||
A9ECA0592029A10B00D5F30C /* DocumentWindowController.xib */,
|
||||
A9B1056C2025D9B9009E91FC /* TracksViewController.swift */,
|
||||
A9ECA05C2029A10F00D5F30C /* TracksViewController.xib */,
|
||||
A9F2A2642026EACD00C4B69A /* DetailsViewController.swift */,
|
||||
A9ECA05F2029A11500D5F30C /* DetailsViewController.xib */,
|
||||
A9ECA0512029948900D5F30C /* OffsetViewController.swift */,
|
||||
A9ECA0622029A13800D5F30C /* OffsetViewController.xib */,
|
||||
A9590018202AF21800FD8F23 /* ProgressViewController.swift */,
|
||||
A9590019202AF21800FD8F23 /* ProgressViewController.xib */,
|
||||
A9D64525202CA92400BA172B /* SaveOptions.swift */,
|
||||
A9D64526202CA92400BA172B /* SaveOptions.xib */,
|
||||
A962D9ED1F8B7F9F00802EEF /* FileImportController.swift */,
|
||||
A93105351F9758EC00605146 /* FileImportController.xib */,
|
||||
A9E932A61F34D31D00B1790B /* ArtworkSelector.swift */,
|
||||
@@ -748,11 +795,12 @@
|
||||
files = (
|
||||
A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */,
|
||||
A9AB486617F0AEFD000AA72E /* MovieView.xib in Resources */,
|
||||
A9C31E5D2029A79000CEF474 /* GeneralPrefsViewController.xib in Resources */,
|
||||
8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */,
|
||||
A9ECA05A2029A10F00D5F30C /* TracksViewController.xib in Resources */,
|
||||
A9AB486717F0AEFD000AA72E /* SoundView.xib in Resources */,
|
||||
A9F5820C1DCC861F005F3E92 /* Assets.xcassets in Resources */,
|
||||
8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */,
|
||||
A99EEA3F12B801AE002367D3 /* SBDocument.xib in Resources */,
|
||||
A906B5B11E434872007D12B1 /* Queue.sdef in Resources */,
|
||||
A93105391F9758EC00605146 /* FileImportController.xib in Resources */,
|
||||
A9AB486517F0AEFD000AA72E /* EmptyView.xib in Resources */,
|
||||
@@ -761,24 +809,30 @@
|
||||
A984DB740F52DD4B001A20B2 /* dsa_pub.pem in Resources */,
|
||||
A9C5FA7419FA2FEC0051F3FF /* SBActivityWindow.xib in Resources */,
|
||||
A9DA3BA31B918D6F00F1E40C /* ExceptionAlert.xib in Resources */,
|
||||
A90B023B10F3290A000416F3 /* Prefs.xib in Resources */,
|
||||
A90B023B10F3290A000416F3 /* PrefsWindowController.xib in Resources */,
|
||||
A9AB486417F0AEFD000AA72E /* ChapterView.xib in Resources */,
|
||||
A9AB486817F0AEFD000AA72E /* VideoView.xib in Resources */,
|
||||
A9B46AA412B79BB10040517A /* Subler.icns in Resources */,
|
||||
CD71FEA612F1B62600F0A98D /* MetadataSearch.xib in Resources */,
|
||||
A90CD5C01FD177230070A067 /* TokensViewController.xib in Resources */,
|
||||
A959001B202AF21800FD8F23 /* ProgressViewController.xib in Resources */,
|
||||
CD4E6E5D12F744210095C84F /* ArtworkSelector.xib in Resources */,
|
||||
61CEC0CE1E7569E4000FECC1 /* MultiSelectView.xib in Resources */,
|
||||
A9BC410818D9ABC000F8C92C /* QueueItem.xib in Resources */,
|
||||
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */,
|
||||
A9C31E642029A82200CEF474 /* AdvancedPrefsViewController.xib in Resources */,
|
||||
A998DABF1BA54CFF004D7969 /* SBMediaTagsController.xib in Resources */,
|
||||
A9ECA0602029A13800D5F30C /* OffsetViewController.xib in Resources */,
|
||||
A961476713F568210068F161 /* Queue.xib in Resources */,
|
||||
A9BA1AF31DBF7DD800FD0B38 /* Localizable.strings in Resources */,
|
||||
A9ECA0572029A10B00D5F30C /* DocumentWindowController.xib in Resources */,
|
||||
CDE8E452174CBBD4009410B5 /* iTunesStores.json in Resources */,
|
||||
A924A51E1D4B9E93008301A7 /* SBMetadataPrefsViewController.xib in Resources */,
|
||||
A92BBABE1F5584EA007EA182 /* PresetEditorViewController.xib in Resources */,
|
||||
A90CD5C51FD177280070A067 /* OutputPrefsViewController.xib in Resources */,
|
||||
A9D64528202CA92400BA172B /* SaveOptions.xib in Resources */,
|
||||
A94A6A591ED1C5CC00049F7D /* ParseFilename in Resources */,
|
||||
A9ECA05D2029A11500D5F30C /* DetailsViewController.xib in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -797,6 +851,7 @@
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A959001A202AF21800FD8F23 /* ProgressViewController.swift in Sources */,
|
||||
8D15AC320486D014006FF6A4 /* main.m in Sources */,
|
||||
A9676A341FB6EAAD00C1E300 /* ItemViewController.swift in Sources */,
|
||||
A90C3E0C1FD16AF200F64532 /* TokensViewController.swift in Sources */,
|
||||
@@ -807,12 +862,14 @@
|
||||
A98D98461F0280CB00A77ABC /* TheMovieDB.swift in Sources */,
|
||||
A98D98481F02820F00A77ABC /* TheMovieDBService.swift in Sources */,
|
||||
A962D9EE1F8B7F9F00802EEF /* FileImportController.swift in Sources */,
|
||||
A9577CF61F3DC667009181F4 /* Document+Swift.swift in Sources */,
|
||||
A9D64527202CA92400BA172B /* SaveOptions.swift in Sources */,
|
||||
A9859ACE1F4B43CC00022828 /* QueuePreset.swift in Sources */,
|
||||
A9F2A2662026EACD00C4B69A /* DetailsViewController.swift in Sources */,
|
||||
A9915AC31F4B293B003C57D1 /* PresetManager.swift in Sources */,
|
||||
A90BC5E31F3A139700F9F3F3 /* MetadataResult.swift in Sources */,
|
||||
A99189CD1F2F87EC00623ED7 /* ChapterImporter.swift in Sources */,
|
||||
A9AB484917F0AEA2000AA72E /* SBAppDelegate.m in Sources */,
|
||||
A99D23212029CD32002E7F27 /* PrefsWindow.swift in Sources */,
|
||||
A9915ABF1F4B26CF003C57D1 /* MetadataPreset.swift in Sources */,
|
||||
A9F680A81FD06E0200018371 /* OutputPrefsViewController.swift in Sources */,
|
||||
A900CE3E1F3ACF9700CCA08E /* MetadataResultMap.swift in Sources */,
|
||||
@@ -824,6 +881,7 @@
|
||||
A90057BC1F99E20B00FA4ED1 /* CheckBoxCellView.swift in Sources */,
|
||||
A9433A911F2F5D8A00BB38CA /* ChapterDB.swift in Sources */,
|
||||
A90057BE1F99E2D800FA4ED1 /* TokenFieldCell.swift in Sources */,
|
||||
A9ECA0532029948900D5F30C /* OffsetViewController.swift in Sources */,
|
||||
A9395E351F8B9ACA004C402B /* MP42FileAdditions.swift in Sources */,
|
||||
A9A8CEF91E43754400BC2AE1 /* SBQueueScriptCommand.m in Sources */,
|
||||
A9C09C9A1F9A0808007939EE /* EmptyViewController.swift in Sources */,
|
||||
@@ -835,11 +893,16 @@
|
||||
A956CE6B1F99EAAD00093992 /* Logger.swift in Sources */,
|
||||
A9C828F5195950C3004C4718 /* SBQueuePreferences.m in Sources */,
|
||||
A956CE691F99E93D00093992 /* ButtonToolbarItem.swift in Sources */,
|
||||
A9C31E572029A75F00CEF474 /* GeneralPrefsViewController.swift in Sources */,
|
||||
A9AE26C01F3B66470041A57D /* SquaredTVArt.swift in Sources */,
|
||||
A9B1056E2025D9B9009E91FC /* TracksViewController.swift in Sources */,
|
||||
A9B514191EFC12310055A035 /* TheTVDB.swift in Sources */,
|
||||
A9C31E602029A80F00CEF474 /* AdvancedPrefsViewController.swift in Sources */,
|
||||
A979B3862025C8BF00468362 /* DocumentWindowController.swift in Sources */,
|
||||
A9067A0C1F3CA4E6008011DC /* MetadataPrefsViewController.swift in Sources */,
|
||||
A9DA3B9C1B918D5C00F1E40C /* SBApplication.m in Sources */,
|
||||
A9CBAB1E1F29C083001C26B3 /* MetadataImporter.swift in Sources */,
|
||||
A9C31E662029ABC800CEF474 /* PrefsTabViewController.swift in Sources */,
|
||||
A92BBAB41F557CC0007EA182 /* PresetEditorViewController.swift in Sources */,
|
||||
A9FC6FF61EF2E3280034CCED /* TheTVDBService.swift in Sources */,
|
||||
A961476313F567E10068F161 /* SBQueueController.m in Sources */,
|
||||
@@ -931,13 +994,13 @@
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A90B023910F3290A000416F3 /* Prefs.xib */ = {
|
||||
A90B023910F3290A000416F3 /* PrefsWindowController.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A924A51A1D4B9E66008301A7 /* Base */,
|
||||
A9BA1AE11DBF773700FD0B38 /* it */,
|
||||
);
|
||||
name = Prefs.xib;
|
||||
name = PrefsWindowController.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A90CD5C21FD177230070A067 /* TokensViewController.xib */ = {
|
||||
@@ -1049,15 +1112,6 @@
|
||||
name = VideoView.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9B46AC012B79E230040517A /* SBDocument.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A924A50C1D4B9E66008301A7 /* Base */,
|
||||
A9BA1AD11DBF773600FD0B38 /* it */,
|
||||
);
|
||||
name = SBDocument.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9BA1AF01DBF7DD700FD0B38 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
@@ -1083,6 +1137,22 @@
|
||||
name = QueueItem.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9C31E5B2029A78F00CEF474 /* GeneralPrefsViewController.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A9C31E5C2029A78F00CEF474 /* Base */,
|
||||
);
|
||||
name = GeneralPrefsViewController.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9C31E622029A82200CEF474 /* AdvancedPrefsViewController.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A9C31E632029A82200CEF474 /* Base */,
|
||||
);
|
||||
name = AdvancedPrefsViewController.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9C5FA7219FA2FEC0051F3FF /* SBActivityWindow.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
@@ -1110,6 +1180,42 @@
|
||||
name = ExceptionAlert.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9ECA0592029A10B00D5F30C /* DocumentWindowController.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A9ECA0582029A10B00D5F30C /* Base */,
|
||||
);
|
||||
name = DocumentWindowController.xib;
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9ECA05C2029A10F00D5F30C /* TracksViewController.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A9ECA05B2029A10F00D5F30C /* Base */,
|
||||
);
|
||||
name = TracksViewController.xib;
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9ECA05F2029A11500D5F30C /* DetailsViewController.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A9ECA05E2029A11500D5F30C /* Base */,
|
||||
);
|
||||
name = DetailsViewController.xib;
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9ECA0622029A13800D5F30C /* OffsetViewController.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A9ECA0612029A13800D5F30C /* Base */,
|
||||
);
|
||||
name = OffsetViewController.xib;
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
|
||||
File renamed without changes.
@@ -1,141 +0,0 @@
|
||||
/* Class = "NSMenuItem"; title = "Insert a chapter every"; ObjectID = "1iZ-j6-1c7"; */
|
||||
"1iZ-j6-1c7.title" = "Inserisci un capitolo ogni";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "2 minutes"; ObjectID = "5Ea-m5-m0B"; */
|
||||
"5Ea-m5-m0B.title" = "2 minuti";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "15 minutes"; ObjectID = "6fn-uW-2KI"; */
|
||||
"6fn-uW-2KI.title" = "15 minuti";
|
||||
|
||||
/* Class = "NSTableView"; ibExternalAccessibilityDescription = "Tracks"; ObjectID = "100031"; */
|
||||
"100031.ibExternalAccessibilityDescription" = "Tracce";
|
||||
|
||||
/* Class = "NSTableColumn"; headerCell.title = "Name"; ObjectID = "100034"; */
|
||||
"100034.headerCell.title" = "Nome";
|
||||
|
||||
/* Class = "NSTableColumn"; headerCell.title = "Format"; ObjectID = "100040"; */
|
||||
"100040.headerCell.title" = "Formato";
|
||||
|
||||
/* Class = "NSTableColumn"; headerCell.title = "Duration"; ObjectID = "100042"; */
|
||||
"100042.headerCell.title" = "Durata";
|
||||
|
||||
/* Class = "NSTableColumn"; headerCell.title = "Language"; ObjectID = "100044"; */
|
||||
"100044.headerCell.title" = "Lingua";
|
||||
|
||||
/* Class = "NSWindow"; title = "Window"; ObjectID = "100175"; */
|
||||
"100175.title" = "Finestra";
|
||||
|
||||
/* Class = "NSTextFieldCell"; title = "Optimizing…"; ObjectID = "100178"; */
|
||||
"100178.title" = "Ottimizzo…";
|
||||
|
||||
/* Class = "NSButton"; ibShadowedToolTip = "Needed for mp4 larger than 4GB."; ObjectID = "100188"; */
|
||||
"100188.ibShadowedToolTip" = "Necessario per mp4 più grandi di 4GB.";
|
||||
|
||||
/* Class = "NSButton"; ibShadowedToolTip = "Note: don't use this option if you are not sure of what it is doing, it's not needed in almost every case.\nEnable 64bit timescale and duration support. Normally, it's only needed if a track will be longer than 10 hours."; ObjectID = "100190"; */
|
||||
"100190.ibShadowedToolTip" = "Nota: non usare questa opzione se non sei sicuro della sua funzione, non è quasi mai necessaria.\nAttiva la scala del tempo a 64bit. Normalmente è necessaria solo se una traccia ha una durata maggiore di 10 ore.";
|
||||
|
||||
/* Class = "NSTextFieldCell"; title = "File Format:"; ObjectID = "100222"; */
|
||||
"100222.title" = "Formato File:";
|
||||
|
||||
/* Class = "NSTextFieldCell"; title = "Options:"; ObjectID = "100224"; */
|
||||
"100224.title" = "Opzioni:";
|
||||
|
||||
/* Class = "NSTableColumn"; headerCell.title = "Enabled"; ObjectID = "100244"; */
|
||||
"100244.headerCell.title" = "Abilitato";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "100253"; */
|
||||
"100253.title" = "Annulla";
|
||||
|
||||
/* Class = "NSTextFieldCell"; title = "ms"; ObjectID = "100278"; */
|
||||
"100278.title" = "ms";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "100281"; */
|
||||
"100281.title" = "Annulla";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "OK"; ObjectID = "100282"; */
|
||||
"100282.title" = "OK";
|
||||
|
||||
/* Class = "NSToolbarItem"; label = "Send to Queue"; ObjectID = "APi-CJ-dh2"; */
|
||||
"APi-CJ-dh2.label" = "Metti in coda";
|
||||
|
||||
/* Class = "NSToolbarItem"; paletteLabel = "Send to Queue"; ObjectID = "APi-CJ-dh2"; */
|
||||
"APi-CJ-dh2.paletteLabel" = "Metti in coda";
|
||||
|
||||
/* Class = "NSToolbarItem"; toolTip = "Send the current document to the queue"; ObjectID = "APi-CJ-dh2"; */
|
||||
"APi-CJ-dh2.toolTip" = "Mette il documento corrente in coda";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "5 minutes"; ObjectID = "B8x-gu-3N5"; */
|
||||
"B8x-gu-3N5.title" = "5 minuti";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "Organize alternate groups"; ObjectID = "BDw-rr-q41"; */
|
||||
"BDw-rr-q41.title" = "Organizza i gruppi di alternative";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "Fix audio fallbacks"; ObjectID = "ErE-rx-lEt"; */
|
||||
"ErE-rx-lEt.title" = "Correggi gli audio di ricaduta";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "30 minutes"; ObjectID = "Eyp-ad-KGL"; */
|
||||
"Eyp-ad-KGL.title" = "30 minuti";
|
||||
|
||||
/* Class = "NSToolbarItem"; label = "Search Metadata"; ObjectID = "Q2q-Vv-Qt7"; */
|
||||
"Q2q-Vv-Qt7.label" = "Cerca Metadata";
|
||||
|
||||
/* Class = "NSToolbarItem"; paletteLabel = "Search Metadata"; ObjectID = "Q2q-Vv-Qt7"; */
|
||||
"Q2q-Vv-Qt7.paletteLabel" = "Cerca Metadata";
|
||||
|
||||
/* Class = "NSToolbarItem"; toolTip = "Search metadata on the web"; ObjectID = "Q2q-Vv-Qt7"; */
|
||||
"Q2q-Vv-Qt7.toolTip" = "Cerca metadata online";
|
||||
|
||||
/* Class = "NSMenu"; title = "Insert a chapter every"; ObjectID = "QKs-0o-K7h"; */
|
||||
"QKs-0o-K7h.title" = "Inserisci un capitolo ogni";
|
||||
|
||||
/* Class = "NSToolbarItem"; label = "Delete Track"; ObjectID = "S3Y-pp-4q3"; */
|
||||
"S3Y-pp-4q3.label" = "Elimina traccia";
|
||||
|
||||
/* Class = "NSToolbarItem"; paletteLabel = "Delete Track"; ObjectID = "S3Y-pp-4q3"; */
|
||||
"S3Y-pp-4q3.paletteLabel" = "Elimina traccia";
|
||||
|
||||
/* Class = "NSToolbarItem"; toolTip = "Delete the selected track"; ObjectID = "S3Y-pp-4q3"; */
|
||||
"S3Y-pp-4q3.toolTip" = "Elimina la traccia selezionata";
|
||||
|
||||
/* Class = "NSToolbarItem"; label = "Search Chapters"; ObjectID = "Srh-TP-1hf"; */
|
||||
"Srh-TP-1hf.label" = "Cerca capitoli";
|
||||
|
||||
/* Class = "NSToolbarItem"; paletteLabel = "Search Chapters"; ObjectID = "Srh-TP-1hf"; */
|
||||
"Srh-TP-1hf.paletteLabel" = "Cerca capitoli";
|
||||
|
||||
/* Class = "NSToolbarItem"; toolTip = "Search chapters on the web"; ObjectID = "Srh-TP-1hf"; */
|
||||
"Srh-TP-1hf.toolTip" = "Cerca capitoli online";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "20 minutes"; ObjectID = "U8I-6S-SEX"; */
|
||||
"U8I-6S-SEX.title" = "20 minuti";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "10 minutes"; ObjectID = "WtI-hr-S0q"; */
|
||||
"WtI-hr-S0q.title" = "10 minuti";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "Clear tracks names"; ObjectID = "fRN-MT-g2r"; */
|
||||
"fRN-MT-g2r.title" = "Cancella i nomi delle tracce";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "1 minute"; ObjectID = "lrb-Zt-fw3"; */
|
||||
"lrb-Zt-fw3.title" = "1 minuto";
|
||||
|
||||
/* Class = "NSButton"; ibExternalAccessibilityDescription = "Enabled"; ObjectID = "mPW-kC-RQT"; */
|
||||
"mPW-kC-RQT.ibExternalAccessibilityDescription" = "Abilitato";
|
||||
|
||||
/* Class = "NSButton"; ibShadowedToolTip = "Enable or disable the track"; ObjectID = "mPW-kC-RQT"; */
|
||||
"mPW-kC-RQT.ibShadowedToolTip" = "Abilita o disabilita la traccia";
|
||||
|
||||
/* Class = "NSToolbarItem"; label = "Import"; ObjectID = "q3d-mv-KiV"; */
|
||||
"q3d-mv-KiV.label" = "Importa";
|
||||
|
||||
/* Class = "NSToolbarItem"; paletteLabel = "Import"; ObjectID = "q3d-mv-KiV"; */
|
||||
"q3d-mv-KiV.paletteLabel" = "Importa";
|
||||
|
||||
/* Class = "NSToolbarItem"; toolTip = "Import tracks from external files"; ObjectID = "q3d-mv-KiV"; */
|
||||
"q3d-mv-KiV.toolTip" = "Importa le tracce da un file esterno";
|
||||
|
||||
/* Class = "NSToolbarItem"; label = "Action"; ObjectID = "zUI-mH-Ex4"; */
|
||||
"zUI-mH-Ex4.label" = "Azione";
|
||||
|
||||
/* Class = "NSToolbarItem"; paletteLabel = "Action"; ObjectID = "zUI-mH-Ex4"; */
|
||||
"zUI-mH-Ex4.paletteLabel" = "Azione";
|
||||
|
||||
Reference in new issue
Block a user