31 Commits
Author SHA1 Message Date
Damiano Galassi 7e1e9c148c Update NEWS 2025-03-17 16:32:05 +01:00
Damiano Galassi 7aa1674c08 Bump version to 1.8.7 2025-03-17 14:35:09 +01:00
Damiano Galassi e44a786b72 Update submodule 2025-03-17 14:33:52 +01:00
Damiano Galassi f0faeb066a Fix queue toolbar items validation 2025-03-13 09:50:35 +01:00
Damiano Galassi 7abffdda03 Bump version to 1.8.6 2025-03-11 11:58:38 +01:00
Damiano Galassi bc2597499b Update submodule 2025-03-11 11:57:31 +01:00
Damiano Galassi b6163b4d80 Update NEWS 2025-03-11 11:33:00 +01:00
Damiano Galassi 9ea235a35e Fix the checkOnlySelectedTracks function to make it work with multiple files 2025-03-11 11:23:22 +01:00
Karsten 5fdf9efa80 Added Check-Only-Selected Item
** How was it Changed? **
- importing media to a video, a dialog appears with the tracks to be imported. All tracks are enabled
- there is already a context-menu-item to only check the selected language
- i added another item to the context menu to only check the selected tracks
- the logic is simple:
   - if nothing is selected, the target item is the only checked item
   - if there's selection, these items will then be checked
   - target-item has precedence from selected items because it's more precise but can also be fixed by reopening the menu by targeting the selection

