CocoaSplit/CapturePlugins/CSTimeCapturePlugin/CSElapsedTimeCaptureViewController.xib
Zakk 1fe7acddd0 Store the start time of the main stream (when Stream is clicked).
Add a flag to the elapsed time source that uses the latest stream start as the start time of the timer
2018-04-15 22:45:00 -04:00

143 lines
12 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14109" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14109"/>
<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="CSElapsedTimeCaptureViewController">
<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="403" height="144"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<datePicker verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="TPj-6z-FbI">
<rect key="frame" x="65" y="124" width="174" height="22"/>
<datePickerCell key="cell" controlSize="small" borderStyle="bezel" alignment="left" id="Ere-4M-0ee">
<font key="font" metaFont="smallSystem"/>
<date key="date" timeIntervalSinceReferenceDate="-595929600">
<!--1982-02-12 16:00:00 +0000-->
</date>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<datePickerElements key="datePickerElements" year="YES" month="YES" day="YES" hour="YES" minute="YES" second="YES"/>
</datePickerCell>
<connections>
<binding destination="2L5-3h-3sg" name="value" keyPath="selection.startDate" id="IGg-x8-Phw"/>
</connections>
</datePicker>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="GMq-ek-bfR">
<rect key="frame" x="-2" y="127" width="61" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Start From" id="sfd-yy-9tE">
<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>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="qs8-pn-0vv">
<rect key="frame" x="240" y="119" width="85" height="28"/>
<constraints>
<constraint firstAttribute="width" constant="75" id="5H2-VV-LUA"/>
</constraints>
<buttonCell key="cell" type="push" title="Set to Now" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="ocA-jK-9ll">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<action selector="resetTime:" target="-2" id="CZK-hZ-tSF"/>
</connections>
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="lXh-Ap-dHY">
<rect key="frame" x="-3" y="99" width="136" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="14" id="Y24-Qs-Dqf"/>
</constraints>
<buttonCell key="cell" type="check" title="Use stream start time" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="lHR-GB-cjA">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<binding destination="2L5-3h-3sg" name="value" keyPath="selection.useStreamStart" id="Dt6-L8-hu7"/>
</connections>
</button>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ddb-qn-S6e">
<rect key="frame" x="-2" y="75" width="42" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Format" id="lVw-JU-IHT">
<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 verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="x3b-Bq-Yz5">
<rect key="frame" x="65" y="75" width="172" height="19"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="NuI-K3-2wO">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<connections>
<binding destination="2L5-3h-3sg" name="value" keyPath="selection.format" id="L0Q-hE-Pwz"/>
</connections>
</textField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="PKu-wE-q8G">
<rect key="frame" x="-5" y="43" width="80" height="28"/>
<constraints>
<constraint firstAttribute="width" constant="70" id="uUa-Aq-7kZ"/>
</constraints>
<buttonCell key="cell" type="push" title="Pause" alternateTitle="Go!" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="4fI-fF-Sz0">
<behavior key="behavior" pushIn="YES" changeContents="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<binding destination="2L5-3h-3sg" name="value" keyPath="selection.paused" id="cWk-CW-3eo"/>
</connections>
</button>
<button translatesAutoresizingMaskIntoConstraints="NO" id="1oh-z2-cag">
<rect key="frame" x="-3" y="4" width="149" height="63"/>
<buttonCell key="cell" type="check" title="Reset when brought live" bezelStyle="regularSquare" imagePosition="right" controlSize="small" state="on" inset="2" id="lUb-D4-Us9">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<binding destination="2L5-3h-3sg" name="value" keyPath="selection.restartWhenLive" id="NPO-4b-17A"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="TPj-6z-FbI" firstAttribute="leading" secondItem="x3b-Bq-Yz5" secondAttribute="leading" id="04C-wJ-ZTC"/>
<constraint firstItem="TPj-6z-FbI" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" id="1t6-zF-7sG"/>
<constraint firstItem="lXh-Ap-dHY" firstAttribute="top" secondItem="TPj-6z-FbI" secondAttribute="bottom" constant="8" symbolic="YES" id="3RH-xG-DwI"/>
<constraint firstItem="TPj-6z-FbI" firstAttribute="leading" secondItem="GMq-ek-bfR" secondAttribute="trailing" constant="8" symbolic="YES" id="6nt-q1-kAk"/>
<constraint firstItem="x3b-Bq-Yz5" firstAttribute="leading" secondItem="ddb-qn-S6e" secondAttribute="trailing" constant="27" id="9wT-tb-KzS"/>
<constraint firstAttribute="trailing" secondItem="qs8-pn-0vv" secondAttribute="trailing" constant="83" id="C8c-AP-Xl3"/>
<constraint firstItem="qs8-pn-0vv" firstAttribute="leading" secondItem="TPj-6z-FbI" secondAttribute="trailing" constant="8" symbolic="YES" id="FMf-Uh-oeC"/>
<constraint firstItem="PKu-wE-q8G" firstAttribute="top" secondItem="ddb-qn-S6e" secondAttribute="bottom" constant="8" symbolic="YES" id="H50-ln-P97"/>
<constraint firstItem="GMq-ek-bfR" firstAttribute="baseline" secondItem="TPj-6z-FbI" secondAttribute="baseline" id="J3n-tu-wrM"/>
<constraint firstItem="x3b-Bq-Yz5" firstAttribute="top" secondItem="lXh-Ap-dHY" secondAttribute="bottom" constant="8" symbolic="YES" id="KUl-D5-oSY"/>
<constraint firstItem="GMq-ek-bfR" firstAttribute="leading" secondItem="lXh-Ap-dHY" secondAttribute="leading" id="LAU-lI-LI1"/>
<constraint firstItem="TPj-6z-FbI" firstAttribute="baseline" secondItem="qs8-pn-0vv" secondAttribute="baseline" id="Mb6-QX-fMU"/>
<constraint firstItem="lXh-Ap-dHY" firstAttribute="leading" secondItem="ddb-qn-S6e" secondAttribute="leading" id="QgH-pb-db0"/>
<constraint firstItem="ddb-qn-S6e" firstAttribute="leading" secondItem="PKu-wE-q8G" secondAttribute="leading" id="YUd-bI-Fur"/>
<constraint firstItem="PKu-wE-q8G" firstAttribute="top" secondItem="x3b-Bq-Yz5" secondAttribute="bottom" constant="8" symbolic="YES" id="Yad-48-IUv"/>
<constraint firstItem="GMq-ek-bfR" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" id="eIp-05-l0W"/>
<constraint firstItem="PKu-wE-q8G" firstAttribute="leading" secondItem="1oh-z2-cag" secondAttribute="leading" id="fG4-I9-vf8"/>
<constraint firstItem="TPj-6z-FbI" firstAttribute="trailing" secondItem="x3b-Bq-Yz5" secondAttribute="trailing" id="kh4-bn-XyB"/>
<constraint firstAttribute="bottom" secondItem="1oh-z2-cag" secondAttribute="bottom" constant="7" id="vIm-PK-Kzx"/>
<constraint firstItem="PKu-wE-q8G" firstAttribute="baseline" secondItem="1oh-z2-cag" secondAttribute="firstBaseline" id="w4g-0o-9JF"/>
</constraints>
<point key="canvasLocation" x="-16.5" y="213"/>
</customView>
<objectController id="2L5-3h-3sg">
<connections>
<binding destination="-2" name="contentObject" keyPath="self.captureObj" id="Dej-uW-cGf"/>
</connections>
</objectController>
</objects>
</document>