Cosmetics.

This commit is contained in:
Damiano Galassi committed 2016-02-18 12:51:17 +01:00
1 parent fd28ebe60c
commit c6c8705ce2
3 files changed
+113 -110

No files matched your search

@@ -39,16 +39,16 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" id="10">
<rect key="frame" x="58" y="153" width="48" height="14"/>
<rect key="frame" x="-2" y="153" width="108" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Volume:" id="11">
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Volume:" id="11">
<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" id="98">
<rect key="frame" x="111" y="143" width="210" height="20"/>
<rect key="frame" x="111" y="145" width="210" height="20"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<sliderCell key="cell" controlSize="small" state="on" alignment="left" maxValue="200" doubleValue="100" tickMarkPosition="below" numberOfTickMarks="1" sliderType="linear" id="99">
<font key="font" metaFont="smallSystem"/>
@@ -58,18 +58,18 @@
</connections>
</slider>
<textField verticalHuggingPriority="750" id="102">
<rect key="frame" x="13" y="103" width="93" height="14"/>
<rect key="frame" x="-2" y="103" width="108" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Alternate Group:" id="109">
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Alternate Group:" id="109">
<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>
<textField verticalHuggingPriority="750" id="126">
<rect key="frame" x="55" y="78" width="51" height="14"/>
<rect key="frame" x="-2" y="78" width="108" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Fallback:" id="127">
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Fallback:" id="127">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
@@ -114,9 +114,9 @@
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" id="141">
<rect key="frame" x="52" y="54" width="54" height="14"/>
<rect key="frame" x="-2" y="54" width="108" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Subtitles:" id="146">
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Subtitles:" id="146">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
@@ -139,7 +139,7 @@
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" id="116">
<rect key="frame" x="292" y="134" width="32" height="11"/>
<rect key="frame" x="292" y="136" width="32" height="11"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="+6 db" id="117">
<font key="font" metaFont="miniSystem"/>
@@ -148,7 +148,7 @@
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" id="118">
<rect key="frame" x="197" y="134" width="34" height="11"/>
<rect key="frame" x="197" y="136" width="34" height="11"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="+ 0 db" id="119">
<font key="font" metaFont="miniSystem"/>
@@ -157,7 +157,7 @@
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" id="120">
<rect key="frame" x="108" y="134" width="32" height="11"/>
<rect key="frame" x="108" y="136" width="32" height="11"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="-∞ db" id="121">
<font key="font" metaFont="miniSystem"/>
@@ -183,7 +183,7 @@
</tabViewItems>
</tabView>
</subviews>
<point key="canvasLocation" x="565" y="239"/>
<point key="canvasLocation" x="238" y="237"/>
</customView>
</objects>
</document>
+10 -7
View File
@@ -17,6 +17,7 @@
{
[super loadView];
// Media Tags controls
_mediaTagsController = [[SBMediaTagsController alloc] initWithTrack:track];
[_mediaTagsController.view setFrame: [mediaTagsView bounds]];
@@ -24,6 +25,7 @@
[mediaTagsView addSubview:_mediaTagsController.view];
// Standard audio controls
[alternateGroup selectItemAtIndex:(NSInteger)track.alternate_group];
_fallbacks = [[NSMutableArray alloc] init];
@@ -101,7 +103,7 @@
float value = [sender floatValue] / 100;
if (track.volume != value) {
track.volume = value;
[[[[[self view]window] windowController] document] updateChangeCount:NSChangeDone];
[self.view.window.windowController.document updateChangeCount:NSChangeDone];
}
}
@@ -114,12 +116,12 @@
if (audioTrack != track.fallbackTrack) {
track.fallbackTrack = audioTrack;
[[[[[self view]window] windowController] document] updateChangeCount:NSChangeDone];
[self.view.window.windowController.document updateChangeCount:NSChangeDone];
}
}
else {
track.fallbackTrack = nil;
[[[[[self view]window] windowController] document] updateChangeCount:NSChangeDone];
[self.view.window.windowController.document updateChangeCount:NSChangeDone];
}
}
@@ -132,11 +134,12 @@
if (subTrack != track.followsTrack) {
track.followsTrack = subTrack;
[[[[[self view]window] windowController] document] updateChangeCount:NSChangeDone];
} }
[self.view.window.windowController.document updateChangeCount:NSChangeDone];
}
}
else {
track.followsTrack = nil;
[[[[[self view]window] windowController] document] updateChangeCount:NSChangeDone];
[self.view.window.windowController.document updateChangeCount:NSChangeDone];
}
}
@@ -146,7 +149,7 @@
if (track.alternate_group != tagName) {
track.alternate_group = tagName;
[[[[[self view]window] windowController] document] updateChangeCount:NSChangeDone];
[self.view.window.windowController.document updateChangeCount:NSChangeDone];
}
}
+90 -90
View File
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10109" systemVersion="15E39d" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10109" systemVersion="15E39d" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10109"/>
<capability name="box content view" minToolsVersion="7.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="SBMediaTagsController">
@@ -14,101 +15,100 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<view id="Guf-c1-iLM">
<rect key="frame" x="0.0" y="0.0" width="480" height="260"/>
<rect key="frame" x="0.0" y="0.0" width="427" height="262"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OVt-kN-7yA">
<rect key="frame" x="20" y="31" width="440" height="198"/>
<clipView key="contentView" drawsBackground="NO" copiesOnScroll="NO" id="2RG-9j-Jli">
<rect key="frame" x="0.0" y="0.0" width="440" height="198"/>
<box autoresizesSubviews="NO" borderType="none" id="ulq-5T-m4B">
<rect key="frame" x="17" y="16" width="393" height="226"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<view key="contentView" id="A8r-be-Wto">
<rect key="frame" x="0.0" y="0.0" width="393" height="211"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowSizeStyle="automatic" viewBased="YES" id="xYT-Aq-WLl">
<rect key="frame" x="0.0" y="0.0" width="440" height="198"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" red="0.85882352941176465" green="0.85882352941176465" blue="0.85882352941176465" alpha="1" colorSpace="calibratedRGB"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
<tableColumn width="437" minWidth="40" maxWidth="1000" id="k1h-0t-8js">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" title="Text Cell" id="ToU-Nb-89H">
<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="SBCheckBoxTableCellView" id="4lR-R3-Fc6" customClass="SBCheckBoxTableCellView">
<rect key="frame" x="1" y="1" width="437" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button translatesAutoresizingMaskIntoConstraints="NO" id="4eC-LC-PTJ">
<rect key="frame" x="0.0" y="-2" width="436" height="20"/>
<buttonCell key="cell" type="check" title="Check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="se0-Hr-Q1T">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<action selector="setTagState:" target="-2" id="Hii-cl-fVo"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="4eC-LC-PTJ" firstAttribute="leading" secondItem="4lR-R3-Fc6" secondAttribute="leading" constant="3" id="LmX-Lz-JXO"/>
<constraint firstAttribute="bottom" secondItem="4eC-LC-PTJ" secondAttribute="bottom" constant="1" id="eGC-h9-Em0"/>
<constraint firstItem="4eC-LC-PTJ" firstAttribute="top" secondItem="4lR-R3-Fc6" secondAttribute="top" constant="2" id="ePn-T4-jRm"/>
<constraint firstAttribute="trailing" secondItem="4eC-LC-PTJ" secondAttribute="trailing" constant="3" id="gWt-9j-Z9Q"/>
</constraints>
<connections>
<outlet property="_checkBox" destination="4eC-LC-PTJ" id="Wfm-xM-hag"/>
</connections>
</tableCellView>
</prototypeCellViews>
</tableColumn>
</tableColumns>
<connections>
<outlet property="dataSource" destination="-2" id="y2u-UU-pq6"/>
<outlet property="delegate" destination="-2" id="XS5-FM-7qU"/>
</connections>
</tableView>
<scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="OVt-kN-7yA">
<rect key="frame" x="109" y="0.0" width="257" height="211"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<clipView key="contentView" drawsBackground="NO" copiesOnScroll="NO" id="2RG-9j-Jli">
<rect key="frame" x="0.0" y="0.0" width="257" height="211"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowSizeStyle="automatic" viewBased="YES" id="xYT-Aq-WLl">
<rect key="frame" x="0.0" y="0.0" width="257" height="211"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" red="0.85882352941176465" green="0.85882352941176465" blue="0.85882352941176465" alpha="0.0" colorSpace="calibratedRGB"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
<tableColumn width="254" minWidth="40" maxWidth="1000" id="k1h-0t-8js">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" title="Text Cell" id="ToU-Nb-89H">
<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="SBCheckBoxTableCellView" id="4lR-R3-Fc6" customClass="SBCheckBoxTableCellView">
<rect key="frame" x="1" y="1" width="254" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button id="4eC-LC-PTJ">
<rect key="frame" x="0.0" y="-2" width="436" height="20"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="se0-Hr-Q1T">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<action selector="setTagState:" target="-2" id="Hii-cl-fVo"/>
</connections>
</button>
</subviews>
<connections>
<outlet property="_checkBox" destination="4eC-LC-PTJ" id="Wfm-xM-hag"/>
</connections>
</tableCellView>
</prototypeCellViews>
</tableColumn>
</tableColumns>
<connections>
<outlet property="dataSource" destination="-2" id="y2u-UU-pq6"/>
<outlet property="delegate" destination="-2" id="XS5-FM-7qU"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
</clipView>
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="G6v-iY-QvX">
<rect key="frame" x="1" y="119" width="223" height="15"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="ABs-nS-N9v">
<rect key="frame" x="224" y="17" width="15" height="102"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
</scrollView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="foO-TZ-MFk">
<rect key="frame" x="20" y="195" width="83" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Media tags:" id="3DC-ub-50w">
<font key="font" metaFont="system" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
</subviews>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
</clipView>
<constraints>
<constraint firstAttribute="width" constant="440" id="ChU-5s-jX0"/>
<constraint firstAttribute="height" constant="198" id="aKx-6B-h7y"/>
</constraints>
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="G6v-iY-QvX">
<rect key="frame" x="1" y="119" width="223" height="15"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="ABs-nS-N9v">
<rect key="frame" x="224" y="17" width="15" height="102"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
</scrollView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="foO-TZ-MFk">
<rect key="frame" x="18" y="237" width="444" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Select the media characteristic tags for this track." id="3DC-ub-50w">
<font key="font" metaFont="systemBold" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
</view>
<color key="borderColor" white="0.0" alpha="0.41999999999999998" colorSpace="calibratedWhite"/>
<color key="fillColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<font key="titleFont" metaFont="smallSystem"/>
</box>
</subviews>
<constraints>
<constraint firstItem="foO-TZ-MFk" firstAttribute="width" secondItem="xYT-Aq-WLl" secondAttribute="width" id="4KA-2M-uuf"/>
<constraint firstItem="OVt-kN-7yA" firstAttribute="centerY" secondItem="Guf-c1-iLM" secondAttribute="centerY" id="8S5-r8-1aG"/>
<constraint firstItem="foO-TZ-MFk" firstAttribute="centerX" secondItem="Guf-c1-iLM" secondAttribute="centerX" id="e2V-oE-LhY"/>
<constraint firstItem="OVt-kN-7yA" firstAttribute="centerX" secondItem="Guf-c1-iLM" secondAttribute="centerX" id="gld-Oo-pyH"/>
<constraint firstItem="xYT-Aq-WLl" firstAttribute="top" secondItem="foO-TZ-MFk" secondAttribute="bottom" constant="8" id="lE9-9o-jYT"/>
</constraints>
<point key="canvasLocation" x="513" y="-474"/>
<point key="canvasLocation" x="277.5" y="-519"/>
</view>
</objects>
</document>