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];
}
}