Add a "Clear tracks names" menu item.
This commit is contained in:
1 parent
4f06e6a2df
commit
3822d7df1d
3 files changed
+60
-26
No files matched your search
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11185.3" systemVersion="16A270f" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2548a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11185.3"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
|
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
|
||||||
@@ -316,12 +316,18 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Organize groups" id="652">
|
<menuItem title="Organize alternate groups" id="652">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="iTunesFriendlyTrackGroups:" target="-1" id="654"/>
|
<action selector="iTunesFriendlyTrackGroups:" target="-1" id="654"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
|
<menuItem title="Clear tracks names" id="hKY-N2-NzK">
|
||||||
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="clearTracksNames:" target="-1" id="sbh-Ax-C4Y"/>
|
||||||
|
</connections>
|
||||||
|
</menuItem>
|
||||||
<menuItem title="Fix audio fallbacks" id="FXb-bX-0Wb">
|
<menuItem title="Fix audio fallbacks" id="FXb-bX-0Wb">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
<connections>
|
<connections>
|
||||||
|
|||||||
+39
-23
@@ -402,7 +402,7 @@
|
|||||||
<popUpButton key="view" verticalHuggingPriority="750" id="JYe-b9-2AX">
|
<popUpButton key="view" verticalHuggingPriority="750" id="JYe-b9-2AX">
|
||||||
<rect key="frame" x="2" y="14" width="38" height="28"/>
|
<rect key="frame" x="2" y="14" width="38" height="28"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<popUpButtonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" pullsDown="YES" selectedItem="Xoe-1j-Ves" id="1Gc-Er-ewA">
|
<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"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="menu"/>
|
<font key="font" metaFont="menu"/>
|
||||||
<menu key="menu" id="qXi-k1-Z5m">
|
<menu key="menu" id="qXi-k1-Z5m">
|
||||||
@@ -457,12 +457,18 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Organize groups" id="BDw-rr-q41">
|
<menuItem title="Organize alternate groups" id="BDw-rr-q41">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="iTunesFriendlyTrackGroups:" target="-2" id="udM-fi-yMw"/>
|
<action selector="iTunesFriendlyTrackGroups:" target="-2" id="udM-fi-yMw"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</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">
|
<menuItem title="Fix audio fallbacks" id="ErE-rx-lEt">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
<connections>
|
<connections>
|
||||||
@@ -548,36 +554,24 @@ Gw
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="346" height="102"/>
|
<rect key="frame" x="0.0" y="0.0" width="346" height="102"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100273">
|
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100277">
|
||||||
<rect key="frame" x="17" y="62" width="47" height="17"/>
|
<rect key="frame" x="307" y="62" width="22" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
||||||
<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>
|
|
||||||
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100277">
|
|
||||||
<rect key="frame" x="306" y="62" width="23" height="17"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="ms" id="100278">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="ms" id="100278">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100275">
|
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100275">
|
||||||
<rect key="frame" x="69" y="60" width="232" height="22"/>
|
<rect key="frame" x="69" y="59" width="233" height="22"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="100276">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="100276">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100279">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100279">
|
||||||
<rect key="frame" x="236" y="12" width="96" height="32"/>
|
<rect key="frame" x="237" y="12" width="95" height="32"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
||||||
<buttonCell key="cell" type="push" title="OK" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="100282">
|
<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"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -589,9 +583,8 @@ DQ
|
|||||||
<action selector="setTrackOffset:" target="-2" id="100289"/>
|
<action selector="setTrackOffset:" target="-2" id="100289"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100280">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100280">
|
||||||
<rect key="frame" x="140" y="12" width="96" height="32"/>
|
<rect key="frame" x="142" y="12" width="95" 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="100281">
|
<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"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -603,7 +596,30 @@ Gw
|
|||||||
<action selector="closeOffsetSheet:" target="-2" id="100287"/>
|
<action selector="closeOffsetSheet:" target="-2" id="100287"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
|
<textField verticalHuggingPriority="750" 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>
|
</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="100275" firstAttribute="leading" secondItem="100273" secondAttribute="trailing" constant="7" id="sAp-D8-dgq"/>
|
||||||
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
</window>
|
</window>
|
||||||
<customView id="100187">
|
<customView id="100187">
|
||||||
|
|||||||
@@ -461,6 +461,9 @@ static NSDictionary *_detailMonospacedAttr;
|
|||||||
if (action == @selector(iTunesFriendlyTrackGroups:))
|
if (action == @selector(iTunesFriendlyTrackGroups:))
|
||||||
return YES;
|
return YES;
|
||||||
|
|
||||||
|
if (action == @selector(clearTracksNames:))
|
||||||
|
return YES;
|
||||||
|
|
||||||
if (action == @selector(fixAudioFallbacks:))
|
if (action == @selector(fixAudioFallbacks:))
|
||||||
return YES;
|
return YES;
|
||||||
|
|
||||||
@@ -1074,6 +1077,15 @@ static NSDictionary *_detailMonospacedAttr;
|
|||||||
[self updateChangeCount:NSChangeDone];
|
[self updateChangeCount:NSChangeDone];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (IBAction)clearTracksNames:(id)sender
|
||||||
|
{
|
||||||
|
for (MP42Track *track in self.mp4.tracks) {
|
||||||
|
track.name = @"";
|
||||||
|
}
|
||||||
|
[self.tracksTable reloadData];
|
||||||
|
[self updateChangeCount:NSChangeDone];
|
||||||
|
}
|
||||||
|
|
||||||
- (IBAction)fixAudioFallbacks:(id)sender {
|
- (IBAction)fixAudioFallbacks:(id)sender {
|
||||||
[self.mp4 setAutoFallback];
|
[self.mp4 setAutoFallback];
|
||||||
[self.tracksTable reloadData];
|
[self.tracksTable reloadData];
|
||||||
|
|||||||
Reference in new issue
Block a user