** Why was it changed? **
- i often encounter videos that have all required languages and after conversion but they lack the forced subtitle track
- dragging the source media on the video will open a dialog and tons of subtitle tracks are all selected
- even choosing the "check selected language" item would still select multiple tracks, most of which would need to be deselected in a second step
2025-03-11 11:01:57 +01:00
Damiano Galassi b26bcea29a Revert "Add a check all and uncheck all menu items to the file importer"
This reverts commit e520b13a4f.
2025-03-11 10:59:28 +01:00
Damiano Galassi 73f3fee7b0 Use a weak target to avoid reference cycles 2025-03-10 11:19:13 +01:00
Damiano Galassi ae2addbac4 Set toolbar items target 2025-03-10 11:01:03 +01:00
Damiano Galassi 8071145c7f Update only modified rows 2025-03-10 10:22:01 +01:00
Damiano Galassi e520b13a4f Add a check all and uncheck all menu items to the file importer 2025-03-10 10:19:14 +01:00
Damiano Galassi e07c39b039 Modernize MP4Dump 2025-03-10 10:00:05 +01:00
Damiano Galassi f3226469d7 Add experimental AppleTV v3 importer by Are Digranes 2025-02-05 11:38:36 +01:00
Damiano Galassi aa6e15f99b Update submodule 2025-02-05 11:38:17 +01:00
Michael Mock 3fe294f582 Fix the issue where Apple TV metadata isn't returned for TV/Movies that Apple doesn't currently sell in the given region. 2024-12-19 09:05:47 +01:00
Damiano Galassi 0ea41244f5 Set autosavesInPlace to false, the default will change in a future sdk 2024-12-16 12:14:20 +01:00
Damiano Galassi 9671e40708 Xcode 16.1 project recommended settings 2024-11-29 16:00:35 +01:00
Stephen Flynn 22df3e92db Added ability to set imported multichannel channel AAC track to Passthru + AAC (#39) 2024-11-29 13:40:19 +01:00
Damiano Galassi 8bbb34298a Remember artworks size in the movie view 2024-11-29 13:32:36 +01:00
Damiano Galassi b022bb460d Remember artworks size in the artwork selector view 2024-11-29 13:24:24 +01:00
Damiano Galassi 2d0cb8b827 Add IPT-C2 and Undefined color profiles 2024-11-29 12:53:43 +01:00
Damiano Galassi e38c5c2f87 Update submodule 2024-11-29 12:53:16 +01:00
Damiano Galassi 43d56d7851 Do not run the optimize pass if writing was cancelled 2024-11-29 12:53:12 +01:00
Stephen Flynn 5e0e5b677e Updated readme with documentation on build and run basics for future contributors (#38) 2024-11-24 08:39:14 +01:00
Damiano Galassi 49262b2368 Bump version to 1.8.5 2024-08-10 07:11:17 +02:00
Damiano Galassi f24eea0f91 Update submodule 2024-08-10 07:01:25 +02:00
Damiano Galassi 3b30d68597 Update submodule 2024-08-05 12:23:37 +02:00
Damiano Galassi e7a4d7af09 Improve keyboard navigation 2024-07-22 10:06:33 +02:00
40 changed files with 2062 additions and 103 deletions

No files matched your search

+251
View File
@@ -0,0 +1,251 @@
{
"AF": "Afghanistan",
"AX": "Aland Islands",
"AL": "Albania",
"DZ": "Algeria",
"AS": "American Samoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
"AG": "Antigua and Barbuda",
"AR": "Argentina",
"AM": "Armenia",
"AW": "Aruba",
"AU": "Australia",
"AT": "Austria",
"AZ": "Azerbaijan",
"BS": "Bahamas",
"BH": "Bahrain",
"BD": "Bangladesh",
"BB": "Barbados",
"BY": "Belarus",
"BE": "Belgium",
"BZ": "Belize",
"BJ": "Benin",
"BM": "Bermuda",
"BT": "Bhutan",
"BO": "Bolivia",
"BQ": "Bonaire, Sint Eustatius and Saba",
"BA": "Bosnia and Herzegovina",
"BW": "Botswana",
"BV": "Bouvet Island",
"BR": "Brazil",
"IO": "British Indian Ocean Territory",
"BN": "Brunei Darussalam",
"BG": "Bulgaria",
"BF": "Burkina Faso",
"BI": "Burundi",
"CV": "Cabo Verde",
"KH": "Cambodia",
"CM": "Cameroon",
"CA": "Canada",
"KY": "Cayman Islands",
"CF": "Central African Republic",
"TD": "Chad",
"CL": "Chile",
"CN": "China",
"CX": "Christmas Island",
"CC": "Cocos Keeling Islands",
"CO": "Colombia",
"KM": "Comoros",
"CG": "Congo",
"CD": "Congo, DR",
"CK": "Cook Islands",
"CR": "Costa Rica",
"CI": "Cote d'Ivoire",
"HR": "Croatia",
"CU": "Cuba",
"CY": "Cyprus",
"CZ": "Czechia",
"DK": "Denmark",
"DJ": "Djibouti",
"DM": "Dominica",
"DO": "Dominican Republic",
"EC": "Ecuador",
"EG": "Egypt",
"SV": "El Salvador",
"GQ": "Equatorial Guinea",
"ER": "Eritrea",
"EE": "Estonia",
"SZ": "Eswatini",
"ET": "Ethiopia",
"FK": "Falkland Islands Malvinas",
"FO": "Faroe Islands",
"FJ": "Fiji",
"FI": "Finland",
"FR": "France",
"GF": "French Guiana",
"PF": "French Polynesia",
"TF": "French Southern Territories",
"GA": "Gabon",
"GM": "Gambia",
"GE": "Georgia",
"DE": "Germany",
"GH": "Ghana",
"GI": "Gibraltar",
"GR": "Greece",
"GL": "Greenland",
"GD": "Grenada",
"GP": "Guadeloupe",
"GU": "Guam",
"GT": "Guatemala",
"GG": "Guernsey",
"GN": "Guinea",
"GW": "Guinea Bissau",
"GY": "Guyana",
"HT": "Haiti",
"HM": "Heard Island and Mcdonald Islands",
"VA": "Holy See",
"HN": "Honduras",
"HK": "Hong Kong",
"HU": "Hungary",
"IS": "Iceland",
"IN": "India",
"ID": "Indonesia",
"IR": "Iran",
"IQ": "Iraq",
"IE": "Ireland",
"IM": "Isle of Man",
"IL": "Israel",
"IT": "Italy",
"JM": "Jamaica",
"JP": "Japan",
"JE": "Jersey",
"JO": "Jordan",
"KZ": "Kazakhstan",
"KE": "Kenya",
"KI": "Kiribati",
"KR": "Korea",
"KP": "Korea, DPR",
"KW": "Kuwait",
"KG": "Kyrgyzstan",
"LA": "Lao People's Democratic Republic",
"LV": "Latvia",
"LB": "Lebanon",
"LS": "Lesotho",
"LR": "Liberia",
"LY": "Libya",
"LI": "Liechtenstein",
"LT": "Lithuania",
"LU": "Luxembourg",
"MO": "Macao",
"MG": "Madagascar",
"MW": "Malawi",
"MY": "Malaysia",
"MV": "Maldives",
"ML": "Mali",
"MT": "Malta",
"MH": "Marshall Islands",
"MQ": "Martinique",
"MR": "Mauritania",
"MU": "Mauritius",
"YT": "Mayotte",
"MX": "Mexico",
"FM": "Micronesia",
"MD": "Moldova",
"MC": "Monaco",
"MN": "Mongolia",
"ME": "Montenegro",
"MS": "Montserrat",
"MA": "Morocco",
"MZ": "Mozambique",
"MM": "Myanmar",
"NA": "Namibia",
"NR": "Nauru",
"NP": "Nepal",
"NL": "Netherlands",
"NT": "Neutral Zone",
"NC": "New Caledonia",
"NZ": "New Zealand",
"NI": "Nicaragua",
"NE": "Niger",
"NG": "Nigeria",
"NU": "Niue",
"NF": "Norfolk Island",
"MK": "North Macedonia",
"MP": "Northern Mariana Islands",
"NO": "Norway",
"OM": "Oman",
"PK": "Pakistan",
"PW": "Palau",
"PS": "Palestine",
"PA": "Panama",
"PG": "Papua New Guinea",
"PY": "Paraguay",
"PE": "Peru",
"PH": "Philippines",
"PN": "Pitcairn",
"PL": "Poland",
"PT": "Portugal",
"PR": "Puerto Rico",
"QA": "Qatar",
"RE": "Reunion",
"RO": "Romania",
"RU": "Russian Federation",
"RW": "Rwanda",
"BL": "Saint Barthelemy",
"SH": "Saint Helena, Ascension and Tristan da Cunha",
"KN": "Saint Kitts and Nevis",
"LC": "Saint Lucia",
"MF": "Saint Martin",
"PM": "Saint Pierre and Miquelon",
"VC": "Saint Vincent and the Grenadines",
"WS": "Samoa",
"SM": "San Marino",
"ST": "Sao Tome and Principe",
"SA": "Saudi Arabia",
"SN": "Senegal",
"RS": "Serbia",
"SC": "Seychelles",
"SL": "Sierra Leone",
"SG": "Singapore",
"SX": "Sint Maarten",
"SK": "Slovakia",
"SI": "Slovenia",
"SB": "Solomon Islands",
"SO": "Somalia",
"ZA": "South Africa",
"GS": "South Georgia And South Sandwich Islands",
"SS": "South Sudan",
"ES": "Spain",
"LK": "Sri Lanka",
"SD": "Sudan",
"SR": "Suriname",
"SJ": "Svalbard and Jan Mayen",
"SE": "Sweden",
"CH": "Switzerland",
"SY": "Syrian Arab Republic",
"TW": "Taiwan",
"TJ": "Tajikistan",
"TZ": "Tanzania",
"TH": "Thailand",
"TL": "Timor-Leste",
"TG": "Togo",
"TK": "Tokelau",
"TO": "Tonga",
"TT": "Trinidad and Tobago",
"TN": "Tunisia",
"TR": "Turkiye",
"TM": "Turkmenistan",
"TC": "Turks and Caicos Islands",
"TV": "Tuvalu",
"UG": "Uganda",
"UA": "Ukraine",
"AE": "United Arab Emirates",
"GB": "United Kingdom",
"US": "United States of America",
"UM": "United States Minor Outlying Islands",
"UY": "Uruguay",
"UZ": "Uzbekistan",
"VU": "Vanuatu",
"VE": "Venezuela",
"VN": "Viet Nam",
"VG": "Virgin Islands, British",
"VI": "Virgin Islands, U.S.",
"WF": "Wallis and Futuna",
"EH": "Western Sahara",
"YE": "Yemen",
"ZM": "Zambia",
"ZW": "Zimbabwe"
}
+6
View File
@@ -36,6 +36,12 @@
<action selector="checkOnlyTracksWithSameLanguage:" target="-2" id="3Gg-ed-oeo"/> <action selector="checkOnlyTracksWithSameLanguage:" target="-2" id="3Gg-ed-oeo"/>
</connections> </connections>
</menuItem> </menuItem>
<menuItem title="Check only selected tracks" id="KMR-fY-lFl">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="checkOnlySelectedTracks:" target="-2" id="6Fc-pF-u5c"/>
</connections>
</menuItem>
</items> </items>
<point key="canvasLocation" x="139" y="146"/> <point key="canvasLocation" x="139" y="146"/>
</menu> </menu>
+13 -8
View File
@@ -205,9 +205,9 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
} }
override func viewWillAppear() { override func viewWillAppear() {
if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout { let zoomValue = Prefs.artworkSelectorZoomLevel
layout.itemSize = standardSize setZoomValue(zoomValue)
} slider.floatValue = zoomValue
} }
@IBAction func loadMoreArtwork(_ sender: Any) { @IBAction func loadMoreArtwork(_ sender: Any) {
@@ -216,23 +216,28 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
// MARK: - User Interface // MARK: - User Interface
@IBAction func zoomSliderDidChange(_ sender: Any) { private func setZoomValue(_ newZoomValue: Float) {
if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout { if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout {
if slider.floatValue == 50 { if newZoomValue == 50 {
layout.itemSize = standardSize layout.itemSize = standardSize
} else if slider.floatValue < 50 { } else if newZoomValue < 50 {
let zoomValue = (CGFloat(slider.floatValue) + 50) / 100 let zoomValue = (CGFloat(newZoomValue) + 50) / 100
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue), layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
height: Int((standardSize.height - 32) * zoomValue + 32)) height: Int((standardSize.height - 32) * zoomValue + 32))
} else { } else {
let zoomValue = pow((CGFloat(slider.floatValue) + 50) / 100, 2.4) let zoomValue = pow((CGFloat(newZoomValue) + 50) / 100, 2.4)
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue), layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
height: Int((standardSize.height - 32) * zoomValue + 32)) height: Int((standardSize.height - 32) * zoomValue + 32))
} }
} }
} }
@IBAction func zoomSliderDidChange(_ sender: Any) {
setZoomValue(slider.floatValue)
Prefs.artworkSelectorZoomLevel = slider.floatValue
}
fileprivate func reloadItem(_ item: ArtworkImageObject) { fileprivate func reloadItem(_ item: ArtworkImageObject) {
let selectionIndexPaths = imageBrowser.selectionIndexPaths let selectionIndexPaths = imageBrowser.selectionIndexPaths
+4 -4
View File
@@ -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="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -19,7 +19,7 @@
<rect key="frame" x="0.0" y="0.0" width="128" height="171"/> <rect key="frame" x="0.0" y="0.0" width="128" height="171"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews> <subviews>
<textField wantsLayer="YES" horizontalHuggingPriority="251" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Wkh-6c-0tU" customClass="ArtworkSelectorViewItemLabel" customModule="Subler" customModuleProvider="target"> <textField wantsLayer="YES" focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Wkh-6c-0tU" customClass="ArtworkSelectorViewItemLabel" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="-4" y="17" width="136" height="15"/> <rect key="frame" x="-4" y="17" width="136" height="15"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" alignment="center" title="Label" usesSingleLineMode="YES" id="TsL-Ak-xnf"> <textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" alignment="center" title="Label" usesSingleLineMode="YES" id="TsL-Ak-xnf">
<font key="font" metaFont="cellTitle"/> <font key="font" metaFont="cellTitle"/>
@@ -27,7 +27,7 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField wantsLayer="YES" horizontalHuggingPriority="251" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fGU-Kh-WjD"> <textField wantsLayer="YES" focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fGU-Kh-WjD">
<rect key="frame" x="-4" y="4" width="136" height="13"/> <rect key="frame" x="-4" y="4" width="136" height="13"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" alignment="center" title="Label" usesSingleLineMode="YES" id="ggX-Q2-CZ0"> <textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" alignment="center" title="Label" usesSingleLineMode="YES" id="ggX-Q2-CZ0">
<font key="font" metaFont="system" size="10"/> <font key="font" metaFont="system" size="10"/>
@@ -13,7 +13,7 @@
</customObject> </customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/> <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" toolbarStyle="expanded" id="s5f-yH-26m" userLabel="Window"> <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" toolbarStyle="expanded" id="s5f-yH-26m" userLabel="Window">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/> <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/> <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="70" y="318" width="520" height="510"/> <rect key="contentRect" x="70" y="318" width="520" height="510"/>
+3 -2
View File
@@ -34,14 +34,15 @@ final class ButtonToolbarItem : NSToolbarItem {
super.init(itemIdentifier: itemIdentifier) super.init(itemIdentifier: itemIdentifier)
} }
init(itemIdentifier: NSToolbarItem.Identifier, label: String, toolTip: String, image: String, symbolName: String? = nil, action: Selector) { init(itemIdentifier: NSToolbarItem.Identifier, label: String, toolTip: String, image: String, symbolName: String? = nil, target: AnyObject?, action: Selector) {
super.init(itemIdentifier: itemIdentifier) super.init(itemIdentifier: itemIdentifier)
self.label = label self.label = label
self.paletteLabel = label self.paletteLabel = label
self.toolTip = toolTip self.toolTip = toolTip
self.setSymbol(symbolName: symbolName, fallbackName: image) self.target = target
self.action = action self.action = action
self.setSymbol(symbolName: symbolName, fallbackName: image)
if #available(macOS 14, *) { if #available(macOS 14, *) {
self.isBordered = true self.isBordered = true
+5 -1
View File
@@ -7,6 +7,10 @@
import Cocoa import Cocoa
final class CheckBoxCellView : NSTableCellView { final class CheckBoxCellView : NSTableCellView, ExpandedTableViewCellActionable {
@IBOutlet var checkboxButton: NSButton! @IBOutlet var checkboxButton: NSButton!
func performAction() {
self.checkboxButton.performClick(self)
}
} }
+8
View File
@@ -67,6 +67,14 @@ class CollectionView: NSCollectionView, NSUserInterfaceValidations {
else if key == 27 && isSelected { else if key == 27 && isSelected {
deselectAll(self) deselectAll(self)
} }
else if self.isSelectionEmpty && (key == NSUpArrowFunctionKey || key == NSDownArrowFunctionKey) {
let indexPathSet = Set([IndexPath(item: 0, section: 0)])
animator().selectItems(at: indexPathSet, scrollPosition: .bottom)
delegate?.collectionView?(self, didSelectItemsAt: indexPathSet)
}
else if self.isSelectionEmpty && (key == NSRightArrowFunctionKey || key == NSLeftArrowFunctionKey) {
self.window?.windowController?.keyDown(with: event)
}
else { else {
super.keyDown(with: event) super.keyDown(with: event)
} }
+13 -1
View File
@@ -15,6 +15,7 @@ final class Document: NSDocument {
private var unsupportedMp4Brand: Bool private var unsupportedMp4Brand: Bool
override init() { override init() {
self.cancelled = false
self.options = [:] self.options = [:]
self.optimize = false self.optimize = false
self.unsupportedMp4Brand = false self.unsupportedMp4Brand = false
@@ -22,6 +23,7 @@ final class Document: NSDocument {
} }
init(mp4: MP42File) { init(mp4: MP42File) {
self.cancelled = false
self.options = [:] self.options = [:]
self.optimize = false self.optimize = false
self.unsupportedMp4Brand = false self.unsupportedMp4Brand = false
@@ -73,8 +75,11 @@ final class Document: NSDocument {
// MARK: Save // MARK: Save
override nonisolated class var autosavesInPlace: Bool { return false }
private var optimize: Bool private var optimize: Bool
private var options: [String : Any] private var options: [String : Any]
private var cancelled: Bool
private func saveOptions(for saveOperation: NSDocument.SaveOperationType) -> [String : Any] { private func saveOptions(for saveOperation: NSDocument.SaveOperationType) -> [String : Any] {
var options = [String : Any]() var options = [String : Any]()
@@ -132,6 +137,11 @@ final class Document: NSDocument {
super.save(to: url, ofType: typeName, for: saveOperation, completionHandler: modifiedCompletionhandler) super.save(to: url, ofType: typeName, for: saveOperation, completionHandler: modifiedCompletionhandler)
} }
func cancelSave() {
cancelled = true
mp4.cancel()
}
private var sleepAssertion: IOPMAssertionID = IOPMAssertionID(0) private var sleepAssertion: IOPMAssertionID = IOPMAssertionID(0)
private var sleepAssertionSuccess: IOReturn = kIOReturnInvalid private var sleepAssertionSuccess: IOReturn = kIOReturnInvalid
@@ -177,13 +187,15 @@ final class Document: NSDocument {
fatalError("Unsupported save operation") fatalError("Unsupported save operation")
} }
if optimize { if optimize && cancelled == false {
DispatchQueue.main.async { DispatchQueue.main.async {
let docController = self.windowControllers.first as? DocumentWindowController let docController = self.windowControllers.first as? DocumentWindowController
docController?.setProgress(title: NSLocalizedString("Optimizing…", comment: "Document Optimize sheet.")) docController?.setProgress(title: NSLocalizedString("Optimizing…", comment: "Document Optimize sheet."))
} }
mp4.optimize() mp4.optimize()
} }
cancelled = false
} }
// MARK: Save panel // MARK: Save panel
+7
View File
@@ -18,6 +18,8 @@ private extension NSToolbarItem.Identifier {
class DocumentToolbarDelegate: NSObject, NSToolbarDelegate { class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
weak var target: AnyObject?
@MainActor func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? { @MainActor func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? {
if itemIdentifier == .importTracks { if itemIdentifier == .importTracks {
@@ -26,6 +28,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Import tracks from external files", comment: "Toolbar"), toolTip: NSLocalizedString("Import tracks from external files", comment: "Toolbar"),
image: "NSAddTemplate", image: "NSAddTemplate",
symbolName: "plus", symbolName: "plus",
target: target,
action: #selector(DocumentWindowController.selectFile(_:))) action: #selector(DocumentWindowController.selectFile(_:)))
} else if itemIdentifier == .deleteTracks { } else if itemIdentifier == .deleteTracks {
return ButtonToolbarItem(itemIdentifier: itemIdentifier, return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -33,6 +36,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Delete the selected track", comment: "Toolbar"), toolTip: NSLocalizedString("Delete the selected track", comment: "Toolbar"),
image: "NSRemoveTemplate", image: "NSRemoveTemplate",
symbolName: "minus", symbolName: "minus",
target: target,
action: #selector(DocumentWindowController.deleteTrack(_:))) action: #selector(DocumentWindowController.deleteTrack(_:)))
} else if itemIdentifier == .actions { } else if itemIdentifier == .actions {
let submenu = NSMenu() let submenu = NSMenu()
@@ -109,6 +113,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Search metadata on the web", comment: "Toolbar"), toolTip: NSLocalizedString("Search metadata on the web", comment: "Toolbar"),
image: "NSRevealFreestandingTemplate", image: "NSRevealFreestandingTemplate",
symbolName: "sparkle.magnifyingglass", symbolName: "sparkle.magnifyingglass",
target: target,
action: #selector(DocumentWindowController.searchMetadata(_:))) action: #selector(DocumentWindowController.searchMetadata(_:)))
} else if itemIdentifier == .sendToQueue { } else if itemIdentifier == .sendToQueue {
return ButtonToolbarItem(itemIdentifier: itemIdentifier, return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -116,6 +121,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Send the current document to the queue", comment: "Toolbar"), toolTip: NSLocalizedString("Send the current document to the queue", comment: "Toolbar"),
image: "ToolbarActionTemplate", image: "ToolbarActionTemplate",
symbolName: "photo.badge.plus", symbolName: "photo.badge.plus",
target: target,
action: #selector(Document.sendToQueue(_:))) action: #selector(Document.sendToQueue(_:)))
} else if itemIdentifier == .showQueue { } else if itemIdentifier == .showQueue {
return ButtonToolbarItem(itemIdentifier: itemIdentifier, return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -123,6 +129,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Show the Queue window", comment: "Toolbar"), toolTip: NSLocalizedString("Show the Queue window", comment: "Toolbar"),
image: "ToolbarActionTemplate", image: "ToolbarActionTemplate",
symbolName: "photo.stack", symbolName: "photo.stack",
target: nil,
action: #selector(AppDelegate.showQueueWindow(_:))) action: #selector(AppDelegate.showQueueWindow(_:)))
} }
+10 -3
View File
@@ -43,6 +43,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
window.toolbarStyle = .expanded window.toolbarStyle = .expanded
} }
toolbarDelegate.target = self
let toolbar = NSToolbar(identifier: "SublerDocumentToolbar") let toolbar = NSToolbar(identifier: "SublerDocumentToolbar")
toolbar.delegate = toolbarDelegate toolbar.delegate = toolbarDelegate
toolbar.allowsUserCustomization = true toolbar.allowsUserCustomization = true
@@ -225,7 +227,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
#selector(iTunesFriendlyTrackGroups(_:)), #selector(iTunesFriendlyTrackGroups(_:)),
#selector(clearTrackNames(_:)), #selector(clearTrackNames(_:)),
#selector(prettifyAudioTrackNames(_:)), #selector(prettifyAudioTrackNames(_:)),
#selector(fixAudioFallbacks(_:)): #selector(fixAudioFallbacks(_:)),
#selector(sendToQueue(_:)):
return true return true
case #selector(sendToExternalApp(_:)) where mp4.hasFileRepresentation && doc.isDocumentEdited == false: case #selector(sendToExternalApp(_:)) where mp4.hasFileRepresentation && doc.isDocumentEdited == false:
@@ -280,12 +283,16 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
} }
} }
func cancel() { func cancelSave() {
mp4.cancel() doc.cancelSave()
} }
// MARK: Actions // MARK: Actions
@IBAction func sendToQueue(_ sender: Any) {
doc.sendToQueue(self)
}
@IBAction func sendToExternalApp(_ sender: Any) { @IBAction func sendToExternalApp(_ sender: Any) {
if let fileURL = doc.fileURL { if let fileURL = doc.fileURL {
_ = sendToFileExternalApp(fileURL: fileURL) _ = sendToFileExternalApp(fileURL: fileURL)
+16 -1
View File
@@ -14,6 +14,10 @@ import Cocoa
@MainActor @objc optional func paste(to tableview: NSTableView) @MainActor @objc optional func paste(to tableview: NSTableView)
} }
protocol ExpandedTableViewCellActionable {
func performAction()
}
class ExpandedTableView: NSTableView { class ExpandedTableView: NSTableView {
var pasteboardTypes: [NSPasteboard.PasteboardType] var pasteboardTypes: [NSPasteboard.PasteboardType]
@@ -59,12 +63,20 @@ class ExpandedTableView: NSTableView {
super.init(coder: coder) super.init(coder: coder)
} }
private func performAction() {
if let view = self.view(atColumn: defaultEditingColumn, row: selectedRow, makeIfNecessary: false) as? ExpandedTableViewCellActionable {
view.performAction()
} else {
editColumn(defaultEditingColumn, row: selectedRow, with: nil, select: true)
}
}
override func keyDown(with event: NSEvent) { override func keyDown(with event: NSEvent) {
guard let key = event.charactersIgnoringModifiers?.utf16.first else { super.keyDown(with: event); return } guard let key = event.charactersIgnoringModifiers?.utf16.first else { super.keyDown(with: event); return }
if (key == NSEnterCharacter || key == NSCarriageReturnCharacter) && defaultEditingColumn > 0 { if (key == NSEnterCharacter || key == NSCarriageReturnCharacter) && defaultEditingColumn > 0 {
editColumn(defaultEditingColumn, row: selectedRow, with: nil, select: true) performAction()
} }
else if (key == NSDeleteCharacter || key == NSDeleteFunctionKey) && implements(selector: #selector(ExpandedTableViewDelegate.deleteSelection(in:))) { else if (key == NSDeleteCharacter || key == NSDeleteFunctionKey) && implements(selector: #selector(ExpandedTableViewDelegate.deleteSelection(in:))) {
if selectedRow == -1 { if selectedRow == -1 {
@@ -73,6 +85,9 @@ class ExpandedTableView: NSTableView {
expandedDelegate?.deleteSelection!(in: self) expandedDelegate?.deleteSelection!(in: self)
} }
} }
else if key == NSRightArrowFunctionKey || key == NSLeftArrowFunctionKey {
self.window?.windowController?.keyDown(with: event)
}
else if key == 27 && selectedRow != -1 { else if key == 27 && selectedRow != -1 {
deselectAll(self) deselectAll(self)
} }
+46 -4
View File
@@ -115,6 +115,17 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
enabled: true) enabled: true)
actions.append(conversionAction) actions.append(conversionAction)
} }
let audioTrack = track as! MP42AudioTrack
let channelCount = audioTrack.channels
if track.format == kMP42AudioCodecType_MPEG4AAC && channelCount > 2 {
let conversionAction = Action(title: NSLocalizedString("AAC + Passthru", comment: "File Import action menu item."),
tag: 6,
enabled: true)
actions.append(conversionAction)
}
default: default:
break break
} }
@@ -233,6 +244,7 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
} }
private func setCheck(value: Bool, forIndexes indexes: IndexSet) { private func setCheck(value: Bool, forIndexes indexes: IndexSet) {
var modifiedIndexes = IndexSet()
for index in indexes { for index in indexes {
let item = items[index] let item = items[index]
switch item { switch item {
@@ -240,16 +252,18 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
break break
case .track(let settings): case .track(let settings):
settings.checked = value && settings.importable settings.checked = value && settings.importable
modifiedIndexes.insert(index)
} }
} }
reloadCheckColumn(forRowIndexes: indexes) reloadCheckColumn(forRowIndexes: modifiedIndexes)
} }
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool { func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
if let action = item.action, if let action = item.action,
action == #selector(self.checkSelected(_:)) || action == #selector(self.checkSelected(_:)) ||
action == #selector(self.uncheckSelected(_:)) || action == #selector(self.uncheckSelected(_:)) ||
action == #selector(self.checkOnlyTracksWithSameLanguage(_:)) { action == #selector(self.checkOnlyTracksWithSameLanguage(_:)) ||
action == #selector(self.checkOnlySelectedTracks(_:)) {
if tracksTableView.selectedRow != -1 || tracksTableView.clickedRow != -1 { if tracksTableView.selectedRow != -1 || tracksTableView.clickedRow != -1 {
return true return true
} }
@@ -276,8 +290,36 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
} }
} }
settings.forEach { $0.checked = $0.importable && languages.contains($0.track.language) } var modifiedIndexes = IndexSet()
reloadCheckColumn(forRowIndexes: IndexSet(integersIn: items.indices))
items.enumerated().forEach { (index, item) in
switch item {
case .file(_):
break
case .track(let settings):
settings.checked = settings.importable && languages.contains(settings.track.language)
modifiedIndexes.insert(index)
}
}
reloadCheckColumn(forRowIndexes: modifiedIndexes)
}
@IBAction func checkOnlySelectedTracks(_ sender: Any) {
let targetedIndices = tracksTableView.targetedRowIndexes;
var modifiedIndexes = IndexSet()
items.enumerated().forEach { (index, item) in
switch item {
case .file(_):
break
case .track(let settings):
settings.checked = targetedIndices.contains(index)
modifiedIndexes.insert(index)
}
}
reloadCheckColumn(forRowIndexes: modifiedIndexes)
} }
// MARK: IBActions // MARK: IBActions
+1 -1
View File
@@ -130,7 +130,7 @@ public struct AppleTV: MetadataService {
private let detailsURL = "https://uts-api.itunes.apple.com/uts/v2/view/product/" private let detailsURL = "https://uts-api.itunes.apple.com/uts/v2/view/product/"
private let episodesURL = "https://uts-api.itunes.apple.com/uts/v2/view/show/" private let episodesURL = "https://uts-api.itunes.apple.com/uts/v2/view/show/"
private let seasonsURL = "https://uts-api.itunes.apple.com/uts/v2/show/" private let seasonsURL = "https://uts-api.itunes.apple.com/uts/v2/show/"
private let options = "&utsk=0&caller=wta&v=58&pfm=desktop" private let options = "&utsk=0&caller=wta&v=58&pfm=appletv"
private func normalize(_ term: String) -> String { private func normalize(_ term: String) -> String {
return term.replacingOccurrences(of: " (Dubbed)", with: "") return term.replacingOccurrences(of: " (Dubbed)", with: "")
File diff suppressed because it is too large. Load diff
+46 -1
View File
@@ -19,12 +19,36 @@ public enum ArtworkSize : Int, CustomStringConvertible {
return "square" return "square"
case .rectangle: case .rectangle:
return "rectangle" return "rectangle"
case .vertical:
return "vertical"
case .fullscreen:
return "fullscreen"
case .widescreen:
return "widescreen"
case .maxres:
return "maxres"
case .low:
return "low"
case .medium:
return "medium"
case .high:
return "high"
case .`default`:
return "default"
} }
} }
case standard case standard
case square case square
case rectangle case rectangle
case vertical
case fullscreen
case widescreen
case maxres
case low
case medium
case high
case `default`
} }
public enum ArtworkType : Int, CustomStringConvertible { public enum ArtworkType : Int, CustomStringConvertible {
@@ -38,6 +62,8 @@ public enum ArtworkType : Int, CustomStringConvertible {
return "episode" return "episode"
case .backdrop: case .backdrop:
return "backdrop" return "backdrop"
case .person:
return "person"
case .none: case .none:
return NSLocalizedString("None", comment: "Queue metadata search artwork type") return NSLocalizedString("None", comment: "Queue metadata search artwork type")
@@ -57,15 +83,34 @@ public enum ArtworkType : Int, CustomStringConvertible {
case season case season
case episode case episode
case backdrop case backdrop
case person
case none case none
} }
public struct Artwork { public struct Artwork: Equatable, Hashable {
public let url: URL public let url: URL
public let thumbURL: URL public let thumbURL: URL
public let service: String public let service: String
public let type: ArtworkType public let type: ArtworkType
public let size: ArtworkSize public let size: ArtworkSize
public static func == (lhs: Artwork, rhs: Artwork) -> Bool {
return lhs.url == rhs.url
}
public func hash(into hasher: inout Hasher) {
hasher.combine(url)
}
public static func unique(artworks: [Artwork]) -> [Artwork] {
var uniques = [Artwork]()
for artwork in artworks {
if !uniques.contains(artwork) {
uniques.append(artwork)
}
}
return uniques
}
} }
public enum MediaKind: Int { public enum MediaKind: Int {
@@ -38,6 +38,10 @@ class MetadataSearchViewController: ViewController, MetadataSearchControllerDele
view.addSubview(metadataViewController.view) view.addSubview(metadataViewController.view)
} }
override func viewDidAppear() {
self.view.window?.autorecalculatesKeyViewLoop = true
}
override func addChild(_ childViewController: NSViewController) { override func addChild(_ childViewController: NSViewController) {
childViewController.view.frame.size = view.frame.size childViewController.view.frame.size = view.frame.size
childViewController.view.autoresizingMask = [NSView.AutoresizingMask.width, NSView.AutoresizingMask.height] childViewController.view.autoresizingMask = [NSView.AutoresizingMask.width, NSView.AutoresizingMask.height]
+2 -2
View File
@@ -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="15504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15504"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
+5 -1
View File
@@ -7,6 +7,10 @@
import Cocoa import Cocoa
final class PopUpCellView : NSTableCellView { final class PopUpCellView : NSTableCellView, ExpandedTableViewCellActionable {
@IBOutlet var popUpButton: NSPopUpButton! @IBOutlet var popUpButton: NSPopUpButton!
func performAction() {
self.popUpButton.performClick(self)
}
} }
+8 -1
View File
@@ -151,6 +151,12 @@ enum Prefs {
@Stored(key: "SBForceHvc1", defaultValue: true) @Stored(key: "SBForceHvc1", defaultValue: true)
static var forceHvc1: Bool static var forceHvc1: Bool
@Stored(key: "SBArtworkSelectorZoomLevel", defaultValue: 50)
static var artworkSelectorZoomLevel: Float
@Stored(key: "SBMoviewArtworkSelectorZoomLevel", defaultValue: 50)
static var movieArtworkSelectorZoomLevel: Float
} }
enum MetadataPrefs { enum MetadataPrefs {
@@ -158,7 +164,8 @@ enum MetadataPrefs {
static func register() { static func register() {
ud.register(defaults: [_setMovieFormat, _setTVShowFormat, ud.register(defaults: [_setMovieFormat, _setTVShowFormat,
_movieImporter, _movieiTunesStoreLanguage, _movieImporter, _movieiTunesStoreLanguage,
_tvShowImporter, _tvShowiTunesStoreLanguage, _tvShowTheTVDBLanguage, _tvShowTheMovieDBLanguage, _tvShowImporter, _tvShowiTunesStoreLanguage,
_tvShowTheTVDBLanguage, _tvShowTheMovieDBLanguage,
_keepEmptyAnnotations, _keepImportedFilesMetadata]) _keepEmptyAnnotations, _keepImportedFilesMetadata])
} }
+2 -2
View File
@@ -8,7 +8,7 @@
import Cocoa import Cocoa
protocol ProgressViewControllerDelegate : AnyObject { protocol ProgressViewControllerDelegate : AnyObject {
func cancel() func cancelSave()
} }
final class ProgressViewController: NSViewController { final class ProgressViewController: NSViewController {
@@ -53,7 +53,7 @@ final class ProgressViewController: NSViewController {
} }
@IBAction func cancel(_ sender: Any) { @IBAction func cancel(_ sender: Any) {
delegate?.cancel() delegate?.cancelSave()
cancelButton.isEnabled = false cancelButton.isEnabled = false
} }
} }
+15 -14
View File
@@ -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="32700.99.1234" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22690"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -20,20 +20,21 @@
<outlet property="tabView" destination="10" id="nrf-df-lqq"/> <outlet property="tabView" destination="10" id="nrf-df-lqq"/>
<outlet property="tagsPopUp" destination="30" id="1v4-T2-oDW"/> <outlet property="tagsPopUp" destination="30" id="1v4-T2-oDW"/>
<outlet property="view" destination="1" id="2"/> <outlet property="view" destination="1" id="2"/>
<outlet property="zoomSlider" destination="235" id="Lbq-eP-7Mp"/>
</connections> </connections>
</customObject> </customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/> <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView misplaced="YES" id="1"> <customView id="1">
<rect key="frame" x="0.0" y="0.0" width="769" height="256"/> <rect key="frame" x="0.0" y="0.0" width="769" height="256"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews> <subviews>
<tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="10"> <tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="10">
<rect key="frame" x="-11" y="-12" width="791" height="240"/> <rect key="frame" x="-11" y="-12" width="791" height="263"/>
<tabViewItems> <tabViewItems>
<tabViewItem label="Metadata" identifier="1" id="11"> <tabViewItem label="Metadata" identifier="1" id="11">
<view key="view" id="12"> <view key="view" id="12">
<rect key="frame" x="10" y="25" width="771" height="202"/> <rect key="frame" x="10" y="25" width="771" height="156"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<popUpButton toolTip="Add a new metadata item" translatesAutoresizingMaskIntoConstraints="NO" id="30"> <popUpButton toolTip="Add a new metadata item" translatesAutoresizingMaskIntoConstraints="NO" id="30">
@@ -90,13 +91,13 @@
<accessibility description="Sets"/> <accessibility description="Sets"/>
</popUpButton> </popUpButton>
<scrollView autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r4i-wT-qDC"> <scrollView autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r4i-wT-qDC">
<rect key="frame" x="17" y="36" width="737" height="160"/> <rect key="frame" x="17" y="36" width="737" height="114"/>
<clipView key="contentView" id="cQT-bX-0YB"> <clipView key="contentView" id="cQT-bX-0YB">
<rect key="frame" x="1" y="1" width="735" height="158"/> <rect key="frame" x="1" y="1" width="735" height="112"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target"> <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="735" height="135"/> <rect key="frame" x="0.0" y="0.0" width="735" height="89"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="2"/> <size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -325,7 +326,7 @@
</tabViewItem> </tabViewItem>
<tabViewItem label="Artwork" identifier="Item 1" id="15"> <tabViewItem label="Artwork" identifier="Item 1" id="15">
<view key="view" id="16"> <view key="view" id="16">
<rect key="frame" x="10" y="25" width="771" height="248"/> <rect key="frame" x="10" y="25" width="771" height="225"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="223"> <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="223">
@@ -366,13 +367,13 @@
</connections> </connections>
</slider> </slider>
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WUe-C3-hRA"> <scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WUe-C3-hRA">
<rect key="frame" x="17" y="36" width="737" height="206"/> <rect key="frame" x="17" y="36" width="737" height="183"/>
<clipView key="contentView" id="jau-dn-6LI"> <clipView key="contentView" id="jau-dn-6LI">
<rect key="frame" x="1" y="1" width="735" height="204"/> <rect key="frame" x="1" y="1" width="735" height="181"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<collectionView selectable="YES" allowsMultipleSelection="YES" id="HHe-zs-flI" customClass="CollectionView" customModule="Subler" customModuleProvider="target"> <collectionView selectable="YES" allowsMultipleSelection="YES" id="HHe-zs-flI" customClass="CollectionView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="735" height="204"/> <rect key="frame" x="0.0" y="0.0" width="735" height="181"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES"/>
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="ofy-8i-tTx"> <collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="ofy-8i-tTx">
<size key="itemSize" width="280" height="224"/> <size key="itemSize" width="280" height="224"/>
@@ -391,7 +392,7 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</scroller> </scroller>
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="bD2-5M-Iiz"> <scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="bD2-5M-Iiz">
<rect key="frame" x="720" y="1" width="16" height="204"/> <rect key="frame" x="720" y="1" width="16" height="181"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</scroller> </scroller>
</scrollView> </scrollView>
+38 -36
View File
@@ -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="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -51,7 +51,7 @@
<customView translatesAutoresizingMaskIntoConstraints="NO" id="Drh-uk-1vk"> <customView translatesAutoresizingMaskIntoConstraints="NO" id="Drh-uk-1vk">
<rect key="frame" x="87" y="62" width="436" height="329"/> <rect key="frame" x="87" y="62" width="436" height="329"/>
<subviews> <subviews>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ifV-jn-Kjv"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ifV-jn-Kjv">
<rect key="frame" x="234" y="229" width="50" height="19"/> <rect key="frame" x="234" y="229" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="Iwt-Cm-ugd"/> <constraint firstAttribute="width" constant="50" id="Iwt-Cm-ugd"/>
@@ -70,7 +70,7 @@
<action selector="setPixelAspect:" target="-2" id="zHv-hb-Eln"/> <action selector="setPixelAspect:" target="-2" id="zHv-hb-Eln"/>
</connections> </connections>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="hz3-IH-Nfw"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="hz3-IH-Nfw">
<rect key="frame" x="18" y="305" width="141" height="14"/> <rect key="frame" x="18" y="305" width="141" height="14"/>
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Normal Size:" id="soD-gL-b4G"> <textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Normal Size:" id="soD-gL-b4G">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -78,7 +78,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="aqN-Ac-8cl"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="aqN-Ac-8cl">
<rect key="frame" x="289" y="305" width="35" height="14"/> <rect key="frame" x="289" y="305" width="35" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="6I1-7O-uon"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="6I1-7O-uon">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -86,7 +86,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wlV-Oh-ui5"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wlV-Oh-ui5">
<rect key="frame" x="234" y="193" width="50" height="19"/> <rect key="frame" x="234" y="193" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="sti-gZ-KkW"/> <constraint firstAttribute="width" constant="50" id="sti-gZ-KkW"/>
@@ -112,7 +112,7 @@
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
</buttonCell> </buttonCell>
</button> </button>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="j7N-eK-BGR"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="j7N-eK-BGR">
<rect key="frame" x="219" y="231" width="10" height="14"/> <rect key="frame" x="219" y="231" width="10" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="GfY-OY-SWL"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="GfY-OY-SWL">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -120,7 +120,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="n9M-HO-S4Z"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="n9M-HO-S4Z">
<rect key="frame" x="234" y="278" width="50" height="19"/> <rect key="frame" x="234" y="278" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="xBH-Oy-fCg"/> <constraint firstAttribute="width" constant="50" id="xBH-Oy-fCg"/>
@@ -139,7 +139,7 @@
<action selector="setSize:" target="-2" id="7p2-ss-WWu"/> <action selector="setSize:" target="-2" id="7p2-ss-WWu"/>
</connections> </connections>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Hh2-MV-toy"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Hh2-MV-toy">
<rect key="frame" x="164" y="305" width="50" height="14"/> <rect key="frame" x="164" y="305" width="50" height="14"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="46" id="PGv-gZ-TCI"/> <constraint firstAttribute="width" constant="46" id="PGv-gZ-TCI"/>
@@ -150,7 +150,7 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="ciI-zB-M6i"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="ciI-zB-M6i">
<rect key="frame" x="289" y="195" width="35" height="14"/> <rect key="frame" x="289" y="195" width="35" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="EQ0-oQ-E9J"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="EQ0-oQ-E9J">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -158,7 +158,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="IBC-4P-DBN"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="IBC-4P-DBN">
<rect key="frame" x="35" y="231" width="124" height="14"/> <rect key="frame" x="35" y="231" width="124" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Aspect Ratio:" id="Q8w-0e-NRr"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Aspect Ratio:" id="Q8w-0e-NRr">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -166,7 +166,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="lQe-jX-iRS"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="lQe-jX-iRS">
<rect key="frame" x="69" y="195" width="90" height="14"/> <rect key="frame" x="69" y="195" width="90" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Offset:" id="ubI-H1-utj"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Offset:" id="ubI-H1-utj">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -174,7 +174,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="YOz-mZ-420"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="YOz-mZ-420">
<rect key="frame" x="234" y="305" width="50" height="14"/> <rect key="frame" x="234" y="305" width="50" height="14"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="46" id="oX0-WH-XwB"/> <constraint firstAttribute="width" constant="46" id="oX0-WH-XwB"/>
@@ -185,7 +185,7 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qFL-0W-Ye6"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qFL-0W-Ye6">
<rect key="frame" x="164" y="193" width="50" height="19"/> <rect key="frame" x="164" y="193" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="KTL-ae-uEZ"/> <constraint firstAttribute="width" constant="50" id="KTL-ae-uEZ"/>
@@ -204,7 +204,7 @@
<action selector="setSize:" target="-2" id="wz0-CC-lEV"/> <action selector="setSize:" target="-2" id="wz0-CC-lEV"/>
</connections> </connections>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="drr-hJ-0St"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="drr-hJ-0St">
<rect key="frame" x="219" y="195" width="10" height="14"/> <rect key="frame" x="219" y="195" width="10" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="7Ug-k7-d7I"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="7Ug-k7-d7I">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -212,7 +212,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="jJB-Ty-mki"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="jJB-Ty-mki">
<rect key="frame" x="219" y="280" width="10" height="14"/> <rect key="frame" x="219" y="280" width="10" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="lgq-Fj-LB5"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="lgq-Fj-LB5">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -220,7 +220,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Q0D-6k-Hgx"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Q0D-6k-Hgx">
<rect key="frame" x="164" y="229" width="50" height="19"/> <rect key="frame" x="164" y="229" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="aRN-pI-KPe"/> <constraint firstAttribute="width" constant="50" id="aRN-pI-KPe"/>
@@ -239,7 +239,7 @@
<action selector="setPixelAspect:" target="-2" id="aTM-Xt-B1U"/> <action selector="setPixelAspect:" target="-2" id="aTM-Xt-B1U"/>
</connections> </connections>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="r90-c5-7PH"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="r90-c5-7PH">
<rect key="frame" x="164" y="278" width="50" height="19"/> <rect key="frame" x="164" y="278" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="03n-DI-SjQ"/> <constraint firstAttribute="width" constant="50" id="03n-DI-SjQ"/>
@@ -280,7 +280,7 @@
<action selector="setTrackAlternateGroup:" target="-2" id="EMY-4A-sdg"/> <action selector="setTrackAlternateGroup:" target="-2" id="EMY-4A-sdg"/>
</connections> </connections>
</popUpButton> </popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="QID-3k-PHK"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="QID-3k-PHK">
<rect key="frame" x="219" y="305" width="10" height="14"/> <rect key="frame" x="219" y="305" width="10" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="ILN-KP-l0z"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="ILN-KP-l0z">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -288,7 +288,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="AEE-SG-UWs"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="AEE-SG-UWs">
<rect key="frame" x="41" y="280" width="118" height="14"/> <rect key="frame" x="41" y="280" width="118" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Scaled Size:" id="1O9-J3-Plk"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Scaled Size:" id="1O9-J3-Plk">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -296,7 +296,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="BeZ-s7-H0q"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="BeZ-s7-H0q">
<rect key="frame" x="289" y="280" width="35" height="14"/> <rect key="frame" x="289" y="280" width="35" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="7as-HC-onR"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="7as-HC-onR">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -304,7 +304,7 @@
<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" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="HtH-F7-8Bv"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="HtH-F7-8Bv">
<rect key="frame" x="18" y="170" width="141" height="14"/> <rect key="frame" x="18" y="170" width="141" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Alternate Group:" id="Fye-Hi-zqu"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Alternate Group:" id="Fye-Hi-zqu">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -315,7 +315,7 @@
<customView translatesAutoresizingMaskIntoConstraints="NO" id="z7f-vJ-7sb" userLabel="Forced"> <customView translatesAutoresizingMaskIntoConstraints="NO" id="z7f-vJ-7sb" userLabel="Forced">
<rect key="frame" x="0.0" y="116" width="436" height="46"/> <rect key="frame" x="0.0" y="116" width="436" height="46"/>
<subviews> <subviews>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="cbR-yR-H9l"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="cbR-yR-H9l">
<rect key="frame" x="18" y="29" width="141" height="14"/> <rect key="frame" x="18" y="29" width="141" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Forced:" id="gMo-yz-dz5"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Forced:" id="gMo-yz-dz5">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -325,9 +325,6 @@
</textField> </textField>
<popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="ERY-K2-cCj"> <popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="ERY-K2-cCj">
<rect key="frame" x="160" y="24" width="198" height="22"/> <rect key="frame" x="160" y="24" width="198" height="22"/>
<constraints>
<constraint firstAttribute="width" constant="190" id="tR3-Ay-aDb"/>
</constraints>
<popUpButtonCell key="cell" type="push" title="No" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="KOg-FR-dr6" id="Tx6-IV-D1K"> <popUpButtonCell key="cell" type="push" title="No" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="KOg-FR-dr6" id="Tx6-IV-D1K">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -339,6 +336,9 @@
</items> </items>
</menu> </menu>
</popUpButtonCell> </popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="190" id="tR3-Ay-aDb"/>
</constraints>
<connections> <connections>
<accessibilityConnection property="title" destination="cbR-yR-H9l" id="GZC-Cu-awU"/> <accessibilityConnection property="title" destination="cbR-yR-H9l" id="GZC-Cu-awU"/>
<action selector="setForcedSubtitles:" target="-2" id="n1Z-pH-esH"/> <action selector="setForcedSubtitles:" target="-2" id="n1Z-pH-esH"/>
@@ -360,7 +360,7 @@
<action selector="setForcedTrack:" target="-2" id="kGE-XO-FuP"/> <action selector="setForcedTrack:" target="-2" id="kGE-XO-FuP"/>
</connections> </connections>
</popUpButton> </popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="fwe-5g-QAo"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="fwe-5g-QAo">
<rect key="frame" x="85" y="7" width="74" height="14"/> <rect key="frame" x="85" y="7" width="74" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Forced track:" id="NPR-jz-Ile"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Forced track:" id="NPR-jz-Ile">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -386,7 +386,7 @@
<customView translatesAutoresizingMaskIntoConstraints="NO" id="fPE-Ll-kGD" userLabel="Color"> <customView translatesAutoresizingMaskIntoConstraints="NO" id="fPE-Ll-kGD" userLabel="Color">
<rect key="frame" x="0.0" y="92" width="436" height="24"/> <rect key="frame" x="0.0" y="92" width="436" height="24"/>
<subviews> <subviews>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="xfb-DL-1Pr"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="xfb-DL-1Pr">
<rect key="frame" x="18" y="7" width="141" height="13"/> <rect key="frame" x="18" y="7" width="141" height="13"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Color Space:" id="BZv-h3-OMk"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Color Space:" id="BZv-h3-OMk">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -396,9 +396,6 @@
</textField> </textField>
<popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="RpH-28-y5s"> <popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="RpH-28-y5s">
<rect key="frame" x="160" y="2" width="198" height="22"/> <rect key="frame" x="160" y="2" width="198" height="22"/>
<constraints>
<constraint firstAttribute="width" constant="190" id="8ks-py-KoB"/>
</constraints>
<popUpButtonCell key="cell" type="push" title="Implicit" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="6PY-Np-Y3s" id="G6U-LQ-v4b"> <popUpButtonCell key="cell" type="push" title="Implicit" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="6PY-Np-Y3s" id="G6U-LQ-v4b">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -414,9 +411,14 @@
<menuItem title="P3-DCI (11-17-6)" tag="8" id="z4V-UV-xor"/> <menuItem title="P3-DCI (11-17-6)" tag="8" id="z4V-UV-xor"/>
<menuItem title="P3-D65 (12-17-6)" tag="9" id="fNy-M4-iaz"/> <menuItem title="P3-D65 (12-17-6)" tag="9" id="fNy-M4-iaz"/>
<menuItem title="sRGB (1-13-1)" tag="10" id="l0E-aL-LGd"/> <menuItem title="sRGB (1-13-1)" tag="10" id="l0E-aL-LGd"/>
<menuItem title="IPT-C2 (9-16-15)" tag="11" id="J66-Ah-thQ"/>
<menuItem title="Undefined (2-2-2)" tag="12" id="Pxl-vS-IAs"/>
</items> </items>
</menu> </menu>
</popUpButtonCell> </popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="190" id="8ks-py-KoB"/>
</constraints>
<connections> <connections>
<accessibilityConnection property="title" destination="xfb-DL-1Pr" id="OIM-4J-sWM"/> <accessibilityConnection property="title" destination="xfb-DL-1Pr" id="OIM-4J-sWM"/>
<action selector="setColorProfile:" target="-2" id="xtd-k4-x1K"/> <action selector="setColorProfile:" target="-2" id="xtd-k4-x1K"/>
@@ -435,7 +437,7 @@
<customView translatesAutoresizingMaskIntoConstraints="NO" id="7i2-3m-yRg" userLabel="H.264 Profile"> <customView translatesAutoresizingMaskIntoConstraints="NO" id="7i2-3m-yRg" userLabel="H.264 Profile">
<rect key="frame" x="0.0" y="0.0" width="436" height="91"/> <rect key="frame" x="0.0" y="0.0" width="436" height="91"/>
<subviews> <subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="oWm-9L-JdB"> <textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="oWm-9L-JdB">
<rect key="frame" x="162" y="6" width="256" height="60"/> <rect key="frame" x="162" y="6" width="256" height="60"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="60" id="ftG-DD-6CD"/> <constraint firstAttribute="height" constant="60" id="ftG-DD-6CD"/>
@@ -449,9 +451,6 @@
</textField> </textField>
<popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="b24-td-FnZ"> <popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="b24-td-FnZ">
<rect key="frame" x="160" y="69" width="259" height="22"/> <rect key="frame" x="160" y="69" width="259" height="22"/>
<constraints>
<constraint firstAttribute="width" constant="251" id="ALj-JO-YYW"/>
</constraints>
<popUpButtonCell key="cell" type="push" title="Current profile: unknown" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="NIA-f8-VWx" id="Ehv-0f-dPW"> <popUpButtonCell key="cell" type="push" title="Current profile: unknown" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="NIA-f8-VWx" id="Ehv-0f-dPW">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -470,12 +469,15 @@
</items> </items>
</menu> </menu>
</popUpButtonCell> </popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="251" id="ALj-JO-YYW"/>
</constraints>
<connections> <connections>
<accessibilityConnection property="title" destination="jin-Xn-WJl" id="xvo-aC-czO"/> <accessibilityConnection property="title" destination="jin-Xn-WJl" id="xvo-aC-czO"/>
<action selector="setProfileLevel:" target="-2" id="fhj-D3-61K"/> <action selector="setProfileLevel:" target="-2" id="fhj-D3-61K"/>
</connections> </connections>
</popUpButton> </popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="jin-Xn-WJl"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="jin-Xn-WJl">
<rect key="frame" x="18" y="74" width="141" height="14"/> <rect key="frame" x="18" y="74" width="141" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="H.264 Video Profile/Level:" id="nrd-22-FZl"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="H.264 Video Profile/Level:" id="nrd-22-FZl">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
+18 -6
View File
@@ -62,6 +62,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
private let standardSize = NSSize(width: 280, height: 224) private let standardSize = NSSize(width: 280, height: 224)
@IBOutlet var removeArtworkButton: NSButton! @IBOutlet var removeArtworkButton: NSButton!
@IBOutlet var zoomSlider: NSSlider!
@IBOutlet var artworksView: CollectionView! @IBOutlet var artworksView: CollectionView!
override var nibName: NSNib.Name? { override var nibName: NSNib.Name? {
@@ -117,6 +118,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
columnWidth = column.width columnWidth = column.width
metadataTableView.defaultEditingColumn = 1
metadataTableView.doubleAction = #selector(doubleClickAction(_:)) metadataTableView.doubleAction = #selector(doubleClickAction(_:))
metadataTableView.target = self metadataTableView.target = self
metadataTableView.pasteboardTypes = [.metadataDragType] metadataTableView.pasteboardTypes = [.metadataDragType]
@@ -134,6 +136,12 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
reloadData() reloadData()
} }
override func viewWillAppear() {
let zoomValue = Prefs.movieArtworkSelectorZoomLevel
setZoomValue(zoomValue)
zoomSlider.floatValue = zoomValue
}
private func reloadData() { private func reloadData() {
rowHeights.removeAll(keepingCapacity: true) rowHeights.removeAll(keepingCapacity: true)
updateMetadataArray() updateMetadataArray()
@@ -1254,24 +1262,28 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
} }
} }
@IBAction func zoomSliderDidChange(_ sender: NSControl) { private func setZoomValue(_ newZoomValue: Float) {
let floatValue = CGFloat(sender.floatValue)
if let layout = artworksView.collectionViewLayout as? NSCollectionViewFlowLayout { if let layout = artworksView.collectionViewLayout as? NSCollectionViewFlowLayout {
if floatValue == 50 { if newZoomValue == 50 {
layout.itemSize = standardSize layout.itemSize = standardSize
} else if floatValue < 50 { } else if newZoomValue < 50 {
let zoomValue = (floatValue + 50) / 100 let zoomValue = (CGFloat(newZoomValue) + 50) / 100
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue), layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
height: Int(standardSize.height * zoomValue)) height: Int(standardSize.height * zoomValue))
} else { } else {
let zoomValue = pow((floatValue + 50) / 100, 2.4) let zoomValue = pow((CGFloat(newZoomValue) + 50) / 100, 2.4)
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue), layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
height: Int(standardSize.height * zoomValue)) height: Int(standardSize.height * zoomValue))
} }
} }
} }
@IBAction func zoomSliderDidChange(_ sender: NSControl) {
setZoomValue(sender.floatValue)
Prefs.movieArtworkSelectorZoomLevel = sender.floatValue
}
func collectionViewDelete(in collectionView: NSCollectionView) { func collectionViewDelete(in collectionView: NSCollectionView) {
removeArtwork(self) removeArtwork(self)
} }
@@ -143,6 +143,10 @@ final class VideoViewController: PropertyView {
return NSLocalizedString("P3-D65 (12-17-6)", comment: "color profile") return NSLocalizedString("P3-D65 (12-17-6)", comment: "color profile")
case (1, 13, 1): case (1, 13, 1):
return NSLocalizedString("sRGB (1-13-1)", comment: "color profile") return NSLocalizedString("sRGB (1-13-1)", comment: "color profile")
case (9, 16, 15):
return NSLocalizedString("IPT-C2 (9-16-15)", comment: "color profile")
case (2, 2, 2):
return NSLocalizedString("Undefined (2-2-2)", comment: "color profile")
default: default:
return "\(colorTag.0)-\(colorTag.1)-\(colorTag.2)" return "\(colorTag.0)-\(colorTag.1)-\(colorTag.2)"
} }
@@ -192,7 +196,7 @@ final class VideoViewController: PropertyView {
if track.format == kMP42VideoCodecType_H264 || track.format == kMP42VideoCodecType_MPEG4Video || if track.format == kMP42VideoCodecType_H264 || track.format == kMP42VideoCodecType_MPEG4Video ||
track.format == kMP42VideoCodecType_HEVC || track.format == kMP42VideoCodecType_HEVC_PSinBitstream || track.format == kMP42VideoCodecType_HEVC || track.format == kMP42VideoCodecType_HEVC_PSinBitstream ||
track.format == kMP42VideoCodecType_VVC || track.format == kMP42VideoCodecType_VVC_PSinBitstream || track.format == kMP42VideoCodecType_VVC || track.format == kMP42VideoCodecType_VVC_PSinBitstream ||
track.format == kMP42VideoCodecType_AV1 { track.format == kMP42VideoCodecType_AV1 || track.format == kMP42VideoCodecType_DolbyVisionHEVC {
colorView.isHidden = false colorView.isHidden = false
colorHeight.constant = 24 colorHeight.constant = 24
@@ -330,6 +334,10 @@ final class VideoViewController: PropertyView {
colorTag = (12, 17, 6) colorTag = (12, 17, 6)
case 10: case 10:
colorTag = (1, 13, 1) colorTag = (1, 13, 1)
case 11:
colorTag = (9, 16, 15)
case 12:
colorTag = (2, 2, 2)
default: default:
return return
} }
+2
View File
@@ -61,6 +61,8 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
window?.toolbarStyle = .unified window?.toolbarStyle = .unified
} }
toolbarDelegate.target = self
let toolbar = NSToolbar(identifier: "SublerQueueToolbar") let toolbar = NSToolbar(identifier: "SublerQueueToolbar")
toolbar.delegate = toolbarDelegate toolbar.delegate = toolbarDelegate
toolbar.allowsUserCustomization = true toolbar.allowsUserCustomization = true
+5
View File
@@ -15,6 +15,8 @@ extension NSToolbarItem.Identifier {
class QueueToolbarDelegate: NSObject, NSToolbarDelegate { class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
weak var target: AnyObject?
@MainActor func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? { @MainActor func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? {
if itemIdentifier == .queueAdd { if itemIdentifier == .queueAdd {
@@ -23,6 +25,7 @@ class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Add an item to the queue", comment: "Toolbar"), toolTip: NSLocalizedString("Add an item to the queue", comment: "Toolbar"),
image: "NSAddTemplate", image: "NSAddTemplate",
symbolName: "plus", symbolName: "plus",
target: target,
action: #selector(QueueController.open(_:))) action: #selector(QueueController.open(_:)))
} else if itemIdentifier == .queueSettings { } else if itemIdentifier == .queueSettings {
return ButtonToolbarItem(itemIdentifier: itemIdentifier, return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -30,6 +33,7 @@ class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Show/Hide settings", comment: "Toolbar"), toolTip: NSLocalizedString("Show/Hide settings", comment: "Toolbar"),
image: "NSActionTemplate", image: "NSActionTemplate",
symbolName: "ellipsis.circle", symbolName: "ellipsis.circle",
target: target,
action: #selector(QueueController.toggleOptions(_:))) action: #selector(QueueController.toggleOptions(_:)))
} else if itemIdentifier == .queueStartStop { } else if itemIdentifier == .queueStartStop {
return ButtonToolbarItem(itemIdentifier: itemIdentifier, return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -37,6 +41,7 @@ class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Start/Stop queue", comment: "Toolbar"), toolTip: NSLocalizedString("Start/Stop queue", comment: "Toolbar"),
image: "playBackTemplate", image: "playBackTemplate",
symbolName: "play.fill", symbolName: "play.fill",
target: target,
action: #selector(QueueController.toggleStartStop(_:))) action: #selector(QueueController.toggleStartStop(_:)))
} }
+2 -2
View File
@@ -130,7 +130,7 @@
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string> <string>${EXECUTABLE_NAME}</string>
<key>CFBundleGetInfoString</key> <key>CFBundleGetInfoString</key>
<string>$(MARKETING_VERSION), Copyright 2024 Damiano Galassi</string> <string>$(MARKETING_VERSION), Copyright 2025 Damiano Galassi</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
@@ -152,7 +152,7 @@
<key>NSAppleScriptEnabled</key> <key>NSAppleScriptEnabled</key>
<true/> <true/>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>
<string>Copyright © 2009-2024, Damiano Galassi</string> <string>Copyright © 2009-2025, Damiano Galassi</string>
<key>NSMainNibFile</key> <key>NSMainNibFile</key>
<string>MainMenu</string> <string>MainMenu</string>
<key>NSPrincipalClass</key> <key>NSPrincipalClass</key>
+22
View File
@@ -1,10 +1,32 @@
# Subler News # Subler News
## Subler 1.8.7
- Preserves additional metadata from Matroska
- Fixed a regression tha made the "Send to queue" and "Queue" toolbar button unclickable
## Subler 1.8.6
- Added a "Check only selected track" contextual menu item in the importer sheet [karstenBriksoft]
- Added ability to set imported multichannel AAC track to Passthru + AAC [sxflynn]
- Added IPT-C2 and Undefined color profiles
- Improved the artworks views to make them remember the zoom level
- Improved the behaviour of a cancelled save operation to avoid running an optimize pass
- Fixed the issue where Apple TV metadata isn't returned for TV/Movies that Apple doesn't currently sell in the given region [Mock1]
## Subler 1.8.5
- Improved keyboard navigation in the document window
- Fixed FLAC audio decoding
## Subler 1.8.4 ## Subler 1.8.4
- Fixed metadata copy & paste - Fixed metadata copy & paste
## Subler 1.8.3 ## Subler 1.8.3
- Reworked windows toolbars - Reworked windows toolbars
+16
View File
@@ -8,3 +8,19 @@ Subler is an Mac OS X app created to mux and tag mp4 files. The main features in
* Mux video, audio, chapters, subtitles and closed captions tracks from mov, mp4 and mkv. * Mux video, audio, chapters, subtitles and closed captions tracks from mov, mp4 and mkv.
* Raw formats: H.264 Elementary streams (.h264, .264), AAC (.aac), AC3 (.ac3), Scenarist (.scc), VobSub? (.idx). * Raw formats: H.264 Elementary streams (.h264, .264), AAC (.aac), AC3 (.ac3), Scenarist (.scc), VobSub? (.idx).
* metadata editing and TMDb, TVDB and iTunes Store support. * metadata editing and TMDb, TVDB and iTunes Store support.
### Build and run
Clone the repository and include all submodules
```
git clone --recurse-submodules https://github.com/SublerApp/Subler.git
```
If you already cloned without submodules and need to add the submodules manually, `cd` into the `./Subler` directory and clone the dependency submodules with
```
git submodule update --init --recursive
```
Open `Subler.xcodeproj` in XCode
Build and run the project by selecting the 'Subler' scheme (`Product` -> `Scheme` -> `Subler`) and clicking the 'Run' button in Xcode’s toolbar.
+445
View File
@@ -0,0 +1,445 @@
{
"data" : {
"AE" : {
"localesSupported" : [ "en_GB", "ar_AE" ],
"storefrontId" : 143481
},
"AG" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143540
},
"AI" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143538
},
"AM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143524
},
"AR" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143505
},
"AT" : {
"localesSupported" : [ "en_GB", "de_DE" ],
"storefrontId" : 143445
},
"AU" : {
"localesSupported" : [ "en_AU" ],
"storefrontId" : 143460
},
"AZ" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143568
},
"BE" : {
"localesSupported" : [ "nl_NL", "en_GB", "fr_FR" ],
"storefrontId" : 143446
},
"BG" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143526
},
"BH" : {
"localesSupported" : [ "en_GB", "ar_BH" ],
"storefrontId" : 143559
},
"BM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143542
},
"BN" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143560
},
"BO" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143556
},
"BR" : {
"localesSupported" : [ "en_GB", "pt_BR" ],
"storefrontId" : 143503
},
"BS" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143539
},
"BW" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143525
},
"BY" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143565
},
"BZ" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143555
},
"CA" : {
"localesSupported" : [ "fr_CA", "en_CA" ],
"storefrontId" : 143455
},
"CH" : {
"localesSupported" : [ "de_DE", "fr_FR", "de_CH", "en_GB", "it_IT" ],
"storefrontId" : 143459
},
"CL" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143483
},
"CO" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143501
},
"CR" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143495
},
"CV" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143580
},
"CY" : {
"localesSupported" : [ "tr_TR", "en_GB", "el_GR" ],
"storefrontId" : 143557
},
"CZ" : {
"localesSupported" : [ "en_GB", "cs_CZ" ],
"storefrontId" : 143489
},
"DE" : {
"localesSupported" : [ "en_GB", "de_DE" ],
"storefrontId" : 143443
},
"DK" : {
"localesSupported" : [ "en_GB", "da_DK" ],
"storefrontId" : 143458
},
"DM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143545
},
"DO" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143508
},
"EC" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143509
},
"EE" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143518
},
"EG" : {
"localesSupported" : [ "en_GB", "ar_EG" ],
"storefrontId" : 143516
},
"ES" : {
"localesSupported" : [ "ca_ES", "en_GB", "es_ES" ],
"storefrontId" : 143454
},
"FI" : {
"localesSupported" : [ "fi_FI", "en_GB" ],
"storefrontId" : 143447
},
"FJ" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143583
},
"FM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143591
},
"FR" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143442
},
"GB" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143444
},
"GD" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143546
},
"GH" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143573
},
"GM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143584
},
"GR" : {
"localesSupported" : [ "el_GR", "en_GB" ],
"storefrontId" : 143448
},
"GT" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143504
},
"GW" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143585
},
"HK" : {
"localesSupported" : [ "yue_Hant", "en_GB", "zh_Hant" ],
"storefrontId" : 143463
},
"HN" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143510
},
"HU" : {
"localesSupported" : [ "en_GB", "hu_HU" ],
"storefrontId" : 143482
},
"ID" : {
"localesSupported" : [ "en_GB", "id_ID" ],
"storefrontId" : 143476
},
"IE" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143449
},
"IL" : {
"localesSupported" : [ "en_GB", "iw_IL" ],
"storefrontId" : 143491
},
"IN" : {
"localesSupported" : [ "en_GB", "hi_IN" ],
"storefrontId" : 143467
},
"IT" : {
"localesSupported" : [ "it_IT", "en_GB" ],
"storefrontId" : 143450
},
"JO" : {
"localesSupported" : [ "en_GB", "ar_JO" ],
"storefrontId" : 143528
},
"JP" : {
"localesSupported" : [ "en_US", "ja_JP" ],
"storefrontId" : 143462
},
"KH" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143579
},
"KN" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143548
},
"KR" : {
"localesSupported" : [ "en_GB", "ko_KR" ],
"storefrontId" : 143466
},
"KY" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143544
},
"LA" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143587
},
"LB" : {
"localesSupported" : [ "en_GB", "ar_LB" ],
"storefrontId" : 143497
},
"LK" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143486
},
"LT" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143520
},
"LU" : {
"localesSupported" : [ "en_GB", "de_DE", "fr_FR" ],
"storefrontId" : 143451
},
"LV" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143519
},
"MD" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143523
},
"MN" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143592
},
"MO" : {
"localesSupported" : [ "yue_Hant", "en_GB", "zh_Hant" ],
"storefrontId" : 143515
},
"MT" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143521
},
"MU" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143533
},
"MX" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143468
},
"MY" : {
"localesSupported" : [ "ms_MY", "en_GB" ],
"storefrontId" : 143473
},
"MZ" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143593
},
"NA" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143594
},
"NE" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143534
},
"NI" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143512
},
"NL" : {
"localesSupported" : [ "en_GB", "nl_NL" ],
"storefrontId" : 143452
},
"NO" : {
"localesSupported" : [ "nb_NO", "en_GB" ],
"storefrontId" : 143457
},
"NZ" : {
"localesSupported" : [ "en_GB", "en_AU" ],
"storefrontId" : 143461
},
"OM" : {
"localesSupported" : [ "ar_OM", "en_GB" ],
"storefrontId" : 143562
},
"PA" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143485
},
"PE" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143507
},
"PH" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143474
},
"PL" : {
"localesSupported" : [ "en_GB", "pl_PL" ],
"storefrontId" : 143478
},
"PT" : {
"localesSupported" : [ "en_GB", "pt_PT" ],
"storefrontId" : 143453
},
"PY" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143513
},
"QA" : {
"localesSupported" : [ "ar_QA", "en_GB" ],
"storefrontId" : 143498
},
"RU" : {
"localesSupported" : [ "en_GB", "uk_UA", "ru_RU" ],
"storefrontId" : 143469
},
"SA" : {
"localesSupported" : [ "ar_SA", "en_GB" ],
"storefrontId" : 143479
},
"SE" : {
"localesSupported" : [ "en_GB", "sv_SE" ],
"storefrontId" : 143456
},
"SG" : {
"localesSupported" : [ "zh_Hans", "en_GB" ],
"storefrontId" : 143464
},
"SI" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143499
},
"SK" : {
"localesSupported" : [ "en_GB", "sk_SK" ],
"storefrontId" : 143496
},
"SV" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143506
},
"SZ" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143602
},
"TH" : {
"localesSupported" : [ "en_GB", "th_TH" ],
"storefrontId" : 143475
},
"TJ" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143603
},
"TM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143604
},
"TR" : {
"localesSupported" : [ "en_GB", "tr_TR" ],
"storefrontId" : 143480
},
"TT" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143551
},
"TW" : {
"localesSupported" : [ "en_GB", "zh_Hant" ],
"storefrontId" : 143470
},
"UA" : {
"localesSupported" : [ "en_GB", "uk_UA", "ru_RU" ],
"storefrontId" : 143492
},
"UG" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143537
},
"US" : {
"localesSupported" : [ "en_US", "es_MX" ],
"storefrontId" : 143441
},
"VE" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143502
},
"VG" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143543
},
"VN" : {
"localesSupported" : [ "vi_VI", "en_GB" ],
"storefrontId" : 143471
},
"ZA" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143472
},
"ZW" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143605
}
}
}
+21 -5
View File
@@ -86,6 +86,7 @@
A99189D11F2F88F700623ED7 /* ChapterSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */; }; A99189D11F2F88F700623ED7 /* ChapterSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */; };
A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A997B0A91F348AB000974C9C /* MetadataSearchController.swift */; }; A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A997B0A91F348AB000974C9C /* MetadataSearchController.swift */; };
A998DABF1BA54CFF004D7969 /* MediaTagsController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A998DABD1BA54CFF004D7969 /* MediaTagsController.xib */; }; A998DABF1BA54CFF004D7969 /* MediaTagsController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A998DABD1BA54CFF004D7969 /* MediaTagsController.xib */; };
A99B7FD82D53764F0027BCB5 /* AppleTVv3.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99B7FD72D53764F0027BCB5 /* AppleTVv3.swift */; };
A99D23212029CD32002E7F27 /* PrefsWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99D23202029CD32002E7F27 /* PrefsWindow.swift */; }; A99D23212029CD32002E7F27 /* PrefsWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99D23202029CD32002E7F27 /* PrefsWindow.swift */; };
A9A4A966202F51FA00482D12 /* SaveOptions.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9A4A968202F51FA00482D12 /* SaveOptions.xib */; }; A9A4A966202F51FA00482D12 /* SaveOptions.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9A4A968202F51FA00482D12 /* SaveOptions.xib */; };
A9A4A96B202F51FF00482D12 /* ProgressViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9A4A96D202F51FF00482D12 /* ProgressViewController.xib */; }; A9A4A96B202F51FF00482D12 /* ProgressViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9A4A96D202F51FF00482D12 /* ProgressViewController.xib */; };
@@ -115,6 +116,8 @@
A9C3E44A205C07F4004DE24E /* OptionsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C3E449205C07F4004DE24E /* OptionsViewController.swift */; }; A9C3E44A205C07F4004DE24E /* OptionsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C3E449205C07F4004DE24E /* OptionsViewController.swift */; };
A9C5FA7419FA2FEC0051F3FF /* SBActivityWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C5FA7219FA2FEC0051F3FF /* SBActivityWindow.xib */; }; A9C5FA7419FA2FEC0051F3FF /* SBActivityWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C5FA7219FA2FEC0051F3FF /* SBActivityWindow.xib */; };
A9C73536206B8F9900794673 /* QueuePreferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C73535206B8F9900794673 /* QueuePreferences.swift */; }; A9C73536206B8F9900794673 /* QueuePreferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C73535206B8F9900794673 /* QueuePreferences.swift */; };
A9CB19022D10415D0074DC9F /* Storefronts.json in Resources */ = {isa = PBXBuildFile; fileRef = A9CB19012D10415D0074DC9F /* Storefronts.json */; };
A9CB19052D10417D0074DC9F /* Alpha2.json in Resources */ = {isa = PBXBuildFile; fileRef = A9CB19042D10417D0074DC9F /* Alpha2.json */; };
A9CBAB1E1F29C083001C26B3 /* MetadataImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */; }; A9CBAB1E1F29C083001C26B3 /* MetadataImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */; };
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9D4B8651C05BD04007845C4 /* SBChapterSearch.xib */; }; A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9D4B8651C05BD04007845C4 /* SBChapterSearch.xib */; };
A9D64527202CA92400BA172B /* SaveOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D64525202CA92400BA172B /* SaveOptions.swift */; }; A9D64527202CA92400BA172B /* SaveOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D64525202CA92400BA172B /* SaveOptions.swift */; };
@@ -351,6 +354,7 @@
A99189CC1F2F87EC00623ED7 /* ChapterImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterImporter.swift; path = Classes/MetadataImporters/ChapterImporter.swift; sourceTree = "<group>"; }; 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>"; }; 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>"; }; A997B0A91F348AB000974C9C /* MetadataSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataSearchController.swift; path = Classes/MetadataSearchController.swift; sourceTree = "<group>"; };
A99B7FD72D53764F0027BCB5 /* AppleTVv3.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppleTVv3.swift; path = Classes/MetadataImporters/AppleTVv3.swift; sourceTree = "<group>"; };
A99D23202029CD32002E7F27 /* PrefsWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PrefsWindow.swift; path = Classes/PrefsWindow.swift; sourceTree = "<group>"; }; A99D23202029CD32002E7F27 /* PrefsWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PrefsWindow.swift; path = Classes/PrefsWindow.swift; sourceTree = "<group>"; };
A9A4A967202F51FA00482D12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SaveOptions.xib; sourceTree = "<group>"; }; A9A4A967202F51FA00482D12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SaveOptions.xib; sourceTree = "<group>"; };
A9A4A96C202F51FF00482D12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ProgressViewController.xib; sourceTree = "<group>"; }; A9A4A96C202F51FF00482D12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ProgressViewController.xib; sourceTree = "<group>"; };
@@ -391,6 +395,8 @@
A9C31E632029A82200CEF474 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/AdvancedPrefsViewController.xib; sourceTree = "<group>"; }; A9C31E632029A82200CEF474 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/AdvancedPrefsViewController.xib; sourceTree = "<group>"; };
A9C3E449205C07F4004DE24E /* OptionsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OptionsViewController.swift; path = Classes/OptionsViewController.swift; sourceTree = "<group>"; }; A9C3E449205C07F4004DE24E /* OptionsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OptionsViewController.swift; path = Classes/OptionsViewController.swift; sourceTree = "<group>"; };
A9C73535206B8F9900794673 /* QueuePreferences.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = QueuePreferences.swift; path = Classes/QueuePreferences.swift; sourceTree = "<group>"; }; A9C73535206B8F9900794673 /* QueuePreferences.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = QueuePreferences.swift; path = Classes/QueuePreferences.swift; sourceTree = "<group>"; };
A9CB19012D10415D0074DC9F /* Storefronts.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = Storefronts.json; sourceTree = "<group>"; };
A9CB19042D10417D0074DC9F /* Alpha2.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = Alpha2.json; sourceTree = "<group>"; };
A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataImporter.swift; path = Classes/MetadataImporters/MetadataImporter.swift; 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>"; }; A9D64525202CA92400BA172B /* SaveOptions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SaveOptions.swift; path = Classes/SaveOptions.swift; sourceTree = "<group>"; };
A9DA03E122A0211C0056AE7B /* OCRPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OCRPrefsViewController.swift; path = Classes/OCRPrefsViewController.swift; sourceTree = "<group>"; }; A9DA03E122A0211C0056AE7B /* OCRPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OCRPrefsViewController.swift; path = Classes/OCRPrefsViewController.swift; sourceTree = "<group>"; };
@@ -530,6 +536,8 @@
089C165FFE840EACC02AAC07 /* InfoPlist.strings */, 089C165FFE840EACC02AAC07 /* InfoPlist.strings */,
8D15AC360486D014006FF6A4 /* Info.plist */, 8D15AC360486D014006FF6A4 /* Info.plist */,
CDE8E451174CBBD4009410B5 /* iTunesStores.json */, CDE8E451174CBBD4009410B5 /* iTunesStores.json */,
A9CB19012D10415D0074DC9F /* Storefronts.json */,
A9CB19042D10417D0074DC9F /* Alpha2.json */,
A97FA42123E9877900EE5833 /* Ratings.json */, A97FA42123E9877900EE5833 /* Ratings.json */,
A94A6A581ED1C5CA00049F7D /* ParseFilename */, A94A6A581ED1C5CA00049F7D /* ParseFilename */,
); );
@@ -705,6 +713,7 @@
A97FA41D23E9837000EE5833 /* Ratings.swift */, A97FA41D23E9837000EE5833 /* Ratings.swift */,
A9E97F131F274F1100DBA586 /* iTunesStore.swift */, A9E97F131F274F1100DBA586 /* iTunesStore.swift */,
A90B094B235614D200F1B191 /* AppleTV.swift */, A90B094B235614D200F1B191 /* AppleTV.swift */,
A99B7FD72D53764F0027BCB5 /* AppleTVv3.swift */,
A98D98451F0280CB00A77ABC /* TheMovieDB.swift */, A98D98451F0280CB00A77ABC /* TheMovieDB.swift */,
A98D98471F02820F00A77ABC /* TheMovieDBService.swift */, A98D98471F02820F00A77ABC /* TheMovieDBService.swift */,
A9B514181EFC12310055A035 /* TheTVDB.swift */, A9B514181EFC12310055A035 /* TheTVDB.swift */,
@@ -752,7 +761,7 @@
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
BuildIndependentTargetsInParallel = YES; BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1540; LastUpgradeCheck = 1620;
TargetAttributes = { TargetAttributes = {
8D15AC270486D014006FF6A4 = { 8D15AC270486D014006FF6A4 = {
LastSwiftMigration = 1020; LastSwiftMigration = 1020;
@@ -821,6 +830,7 @@
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */, A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */,
A9CB19022D10415D0074DC9F /* Storefronts.json in Resources */,
A9AB486617F0AEFD000AA72E /* MovieView.xib in Resources */, A9AB486617F0AEFD000AA72E /* MovieView.xib in Resources */,
A9C31E5D2029A79000CEF474 /* GeneralPrefsViewController.xib in Resources */, A9C31E5D2029A79000CEF474 /* GeneralPrefsViewController.xib in Resources */,
A98542DD20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib in Resources */, A98542DD20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib in Resources */,
@@ -850,6 +860,7 @@
A98542D720D197D300EB9803 /* ArtworkSelector.xib in Resources */, A98542D720D197D300EB9803 /* ArtworkSelector.xib in Resources */,
A9ECA0602029A13800D5F30C /* OffsetViewController.xib in Resources */, A9ECA0602029A13800D5F30C /* OffsetViewController.xib in Resources */,
A9ACF03222A2BCF200AD5B12 /* OCRPrefsViewController.xib in Resources */, A9ACF03222A2BCF200AD5B12 /* OCRPrefsViewController.xib in Resources */,
A9CB19052D10417D0074DC9F /* Alpha2.json in Resources */,
A97FA42223E9877900EE5833 /* Ratings.json in Resources */, A97FA42223E9877900EE5833 /* Ratings.json in Resources */,
A961476713F568210068F161 /* Queue.xib in Resources */, A961476713F568210068F161 /* Queue.xib in Resources */,
A9BA1AF31DBF7DD800FD0B38 /* Localizable.strings in Resources */, A9BA1AF31DBF7DD800FD0B38 /* Localizable.strings in Resources */,
@@ -928,6 +939,7 @@
A9C31E572029A75F00CEF474 /* GeneralPrefsViewController.swift in Sources */, A9C31E572029A75F00CEF474 /* GeneralPrefsViewController.swift in Sources */,
A9AE26C01F3B66470041A57D /* SquaredTVArt.swift in Sources */, A9AE26C01F3B66470041A57D /* SquaredTVArt.swift in Sources */,
A9B1056E2025D9B9009E91FC /* TracksViewController.swift in Sources */, A9B1056E2025D9B9009E91FC /* TracksViewController.swift in Sources */,
A99B7FD82D53764F0027BCB5 /* AppleTVv3.swift in Sources */,
A9B514191EFC12310055A035 /* TheTVDB.swift in Sources */, A9B514191EFC12310055A035 /* TheTVDB.swift in Sources */,
A9C31E602029A80F00CEF474 /* AdvancedPrefsViewController.swift in Sources */, A9C31E602029A80F00CEF474 /* AdvancedPrefsViewController.swift in Sources */,
A979B3862025C8BF00468362 /* DocumentWindowController.swift in Sources */, A979B3862025C8BF00468362 /* DocumentWindowController.swift in Sources */,
@@ -1381,6 +1393,7 @@
buildSettings = { buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO; ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_OPTIMIZATION = space; ASSETCATALOG_COMPILER_OPTIMIZATION = space;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_ARC = YES;
@@ -1390,7 +1403,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO; COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.8.4; CURRENT_PROJECT_VERSION = 1.8.7;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
@@ -1407,7 +1420,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MARKETING_VERSION = 1.8.4; MARKETING_VERSION = 1.8.7;
OTHER_CFLAGS = ""; OTHER_CFLAGS = "";
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks"; OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
OTHER_SWIFT_FLAGS = ""; OTHER_SWIFT_FLAGS = "";
@@ -1423,6 +1436,7 @@
buildSettings = { buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO; ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_OPTIMIZATION = space; ASSETCATALOG_COMPILER_OPTIMIZATION = space;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_ARC = YES;
@@ -1431,7 +1445,7 @@
CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_IDENTITY = "Mac Developer";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.8.4; CURRENT_PROJECT_VERSION = 1.8.7;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
@@ -1447,7 +1461,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MARKETING_VERSION = 1.8.4; MARKETING_VERSION = 1.8.7;
OTHER_CFLAGS = ""; OTHER_CFLAGS = "";
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks"; OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
OTHER_SWIFT_FLAGS = ""; OTHER_SWIFT_FLAGS = "";
@@ -1461,6 +1475,7 @@
C05733CC08A9546B00998B17 /* Debug */ = { C05733CC08A9546B00998B17 /* Debug */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_OPTIMIZATION = space; ASSETCATALOG_COMPILER_OPTIMIZATION = space;
CLANG_ANALYZER_GCD_PERFORMANCE = YES; CLANG_ANALYZER_GCD_PERFORMANCE = YES;
CLANG_ANALYZER_LOCALIZABILITY_EMPTY_CONTEXT = YES; CLANG_ANALYZER_LOCALIZABILITY_EMPTY_CONTEXT = YES;
@@ -1549,6 +1564,7 @@
C05733CD08A9546B00998B17 /* Release */ = { C05733CD08A9546B00998B17 /* Release */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_OPTIMIZATION = space; ASSETCATALOG_COMPILER_OPTIMIZATION = space;
CLANG_ANALYZER_GCD_PERFORMANCE = YES; CLANG_ANALYZER_GCD_PERFORMANCE = YES;
CLANG_ANALYZER_LOCALIZABILITY_EMPTY_CONTEXT = YES; CLANG_ANALYZER_LOCALIZABILITY_EMPTY_CONTEXT = YES;
+1 -1
View File
@@ -9,5 +9,5 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject @interface AppDelegate : NSObject<NSApplicationDelegate>
@end @end
+5
View File
@@ -52,4 +52,9 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap)
return NO; return NO;
} }
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
{
return YES;
}
@end @end
+5
View File
@@ -52,6 +52,11 @@ extern NSString *libraryPath;
} }
} }
+ (BOOL)autosavesInPlace
{
return NO;
}
- (void)_resetTextView - (void)_resetTextView
{ {
textView.string = @""; textView.string = @"";
+1 -1
View File
@@ -8,7 +8,7 @@
"NSAppleEventsUsageDescription" = "Subler necesita acceso para agregar películas a iTunes o a TV"; "NSAppleEventsUsageDescription" = "Subler necesita acceso para agregar películas a iTunes o a TV";
/* Copyright (human-readable) */ /* Copyright (human-readable) */
"NSHumanReadableCopyright" = "Copyright © 2009-2024, Damiano Galassi"; "NSHumanReadableCopyright" = "Copyright © 2009-2025, Damiano Galassi";
/* (No Comment) */ /* (No Comment) */
"SRT Subtitles" = "Subtítulos SRT"; "SRT Subtitles" = "Subtítulos SRT";
+1 -1
View File
@@ -8,7 +8,7 @@
"NSAppleEventsUsageDescription" = "Subler nécessite l'accès pour ajouter des films à iTunes ou TV"; "NSAppleEventsUsageDescription" = "Subler nécessite l'accès pour ajouter des films à iTunes ou TV";
/* Copyright (human-readable) */ /* Copyright (human-readable) */
"NSHumanReadableCopyright" = "Droit d'auteur © 2009-2024, Damiano Galassi"; "NSHumanReadableCopyright" = "Droit d'auteur © 2009-2025, Damiano Galassi";
/* (No Comment) */ /* (No Comment) */
"SRT Subtitles" = "Sous-titres SRT"; "SRT Subtitles" = "Sous-titres SRT";
+1 -1
View File
@@ -8,7 +8,7 @@
"NSAppleEventsUsageDescription" = "Subler ha bisogno dell'autorizzazione per aggiungere i filmati ad iTunes o a TV"; "NSAppleEventsUsageDescription" = "Subler ha bisogno dell'autorizzazione per aggiungere i filmati ad iTunes o a TV";
/* Copyright (human-readable) */ /* Copyright (human-readable) */
"NSHumanReadableCopyright" = "Copyright © 2009-2024, Damiano Galassi"; "NSHumanReadableCopyright" = "Copyright © 2009-2025, Damiano Galassi";
/* (No Comment) */ /* (No Comment) */
"SRT Subtitles" = "Sottotitoli SRT"; "SRT Subtitles" = "Sottotitoli SRT";
+1 -1
View File
@@ -8,7 +8,7 @@
"NSAppleEventsUsageDescription" = "Subler 需要将电影添加到 iTunes 或“电视”的访问权限"; "NSAppleEventsUsageDescription" = "Subler 需要将电影添加到 iTunes 或“电视”的访问权限";
/* Copyright (human-readable) */ /* Copyright (human-readable) */
"NSHumanReadableCopyright" = "Copyright © 2009-2024, Damiano Galassi"; "NSHumanReadableCopyright" = "Copyright © 2009-2025, Damiano Galassi";
/* (No Comment) */ /* (No Comment) */
"SRT Subtitles" = "SRT 字幕"; "SRT Subtitles" = "SRT 字幕";