Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddf13e5a3a | ||
|
|
13255140e9 | ||
|
|
a153763019 | ||
|
|
85d8ac6dcb | ||
|
|
723db31fc0 | ||
|
|
80ca3970ec | ||
|
|
a1da1c8106 | ||
|
|
51112947fb | ||
|
|
56d843c044 | ||
|
|
c08d607baa | ||
|
|
87e0c82bbb | ||
|
|
dd956fa783 | ||
|
|
5d6c0cd84c | ||
|
|
e96773f3d0 | ||
|
|
475737a6ad | ||
|
|
20438f310d | ||
|
|
628ccfefb5 | ||
|
|
0f8d251391 | ||
|
|
f20ad7ee45 | ||
|
|
401584a376 | ||
|
|
06ecb0af5f | ||
|
|
f457b4e89c | ||
|
|
8520d729c6 | ||
|
|
330236735d | ||
|
|
eb386a52c3 | ||
|
|
0c3d7de364 | ||
|
|
9077b6d149 | ||
|
|
a3e15e725a | ||
|
|
839b47cd9e | ||
|
|
b58346eda7 | ||
|
|
4c7a26a175 | ||
|
|
85854a2f06 | ||
|
|
a3f73cf1f8 | ||
|
|
a7739840ee | ||
|
|
d0cd519460 | ||
|
|
1040f0dab6 | ||
|
|
dfdffb9332 | ||
|
|
530ea2ed20 | ||
|
|
23f683626d | ||
|
|
934ae63b95 | ||
|
|
1cb5fb59dc | ||
|
|
81d5f8902c | ||
|
|
a48cb77aac | ||
|
|
d930bdb0a6 | ||
|
|
8c0d366764 | ||
|
|
33a7665c5a | ||
|
|
43a768a187 | ||
|
|
8290bf7c52 | ||
|
|
b250450966 | ||
|
|
c84cfd47e3 | ||
|
|
53e46d8095 | ||
|
|
d9131ffc3b | ||
|
|
0305d5371c | ||
|
|
257e412987 | ||
|
|
73e27ef56c | ||
|
|
59f085a7e4 | ||
|
|
40107a9db1 | ||
|
|
ce011a4d37 | ||
|
|
c8fb950854 | ||
|
|
151530d6ab | ||
|
|
94255d6e17 | ||
|
|
a65fcf9bf2 | ||
|
|
b7910bdb45 | ||
|
|
3017c4ef35 | ||
|
|
e12618bda4 | ||
|
|
b88b3d48a6 | ||
|
|
e3f67451b0 | ||
|
|
2f3050f9d0 | ||
|
|
fbdbb2006b | ||
|
|
9ac32753d4 | ||
|
|
d399af54b2 | ||
|
|
689f51d002 | ||
|
|
6307626786 | ||
|
|
7990e816b2 | ||
|
|
d8d40fa315 | ||
|
|
9896d96e87 | ||
|
|
334bc51906 | ||
|
|
8dd1adc199 | ||
|
|
192de27e8d | ||
|
|
97b88a2adb | ||
|
|
abdfa38d2d | ||
|
|
f8667656ef | ||
|
|
22c449f798 | ||
|
|
17c7d67b96 | ||
|
|
beb7774761 | ||
|
|
6c124ca5d0 | ||
|
|
b0d8ee73a8 | ||
|
|
ed69edf45f | ||
|
|
4f2c8f2509 | ||
|
|
16e81d4be0 | ||
|
|
153b8e6570 | ||
|
|
45cf445bca | ||
|
|
cf3dae6490 | ||
|
|
51f395469c | ||
|
|
c01460cb43 | ||
|
|
fc082f3bca | ||
|
|
9122f520db | ||
|
|
1a797e20fa | ||
|
|
f58142a250 | ||
|
|
68bef59a9f | ||
|
|
78ddedb92a | ||
|
|
68709ef2ec | ||
|
|
9aaf78acd2 | ||
|
|
d6cd740aa8 | ||
|
|
418196dbe0 | ||
|
|
aeda6095a8 | ||
|
|
4b5f384a56 | ||
|
|
d50ad9a86f | ||
|
|
03c9a0a129 | ||
|
|
11633fe0e2 | ||
|
|
c928f94e18 | ||
|
|
49edd9adc5 | ||
|
|
43ebf7e835 | ||
|
|
6bc6b749c5 | ||
|
|
20521b0446 | ||
|
|
dea7426df2 | ||
|
|
5de48ff7c9 | ||
|
|
9fb9665b36 | ||
|
|
e352888937 | ||
|
|
56a424ca7e | ||
|
|
6e9be6c89e | ||
|
|
a50ba3910e | ||
|
|
f8388175d8 | ||
|
|
1fe4d225bf | ||
|
|
eaa28f9efd | ||
|
|
770e15d1a5 | ||
|
|
2f1bb0a51c | ||
|
|
21682cd1a4 | ||
|
|
cda042d5e8 | ||
|
|
81d3c565e8 | ||
|
|
b152c18e2f | ||
|
|
c0d36f5767 | ||
|
|
72a7288834 | ||
|
|
0b35d88f8d | ||
|
|
dfc2e86ec3 | ||
|
|
d6b72cafce | ||
|
|
aa350a876b | ||
|
|
c2ad5130df | ||
|
|
23aaff4933 | ||
|
|
3b62db369f | ||
|
|
40b32a8cca | ||
|
|
df8facbcbe | ||
|
|
3a3d2cdf8d | ||
|
|
dcc8281d20 | ||
|
|
a029d2bf23 | ||
|
|
91cf78c0cc | ||
|
|
2e34a3affd | ||
|
|
e016c5fc60 | ||
|
|
f270e3dca7 | ||
|
|
d78b320322 | ||
|
|
80e561d88c | ||
|
|
210cb96196 | ||
|
|
56c7f01d07 | ||
|
|
04eab36031 | ||
|
|
d88285ece2 | ||
|
|
20a8714974 | ||
|
|
13f1f301e3 | ||
|
|
5890c9abe2 | ||
|
|
2a1d8b08e1 | ||
|
|
971adb6342 | ||
|
|
87837a0f5e | ||
|
|
a4e4b6027d | ||
|
|
bf012927b4 | ||
|
|
3f5c5e7459 | ||
|
|
1fd17a5cd0 | ||
|
|
5965ce4836 | ||
|
|
d9f2681bba | ||
|
|
c256d87e50 | ||
|
|
7e1e9c148c | ||
|
|
7aa1674c08 | ||
|
|
e44a786b72 | ||
|
|
f0faeb066a | ||
|
|
7abffdda03 | ||
|
|
bc2597499b | ||
|
|
b6163b4d80 | ||
|
|
9ea235a35e | ||
|
|
5fdf9efa80 | ||
|
|
b26bcea29a | ||
|
|
73f3fee7b0 | ||
|
|
ae2addbac4 | ||
|
|
8071145c7f | ||
|
|
e520b13a4f | ||
|
|
e07c39b039 | ||
|
|
f3226469d7 | ||
|
|
aa6e15f99b | ||
|
|
3fe294f582 | ||
|
|
0ea41244f5 | ||
|
|
9671e40708 | ||
|
|
22df3e92db | ||
|
|
8bbb34298a | ||
|
|
b022bb460d | ||
|
|
2d0cb8b827 | ||
|
|
e38c5c2f87 | ||
|
|
43d56d7851 | ||
|
|
5e0e5b677e | ||
|
|
49262b2368 | ||
|
|
f24eea0f91 | ||
|
|
3b30d68597 | ||
|
|
e7a4d7af09 | ||
|
|
ad6c9dd132 | ||
|
|
94c0780be8 | ||
|
|
210fe7bf90 | ||
|
|
0a135b7040 | ||
|
|
a50a136e86 | ||
|
|
36c76fe5bd |
No files matched your search
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
[submodule "MP42Foundation"]
|
[submodule "MP42Foundation"]
|
||||||
path = MP42Foundation
|
path = MP42Foundation
|
||||||
url = https://github.com/SublerApp/MP42Foundation.git
|
url = https://git.technomancer.com/Scott-Files/MP42Foundation.git
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="60px" height="848px" viewBox="0 0 60 848" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<title>Film Strip</title>
|
||||||
|
<g id="Film-Strip" stroke="none" fill="none" fill-rule="evenodd" stroke-width="1">
|
||||||
|
<g id="Film-Strip-Right" fill="#FFFFFF">
|
||||||
|
<rect id="Rectangle" fill-rule="nonzero" x="0" y="297" width="60" height="56" rx="8"></rect>
|
||||||
|
<rect id="Rectangle" fill-rule="nonzero" x="0" y="198" width="60" height="56" rx="8"></rect>
|
||||||
|
<rect id="Rectangle" fill-rule="nonzero" x="0" y="99" width="60" height="56" rx="8"></rect>
|
||||||
|
<rect id="Rectangle" fill-rule="nonzero" x="0" y="0" width="60" height="56" rx="8"></rect>
|
||||||
|
<rect id="Rectangle" fill-rule="nonzero" x="0" y="792" width="60" height="56" rx="8"></rect>
|
||||||
|
<rect id="Rectangle-Copy" fill-rule="nonzero" x="0" y="396" width="60" height="56" rx="8"></rect>
|
||||||
|
<rect id="Rectangle-Copy-2" fill-rule="nonzero" x="0" y="495" width="60" height="56" rx="8"></rect>
|
||||||
|
<rect id="Rectangle-Copy-3" fill-rule="nonzero" x="0" y="594" width="60" height="56" rx="8"></rect>
|
||||||
|
<rect id="Rectangle-Copy-4" fill-rule="nonzero" x="0" y="693" width="60" height="56" rx="8"></rect>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 556 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 323 KiB |
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="573px" height="420px" viewBox="0 0 573 420" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<title>Rectangle</title>
|
||||||
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||||
|
<rect id="Rectangle" fill="#D8D8D8" x="0" y="0" width="573" height="420" rx="45"></rect>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 412 B |
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
@@ -0,0 +1,250 @@
|
|||||||
|
{
|
||||||
|
"fill" : {
|
||||||
|
"linear-gradient" : [
|
||||||
|
"extended-gray:0.37375,1.00000",
|
||||||
|
"extended-gray:0.06807,1.00000"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"groups" : [
|
||||||
|
{
|
||||||
|
"layers" : [
|
||||||
|
{
|
||||||
|
"fill-specializations" : [
|
||||||
|
{
|
||||||
|
"value" : "none"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearance" : "dark",
|
||||||
|
"value" : "none"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"glass" : true,
|
||||||
|
"image-name" : "Pen.png",
|
||||||
|
"name" : "Pen",
|
||||||
|
"position" : {
|
||||||
|
"scale" : 0.54,
|
||||||
|
"translation-in-points" : [
|
||||||
|
276,
|
||||||
|
-56
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"opacity" : 0.94,
|
||||||
|
"shadow" : {
|
||||||
|
"kind" : "neutral",
|
||||||
|
"opacity" : 0.2
|
||||||
|
},
|
||||||
|
"specular" : false,
|
||||||
|
"translucency" : {
|
||||||
|
"enabled" : false,
|
||||||
|
"value" : 0.5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blur-material" : 0.5,
|
||||||
|
"layers" : [
|
||||||
|
{
|
||||||
|
"fill-specializations" : [
|
||||||
|
{
|
||||||
|
"value" : {
|
||||||
|
"solid" : "extended-gray:1.00000,1.00000"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearance" : "dark",
|
||||||
|
"value" : {
|
||||||
|
"solid" : "extended-gray:0.75000,1.00000"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"glass" : true,
|
||||||
|
"image-name" : "Path.png",
|
||||||
|
"name" : "Path",
|
||||||
|
"position" : {
|
||||||
|
"scale" : 1.9,
|
||||||
|
"translation-in-points" : [
|
||||||
|
0,
|
||||||
|
290
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"lighting" : "individual",
|
||||||
|
"opacity" : 0.9,
|
||||||
|
"shadow" : {
|
||||||
|
"kind" : "neutral",
|
||||||
|
"opacity" : 1
|
||||||
|
},
|
||||||
|
"specular" : true,
|
||||||
|
"translucency" : {
|
||||||
|
"enabled" : true,
|
||||||
|
"value" : 0.05
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blend-mode" : "normal",
|
||||||
|
"blur-material" : null,
|
||||||
|
"hidden" : false,
|
||||||
|
"layers" : [
|
||||||
|
{
|
||||||
|
"fill" : {
|
||||||
|
"automatic-gradient" : "extended-gray:0.50000,1.00000"
|
||||||
|
},
|
||||||
|
"hidden" : false,
|
||||||
|
"image-name" : "Rectangle.svg",
|
||||||
|
"name" : "Rectangle",
|
||||||
|
"position" : {
|
||||||
|
"scale" : 1.22,
|
||||||
|
"translation-in-points" : [
|
||||||
|
0,
|
||||||
|
-590
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blend-mode" : "normal",
|
||||||
|
"hidden" : false,
|
||||||
|
"image-name" : "bars 2.png",
|
||||||
|
"name" : "bars 2",
|
||||||
|
"opacity-specializations" : [
|
||||||
|
{
|
||||||
|
"value" : 0.86
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearance" : "dark",
|
||||||
|
"value" : 0.8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearance" : "tinted",
|
||||||
|
"value" : 0.86
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"position" : {
|
||||||
|
"scale" : 1.22,
|
||||||
|
"translation-in-points" : [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fill" : "automatic",
|
||||||
|
"hidden" : false,
|
||||||
|
"image-name" : "IMG_2689.png",
|
||||||
|
"name" : "IMG_2689",
|
||||||
|
"opacity" : 1,
|
||||||
|
"position" : {
|
||||||
|
"scale" : 1.22,
|
||||||
|
"translation-in-points" : [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fill" : {
|
||||||
|
"automatic-gradient" : "extended-gray:0.25000,1.00000"
|
||||||
|
},
|
||||||
|
"hidden" : false,
|
||||||
|
"image-name" : "Rectangle.svg",
|
||||||
|
"name" : "Rectangle",
|
||||||
|
"position" : {
|
||||||
|
"scale" : 1.22,
|
||||||
|
"translation-in-points" : [
|
||||||
|
0,
|
||||||
|
590
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"opacity" : 1,
|
||||||
|
"shadow" : {
|
||||||
|
"kind" : "layer-color",
|
||||||
|
"opacity" : 1
|
||||||
|
},
|
||||||
|
"specular" : true,
|
||||||
|
"translucency" : {
|
||||||
|
"enabled" : true,
|
||||||
|
"value" : 0.2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blend-mode" : "normal",
|
||||||
|
"blur-material" : null,
|
||||||
|
"layers" : [
|
||||||
|
{
|
||||||
|
"fill-specializations" : [
|
||||||
|
{
|
||||||
|
"value" : {
|
||||||
|
"linear-gradient" : [
|
||||||
|
"extended-gray:1.00000,1.00000",
|
||||||
|
"extended-gray:0.85000,1.00000"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearance" : "dark",
|
||||||
|
"value" : {
|
||||||
|
"solid" : "extended-gray:0.75000,1.00000"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"glass" : true,
|
||||||
|
"image-name" : "Film Strip.svg",
|
||||||
|
"name" : "Film Strip",
|
||||||
|
"position" : {
|
||||||
|
"scale" : 1.4,
|
||||||
|
"translation-in-points" : [
|
||||||
|
-428,
|
||||||
|
68
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fill-specializations" : [
|
||||||
|
{
|
||||||
|
"value" : {
|
||||||
|
"linear-gradient" : [
|
||||||
|
"extended-gray:1.00000,1.00000",
|
||||||
|
"extended-gray:0.85000,1.00000"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearance" : "dark",
|
||||||
|
"value" : {
|
||||||
|
"solid" : "extended-gray:0.75000,1.00000"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"glass" : true,
|
||||||
|
"hidden" : false,
|
||||||
|
"image-name" : "Film Strip.svg",
|
||||||
|
"name" : "Film Strip",
|
||||||
|
"position" : {
|
||||||
|
"scale" : 1.4,
|
||||||
|
"translation-in-points" : [
|
||||||
|
428,
|
||||||
|
68
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"lighting" : "individual",
|
||||||
|
"opacity" : 0.9,
|
||||||
|
"shadow" : {
|
||||||
|
"kind" : "layer-color",
|
||||||
|
"opacity" : 0.2
|
||||||
|
},
|
||||||
|
"specular" : true,
|
||||||
|
"translucency" : {
|
||||||
|
"enabled" : true,
|
||||||
|
"value" : 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"supported-platforms" : {
|
||||||
|
"squares" : "shared"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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="16085" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="16085"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -24,14 +24,14 @@
|
|||||||
</declaredKeys>
|
</declaredKeys>
|
||||||
</userDefaultsController>
|
</userDefaultsController>
|
||||||
<customView id="94" userLabel="Advanced View">
|
<customView id="94" userLabel="Advanced View">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="610" height="321"/>
|
<rect key="frame" x="0.0" y="0.0" width="610" height="329"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="W4x-d1-Fk8">
|
<customView translatesAutoresizingMaskIntoConstraints="NO" id="W4x-d1-Fk8">
|
||||||
<rect key="frame" x="115" y="-1" width="381" height="322"/>
|
<rect key="frame" x="112" y="-1" width="387" height="330"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="101">
|
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="101">
|
||||||
<rect key="frame" x="18" y="232" width="133" height="16"/>
|
<rect key="frame" x="18" y="236" width="133" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Convert:" id="102">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Convert:" id="102">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -39,10 +39,10 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="rmU-Gb-jzF">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="rmU-Gb-jzF">
|
||||||
<rect key="frame" x="172" y="183" width="137" height="25"/>
|
<rect key="frame" x="171" y="184" width="138" height="25"/>
|
||||||
<popUpButtonCell key="cell" type="push" title="Discard DTS" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="2Ad-Fs-Zpj" id="bVg-GU-Gs9">
|
<popUpButtonCell key="cell" type="push" title="Discard DTS" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="2Ad-Fs-Zpj" id="bVg-GU-Gs9">
|
||||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" id="rX2-PN-Ebm">
|
<menu key="menu" id="rX2-PN-Ebm">
|
||||||
<items>
|
<items>
|
||||||
<menuItem title="Discard DTS" state="on" id="2Ad-Fs-Zpj">
|
<menuItem title="Discard DTS" state="on" id="2Ad-Fs-Zpj">
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
<binding destination="123" name="selectedTag" keyPath="values.SBAudioDtsOptions" id="QpV-8Q-2cz"/>
|
<binding destination="123" name="selectedTag" keyPath="values.SBAudioDtsOptions" id="QpV-8Q-2cz"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="189">
|
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="189">
|
||||||
<rect key="frame" x="18" y="76" width="133" height="16"/>
|
<rect key="frame" x="18" y="76" width="133" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Bitrate (per channel):" id="190">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Bitrate (per channel):" id="190">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" verticalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="3fA-qQ-VvX">
|
<button verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" verticalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="3fA-qQ-VvX">
|
||||||
<rect key="frame" x="155" y="285" width="162" height="18"/>
|
<rect key="frame" x="155" y="293" width="166" height="18"/>
|
||||||
<buttonCell key="cell" type="check" title="Keep groups organized" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="Yld-Or-7Hu">
|
<buttonCell key="cell" type="check" title="Keep groups organized" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="Yld-Or-7Hu">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -77,8 +77,8 @@
|
|||||||
<binding destination="3" name="value" keyPath="values.SBOrganizeAlternateGroups" id="dwA-nR-J68"/>
|
<binding destination="3" name="value" keyPath="values.SBOrganizeAlternateGroups" id="dwA-nR-J68"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="Z2f-U9-9ZT">
|
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="Z2f-U9-9ZT">
|
||||||
<rect key="frame" x="18" y="19" width="133" height="16"/>
|
<rect key="frame" x="18" y="20" width="133" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="HEVC:" id="XpG-OO-ZNT">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="HEVC:" id="XpG-OO-ZNT">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="99">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="99">
|
||||||
<rect key="frame" x="155" y="164" width="136" height="18"/>
|
<rect key="frame" x="155" y="165" width="140" height="18"/>
|
||||||
<buttonCell key="cell" type="check" title="AC-3 audio to AAC" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="104">
|
<buttonCell key="cell" type="check" title="AC-3 audio to AAC" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="104">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -95,15 +95,15 @@
|
|||||||
<binding destination="3" name="value" keyPath="values.SBAudioConvertAC3" id="112"/>
|
<binding destination="3" name="value" keyPath="values.SBAudioConvertAC3" id="112"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="113">
|
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="113">
|
||||||
<rect key="frame" x="18" y="107" width="133" height="16"/>
|
<rect key="frame" x="18" y="105" width="133" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Downmix audio to:" id="114">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Downmix audio to:" id="114">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="201">
|
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="201">
|
||||||
<rect key="frame" x="222" y="76" width="34" height="16"/>
|
<rect key="frame" x="222" y="76" width="34" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" title="kbps" id="202">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" title="kbps" id="202">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -112,10 +112,10 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="115">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="115">
|
||||||
<rect key="frame" x="155" y="101" width="144" height="25"/>
|
<rect key="frame" x="154" y="99" width="145" height="25"/>
|
||||||
<popUpButtonCell key="cell" type="push" title="Dolby Pro Logic II" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="121" id="116">
|
<popUpButtonCell key="cell" type="push" title="Dolby Pro Logic II" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="121" id="116">
|
||||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" id="117">
|
<menu key="menu" id="117">
|
||||||
<items>
|
<items>
|
||||||
<menuItem title="Dolby Pro Logic II" state="on" tag="1" id="121"/>
|
<menuItem title="Dolby Pro Logic II" state="on" tag="1" id="121"/>
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hjZ-wQ-Sbb">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hjZ-wQ-Sbb">
|
||||||
<rect key="frame" x="155" y="231" width="119" height="18"/>
|
<rect key="frame" x="155" y="235" width="123" height="18"/>
|
||||||
<buttonCell key="cell" type="check" title="VobSub to Tx3g" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="wgy-N5-9cB">
|
<buttonCell key="cell" type="check" title="VobSub to Tx3g" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="wgy-N5-9cB">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="olE-Dy-uJm">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="olE-Dy-uJm">
|
||||||
<rect key="frame" x="155" y="210" width="136" height="18"/>
|
<rect key="frame" x="155" y="212" width="140" height="18"/>
|
||||||
<buttonCell key="cell" type="check" title="DTS audio to AAC" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="ZcC-1D-D4s">
|
<buttonCell key="cell" type="check" title="DTS audio to AAC" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="ZcC-1D-D4s">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -151,8 +151,8 @@
|
|||||||
<binding destination="3" name="value" keyPath="values.SBAudioConvertDts" id="zGa-cq-MgW"/>
|
<binding destination="3" name="value" keyPath="values.SBAudioConvertDts" id="zGa-cq-MgW"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="Pud-GM-vyU">
|
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="Pud-GM-vyU">
|
||||||
<rect key="frame" x="18" y="47" width="133" height="16"/>
|
<rect key="frame" x="18" y="48" width="133" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="DRC:" id="kde-QJ-Sl9">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="DRC:" id="kde-QJ-Sl9">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -160,13 +160,10 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ETf-LE-57P">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ETf-LE-57P">
|
||||||
<rect key="frame" x="154" y="41" width="65" height="25"/>
|
<rect key="frame" x="153" y="41" width="67" height="25"/>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="60" id="fZU-8d-Ua1"/>
|
|
||||||
</constraints>
|
|
||||||
<popUpButtonCell key="cell" type="push" title="0" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="aHL-pt-Ze0" id="sRN-fQ-JQy">
|
<popUpButtonCell key="cell" type="push" title="0" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="aHL-pt-Ze0" id="sRN-fQ-JQy">
|
||||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" id="v6x-m2-JTe">
|
<menu key="menu" id="v6x-m2-JTe">
|
||||||
<items>
|
<items>
|
||||||
<menuItem title="0" state="on" id="aHL-pt-Ze0"/>
|
<menuItem title="0" state="on" id="aHL-pt-Ze0"/>
|
||||||
@@ -177,13 +174,16 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="60" id="fZU-8d-Ua1"/>
|
||||||
|
</constraints>
|
||||||
<connections>
|
<connections>
|
||||||
<accessibilityConnection property="title" destination="Pud-GM-vyU" id="I13-DW-46I"/>
|
<accessibilityConnection property="title" destination="Pud-GM-vyU" id="I13-DW-46I"/>
|
||||||
<binding destination="123" name="selectedTag" keyPath="values.SBAudioDRC" id="ozi-Zd-fSY"/>
|
<binding destination="123" name="selectedTag" keyPath="values.SBAudioDRC" id="ozi-Zd-fSY"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="hgg-QV-i0I">
|
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="hgg-QV-i0I">
|
||||||
<rect key="frame" x="18" y="286" width="133" height="16"/>
|
<rect key="frame" x="18" y="294" width="133" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Alternate Groups:" id="agM-jg-8mH">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Alternate Groups:" id="agM-jg-8mH">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" verticalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="QpA-Yd-jpF">
|
<button verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" verticalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="QpA-Yd-jpF">
|
||||||
<rect key="frame" x="155" y="265" width="183" height="18"/>
|
<rect key="frame" x="155" y="271" width="187" height="18"/>
|
||||||
<buttonCell key="cell" type="check" title="Infer media characteristics" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="86R-Dj-j6Y">
|
<buttonCell key="cell" type="check" title="Infer media characteristics" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="86R-Dj-j6Y">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -202,13 +202,10 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="191">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="191">
|
||||||
<rect key="frame" x="155" y="70" width="65" height="25"/>
|
<rect key="frame" x="154" y="69" width="67" height="25"/>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="60" id="gDw-hn-dbd"/>
|
|
||||||
</constraints>
|
|
||||||
<popUpButtonCell key="cell" type="push" title="64" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="64" imageScaling="proportionallyDown" inset="2" selectedItem="194" id="192">
|
<popUpButtonCell key="cell" type="push" title="64" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="64" imageScaling="proportionallyDown" inset="2" selectedItem="194" id="192">
|
||||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" id="193">
|
<menu key="menu" id="193">
|
||||||
<items>
|
<items>
|
||||||
<menuItem title="64" state="on" tag="64" id="194"/>
|
<menuItem title="64" state="on" tag="64" id="194"/>
|
||||||
@@ -226,13 +223,16 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="60" id="gDw-hn-dbd"/>
|
||||||
|
</constraints>
|
||||||
<connections>
|
<connections>
|
||||||
<accessibilityConnection property="title" destination="189" id="hSG-o4-8UE"/>
|
<accessibilityConnection property="title" destination="189" id="hSG-o4-8UE"/>
|
||||||
<binding destination="123" name="selectedTag" keyPath="values.SBAudioBitrate" id="205"/>
|
<binding destination="123" name="selectedTag" keyPath="values.SBAudioBitrate" id="205"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="edJ-A5-eyf">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="edJ-A5-eyf">
|
||||||
<rect key="frame" x="172" y="143" width="88" height="18"/>
|
<rect key="frame" x="172" y="142" width="92" height="18"/>
|
||||||
<buttonCell key="cell" type="check" title="Keep AC-3" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="Zgy-z5-6UG">
|
<buttonCell key="cell" type="check" title="Keep AC-3" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="Zgy-z5-6UG">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -243,7 +243,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="fTk-UL-aoX">
|
<button translatesAutoresizingMaskIntoConstraints="NO" id="fTk-UL-aoX">
|
||||||
<rect key="frame" x="155" y="18" width="208" height="18"/>
|
<rect key="frame" x="155" y="19" width="212" height="18"/>
|
||||||
<buttonCell key="cell" type="check" title="Force QuickTime Compatibility" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="bBF-Bs-9N7">
|
<buttonCell key="cell" type="check" title="Force QuickTime Compatibility" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="bBF-Bs-9N7">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
|
|||||||
@@ -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">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="25098" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="25098"/>
|
||||||
<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>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="fCL-eV-Fib">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="fCL-eV-Fib">
|
||||||
<rect key="frame" x="436" y="13" width="122" height="32"/>
|
<rect key="frame" x="440" y="20" width="111" height="24"/>
|
||||||
<buttonCell key="cell" type="push" title="Set as artwork" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="rMb-PC-yTA">
|
<buttonCell key="cell" type="push" title="Set as artwork" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="rMb-PC-yTA">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -38,7 +38,7 @@ DQ
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="fMj-Ew-Qej">
|
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="fMj-Ew-Qej">
|
||||||
<rect key="frame" x="449" y="48" width="104" height="20"/>
|
<rect key="frame" x="451" y="54" width="100" height="18"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" constant="100" id="o7H-4a-ogx"/>
|
<constraint firstAttribute="width" constant="100" id="o7H-4a-ogx"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
@@ -49,8 +49,8 @@ DQ
|
|||||||
</connections>
|
</connections>
|
||||||
</slider>
|
</slider>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="iH5-SJ-sDV">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="iH5-SJ-sDV">
|
||||||
<rect key="frame" x="13" y="13" width="159" height="32"/>
|
<rect key="frame" x="20" y="20" width="145" height="24"/>
|
||||||
<buttonCell key="cell" type="push" title="Load more artwork..." bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="40h-Rv-m31">
|
<buttonCell key="cell" type="push" title="Load more artworks" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="40h-Rv-m31">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<string key="keyEquivalent">l</string>
|
<string key="keyEquivalent">l</string>
|
||||||
@@ -61,7 +61,7 @@ DQ
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Zyu-WY-ltM">
|
<button horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Zyu-WY-ltM">
|
||||||
<rect key="frame" x="371" y="13" width="67" height="32"/>
|
<rect key="frame" x="371" y="20" width="57" height="24"/>
|
||||||
<buttonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="UDG-fN-bQH">
|
<buttonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="UDG-fN-bQH">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -74,13 +74,13 @@ Gw
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="c0O-We-pZd">
|
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="c0O-We-pZd">
|
||||||
<rect key="frame" x="20" y="74" width="531" height="461"/>
|
<rect key="frame" x="20" y="80" width="531" height="455"/>
|
||||||
<clipView key="contentView" id="cHe-z7-drT">
|
<clipView key="contentView" id="cHe-z7-drT">
|
||||||
<rect key="frame" x="1" y="1" width="529" height="459"/>
|
<rect key="frame" x="1" y="1" width="529" height="453"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<collectionView selectable="YES" allowsMultipleSelection="YES" id="234-cJ-3Un" customClass="ArtworkCollectionView" customModule="Subler" customModuleProvider="target">
|
<collectionView selectable="YES" allowsMultipleSelection="YES" id="234-cJ-3Un" customClass="ArtworkCollectionView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="529" height="459"/>
|
<rect key="frame" x="0.0" y="0.0" width="529" height="453"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||||
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="lte-fF-bVi">
|
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="lte-fF-bVi">
|
||||||
<size key="itemSize" width="154" height="194"/>
|
<size key="itemSize" width="154" height="194"/>
|
||||||
@@ -99,7 +99,7 @@ Gw
|
|||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="nbX-9d-w82">
|
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="nbX-9d-w82">
|
||||||
<rect key="frame" x="486" y="1" width="16" height="457"/>
|
<rect key="frame" x="513" y="1" width="17" height="453"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
@@ -135,7 +135,7 @@ Gw
|
|||||||
<constraint firstItem="c0O-We-pZd" firstAttribute="trailing" secondItem="fMj-Ew-Qej" secondAttribute="trailing" id="yFF-Hd-SSn"/>
|
<constraint firstItem="c0O-We-pZd" firstAttribute="trailing" secondItem="fMj-Ew-Qej" secondAttribute="trailing" id="yFF-Hd-SSn"/>
|
||||||
<constraint firstItem="AYL-Jp-agY" firstAttribute="centerY" secondItem="NEi-uU-Lh7" secondAttribute="centerY" id="zvc-Fx-gsf"/>
|
<constraint firstItem="AYL-Jp-agY" firstAttribute="centerY" secondItem="NEi-uU-Lh7" secondAttribute="centerY" id="zvc-Fx-gsf"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="72.5" y="129.5"/>
|
<point key="canvasLocation" x="239" y="56"/>
|
||||||
</view>
|
</view>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
@@ -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="24127" 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="24127"/>
|
||||||
<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>
|
||||||
@@ -36,8 +36,14 @@
|
|||||||
<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="-538" y="123"/>
|
||||||
</menu>
|
</menu>
|
||||||
<view id="XhE-7o-ek3">
|
<view id="XhE-7o-ek3">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="683" height="283"/>
|
<rect key="frame" x="0.0" y="0.0" width="683" height="283"/>
|
||||||
@@ -104,7 +110,7 @@
|
|||||||
<rect key="frame" x="24" y="1" width="30" height="17"/>
|
<rect key="frame" x="24" y="1" width="30" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AhE-Ui-y7O">
|
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AhE-Ui-y7O">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="30" height="17"/>
|
<rect key="frame" x="0.0" y="0.0" width="30" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="id" id="Nrs-BO-n8T">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="id" id="Nrs-BO-n8T">
|
||||||
@@ -136,7 +142,7 @@
|
|||||||
<rect key="frame" x="56.5" y="1" width="180" height="17"/>
|
<rect key="frame" x="56.5" y="1" width="180" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ZL5-qi-Bb2">
|
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ZL5-qi-Bb2">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="180" height="17"/>
|
<rect key="frame" x="0.0" y="0.0" width="180" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" id="jCv-4h-sH5">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" id="jCv-4h-sH5">
|
||||||
@@ -168,7 +174,7 @@
|
|||||||
<rect key="frame" x="239.5" y="1" width="93" height="17"/>
|
<rect key="frame" x="239.5" y="1" width="93" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ePb-gF-Yh9">
|
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ePb-gF-Yh9">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="93" height="17"/>
|
<rect key="frame" x="0.0" y="0.0" width="93" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="0" id="2LD-y7-Ko1">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="0" id="2LD-y7-Ko1">
|
||||||
@@ -200,7 +206,7 @@
|
|||||||
<rect key="frame" x="335.5" y="1" width="87" height="17"/>
|
<rect key="frame" x="335.5" y="1" width="87" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="YPV-wk-baT">
|
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="YPV-wk-baT">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="87" height="17"/>
|
<rect key="frame" x="0.0" y="0.0" width="87" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Lang" usesSingleLineMode="YES" id="KM9-Op-UNe">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Lang" usesSingleLineMode="YES" id="KM9-Op-UNe">
|
||||||
@@ -232,7 +238,7 @@
|
|||||||
<rect key="frame" x="426" y="1" width="84" height="17"/>
|
<rect key="frame" x="426" y="1" width="84" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="HOa-Ac-L7m">
|
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="HOa-Ac-L7m">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="84" height="17"/>
|
<rect key="frame" x="0.0" y="0.0" width="84" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Info" usesSingleLineMode="YES" id="JH3-2P-Na2">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Info" usesSingleLineMode="YES" id="JH3-2P-Na2">
|
||||||
@@ -267,7 +273,7 @@
|
|||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
<popUpButtonCell key="cell" type="bevel" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" imageScaling="proportionallyDown" inset="2" id="FNV-pf-MUt">
|
<popUpButtonCell key="cell" type="bevel" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" imageScaling="proportionallyDown" inset="2" id="FNV-pf-MUt">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="menu"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" id="i8l-4s-h93"/>
|
<menu key="menu" id="i8l-4s-h93"/>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
<connections>
|
<connections>
|
||||||
@@ -303,7 +309,7 @@
|
|||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</tableHeaderView>
|
</tableHeaderView>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ej1-kj-x1L">
|
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ej1-kj-x1L">
|
||||||
<rect key="frame" x="17" y="247" width="94" height="16"/>
|
<rect key="frame" x="17" y="247" width="94" height="16"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Select tracks:" id="1JV-df-zeq">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Select tracks:" id="1JV-df-zeq">
|
||||||
<font key="font" metaFont="systemBold"/>
|
<font key="font" metaFont="systemBold"/>
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
<?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="16085" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="25098" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="16085"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="25098"/>
|
||||||
<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>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="GeneralPrefsViewController" customModule="Subler" customModuleProvider="target">
|
<customObject id="-2" userLabel="File's Owner" customClass="GeneralPrefsViewController" customModule="Subler" customModuleProvider="target">
|
||||||
<connections>
|
<connections>
|
||||||
|
<outlet property="saveLocationPopUp" destination="saveLocationPopUp" id="saveLocationOutlet"/>
|
||||||
<outlet property="view" destination="76" id="u5x-9E-WAf"/>
|
<outlet property="view" destination="76" id="u5x-9E-WAf"/>
|
||||||
</connections>
|
</connections>
|
||||||
</customObject>
|
</customObject>
|
||||||
@@ -21,33 +22,34 @@
|
|||||||
<string>windowSize</string>
|
<string>windowSize</string>
|
||||||
<string>rememberWindowSize</string>
|
<string>rememberWindowSize</string>
|
||||||
<string>chaptersPreviewTrack</string>
|
<string>chaptersPreviewTrack</string>
|
||||||
|
<string>SBLogFormat</string>
|
||||||
</declaredKeys>
|
</declaredKeys>
|
||||||
</userDefaultsController>
|
</userDefaultsController>
|
||||||
<customView id="76">
|
<customView id="76">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="660" height="299"/>
|
<rect key="frame" x="0.0" y="0.0" width="660" height="374"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="dxI-5Q-gDD">
|
<customView translatesAutoresizingMaskIntoConstraints="NO" id="dxI-5Q-gDD">
|
||||||
<rect key="frame" x="136" y="0.0" width="389" height="299"/>
|
<rect key="frame" x="132" y="0.0" width="397" height="374"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XPF-Mh-XYC">
|
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="754" translatesAutoresizingMaskIntoConstraints="NO" id="XPF-Mh-XYC">
|
||||||
<rect key="frame" x="147" y="139" width="57" height="14"/>
|
<rect key="frame" x="152" y="172" width="57" height="14"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Beginning" id="3Vs-qA-7Z6">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Beginning" id="3Vs-qA-7Z6">
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message" size="11"/>
|
||||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="249">
|
<textField focusRingType="none" verticalHuggingPriority="1000" verticalCompressionResistancePriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="249">
|
||||||
<rect key="frame" x="129" y="95" width="165" height="14"/>
|
<rect key="frame" x="134" y="122" width="165" height="14"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="USA ratings are always shown." id="250">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="USA ratings are always shown." id="250">
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message" size="11"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="133">
|
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="133">
|
||||||
<rect key="frame" x="125" y="44" width="188" height="32"/>
|
<rect key="frame" x="136" y="54" width="172" height="24"/>
|
||||||
<buttonCell key="cell" type="push" title="Clear recent searches" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="134">
|
<buttonCell key="cell" type="push" title="Clear recent searches" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="134">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -57,7 +59,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="80">
|
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="80">
|
||||||
<rect key="frame" x="129" y="204" width="117" height="18"/>
|
<rect key="frame" x="136" y="276" width="117" height="16"/>
|
||||||
<buttonCell key="cell" type="check" title="Remember Size" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="86">
|
<buttonCell key="cell" type="check" title="Remember Size" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="86">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -70,16 +72,16 @@
|
|||||||
</binding>
|
</binding>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="139">
|
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="139">
|
||||||
<rect key="frame" x="18" y="54" width="107" height="16"/>
|
<rect key="frame" x="18" y="58" width="112" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Privacy:" id="140">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Privacy:" id="140">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="82">
|
<button verticalHuggingPriority="1000" verticalCompressionResistancePriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="82">
|
||||||
<rect key="frame" x="129" y="180" width="232" height="18"/>
|
<rect key="frame" x="136" y="216" width="232" height="16"/>
|
||||||
<buttonCell key="cell" type="check" title="Create Preview Images at position:" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="84">
|
<buttonCell key="cell" type="check" title="Create Preview Images at position:" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="84">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -92,16 +94,16 @@
|
|||||||
</binding>
|
</binding>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<slider verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="JhA-jk-CGt">
|
<slider verticalHuggingPriority="1000" verticalCompressionResistancePriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="JhA-jk-CGt">
|
||||||
<rect key="frame" x="147" y="152" width="214" height="24"/>
|
<rect key="frame" x="154" y="192" width="214" height="16"/>
|
||||||
<sliderCell key="cell" state="on" alignment="left" maxValue="1" doubleValue="0.5" tickMarkPosition="below" numberOfTickMarks="7" sliderType="linear" id="iKX-dX-4IV"/>
|
<sliderCell key="cell" state="on" alignment="left" maxValue="1" doubleValue="0.5" tickMarkPosition="below" numberOfTickMarks="7" sliderType="linear" id="iKX-dX-4IV"/>
|
||||||
<connections>
|
<connections>
|
||||||
<binding destination="3" name="value" keyPath="values.SBChaptersPreviewPosition" id="JtQ-lM-MNU"/>
|
<binding destination="3" name="value" keyPath="values.SBChaptersPreviewPosition" id="JtQ-lM-MNU"/>
|
||||||
<binding destination="3" name="enabled" keyPath="values.chaptersPreviewTrack" id="hNU-uO-zsL"/>
|
<binding destination="3" name="enabled" keyPath="values.chaptersPreviewTrack" id="hNU-uO-zsL"/>
|
||||||
</connections>
|
</connections>
|
||||||
</slider>
|
</slider>
|
||||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="206">
|
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="206">
|
||||||
<rect key="frame" x="18" y="115" width="107" height="16"/>
|
<rect key="frame" x="18" y="142" width="112" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Show ratings for:" id="207">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Show ratings for:" id="207">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -109,7 +111,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="136">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="136">
|
||||||
<rect key="frame" x="125" y="13" width="188" height="32"/>
|
<rect key="frame" x="136" y="20" width="172" height="24"/>
|
||||||
<buttonCell key="cell" type="push" title="Delete cached metadata" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="137">
|
<buttonCell key="cell" type="push" title="Delete cached metadata" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="137">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -118,8 +120,8 @@
|
|||||||
<action selector="deleteCachedMetadata:" target="-2" id="141"/>
|
<action selector="deleteCachedMetadata:" target="-2" id="141"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="81">
|
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="81">
|
||||||
<rect key="frame" x="18" y="181" width="107" height="16"/>
|
<rect key="frame" x="18" y="216" width="112" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Chapters:" id="85">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Chapters:" id="85">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -127,7 +129,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="B5v-6Q-3Qa">
|
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="B5v-6Q-3Qa">
|
||||||
<rect key="frame" x="129" y="242" width="242" height="18"/>
|
<rect key="frame" x="136" y="316" width="242" height="16"/>
|
||||||
<buttonCell key="cell" type="check" title="Automatically check for update daily" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="2Pf-pq-4IX">
|
<buttonCell key="cell" type="check" title="Automatically check for update daily" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="2Pf-pq-4IX">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -136,32 +138,48 @@
|
|||||||
<binding destination="3" name="value" keyPath="values.SUEnableAutomaticChecks" id="6AF-uh-wt7"/>
|
<binding destination="3" name="value" keyPath="values.SUEnableAutomaticChecks" id="6AF-uh-wt7"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="77">
|
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="77">
|
||||||
<rect key="frame" x="18" y="263" width="107" height="16"/>
|
<rect key="frame" x="18" y="338" width="112" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="At Launch:" id="89">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="At Launch:" id="89">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tVb-Qq-sU7">
|
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tVb-Qq-sU7">
|
||||||
<rect key="frame" x="337" y="139" width="24" height="14"/>
|
<rect key="frame" x="346" y="172" width="24" height="14"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="End" id="He0-rl-DBi">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="End" id="He0-rl-DBi">
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message" size="11"/>
|
||||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="78">
|
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="78">
|
||||||
<rect key="frame" x="18" y="205" width="107" height="16"/>
|
<rect key="frame" x="18" y="276" width="112" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Window:" id="88">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Window:" id="88">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
|
<popUpButton verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="logFormatPopup">
|
||||||
|
<rect key="frame" x="136" y="90" width="160" height="24"/>
|
||||||
|
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="logFormatCell">
|
||||||
|
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="message"/>
|
||||||
|
<menu key="menu" id="logFormatMenu"/>
|
||||||
|
</popUpButtonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" constant="160" id="uY6-hv-UcE"/>
|
||||||
|
</constraints>
|
||||||
|
<connections>
|
||||||
|
<accessibilityConnection property="title" destination="logFormatLabel" id="logFormatAccessibility"/>
|
||||||
|
<binding destination="-2" name="content" keyPath="logFormatOptions" id="logFormatContentBinding"/>
|
||||||
|
<binding destination="3" name="selectedTag" keyPath="values.SBLogFormat" previousBinding="logFormatContentBinding" id="logFormatBinding"/>
|
||||||
|
</connections>
|
||||||
|
</popUpButton>
|
||||||
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="79">
|
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="79">
|
||||||
<rect key="frame" x="129" y="262" width="126" height="18"/>
|
<rect key="frame" x="136" y="338" width="126" height="16"/>
|
||||||
<buttonCell key="cell" type="check" title="Show open panel" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="87">
|
<buttonCell key="cell" type="check" title="Show open panel" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="87">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -170,16 +188,16 @@
|
|||||||
<binding destination="3" name="value" keyPath="values.SBShowOpenPanelAtLaunch" id="T36-sT-wu3"/>
|
<binding destination="3" name="value" keyPath="values.SBShowOpenPanelAtLaunch" id="T36-sT-wu3"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="236">
|
<popUpButton verticalHuggingPriority="1000" verticalCompressionResistancePriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="236">
|
||||||
<rect key="frame" x="129" y="108" width="185" height="25"/>
|
<rect key="frame" x="136" y="138" width="180" height="24"/>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="180" id="mhj-Zx-MME"/>
|
|
||||||
</constraints>
|
|
||||||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="237">
|
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="237">
|
||||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" id="238"/>
|
<menu key="menu" id="238"/>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="180" id="2hc-oc-YJo"/>
|
||||||
|
</constraints>
|
||||||
<connections>
|
<connections>
|
||||||
<accessibilityConnection property="title" destination="206" id="SzO-00-e3U"/>
|
<accessibilityConnection property="title" destination="206" id="SzO-00-e3U"/>
|
||||||
<action selector="updateRatingsCountry:" target="-2" id="242"/>
|
<action selector="updateRatingsCountry:" target="-2" id="242"/>
|
||||||
@@ -187,79 +205,138 @@
|
|||||||
<binding destination="123" name="selectedValue" keyPath="values.SBRatingsCountry" previousBinding="245" id="248"/>
|
<binding destination="123" name="selectedValue" keyPath="values.SBRatingsCountry" previousBinding="245" id="248"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mNP-6I-gV4">
|
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mNP-6I-gV4">
|
||||||
<rect key="frame" x="232" y="139" width="44" height="14"/>
|
<rect key="frame" x="239" y="172" width="44" height="14"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="Middle" id="2o1-dB-mt1">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="Middle" id="2o1-dB-mt1">
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message" size="11"/>
|
||||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
|
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="logFormatLabel">
|
||||||
|
<rect key="frame" x="18" y="94" width="112" height="16"/>
|
||||||
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Log Format:" id="logFormatLabelCell">
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
</textField>
|
||||||
|
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="saveLocationLabel">
|
||||||
|
<rect key="frame" x="18" y="246" width="112" height="16"/>
|
||||||
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Save As Location:" id="saveLocationLabelCell">
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
</textField>
|
||||||
|
<popUpButton verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="saveLocationPopUp">
|
||||||
|
<rect key="frame" x="136" y="242" width="180" height="24"/>
|
||||||
|
<popUpButtonCell key="cell" type="push" title="Automatic" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="saveLocationLastUsed" id="saveLocationCell">
|
||||||
|
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="message"/>
|
||||||
|
<menu key="menu" id="saveLocationMenu">
|
||||||
|
<items>
|
||||||
|
<menuItem title="Automatic" state="on" id="saveLocationLastUsed">
|
||||||
|
<connections>
|
||||||
|
<action selector="setSaveLocation:" target="-2" id="saveLocationLastUsedAction"/>
|
||||||
|
</connections>
|
||||||
|
</menuItem>
|
||||||
|
<menuItem title="Same as File" tag="1" id="saveLocationSameAsFile">
|
||||||
|
<connections>
|
||||||
|
<action selector="setSaveLocation:" target="-2" id="saveLocationSameAsFileAction"/>
|
||||||
|
</connections>
|
||||||
|
</menuItem>
|
||||||
|
<menuItem isSeparatorItem="YES" id="saveLocationSeparator"/>
|
||||||
|
<menuItem title="Other…" tag="3" id="saveLocationOther">
|
||||||
|
<connections>
|
||||||
|
<action selector="chooseSaveLocation:" target="-2" id="saveLocationOtherAction"/>
|
||||||
|
</connections>
|
||||||
|
</menuItem>
|
||||||
|
</items>
|
||||||
|
</menu>
|
||||||
|
</popUpButtonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="180" id="saveLocationWidth"/>
|
||||||
|
</constraints>
|
||||||
|
<connections>
|
||||||
|
<accessibilityConnection property="title" destination="saveLocationLabel" id="saveLocationAccessibility"/>
|
||||||
|
</connections>
|
||||||
|
</popUpButton>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="236" secondAttribute="trailing" constant="20" symbolic="YES" id="1oW-ke-hqe"/>
|
<constraint firstItem="133" firstAttribute="width" secondItem="136" secondAttribute="width" id="05F-cw-fMw"/>
|
||||||
<constraint firstItem="tVb-Qq-sU7" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" id="27C-Ly-Tkt"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="79" secondAttribute="trailing" id="0bd-hZ-ylz"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="82" secondAttribute="trailing" constant="20" symbolic="YES" id="3hd-ph-Nok"/>
|
<constraint firstItem="78" firstAttribute="firstBaseline" secondItem="80" secondAttribute="firstBaseline" id="1td-Oe-7AD"/>
|
||||||
<constraint firstItem="136" firstAttribute="leading" secondItem="133" secondAttribute="leading" id="4f8-7e-F9H"/>
|
<constraint firstItem="79" firstAttribute="leading" secondItem="B5v-6Q-3Qa" secondAttribute="leading" id="2Mr-Mj-vU1"/>
|
||||||
<constraint firstItem="236" firstAttribute="firstBaseline" secondItem="206" secondAttribute="firstBaseline" id="5Vz-H5-wjk"/>
|
<constraint firstItem="JhA-jk-CGt" firstAttribute="top" secondItem="82" secondAttribute="bottom" constant="8" symbolic="YES" id="2vm-yX-6Ce"/>
|
||||||
<constraint firstItem="tVb-Qq-sU7" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="mNP-6I-gV4" secondAttribute="trailing" constant="8" symbolic="YES" id="7eN-Xm-Z9h"/>
|
<constraint firstItem="80" firstAttribute="top" secondItem="B5v-6Q-3Qa" secondAttribute="bottom" constant="24" id="3ue-nN-QeE"/>
|
||||||
<constraint firstItem="136" firstAttribute="top" secondItem="133" secondAttribute="bottom" constant="10" id="7kk-gt-dXa"/>
|
<constraint firstItem="B5v-6Q-3Qa" firstAttribute="top" secondItem="79" secondAttribute="bottom" constant="6" symbolic="YES" id="5ve-SK-Mci"/>
|
||||||
<constraint firstItem="78" firstAttribute="leading" secondItem="77" secondAttribute="leading" id="8JN-XP-DsB"/>
|
<constraint firstAttribute="bottom" secondItem="136" secondAttribute="bottom" constant="20" symbolic="YES" id="6Bj-Ao-4kA"/>
|
||||||
<constraint firstItem="139" firstAttribute="leading" secondItem="206" secondAttribute="leading" id="98n-sk-tTI"/>
|
<constraint firstItem="78" firstAttribute="width" secondItem="81" secondAttribute="width" id="8Em-7b-7bc"/>
|
||||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" id="A3z-Gk-hqC"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="JhA-jk-CGt" secondAttribute="trailing" id="8sB-JV-mUa"/>
|
||||||
<constraint firstItem="79" firstAttribute="leading" secondItem="77" secondAttribute="trailing" constant="8" id="AmK-53-V7H"/>
|
<constraint firstItem="logFormatPopup" firstAttribute="top" secondItem="249" secondAttribute="bottom" constant="8" symbolic="YES" id="9n2-fa-iGe"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="136" secondAttribute="trailing" constant="20" symbolic="YES" id="BUH-t3-FKl"/>
|
<constraint firstItem="logFormatLabel" firstAttribute="leading" secondItem="139" secondAttribute="leading" id="ACz-EL-4Hh"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="79" secondAttribute="trailing" constant="20" symbolic="YES" id="C2B-fq-5vM"/>
|
<constraint firstItem="XPF-Mh-XYC" firstAttribute="firstBaseline" secondItem="mNP-6I-gV4" secondAttribute="firstBaseline" id="AFc-cn-ab1"/>
|
||||||
<constraint firstItem="81" firstAttribute="leading" secondItem="78" secondAttribute="leading" id="Ctg-6r-Vpm"/>
|
<constraint firstItem="77" firstAttribute="top" secondItem="dxI-5Q-gDD" secondAttribute="top" constant="20" symbolic="YES" id="D9x-E1-HxF"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="136" secondAttribute="bottom" constant="20" symbolic="YES" id="Cxf-3a-EqU"/>
|
<constraint firstItem="82" firstAttribute="leading" secondItem="JhA-jk-CGt" secondAttribute="leading" constant="-18" id="E8S-ti-ghL"/>
|
||||||
<constraint firstItem="133" firstAttribute="top" secondItem="249" secondAttribute="bottom" constant="23" id="DFU-xm-8vq"/>
|
<constraint firstItem="82" firstAttribute="top" secondItem="saveLocationPopUp" secondAttribute="bottom" constant="10" id="ELH-2G-UJe"/>
|
||||||
<constraint firstItem="B5v-6Q-3Qa" firstAttribute="leading" secondItem="79" secondAttribute="leading" id="FJg-U6-HDs"/>
|
<constraint firstItem="mNP-6I-gV4" firstAttribute="firstBaseline" secondItem="tVb-Qq-sU7" secondAttribute="firstBaseline" id="ElQ-mv-Pfd"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" constant="20" id="J3X-XR-5sZ"/>
|
<constraint firstItem="206" firstAttribute="width" secondItem="logFormatLabel" secondAttribute="width" id="G5L-ax-8Io"/>
|
||||||
<constraint firstItem="82" firstAttribute="leading" secondItem="81" secondAttribute="trailing" constant="8" id="LHd-r8-b8o"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" id="Ies-Bx-zqg"/>
|
||||||
<constraint firstItem="JhA-jk-CGt" firstAttribute="leading" secondItem="82" secondAttribute="leading" constant="18" id="NQL-dp-Vub"/>
|
<constraint firstAttribute="trailing" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" priority="750" constant="19" id="L97-mT-mLE"/>
|
||||||
<constraint firstItem="XPF-Mh-XYC" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" id="O6P-tC-NH3"/>
|
<constraint firstItem="77" firstAttribute="firstBaseline" secondItem="79" secondAttribute="firstBaseline" id="LWO-5R-E6y"/>
|
||||||
<constraint firstItem="78" firstAttribute="width" secondItem="81" secondAttribute="width" id="QlR-IC-jsI"/>
|
<constraint firstItem="136" firstAttribute="top" secondItem="133" secondAttribute="bottom" constant="10" id="MKK-lc-cU2"/>
|
||||||
<constraint firstItem="JhA-jk-CGt" firstAttribute="top" secondItem="82" secondAttribute="bottom" constant="8" id="QnP-ja-Gc7"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="133" secondAttribute="trailing" id="MPl-R6-UUO"/>
|
||||||
<constraint firstItem="XPF-Mh-XYC" firstAttribute="leading" secondItem="JhA-jk-CGt" secondAttribute="leading" id="Rfn-GF-l2N"/>
|
<constraint firstItem="XPF-Mh-XYC" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" constant="6" id="MvX-7T-WjO"/>
|
||||||
<constraint firstItem="82" firstAttribute="top" secondItem="80" secondAttribute="bottom" constant="10" id="Rh6-wr-DAJ"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="82" secondAttribute="trailing" id="N5X-3a-SM6"/>
|
||||||
<constraint firstItem="236" firstAttribute="top" secondItem="XPF-Mh-XYC" secondAttribute="bottom" constant="7" id="SB1-bz-e1K"/>
|
<constraint firstItem="77" firstAttribute="leading" secondItem="dxI-5Q-gDD" secondAttribute="leading" constant="20" symbolic="YES" id="Ndo-DG-rTs"/>
|
||||||
<constraint firstItem="tVb-Qq-sU7" firstAttribute="trailing" secondItem="JhA-jk-CGt" secondAttribute="trailing" id="UtU-8c-yJh"/>
|
<constraint firstItem="79" firstAttribute="leading" secondItem="77" secondAttribute="trailing" constant="8" symbolic="YES" id="Oa0-iG-Y8X"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" priority="750" constant="20" id="WZa-Od-APp"/>
|
<constraint firstItem="82" firstAttribute="leading" secondItem="81" secondAttribute="trailing" constant="8" symbolic="YES" id="OhX-HZ-gdU"/>
|
||||||
<constraint firstItem="JhA-jk-CGt" firstAttribute="trailing" secondItem="82" secondAttribute="trailing" id="XmQ-xf-0Vu"/>
|
<constraint firstItem="236" firstAttribute="leading" secondItem="206" secondAttribute="trailing" constant="8" symbolic="YES" id="Sgq-Ky-wad"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="133" secondAttribute="trailing" constant="20" symbolic="YES" id="Xma-7G-WMb"/>
|
<constraint firstItem="206" firstAttribute="leading" secondItem="logFormatLabel" secondAttribute="leading" id="TIw-54-KF5"/>
|
||||||
<constraint firstItem="80" firstAttribute="firstBaseline" secondItem="78" secondAttribute="firstBaseline" id="YqB-Qi-X3l"/>
|
<constraint firstItem="133" firstAttribute="leading" secondItem="139" secondAttribute="trailing" constant="8" symbolic="YES" id="TQC-yN-iis"/>
|
||||||
<constraint firstItem="77" firstAttribute="width" secondItem="78" secondAttribute="width" id="Z1U-c1-eRX"/>
|
<constraint firstItem="JhA-jk-CGt" firstAttribute="trailing" secondItem="tVb-Qq-sU7" secondAttribute="trailing" id="Tbj-IO-aVa"/>
|
||||||
<constraint firstItem="82" firstAttribute="firstBaseline" secondItem="81" secondAttribute="firstBaseline" id="aYU-OT-jre"/>
|
<constraint firstItem="133" firstAttribute="leading" secondItem="136" secondAttribute="leading" id="TsE-6g-XG7"/>
|
||||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="centerX" secondItem="JhA-jk-CGt" secondAttribute="centerX" id="b0h-AX-P0j"/>
|
<constraint firstItem="81" firstAttribute="leading" secondItem="206" secondAttribute="leading" id="UAx-iy-hxT"/>
|
||||||
<constraint firstItem="249" firstAttribute="top" secondItem="236" secondAttribute="bottom" constant="2" id="bJo-qb-vyA"/>
|
<constraint firstItem="81" firstAttribute="firstBaseline" secondItem="82" secondAttribute="firstBaseline" id="VaX-EX-DOj"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="JhA-jk-CGt" secondAttribute="trailing" constant="20" symbolic="YES" id="cO3-0g-Ika"/>
|
<constraint firstItem="81" firstAttribute="width" secondItem="206" secondAttribute="width" id="X0h-iv-OhL"/>
|
||||||
<constraint firstItem="206" firstAttribute="width" secondItem="139" secondAttribute="width" id="cVB-T7-Lgd"/>
|
<constraint firstItem="206" firstAttribute="firstBaseline" secondItem="236" secondAttribute="firstBaseline" id="Xab-xw-ax9"/>
|
||||||
<constraint firstItem="77" firstAttribute="top" secondItem="dxI-5Q-gDD" secondAttribute="top" constant="20" symbolic="YES" id="dAn-q7-AND"/>
|
<constraint firstItem="XPF-Mh-XYC" firstAttribute="leading" secondItem="JhA-jk-CGt" secondAttribute="leading" id="ZmN-hP-iwq"/>
|
||||||
<constraint firstItem="77" firstAttribute="leading" secondItem="dxI-5Q-gDD" secondAttribute="leading" constant="20" symbolic="YES" id="e7R-TS-ubO"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="236" secondAttribute="trailing" id="abQ-h9-0wL"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="80" secondAttribute="trailing" constant="20" symbolic="YES" id="gEL-hv-NaH"/>
|
<constraint firstItem="249" firstAttribute="top" secondItem="236" secondAttribute="bottom" constant="2" id="agf-iq-Fof"/>
|
||||||
<constraint firstItem="206" firstAttribute="leading" secondItem="81" secondAttribute="leading" id="gu1-Mn-ct5"/>
|
<constraint firstItem="logFormatLabel" firstAttribute="firstBaseline" secondItem="logFormatPopup" secondAttribute="firstBaseline" id="fpM-Am-Shn"/>
|
||||||
<constraint firstItem="mNP-6I-gV4" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="XPF-Mh-XYC" secondAttribute="trailing" constant="8" symbolic="YES" id="jyx-OY-6tw"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="logFormatPopup" secondAttribute="trailing" id="gPM-A7-A88"/>
|
||||||
<constraint firstItem="133" firstAttribute="firstBaseline" secondItem="139" secondAttribute="firstBaseline" id="kA6-a1-Krp"/>
|
<constraint firstItem="JhA-jk-CGt" firstAttribute="width" secondItem="82" secondAttribute="width" multiplier="0.923077" id="jgz-Me-pjU"/>
|
||||||
<constraint firstItem="249" firstAttribute="leading" secondItem="236" secondAttribute="leading" id="kh1-gL-cmS"/>
|
<constraint firstItem="236" firstAttribute="top" secondItem="XPF-Mh-XYC" secondAttribute="bottom" constant="10" id="kR3-YO-JZD"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="249" secondAttribute="trailing" constant="20" symbolic="YES" id="mef-Mj-rvp"/>
|
<constraint firstItem="78" firstAttribute="leading" secondItem="81" secondAttribute="leading" id="kaX-Td-UPd"/>
|
||||||
<constraint firstItem="236" firstAttribute="leading" secondItem="206" secondAttribute="trailing" constant="8" id="n47-AS-gXR"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="80" secondAttribute="trailing" id="ltP-cz-uYy"/>
|
||||||
<constraint firstItem="80" firstAttribute="leading" secondItem="78" secondAttribute="trailing" constant="8" id="nPD-Zb-eKT"/>
|
<constraint firstItem="236" firstAttribute="leading" secondItem="249" secondAttribute="leading" id="nFq-4a-rlf"/>
|
||||||
<constraint firstItem="82" firstAttribute="leading" secondItem="81" secondAttribute="trailing" constant="8" id="sCG-e3-Wcb"/>
|
<constraint firstItem="JhA-jk-CGt" firstAttribute="centerX" secondItem="mNP-6I-gV4" secondAttribute="centerX" id="oJD-2R-bDt"/>
|
||||||
<constraint firstItem="77" firstAttribute="firstBaseline" secondItem="79" secondAttribute="firstBaseline" id="tSW-F5-J12"/>
|
<constraint firstItem="logFormatLabel" firstAttribute="width" secondItem="139" secondAttribute="width" id="rof-yU-4Yg"/>
|
||||||
<constraint firstItem="136" firstAttribute="width" secondItem="133" secondAttribute="width" id="u0D-8L-4Yl"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="136" secondAttribute="trailing" id="s3j-nY-Z3K"/>
|
||||||
<constraint firstItem="81" firstAttribute="width" secondItem="206" secondAttribute="width" id="v43-RZ-P1e"/>
|
<constraint firstItem="saveLocationLabel" firstAttribute="firstBaseline" secondItem="saveLocationPopUp" secondAttribute="firstBaseline" id="saveLocationBaseline"/>
|
||||||
<constraint firstItem="B5v-6Q-3Qa" firstAttribute="top" secondItem="79" secondAttribute="bottom" constant="6" id="vbo-wa-RS0"/>
|
<constraint firstItem="saveLocationPopUp" firstAttribute="leading" secondItem="saveLocationLabel" secondAttribute="trailing" constant="8" symbolic="YES" id="saveLocationHorizontalSpace"/>
|
||||||
<constraint firstItem="80" firstAttribute="top" secondItem="B5v-6Q-3Qa" secondAttribute="bottom" constant="24" id="wIZ-qs-cis"/>
|
<constraint firstItem="saveLocationLabel" firstAttribute="width" secondItem="206" secondAttribute="width" id="saveLocationLabelWidth"/>
|
||||||
<constraint firstItem="133" firstAttribute="leading" secondItem="139" secondAttribute="trailing" constant="8" id="y4R-KJ-KyA"/>
|
<constraint firstItem="saveLocationLabel" firstAttribute="leading" secondItem="206" secondAttribute="leading" id="saveLocationLeading"/>
|
||||||
|
<constraint firstItem="saveLocationPopUp" firstAttribute="top" secondItem="80" secondAttribute="bottom" constant="10" id="saveLocationTop"/>
|
||||||
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="saveLocationPopUp" secondAttribute="trailing" id="saveLocationTrailing"/>
|
||||||
|
<constraint firstItem="77" firstAttribute="width" secondItem="78" secondAttribute="width" id="uK9-gt-tF8"/>
|
||||||
|
<constraint firstItem="80" firstAttribute="leading" secondItem="78" secondAttribute="trailing" constant="8" symbolic="YES" id="v25-j6-krj"/>
|
||||||
|
<constraint firstItem="139" firstAttribute="firstBaseline" secondItem="133" secondAttribute="firstBaseline" id="w1s-Sg-fws"/>
|
||||||
|
<constraint firstItem="logFormatPopup" firstAttribute="leading" secondItem="logFormatLabel" secondAttribute="trailing" constant="8" symbolic="YES" id="x2X-oB-Otz"/>
|
||||||
|
<constraint firstItem="133" firstAttribute="top" secondItem="logFormatPopup" secondAttribute="bottom" constant="12" id="yqF-AO-Qdb"/>
|
||||||
|
<constraint firstItem="77" firstAttribute="leading" secondItem="78" secondAttribute="leading" id="zBN-dc-5DC"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</customView>
|
</customView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="bottom" secondItem="dxI-5Q-gDD" secondAttribute="bottom" id="0Kk-6J-TZf"/>
|
<constraint firstItem="dxI-5Q-gDD" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="76" secondAttribute="leading" id="A10-FJ-fxP"/>
|
||||||
<constraint firstItem="dxI-5Q-gDD" firstAttribute="centerX" secondItem="76" secondAttribute="centerX" id="At8-0S-kG8"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="dxI-5Q-gDD" secondAttribute="trailing" id="Q0g-0U-MoZ"/>
|
||||||
<constraint firstItem="dxI-5Q-gDD" firstAttribute="top" secondItem="76" secondAttribute="top" id="EGu-f6-P6n"/>
|
<constraint firstItem="dxI-5Q-gDD" firstAttribute="top" secondItem="76" secondAttribute="top" id="XWt-l9-pFF"/>
|
||||||
|
<constraint firstAttribute="bottom" secondItem="dxI-5Q-gDD" secondAttribute="bottom" id="wdL-pt-Rs9"/>
|
||||||
|
<constraint firstItem="dxI-5Q-gDD" firstAttribute="centerX" secondItem="76" secondAttribute="centerX" id="xIO-0a-40f"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="-452" y="-1223"/>
|
<point key="canvasLocation" x="-452" y="-1218"/>
|
||||||
</customView>
|
</customView>
|
||||||
<userDefaultsController representsSharedInstance="YES" id="123"/>
|
<userDefaultsController representsSharedInstance="YES" id="123"/>
|
||||||
</objects>
|
</objects>
|
||||||
|
|||||||
+25
-28
@@ -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">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="25098" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="25098"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
|
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
|
||||||
@@ -23,12 +23,6 @@
|
|||||||
<action selector="orderFrontStandardAboutPanel:" target="-2" id="142"/>
|
<action selector="orderFrontStandardAboutPanel:" target="-2" id="142"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Check for Updates…" id="529">
|
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
|
||||||
<connections>
|
|
||||||
<action selector="checkForUpdates:" target="530" id="531"/>
|
|
||||||
</connections>
|
|
||||||
</menuItem>
|
|
||||||
<menuItem title="Donate…" id="ojS-sZ-qGM">
|
<menuItem title="Donate…" id="ojS-sZ-qGM">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
<connections>
|
<connections>
|
||||||
@@ -38,7 +32,7 @@
|
|||||||
<menuItem isSeparatorItem="YES" id="236">
|
<menuItem isSeparatorItem="YES" id="236">
|
||||||
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
|
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Preferences…" keyEquivalent="," id="129" userLabel="121">
|
<menuItem title="Preferences…" preferredImageVisibility="hidden" keyEquivalent="," id="129" userLabel="121">
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="showPrefsWindow:" target="-1" id="558"/>
|
<action selector="showPrefsWindow:" target="-1" id="558"/>
|
||||||
</connections>
|
</connections>
|
||||||
@@ -147,12 +141,13 @@
|
|||||||
<action selector="sendToQueue:" target="-1" id="599"/>
|
<action selector="sendToQueue:" target="-1" id="599"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Send To iTunes" id="597" userLabel="10">
|
<menuItem title="Send To iTunes" keyEquivalent="I" id="597" userLabel="10">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="sendToExternalApp:" target="-1" id="598"/>
|
<action selector="sendToExternalApp:" target="-1" id="598"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
|
<menuItem isSeparatorItem="YES" id="Wqy-Ps-5Qb"/>
|
||||||
<menuItem title="Import" id="544">
|
<menuItem title="Import" id="544">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
<menu key="submenu" title="Import" id="545">
|
<menu key="submenu" title="Import" id="545">
|
||||||
@@ -184,15 +179,18 @@
|
|||||||
<menuItem isSeparatorItem="YES" id="74" userLabel="2">
|
<menuItem isSeparatorItem="YES" id="74" userLabel="2">
|
||||||
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
|
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Page Setup..." keyEquivalent="P" id="77" userLabel="5">
|
<menuItem title="Start Queue" keyEquivalent="B" id="TRh-ZN-Id8">
|
||||||
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
|
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="runPageLayout:" target="-1" id="87"/>
|
<action selector="toggleStartStop:" target="449" id="ea4-oe-9YQ"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Print…" keyEquivalent="p" id="78" userLabel="6">
|
<menuItem title="Remove completed items from queue" id="Cre-T6-PID">
|
||||||
|
<string key="keyEquivalent" base64-UTF8="YES">
|
||||||
|
CA
|
||||||
|
</string>
|
||||||
|
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="printDocument:" target="-1" id="373"/>
|
<action selector="removeCompletedItems:" target="-1" id="ouO-db-qWo"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
</items>
|
</items>
|
||||||
@@ -241,8 +239,8 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem isSeparatorItem="YES" id="532"/>
|
<menuItem isSeparatorItem="YES" id="532"/>
|
||||||
<menuItem title="Offset…" id="567">
|
<menuItem title="Offset…" keyEquivalent="o" id="567">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="showTrackOffsetSheet:" target="-1" id="570"/>
|
<action selector="showTrackOffsetSheet:" target="-1" id="570"/>
|
||||||
</connections>
|
</connections>
|
||||||
@@ -309,31 +307,31 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Organize alternate groups" id="652">
|
<menuItem title="Organize alternate groups" keyEquivalent="g" id="652">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="iTunesFriendlyTrackGroups:" target="-1" id="654"/>
|
<action selector="iTunesFriendlyTrackGroups:" target="-1" id="654"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Clear tracks names" id="hKY-N2-NzK">
|
<menuItem title="Clear tracks names" keyEquivalent="n" id="hKY-N2-NzK">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="clearTrackNames:" target="-1" id="KsZ-tN-sdV"/>
|
<action selector="clearTrackNames:" target="-1" id="KsZ-tN-sdV"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Prettify audio track names" id="fm8-d2-1Yi">
|
<menuItem title="Prettify audio track names" keyEquivalent="p" id="fm8-d2-1Yi">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="prettifyAudioTrackNames:" target="-1" id="z63-Uv-MTO"/>
|
<action selector="prettifyAudioTrackNames:" target="-1" id="z63-Uv-MTO"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="Fix audio fallbacks" id="FXb-bX-0Wb">
|
<menuItem title="Fix audio fallbacks" keyEquivalent="f" id="FXb-bX-0Wb">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="fixAudioFallbacks:" target="-1" id="cpY-If-3df"/>
|
<action selector="fixAudioFallbacks:" target="-1" id="cpY-If-3df"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem isSeparatorItem="YES" id="568"/>
|
<menuItem isSeparatorItem="YES" id="yw4-pb-tNR"/>
|
||||||
<menuItem title="Find" id="218">
|
<menuItem title="Find" id="218">
|
||||||
<menu key="submenu" title="Find" id="220">
|
<menu key="submenu" title="Find" id="220">
|
||||||
<items>
|
<items>
|
||||||
@@ -488,7 +486,7 @@
|
|||||||
</menu>
|
</menu>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
</items>
|
</items>
|
||||||
<point key="canvasLocation" x="-244" y="-303"/>
|
<point key="canvasLocation" x="214" y="-221"/>
|
||||||
</menu>
|
</menu>
|
||||||
<customObject id="419" customClass="NSFontManager"/>
|
<customObject id="419" customClass="NSFontManager"/>
|
||||||
<customObject id="449" userLabel="AppDelegate" customClass="AppDelegate" customModule="Subler" customModuleProvider="target">
|
<customObject id="449" userLabel="AppDelegate" customClass="AppDelegate" customModule="Subler" customModuleProvider="target">
|
||||||
@@ -496,6 +494,5 @@
|
|||||||
<outlet property="sendToExternalApp" destination="597" id="Kz4-8d-I4D"/>
|
<outlet property="sendToExternalApp" destination="597" id="Kz4-8d-I4D"/>
|
||||||
</connections>
|
</connections>
|
||||||
</customObject>
|
</customObject>
|
||||||
<customObject id="530" customClass="SPUStandardUpdaterController"/>
|
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
@@ -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">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uAC-d6-cWk">
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uAC-d6-cWk">
|
||||||
<rect key="frame" x="20" y="195" width="83" height="14"/>
|
<rect key="frame" x="20" y="195" width="83" height="14"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Media tags:" id="xXI-Cs-cBg">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Media tags:" id="xXI-Cs-cBg">
|
||||||
|
|||||||
+152
-173
@@ -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="25098" 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="25098"/>
|
||||||
<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>
|
||||||
@@ -32,11 +32,11 @@
|
|||||||
<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"/>
|
||||||
<view id="1lR-dE-p3x">
|
<view id="1lR-dE-p3x">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="550" height="466"/>
|
<rect key="frame" x="0.0" y="0.0" width="550" height="505"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Bfj-tB-Wq2">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Bfj-tB-Wq2">
|
||||||
<rect key="frame" x="439" y="13" width="98" height="32"/>
|
<rect key="frame" x="446" y="20" width="84" height="24"/>
|
||||||
<buttonCell key="cell" type="push" title="Add" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="PqB-NK-OtT">
|
<buttonCell key="cell" type="push" title="Add" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="PqB-NK-OtT">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="zM1-YP-Au2">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="zM1-YP-Au2">
|
||||||
<rect key="frame" x="343" y="13" width="98" height="32"/>
|
<rect key="frame" x="350" y="20" width="84" height="24"/>
|
||||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="PJC-dF-B1z">
|
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="PJC-dF-B1z">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -64,55 +64,34 @@ Gw
|
|||||||
<progressIndicator hidden="YES" wantsLayer="YES" horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" translatesAutoresizingMaskIntoConstraints="NO" id="QEr-1S-JZX">
|
<progressIndicator hidden="YES" wantsLayer="YES" horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" translatesAutoresizingMaskIntoConstraints="NO" id="QEr-1S-JZX">
|
||||||
<rect key="frame" x="20" y="20" width="16" height="16"/>
|
<rect key="frame" x="20" y="20" width="16" height="16"/>
|
||||||
</progressIndicator>
|
</progressIndicator>
|
||||||
<tabView translatesAutoresizingMaskIntoConstraints="NO" id="6hW-RR-cfF">
|
<tabView horizontalHuggingPriority="249" verticalHuggingPriority="249" translatesAutoresizingMaskIntoConstraints="NO" id="6hW-RR-cfF">
|
||||||
<rect key="frame" x="-12" y="347" width="574" height="115"/>
|
<rect key="frame" x="-11" y="383" width="572" height="118"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="height" constant="102" id="bDZ-xh-EwQ"/>
|
||||||
|
</constraints>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<tabViewItems>
|
<tabViewItems>
|
||||||
<tabViewItem label="Movie" identifier="1" id="apc-8c-iyM">
|
<tabViewItem label="Movie" identifier="1" id="apc-8c-iyM">
|
||||||
<view key="view" id="e2g-GX-p4j">
|
<view key="view" id="e2g-GX-p4j">
|
||||||
<rect key="frame" x="10" y="33" width="554" height="69"/>
|
<rect key="frame" x="10" y="33" width="552" height="72"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="150" translatesAutoresizingMaskIntoConstraints="NO" id="gBb-mO-eZD">
|
|
||||||
<rect key="frame" x="18" y="45" width="44" height="16"/>
|
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Movie:" id="uyt-vh-nv6">
|
|
||||||
<font key="font" metaFont="system"/>
|
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
||||||
</textFieldCell>
|
|
||||||
</textField>
|
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Dyr-Xb-8vA">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Dyr-Xb-8vA">
|
||||||
<rect key="frame" x="67" y="42" width="395" height="21"/>
|
<rect key="frame" x="20" y="44" width="434" height="24"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="sXD-8k-I7r">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="sXD-8k-I7r">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
<connections>
|
<connections>
|
||||||
<accessibilityConnection property="title" destination="gBb-mO-eZD" id="V6J-SK-ibX"/>
|
|
||||||
<outlet property="delegate" destination="-2" id="HI8-qI-i23"/>
|
<outlet property="delegate" destination="-2" id="HI8-qI-i23"/>
|
||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="qsS-B6-c2q">
|
<popUpButton horizontalCompressionResistancePriority="751" verticalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="0aO-Wz-ASZ">
|
||||||
<rect key="frame" x="64" y="6" width="187" height="25"/>
|
<rect key="frame" x="20" y="10" width="125" height="24"/>
|
||||||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="tuc-lL-n0W">
|
|
||||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
|
||||||
<font key="font" metaFont="menu"/>
|
|
||||||
<menu key="menu" id="obN-m7-G5Q"/>
|
|
||||||
</popUpButtonCell>
|
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="180" id="t4t-2B-C6I"/>
|
|
||||||
</constraints>
|
|
||||||
<accessibility description="Language"/>
|
|
||||||
<connections>
|
|
||||||
<action selector="metadataProviderLanguageSelected:" target="-2" id="WiO-tU-ojJ"/>
|
|
||||||
</connections>
|
|
||||||
</popUpButton>
|
|
||||||
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="0aO-Wz-ASZ">
|
|
||||||
<rect key="frame" x="424" y="6" width="117" height="25"/>
|
|
||||||
<popUpButtonCell key="cell" type="push" title="iTunes Store" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="border" inset="2" selectedItem="nn6-mR-Bh1" id="k9r-Fo-4Nl">
|
<popUpButtonCell key="cell" type="push" title="iTunes Store" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="border" inset="2" selectedItem="nn6-mR-Bh1" id="k9r-Fo-4Nl">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="menu"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" id="Gqk-Gk-yG7">
|
<menu key="menu" id="Gqk-Gk-yG7">
|
||||||
<items>
|
<items>
|
||||||
<menuItem title="iTunes Store" state="on" id="nn6-mR-Bh1"/>
|
<menuItem title="iTunes Store" state="on" id="nn6-mR-Bh1"/>
|
||||||
@@ -120,17 +99,14 @@ Gw
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="110" id="4MR-8H-PO9"/>
|
|
||||||
</constraints>
|
|
||||||
<accessibility description="Metadata Provider"/>
|
<accessibility description="Metadata Provider"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="metadataProviderSelected:" target="-2" id="Z6X-nl-ffA"/>
|
<action selector="metadataProviderSelected:" target="-2" id="Z6X-nl-ffA"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="x4l-iV-xgr">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="x4l-iV-xgr">
|
||||||
<rect key="frame" x="467" y="36" width="77" height="32"/>
|
<rect key="frame" x="466" y="44" width="66" height="24"/>
|
||||||
<buttonCell key="cell" type="push" title="Search" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="HF1-WK-lv1">
|
<buttonCell key="cell" type="push" title="Search" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="HF1-WK-lv1">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<string key="keyEquivalent" base64-UTF8="YES">
|
<string key="keyEquivalent" base64-UTF8="YES">
|
||||||
@@ -141,51 +117,112 @@ DQ
|
|||||||
<action selector="searchForResults:" target="-2" id="Oy5-RZ-YGX"/>
|
<action selector="searchForResults:" target="-2" id="Oy5-RZ-YGX"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="qsS-B6-c2q">
|
||||||
|
<rect key="frame" x="153" y="10" width="130" height="24"/>
|
||||||
|
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="tuc-lL-n0W">
|
||||||
|
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="message"/>
|
||||||
|
<menu key="menu" id="obN-m7-G5Q"/>
|
||||||
|
</popUpButtonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="130" id="TL8-uD-R6K"/>
|
||||||
|
</constraints>
|
||||||
|
<accessibility description="Language"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="metadataProviderLanguageSelected:" target="-2" id="WiO-tU-ojJ"/>
|
||||||
|
</connections>
|
||||||
|
</popUpButton>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstItem="0aO-Wz-ASZ" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="qsS-B6-c2q" secondAttribute="trailing" constant="20" id="9UN-0q-TUf"/>
|
<constraint firstItem="0aO-Wz-ASZ" firstAttribute="leading" secondItem="e2g-GX-p4j" secondAttribute="leading" constant="20" symbolic="YES" id="80g-EC-tOh"/>
|
||||||
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="leading" secondItem="gBb-mO-eZD" secondAttribute="trailing" constant="7" id="Gas-Hm-DaP"/>
|
|
||||||
<constraint firstItem="0aO-Wz-ASZ" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="e2g-GX-p4j" secondAttribute="leading" constant="20" symbolic="YES" id="Hk6-CI-CYe"/>
|
|
||||||
<constraint firstItem="x4l-iV-xgr" firstAttribute="centerY" secondItem="Dyr-Xb-8vA" secondAttribute="centerY" id="Hvk-C7-byp"/>
|
<constraint firstItem="x4l-iV-xgr" firstAttribute="centerY" secondItem="Dyr-Xb-8vA" secondAttribute="centerY" id="Hvk-C7-byp"/>
|
||||||
<constraint firstItem="x4l-iV-xgr" firstAttribute="leading" secondItem="Dyr-Xb-8vA" secondAttribute="trailing" constant="12" id="LJF-Kf-dQD"/>
|
<constraint firstItem="x4l-iV-xgr" firstAttribute="leading" secondItem="Dyr-Xb-8vA" secondAttribute="trailing" constant="12" id="LJF-Kf-dQD"/>
|
||||||
<constraint firstItem="qsS-B6-c2q" firstAttribute="top" secondItem="e2g-GX-p4j" secondAttribute="top" constant="39" id="M8Q-0P-nWB"/>
|
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="top" secondItem="e2g-GX-p4j" secondAttribute="top" constant="4" id="RJf-nv-Vmc"/>
|
||||||
<constraint firstItem="qsS-B6-c2q" firstAttribute="bottom" secondItem="0aO-Wz-ASZ" secondAttribute="bottom" id="OEE-wC-5np"/>
|
<constraint firstItem="0aO-Wz-ASZ" firstAttribute="centerY" secondItem="qsS-B6-c2q" secondAttribute="centerY" id="T91-4a-kLt"/>
|
||||||
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="firstBaseline" secondItem="gBb-mO-eZD" secondAttribute="firstBaseline" id="WeN-uo-QVa"/>
|
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="leading" secondItem="e2g-GX-p4j" secondAttribute="leading" constant="20" symbolic="YES" id="TD7-Np-2g0"/>
|
||||||
<constraint firstItem="gBb-mO-eZD" firstAttribute="top" secondItem="e2g-GX-p4j" secondAttribute="top" constant="8" id="Y39-sC-lfw"/>
|
<constraint firstAttribute="bottom" secondItem="0aO-Wz-ASZ" secondAttribute="bottom" constant="10" id="bqC-Gj-KcW"/>
|
||||||
<constraint firstItem="x4l-iV-xgr" firstAttribute="trailing" secondItem="0aO-Wz-ASZ" secondAttribute="trailing" id="crX-q8-6xo"/>
|
<constraint firstAttribute="trailing" secondItem="x4l-iV-xgr" secondAttribute="trailing" constant="20" symbolic="YES" id="fhM-i9-sRG"/>
|
||||||
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="leading" secondItem="gBb-mO-eZD" secondAttribute="trailing" constant="7" id="cxE-Kb-aJS"/>
|
<constraint firstItem="0aO-Wz-ASZ" firstAttribute="top" secondItem="Dyr-Xb-8vA" secondAttribute="bottom" constant="10" id="g1y-qg-YWU"/>
|
||||||
<constraint firstItem="gBb-mO-eZD" firstAttribute="leading" secondItem="e2g-GX-p4j" secondAttribute="leading" constant="20" symbolic="YES" id="feD-8w-Skn"/>
|
<constraint firstItem="qsS-B6-c2q" firstAttribute="leading" secondItem="0aO-Wz-ASZ" secondAttribute="trailing" constant="8" symbolic="YES" id="ubq-To-aMP"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="x4l-iV-xgr" secondAttribute="trailing" constant="17" id="fhM-i9-sRG"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="qsS-B6-c2q" secondAttribute="trailing" constant="20" symbolic="YES" id="ydk-pF-yHc"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="qsS-B6-c2q" secondAttribute="bottom" constant="10" id="pUJ-uL-Hfg"/>
|
|
||||||
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="leading" secondItem="qsS-B6-c2q" secondAttribute="leading" id="ylB-Fv-roN"/>
|
|
||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
</tabViewItem>
|
</tabViewItem>
|
||||||
<tabViewItem label="TV Episode" identifier="2" id="GPk-3A-rQI">
|
<tabViewItem label="TV Episode" identifier="2" id="GPk-3A-rQI">
|
||||||
<view key="view" id="pC0-6X-DbE">
|
<view key="view" id="pC0-6X-DbE">
|
||||||
<rect key="frame" x="10" y="33" width="554" height="69"/>
|
<rect key="frame" x="10" y="33" width="552" height="72"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="PoJ-z7-u2L">
|
<comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="yxL-hY-Wvf">
|
||||||
<rect key="frame" x="14" y="45" width="61" height="16"/>
|
<rect key="frame" x="20" y="44" width="434" height="24"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="TV Show:" id="lE4-J1-ySV">
|
<comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" usesDataSource="YES" numberOfVisibleItems="5" id="o7O-s5-2MI">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</comboBoxCell>
|
||||||
</textField>
|
<connections>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gWo-ag-3S4">
|
<outlet property="dataSource" destination="-2" id="1TN-qD-O3Q"/>
|
||||||
<rect key="frame" x="14" y="13" width="61" height="16"/>
|
<outlet property="delegate" destination="-2" id="24Y-25-ZbJ"/>
|
||||||
|
</connections>
|
||||||
|
</comboBox>
|
||||||
|
<popUpButton horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="4yY-id-JNb">
|
||||||
|
<rect key="frame" x="153" y="10" width="130" height="24"/>
|
||||||
|
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="6dD-ZJ-fLf">
|
||||||
|
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="message"/>
|
||||||
|
<menu key="menu" id="eDp-3G-Kg4"/>
|
||||||
|
</popUpButtonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="130" id="Jj5-aw-h6y"/>
|
||||||
|
</constraints>
|
||||||
|
<accessibility description="Language"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="metadataProviderLanguageSelected:" target="-2" id="7uv-wc-CIQ"/>
|
||||||
|
</connections>
|
||||||
|
</popUpButton>
|
||||||
|
<popUpButton horizontalCompressionResistancePriority="749" translatesAutoresizingMaskIntoConstraints="NO" id="UTG-O0-5RG">
|
||||||
|
<rect key="frame" x="20" y="10" width="125" height="24"/>
|
||||||
|
<popUpButtonCell key="cell" type="push" title="iTunes Store" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="border" inset="2" selectedItem="j44-FV-Lpy" id="O3t-4h-3zl">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="message"/>
|
||||||
|
<menu key="menu" id="OYz-qX-3i2">
|
||||||
|
<items>
|
||||||
|
<menuItem title="iTunes Store" state="on" id="j44-FV-Lpy"/>
|
||||||
|
<menuItem title="TheMovieDB" id="FoR-26-u9n"/>
|
||||||
|
<menuItem title="TheTVDB" id="xjQ-ex-5kU"/>
|
||||||
|
</items>
|
||||||
|
</menu>
|
||||||
|
</popUpButtonCell>
|
||||||
|
<accessibility description="Metadata provider"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="metadataProviderSelected:" target="-2" id="nMq-JN-KOa"/>
|
||||||
|
</connections>
|
||||||
|
</popUpButton>
|
||||||
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="EpM-F6-30O">
|
||||||
|
<rect key="frame" x="466" y="44" width="66" height="24"/>
|
||||||
|
<buttonCell key="cell" type="push" title="Search" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="5Mu-cI-Uiu">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
<string key="keyEquivalent" base64-UTF8="YES">
|
||||||
|
DQ
|
||||||
|
</string>
|
||||||
|
</buttonCell>
|
||||||
|
<connections>
|
||||||
|
<action selector="searchForResults:" target="-2" id="dCt-ma-lyj"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
|
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gWo-ag-3S4">
|
||||||
|
<rect key="frame" x="289" y="14" width="61" height="16"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Season #" id="kz7-mH-DuT">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Season #" id="kz7-mH-DuT">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="nYS-Uo-Puv">
|
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="nYS-Uo-Puv">
|
||||||
<rect key="frame" x="80" y="10" width="30" height="21"/>
|
<rect key="frame" x="355" y="10" width="30" height="24"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" constant="30" id="9CR-ib-DtF"/>
|
<constraint firstAttribute="width" constant="30" id="j6g-V9-PJF"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="7S1-uI-qok">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="7S1-uI-qok">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -197,10 +234,10 @@ DQ
|
|||||||
<outlet property="delegate" destination="-2" id="wF7-SW-Zgw"/>
|
<outlet property="delegate" destination="-2" id="wF7-SW-Zgw"/>
|
||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="PmP-Uz-mXF">
|
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="PmP-Uz-mXF">
|
||||||
<rect key="frame" x="184" y="10" width="30" height="21"/>
|
<rect key="frame" x="460" y="10" width="30" height="24"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" constant="30" id="JnI-dd-MkA"/>
|
<constraint firstAttribute="width" constant="30" id="ojN-7h-wgW"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="Xvo-B4-9Wa">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="Xvo-B4-9Wa">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -213,100 +250,34 @@ DQ
|
|||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="r32-v1-g3U">
|
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="r32-v1-g3U">
|
||||||
<rect key="frame" x="115" y="13" width="64" height="16"/>
|
<rect key="frame" x="391" y="14" width="64" height="16"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Episode #" id="Zik-QU-m81">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Episode #" id="Zik-QU-m81">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="yxL-hY-Wvf">
|
|
||||||
<rect key="frame" x="79" y="42" width="386" height="23"/>
|
|
||||||
<comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" usesDataSource="YES" numberOfVisibleItems="5" id="o7O-s5-2MI">
|
|
||||||
<font key="font" metaFont="system"/>
|
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
|
||||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
|
||||||
</comboBoxCell>
|
|
||||||
<connections>
|
|
||||||
<accessibilityConnection property="title" destination="PoJ-z7-u2L" id="Mqw-FY-8Ae"/>
|
|
||||||
<outlet property="dataSource" destination="-2" id="1TN-qD-O3Q"/>
|
|
||||||
<outlet property="delegate" destination="-2" id="24Y-25-ZbJ"/>
|
|
||||||
</connections>
|
|
||||||
</comboBox>
|
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="4yY-id-JNb">
|
|
||||||
<rect key="frame" x="211" y="6" width="160" height="25"/>
|
|
||||||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="6dD-ZJ-fLf">
|
|
||||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
|
||||||
<font key="font" metaFont="menu"/>
|
|
||||||
<menu key="menu" id="eDp-3G-Kg4"/>
|
|
||||||
</popUpButtonCell>
|
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="153" id="aRl-QK-caF"/>
|
|
||||||
</constraints>
|
|
||||||
<accessibility description="Language"/>
|
|
||||||
<connections>
|
|
||||||
<action selector="metadataProviderLanguageSelected:" target="-2" id="7uv-wc-CIQ"/>
|
|
||||||
</connections>
|
|
||||||
</popUpButton>
|
|
||||||
<popUpButton horizontalCompressionResistancePriority="749" translatesAutoresizingMaskIntoConstraints="NO" id="UTG-O0-5RG">
|
|
||||||
<rect key="frame" x="424" y="6" width="117" height="25"/>
|
|
||||||
<popUpButtonCell key="cell" type="push" title="iTunes Store" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="border" inset="2" selectedItem="j44-FV-Lpy" id="O3t-4h-3zl">
|
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
||||||
<font key="font" metaFont="menu"/>
|
|
||||||
<menu key="menu" id="OYz-qX-3i2">
|
|
||||||
<items>
|
|
||||||
<menuItem title="iTunes Store" state="on" id="j44-FV-Lpy"/>
|
|
||||||
<menuItem title="TheMovieDB" id="FoR-26-u9n"/>
|
|
||||||
<menuItem title="TheTVDB" id="xjQ-ex-5kU"/>
|
|
||||||
</items>
|
|
||||||
</menu>
|
|
||||||
</popUpButtonCell>
|
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="110" id="yze-MC-pfr"/>
|
|
||||||
</constraints>
|
|
||||||
<accessibility description="Metadata provider"/>
|
|
||||||
<connections>
|
|
||||||
<action selector="metadataProviderSelected:" target="-2" id="nMq-JN-KOa"/>
|
|
||||||
</connections>
|
|
||||||
</popUpButton>
|
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="EpM-F6-30O">
|
|
||||||
<rect key="frame" x="467" y="37" width="77" height="32"/>
|
|
||||||
<buttonCell key="cell" type="push" title="Search" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="5Mu-cI-Uiu">
|
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
||||||
<font key="font" metaFont="system"/>
|
|
||||||
<string key="keyEquivalent" base64-UTF8="YES">
|
|
||||||
DQ
|
|
||||||
</string>
|
|
||||||
</buttonCell>
|
|
||||||
<connections>
|
|
||||||
<action selector="searchForResults:" target="-2" id="dCt-ma-lyj"/>
|
|
||||||
</connections>
|
|
||||||
</button>
|
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="gWo-ag-3S4" secondAttribute="trailing" constant="20" symbolic="YES" id="1cf-QH-GoS"/>
|
<constraint firstAttribute="bottom" secondItem="UTG-O0-5RG" secondAttribute="bottom" constant="10" id="0jz-eZ-PYZ"/>
|
||||||
<constraint firstItem="yxL-hY-Wvf" firstAttribute="leading" secondItem="nYS-Uo-Puv" secondAttribute="leading" id="3XJ-NW-2OT"/>
|
<constraint firstItem="PmP-Uz-mXF" firstAttribute="leading" secondItem="r32-v1-g3U" secondAttribute="trailing" constant="7" id="76f-1f-IhA"/>
|
||||||
<constraint firstItem="nYS-Uo-Puv" firstAttribute="baseline" secondItem="r32-v1-g3U" secondAttribute="baseline" id="5Yy-LG-A13"/>
|
<constraint firstItem="EpM-F6-30O" firstAttribute="leading" secondItem="yxL-hY-Wvf" secondAttribute="trailing" constant="12" id="Bbw-ih-qSD"/>
|
||||||
<constraint firstItem="UTG-O0-5RG" firstAttribute="leading" secondItem="4yY-id-JNb" secondAttribute="trailing" constant="60" id="5bZ-A2-oAt"/>
|
<constraint firstItem="UTG-O0-5RG" firstAttribute="top" secondItem="yxL-hY-Wvf" secondAttribute="bottom" constant="10" id="Drk-HP-jyl"/>
|
||||||
<constraint firstItem="gWo-ag-3S4" firstAttribute="baseline" secondItem="nYS-Uo-Puv" secondAttribute="baseline" id="7w2-5k-loo"/>
|
<constraint firstAttribute="trailing" secondItem="EpM-F6-30O" secondAttribute="trailing" constant="20" symbolic="YES" id="EpQ-oZ-M1N"/>
|
||||||
<constraint firstItem="PoJ-z7-u2L" firstAttribute="top" secondItem="pC0-6X-DbE" secondAttribute="top" constant="8" id="EVi-oc-tqE"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="PmP-Uz-mXF" secondAttribute="trailing" constant="20" symbolic="YES" id="GX9-Ax-mrl"/>
|
||||||
<constraint firstItem="r32-v1-g3U" firstAttribute="baseline" secondItem="PmP-Uz-mXF" secondAttribute="baseline" id="IcC-EN-90a"/>
|
<constraint firstItem="nYS-Uo-Puv" firstAttribute="firstBaseline" secondItem="r32-v1-g3U" secondAttribute="firstBaseline" id="OVu-Br-svU"/>
|
||||||
<constraint firstItem="PmP-Uz-mXF" firstAttribute="leading" secondItem="r32-v1-g3U" secondAttribute="trailing" constant="7" id="Nlc-DQ-qvf"/>
|
<constraint firstItem="EpM-F6-30O" firstAttribute="top" secondItem="pC0-6X-DbE" secondAttribute="top" constant="4" id="RoW-MN-5l8"/>
|
||||||
<constraint firstItem="gWo-ag-3S4" firstAttribute="width" secondItem="PoJ-z7-u2L" secondAttribute="width" id="PI1-1C-eAU"/>
|
<constraint firstItem="gWo-ag-3S4" firstAttribute="firstBaseline" secondItem="nYS-Uo-Puv" secondAttribute="firstBaseline" id="Shj-mM-Vg8"/>
|
||||||
<constraint firstItem="EpM-F6-30O" firstAttribute="trailing" secondItem="UTG-O0-5RG" secondAttribute="trailing" id="PKp-73-Vbb"/>
|
<constraint firstItem="4yY-id-JNb" firstAttribute="leading" secondItem="UTG-O0-5RG" secondAttribute="trailing" constant="8" symbolic="YES" id="U32-Nz-YfN"/>
|
||||||
<constraint firstItem="PoJ-z7-u2L" firstAttribute="leading" secondItem="pC0-6X-DbE" secondAttribute="leading" constant="16" id="YbU-68-uWT"/>
|
<constraint firstItem="nYS-Uo-Puv" firstAttribute="leading" secondItem="gWo-ag-3S4" secondAttribute="trailing" constant="7" id="YqB-c1-I3n"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="EpM-F6-30O" secondAttribute="trailing" constant="17" id="baJ-gT-gpq"/>
|
<constraint firstItem="4yY-id-JNb" firstAttribute="centerY" secondItem="gWo-ag-3S4" secondAttribute="centerY" id="eLh-kH-KNh"/>
|
||||||
<constraint firstItem="EpM-F6-30O" firstAttribute="leading" secondItem="yxL-hY-Wvf" secondAttribute="trailing" constant="12" id="e0P-Oe-Tz3"/>
|
<constraint firstItem="r32-v1-g3U" firstAttribute="leading" secondItem="nYS-Uo-Puv" secondAttribute="trailing" constant="8" symbolic="YES" id="fVO-St-Aez"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="nYS-Uo-Puv" secondAttribute="bottom" constant="10" id="ehG-Fz-i2o"/>
|
<constraint firstItem="yxL-hY-Wvf" firstAttribute="leading" secondItem="pC0-6X-DbE" secondAttribute="leading" constant="20" symbolic="YES" id="hTu-YS-Eeh"/>
|
||||||
<constraint firstItem="r32-v1-g3U" firstAttribute="leading" secondItem="nYS-Uo-Puv" secondAttribute="trailing" constant="7" id="iUT-w5-MQJ"/>
|
<constraint firstItem="UTG-O0-5RG" firstAttribute="leading" secondItem="yxL-hY-Wvf" secondAttribute="leading" id="hp6-qT-uGH"/>
|
||||||
<constraint firstItem="4yY-id-JNb" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="PmP-Uz-mXF" secondAttribute="trailing" priority="750" constant="8" symbolic="YES" id="lc1-tA-1Gj"/>
|
<constraint firstItem="gWo-ag-3S4" firstAttribute="leading" secondItem="4yY-id-JNb" secondAttribute="trailing" constant="8" symbolic="YES" id="lRS-M6-Cxr"/>
|
||||||
<constraint firstItem="4yY-id-JNb" firstAttribute="top" secondItem="pC0-6X-DbE" secondAttribute="top" constant="39" id="n3d-4T-yVM"/>
|
<constraint firstItem="UTG-O0-5RG" firstAttribute="centerY" secondItem="4yY-id-JNb" secondAttribute="centerY" id="nVx-52-jdh"/>
|
||||||
<constraint firstItem="4yY-id-JNb" firstAttribute="bottom" secondItem="UTG-O0-5RG" secondAttribute="bottom" id="r9M-rQ-1OL"/>
|
<constraint firstItem="r32-v1-g3U" firstAttribute="firstBaseline" secondItem="PmP-Uz-mXF" secondAttribute="firstBaseline" id="rMa-Q9-tLd"/>
|
||||||
<constraint firstItem="PoJ-z7-u2L" firstAttribute="firstBaseline" secondItem="yxL-hY-Wvf" secondAttribute="firstBaseline" constant="1" id="txE-Mz-IYh"/>
|
<constraint firstItem="yxL-hY-Wvf" firstAttribute="top" secondItem="pC0-6X-DbE" secondAttribute="top" constant="4" id="x6j-8D-FgH"/>
|
||||||
<constraint firstItem="gWo-ag-3S4" firstAttribute="leading" secondItem="PoJ-z7-u2L" secondAttribute="leading" id="uwV-a4-QuX"/>
|
|
||||||
<constraint firstItem="yxL-hY-Wvf" firstAttribute="leading" secondItem="PoJ-z7-u2L" secondAttribute="trailing" constant="7" id="xNm-xS-fGk"/>
|
|
||||||
<constraint firstItem="EpM-F6-30O" firstAttribute="centerY" secondItem="yxL-hY-Wvf" secondAttribute="centerY" id="xVF-6P-gxR"/>
|
|
||||||
<constraint firstItem="PmP-Uz-mXF" firstAttribute="bottom" secondItem="4yY-id-JNb" secondAttribute="bottom" id="xd7-a0-KTM"/>
|
|
||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
</tabViewItem>
|
</tabViewItem>
|
||||||
@@ -324,20 +295,20 @@ DQ
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<splitView autosaveName="SBMetadataSearchSplitView" translatesAutoresizingMaskIntoConstraints="NO" id="BfX-EM-ktQ">
|
<splitView autosaveName="SBMetadataSearchSplitView" translatesAutoresizingMaskIntoConstraints="NO" id="BfX-EM-ktQ">
|
||||||
<rect key="frame" x="20" y="60" width="510" height="289"/>
|
<rect key="frame" x="20" y="64" width="510" height="321"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<customView misplaced="YES" id="8It-Zb-03g">
|
<customView misplaced="YES" id="8It-Zb-03g">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="510" height="103"/>
|
<rect key="frame" x="0.0" y="0.0" width="510" height="115"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<scrollView misplaced="YES" autohidesScrollers="YES" horizontalLineScroll="17" horizontalPageScroll="10" verticalLineScroll="17" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="VnH-EL-2bp">
|
<scrollView autohidesScrollers="YES" horizontalLineScroll="17" horizontalPageScroll="10" verticalLineScroll="17" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="VnH-EL-2bp">
|
||||||
<rect key="frame" x="0.0" y="1" width="510" height="102"/>
|
<rect key="frame" x="0.0" y="0.0" width="510" height="120"/>
|
||||||
<clipView key="contentView" id="I28-fS-tPQ">
|
<clipView key="contentView" id="I28-fS-tPQ">
|
||||||
<rect key="frame" x="1" y="1" width="508" height="100"/>
|
<rect key="frame" x="1" y="1" width="508" height="118"/>
|
||||||
<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" multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" rowHeight="15" rowSizeStyle="automatic" headerView="Bv4-ow-7Qb" viewBased="YES" id="IDz-Ox-2sW">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnReordering="NO" multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" rowHeight="15" rowSizeStyle="automatic" headerView="Bv4-ow-7Qb" viewBased="YES" id="IDz-Ox-2sW">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="508" height="75"/>
|
<rect key="frame" x="0.0" y="0.0" width="508" height="93"/>
|
||||||
<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"/>
|
||||||
@@ -406,25 +377,29 @@ DQ
|
|||||||
</scrollView>
|
</scrollView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
|
<constraint firstAttribute="bottom" secondItem="VnH-EL-2bp" secondAttribute="bottom" id="IF3-gK-AfW"/>
|
||||||
<constraint firstItem="VnH-EL-2bp" firstAttribute="top" secondItem="8It-Zb-03g" secondAttribute="top" id="JI5-nL-Cb4"/>
|
<constraint firstItem="VnH-EL-2bp" firstAttribute="top" secondItem="8It-Zb-03g" secondAttribute="top" id="JI5-nL-Cb4"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="VnH-EL-2bp" secondAttribute="trailing" id="JL5-2S-520"/>
|
||||||
<constraint firstItem="VnH-EL-2bp" firstAttribute="leading" secondItem="8It-Zb-03g" secondAttribute="leading" id="LAd-9v-90B"/>
|
<constraint firstItem="VnH-EL-2bp" firstAttribute="leading" secondItem="8It-Zb-03g" secondAttribute="leading" id="LAd-9v-90B"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="VnH-EL-2bp" secondAttribute="trailing" id="O4c-bt-Ef6"/>
|
<constraint firstAttribute="trailing" secondItem="VnH-EL-2bp" secondAttribute="trailing" id="O4c-bt-Ef6"/>
|
||||||
|
<constraint firstItem="VnH-EL-2bp" firstAttribute="leading" secondItem="8It-Zb-03g" secondAttribute="leading" id="QPf-58-gaz"/>
|
||||||
|
<constraint firstItem="VnH-EL-2bp" firstAttribute="top" secondItem="8It-Zb-03g" secondAttribute="top" id="k1y-Ov-GHp"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="VnH-EL-2bp" secondAttribute="bottom" id="kvH-Wg-mrC"/>
|
<constraint firstAttribute="bottom" secondItem="VnH-EL-2bp" secondAttribute="bottom" id="kvH-Wg-mrC"/>
|
||||||
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="120" id="oBd-XH-2sW"/>
|
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="120" id="oBd-XH-2sW"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</customView>
|
</customView>
|
||||||
<customView misplaced="YES" id="YFw-L1-xW7">
|
<customView misplaced="YES" id="YFw-L1-xW7">
|
||||||
<rect key="frame" x="0.0" y="112" width="510" height="177"/>
|
<rect key="frame" x="0.0" y="124" width="510" height="197"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<scrollView misplaced="YES" autohidesScrollers="YES" horizontalLineScroll="39" horizontalPageScroll="10" verticalLineScroll="39" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="L9f-RN-ymm">
|
<scrollView autohidesScrollers="YES" horizontalLineScroll="39" horizontalPageScroll="10" verticalLineScroll="39" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="L9f-RN-ymm">
|
||||||
<rect key="frame" x="0.0" y="-3" width="510" height="180"/>
|
<rect key="frame" x="0.0" y="0.0" width="510" height="192"/>
|
||||||
<clipView key="contentView" ambiguous="YES" id="JKj-Cf-XlS">
|
<clipView key="contentView" ambiguous="YES" id="JKj-Cf-XlS">
|
||||||
<rect key="frame" x="1" y="1" width="508" height="178"/>
|
<rect key="frame" x="1" y="1" width="508" height="190"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" ambiguous="YES" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="37" rowSizeStyle="automatic" headerView="8SH-1C-Y6N" viewBased="YES" id="7Te-u0-Sax" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
<tableView verticalHuggingPriority="750" ambiguous="YES" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="37" rowSizeStyle="automatic" headerView="8SH-1C-Y6N" viewBased="YES" id="7Te-u0-Sax" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="508" height="153"/>
|
<rect key="frame" x="0.0" y="0.0" width="508" height="165"/>
|
||||||
<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"/>
|
||||||
@@ -552,11 +527,15 @@ DQ
|
|||||||
</scrollView>
|
</scrollView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
|
<constraint firstItem="L9f-RN-ymm" firstAttribute="leading" secondItem="YFw-L1-xW7" secondAttribute="leading" id="CaQ-4M-NYe"/>
|
||||||
<constraint firstItem="L9f-RN-ymm" firstAttribute="top" secondItem="YFw-L1-xW7" secondAttribute="top" id="DDY-yc-xwu"/>
|
<constraint firstItem="L9f-RN-ymm" firstAttribute="top" secondItem="YFw-L1-xW7" secondAttribute="top" id="DDY-yc-xwu"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="L9f-RN-ymm" secondAttribute="bottom" id="Dji-UV-X83"/>
|
<constraint firstAttribute="bottom" secondItem="L9f-RN-ymm" secondAttribute="bottom" id="Dji-UV-X83"/>
|
||||||
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="160" id="MiB-Tq-jnd"/>
|
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="160" id="MiB-Tq-jnd"/>
|
||||||
|
<constraint firstItem="L9f-RN-ymm" firstAttribute="top" secondItem="YFw-L1-xW7" secondAttribute="top" id="Y6z-es-GyW"/>
|
||||||
|
<constraint firstAttribute="bottom" secondItem="L9f-RN-ymm" secondAttribute="bottom" id="Ylu-kT-cca"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="L9f-RN-ymm" secondAttribute="trailing" id="o50-sW-JjL"/>
|
<constraint firstAttribute="trailing" secondItem="L9f-RN-ymm" secondAttribute="trailing" id="o50-sW-JjL"/>
|
||||||
<constraint firstItem="L9f-RN-ymm" firstAttribute="leading" secondItem="YFw-L1-xW7" secondAttribute="leading" id="vYe-8Y-9O9"/>
|
<constraint firstItem="L9f-RN-ymm" firstAttribute="leading" secondItem="YFw-L1-xW7" secondAttribute="leading" id="vYe-8Y-9O9"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="L9f-RN-ymm" secondAttribute="trailing" id="wuL-0U-r1i"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</customView>
|
</customView>
|
||||||
</subviews>
|
</subviews>
|
||||||
@@ -567,25 +546,25 @@ DQ
|
|||||||
</splitView>
|
</splitView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
|
<constraint firstItem="BfX-EM-ktQ" firstAttribute="top" secondItem="6hW-RR-cfF" secondAttribute="bottom" constant="8" symbolic="YES" id="1xg-4I-ico"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="QEr-1S-JZX" secondAttribute="bottom" constant="20" id="27F-h3-4J5"/>
|
<constraint firstAttribute="bottom" secondItem="QEr-1S-JZX" secondAttribute="bottom" constant="20" id="27F-h3-4J5"/>
|
||||||
<constraint firstItem="6hW-RR-cfF" firstAttribute="leading" secondItem="1lR-dE-p3x" secondAttribute="leading" constant="-5" id="2VD-Jo-sCA"/>
|
<constraint firstItem="6hW-RR-cfF" firstAttribute="leading" secondItem="1lR-dE-p3x" secondAttribute="leading" constant="-4" id="2VD-Jo-sCA"/>
|
||||||
<constraint firstItem="6hW-RR-cfF" firstAttribute="top" secondItem="1lR-dE-p3x" secondAttribute="top" constant="10" id="40o-r6-s4C"/>
|
<constraint firstItem="6hW-RR-cfF" firstAttribute="top" secondItem="1lR-dE-p3x" secondAttribute="top" constant="10" id="40o-r6-s4C"/>
|
||||||
<constraint firstItem="BfX-EM-ktQ" firstAttribute="trailing" secondItem="Bfj-tB-Wq2" secondAttribute="trailing" id="Akd-YK-H0o"/>
|
|
||||||
<constraint firstItem="QEr-1S-JZX" firstAttribute="leading" secondItem="1lR-dE-p3x" secondAttribute="leading" constant="20" id="DRP-5G-W3e"/>
|
<constraint firstItem="QEr-1S-JZX" firstAttribute="leading" secondItem="1lR-dE-p3x" secondAttribute="leading" constant="20" id="DRP-5G-W3e"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="BfX-EM-ktQ" secondAttribute="trailing" constant="20" symbolic="YES" id="EVf-1X-v1B"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="Bfj-tB-Wq2" secondAttribute="bottom" constant="20" id="LeM-a8-IMO"/>
|
<constraint firstAttribute="bottom" secondItem="Bfj-tB-Wq2" secondAttribute="bottom" constant="20" id="LeM-a8-IMO"/>
|
||||||
<constraint firstItem="dWj-kw-NVW" firstAttribute="leading" secondItem="QEr-1S-JZX" secondAttribute="trailing" constant="7" id="Nv1-th-2ki"/>
|
<constraint firstItem="dWj-kw-NVW" firstAttribute="leading" secondItem="QEr-1S-JZX" secondAttribute="trailing" constant="7" id="Nv1-th-2ki"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="6hW-RR-cfF" secondAttribute="trailing" constant="-5" id="Rfl-Zu-KRL"/>
|
<constraint firstAttribute="trailing" secondItem="6hW-RR-cfF" secondAttribute="trailing" constant="-4" id="Rfl-Zu-KRL"/>
|
||||||
|
<constraint firstItem="Bfj-tB-Wq2" firstAttribute="top" secondItem="BfX-EM-ktQ" secondAttribute="bottom" constant="20" symbolic="YES" id="ST5-KA-9jo"/>
|
||||||
<constraint firstItem="zM1-YP-Au2" firstAttribute="baseline" secondItem="Bfj-tB-Wq2" secondAttribute="baseline" id="Ydc-dO-pHN"/>
|
<constraint firstItem="zM1-YP-Au2" firstAttribute="baseline" secondItem="Bfj-tB-Wq2" secondAttribute="baseline" id="Ydc-dO-pHN"/>
|
||||||
<constraint firstItem="dWj-kw-NVW" firstAttribute="centerY" secondItem="QEr-1S-JZX" secondAttribute="centerY" id="ZJK-aI-ebA"/>
|
<constraint firstItem="dWj-kw-NVW" firstAttribute="centerY" secondItem="QEr-1S-JZX" secondAttribute="centerY" id="ZJK-aI-ebA"/>
|
||||||
<constraint firstItem="zM1-YP-Au2" firstAttribute="width" secondItem="Bfj-tB-Wq2" secondAttribute="width" id="ain-gy-U2V"/>
|
<constraint firstItem="zM1-YP-Au2" firstAttribute="width" secondItem="Bfj-tB-Wq2" secondAttribute="width" id="ain-gy-U2V"/>
|
||||||
<constraint firstItem="Bfj-tB-Wq2" firstAttribute="top" secondItem="BfX-EM-ktQ" secondAttribute="bottom" constant="20" id="amA-Vx-LBb"/>
|
|
||||||
<constraint firstAttribute="trailing" secondItem="Bfj-tB-Wq2" secondAttribute="trailing" constant="20" id="fSb-kG-oqW"/>
|
<constraint firstAttribute="trailing" secondItem="Bfj-tB-Wq2" secondAttribute="trailing" constant="20" id="fSb-kG-oqW"/>
|
||||||
<constraint firstItem="BfX-EM-ktQ" firstAttribute="top" secondItem="6hW-RR-cfF" secondAttribute="bottom" constant="8" id="gB2-uH-CDQ"/>
|
<constraint firstItem="BfX-EM-ktQ" firstAttribute="leading" secondItem="1lR-dE-p3x" secondAttribute="leading" constant="20" symbolic="YES" id="g9K-ua-Yl9"/>
|
||||||
<constraint firstItem="Bfj-tB-Wq2" firstAttribute="leading" secondItem="zM1-YP-Au2" secondAttribute="trailing" constant="12" id="hPx-74-Y3U"/>
|
<constraint firstItem="Bfj-tB-Wq2" firstAttribute="leading" secondItem="zM1-YP-Au2" secondAttribute="trailing" constant="12" id="hPx-74-Y3U"/>
|
||||||
<constraint firstItem="BfX-EM-ktQ" firstAttribute="leading" secondItem="QEr-1S-JZX" secondAttribute="leading" id="mjk-ta-h2N"/>
|
|
||||||
<constraint firstItem="zM1-YP-Au2" firstAttribute="leading" secondItem="dWj-kw-NVW" secondAttribute="trailing" constant="14" id="vyk-qX-8IX"/>
|
<constraint firstItem="zM1-YP-Au2" firstAttribute="leading" secondItem="dWj-kw-NVW" secondAttribute="trailing" constant="14" id="vyk-qX-8IX"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="168" y="157"/>
|
<point key="canvasLocation" x="130" y="71"/>
|
||||||
</view>
|
</view>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
@@ -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="18122" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="18122"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -13,16 +13,16 @@
|
|||||||
</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="Preferences" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="1" customClass="PrefsWindow" customModule="Subler" customModuleProvider="target">
|
<window title="Preferences" allowsToolTipsWhenApplicationIsInactive="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="1" customClass="PrefsWindow" customModule="Subler" customModuleProvider="target">
|
||||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
||||||
<windowPositionMask key="initialPositionMask" topStrut="YES" bottomStrut="YES"/>
|
<windowPositionMask key="initialPositionMask" topStrut="YES" bottomStrut="YES"/>
|
||||||
<rect key="contentRect" x="625" y="560" width="660" height="220"/>
|
<rect key="contentRect" x="625" y="660" width="660" height="220"/>
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="875"/>
|
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1055"/>
|
||||||
<view key="contentView" id="2">
|
<view key="contentView" id="2">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="660" height="220"/>
|
<rect key="frame" x="0.0" y="0.0" width="660" height="220"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
</view>
|
</view>
|
||||||
<toolbar key="toolbar" implicitIdentifier="62479E7E-FF80-430F-8339-ECA67F66BBB3" autosavesConfiguration="NO" allowsUserCustomization="NO" displayMode="iconAndLabel" sizeMode="regular" id="Qgp-ap-Qwi">
|
<toolbar key="toolbar" implicitIdentifier="62479E7E-FF80-430F-8339-ECA67F66BBB3" autosavesConfiguration="NO" allowsUserCustomization="NO" showsBaselineSeparator="NO" displayMode="iconAndLabel" sizeMode="regular" id="Qgp-ap-Qwi">
|
||||||
<allowedToolbarItems>
|
<allowedToolbarItems>
|
||||||
<toolbarItem implicitItemIdentifier="NSToolbarSpaceItem" id="vqk-zF-m6l"/>
|
<toolbarItem implicitItemIdentifier="NSToolbarSpaceItem" id="vqk-zF-m6l"/>
|
||||||
<toolbarItem implicitItemIdentifier="NSToolbarFlexibleSpaceItem" id="R2N-58-umt"/>
|
<toolbarItem implicitItemIdentifier="NSToolbarFlexibleSpaceItem" id="R2N-58-umt"/>
|
||||||
|
|||||||
+36
-30
@@ -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">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="25098" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="25098"/>
|
||||||
<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>
|
||||||
@@ -18,33 +18,33 @@
|
|||||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||||
<window title="Queue" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="SBQueuePosition" animationBehavior="default" tabbingMode="disallowed" toolbarStyle="compact" id="1">
|
<window title="Queue" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="SBQueuePosition" animationBehavior="default" tabbingMode="disallowed" toolbarStyle="compact" id="1">
|
||||||
<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" topStrut="YES" bottomStrut="YES"/>
|
||||||
<rect key="contentRect" x="98" y="651" width="378" height="351"/>
|
<rect key="contentRect" x="98" y="443" width="503" height="505"/>
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="875"/>
|
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1049"/>
|
||||||
<value key="minSize" type="size" width="378" height="200"/>
|
<value key="minSize" type="size" width="378" height="200"/>
|
||||||
<view key="contentView" wantsLayer="YES" id="2">
|
<view key="contentView" wantsLayer="YES" misplaced="YES" id="2">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="378" height="351"/>
|
<rect key="frame" x="0.0" y="0.0" width="450" height="505"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="21" horizontalPageScroll="10" verticalLineScroll="21" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3">
|
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="23" horizontalPageScroll="10" verticalLineScroll="23" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3">
|
||||||
<rect key="frame" x="-1" y="46" width="380" height="306"/>
|
<rect key="frame" x="-1" y="69" width="452" height="437"/>
|
||||||
<clipView key="contentView" id="ix7-yM-0F6">
|
<clipView key="contentView" id="ix7-yM-0F6">
|
||||||
<rect key="frame" x="1" y="1" width="378" height="304"/>
|
<rect key="frame" x="1" y="1" width="431" height="435"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="firstColumnOnly" tableStyle="plain" alternatingRowBackgroundColors="YES" columnReordering="NO" columnResizing="NO" autosaveColumns="NO" rowSizeStyle="automatic" viewBased="YES" id="7" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="sequential" alternatingRowBackgroundColors="YES" columnReordering="NO" columnResizing="NO" autosaveColumns="NO" rowHeight="19" rowSizeStyle="automatic" viewBased="YES" id="7" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="378" height="304"/>
|
<rect key="frame" x="0.0" y="0.0" width="452" height="435"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<size key="intercellSpacing" width="3" height="4"/>
|
<size key="intercellSpacing" width="3" height="4"/>
|
||||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||||
<tableColumns>
|
<tableColumns>
|
||||||
<tableColumn identifier="nameColumn" editable="NO" width="375" minWidth="40" maxWidth="3000" id="8">
|
<tableColumn identifier="nameColumn" editable="NO" width="452" minWidth="40" maxWidth="3000" id="8">
|
||||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="nameColumn">
|
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="nameColumn">
|
||||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
</tableHeaderCell>
|
</tableHeaderCell>
|
||||||
<textFieldCell key="dataCell" lineBreakMode="charWrapping" selectable="YES" editable="YES" alignment="left" id="11">
|
<textFieldCell key="dataCell" lineBreakMode="truncatingMiddle" selectable="YES" editable="YES" alignment="left" id="11">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -52,26 +52,23 @@
|
|||||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES"/>
|
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES"/>
|
||||||
<prototypeCellViews>
|
<prototypeCellViews>
|
||||||
<tableCellView id="ofF-gY-wBR">
|
<tableCellView id="ofF-gY-wBR">
|
||||||
<rect key="frame" x="1" y="2" width="375" height="17"/>
|
<rect key="frame" x="1" y="2" width="428" height="19"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="pjh-GC-aOA">
|
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="pjh-GC-aOA">
|
||||||
<rect key="frame" x="29" y="-1" width="317" height="17"/>
|
<rect key="frame" x="29" y="2" width="370" height="16"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
<textFieldCell key="cell" lineBreakMode="truncatingMiddle" sendsActionOnEndEditing="YES" title="Name" usesSingleLineMode="YES" id="srx-EJ-mK6">
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" id="srx-EJ-mK6">
|
<font key="font" metaFont="system"/>
|
||||||
<font key="font" metaFont="cellTitle"/>
|
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Xeb-eQ-90j">
|
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Xeb-eQ-90j">
|
||||||
<rect key="frame" x="7" y="0.0" width="16" height="16"/>
|
<rect key="frame" x="7" y="2" width="16" height="16"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
||||||
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="EncodeComplete" id="uXb-c3-MQO"/>
|
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="EncodeComplete" id="uXb-c3-MQO"/>
|
||||||
</imageView>
|
</imageView>
|
||||||
<button toolTip="Show item info" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="o98-wM-YAQ">
|
<button toolTip="Show item info" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="o98-wM-YAQ">
|
||||||
<rect key="frame" x="352" y="0.0" width="16" height="16"/>
|
<rect key="frame" x="405" y="2" width="16" height="16"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
|
|
||||||
<buttonCell key="cell" type="bevel" bezelStyle="rounded" image="info" imagePosition="overlaps" alignment="center" alternateImage="info-pressed" imageScaling="proportionallyDown" inset="2" id="AFW-1U-iaL">
|
<buttonCell key="cell" type="bevel" bezelStyle="rounded" image="info" imagePosition="overlaps" alignment="center" alternateImage="info-pressed" imageScaling="proportionallyDown" inset="2" id="AFW-1U-iaL">
|
||||||
<behavior key="behavior" lightByContents="YES"/>
|
<behavior key="behavior" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -82,6 +79,15 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
</subviews>
|
</subviews>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstItem="Xeb-eQ-90j" firstAttribute="centerY" secondItem="ofF-gY-wBR" secondAttribute="centerY" id="90b-BW-lff"/>
|
||||||
|
<constraint firstItem="o98-wM-YAQ" firstAttribute="leading" secondItem="pjh-GC-aOA" secondAttribute="trailing" constant="8" symbolic="YES" id="CaB-q0-ftY"/>
|
||||||
|
<constraint firstItem="Xeb-eQ-90j" firstAttribute="leading" secondItem="ofF-gY-wBR" secondAttribute="leading" constant="7" id="G9p-cq-HKH"/>
|
||||||
|
<constraint firstItem="o98-wM-YAQ" firstAttribute="centerY" secondItem="ofF-gY-wBR" secondAttribute="centerY" id="USV-VJ-xKf"/>
|
||||||
|
<constraint firstItem="pjh-GC-aOA" firstAttribute="leading" secondItem="Xeb-eQ-90j" secondAttribute="trailing" constant="8" symbolic="YES" id="ZBk-XN-nd9"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="o98-wM-YAQ" secondAttribute="trailing" constant="7" id="mX3-LL-ent"/>
|
||||||
|
<constraint firstItem="pjh-GC-aOA" firstAttribute="centerY" secondItem="ofF-gY-wBR" secondAttribute="centerY" id="odE-Gg-80F"/>
|
||||||
|
</constraints>
|
||||||
<connections>
|
<connections>
|
||||||
<outlet property="imageView" destination="Xeb-eQ-90j" id="Q6V-gj-mwY"/>
|
<outlet property="imageView" destination="Xeb-eQ-90j" id="Q6V-gj-mwY"/>
|
||||||
<outlet property="textField" destination="pjh-GC-aOA" id="PQK-Y7-IFu"/>
|
<outlet property="textField" destination="pjh-GC-aOA" id="PQK-Y7-IFu"/>
|
||||||
@@ -100,7 +106,7 @@
|
|||||||
</subviews>
|
</subviews>
|
||||||
</clipView>
|
</clipView>
|
||||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="6">
|
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="6">
|
||||||
<rect key="frame" x="1" y="271" width="378" height="15"/>
|
<rect key="frame" x="1" y="420" width="431" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="4">
|
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="4">
|
||||||
@@ -109,7 +115,7 @@
|
|||||||
</scroller>
|
</scroller>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="12">
|
<textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="12">
|
||||||
<rect key="frame" x="8" y="16" width="214" height="16"/>
|
<rect key="frame" x="8" y="39" width="267" height="16"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Queue items" id="13">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Queue items" id="13">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -117,7 +123,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<progressIndicator wantsLayer="YES" maxValue="100" indeterminate="YES" style="bar" translatesAutoresizingMaskIntoConstraints="NO" id="91">
|
<progressIndicator wantsLayer="YES" maxValue="100" indeterminate="YES" style="bar" translatesAutoresizingMaskIntoConstraints="NO" id="91">
|
||||||
<rect key="frame" x="228" y="13" width="140" height="20"/>
|
<rect key="frame" x="281" y="14" width="140" height="41"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" constant="140" id="zk9-SM-dx0"/>
|
<constraint firstAttribute="width" constant="140" id="zk9-SM-dx0"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
@@ -138,7 +144,7 @@
|
|||||||
<connections>
|
<connections>
|
||||||
<outlet property="delegate" destination="-2" id="c4X-w0-NMZ"/>
|
<outlet property="delegate" destination="-2" id="c4X-w0-NMZ"/>
|
||||||
</connections>
|
</connections>
|
||||||
<point key="canvasLocation" x="-66" y="113"/>
|
<point key="canvasLocation" x="294.5" y="35.5"/>
|
||||||
</window>
|
</window>
|
||||||
<menu id="78">
|
<menu id="78">
|
||||||
<items>
|
<items>
|
||||||
|
|||||||
@@ -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="17506" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17506"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="424" height="115"/>
|
<rect key="frame" x="0.0" y="0.0" width="424" height="115"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ITP-pW-XrQ" propertyAccessControl="none">
|
<textField focusRingType="none" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ITP-pW-XrQ" propertyAccessControl="none">
|
||||||
<rect key="frame" x="18" y="91" width="388" height="14"/>
|
<rect key="frame" x="18" y="91" width="388" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" selectable="YES" sendsActionOnEndEditing="YES" title="ItemName" id="5j3-R9-JdX">
|
<textFieldCell key="cell" controlSize="small" selectable="YES" sendsActionOnEndEditing="YES" title="ItemName" id="5j3-R9-JdX">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
<binding destination="-2" name="value" keyPath="self.name" id="KJR-7T-87z"/>
|
<binding destination="-2" name="value" keyPath="self.name" id="KJR-7T-87z"/>
|
||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="MHQ-kr-DVS">
|
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="MHQ-kr-DVS">
|
||||||
<rect key="frame" x="18" y="51" width="73" height="14"/>
|
<rect key="frame" x="18" y="51" width="73" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Destination:" id="9R2-ND-o8w">
|
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Destination:" id="9R2-ND-o8w">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
@@ -40,7 +40,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" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="0Or-PU-gfk">
|
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="0Or-PU-gfk">
|
||||||
<rect key="frame" x="18" y="33" width="73" height="14"/>
|
<rect key="frame" x="18" y="33" width="73" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Actions:" id="4B2-1n-ouM">
|
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Actions:" id="4B2-1n-ouM">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
</binding>
|
</binding>
|
||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" allowsExpansionToolTips="YES" preferredMaxLayoutWidth="1200" translatesAutoresizingMaskIntoConstraints="NO" id="eTa-uz-sjk" propertyAccessControl="none">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" preferredMaxLayoutWidth="1200" translatesAutoresizingMaskIntoConstraints="NO" id="eTa-uz-sjk" propertyAccessControl="none">
|
||||||
<rect key="frame" x="95" y="51" width="311" height="14"/>
|
<rect key="frame" x="95" y="51" width="311" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="charWrapping" selectable="YES" sendsActionOnEndEditing="YES" id="5mD-V5-53a">
|
<textFieldCell key="cell" controlSize="small" lineBreakMode="charWrapping" selectable="YES" sendsActionOnEndEditing="YES" id="5mD-V5-53a">
|
||||||
<font key="font" metaFont="toolTip"/>
|
<font key="font" metaFont="toolTip"/>
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
<binding destination="-2" name="value" keyPath="self.destPath" id="NW6-M3-Krl"/>
|
<binding destination="-2" name="value" keyPath="self.destPath" id="NW6-M3-Krl"/>
|
||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="990-0E-nlL">
|
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="990-0E-nlL">
|
||||||
<rect key="frame" x="18" y="69" width="73" height="14"/>
|
<rect key="frame" x="18" y="69" width="73" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Source:" id="9De-A4-Oas">
|
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Source:" id="9De-A4-Oas">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
@@ -75,7 +75,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" allowsExpansionToolTips="YES" preferredMaxLayoutWidth="1200" translatesAutoresizingMaskIntoConstraints="NO" id="aBh-Is-f6Q" propertyAccessControl="none">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" preferredMaxLayoutWidth="1200" translatesAutoresizingMaskIntoConstraints="NO" id="aBh-Is-f6Q" propertyAccessControl="none">
|
||||||
<rect key="frame" x="95" y="69" width="311" height="14"/>
|
<rect key="frame" x="95" y="69" width="311" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="charWrapping" selectable="YES" sendsActionOnEndEditing="YES" id="OJa-Jm-vq4">
|
<textFieldCell key="cell" controlSize="small" lineBreakMode="charWrapping" selectable="YES" sendsActionOnEndEditing="YES" id="OJa-Jm-vq4">
|
||||||
<font key="font" metaFont="toolTip"/>
|
<font key="font" metaFont="toolTip"/>
|
||||||
@@ -181,9 +181,10 @@
|
|||||||
<constraint firstItem="Skr-vw-eHq" firstAttribute="leading" secondItem="0Or-PU-gfk" secondAttribute="trailing" constant="8" id="rq3-29-5vx"/>
|
<constraint firstItem="Skr-vw-eHq" firstAttribute="leading" secondItem="0Or-PU-gfk" secondAttribute="trailing" constant="8" id="rq3-29-5vx"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="J0r-57-7ab" secondAttribute="bottom" constant="9" id="vQ6-oB-s7z"/>
|
<constraint firstAttribute="bottom" secondItem="J0r-57-7ab" secondAttribute="bottom" constant="9" id="vQ6-oB-s7z"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="125" y="-121"/>
|
<point key="canvasLocation" x="200" y="-110"/>
|
||||||
</customView>
|
</customView>
|
||||||
<arrayController objectClassName="SBQueueAction" id="J6Q-ls-Vzn">
|
<arrayController objectClassName="SBQueueAction" id="J6Q-ls-Vzn">
|
||||||
|
<classReference key="objectClass" className="SBQueueAction"/>
|
||||||
<connections>
|
<connections>
|
||||||
<binding destination="-2" name="contentArray" keyPath="item.actions" id="DPr-Hj-MPk"/>
|
<binding destination="-2" name="contentArray" keyPath="item.actions" id="DPr-Hj-MPk"/>
|
||||||
</connections>
|
</connections>
|
||||||
|
|||||||
+77
-80
@@ -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="25098" 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="25098"/>
|
||||||
<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>
|
||||||
@@ -16,18 +16,15 @@
|
|||||||
<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 id="UlG-O3-eNc" userLabel="OptionsView">
|
<customView id="UlG-O3-eNc" userLabel="OptionsView">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="382" height="642"/>
|
<rect key="frame" x="0.0" y="0.0" width="395" height="687"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<button verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="zEH-aV-Tl7">
|
<button verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="zEH-aV-Tl7">
|
||||||
<rect key="frame" x="111" y="95" width="68" height="16"/>
|
<rect key="frame" x="112" y="89" width="65" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Optimize" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="nig-pN-efw">
|
<buttonCell key="cell" type="check" title="Optimize" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="nig-pN-efw">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="67" id="st2-UI-Qkc"/>
|
|
||||||
</constraints>
|
|
||||||
<connections>
|
<connections>
|
||||||
<binding destination="-2" name="value" keyPath="self.options.optimize" id="2oW-EB-1dq">
|
<binding destination="-2" name="value" keyPath="self.options.optimize" id="2oW-EB-1dq">
|
||||||
<dictionary key="options">
|
<dictionary key="options">
|
||||||
@@ -37,7 +34,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Clear existing metadata" translatesAutoresizingMaskIntoConstraints="NO" id="9GN-f6-r2j">
|
<button toolTip="Clear existing metadata" translatesAutoresizingMaskIntoConstraints="NO" id="9GN-f6-r2j">
|
||||||
<rect key="frame" x="111" y="612" width="145" height="16"/>
|
<rect key="frame" x="112" y="653" width="142" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Clear existing metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="QNO-e1-WUJ">
|
<buttonCell key="cell" type="check" title="Clear existing metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="QNO-e1-WUJ">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -51,7 +48,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="754" translatesAutoresizingMaskIntoConstraints="NO" id="MGZ-hB-jhx">
|
<button verticalHuggingPriority="754" translatesAutoresizingMaskIntoConstraints="NO" id="MGZ-hB-jhx">
|
||||||
<rect key="frame" x="112" y="34" width="132" height="16"/>
|
<rect key="frame" x="113" y="40" width="129" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Auto-Start the queue" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="LYO-G0-9jA">
|
<buttonCell key="cell" type="check" title="Auto-Start the queue" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="LYO-G0-9jA">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -65,7 +62,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Organize the mp4 alternate groups" verticalHuggingPriority="757" translatesAutoresizingMaskIntoConstraints="NO" id="ccd-Xn-Dj3">
|
<button toolTip="Organize the mp4 alternate groups" verticalHuggingPriority="757" translatesAutoresizingMaskIntoConstraints="NO" id="ccd-Xn-Dj3">
|
||||||
<rect key="frame" x="111" y="445" width="110" height="16"/>
|
<rect key="frame" x="112" y="466" width="107" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Organize Groups" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="240-c7-2UW">
|
<buttonCell key="cell" type="check" title="Organize Groups" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="240-c7-2UW">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -79,7 +76,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Load the external srt subtitles file" verticalHuggingPriority="758" translatesAutoresizingMaskIntoConstraints="NO" id="etc-K7-Atw">
|
<button toolTip="Load the external srt subtitles file" verticalHuggingPriority="758" translatesAutoresizingMaskIntoConstraints="NO" id="etc-K7-Atw">
|
||||||
<rect key="frame" x="111" y="405" width="142" height="16"/>
|
<rect key="frame" x="112" y="426" width="138" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Load external subtitles" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="59T-kp-mV1">
|
<buttonCell key="cell" type="check" title="Load external subtitles" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="59T-kp-mV1">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -93,7 +90,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="86l-GG-SpO">
|
<popUpButton horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="86l-GG-SpO">
|
||||||
<rect key="frame" x="195" y="134" width="130" height="17"/>
|
<rect key="frame" x="195" y="132" width="130" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="6jC-r9-LzT" id="8bb-Gy-KAS">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="6jC-r9-LzT" id="8bb-Gy-KAS">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -121,24 +118,24 @@
|
|||||||
<accessibilityConnection property="title" destination="vJ5-JB-k1m" id="D3Y-SD-Lcc"/>
|
<accessibilityConnection property="title" destination="vJ5-JB-k1m" id="D3Y-SD-Lcc"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="vJ5-JB-k1m">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="vJ5-JB-k1m">
|
||||||
<rect key="frame" x="132" y="136" width="56" height="14"/>
|
<rect key="frame" x="132" y="135" width="56" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Location:" id="17e-9u-rVn">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Location:" id="17e-9u-rVn">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="NhN-Lg-awX">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="NhN-Lg-awX">
|
||||||
<rect key="frame" x="126" y="156" width="62" height="14"/>
|
<rect key="frame" x="126" y="159" width="62" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Apply Set:" id="9gt-mI-zIV">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Apply Set:" id="9gt-mI-zIV">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="eTL-yP-QQ5">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="eTL-yP-QQ5">
|
||||||
<rect key="frame" x="126" y="570" width="48" height="14"/>
|
<rect key="frame" x="126" y="608" width="48" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Movies:" id="W6m-cd-JMe">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Movies:" id="W6m-cd-JMe">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -148,8 +145,8 @@
|
|||||||
<binding destination="-2" name="enabled" keyPath="self.options.searchMetadata" id="b58-Sd-wqT"/>
|
<binding destination="-2" name="enabled" keyPath="self.options.searchMetadata" id="b58-Sd-wqT"/>
|
||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="bDo-OD-bck">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="bDo-OD-bck">
|
||||||
<rect key="frame" x="126" y="524" width="63" height="14"/>
|
<rect key="frame" x="126" y="554" width="63" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="TV Shows:" id="PCe-Pw-D2s">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="TV Shows:" id="PCe-Pw-D2s">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -159,16 +156,16 @@
|
|||||||
<binding destination="-2" name="enabled" keyPath="self.options.searchMetadata" id="VZ7-3B-gA7"/>
|
<binding destination="-2" name="enabled" keyPath="self.options.searchMetadata" id="VZ7-3B-gA7"/>
|
||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="Uoo-hZ-D1f">
|
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="Uoo-hZ-D1f">
|
||||||
<rect key="frame" x="18" y="35" width="89" height="14"/>
|
<rect key="frame" x="18" y="40" width="89" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Global options:" id="NBN-VA-pg2">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Global options:" id="NBN-VA-pg2">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="S7L-mA-j3Y">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="S7L-mA-j3Y">
|
||||||
<rect key="frame" x="49" y="613" width="58" height="14"/>
|
<rect key="frame" x="49" y="653" width="58" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Add item:" id="9ls-xq-YGz">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Add item:" id="9ls-xq-YGz">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -176,7 +173,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="DVM-Js-DwK">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="DVM-Js-DwK">
|
||||||
<rect key="frame" x="195" y="154" width="130" height="17"/>
|
<rect key="frame" x="195" y="156" width="130" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="bQx-xN-b3H">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="bQx-xN-b3H">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -208,7 +205,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<popUpButton horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ZVm-yi-3cE">
|
<popUpButton horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ZVm-yi-3cE">
|
||||||
<rect key="frame" x="181" y="568" width="150" height="17"/>
|
<rect key="frame" x="181" y="605" width="150" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="CbR-eu-sGI">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="CbR-eu-sGI">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -235,7 +232,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<popUpButton horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tLh-V3-OfB">
|
<popUpButton horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tLh-V3-OfB">
|
||||||
<rect key="frame" x="195" y="522" width="150" height="17"/>
|
<rect key="frame" x="195" y="551" width="150" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="UOb-Qe-IPw">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="UOb-Qe-IPw">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -261,8 +258,8 @@
|
|||||||
</binding>
|
</binding>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="BWL-Nn-iGH">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="BWL-Nn-iGH">
|
||||||
<rect key="frame" x="142" y="504" width="63" height="14"/>
|
<rect key="frame" x="142" y="530" width="63" height="14"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="58" id="vbR-Os-38g"/>
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="58" id="vbR-Os-38g"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
@@ -275,8 +272,8 @@
|
|||||||
<binding destination="-2" name="enabled" keyPath="self.options.searchMetadata" id="ZDg-5s-ifn"/>
|
<binding destination="-2" name="enabled" keyPath="self.options.searchMetadata" id="ZDg-5s-ifn"/>
|
||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="Ns9-7q-hsh">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="Ns9-7q-hsh">
|
||||||
<rect key="frame" x="126" y="476" width="54" height="14"/>
|
<rect key="frame" x="126" y="498" width="54" height="14"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="50" id="98L-OX-PB1"/>
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="50" id="98L-OX-PB1"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
@@ -290,7 +287,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Ce4-O7-Iu4">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Ce4-O7-Iu4">
|
||||||
<rect key="frame" x="212" y="502" width="150" height="17"/>
|
<rect key="frame" x="212" y="527" width="150" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nqF-p0-mT7">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nqF-p0-mT7">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -317,8 +314,8 @@
|
|||||||
</binding>
|
</binding>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="73q-gi-fe2">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="73q-gi-fe2">
|
||||||
<rect key="frame" x="142" y="550" width="63" height="14"/>
|
<rect key="frame" x="142" y="584" width="63" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Language:" id="VkG-jW-ibO">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Language:" id="VkG-jW-ibO">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -329,7 +326,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="5rh-cM-iOg">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="5rh-cM-iOg">
|
||||||
<rect key="frame" x="212" y="548" width="150" height="17"/>
|
<rect key="frame" x="212" y="581" width="150" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="gZb-sF-UQs">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="gZb-sF-UQs">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -358,14 +355,11 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button toolTip="Organize the audio fallbacks" verticalHuggingPriority="756" translatesAutoresizingMaskIntoConstraints="NO" id="TV6-Sk-Bqr">
|
<button toolTip="Organize the audio fallbacks" verticalHuggingPriority="756" translatesAutoresizingMaskIntoConstraints="NO" id="TV6-Sk-Bqr">
|
||||||
<rect key="frame" x="111" y="425" width="118" height="16"/>
|
<rect key="frame" x="112" y="446" width="115" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Fix audio fallbacks" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="W6u-1c-BsI">
|
<buttonCell key="cell" type="check" title="Fix audio fallbacks" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="W6u-1c-BsI">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="117" id="8uL-Xd-FJM"/>
|
|
||||||
</constraints>
|
|
||||||
<connections>
|
<connections>
|
||||||
<binding destination="-2" name="value" keyPath="self.options.fixFallbacks" id="W1e-uB-NXG">
|
<binding destination="-2" name="value" keyPath="self.options.fixFallbacks" id="W1e-uB-NXG">
|
||||||
<dictionary key="options">
|
<dictionary key="options">
|
||||||
@@ -375,7 +369,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Set tracks without a language to the selected one" verticalHuggingPriority="756" translatesAutoresizingMaskIntoConstraints="NO" id="slL-2h-MPl">
|
<button toolTip="Set tracks without a language to the selected one" verticalHuggingPriority="756" translatesAutoresizingMaskIntoConstraints="NO" id="slL-2h-MPl">
|
||||||
<rect key="frame" x="111" y="325" width="159" height="16"/>
|
<rect key="frame" x="112" y="346" width="156" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Complete tracks language" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="cxz-2q-RIP">
|
<buttonCell key="cell" type="check" title="Complete tracks language" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="cxz-2q-RIP">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -388,8 +382,8 @@
|
|||||||
</binding>
|
</binding>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="swT-iM-shZ">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="swT-iM-shZ">
|
||||||
<rect key="frame" x="126" y="307" width="64" height="14"/>
|
<rect key="frame" x="126" y="325" width="64" height="14"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" constant="60" id="x6U-u1-ezQ"/>
|
<constraint firstAttribute="width" constant="60" id="x6U-u1-ezQ"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
@@ -403,7 +397,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ZZk-4j-Ji7">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ZZk-4j-Ji7">
|
||||||
<rect key="frame" x="197" y="305" width="111" height="17"/>
|
<rect key="frame" x="197" y="322" width="111" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="kEh-SN-iHZ">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="kEh-SN-iHZ">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -430,8 +424,8 @@
|
|||||||
<binding destination="-2" name="enabled" keyPath="self.options.fixTrackLanguage" id="iYk-sU-PL5"/>
|
<binding destination="-2" name="enabled" keyPath="self.options.fixTrackLanguage" id="iYk-sU-PL5"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="ntU-85-AaJ">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="ntU-85-AaJ">
|
||||||
<rect key="frame" x="126" y="267" width="63" height="14"/>
|
<rect key="frame" x="126" y="283" width="63" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Language:" id="963-dI-WCB">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Language:" id="963-dI-WCB">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -442,7 +436,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ztL-LO-XhV">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ztL-LO-XhV">
|
||||||
<rect key="frame" x="196" y="265" width="111" height="17"/>
|
<rect key="frame" x="196" y="280" width="111" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="tj2-P4-OCU">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="tj2-P4-OCU">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -470,7 +464,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button horizontalHuggingPriority="248" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="3et-YT-WBR">
|
<button horizontalHuggingPriority="248" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="3et-YT-WBR">
|
||||||
<rect key="frame" x="111" y="284" width="195" height="16"/>
|
<rect key="frame" x="112" y="303" width="192" height="14"/>
|
||||||
<string key="toolTip">In files with multiple audio tracks in different languages, this will enable the preferred langauge and disable all other tracks. For AppleTV and some other players, this allows the preferred language audio to play by default. An audio track labeled with the selected language and tagged as main program content must exist. </string>
|
<string key="toolTip">In files with multiple audio tracks in different languages, this will enable the preferred langauge and disable all other tracks. For AppleTV and some other players, this allows the preferred language audio to play by default. An audio track labeled with the selected language and tagged as main program content must exist. </string>
|
||||||
<buttonCell key="cell" type="check" title="Enable audio track with language" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="nC7-4d-Is1">
|
<buttonCell key="cell" type="check" title="Enable audio track with language" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="nC7-4d-Is1">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
@@ -485,7 +479,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="LiA-V6-VEx" userLabel="Change Subtitle Language Track">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="LiA-V6-VEx" userLabel="Change Subtitle Language Track">
|
||||||
<rect key="frame" x="111" y="247" width="218" height="16"/>
|
<rect key="frame" x="112" y="262" width="208" height="14"/>
|
||||||
<string key="toolTip">In files with multiple subtitle tracks in different languages, this will enable the preferred langauge and disable all other tracks. For AppleTV and some other players, this allows the preferred language subtitles to play by default. A subtitle track labeled with the preferred language must exist in the file.</string>
|
<string key="toolTip">In files with multiple subtitle tracks in different languages, this will enable the preferred langauge and disable all other tracks. For AppleTV and some other players, this allows the preferred language subtitles to play by default. A subtitle track labeled with the preferred language must exist in the file.</string>
|
||||||
<buttonCell key="cell" type="check" title="Enable subtitles track with language" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="LD5-Kv-x0M" userLabel="Change Subtitle Language Track">
|
<buttonCell key="cell" type="check" title="Enable subtitles track with language" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="LD5-Kv-x0M" userLabel="Change Subtitle Language Track">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
@@ -500,7 +494,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="755" translatesAutoresizingMaskIntoConstraints="NO" id="yI9-2a-q2a">
|
<button verticalHuggingPriority="755" translatesAutoresizingMaskIntoConstraints="NO" id="yI9-2a-q2a">
|
||||||
<rect key="frame" x="112" y="14" width="178" height="16"/>
|
<rect key="frame" x="113" y="20" width="175" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Show Notification When Done" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="n6P-IC-SEp">
|
<buttonCell key="cell" type="check" title="Show Notification When Done" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="n6P-IC-SEp">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -514,7 +508,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Delete all custom track names" verticalHuggingPriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="22k-mA-HyA">
|
<button toolTip="Delete all custom track names" verticalHuggingPriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="22k-mA-HyA">
|
||||||
<rect key="frame" x="111" y="385" width="122" height="16"/>
|
<rect key="frame" x="112" y="406" width="119" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Clear tracks names" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="mtK-5C-Pzh">
|
<buttonCell key="cell" type="check" title="Clear tracks names" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="mtK-5C-Pzh">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -528,7 +522,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Rename audio tracks according to channel count (Mono, Stereo, Surround)" verticalHuggingPriority="753" translatesAutoresizingMaskIntoConstraints="NO" id="81E-pQ-vyQ">
|
<button toolTip="Rename audio tracks according to channel count (Mono, Stereo, Surround)" verticalHuggingPriority="753" translatesAutoresizingMaskIntoConstraints="NO" id="81E-pQ-vyQ">
|
||||||
<rect key="frame" x="111" y="365" width="159" height="16"/>
|
<rect key="frame" x="112" y="386" width="156" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Prettify audio track names" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="akF-dR-OPB" userLabel="Prettify audio track names">
|
<buttonCell key="cell" type="check" title="Prettify audio track names" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="akF-dR-OPB" userLabel="Prettify audio track names">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -542,7 +536,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Rename chapters titles to "Chapter N" format." verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="0qr-Nt-Pan">
|
<button toolTip="Rename chapters titles to "Chapter N" format." verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="0qr-Nt-Pan">
|
||||||
<rect key="frame" x="111" y="345" width="142" height="16"/>
|
<rect key="frame" x="112" y="366" width="139" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Rename chapters titles" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="yFm-Nq-s66" userLabel="Prettify audio track names">
|
<buttonCell key="cell" type="check" title="Rename chapters titles" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="yFm-Nq-s66" userLabel="Prettify audio track names">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -556,7 +550,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="08Q-2k-0Gb">
|
<popUpButton horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="08Q-2k-0Gb">
|
||||||
<rect key="frame" x="187" y="474" width="70" height="17"/>
|
<rect key="frame" x="187" y="495" width="90" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" title="Poster" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" selectedItem="YjX-6f-SPu" id="1t8-o9-ckI">
|
<popUpButtonCell key="cell" type="roundRect" title="Poster" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" selectedItem="YjX-6f-SPu" id="1t8-o9-ckI">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -587,7 +581,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button toolTip="Set the color space of video tracks to the selected one" verticalHuggingPriority="755" translatesAutoresizingMaskIntoConstraints="NO" id="Pdq-s0-erT">
|
<button toolTip="Set the color space of video tracks to the selected one" verticalHuggingPriority="755" translatesAutoresizingMaskIntoConstraints="NO" id="Pdq-s0-erT">
|
||||||
<rect key="frame" x="111" y="210" width="115" height="16"/>
|
<rect key="frame" x="112" y="221" width="112" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Apply color space" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="0By-RQ-4mS">
|
<buttonCell key="cell" type="check" title="Apply color space" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="0By-RQ-4mS">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -600,8 +594,8 @@
|
|||||||
</binding>
|
</binding>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="2Hf-2V-95U">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="2Hf-2V-95U">
|
||||||
<rect key="frame" x="126" y="192" width="76" height="14"/>
|
<rect key="frame" x="126" y="201" width="76" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Color Space:" id="tMS-Tg-pPf">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Color Space:" id="tMS-Tg-pPf">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -612,7 +606,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="249" translatesAutoresizingMaskIntoConstraints="NO" id="s2g-Iz-52P">
|
<popUpButton verticalHuggingPriority="249" translatesAutoresizingMaskIntoConstraints="NO" id="s2g-Iz-52P">
|
||||||
<rect key="frame" x="209" y="190" width="150" height="18"/>
|
<rect key="frame" x="209" y="198" width="150" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" title="Implicit" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="psY-0V-t0k" id="QT5-Bh-4Hc">
|
<popUpButtonCell key="cell" type="roundRect" title="Implicit" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="psY-0V-t0k" id="QT5-Bh-4Hc">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -641,7 +635,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button toolTip="Search metadata online" verticalHuggingPriority="759" translatesAutoresizingMaskIntoConstraints="NO" id="s8r-Cf-VfB">
|
<button toolTip="Search metadata online" verticalHuggingPriority="759" translatesAutoresizingMaskIntoConstraints="NO" id="s8r-Cf-VfB">
|
||||||
<rect key="frame" x="111" y="592" width="103" height="16"/>
|
<rect key="frame" x="112" y="633" width="100" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Fetch Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="h5x-un-6cJ">
|
<buttonCell key="cell" type="check" title="Fetch Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="h5x-un-6cJ">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -655,7 +649,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="zVi-vU-sh2">
|
<button translatesAutoresizingMaskIntoConstraints="NO" id="zVi-vU-sh2">
|
||||||
<rect key="frame" x="111" y="76" width="145" height="16"/>
|
<rect key="frame" x="112" y="70" width="142" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Send to AppleTV/iTunes" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="4an-VK-S2u">
|
<buttonCell key="cell" type="check" title="Send to AppleTV/iTunes" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="4an-VK-S2u">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -669,7 +663,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="k33-Yf-DbF">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="k33-Yf-DbF">
|
||||||
<rect key="frame" x="263" y="474" width="73" height="17"/>
|
<rect key="frame" x="283" y="495" width="92" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" title="Standard" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" selectedItem="goC-ck-how" id="obA-0k-yqE">
|
<popUpButtonCell key="cell" type="roundRect" title="Standard" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" selectedItem="goC-ck-how" id="obA-0k-yqE">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -693,8 +687,8 @@
|
|||||||
<binding destination="-2" name="enabled" keyPath="self.options.searchMetadata" id="UK3-vK-Ddd"/>
|
<binding destination="-2" name="enabled" keyPath="self.options.searchMetadata" id="UK3-vK-Ddd"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="FJc-Hc-zCR">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="FJc-Hc-zCR">
|
||||||
<rect key="frame" x="126" y="230" width="63" height="14"/>
|
<rect key="frame" x="126" y="242" width="63" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Language:" id="E4E-3v-z24">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Language:" id="E4E-3v-z24">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -705,7 +699,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="YJ5-of-VuU">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="YJ5-of-VuU">
|
||||||
<rect key="frame" x="196" y="228" width="111" height="17"/>
|
<rect key="frame" x="196" y="239" width="111" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="muE-Km-mrP">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="muE-Km-mrP">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -733,7 +727,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Hjl-i0-gFW">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Hjl-i0-gFW">
|
||||||
<rect key="frame" x="111" y="173" width="124" height="16"/>
|
<rect key="frame" x="112" y="179" width="121" height="14"/>
|
||||||
<buttonCell key="cell" type="check" title="Set output filename" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="Qld-0F-DsX">
|
<buttonCell key="cell" type="check" title="Set output filename" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="Qld-0F-DsX">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -743,7 +737,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="KWg-Ak-bB6">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="KWg-Ak-bB6">
|
||||||
<rect key="frame" x="195" y="114" width="130" height="17"/>
|
<rect key="frame" x="195" y="108" width="130" height="20"/>
|
||||||
<popUpButtonCell key="cell" type="roundRect" title="mp4" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="10" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="iXb-rA-1f3" id="Tgc-fW-mN5">
|
<popUpButtonCell key="cell" type="roundRect" title="mp4" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="10" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="iXb-rA-1f3" id="Tgc-fW-mN5">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="label" size="11"/>
|
<font key="font" metaFont="label" size="11"/>
|
||||||
@@ -762,8 +756,8 @@
|
|||||||
<binding destination="-2" name="selectedValue" keyPath="self.options.fileType" id="cpt-5g-SPz"/>
|
<binding destination="-2" name="selectedValue" keyPath="self.options.fileType" id="cpt-5g-SPz"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="muY-E0-hVI">
|
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="muY-E0-hVI">
|
||||||
<rect key="frame" x="129" y="116" width="59" height="14"/>
|
<rect key="frame" x="129" y="111" width="59" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="File Type:" id="UbR-KJ-8iR">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="File Type:" id="UbR-KJ-8iR">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -778,30 +772,29 @@
|
|||||||
<constraint firstItem="eTL-yP-QQ5" firstAttribute="baseline" secondItem="ZVm-yi-3cE" secondAttribute="baseline" id="2QL-tK-mnk"/>
|
<constraint firstItem="eTL-yP-QQ5" firstAttribute="baseline" secondItem="ZVm-yi-3cE" secondAttribute="baseline" id="2QL-tK-mnk"/>
|
||||||
<constraint firstItem="Uoo-hZ-D1f" firstAttribute="trailing" secondItem="S7L-mA-j3Y" secondAttribute="trailing" id="2nH-CB-Xrm"/>
|
<constraint firstItem="Uoo-hZ-D1f" firstAttribute="trailing" secondItem="S7L-mA-j3Y" secondAttribute="trailing" id="2nH-CB-Xrm"/>
|
||||||
<constraint firstItem="Hjl-i0-gFW" firstAttribute="leading" secondItem="9GN-f6-r2j" secondAttribute="leading" id="37z-nU-kY2"/>
|
<constraint firstItem="Hjl-i0-gFW" firstAttribute="leading" secondItem="9GN-f6-r2j" secondAttribute="leading" id="37z-nU-kY2"/>
|
||||||
<constraint firstItem="DVM-Js-DwK" firstAttribute="top" secondItem="Hjl-i0-gFW" secondAttribute="bottom" constant="3" id="3TZ-bb-Hrc"/>
|
|
||||||
<constraint firstItem="Ns9-7q-hsh" firstAttribute="leading" secondItem="eTL-yP-QQ5" secondAttribute="leading" id="3lE-zv-GLa"/>
|
<constraint firstItem="Ns9-7q-hsh" firstAttribute="leading" secondItem="eTL-yP-QQ5" secondAttribute="leading" id="3lE-zv-GLa"/>
|
||||||
<constraint firstItem="BWL-Nn-iGH" firstAttribute="leading" secondItem="73q-gi-fe2" secondAttribute="leading" id="4F6-3i-TFt"/>
|
<constraint firstItem="BWL-Nn-iGH" firstAttribute="leading" secondItem="73q-gi-fe2" secondAttribute="leading" id="4F6-3i-TFt"/>
|
||||||
<constraint firstItem="Uoo-hZ-D1f" firstAttribute="baseline" secondItem="MGZ-hB-jhx" secondAttribute="baseline" id="60E-u1-vWH"/>
|
<constraint firstItem="Uoo-hZ-D1f" firstAttribute="baseline" secondItem="MGZ-hB-jhx" secondAttribute="baseline" id="60E-u1-vWH"/>
|
||||||
<constraint firstItem="73q-gi-fe2" firstAttribute="baseline" secondItem="5rh-cM-iOg" secondAttribute="baseline" id="66k-sh-Ru9"/>
|
<constraint firstItem="73q-gi-fe2" firstAttribute="baseline" secondItem="5rh-cM-iOg" secondAttribute="baseline" id="66k-sh-Ru9"/>
|
||||||
<constraint firstItem="vJ5-JB-k1m" firstAttribute="top" secondItem="NhN-Lg-awX" secondAttribute="bottom" constant="6" id="6oE-wc-3VM"/>
|
|
||||||
<constraint firstItem="etc-K7-Atw" firstAttribute="top" secondItem="TV6-Sk-Bqr" secondAttribute="bottom" constant="6" symbolic="YES" id="957-mU-89Q"/>
|
<constraint firstItem="etc-K7-Atw" firstAttribute="top" secondItem="TV6-Sk-Bqr" secondAttribute="bottom" constant="6" symbolic="YES" id="957-mU-89Q"/>
|
||||||
<constraint firstItem="ccd-Xn-Dj3" firstAttribute="top" secondItem="08Q-2k-0Gb" secondAttribute="bottom" constant="15" id="9cv-6n-XUW"/>
|
<constraint firstItem="ccd-Xn-Dj3" firstAttribute="top" secondItem="08Q-2k-0Gb" secondAttribute="bottom" constant="15" id="9cv-6n-XUW"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="yI9-2a-q2a" secondAttribute="bottom" constant="15" id="9sX-va-Dwk"/>
|
<constraint firstAttribute="bottom" secondItem="yI9-2a-q2a" secondAttribute="bottom" constant="20" id="9sX-va-Dwk"/>
|
||||||
<constraint firstItem="muY-E0-hVI" firstAttribute="top" secondItem="vJ5-JB-k1m" secondAttribute="bottom" constant="6" id="Cy6-XK-sSC"/>
|
|
||||||
<constraint firstItem="ZZk-4j-Ji7" firstAttribute="leading" secondItem="swT-iM-shZ" secondAttribute="trailing" constant="9" id="DAW-9N-Oi1"/>
|
<constraint firstItem="ZZk-4j-Ji7" firstAttribute="leading" secondItem="swT-iM-shZ" secondAttribute="trailing" constant="9" id="DAW-9N-Oi1"/>
|
||||||
<constraint firstItem="NhN-Lg-awX" firstAttribute="top" secondItem="Hjl-i0-gFW" secondAttribute="bottom" constant="4" id="EoB-Hi-KKF"/>
|
|
||||||
<constraint firstItem="zVi-vU-sh2" firstAttribute="leading" secondItem="9GN-f6-r2j" secondAttribute="leading" id="Eua-v1-wC3"/>
|
<constraint firstItem="zVi-vU-sh2" firstAttribute="leading" secondItem="9GN-f6-r2j" secondAttribute="leading" id="Eua-v1-wC3"/>
|
||||||
|
<constraint firstItem="zEH-aV-Tl7" firstAttribute="top" secondItem="KWg-Ak-bB6" secondAttribute="bottom" constant="5" id="G6e-3t-3Qo"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="ccd-Xn-Dj3" secondAttribute="trailing" constant="20" symbolic="YES" id="GMb-eq-e9x"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="ccd-Xn-Dj3" secondAttribute="trailing" constant="20" symbolic="YES" id="GMb-eq-e9x"/>
|
||||||
<constraint firstItem="Ce4-O7-Iu4" firstAttribute="top" secondItem="tLh-V3-OfB" secondAttribute="bottom" constant="4" id="GZU-yB-OvD"/>
|
<constraint firstItem="Ce4-O7-Iu4" firstAttribute="top" secondItem="tLh-V3-OfB" secondAttribute="bottom" constant="4" id="GZU-yB-OvD"/>
|
||||||
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="81E-pQ-vyQ" secondAttribute="trailing" constant="20" symbolic="YES" id="HI8-BQ-BTo"/>
|
||||||
<constraint firstItem="swT-iM-shZ" firstAttribute="leading" secondItem="slL-2h-MPl" secondAttribute="leading" constant="16" id="IET-Co-LEB"/>
|
<constraint firstItem="swT-iM-shZ" firstAttribute="leading" secondItem="slL-2h-MPl" secondAttribute="leading" constant="16" id="IET-Co-LEB"/>
|
||||||
<constraint firstItem="DVM-Js-DwK" firstAttribute="baseline" secondItem="NhN-Lg-awX" secondAttribute="baseline" id="IIu-ZN-CEa"/>
|
<constraint firstItem="DVM-Js-DwK" firstAttribute="baseline" secondItem="NhN-Lg-awX" secondAttribute="baseline" id="IIu-ZN-CEa"/>
|
||||||
<constraint firstItem="ztL-LO-XhV" firstAttribute="leading" secondItem="ntU-85-AaJ" secondAttribute="trailing" constant="9" id="K3L-f4-IZc"/>
|
<constraint firstItem="ztL-LO-XhV" firstAttribute="leading" secondItem="ntU-85-AaJ" secondAttribute="trailing" constant="9" id="K3L-f4-IZc"/>
|
||||||
|
<constraint firstItem="Hjl-i0-gFW" firstAttribute="top" secondItem="s2g-Iz-52P" secondAttribute="bottom" constant="5" id="KsR-cp-dYg"/>
|
||||||
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="etc-K7-Atw" secondAttribute="trailing" constant="20" symbolic="YES" id="LBm-Pp-APA"/>
|
||||||
<constraint firstItem="tLh-V3-OfB" firstAttribute="leading" secondItem="bDo-OD-bck" secondAttribute="trailing" constant="8" symbolic="YES" id="LkT-ae-DtF"/>
|
<constraint firstItem="tLh-V3-OfB" firstAttribute="leading" secondItem="bDo-OD-bck" secondAttribute="trailing" constant="8" symbolic="YES" id="LkT-ae-DtF"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="9GN-f6-r2j" secondAttribute="trailing" constant="20" symbolic="YES" id="MDf-Y0-K0I"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="9GN-f6-r2j" secondAttribute="trailing" constant="20" symbolic="YES" id="MDf-Y0-K0I"/>
|
||||||
<constraint firstItem="FJc-Hc-zCR" firstAttribute="leading" secondItem="LiA-V6-VEx" secondAttribute="leading" constant="16" id="MQ9-dx-nHh"/>
|
<constraint firstItem="FJc-Hc-zCR" firstAttribute="leading" secondItem="LiA-V6-VEx" secondAttribute="leading" constant="16" id="MQ9-dx-nHh"/>
|
||||||
<constraint firstItem="zVi-vU-sh2" firstAttribute="top" secondItem="zEH-aV-Tl7" secondAttribute="bottom" constant="5" id="Mmx-43-nCr"/>
|
<constraint firstItem="zVi-vU-sh2" firstAttribute="top" secondItem="zEH-aV-Tl7" secondAttribute="bottom" constant="5" id="Mmx-43-nCr"/>
|
||||||
<constraint firstItem="swT-iM-shZ" firstAttribute="baseline" secondItem="ZZk-4j-Ji7" secondAttribute="baseline" id="NVg-BO-A8O"/>
|
<constraint firstItem="swT-iM-shZ" firstAttribute="baseline" secondItem="ZZk-4j-Ji7" secondAttribute="baseline" id="NVg-BO-A8O"/>
|
||||||
<constraint firstItem="Hjl-i0-gFW" firstAttribute="top" secondItem="2Hf-2V-95U" secondAttribute="bottom" constant="4" id="Nli-Lf-nnu"/>
|
|
||||||
<constraint firstItem="slL-2h-MPl" firstAttribute="top" secondItem="0qr-Nt-Pan" secondAttribute="bottom" constant="6" symbolic="YES" id="Nn2-m3-qrI"/>
|
<constraint firstItem="slL-2h-MPl" firstAttribute="top" secondItem="0qr-Nt-Pan" secondAttribute="bottom" constant="6" symbolic="YES" id="Nn2-m3-qrI"/>
|
||||||
<constraint firstItem="ntU-85-AaJ" firstAttribute="baseline" secondItem="ztL-LO-XhV" secondAttribute="baseline" id="P2e-3H-9uY"/>
|
<constraint firstItem="ntU-85-AaJ" firstAttribute="baseline" secondItem="ztL-LO-XhV" secondAttribute="baseline" id="P2e-3H-9uY"/>
|
||||||
<constraint firstItem="s2g-Iz-52P" firstAttribute="leading" secondItem="2Hf-2V-95U" secondAttribute="trailing" constant="9" id="PCQ-pI-3nq"/>
|
<constraint firstItem="s2g-Iz-52P" firstAttribute="leading" secondItem="2Hf-2V-95U" secondAttribute="trailing" constant="9" id="PCQ-pI-3nq"/>
|
||||||
@@ -811,8 +804,8 @@
|
|||||||
<constraint firstItem="BWL-Nn-iGH" firstAttribute="baseline" secondItem="Ce4-O7-Iu4" secondAttribute="baseline" id="R7k-Cz-UbH"/>
|
<constraint firstItem="BWL-Nn-iGH" firstAttribute="baseline" secondItem="Ce4-O7-Iu4" secondAttribute="baseline" id="R7k-Cz-UbH"/>
|
||||||
<constraint firstItem="slL-2h-MPl" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="RYO-ud-gve"/>
|
<constraint firstItem="slL-2h-MPl" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="RYO-ud-gve"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="slL-2h-MPl" secondAttribute="trailing" constant="20" symbolic="YES" id="RrJ-dB-kUg"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="slL-2h-MPl" secondAttribute="trailing" constant="20" symbolic="YES" id="RrJ-dB-kUg"/>
|
||||||
<constraint firstItem="Pdq-s0-erT" firstAttribute="top" secondItem="YJ5-of-VuU" secondAttribute="bottom" constant="4" id="SJH-vG-SoX"/>
|
|
||||||
<constraint firstItem="YJ5-of-VuU" firstAttribute="top" secondItem="LiA-V6-VEx" secondAttribute="bottom" constant="3" id="SPV-V9-fNd"/>
|
<constraint firstItem="YJ5-of-VuU" firstAttribute="top" secondItem="LiA-V6-VEx" secondAttribute="bottom" constant="3" id="SPV-V9-fNd"/>
|
||||||
|
<constraint firstItem="s2g-Iz-52P" firstAttribute="top" secondItem="Pdq-s0-erT" secondAttribute="bottom" constant="3" id="TY3-v9-t2l"/>
|
||||||
<constraint firstItem="ntU-85-AaJ" firstAttribute="leading" secondItem="3et-YT-WBR" secondAttribute="leading" constant="16" id="ToH-GW-vZD"/>
|
<constraint firstItem="ntU-85-AaJ" firstAttribute="leading" secondItem="3et-YT-WBR" secondAttribute="leading" constant="16" id="ToH-GW-vZD"/>
|
||||||
<constraint firstItem="81E-pQ-vyQ" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="Tx4-WN-8eT"/>
|
<constraint firstItem="81E-pQ-vyQ" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="Tx4-WN-8eT"/>
|
||||||
<constraint firstItem="Pdq-s0-erT" firstAttribute="leading" secondItem="9GN-f6-r2j" secondAttribute="leading" id="UCC-4h-SBw"/>
|
<constraint firstItem="Pdq-s0-erT" firstAttribute="leading" secondItem="9GN-f6-r2j" secondAttribute="leading" id="UCC-4h-SBw"/>
|
||||||
@@ -823,14 +816,13 @@
|
|||||||
<constraint firstItem="S7L-mA-j3Y" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="UlG-O3-eNc" secondAttribute="leading" constant="20" symbolic="YES" id="Wtg-8x-kIs"/>
|
<constraint firstItem="S7L-mA-j3Y" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="UlG-O3-eNc" secondAttribute="leading" constant="20" symbolic="YES" id="Wtg-8x-kIs"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="s2g-Iz-52P" secondAttribute="trailing" constant="20" symbolic="YES" id="X1t-8Y-baf"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="s2g-Iz-52P" secondAttribute="trailing" constant="20" symbolic="YES" id="X1t-8Y-baf"/>
|
||||||
<constraint firstItem="TV6-Sk-Bqr" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="X37-Ek-Obs"/>
|
<constraint firstItem="TV6-Sk-Bqr" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="X37-Ek-Obs"/>
|
||||||
<constraint firstItem="etc-K7-Atw" firstAttribute="trailing" secondItem="0qr-Nt-Pan" secondAttribute="trailing" id="XT5-Su-3cJ"/>
|
<constraint firstItem="DVM-Js-DwK" firstAttribute="top" secondItem="Hjl-i0-gFW" secondAttribute="bottom" constant="3" id="X54-PH-kRj"/>
|
||||||
<constraint firstItem="2Hf-2V-95U" firstAttribute="top" secondItem="Pdq-s0-erT" secondAttribute="bottom" constant="5" id="Ylb-ff-hBi"/>
|
|
||||||
<constraint firstItem="eTL-yP-QQ5" firstAttribute="leading" secondItem="s8r-Cf-VfB" secondAttribute="leading" constant="16" id="Z6O-Is-xJw"/>
|
<constraint firstItem="eTL-yP-QQ5" firstAttribute="leading" secondItem="s8r-Cf-VfB" secondAttribute="leading" constant="16" id="Z6O-Is-xJw"/>
|
||||||
<constraint firstItem="k33-Yf-DbF" firstAttribute="leading" secondItem="08Q-2k-0Gb" secondAttribute="trailing" constant="6" id="aBD-L7-WLH"/>
|
<constraint firstItem="k33-Yf-DbF" firstAttribute="leading" secondItem="08Q-2k-0Gb" secondAttribute="trailing" constant="6" id="aBD-L7-WLH"/>
|
||||||
<constraint firstItem="MGZ-hB-jhx" firstAttribute="leading" secondItem="Uoo-hZ-D1f" secondAttribute="trailing" constant="8" symbolic="YES" id="bZX-aT-V7w"/>
|
<constraint firstItem="MGZ-hB-jhx" firstAttribute="leading" secondItem="Uoo-hZ-D1f" secondAttribute="trailing" constant="8" symbolic="YES" id="bZX-aT-V7w"/>
|
||||||
|
<constraint firstItem="KWg-Ak-bB6" firstAttribute="top" secondItem="86l-GG-SpO" secondAttribute="bottom" constant="4" id="cxd-ok-Pio"/>
|
||||||
<constraint firstItem="KWg-Ak-bB6" firstAttribute="leading" secondItem="muY-E0-hVI" secondAttribute="trailing" constant="9" id="dS3-YF-Fsp"/>
|
<constraint firstItem="KWg-Ak-bB6" firstAttribute="leading" secondItem="muY-E0-hVI" secondAttribute="trailing" constant="9" id="dS3-YF-Fsp"/>
|
||||||
<constraint firstItem="ztL-LO-XhV" firstAttribute="top" secondItem="3et-YT-WBR" secondAttribute="bottom" constant="3" id="eAi-4b-fS1"/>
|
<constraint firstItem="ztL-LO-XhV" firstAttribute="top" secondItem="3et-YT-WBR" secondAttribute="bottom" constant="3" id="eAi-4b-fS1"/>
|
||||||
<constraint firstItem="zEH-aV-Tl7" firstAttribute="top" secondItem="muY-E0-hVI" secondAttribute="bottom" constant="6" id="ei1-yP-0CS"/>
|
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="s8r-Cf-VfB" secondAttribute="trailing" constant="20" symbolic="YES" id="esG-2e-jbB"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="s8r-Cf-VfB" secondAttribute="trailing" constant="20" symbolic="YES" id="esG-2e-jbB"/>
|
||||||
<constraint firstItem="vJ5-JB-k1m" firstAttribute="trailing" secondItem="NhN-Lg-awX" secondAttribute="trailing" id="fEv-Vf-2Dv"/>
|
<constraint firstItem="vJ5-JB-k1m" firstAttribute="trailing" secondItem="NhN-Lg-awX" secondAttribute="trailing" id="fEv-Vf-2Dv"/>
|
||||||
<constraint firstItem="LiA-V6-VEx" firstAttribute="top" secondItem="ztL-LO-XhV" secondAttribute="bottom" constant="4" id="fW1-9T-b7C"/>
|
<constraint firstItem="LiA-V6-VEx" firstAttribute="top" secondItem="ztL-LO-XhV" secondAttribute="bottom" constant="4" id="fW1-9T-b7C"/>
|
||||||
@@ -843,22 +835,25 @@
|
|||||||
<constraint firstItem="22k-mA-HyA" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="gf1-Gn-HmD"/>
|
<constraint firstItem="22k-mA-HyA" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="gf1-Gn-HmD"/>
|
||||||
<constraint firstItem="ZVm-yi-3cE" firstAttribute="top" secondItem="s8r-Cf-VfB" secondAttribute="bottom" constant="8" symbolic="YES" id="guH-Zh-HOj"/>
|
<constraint firstItem="ZVm-yi-3cE" firstAttribute="top" secondItem="s8r-Cf-VfB" secondAttribute="bottom" constant="8" symbolic="YES" id="guH-Zh-HOj"/>
|
||||||
<constraint firstItem="9GN-f6-r2j" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="h8R-Ut-8qp"/>
|
<constraint firstItem="9GN-f6-r2j" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="h8R-Ut-8qp"/>
|
||||||
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="TV6-Sk-Bqr" secondAttribute="trailing" constant="20" symbolic="YES" id="hcL-c5-CaR"/>
|
||||||
<constraint firstItem="08Q-2k-0Gb" firstAttribute="leading" secondItem="Ns9-7q-hsh" secondAttribute="trailing" constant="9" id="iQj-1h-1cO"/>
|
<constraint firstItem="08Q-2k-0Gb" firstAttribute="leading" secondItem="Ns9-7q-hsh" secondAttribute="trailing" constant="9" id="iQj-1h-1cO"/>
|
||||||
<constraint firstItem="2Hf-2V-95U" firstAttribute="baseline" secondItem="s2g-Iz-52P" secondAttribute="baseline" id="iuc-CH-gRQ"/>
|
<constraint firstItem="2Hf-2V-95U" firstAttribute="baseline" secondItem="s2g-Iz-52P" secondAttribute="baseline" id="iuc-CH-gRQ"/>
|
||||||
<constraint firstItem="86l-GG-SpO" firstAttribute="leading" secondItem="vJ5-JB-k1m" secondAttribute="trailing" constant="9" id="jVT-Dw-cxd"/>
|
<constraint firstItem="86l-GG-SpO" firstAttribute="leading" secondItem="vJ5-JB-k1m" secondAttribute="trailing" constant="9" id="jVT-Dw-cxd"/>
|
||||||
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="k33-Yf-DbF" secondAttribute="trailing" constant="20" symbolic="YES" id="kql-Sm-3Q6"/>
|
||||||
<constraint firstItem="S7L-mA-j3Y" firstAttribute="baseline" secondItem="9GN-f6-r2j" secondAttribute="baseline" id="lQw-5e-sOv"/>
|
<constraint firstItem="S7L-mA-j3Y" firstAttribute="baseline" secondItem="9GN-f6-r2j" secondAttribute="baseline" id="lQw-5e-sOv"/>
|
||||||
<constraint firstItem="etc-K7-Atw" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="lRh-Vo-1XH"/>
|
<constraint firstItem="etc-K7-Atw" firstAttribute="leading" secondItem="S7L-mA-j3Y" secondAttribute="trailing" constant="7" id="lRh-Vo-1XH"/>
|
||||||
<constraint firstItem="KWg-Ak-bB6" firstAttribute="firstBaseline" secondItem="muY-E0-hVI" secondAttribute="firstBaseline" id="lu4-VE-F0x"/>
|
<constraint firstItem="KWg-Ak-bB6" firstAttribute="firstBaseline" secondItem="muY-E0-hVI" secondAttribute="firstBaseline" id="lu4-VE-F0x"/>
|
||||||
<constraint firstItem="22k-mA-HyA" firstAttribute="top" secondItem="etc-K7-Atw" secondAttribute="bottom" constant="6" symbolic="YES" id="mRD-fX-qMt"/>
|
<constraint firstItem="22k-mA-HyA" firstAttribute="top" secondItem="etc-K7-Atw" secondAttribute="bottom" constant="6" symbolic="YES" id="mRD-fX-qMt"/>
|
||||||
|
<constraint firstItem="86l-GG-SpO" firstAttribute="top" secondItem="DVM-Js-DwK" secondAttribute="bottom" constant="4" id="mYq-MI-cyr"/>
|
||||||
<constraint firstItem="ZZk-4j-Ji7" firstAttribute="top" secondItem="slL-2h-MPl" secondAttribute="bottom" constant="4" id="n9b-Ub-usn"/>
|
<constraint firstItem="ZZk-4j-Ji7" firstAttribute="top" secondItem="slL-2h-MPl" secondAttribute="bottom" constant="4" id="n9b-Ub-usn"/>
|
||||||
<constraint firstItem="08Q-2k-0Gb" firstAttribute="baseline" secondItem="k33-Yf-DbF" secondAttribute="baseline" id="nPl-tv-zwn"/>
|
<constraint firstItem="08Q-2k-0Gb" firstAttribute="baseline" secondItem="k33-Yf-DbF" secondAttribute="baseline" id="nPl-tv-zwn"/>
|
||||||
<constraint firstItem="81E-pQ-vyQ" firstAttribute="top" secondItem="22k-mA-HyA" secondAttribute="bottom" constant="6" symbolic="YES" id="ntR-jS-xXX"/>
|
<constraint firstItem="81E-pQ-vyQ" firstAttribute="top" secondItem="22k-mA-HyA" secondAttribute="bottom" constant="6" symbolic="YES" id="ntR-jS-xXX"/>
|
||||||
<constraint firstItem="5rh-cM-iOg" firstAttribute="top" secondItem="ZVm-yi-3cE" secondAttribute="bottom" constant="4" id="o3T-cH-W5B"/>
|
<constraint firstItem="5rh-cM-iOg" firstAttribute="top" secondItem="ZVm-yi-3cE" secondAttribute="bottom" constant="4" id="o3T-cH-W5B"/>
|
||||||
<constraint firstItem="5rh-cM-iOg" firstAttribute="leading" secondItem="73q-gi-fe2" secondAttribute="trailing" constant="9" id="oAW-Hc-PIL"/>
|
<constraint firstItem="5rh-cM-iOg" firstAttribute="leading" secondItem="73q-gi-fe2" secondAttribute="trailing" constant="9" id="oAW-Hc-PIL"/>
|
||||||
<constraint firstItem="s8r-Cf-VfB" firstAttribute="leading" secondItem="9GN-f6-r2j" secondAttribute="leading" id="oUh-bK-O8z"/>
|
<constraint firstItem="s8r-Cf-VfB" firstAttribute="leading" secondItem="9GN-f6-r2j" secondAttribute="leading" id="oUh-bK-O8z"/>
|
||||||
<constraint firstItem="S7L-mA-j3Y" firstAttribute="top" secondItem="UlG-O3-eNc" secondAttribute="top" constant="15" id="qfC-zl-k6y"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="0qr-Nt-Pan" secondAttribute="trailing" constant="20" symbolic="YES" id="p6g-Q8-2JO"/>
|
||||||
|
<constraint firstItem="S7L-mA-j3Y" firstAttribute="top" secondItem="UlG-O3-eNc" secondAttribute="top" constant="20" id="qfC-zl-k6y"/>
|
||||||
<constraint firstItem="tLh-V3-OfB" firstAttribute="top" secondItem="5rh-cM-iOg" secondAttribute="bottom" constant="10" id="qgN-Bo-MoW"/>
|
<constraint firstItem="tLh-V3-OfB" firstAttribute="top" secondItem="5rh-cM-iOg" secondAttribute="bottom" constant="10" id="qgN-Bo-MoW"/>
|
||||||
<constraint firstItem="s2g-Iz-52P" firstAttribute="top" secondItem="Pdq-s0-erT" secondAttribute="bottom" constant="3" id="rhq-4q-lqQ"/>
|
|
||||||
<constraint firstItem="YJ5-of-VuU" firstAttribute="leading" secondItem="FJc-Hc-zCR" secondAttribute="trailing" constant="9" id="s62-9o-HgE"/>
|
<constraint firstItem="YJ5-of-VuU" firstAttribute="leading" secondItem="FJc-Hc-zCR" secondAttribute="trailing" constant="9" id="s62-9o-HgE"/>
|
||||||
<constraint firstItem="muY-E0-hVI" firstAttribute="trailing" secondItem="vJ5-JB-k1m" secondAttribute="trailing" id="sGc-c4-SAY"/>
|
<constraint firstItem="muY-E0-hVI" firstAttribute="trailing" secondItem="vJ5-JB-k1m" secondAttribute="trailing" id="sGc-c4-SAY"/>
|
||||||
<constraint firstItem="TV6-Sk-Bqr" firstAttribute="top" secondItem="ccd-Xn-Dj3" secondAttribute="bottom" constant="6" symbolic="YES" id="sLa-WX-X4o"/>
|
<constraint firstItem="TV6-Sk-Bqr" firstAttribute="top" secondItem="ccd-Xn-Dj3" secondAttribute="bottom" constant="6" symbolic="YES" id="sLa-WX-X4o"/>
|
||||||
@@ -867,11 +862,13 @@
|
|||||||
<constraint firstItem="08Q-2k-0Gb" firstAttribute="top" secondItem="Ce4-O7-Iu4" secondAttribute="bottom" constant="12" id="vAJ-AI-csp"/>
|
<constraint firstItem="08Q-2k-0Gb" firstAttribute="top" secondItem="Ce4-O7-Iu4" secondAttribute="bottom" constant="12" id="vAJ-AI-csp"/>
|
||||||
<constraint firstItem="bDo-OD-bck" firstAttribute="leading" secondItem="eTL-yP-QQ5" secondAttribute="leading" id="vCX-Uv-1ad"/>
|
<constraint firstItem="bDo-OD-bck" firstAttribute="leading" secondItem="eTL-yP-QQ5" secondAttribute="leading" id="vCX-Uv-1ad"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="22k-mA-HyA" secondAttribute="trailing" constant="20" symbolic="YES" id="w8d-N9-ueg"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="22k-mA-HyA" secondAttribute="trailing" constant="20" symbolic="YES" id="w8d-N9-ueg"/>
|
||||||
|
<constraint firstItem="Pdq-s0-erT" firstAttribute="top" secondItem="YJ5-of-VuU" secondAttribute="bottom" constant="4" id="wvH-wm-dox"/>
|
||||||
<constraint firstItem="3et-YT-WBR" firstAttribute="top" secondItem="swT-iM-shZ" secondAttribute="bottom" constant="8" symbolic="YES" id="y2J-57-qCW"/>
|
<constraint firstItem="3et-YT-WBR" firstAttribute="top" secondItem="swT-iM-shZ" secondAttribute="bottom" constant="8" symbolic="YES" id="y2J-57-qCW"/>
|
||||||
<constraint firstItem="DVM-Js-DwK" firstAttribute="leading" secondItem="NhN-Lg-awX" secondAttribute="trailing" constant="9" id="yIt-8L-VbD"/>
|
<constraint firstItem="DVM-Js-DwK" firstAttribute="leading" secondItem="NhN-Lg-awX" secondAttribute="trailing" constant="9" id="yIt-8L-VbD"/>
|
||||||
|
<constraint firstItem="MGZ-hB-jhx" firstAttribute="top" secondItem="zVi-vU-sh2" secondAttribute="bottom" constant="16" id="zMD-eX-e2y"/>
|
||||||
<constraint firstItem="MGZ-hB-jhx" firstAttribute="leading" secondItem="yI9-2a-q2a" secondAttribute="leading" id="zpo-Kd-EaI"/>
|
<constraint firstItem="MGZ-hB-jhx" firstAttribute="leading" secondItem="yI9-2a-q2a" secondAttribute="leading" id="zpo-Kd-EaI"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="-1040" y="-34"/>
|
<point key="canvasLocation" x="-1250" y="-137"/>
|
||||||
</customView>
|
</customView>
|
||||||
<arrayController objectClassName="Preset" automaticallyPreparesContent="YES" id="vyv-na-Xpo" userLabel="Set Controller">
|
<arrayController objectClassName="Preset" automaticallyPreparesContent="YES" id="vyv-na-Xpo" userLabel="Set Controller">
|
||||||
<declaredKeys>
|
<declaredKeys>
|
||||||
|
|||||||
@@ -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="17506" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17506"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -378,7 +378,7 @@ Gw
|
|||||||
<constraint firstItem="3EA-ze-TJM" firstAttribute="leading" secondItem="gTi-Iq-Nr3" secondAttribute="trailing" constant="12" id="vTd-Bl-Rjc"/>
|
<constraint firstItem="3EA-ze-TJM" firstAttribute="leading" secondItem="gTi-Iq-Nr3" secondAttribute="trailing" constant="12" id="vTd-Bl-Rjc"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="3EA-ze-TJM" secondAttribute="bottom" constant="20" symbolic="YES" id="zdI-AV-TEM"/>
|
<constraint firstAttribute="bottom" secondItem="3EA-ze-TJM" secondAttribute="bottom" constant="20" symbolic="YES" id="zdI-AV-TEM"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="27" y="-55"/>
|
<point key="canvasLocation" x="259" y="2"/>
|
||||||
</view>
|
</view>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
+262
@@ -0,0 +1,262 @@
|
|||||||
|
# CHANGES — SublerMKV fork
|
||||||
|
|
||||||
|
Executive summary of everything this fork adds or changes relative to the
|
||||||
|
original Subler checkout.
|
||||||
|
|
||||||
|
- **Baseline**: upstream commit `0c3d7de` (2026-10-20, "Fix wobbling preference
|
||||||
|
panels switch animation caused by macOS 27.2") — the last commit inherited
|
||||||
|
from the GitHub Subler project.
|
||||||
|
- **Since then**: 18 commits in the app repository and 15 in the
|
||||||
|
**MP42Foundation** submodule (2026-11-25 → 2026-11-28).
|
||||||
|
- **Fork identity**: version `1.9.5mkv2` (upstream base + `mkv` + a fork
|
||||||
|
change counter), builds as `SublerMKV.app` (`org.galad.SublerMKV`);
|
||||||
|
development moved from GitHub to Gitea (`git.technomancer.com:Scott-Files/`).
|
||||||
|
|
||||||
|
## Executive summary
|
||||||
|
|
||||||
|
Two headline capabilities, plus the packaging to support them:
|
||||||
|
|
||||||
|
1. **Matroska files can now be opened and edited in place.** Subler previously
|
||||||
|
forced `.mkv`/`.mka`/`.mks` through a convert-to-MP4 import. The fork opens
|
||||||
|
them directly as documents: metadata, cover art, track fields, chapters,
|
||||||
|
subtitle-track additions, and track deletions all save back *as Matroska*,
|
||||||
|
without a lossy transcode and without ever writing QuickTime atoms over an
|
||||||
|
MKV.
|
||||||
|
2. **A complete BLU-RAY PGS subtitle pipeline.** Raw `.sup` PGS files import
|
||||||
|
natively; PGS tracks inside MKVs convert to VobSub (`subp`) at the stream's
|
||||||
|
**own resolution** (e.g. 1920x1080, not the old forced 720x480 DVD frame);
|
||||||
|
and subtitle filenames are recognized for language and type flags (SDH,
|
||||||
|
forced, commentary, …) the way mkvmerge does it.
|
||||||
|
|
||||||
|
Supporting work: direct metadata lookups from IDs embedded in filenames, the
|
||||||
|
project + submodules re-hosted on Gitea, the Sparkle auto-updater removed, and
|
||||||
|
two command-line helpers (`extractsubs`, `sup2vob`) now built and shipped
|
||||||
|
inside the app bundle so they never drift from the app's own code.
|
||||||
|
|
||||||
|
## 1. Matroska in-place editing
|
||||||
|
|
||||||
|
*App: `eb386a5`, `3302367`, `8520d72`, `f457b4e`, `06ecb0a` — Framework: `1040f47`, `8ba3f25`, `0cf79ec`, `10dcee3`, `e8231de`*
|
||||||
|
|
||||||
|
- **Direct open**: `.mkv/.mka/.mks` open into a tags-only `MP42File` model
|
||||||
|
instead of the convert-import sheet. MP4-only properties stay read-only;
|
||||||
|
the four fields Matroska actually stores per track — **name, language,
|
||||||
|
enabled, subtitle-forced** — are editable, along with all metadata and
|
||||||
|
cover art.
|
||||||
|
- **Two save engines** (in MP42Foundation), chosen automatically:
|
||||||
|
- `MP42MkvTagWriter` — mkvpropedit-style **in-place** rewrite of the `Tags`
|
||||||
|
element, cover-art attachment, and per-track fields. Reuses the old extent
|
||||||
|
+ Void padding when the payload fits; otherwise rebuilds the file tail
|
||||||
|
with recomputed SeekHead/Cues positions (temp file + atomic replace).
|
||||||
|
Untouched tracks diff to **byte-for-byte no-ops**; foreign tag groups,
|
||||||
|
unknown TrackEntry children, and non-cover attachments are preserved
|
||||||
|
verbatim; a size+mtime staleness guard refuses writes on changed files.
|
||||||
|
- `MP42MkvRemuxer` — stream-copy **rebuild** used when the structure must
|
||||||
|
change: deleted tracks, added subtitle tracks, chapter edits, Save-As, or
|
||||||
|
File ▸ Optimize. Every block is copied bit-for-bit (blocks of removed
|
||||||
|
tracks dropped by unmarked-vint track number), clusters are header-only
|
||||||
|
scanned, SeekHead positions are patched at the end, Cues are regenerated
|
||||||
|
only when the source had them, and `Info/Duration` is recomputed from
|
||||||
|
written block extents.
|
||||||
|
- **Track management**: real tracks can be deleted (pairing TrackEntry ↔ model
|
||||||
|
by object identity, immune to index shifts); `.srt`/`.ssa`/`.ass` subtitle
|
||||||
|
tracks can be **added** (re-parsed from source at save time, written as
|
||||||
|
`S_TEXT/UTF8` with proper `BlockGroup` framing and synthesized clusters
|
||||||
|
when timestamps demand it). Reordering stays blocked on MKV to protect the
|
||||||
|
pairing; destinations must remain mkv/mka/mks.
|
||||||
|
- **Chapters are first-class**: editable rows, `.txt` (mp4chaps) import to
|
||||||
|
bootstrap chapters on a chapter-less file, `.csv` update, single-chapter
|
||||||
|
insertion (timestamped 1 s past the latest start, clamped), bulk "insert
|
||||||
|
every N", deletion of the whole chapter track (removes the `Chapters`
|
||||||
|
element). Chapter changes ride the remuxer (detected via a model snapshot),
|
||||||
|
and chapter **language round-trips** at track level. TagsOnly mode mirrors
|
||||||
|
the file's chapter atoms verbatim — no MP4-path normalization — so an
|
||||||
|
untouched save never shifts or drops atoms.
|
||||||
|
- **AppleScript**: `save as` routes Matroska documents through the proper
|
||||||
|
Matroska save path (the raw MP4 writer would corrupt them); direct file
|
||||||
|
import mirrors the panel's extension dispatch; PGS/MKV naming conventions
|
||||||
|
respected without MP4-only model reshuffling.
|
||||||
|
- **Queue parity**: batched MKVs are retagged **in place** instead of being
|
||||||
|
converted to MP4. The window's whole save branching moved into a shared
|
||||||
|
`MatroskaSaver` (baseline snapshots + tag-writer-vs-remuxer choice) used
|
||||||
|
by both `Document` and `QueueItem`: queue items import tags-only, keep the
|
||||||
|
mkv/mka/mks extension (in place, or stream-copy into a destination folder),
|
||||||
|
and remux only when an edit demands it (found `.srt/.ass/.ssa` additions,
|
||||||
|
renamed chapters, optimize, renamed output). MP4-only queue actions
|
||||||
|
(organize groups, fix fallbacks, color space, atom optimize) no-op on MKV;
|
||||||
|
send-to-queue from a window hands the item the document's model *and*
|
||||||
|
pairing baseline; editing a queued MKV opens a real MKV document.
|
||||||
|
- **Spec traps handled** (all verified against mkvtoolnix-written files):
|
||||||
|
correct `Language`/`LanguageIETF`/`TrackFlagEnabled` element ids,
|
||||||
|
`ChapterAtom = 0xB6`, chapter timecodes in absolute nanoseconds, mandatory
|
||||||
|
`ChapterUID`/`EditionUID` derived deterministically from content, and
|
||||||
|
community-style SimpleTags (`RATING`, `CONTENTRATING`, `MEDIAKIND`, `HD`,
|
||||||
|
`CAST`, `NETWORK`, `EPISODEID`) so Movie-tab fields with no Matroska-spec
|
||||||
|
tag still round-trip.
|
||||||
|
|
||||||
|
## 2. Subtitle pipeline
|
||||||
|
|
||||||
|
*App: `5d6c0cd`, `dd956fa`, `87e0c82`, `401584a` — Framework: `e02f60b`, `5777208`, `837aa1c`, `30dd96f`, `e7c7b80`, `e428558`*
|
||||||
|
|
||||||
|
- **BLU-RAY PGS `.sup` import**: `MP42VobSubImporter` claims `.sup` directly,
|
||||||
|
converting via **sup2vob** — the upstream Swift sources vendored into
|
||||||
|
MP42Foundation (`MP42/Sup2Vob/`) with only the CLI globals and facade
|
||||||
|
adapted, so upstream fixes re-merge cleanly. Result: a real VobSub track
|
||||||
|
(muxable into MP4 as `subp`, or tx3g-convertible), language taken from the
|
||||||
|
filename, track URL kept on the user's `.sup`.
|
||||||
|
- **PGS inside MKV → VobSub**: the import sheet offers a VobSub conversion
|
||||||
|
action for PGS-format tracks. Requires rebuilding the `.sup` stream from
|
||||||
|
mkvmerge's stripped-envelope, zlib-compressed blocks (reconstructing the
|
||||||
|
13-byte `PG` segment framing byte-identically to mkvextract) before the
|
||||||
|
same sup2vob machinery runs.
|
||||||
|
- **Full source resolution**: the conversion always runs sup2vob's `--full`
|
||||||
|
passthrough — frames keep the PGS's own PCS canvas (typically 1920x1080)
|
||||||
|
instead of being downscaled to the 720x480/576 DVD frame the old code
|
||||||
|
forced. Verified end-to-end: framework output is **byte-identical** to
|
||||||
|
`sup2vob --full`, and ffprobe reports `dvd_subtitle 1920x1080` on muxed
|
||||||
|
output from both the `.sup` and the MKV path.
|
||||||
|
- **VobSub frame sizes honored**: `.sub`/`.idx` additions now mux at the
|
||||||
|
frame size declared in the idx rather than a default.
|
||||||
|
- **Filename intelligence** (mkvmerge-style, right-to-left token scan):
|
||||||
|
ISO 639-2/B and B-code language tags (`pt-BR` extended tags survive), and
|
||||||
|
community type tokens (`sdh`, `cc`, `commentary`, `forced`, `lyrics`,
|
||||||
|
deaf/hearing-impaired variants) — any flagged track is named **SDH**, the
|
||||||
|
one recognizable convention players show, which then picks up media
|
||||||
|
characteristics automatically. MKV track names run through the same
|
||||||
|
recognizer on the conversion path (track name, falling back to the MKV's
|
||||||
|
own filename).
|
||||||
|
- **Bug fix**: SSA files without a `[V4+ Styles]` section no longer fail to
|
||||||
|
parse.
|
||||||
|
|
||||||
|
## 3. Metadata
|
||||||
|
|
||||||
|
*App: `f20ad7e`*
|
||||||
|
|
||||||
|
- **Direct metadata lookup from filename IDs**: names like
|
||||||
|
`Movie (2024) {tmdb-1015812}` or embedded IMDb/TVDB IDs are parsed
|
||||||
|
(ParseFilename now handles parenthesized years and brace-wrapped service
|
||||||
|
IDs, IMDb IDs widened to 7–9 digits) and emitted as `id:<kind>:<value>`.
|
||||||
|
The search sheet, the queue metadata action, and the AppleScript
|
||||||
|
fetch-metadata command try the direct TMDb lookup first and fall back to
|
||||||
|
title search when the ID is unknown or unsupported.
|
||||||
|
- **ID lookup now fires on already-tagged files**: `extractSearchTerms`
|
||||||
|
short-circuited to the file's existing name/release-date/media-kind when a
|
||||||
|
movie was already tagged, returning a bare title and **dropping the
|
||||||
|
embedded ID** — so a second search on a tagged (or previously-searched)
|
||||||
|
file ignored its `{tmdb-…}`. That branch now also parses the file name, so
|
||||||
|
the direct lookup works regardless of prior tagging.
|
||||||
|
- **Search-result ranking**: movie title-search results are re-ordered (in the
|
||||||
|
sheet, the queue metadata action, and both AppleScript commands, with
|
||||||
|
identical ranking so scripted indexes stay aligned) so **exact title matches
|
||||||
|
sort to the top** of the fuzzy TMDb list, with a **parsed release year**
|
||||||
|
used to pick the default entry — exact+year first, then exact, then
|
||||||
|
year-only, then the provider's own order (a stable sort, so relevance
|
||||||
|
survives within each band). The year is recovered from the file name in
|
||||||
|
Swift (ParseFilename strips it from the title without reporting it);
|
||||||
|
bracketed years `(2026)` win over bare dot/space years so resolutions like
|
||||||
|
`.1920.1080p` don't win. The chosen default is also highlighted in the
|
||||||
|
results list.
|
||||||
|
|
||||||
|
## 4. Fork infrastructure and distribution
|
||||||
|
|
||||||
|
*App: `0f8d251`, `628ccfe`, `20438f3`, `475737a`, `e96773f` — Framework: `79c251c`, `7ff1ed4`, `a287ea6`*
|
||||||
|
|
||||||
|
- **Gitea migration**: project, README clone URLs, and the `contrib`
|
||||||
|
submodule all moved from GitHub to Gitea (SSH for development, public
|
||||||
|
HTTPS URLs in the README/submodule config).
|
||||||
|
- **Sparkle removed**: the auto-updater integration (framework, updater menu
|
||||||
|
item, feed URL/public key, SPM package reference) is gone — this fork
|
||||||
|
updates itself however its users choose.
|
||||||
|
- **Fork version scheme `<upstream>.mkv<N>`** distinguishes fork builds from
|
||||||
|
upstream without touching the forked-from version: the trailing counter in
|
||||||
|
`MARKETING_VERSION`/`CURRENT_PROJECT_VERSION` (currently `1.9.5mkv2`)
|
||||||
|
increments with each batch of fork changes, and restarts at 1 whenever
|
||||||
|
upstream's base version moves.
|
||||||
|
- **Build output renamed `SublerMKV.app`**: target renamed and `PRODUCT_NAME`
|
||||||
|
set to `SublerMKV`; the interpolated bundle id becomes
|
||||||
|
`org.galad.SublerMKV`, so fork builds are fully independent of an installed
|
||||||
|
upstream `Subler.app` — own preferences (API tokens re-entered once), own
|
||||||
|
queue defaults, and its own LaunchServices registration instead of two
|
||||||
|
same-idded apps competing to open files.
|
||||||
|
- **Own storage folder**: all App Support data moved from
|
||||||
|
`Application Support/Subler/` to `Application Support/SublerMKV/` — the
|
||||||
|
queue (renamed `queue.sbmkvqueue`), presets, downloaded OCR tessdata, and
|
||||||
|
the debug log — so both apps can run without sharing any file.
|
||||||
|
`Queue.saveToDisk` also gained the missing parent-directory creation the
|
||||||
|
old (always-existing) folder had masked; without it the atomic write error
|
||||||
|
is swallowed and the queue silently never persists.
|
||||||
|
- **Spec trap found**: the Swift **module name** feeds every class's
|
||||||
|
ObjC-runtime registration (`Subler.LanguageTransformer`), and XIB binding
|
||||||
|
value-transformers reference that exact name — renaming the product alone
|
||||||
|
made the queue-options nib throw `Cannot find value transformer` mid-load
|
||||||
|
(dead popups, frozen checkboxes). `PRODUCT_MODULE_NAME = Subler` pins the
|
||||||
|
module whatever the product is called; no XIB edits.
|
||||||
|
- **Xcode 27.2 project migration** for both the app and the framework.
|
||||||
|
|
||||||
|
## 5. Command-line tools shipped in the app bundle
|
||||||
|
|
||||||
|
*App: `c08d607`, `5111294`, `56d843c` — Framework: `72e879e`*
|
||||||
|
|
||||||
|
- **`extractsubs`** bundles into `Contents/Resources/`: extracts subtitle
|
||||||
|
tracks from mkv/mp4 files via ffmpeg stream copy, named
|
||||||
|
`<input>.<track>[.<type>].<lang>.<ext>` — exactly the shape Subler's
|
||||||
|
filename recognizer probes, so results drag straight back into the app —
|
||||||
|
and runs `sup2vob --full` on extracted PGS. Defaults to English tracks
|
||||||
|
(`--all` for everything); up-front dependency checks with clear messages;
|
||||||
|
single-invocation extraction with per-track retry; a mkvmerge/mkvextract
|
||||||
|
rescue path for `S_TEXT/WEBVTT` tracks ffmpeg cannot read.
|
||||||
|
- **`sup2vob` slim CLI** (`MP42Foundation/sup2vob/`): only `main.swift` + a
|
||||||
|
Makefile — it compiles the framework's own `MP42/Sup2Vob/` sources, so CLI
|
||||||
|
and app conversion code can never drift, and the CLI doubles as the
|
||||||
|
byte-identity oracle for the framework converter.
|
||||||
|
- **Built into the app**: the Subler build runs that Makefile (incremental)
|
||||||
|
and installs the binary at `Contents/MacOS/sup2vob`, so building Subler
|
||||||
|
refreshes the CLI, and the bundled `extractsubs` finds it as a bundle
|
||||||
|
sibling — the shipped pair needs no install beyond ffmpeg/ffprobe.
|
||||||
|
|
||||||
|
## Appendix — commit index
|
||||||
|
|
||||||
|
### SublerMKV (app), since `0c3d7de`
|
||||||
|
|
||||||
|
| Commit | Subject |
|
||||||
|
|---|---|
|
||||||
|
| `eb386a5` | Open and edit Matroska files in place, including track removal |
|
||||||
|
| `3302367` | Add subtitle tracks to open Matroska documents |
|
||||||
|
| `8520d72` | Edit and add chapters in Matroska documents |
|
||||||
|
| `f457b4e` | Make chapter tracks deletable, insertable, and language-editable |
|
||||||
|
| `06ecb0a` | Route AppleScript chapter imports and make File > Optimize work on MKV |
|
||||||
|
| `401584a` | Mux added VobSub tracks at the frame size declared in the idx |
|
||||||
|
| `f20ad7e` | Search metadata directly from IDs embedded in file names |
|
||||||
|
| `0f8d251` | Point the project at Gitea and document the fork |
|
||||||
|
| `628ccfe` | Use the gitea SSH login in clone URLs |
|
||||||
|
| `20438f3` | Pull the contrib dependency from Gitea too |
|
||||||
|
| `475737a` | Drop the Sparkle updater and stamp the fork version 1.9.5mkv |
|
||||||
|
| `e96773f` | Point the submodule and README at the public HTTPS URLs |
|
||||||
|
| `5d6c0cd` | Add PGS .sup subtitle import and filename flag recognition |
|
||||||
|
| `dd956fa` | Offer VobSub conversion for PGS subtitle tracks |
|
||||||
|
| `87e0c82` | Document the sup2vob full-frame passthrough for PGS conversions |
|
||||||
|
| `c08d607` | Ship the extractsubs subtitle-extraction helper with the app |
|
||||||
|
| `56d843c` | Document the slim sup2vob CLI in the submodule |
|
||||||
|
| `5111294` | Build sup2vob into the app bundle so it ships and stays fresh |
|
||||||
|
|
||||||
|
### MP42Foundation (submodule), same period
|
||||||
|
|
||||||
|
| Commit | Subject |
|
||||||
|
|---|---|
|
||||||
|
| `1040f47` | Add Matroska tagging and track-removal support |
|
||||||
|
| `e428558` | Fix SSA header parsing for files without a [V4+ Styles] section |
|
||||||
|
| `8ba3f25` | Write added subtitle tracks during Matroska remux |
|
||||||
|
| `0cf79ec` | Rebuild Matroska chapters on remux and recompute Info Duration |
|
||||||
|
| `10dcee3` | Round trip the chapter language between model and Matroska |
|
||||||
|
| `e8231de` | Mirror the file's chapter atoms verbatim in tagsOnly mode |
|
||||||
|
| `e7c7b80` | Mux VobSub subpic tracks at the frame size declared by the idx |
|
||||||
|
| `79c251c` | Move the contrib submodule to Gitea |
|
||||||
|
| `a287ea6` | Adopt Xcode 27.2 project migration |
|
||||||
|
| `7ff1ed4` | Serve the contrib submodule URL over HTTPS |
|
||||||
|
| `30dd96f` | Recognize subtitle language and type tokens in filenames |
|
||||||
|
| `e02f60b` | Import BLU-RAY PGS .sup files via vendored sup2vob |
|
||||||
|
| `5777208` | Convert Matroska PGS tracks to VobSub and name flagged tracks SDH |
|
||||||
|
| `837aa1c` | Keep the PGS source resolution through the sup2vob conversion |
|
||||||
|
| `72e879e` | Add a slim sup2vob CLI built from the vendored Sup2Vob sources |
|
||||||
|
|
||||||
|
*(The submodule's pre-fork history was re-hosted on Gitea, so its commits are
|
||||||
|
listed by date range rather than as a range from the base checkout.)*
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
# CLAUDE.md
|
||||||
|
|
||||||
|
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||||
|
|
||||||
|
## Project Overview
|
||||||
|
|
||||||
|
Subler is a macOS AppKit application for muxing and tagging MP4/M4V/M4A files: it demuxes video/audio/subtitle/chapter tracks from mov, mp4, mkv, and raw formats, muxes them into QuickTime-compatible MP4 files (including Apple-compatible tx3g subtitle tracks), and edits metadata with lookups against TMDb, TVDB, and the iTunes Store.
|
||||||
|
|
||||||
|
- App layer (`Classes/`) is pure Swift 5; the app has no storyboards — UI is XIB-based AppKit (`MainMenu.xib` plus per-controller `.xib`/`.strings`).
|
||||||
|
- All container-level demux/mux/encode work lives in the **MP42Foundation** git submodule (Objective-C/Objective-C++), built as a framework.
|
||||||
|
- Single app target (named `SublerMKV`, builds `SublerMKV.app` via `PRODUCT_NAME`; legacy productName "MP4Sub"; bundle id `org.galad.SublerMKV`, so fork builds keep their own prefs/LaunchServices registration apart from an installed upstream `org.galad.Subler`). `PRODUCT_MODULE_NAME = Subler` deliberately **pins the Swift module to the original name**: XIB binding value-transformers reference Swift classes module-qualified (`Subler.LanguageTransformer`), and Swift registers runtime names by module — letting the module follow the product made the QueueOptions nib throw `Cannot find value transformer with name "Subler.LanguageTransformer"` mid-binding-load (queue-settings checkboxes/popups dead, frozen at design-time state), so any product rename must keep this setting fixed), deployment target `$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)` (upstream was 10.13). No external package dependencies: the fork removed the Sparkle auto-update integration (updater menu item, `SPUStandardUpdaterController` in MainMenu.xib, `SUFeedURL`/`SUPublicEDKey` in Info.plist, the SPM package reference in the pbxproj).
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
The MP42Foundation submodule must be initialized or the app will not compile:
|
||||||
|
|
||||||
|
```
|
||||||
|
git submodule update --init --recursive
|
||||||
|
```
|
||||||
|
|
||||||
|
Build with Xcode (Subler scheme) or CLI:
|
||||||
|
|
||||||
|
```
|
||||||
|
xcodebuild -project Subler.xcodeproj -scheme Subler -configuration Debug build
|
||||||
|
```
|
||||||
|
|
||||||
|
No deployment-target override is needed: the projects moved from upstream's 10.13 to `$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)` (recent toolchains refuse 10.13).
|
||||||
|
|
||||||
|
There is **no test target and no CI** — changes are verified by building and running the app manually. Of the `Utilities/` tools, MP4Dump (legacy ObjC debugging) is not part of the app build, but `ParseFilename/` **is** — it's copied into the app bundle and executed at runtime by `MetadataHelper.parseFilename` via `Process`. `extractsubs` is also copied into the bundle (Resources phase → `Contents/Resources/extractsubs`, exec bit preserved by the copy) but **nothing in the app invokes it** — it's a user-facing CLI helper shipped with the app: it extracts subtitle tracks from mkv/mp4 files via ffmpeg stream copy (named `<input>.<track>[.<type>].<lang>.<ext>` — the shape `getFilenameLanguage`/`getFilenameSubtitlesTrackName` probe, so results drag straight back in) and runs `sup2vob --full` on extracted PGS `.sup` files. It needs ffprobe/ffmpeg on PATH; sup2vob comes from PATH **or from the bundle next to the script** (`Contents/MacOS/sup2vob`, built by the app — see the submodule section), so the bundled pair needs no install. mkvtoolnix and python3 are only needed for its `S_TEXT/WEBVTT` rescue path, and it skips extraction with a clear message rather than failing per-track mid-pipeline.
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
Two layers with a strict boundary:
|
||||||
|
|
||||||
|
### 1. App layer (`Classes/`, Swift)
|
||||||
|
|
||||||
|
- **Document flow**: `Document.swift` (NSDocument subclass) owns the opened file; `read(from:)` produces an `MP42File`. `DocumentWindowController` hosts the per-document window (tracks table, property view tabs). Export goes through `Document.save(to:...)` / `SaveOptions` and runs asynchronously; `sendToQueue` hands the document to the queue instead.
|
||||||
|
- **MKV tags-only mode**: `.mkv/.mka/.mks` open directly (`DocumentController.openDocument` in `AppDelegate.swift` passes them through instead of forcing the convert-import sheet). `Document.isMatroska` then drives everything: the model is an in-memory `MP42File` filled from `MP42FileImporter` in **tagsOnly mode** (`initWithURL:tagsOnly:` — mirrors the file's own `TrackFlagEnabled` instead of the MP4 "first-of-type enabled" heuristic, so untouched tracks don't look edited), The save branching lives in **`MatroskaSaver`** (`Classes/MatroskaSaver.swift`, shared by `Document.writeMatroska` and `QueueItem` so a queued MKV saves exactly like the window): plain edits rewrite metadata + per-track fields in place via `MP42MkvTagWriter` (never touching clusters), while **deleted/added tracks, chapter edits, a forced rebuild (optimize/Save-As) or a destination different from the source** trigger the stream-copy rebuild via `MP42MkvRemuxer` (temp file + atomic rename even in place; destination must stay mkv/mka/mks — validated in `MatroskaSaver.save`). `MatroskaSaver.buildModel(from:)` is the shared tags-only model builder (conversion settings for un-muxable codecs to satisfy `addTrack:`, 1-based display trackIds; the caller wires `undo` afterwards so read opens no undo groups). MKV documents' `sendToQueue` skips the save panel and queues an in-place retag item carrying the document's model *and* its `MatroskaSaver` (`attachMatroskaSaver:` — the pairing is object identity and cannot be rebuilt from a bare model); the AppleScript send-to-queue does the same but keeps the script's destination URL (validated Matroska at save time). The remuxer pairs `TrackEntry` elements against the `MatroskaSaver`'s importer-order snapshot (built in `readMatroska`) with keep/drop decided by **object identity**, so the deletion check is immune to model index shifts; after a successful remux the snapshot is re-filtered in the same order **plus the added tracks appended** (matching the order the remuxer writes their TrackEntry elements last in the output). Subtitle tracks can be **added** to MKV docs (`.srt`/`.ssa`/`.ass` only): `DocumentWindowController.selectFile`/`showImportSheet` route MKV docs to `importSubtitleTracksForMatroska` (direct `MP42FileImporter` per file, no track-selection sheet; the accepted-extension list `matroskaSubtitleExtensions` must stay in sync with the remuxer's gate), and the `didSelect`/AppleScript `importFilesDirectly` path skips `organizeAlternateGroups`/`inferMediaCharacteristics` for MKV for the same pairing-protection reason. The AppleScript `save as` command (ScriptCommand.swift) must route Matroska docs through `Document.save(...)` — the raw `mp4.write(to:)` path would mux QuickTime atoms over an MKV document. Reordering must never happen on MKV docs (it would break the pairing): drag stays blocked and `DocumentWindowController.delete(tracks:)` skips `organizeAlternateGroups`/`inferMediaCharacteristics` for MKV. Save-As is enabled for MKV, and so is **File ▸ Optimize** (`saveAndOptimize`): on Matroska documents optimize means `writeMatroska`'s forced structural branch — a full remuxer rebuild of the file from the existing tracks (the container-equivalent of QuickTime atom-ordering), not `MP42File optimize`. Its validation precondition is `fileURL != nil` on MKV, because tags-only models answer `hasFileRepresentation == false` (their tracks are never muxed) and would otherwise keep the menu disabled forever. NSDocument Duplicate needs no MKV gate because **no nib wires `duplicateDocument:`** — that menu item doesn't exist for any container. Track **reorder and MP4-only properties stay gated** (`PropertyView.isReadOnly` disables the tabs; metadata tabs stay editable; adding stays restricted to the subtitle files and chapter txt/csv described here), but real tracks **and the chapter pseudo-track** can be **deleted** (deleting the chapter track empties the model, so the save remuxes and removes the `Chapters` element — same as emptying the Chapters tab), and the four fields Matroska actually stores per track are editable and saved — name, language, enabled, subtitle forced. UI split: `TracksViewController.isReadOnly` gates drag/reorder while `isFieldEditable(_:)` re-enables the name/language/enabled cells on real (non-chapter) rows; `PropertyView.allowsTrackEditing` lets `VideoViewController` re-enable just the subtitle forced popup (Never/All only — the per-sample "Any samples" option has no Matroska equivalent).Chapters are **editable** on MKV docs (`didSelect` exempts `ChapterViewController` from the read-only blanket alongside `MovieViewController`) and chapter-less docs can **gain chapters** via `.txt` import (OGG/mp4chaps format → `addChapters`, which replaces the model's chapter track since `MP42File addTrack:` replaces previous chapter tracks) or update an existing track via `.csv` (`updateChapters`) — routed from `selectFile`'s MKV branch, drag-drop, and the AppleScript `impLine truncated
|
||||||
|
- **Queue engine**: `QueueController` (window UI) → `Queue` (serial `DispatchQueue` worker, persists `[QueueItem]` to disk via `NSKeyedArchiver` at `Application Support/SublerMKV/queue.sbmkvqueue` — the fork's storage folder, shared by presets/tessdata/logs; `saveToDisk` creates the folder, as the swallowed write error would otherwise mean silent non-persistence — holds IOKit sleep assertions while working) → `QueueItem` (imports a source file into an `MP42File`, then muxes to the destination) → `QueueAction` objects (`QueueActionProtocol`, `.pre`/`.post` types) apply individual transformations (set metadata, force subtitles, language fixes, etc.) to a queue item. Watch for `Queue.Working/Completed/Failed/Cancelled` notifications driving UI updates. **Matroska items match the window's save instead of converting**: `QueueItem.isMatroska` (derived from the source file's extension, never archived) makes `prepare()` do the tags-only import (`MatroskaSaver.buildModel`) and `process()` write back through the same `MatroskaSaver` — `QueueController.destination(for:)` keeps the mkv/mka/mks extension for it (the file itself, or the same name inside a queue destination folder → stream-copy remux there, the Save-As equivalent). On MKV items the queue's Optimize forces the remux rebuild (`QueueOptimizeAction` itself no-ops — `MP4Optimize` has nothing to reorder on a tags-only model), `QueueOrganizeGroupsAction`/`QueueFixFallbacksAction`/`QueueColorSpaceAction` no-op (MP4-only concepts; organize churn would corrupt the tag writer's positional TrackEntry diff), while `QueueSubtitlesAction`'s adjacent `.srt/.ass/.ssa` finds ride the remuxer as added tracks (it sets conversion settings to satisfy `addTrack:` like the window's MKV import path). Queue restores never carry the tags-only model (identity pairing can't be archived; the item re-imports and pre-actions re-run), and decoding normalizes legacy items' retired convert-to-mp4 destinations back to the source; editing an MKV item opens the source file as a real MKV document rather than wrapping the item's model.
|
||||||
|
- **Import**: `FileImportController` wraps `MP42FileImporter` to let users pick which source tracks to import; `isTrackMuxable` / `trackNeedConversion` (in `Utilities.swift`) gate which tracks pass through vs. get converted. BLU-RAY PGS `.sup` files flow through this same machinery automatically (the open panel and drag-drop key off `MP42FileImporter.supportedFileFormats()/supportedContentTypes()`): they're produced by `MP42VobSubImporter`, which converts them to VobSub first — see the submodule section. They stay out of Matroska documents: `matroskaSubtitleExtensions` deliberately does not list `sup` (the remuxer only writes S_TEXT/UTF8 additions). All three subtitle importers (`MP42SrtImporter`/`MP42SSAImporter`/`MP42VobSubImporter`) take language from the filename via `getFilenameLanguage`, which scans separator-split tokens **right-to-left** (mkvmerge-style: 3-char tokens try ISO 639-2/T then the library's B codes `fre`/`ger`/`dut`/`chi`; the dash is deliberately not a separator, so `pt-BR` survives as one extended tag instead of its region half being misread as ISO 639-1 `br`=Breton); `und` when nothing decodes lets SRT/SSA fall back to `guessStringLanguage` and the sup path keep the converter's idx default. Community type tokens in the name (`sdh`/`hearing_impaired`/`impaired`/`deaf`, `cc`/`closed caption`, `commentary`/`commentaries`, `forced`, `lyrics`/`lyric`) make `getFilenameSubtitlesTrackName` name **any** flagged track `SDH` — one recognizable name serves users better than one name per type, and MP4 has no flag anyway, the name is the convention players show (the `SDH` name then picks up `transcribes-spoken-dialog`/`describes-music-and-sound` through `MP42File organizeMediaCharacteristicsForMediaType:`; the old per-type name→tag choreography like `forced-only` no longer fires from filenames — deliberate). The language deliberately stays out of the name since it rides its own element. MKV container tracks run through the same recognizer on the **conversion path** (`getSubtitleTypeTokenFromString` applied to the `TrackEntry Name` in `MP42MkvImporter`; a track without a TrackName inherits the token from the MKV's own filename — the decision keys on the TrackName element's presence, never the model name, because every track starts life with a default localized "<type> Track" name); tagsOnly mode is exempt — that model is the tag writer's diff baseline. MKV-added subtitle tracks carry the name via the remuxer's `Name` element.
|
||||||
|
- **Metadata**: `Classes/MetadataImporters/` holds a `MetadataImporter` protocol with concrete importers (TheMovieDB, TheTVDB, iTunesStore, AppleTV, SquaredTVArt, chapter DBs). Note: the chapter-DB search (`DocumentWindowController.searchChapters`, which stays in the always-valid branch of `validateUserInterfaceItem`) is currently **orphaned** — no menu item, XIB connection or code path invokes it. Search results (`MetadataResult`/`MetadataResultMap`) are applied onto `MP42Metadata` via `MetadataSearchController`. API credentials are **compiled-in constants** in the service classes (TMDb `TheMovieDBService.key`, TVDB `TheTVDBService.apiKey`, SquaredTVArt's URL key), so they need no user setup and don't live in prefs; only the short-lived TVDB bearer-token session is cached in `UserDefaults` (`SBTheTVBDv4Token`, ~4 h validity) and re-fetched automatically on expiry. (`Token.swift` is unrelated — it's the filename-template tokenizer.)
|
||||||
|
- **Presets**: `Preset` / `QueuePreset` / `MetadataPreset` + `PresetManager` — user-defined rule sets that auto-apply actions and metadata to queue items.
|
||||||
|
- **Preferences**: `Prefs.swift` is the single source of truth for settings — nested enums of `@Stored` / `@StoredEnum` property-wrapped `UserDefaults` keys (defaults are auto-registered at startup). Add new settings here, not ad-hoc `UserDefaults` calls.
|
||||||
|
- **AppleScript**: `Subler.sdef` defines the scripting dictionary; `ScriptCommand.swift` / `QueueScriptCommand.swift` implement the commands (e.g., "send to queue").
|
||||||
|
- **Logging**: `Logger.shared` is the app-wide log sink; `ActivityWindowController` renders the log UI.
|
||||||
|
|
||||||
|
### 2. MP42Foundation (git submodule, own `MP42Foundation.xcodeproj`)
|
||||||
|
|
||||||
|
Referenced by the main project; `MP42Foundation.framework` is linked and copied into the app bundle. Imported throughout the app as `import MP42Foundation`. Key types: `MP42File` (in-memory MP4 model + muxing/writing), `MP42FileImporter` (demuxing mov/mp4/mkv/subtitle sources, FFmpeg-based), track classes (`MP42VideoTrack`, `MP42AudioTrack`, `MP42SubtitleTrack`, `MP42ChapterTrack`), `MP42Metadata` / `MP42MetadataItem`, `MP42AudioMixdown` / `MP42AudioConversionSettings`, `MP42Languages`.
|
||||||
|
|
||||||
|
The app never parses MP4/atom data directly — codec, container, and subtitle-conversion work belongs in the submodule, not in `Classes/`. `Classes/MP42FileAdditions.swift` extends framework types with app-level conveniences.
|
||||||
|
|
||||||
|
PGS `.sup` subtitle import: `MP42VobSubImporter` claims both `idx` and `sup`. A `.sup` is converted up-front to a private temp `.idx/.sub` pair via `MP42SupConverter` (the `@objc` façade over the sup2vob Swift sources vendored in `MP42/Sup2Vob/` from https://git.technomancer.com/Scott-Files/sup2vob — upstream logic is kept identical so upstream fixes re-merge cleanly; upstream's CLI-only globals and `main.swift` are the framework's only adaptations), then the existing VobSub machinery handles everything: the track comes out as `kMP42SubtitleCodecType_VobSub` (muxable straight into MP4 as `subp` via `MP4AddSubpicTrack`, or tx3g-convertible via `MP42BitmapSubConverter`), the frame size rides the idx `size:` line into `track.width/height`, language comes from the source filename (`getFilenameLanguage`, since PGS carries none — the generated idx `id:` is just "en"), and `track.URL` stays the user's `.sup`. The façade always runs upstream's `--full` mode (`fullFramePassthrough = true`, set in the adaptation layer `MP42SupConverter.swift`): frames keep the geometry the PGS itself defines — the idx size line is the **PCS canvas** (e.g. 1920x1080) and nothing is downscaled to the 720x480/576 DVD frame, which now only survives as fallback for a stream with no usable canvas (the framework's output is byte-identical to `sup2vob --full`). The temp pair is deleted in the importer's `dealloc` — safe because tracks hold the importer strongly through export. The ObjC→Swift hop uses the existing `MP42-Shared-Swift.h` shim (generated header), new Swift files must join both targets' Sources phases like `SampleDescription.swift`. The **same vendored sources** also build the CLI: `MP42Foundation/sup2vob/` holds only upstream's `main.swift` (adapted once: the two CLI globals `debugFrames`/`fullFramePassthrough` belong to the vendored `Convert.swift`, so main.swift drops its re-declaration) plus a `Makefile` compiling against `../MP42/Sup2Vob/` — one upstream merge updates app and CLI together, nothing can drift, and the CLI's `--full` output doubles as the byte-identical oracle for the framework converter. The Subler app build **invokes this same Makefile** (the "Build sup2vob CLI" run-script phase, `make -C MP42Foundation/sup2vob` — incremental, a no-op when unchanged) and installs the product into `Subler.app/Contents/MacOS/sup2vob`, so building Subler refreshes the CLI; a terminal `sup2vob` can just be a symlink to that bundle binary. The phase is why the Subler target sets `ENABLE_USER_SCRIPT_SANDBOXING = NO` (build-script file access within the source tree only — unrelated to the app's runtime security); the CLI itself also stays buildable standalone (`make && sudo make install`).
|
||||||
|
|
||||||
|
PGS-from-MKV → VobSub: a PGS track inside an MKV imports as a **real subp track**, not just OCR'd tx3g text. `FileImportController`'s subtitle action sheet gains a `VobSub` entry (tag 2, default follows `Prefs.subtitleConvertBitmap` like VobSub sources) for PGS-format tracks; selecting it sets `MP42ConversionSettings.subtitlesVobSubConversion`, and the muxer's bitmap-converter branch recognizes PGS-source + VobSub-target and uses `MP42PgsToVobSubConverter` instead of `MP42BitmapSubConverter`. That converter runs the whole sup2vob conversion synchronously in `initWithTrack:error:` (sup2vob derives one global palette/geometry for the track — the PGS canvas size — and the muxer needs `magicCookie` + `frameWidth/Height` before creating the subpic track); the live muxing stream is discarded and `copyEncodedSample` replays prepass-collected samples, ending on exactly one EOF-flagged buffer. **Matroska traps found empirically here:** mkvmerge stores each PGS segment with its 13-byte "PG" envelope removed (blocks are `type` + 2-byte-be `len` + payload repeated, blank frames are real blank presentations, everything zlib-compressed) — a plain concatenation of demuxed blocks is NOT a `.sup`; phase 1 must walk each block's stripped segments and rebuild `PG + pts:4(90kHz from the block's ns timestamp ×9/100000) + 4 zero bytes + type + len` (mkvextract reconstructs exactly this — the rebuilt stream is byte-identical to it; blocks that already carry envelopes pass through verbatim for other muxers). The rebuilt temp `.sup` is fed to a second `MP42VobSubImporter` (the same machinery as `.sup` drag-import) whose demux supplies the subpic samples/palette. The converter header isn't exported (matches `MP42BitmapSubConverter`'s non-Public Headers-phase convention), and it can't be exercised from outside the framework via `copyNextSample`/`MP42FileImporter+Private` — those are `objc_direct`/internal, so harnesses must stay in public API (see the `@selector`-on-direct-method constraint noted in the converter source).
|
||||||
|
|
||||||
|
Matroska tagging in the submodule: `MP42Ebml` provides EBML vint/ID primitives and a Segment top-level scanner (element extents + Void slack); `MP42MatroskaTagMapping` holds the read/write tag maps shared with `MP42MkvImporter` (reader and writer can't drift — a metadata key with no SimpleTag name in the map is **silently dropped** on save, so any new editable metadata key needs a map entry); `MP42MkvTagWriter.writeMetadata:tracks:` rewrites the `Tags` element, cover-art `AttachedFile`, and per-track `TrackEntry` fields (name/language/enabled/forced) in place (mkvpropedit-style: reuse the old extent + Void padding when the payload fits, otherwise rebuild the file tail with recomputed SeekHead/Cues positions through a temp file + atomic replace; size+mtime staleness guard refuses writes on files changed since open; foreign tag groups, unknown TrackEntry children, and non-cover attachments are preserved verbatim; each TrackEntry is diffed against the model's **effective** values so an untouched save is byte-for-byte a no-op). `MP42MkvTagWriter+Internal.h` (framework-internal, not in the umbrella) shares its kid/file model types and payload builders with `MP42MkvRemuxer`, the stream-copy track-removal/subtitle-addition engine: it rebuilds the whole file, copying every block verbatim except blocks whose unmarked-vint track number (`MP42Ebml.blockTrackNumberAt:`, ≤255) belongs to a removed track — kept tracks keep their original TrackNumbers, so **gaps after a removal are intentional** and no block header is ever rewritten; clusters are scanned header-only (BlockGroup track decided from a ≤64KB peek at its `Block` child), emptied clusters skipped, the trailing unknown-size cluster materialized; SeekHead is written with 8-wide placeholder positions pwrite-patched at the end, and Cues are regenerated at EOF (per-track `CueTrackPositions` incl. `CueRelativePosition`) only when the source had them; `Info` copies verbatim except that an existing `Duration` is recomputed: the pass tracks the greatest written block start+1ms (`_writtenMaxBlockEnd`) and pwrite-patches an 8-byte double slot at the Info write site (never +BlockDuration — added blocks must measure exactly like source blocks or remux idempotence breaks); files without a source Duration keep having none; values are TimecodeScale units. Dangling `DefaultTrackUID`/`ChapterTrackUID` refs are preserved. Chapters: the source `Chapters` element copies verbatim unless `replacementChapters` is set — non-nil rebuilds `EditionEntry{ChapterAtom{...}}` from the model track (sorted ascending, ties clamped to previous+1ms, "Chapter N" fallback titles), and a track with `chapterCount == 0` removes the element and its SeekHead entry. Chapter writing lives in the remuxer only because `Chapters` sits before the Clusters — any size change shifts every following byte, which the tag writer's tail-only in-place machinery can't absorb. It refuses multiple Segments, stray unknown-size elements, count mismatches between TrackEntry and the passed-in `sourceTracks`, and zero-remaining-track remuxes (the drop-all guard fires before additions, so drop-all-plus-add stays refused). Added tracks = `currentTracks` members absent from `sourceTracks` (identity); each must be an `MP42SubtitleTrack` whose `URL.pathExtension` is srt/ssa/ass (kept in sync with `DocumentWindowController.matroskaSubtitleExtensions`) — the model never holds subtitle text, so lines are **re-parsed from `track.URL` at save time** (SRT via `LoadSRTFromURL` + serializer drain; SSA/ASS via `MP42SSAParser`, styling stripped) and written as `S_TEXT/UTF8`. Each added track gets an appended `TrackEntry` (TrackNumber = max of all entries + 1 ≤ 0x3FFF, CodecID `S_TEXT/UTF8`, ISO `0x22B59C` + IETF `0x22B59D` language). Blocks are `BlockGroup{Block(unmarked-vint TrackNumber + int16 BE relative TC + UTF-8), BlockDuration}` — the `BlockGroup` wrapper is **mandatory**: a bare `Block` as a direct Cluster child is silently ignored by libebml readers even though ffmpeg tolerates it. Each line rides in the last existing Cluster whose Timecode ≤ its start time (negative relTCs are legal); lines whose relTC would exceed ±32767 go into **synthesized Clusters** emitted right after that cluster, original clusters are never rewritten or split.
|
||||||
|
|
||||||
|
Movie-tab fields that have no Matroska-spec tag (Rating, ContentRating, MediaKind, HDVideo, Cast, TVNetwork, TVEpisodeID) round-trip through community-style SimpleTag names `RATING`/`CONTENTRATING`/`MEDIAKIND`/`HD`/`CAST`/`NETWORK`/`EPISODEID`. Array-typed model values (Cast, Director, Producer, Screenwriters) are written joined with `", "` and re-split by the importer. The importer only synthesizes a TVEpisodeID from season/episode on the **conversion** path — in tagsOnly mode a synthesized value would leak into the file as a tag the user never set.
|
||||||
|
|
||||||
|
The Matroska track-field element ids are a trap: the ids that actually work in the wild (libebml/mkvtoolnix/ffmpeg and every reader) are `0x22B59C` = ISO-639-2/B `Language`, `0x22B59D` = BCP-47 `LanguageIETF`, `0xB9` = `TrackFlagEnabled`. The EBML spec's later `0x447A` carries the same ISO value but mkvtoolnix never writes it — `MatroskaParser.c` reads it defensively, the writer normalizes it to `0x22B59C`. Modern mkvtoolnix files may carry **only** `0x22B59D` (mkvmerge derives the ISO code from the IETF tag), so `Language` can be absent; the importer/writer prefer `LanguageIETF` when present and fall back to the ISO element. Match TrackEntry↔model by file order (chapter pseudo-track filtered); a count mismatch refuses the write.
|
||||||
|
|
||||||
|
Chapter elements are their own trap set (all verified empirically against mkvmerge-written files): `ChapterAtom` is `0xB6` — **not** `0xB0`, which is PixelWidth in TrackEntry scope (`MatroskaParser.c` has always parsed 0xB6 correctly; don't "fix" it). Chapter timecodes are absolute **nanoseconds**, not TimecodeScale units like nearly every other Matroska time — libmatroska writes and mkvtoolnix/ffmpeg both read them as ns regardless of segment scale, so the importer's plain `/1e6` to ms and the remuxer's plain `×1e6` back are right. `ChapterUID` (`0x73C4`) is mandatory in practice: ffmpeg **silently skips** atoms without it (mkvtoolnix still lists them, which makes the loss easy to miss); `EditionUID` likewise. The writer derives both deterministically from the chapter content so re-saving unchanged input reproduces the file. The importer's chapter normalization (force first start to 0, drop non-first zero-start atoms) is an **MP4 conversion-path** quirk only — **tagsOnly mode mirrors the file's atoms verbatim**, offset first starts and duplicate zero starts included (mkvmerge writes both shapes). That asymmetry matters because the tagsOnly model is the baseline a Chapters rewrite rebuilds from: dropping or shifting atoms at read time would silently corrupt them on the first edit, so instead the remuxer's strictly-ascending clamp shifts tied starts by +1 ms at write time and nothing is lost. Chapter language round-trips at **track level**: the importer adopts the first `ChapterDisplay/ChapterLanguage` (0x437C) it finds as the model track's `language`, and the remuxer stamps that track language into every atom — omitted when nil/absent or when it maps to ISO `eng` (the spec default; keeps rewrites byte-identical to language-less files). `MP42Languages ISO_639_2CodeForExtendedTag:` answers unknown tags with `"und"`, so a garbage language explicitly writes `und` rather than silently defaulting — extended tags are locale-identifier style (`"en"`, `"it"`), not English names. The chapter-row language popup stays enabled on MKV (`TracksViewController.isLanguageEditable`) because the value rides the remuxer's chapter rebuild, not the tag writer (no TrackEntry), and the saver's chapter-snapshot rows carry the language so a language-only edit flips `chaptersChanged`. Note: `ffprobe -show_chapters` does NOT surface ChapterLanguage in its chapter tags — assert it with `mkvinfo` ("Chapter language: …").
|
||||||
|
|
||||||
|
## Cross-cutting concerns
|
||||||
|
|
||||||
|
- **Sandbox vs non-sandbox builds**: `#if SB_SANDBOX` guards App Store code paths (security-scoped bookmarks via `MP42SecurityAccessToken`); the default build is the non-sandboxed variant (`Subler.entitlements` exist for the sandboxed config).
|
||||||
|
- **Localization**: 183 `.strings` files live in per-locale `.lproj` directories scattered next to the code/XIBs they localize (repo root, `Classes/`, `Classes/PropertyView/`), not one central file. Locales: Base (English), it, fr, es-419, pt-BR, zh-CN, zh-Hans. When adding a UI string, find the sibling `.strings` used by that XIB/view.
|
||||||
|
- **Static data**: `Resources/*.json` — `Alpha2.json` (ISO language codes, used by `LanguageTransformer`), `iTunesStores.json`, `Storefronts.json`, `Ratings.json`.
|
||||||
+25
-26
@@ -40,7 +40,10 @@ final class DocumentController : NSDocumentController {
|
|||||||
override func openDocument(withContentsOf url: URL, display displayDocument: Bool, completionHandler: @escaping (NSDocument?, Bool, Error?) -> Void) {
|
override func openDocument(withContentsOf url: URL, display displayDocument: Bool, completionHandler: @escaping (NSDocument?, Bool, Error?) -> Void) {
|
||||||
let ext = url.pathExtension.lowercased()
|
let ext = url.pathExtension.lowercased()
|
||||||
|
|
||||||
if ["mkv", "mka", "mks", "mov", "264", "h264"].contains(ext) {
|
// Matroska files open directly as tags-only documents (see
|
||||||
|
// Document.read); the remaining formats below can only be converted
|
||||||
|
// to MP4, so offer the import sheet on a fresh untitled document.
|
||||||
|
if ["mov", "264", "h264"].contains(ext) {
|
||||||
do {
|
do {
|
||||||
let doc = try self.openUntitledDocumentAndDisplay(displayDocument)
|
let doc = try self.openUntitledDocumentAndDisplay(displayDocument)
|
||||||
completionHandler(doc, false, nil)
|
completionHandler(doc, false, nil)
|
||||||
@@ -62,38 +65,15 @@ final class DocumentController : NSDocumentController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NSApplicationMain
|
@NSApplicationMain
|
||||||
final class AppDelegate: NSObject, NSApplicationDelegate {
|
final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuItemValidation {
|
||||||
|
|
||||||
@IBOutlet weak var sendToExternalApp: NSMenuItem!
|
@IBOutlet weak var sendToExternalApp: NSMenuItem!
|
||||||
|
|
||||||
private static func appSupportURL() -> URL {
|
|
||||||
let fileManager = FileManager.default
|
|
||||||
if let url = fileManager.urls(for: .applicationSupportDirectory, in: .userDomainMask)
|
|
||||||
.first?.appendingPathComponent("Subler") {
|
|
||||||
|
|
||||||
do {
|
|
||||||
if fileManager.fileExists(atPath: url.path) == false {
|
|
||||||
try fileManager.createDirectory(at: url, withIntermediateDirectories: true, attributes: [:])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch _ {
|
|
||||||
fatalError("Couldn't create the app support directory")
|
|
||||||
}
|
|
||||||
|
|
||||||
return url
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
fatalError("Couldn't find the app support directory")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@MainActor private lazy var prefsController: PrefsWindowController = {
|
@MainActor private lazy var prefsController: PrefsWindowController = {
|
||||||
return PrefsWindowController()
|
return PrefsWindowController()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
private lazy var logger: Logger = {
|
private let logger = Logger.shared
|
||||||
return Logger(fileURL: AppDelegate.appSupportURL().appendingPathComponent("debugLog.txt"))
|
|
||||||
}()
|
|
||||||
|
|
||||||
@MainActor private lazy var activityWindowController: ActivityWindowController = {
|
@MainActor private lazy var activityWindowController: ActivityWindowController = {
|
||||||
return ActivityWindowController(logger: logger)
|
return ActivityWindowController(logger: logger)
|
||||||
@@ -236,6 +216,25 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@IBAction func toggleStartStop(_ sender: Any?) {
|
||||||
|
QueueController.shared.toggleStartStop(sender)
|
||||||
|
}
|
||||||
|
|
||||||
|
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
||||||
|
let action = menuItem.action
|
||||||
|
|
||||||
|
if action == #selector(toggleStartStop(_:)) {
|
||||||
|
let state = QueueController.shared.status
|
||||||
|
if state == .working {
|
||||||
|
menuItem.title = NSLocalizedString("Stop Queue", comment: "Main Menu -> Stop Queue")
|
||||||
|
} else {
|
||||||
|
menuItem.title = NSLocalizedString("Start Queue", comment: "Main Menu -> Start Queue")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: actions
|
// MARK: actions
|
||||||
|
|
||||||
@IBAction func openInQueue(_ sender: Any) {
|
@IBAction func openInQueue(_ sender: Any) {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
import Quartz
|
|
||||||
import MP42Foundation
|
import MP42Foundation
|
||||||
|
|
||||||
private protocol ArtworkImageObjectDelegate: AnyObject {
|
private protocol ArtworkImageObjectDelegate: AnyObject {
|
||||||
@@ -187,7 +186,7 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
|
|||||||
view.wantsLayer = true
|
view.wantsLayer = true
|
||||||
|
|
||||||
imageBrowser.register(ArtworkSelectorViewItem.self, forItemWithIdentifier: ArtworkSelectorController.itemView)
|
imageBrowser.register(ArtworkSelectorViewItem.self, forItemWithIdentifier: ArtworkSelectorController.itemView)
|
||||||
loadMoreArtworks(count: 8)
|
loadMoreArtworks(count: 11)
|
||||||
|
|
||||||
let type = metadata.mediaKind.description
|
let type = metadata.mediaKind.description
|
||||||
|
|
||||||
@@ -205,9 +204,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 +215,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
|
||||||
|
|
||||||
@@ -290,7 +294,8 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func selectedArtworks() -> [ArtworkImageObject] {
|
private func selectedArtworks() -> [ArtworkImageObject] {
|
||||||
return imageBrowser.selectionIndexPaths.map { artworks[$0.item] }
|
let indexes = imageBrowser.selectionIndexPaths.map { $0.item } .sorted()
|
||||||
|
return indexes.map { artworks[$0] }
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK - UI state
|
// MARK - UI state
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ import AVFoundation
|
|||||||
|
|
||||||
final class ArtworkSelectorViewItemLabel : NSTextField {
|
final class ArtworkSelectorViewItemLabel : NSTextField {
|
||||||
|
|
||||||
@IBInspectable var highlightColor: NSColor = .alternateSelectedControlColor
|
|
||||||
|
@IBInspectable var highlightColor: NSColor = .alternateSelectedControlColor //.selectedContentBackgroundColor
|
||||||
@IBInspectable var highlightTextColor: NSColor = .alternateSelectedControlTextColor
|
@IBInspectable var highlightTextColor: NSColor = .alternateSelectedControlTextColor
|
||||||
@IBInspectable var cornerRadius: CGFloat = 3
|
@IBInspectable var cornerRadius: CGFloat = 3
|
||||||
|
|
||||||
@@ -162,7 +163,11 @@ final class ArtworkSelectorViewItemView: NSView {
|
|||||||
|
|
||||||
backgroundLayer.anchorPoint = CGPoint.zero
|
backgroundLayer.anchorPoint = CGPoint.zero
|
||||||
backgroundLayer.position = CGPoint(x: 0, y: paddingBottom)
|
backgroundLayer.position = CGPoint(x: 0, y: paddingBottom)
|
||||||
|
if #available(macOS 10.14, *) {
|
||||||
|
backgroundLayer.backgroundColor = NSColor.unemphasizedSelectedContentBackgroundColor.cgColor
|
||||||
|
} else {
|
||||||
backgroundLayer.backgroundColor = NSColor.controlHighlightColor.cgColor
|
backgroundLayer.backgroundColor = NSColor.controlHighlightColor.cgColor
|
||||||
|
}
|
||||||
backgroundLayer.cornerRadius = 8
|
backgroundLayer.cornerRadius = 8
|
||||||
backgroundLayer.isHidden = true
|
backgroundLayer.isHidden = true
|
||||||
backgroundLayer.isOpaque = true
|
backgroundLayer.isOpaque = true
|
||||||
@@ -171,7 +176,11 @@ final class ArtworkSelectorViewItemView: NSView {
|
|||||||
emptyLayer.position = CGPoint(x: padding, y: padding + paddingBottom)
|
emptyLayer.position = CGPoint(x: padding, y: padding + paddingBottom)
|
||||||
emptyLayer.lineWidth = 3.0
|
emptyLayer.lineWidth = 3.0
|
||||||
emptyLayer.lineDashPattern = [12,5]
|
emptyLayer.lineDashPattern = [12,5]
|
||||||
|
if #available(macOS 10.14, *) {
|
||||||
|
emptyLayer.strokeColor = NSColor.unemphasizedSelectedContentBackgroundColor.cgColor
|
||||||
|
} else {
|
||||||
emptyLayer.strokeColor = NSColor.secondarySelectedControlColor.cgColor
|
emptyLayer.strokeColor = NSColor.secondarySelectedControlColor.cgColor
|
||||||
|
}
|
||||||
emptyLayer.fillColor = NSColor.windowBackgroundColor.cgColor
|
emptyLayer.fillColor = NSColor.windowBackgroundColor.cgColor
|
||||||
emptyLayer.isOpaque = true
|
emptyLayer.isOpaque = true
|
||||||
|
|
||||||
@@ -197,12 +206,21 @@ final class ArtworkSelectorViewItemView: NSView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func updateBackgroundColor() {
|
private func updateBackgroundColor() {
|
||||||
if #available(OSX 10.14, *) {
|
if #available(macOS 11, *) {
|
||||||
|
effectiveAppearance.performAsCurrentDrawingAppearance {
|
||||||
|
imageLayer.shadowColor = NSColor.labelColor.cgColor
|
||||||
|
backgroundLayer.backgroundColor = NSColor.unemphasizedSelectedContentBackgroundColor.cgColor
|
||||||
|
emptyLayer.strokeColor = NSColor.unemphasizedSelectedContentBackgroundColor.cgColor
|
||||||
|
emptyLayer.fillColor = NSColor.windowBackgroundColor.cgColor
|
||||||
|
}
|
||||||
|
} else {
|
||||||
let saved = NSAppearance.current
|
let saved = NSAppearance.current
|
||||||
NSAppearance.current = effectiveAppearance
|
NSAppearance.current = effectiveAppearance
|
||||||
|
|
||||||
imageLayer.shadowColor = NSColor.labelColor.cgColor
|
imageLayer.shadowColor = NSColor.labelColor.cgColor
|
||||||
|
if #available(macOS 10.14, *) {
|
||||||
backgroundLayer.backgroundColor = NSColor.unemphasizedSelectedContentBackgroundColor.cgColor
|
backgroundLayer.backgroundColor = NSColor.unemphasizedSelectedContentBackgroundColor.cgColor
|
||||||
|
}
|
||||||
emptyLayer.strokeColor = NSColor.secondarySelectedControlColor.cgColor
|
emptyLayer.strokeColor = NSColor.secondarySelectedControlColor.cgColor
|
||||||
emptyLayer.fillColor = NSColor.windowBackgroundColor.cgColor
|
emptyLayer.fillColor = NSColor.windowBackgroundColor.cgColor
|
||||||
|
|
||||||
@@ -276,6 +294,9 @@ final class ArtworkSelectorViewItem: NSCollectionViewItem {
|
|||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
textField?.layer?.isOpaque = true
|
textField?.layer?.isOpaque = true
|
||||||
|
let recognizer = NSClickGestureRecognizer(target: self, action: #selector(handleGesture))
|
||||||
|
recognizer.numberOfClicksRequired = 2
|
||||||
|
self.view.addGestureRecognizer(recognizer)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func updateLabels() {
|
private func updateLabels() {
|
||||||
@@ -337,11 +358,9 @@ final class ArtworkSelectorViewItem: NSCollectionViewItem {
|
|||||||
|
|
||||||
// MARK: Actions
|
// MARK: Actions
|
||||||
|
|
||||||
override func mouseUp(with event: NSEvent) {
|
@objc func handleGesture() {
|
||||||
if event.clickCount > 1, let action = doubleAction {
|
if let action = doubleAction {
|
||||||
target?.performSelector(onMainThread: action, with: nil, waitUntilDone: true)
|
target?.performSelector(onMainThread: action, with: nil, waitUntilDone: true)
|
||||||
} else {
|
|
||||||
super.mouseUp(with: event)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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="25098" 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="25098"/>
|
||||||
<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"/>
|
||||||
@@ -40,7 +40,6 @@
|
|||||||
<constraint firstItem="fGU-Kh-WjD" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="-2" id="0Wf-6t-6Lg"/>
|
<constraint firstItem="fGU-Kh-WjD" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="-2" id="0Wf-6t-6Lg"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="Wkh-6c-0tU" secondAttribute="trailing" constant="-2" id="9df-FA-2lX"/>
|
<constraint firstAttribute="trailing" secondItem="Wkh-6c-0tU" secondAttribute="trailing" constant="-2" id="9df-FA-2lX"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="Wkh-6c-0tU" secondAttribute="bottom" constant="17" id="EOh-x3-ntT"/>
|
<constraint firstAttribute="bottom" secondItem="Wkh-6c-0tU" secondAttribute="bottom" constant="17" id="EOh-x3-ntT"/>
|
||||||
<constraint firstItem="Wkh-6c-0tU" firstAttribute="top" relation="greaterThanOrEqual" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" id="HaR-VX-NRg"/>
|
|
||||||
<constraint firstAttribute="bottom" secondItem="fGU-Kh-WjD" secondAttribute="bottom" constant="4" id="Xx6-ak-lcw"/>
|
<constraint firstAttribute="bottom" secondItem="fGU-Kh-WjD" secondAttribute="bottom" constant="4" id="Xx6-ak-lcw"/>
|
||||||
<constraint firstItem="Wkh-6c-0tU" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="-2" id="cPi-y8-nFz"/>
|
<constraint firstItem="Wkh-6c-0tU" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="-2" id="cPi-y8-nFz"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="fGU-Kh-WjD" secondAttribute="trailing" constant="-2" id="fLm-DU-mGT"/>
|
<constraint firstAttribute="trailing" secondItem="fGU-Kh-WjD" secondAttribute="trailing" constant="-2" id="fLm-DU-mGT"/>
|
||||||
|
|||||||
@@ -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="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
<customView id="Hz6-mo-xeY">
|
<customView id="Hz6-mo-xeY">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="480" height="272"/>
|
<rect key="frame" x="0.0" y="0.0" width="480" height="272"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<point key="canvasLocation" x="261" y="18"/>
|
||||||
</customView>
|
</customView>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
<?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="25098" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="25098"/>
|
||||||
<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>
|
||||||
@@ -13,11 +12,11 @@
|
|||||||
</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" fullSizeContentView="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="200" y="500" width="520" height="510"/>
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="875"/>
|
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1049"/>
|
||||||
<value key="minSize" type="size" width="520" height="510"/>
|
<value key="minSize" type="size" width="520" height="510"/>
|
||||||
<view key="contentView" id="rip-YL-WpY">
|
<view key="contentView" id="rip-YL-WpY">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="520" height="510"/>
|
<rect key="frame" x="0.0" y="0.0" width="520" height="510"/>
|
||||||
|
|||||||
@@ -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="25098" 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="25098"/>
|
||||||
<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,23 +19,23 @@
|
|||||||
<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 id="Hz6-mo-xeY">
|
<customView id="Hz6-mo-xeY">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="641" height="497"/>
|
<rect key="frame" x="0.0" y="0.0" width="642" height="518"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1XK-zr-YdW">
|
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1XK-zr-YdW">
|
||||||
<rect key="frame" x="166" y="142" width="455" height="311"/>
|
<rect key="frame" x="166" y="167" width="456" height="307"/>
|
||||||
<clipView key="contentView" id="mho-zw-2Ud">
|
<clipView key="contentView" id="mho-zw-2Ud">
|
||||||
<rect key="frame" x="1" y="1" width="453" height="309"/>
|
<rect key="frame" x="1" y="1" width="454" height="305"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" tableStyle="plain" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" headerView="REl-53-Sku" viewBased="YES" id="Tid-Rc-Ljr">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" tableStyle="plain" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" headerView="REl-53-Sku" viewBased="YES" id="Tid-Rc-Ljr">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="453" height="286"/>
|
<rect key="frame" x="0.0" y="0.0" width="454" height="282"/>
|
||||||
<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"/>
|
||||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||||
<tableColumns>
|
<tableColumns>
|
||||||
<tableColumn identifier="annotation" width="144.5" minWidth="40" maxWidth="1000" id="6um-Rw-luk">
|
<tableColumn identifier="annotation" width="145" minWidth="40" maxWidth="1000" id="6um-Rw-luk">
|
||||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Annotations">
|
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Annotations">
|
||||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
</tableCellView>
|
</tableCellView>
|
||||||
</prototypeCellViews>
|
</prototypeCellViews>
|
||||||
</tableColumn>
|
</tableColumn>
|
||||||
<tableColumn identifier="value" width="302.5" minWidth="40" maxWidth="1000" id="Aj4-bk-6RK">
|
<tableColumn identifier="value" width="303" minWidth="40" maxWidth="1000" id="Aj4-bk-6RK">
|
||||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Value">
|
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Value">
|
||||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -87,11 +87,11 @@
|
|||||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||||
<prototypeCellViews>
|
<prototypeCellViews>
|
||||||
<tableCellView identifier="value" id="5Ey-Te-51o" customClass="TokenCellView" customModule="Subler" customModuleProvider="target">
|
<tableCellView identifier="value" id="5Ey-Te-51o" customClass="TokenCellView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="148.5" y="1" width="302" height="17"/>
|
<rect key="frame" x="149" y="1" width="303" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tokenField focusRingType="none" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3sj-gY-zSo">
|
<tokenField focusRingType="none" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3sj-gY-zSo">
|
||||||
<rect key="frame" x="1" y="1" width="300" height="15"/>
|
<rect key="frame" x="1" y="1" width="301" height="15"/>
|
||||||
<tokenFieldCell key="cell" selectable="YES" editable="YES" alignment="left" allowsEditingTextAttributes="YES" id="BaM-xn-Wzr" customClass="TokenFieldCell" customModule="Subler" customModuleProvider="target">
|
<tokenFieldCell key="cell" selectable="YES" editable="YES" alignment="left" allowsEditingTextAttributes="YES" id="BaM-xn-Wzr" customClass="TokenFieldCell" customModule="Subler" customModuleProvider="target">
|
||||||
<font key="font" metaFont="cellTitle"/>
|
<font key="font" metaFont="cellTitle"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -134,12 +134,12 @@
|
|||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
<tableHeaderView key="headerView" wantsLayer="YES" id="REl-53-Sku">
|
<tableHeaderView key="headerView" wantsLayer="YES" id="REl-53-Sku">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="453" height="23"/>
|
<rect key="frame" x="0.0" y="0.0" width="454" height="23"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</tableHeaderView>
|
</tableHeaderView>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
<tokenField focusRingType="none" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Y15-gP-AOw">
|
<tokenField focusRingType="none" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Y15-gP-AOw">
|
||||||
<rect key="frame" x="18" y="67" width="605" height="15"/>
|
<rect key="frame" x="18" y="88" width="606" height="15"/>
|
||||||
<tokenFieldCell key="cell" selectable="YES" allowsUndo="NO" alignment="left" allowsEditingTextAttributes="YES" id="rG5-g2-YmU">
|
<tokenFieldCell key="cell" selectable="YES" allowsUndo="NO" alignment="left" allowsEditingTextAttributes="YES" id="rG5-g2-YmU">
|
||||||
<font key="font" metaFont="cellTitle"/>
|
<font key="font" metaFont="cellTitle"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -151,8 +151,8 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</tokenField>
|
</tokenField>
|
||||||
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="sd5-qb-K5v">
|
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="sd5-qb-K5v">
|
||||||
<rect key="frame" x="194" y="113" width="26" height="22"/>
|
<rect key="frame" x="229" y="135" width="38" height="24"/>
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="9UV-xM-L5F">
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSRemoveTemplate" imagePosition="only" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="9UV-xM-L5F">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
@@ -161,10 +161,10 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton toolTip="Add annotation" verticalHuggingPriority="249" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="Jdh-Cj-6ef">
|
<popUpButton toolTip="Add annotation" verticalHuggingPriority="249" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="Jdh-Cj-6ef">
|
||||||
<rect key="frame" x="166" y="113" width="29" height="22"/>
|
<rect key="frame" x="166" y="135" width="61" height="24"/>
|
||||||
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" pullsDown="YES" selectedItem="5wF-Yq-18d" id="Hfq-XE-kzZ">
|
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="center" lineBreakMode="truncatingTail" borderStyle="border" inset="2" pullsDown="YES" selectedItem="5wF-Yq-18d" id="Hfq-XE-kzZ">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="smallSystem"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" id="ywu-nj-9bP">
|
<menu key="menu" id="ywu-nj-9bP">
|
||||||
<items>
|
<items>
|
||||||
<menuItem image="NSAddTemplate" hidden="YES" id="5wF-Yq-18d">
|
<menuItem image="NSAddTemplate" hidden="YES" id="5wF-Yq-18d">
|
||||||
@@ -173,31 +173,18 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="height" constant="20" id="zjQ-DY-ahs"/>
|
|
||||||
</constraints>
|
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="addMetadataItem:" target="-2" id="wQl-dy-iQm"/>
|
<action selector="addMetadataItem:" target="-2" id="wQl-dy-iQm"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button horizontalHuggingPriority="249" translatesAutoresizingMaskIntoConstraints="NO" id="ZMK-Xt-bJh">
|
|
||||||
<rect key="frame" x="15" y="19" width="356" height="41"/>
|
|
||||||
<buttonCell key="cell" type="check" title="Keep empty annotations" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="7Ek-lI-5Lo">
|
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
|
||||||
<font key="font" metaFont="system"/>
|
|
||||||
</buttonCell>
|
|
||||||
<connections>
|
|
||||||
<binding destination="LQR-UU-5Gl" name="value" keyPath="values.SBMetadataKeepEmptyAnnotations" id="ZWu-yg-7bJ"/>
|
|
||||||
</connections>
|
|
||||||
</button>
|
|
||||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="h1q-Xr-y6R">
|
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="h1q-Xr-y6R">
|
||||||
<rect key="frame" x="20" y="142" width="138" height="311"/>
|
<rect key="frame" x="20" y="167" width="138" height="307"/>
|
||||||
<clipView key="contentView" id="KId-fX-q1q">
|
<clipView key="contentView" ambiguous="YES" id="KId-fX-q1q">
|
||||||
<rect key="frame" x="1" y="1" width="136" height="309"/>
|
<rect key="frame" x="1" y="1" width="136" height="305"/>
|
||||||
<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" multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" headerView="Eh9-8P-dr0" viewBased="YES" id="nXW-oy-rtu">
|
<tableView verticalHuggingPriority="750" ambiguous="YES" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnReordering="NO" multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" headerView="Eh9-8P-dr0" viewBased="YES" id="nXW-oy-rtu">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="136" height="286"/>
|
<rect key="frame" x="0.0" y="0.0" width="136" height="282"/>
|
||||||
<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"/>
|
||||||
@@ -269,7 +256,7 @@
|
|||||||
</tableHeaderView>
|
</tableHeaderView>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="8sr-aI-VZy">
|
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="8sr-aI-VZy">
|
||||||
<rect key="frame" x="18" y="90" width="605" height="16"/>
|
<rect key="frame" x="18" y="111" width="606" height="16"/>
|
||||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" title="Available values:" id="OYx-Dd-YIf">
|
<textFieldCell key="cell" sendsActionOnEndEditing="YES" title="Available values:" id="OYx-Dd-YIf">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -277,8 +264,8 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="BkU-sx-jUf">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="BkU-sx-jUf">
|
||||||
<rect key="frame" x="501" y="113" width="120" height="22"/>
|
<rect key="frame" x="498" y="135" width="124" height="24"/>
|
||||||
<buttonCell key="cell" type="smallSquare" title="Restore Defaults" bezelStyle="smallSquare" image="buttonCell:nBh-jv-KDG:image" imagePosition="overlaps" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nBh-jv-KDG">
|
<buttonCell key="cell" type="push" title="Restore Defaults" bezelStyle="rounded" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nBh-jv-KDG">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
@@ -290,47 +277,82 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ZpH-Zy-mAt">
|
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ZpH-Zy-mAt">
|
||||||
<rect key="frame" x="18" y="461" width="323" height="16"/>
|
<rect key="frame" x="18" y="482" width="323" height="16"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="clipping" title="Map the providers' metadata to the MP4 annotations" id="cUW-9F-EvO">
|
<textFieldCell key="cell" lineBreakMode="clipping" title="Map the providers' metadata to the MP4 annotations" id="cUW-9F-EvO">
|
||||||
<font key="font" usesAppearanceFont="YES"/>
|
<font key="font" usesAppearanceFont="YES"/>
|
||||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
|
<button horizontalHuggingPriority="249" translatesAutoresizingMaskIntoConstraints="NO" id="ZMK-Xt-bJh">
|
||||||
|
<rect key="frame" x="20" y="64" width="169" height="16"/>
|
||||||
|
<buttonCell key="cell" type="check" title="Keep empty annotations" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="7Ek-lI-5Lo">
|
||||||
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
</buttonCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="LQR-UU-5Gl" name="value" keyPath="values.SBMetadataKeepEmptyAnnotations" id="ZWu-yg-7bJ"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
|
<button horizontalHuggingPriority="249" translatesAutoresizingMaskIntoConstraints="NO" id="SZd-pK-hWX">
|
||||||
|
<rect key="frame" x="20" y="42" width="206" height="16"/>
|
||||||
|
<buttonCell key="cell" type="check" title="Overwrite existing annotations" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="7KC-Up-hGn">
|
||||||
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
</buttonCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="LQR-UU-5Gl" name="value" keyPath="values.SBMetadataOverwriteExistingAnnotations" id="gMZ-eG-GV4"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
|
<button toolTip="4K metadata may cause streaming issues with some Apple TV and iTunes configurations" translatesAutoresizingMaskIntoConstraints="NO" id="cEs-iS-fwI">
|
||||||
|
<rect key="frame" x="20" y="20" width="232" height="16"/>
|
||||||
|
<buttonCell key="cell" type="check" title="Autodetect 4K HD Video Metadata" bezelStyle="regularSquare" imagePosition="left" inset="2" id="vyR-ib-B9Q">
|
||||||
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
</buttonCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="LQR-UU-5Gl" name="value" keyPath="values.SBSet4KHDVideoMetadata" id="OKn-J3-W8a"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
|
<constraint firstItem="SZd-pK-hWX" firstAttribute="leading" secondItem="ZMK-Xt-bJh" secondAttribute="leading" id="00b-Uc-cOS"/>
|
||||||
<constraint firstItem="Jdh-Cj-6ef" firstAttribute="bottom" secondItem="sd5-qb-K5v" secondAttribute="bottom" id="0SP-GV-ri1"/>
|
<constraint firstItem="Jdh-Cj-6ef" firstAttribute="bottom" secondItem="sd5-qb-K5v" secondAttribute="bottom" id="0SP-GV-ri1"/>
|
||||||
<constraint firstItem="Jdh-Cj-6ef" firstAttribute="leading" secondItem="1XK-zr-YdW" secondAttribute="leading" id="1EI-3q-Cy7"/>
|
<constraint firstItem="Jdh-Cj-6ef" firstAttribute="leading" secondItem="1XK-zr-YdW" secondAttribute="leading" id="1EI-3q-Cy7"/>
|
||||||
<constraint firstItem="h1q-Xr-y6R" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" id="2i2-lP-HkJ"/>
|
<constraint firstItem="h1q-Xr-y6R" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" id="2i2-lP-HkJ"/>
|
||||||
|
<constraint firstItem="ZMK-Xt-bJh" firstAttribute="leading" secondItem="h1q-Xr-y6R" secondAttribute="leading" id="7f9-AI-w1t"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="Y15-gP-AOw" secondAttribute="trailing" constant="20" id="8il-IM-mGa"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="1XK-zr-YdW" secondAttribute="trailing" constant="20" symbolic="YES" id="9fj-nw-Dnj"/>
|
<constraint firstAttribute="trailing" secondItem="1XK-zr-YdW" secondAttribute="trailing" constant="20" symbolic="YES" id="9fj-nw-Dnj"/>
|
||||||
<constraint firstItem="ZMK-Xt-bJh" firstAttribute="leading" secondItem="sd5-qb-K5v" secondAttribute="trailing" constant="-203" id="BJ5-Wy-0IT"/>
|
|
||||||
<constraint firstItem="h1q-Xr-y6R" firstAttribute="bottom" secondItem="1XK-zr-YdW" secondAttribute="bottom" id="BRg-Qn-cnk"/>
|
<constraint firstItem="h1q-Xr-y6R" firstAttribute="bottom" secondItem="1XK-zr-YdW" secondAttribute="bottom" id="BRg-Qn-cnk"/>
|
||||||
<constraint firstItem="ZpH-Zy-mAt" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" symbolic="YES" id="BpM-Kf-SfT"/>
|
<constraint firstItem="ZpH-Zy-mAt" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" symbolic="YES" id="BpM-Kf-SfT"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="ZMK-Xt-bJh" secondAttribute="trailing" constant="270" id="DbB-rO-WGW"/>
|
<constraint firstItem="SZd-pK-hWX" firstAttribute="top" secondItem="ZMK-Xt-bJh" secondAttribute="bottom" constant="6" symbolic="YES" id="DHM-ZO-C7P"/>
|
||||||
<constraint firstItem="ZMK-Xt-bJh" firstAttribute="trailing" secondItem="Y15-gP-AOw" secondAttribute="trailing" constant="-250" id="FE7-1p-ZNW"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="ZMK-Xt-bJh" secondAttribute="trailing" constant="20" id="GLC-tk-eTl"/>
|
||||||
<constraint firstItem="8sr-aI-VZy" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" id="HFP-B1-ScR"/>
|
<constraint firstItem="8sr-aI-VZy" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" id="HFP-B1-ScR"/>
|
||||||
<constraint firstItem="h1q-Xr-y6R" firstAttribute="leading" secondItem="Y15-gP-AOw" secondAttribute="leading" id="HMX-Qb-8MC"/>
|
<constraint firstItem="h1q-Xr-y6R" firstAttribute="leading" secondItem="Y15-gP-AOw" secondAttribute="leading" id="HMX-Qb-8MC"/>
|
||||||
|
<constraint firstAttribute="bottom" secondItem="cEs-iS-fwI" secondAttribute="bottom" constant="20" symbolic="YES" id="HUg-bO-NbS"/>
|
||||||
<constraint firstItem="h1q-Xr-y6R" firstAttribute="centerY" secondItem="1XK-zr-YdW" secondAttribute="centerY" id="JHk-tE-xQI"/>
|
<constraint firstItem="h1q-Xr-y6R" firstAttribute="centerY" secondItem="1XK-zr-YdW" secondAttribute="centerY" id="JHk-tE-xQI"/>
|
||||||
<constraint firstItem="Jdh-Cj-6ef" firstAttribute="top" secondItem="h1q-Xr-y6R" secondAttribute="bottom" constant="8" symbolic="YES" id="NcZ-Os-USj"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="SZd-pK-hWX" secondAttribute="trailing" constant="20" symbolic="YES" id="MBW-h8-eD8"/>
|
||||||
|
<constraint firstItem="Jdh-Cj-6ef" firstAttribute="top" secondItem="h1q-Xr-y6R" secondAttribute="bottom" constant="8" id="NcZ-Os-USj"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="ZpH-Zy-mAt" secondAttribute="trailing" constant="20" symbolic="YES" id="P7f-Fl-xTL"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="ZpH-Zy-mAt" secondAttribute="trailing" constant="20" symbolic="YES" id="P7f-Fl-xTL"/>
|
||||||
<constraint firstItem="h1q-Xr-y6R" firstAttribute="top" secondItem="ZpH-Zy-mAt" secondAttribute="bottom" constant="8" symbolic="YES" id="S2n-Cv-TwB"/>
|
<constraint firstItem="h1q-Xr-y6R" firstAttribute="top" secondItem="ZpH-Zy-mAt" secondAttribute="bottom" constant="8" symbolic="YES" id="S2n-Cv-TwB"/>
|
||||||
<constraint firstItem="BkU-sx-jUf" firstAttribute="centerY" secondItem="sd5-qb-K5v" secondAttribute="centerY" id="ZWW-ZP-Xp1"/>
|
<constraint firstItem="BkU-sx-jUf" firstAttribute="centerY" secondItem="sd5-qb-K5v" secondAttribute="centerY" id="ZWW-ZP-Xp1"/>
|
||||||
<constraint firstItem="BkU-sx-jUf" firstAttribute="trailing" secondItem="1XK-zr-YdW" secondAttribute="trailing" id="bp9-bU-BRc"/>
|
<constraint firstItem="BkU-sx-jUf" firstAttribute="trailing" secondItem="1XK-zr-YdW" secondAttribute="trailing" id="bp9-bU-BRc"/>
|
||||||
<constraint firstItem="1XK-zr-YdW" firstAttribute="leading" secondItem="h1q-Xr-y6R" secondAttribute="trailing" constant="8" symbolic="YES" id="cCT-Qp-Bxz"/>
|
<constraint firstItem="1XK-zr-YdW" firstAttribute="leading" secondItem="h1q-Xr-y6R" secondAttribute="trailing" constant="8" symbolic="YES" id="cCT-Qp-Bxz"/>
|
||||||
|
<constraint firstItem="cEs-iS-fwI" firstAttribute="top" secondItem="SZd-pK-hWX" secondAttribute="bottom" constant="6" symbolic="YES" id="d8X-hu-sZn"/>
|
||||||
<constraint firstItem="Jdh-Cj-6ef" firstAttribute="top" secondItem="sd5-qb-K5v" secondAttribute="top" id="ewc-at-D5g"/>
|
<constraint firstItem="Jdh-Cj-6ef" firstAttribute="top" secondItem="sd5-qb-K5v" secondAttribute="top" id="ewc-at-D5g"/>
|
||||||
<constraint firstItem="BkU-sx-jUf" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" symbolic="YES" id="fdW-8M-iew"/>
|
<constraint firstItem="BkU-sx-jUf" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" symbolic="YES" id="fdW-8M-iew"/>
|
||||||
<constraint firstItem="8sr-aI-VZy" firstAttribute="top" secondItem="Jdh-Cj-6ef" secondAttribute="bottom" constant="8" id="gVT-X2-Zcu"/>
|
<constraint firstItem="8sr-aI-VZy" firstAttribute="top" secondItem="Jdh-Cj-6ef" secondAttribute="bottom" constant="8" id="gVT-X2-Zcu"/>
|
||||||
<constraint firstItem="ZMK-Xt-bJh" firstAttribute="top" secondItem="Y15-gP-AOw" secondAttribute="bottom" constant="8" symbolic="YES" id="jNv-GA-dH3"/>
|
<constraint firstItem="ZMK-Xt-bJh" firstAttribute="top" secondItem="Y15-gP-AOw" secondAttribute="bottom" constant="8" symbolic="YES" id="jNv-GA-dH3"/>
|
||||||
<constraint firstItem="ZMK-Xt-bJh" firstAttribute="leading" secondItem="Jdh-Cj-6ef" secondAttribute="trailing" constant="-178" id="k7p-wK-1iJ"/>
|
|
||||||
<constraint firstItem="BkU-sx-jUf" firstAttribute="height" secondItem="Jdh-Cj-6ef" secondAttribute="height" id="lyO-6Z-Osi"/>
|
<constraint firstItem="BkU-sx-jUf" firstAttribute="height" secondItem="Jdh-Cj-6ef" secondAttribute="height" id="lyO-6Z-Osi"/>
|
||||||
<constraint firstItem="Y15-gP-AOw" firstAttribute="top" secondItem="8sr-aI-VZy" secondAttribute="bottom" constant="8" id="mFt-Ao-lHu"/>
|
<constraint firstItem="Y15-gP-AOw" firstAttribute="top" secondItem="8sr-aI-VZy" secondAttribute="bottom" constant="8" id="mFt-Ao-lHu"/>
|
||||||
<constraint firstItem="Y15-gP-AOw" firstAttribute="trailing" secondItem="8sr-aI-VZy" secondAttribute="trailing" id="mXF-1R-Sbp"/>
|
<constraint firstItem="Y15-gP-AOw" firstAttribute="trailing" secondItem="8sr-aI-VZy" secondAttribute="trailing" id="mXF-1R-Sbp"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="ZMK-Xt-bJh" secondAttribute="bottom" constant="20" symbolic="YES" id="qbM-tp-ooC"/>
|
|
||||||
<constraint firstItem="ZpH-Zy-mAt" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" symbolic="YES" id="ttK-B9-wyu"/>
|
<constraint firstItem="ZpH-Zy-mAt" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" symbolic="YES" id="ttK-B9-wyu"/>
|
||||||
<constraint firstItem="sd5-qb-K5v" firstAttribute="leading" secondItem="Jdh-Cj-6ef" secondAttribute="trailing" constant="-1" id="vIk-e5-WB3"/>
|
<constraint firstItem="sd5-qb-K5v" firstAttribute="leading" secondItem="Jdh-Cj-6ef" secondAttribute="trailing" constant="2" id="vIk-e5-WB3"/>
|
||||||
|
<constraint firstItem="cEs-iS-fwI" firstAttribute="leading" secondItem="SZd-pK-hWX" secondAttribute="leading" id="wdD-k6-Agx"/>
|
||||||
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="cEs-iS-fwI" secondAttribute="trailing" constant="20" symbolic="YES" id="we6-QF-WHA"/>
|
||||||
<constraint firstItem="1XK-zr-YdW" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="166" id="yZg-V9-bxH"/>
|
<constraint firstItem="1XK-zr-YdW" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="166" id="yZg-V9-bxH"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="-295.5" y="-469.5"/>
|
<point key="canvasLocation" x="-296" y="-459"/>
|
||||||
</customView>
|
</customView>
|
||||||
<arrayController objectClassName="NSString" id="RId-BH-Y2G" userLabel="Types Controller">
|
<arrayController objectClassName="NSString" id="RId-BH-Y2G" userLabel="Types Controller">
|
||||||
<classReference key="objectClass" className="NSString"/>
|
<classReference key="objectClass" className="NSString"/>
|
||||||
@@ -343,58 +365,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<image name="NSAddTemplate" width="18" height="17"/>
|
<image name="NSAddTemplate" width="18" height="17"/>
|
||||||
<image name="NSRemoveTemplate" width="18" height="5"/>
|
<image name="NSRemoveTemplate" width="18" height="5"/>
|
||||||
<image name="buttonCell:nBh-jv-KDG:image" width="1" height="1">
|
|
||||||
<mutableData key="keyedArchiveRepresentation">
|
|
||||||
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMSAAGGoF8QD05T
|
|
||||||
S2V5ZWRBcmNoaXZlctEICVRyb290gAGuCwwZGh8UJCkqMTQ3PUBVJG51bGzWDQ4PEBESExQVFhcYVk5T
|
|
||||||
U2l6ZV5OU1Jlc2l6aW5nTW9kZVYkY2xhc3NcTlNJbWFnZUZsYWdzVk5TUmVwc1dOU0NvbG9ygAIQAIAN
|
|
||||||
EiDDAACAA4ALVnsxLCAxfdIbDxweWk5TLm9iamVjdHOhHYAEgArSGw8gI6IhIoAFgAaACdMPJSYnKBRf
|
|
||||||
EBROU1RJRkZSZXByZXNlbnRhdGlvbl8QGU5TSW50ZXJuYWxMYXlvdXREaXJlY3Rpb26ACIAHTxEIxE1N
|
|
||||||
ACoAAAAKAAAAEAEAAAMAAAABAAEAAAEBAAMAAAABAAEAAAECAAMAAAACAAgACAEDAAMAAAABAAEAAAEG
|
|
||||||
AAMAAAABAAEAAAEKAAMAAAABAAEAAAERAAQAAAABAAAACAESAAMAAAABAAEAAAEVAAMAAAABAAIAAAEW
|
|
||||||
AAMAAAABAAEAAAEXAAQAAAABAAAAAgEcAAMAAAABAAEAAAEoAAMAAAABAAIAAAFSAAMAAAABAAEAAAFT
|
|
||||||
AAMAAAACAAEAAYdzAAcAAAf0AAAA0AAAAAAAAAf0YXBwbAIgAABtbnRyR1JBWVhZWiAH0AACAA4ADAAA
|
|
||||||
AABhY3NwQVBQTAAAAABub25lAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWFwcGwAAAAAAAAAAAAA
|
|
||||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVkZXNjAAAAwAAAAG9kc2NtAAABMAAA
|
|
||||||
BmZjcHJ0AAAHmAAAADh3dHB0AAAH0AAAABRrVFJDAAAH5AAAAA5kZXNjAAAAAAAAABVHZW5lcmljIEdy
|
|
||||||
YXkgUHJvZmlsZQAAAAAAAAAAAAAAFUdlbmVyaWMgR3JheSBQcm9maWxlAAAAAAAAAAAAAAAAAAAAAAAA
|
|
||||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbWx1YwAAAAAAAAAfAAAADHNrU0sAAAAqAAABhGVu
|
|
||||||
VVMAAAAoAAABrmNhRVMAAAAsAAAB1nZpVk4AAAAsAAACAnB0QlIAAAAqAAACLnVrVUEAAAAsAAACWGZy
|
|
||||||
RlUAAAAqAAAChGh1SFUAAAAuAAACrnpoVFcAAAAQAAAC3G5iTk8AAAAsAAAC7GtvS1IAAAAYAAADGGNz
|
|
||||||
Q1oAAAAkAAADMGhlSUwAAAAgAAADVHJvUk8AAAAkAAADdGRlREUAAAA6AAADmGl0SVQAAAAuAAAD0nN2
|
|
||||||
U0UAAAAuAAAEAHpoQ04AAAAQAAAELmphSlAAAAAWAAAEPmVsR1IAAAAkAAAEVHB0UE8AAAA4AAAEeG5s
|
|
||||||
TkwAAAAqAAAEsGVzRVMAAAAoAAAE2nRoVEgAAAAkAAAFAnRyVFIAAAAiAAAFJmZpRkkAAAAsAAAFSGhy
|
|
||||||
SFIAAAA6AAAFdHBsUEwAAAA2AAAFrnJ1UlUAAAAmAAAF5GFyRUcAAAAoAAAGCmRhREsAAAA0AAAGMgBW
|
|
||||||
AWEAZQBvAGIAZQBjAG4A/QAgAHMAaQB2AP0AIABwAHIAbwBmAGkAbABHAGUAbgBlAHIAaQBjACAARwBy
|
|
||||||
AGEAeQAgAFAAcgBvAGYAaQBsAGUAUABlAHIAZgBpAGwAIABkAGUAIABnAHIAaQBzACAAZwBlAG4A6ABy
|
|
||||||
AGkAYwBDHqUAdQAgAGgA7ABuAGgAIABNAOAAdQAgAHgA4QBtACAAQwBoAHUAbgBnAFAAZQByAGYAaQBs
|
|
||||||
ACAAQwBpAG4AegBhACAARwBlAG4A6QByAGkAYwBvBBcEMAQzBDAEOwRMBD0EOAQ5ACAEPwRABD4ERAQw
|
|
||||||
BDkEOwAgAEcAcgBhAHkAUAByAG8AZgBpAGwAIABnAOkAbgDpAHIAaQBxAHUAZQAgAGcAcgBpAHMAwQBs
|
|
||||||
AHQAYQBsAOEAbgBvAHMAIABzAHoA/AByAGsAZQAgAHAAcgBvAGYAaQBskBp1KHBwlo6Ccl9pY8+P8ABH
|
|
||||||
AGUAbgBlAHIAaQBzAGsAIABnAHIA5QB0AG8AbgBlAHAAcgBvAGYAaQBsx3y8GAAgAEcAcgBhAHkAINUE
|
|
||||||
uFzTDMd8AE8AYgBlAGMAbgD9ACABYQBlAGQA/QAgAHAAcgBvAGYAaQBsBeQF6AXVBeQF2QXcACAARwBy
|
|
||||||
AGEAeQAgBdsF3AXcBdkAUAByAG8AZgBpAGwAIABnAHIAaQAgAGcAZQBuAGUAcgBpAGMAQQBsAGwAZwBl
|
|
||||||
AG0AZQBpAG4AZQBzACAARwByAGEAdQBzAHQAdQBmAGUAbgAtAFAAcgBvAGYAaQBsAFAAcgBvAGYAaQBs
|
|
||||||
AG8AIABnAHIAaQBnAGkAbwAgAGcAZQBuAGUAcgBpAGMAbwBHAGUAbgBlAHIAaQBzAGsAIABnAHIA5QBz
|
|
||||||
AGsAYQBsAGUAcAByAG8AZgBpAGxmbpAacHBepmPPj/Blh072TgCCLDCwMOwwpDDXMO0w1TChMKQw6wOT
|
|
||||||
A7UDvQO5A7oDzAAgA8ADwQO/A8YDrwO7ACADswO6A8EDuQBQAGUAcgBmAGkAbAAgAGcAZQBuAOkAcgBp
|
|
||||||
AGMAbwAgAGQAZQAgAGMAaQBuAHoAZQBuAHQAbwBzAEEAbABnAGUAbQBlAGUAbgAgAGcAcgBpAGoAcwBw
|
|
||||||
AHIAbwBmAGkAZQBsAFAAZQByAGYAaQBsACAAZwByAGkAcwAgAGcAZQBuAOkAcgBpAGMAbw5CDhsOIw5E
|
|
||||||
Dh8OJQ5MDioONQ5ADhcOMg4XDjEOSA4nDkQOGwBHAGUAbgBlAGwAIABHAHIAaQAgAFAAcgBvAGYAaQBs
|
|
||||||
AGkAWQBsAGUAaQBuAGUAbgAgAGgAYQByAG0AYQBhAHAAcgBvAGYAaQBpAGwAaQBHAGUAbgBlAHIAaQEN
|
|
||||||
AGsAaQAgAHAAcgBvAGYAaQBsACAAcwBpAHYAaQBoACAAdABvAG4AbwB2AGEAVQBuAGkAdwBlAHIAcwBh
|
|
||||||
AGwAbgB5ACAAcAByAG8AZgBpAGwAIABzAHoAYQByAG8BWwBjAGkEHgQxBEkEOAQ5ACAEQQQ1BEAESwQ5
|
|
||||||
ACAEPwRABD4ERAQ4BDsETAZFBkQGQQAgBioGOQYxBkoGQQAgAEcAcgBhAHkAIAYnBkQGOQYnBkUARwBl
|
|
||||||
AG4AZQByAGUAbAAgAGcAcgDlAHQAbwBuAGUAYgBlAHMAawByAGkAdgBlAGwAcwBlAAB0ZXh0AAAAAENv
|
|
||||||
cHlyaWdodCAyMDA3IEFwcGxlIEluYy4sIGFsbCByaWdodHMgcmVzZXJ2ZWQuAFhZWiAAAAAAAADzUQAB
|
|
||||||
AAAAARbMY3VydgAAAAAAAAABAc0AANIrLC0uWiRjbGFzc25hbWVYJGNsYXNzZXNfEBBOU0JpdG1hcElt
|
|
||||||
YWdlUmVwoy0vMFpOU0ltYWdlUmVwWE5TT2JqZWN00issMjNXTlNBcnJheaIyMNIrLDU2Xk5TTXV0YWJs
|
|
||||||
ZUFycmF5ozUyMNM4OQ86OzxXTlNXaGl0ZVxOU0NvbG9yU3BhY2VEMCAwABADgAzSKyw+P1dOU0NvbG9y
|
|
||||||
oj4w0issQUJXTlNJbWFnZaJBMAAIABEAGgAkACkAMgA3AEkATABRAFMAYgBoAHUAfACLAJIAnwCmAK4A
|
|
||||||
sACyALQAuQC7AL0AxADJANQA1gDYANoA3wDiAOQA5gDoAO8BBgEiASQBJgnuCfMJ/goHChoKHgopCjIK
|
|
||||||
Nwo/CkIKRwpWCloKYQppCnYKewp9Cn8KhAqMCo8KlAqcAAAAAAAAAgEAAAAAAAAAQwAAAAAAAAAAAAAA
|
|
||||||
AAAACp8
|
|
||||||
</mutableData>
|
|
||||||
</image>
|
|
||||||
</resources>
|
</resources>
|
||||||
</document>
|
</document>
|
||||||
@@ -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="19455" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19455"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -47,8 +47,8 @@
|
|||||||
<rect key="frame" x="1" y="1" width="755" height="19"/>
|
<rect key="frame" x="1" y="1" width="755" height="19"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="Fec-S0-J1M">
|
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="Fec-S0-J1M">
|
||||||
<rect key="frame" x="87" y="4" width="668" height="16"/>
|
<rect key="frame" x="87" y="3" width="668" height="16"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" id="Zhz-YB-L6R">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" id="Zhz-YB-L6R">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -57,13 +57,13 @@
|
|||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Lhm-Hc-3on">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Lhm-Hc-3on">
|
||||||
<rect key="frame" x="-3" y="-5" width="92" height="27"/>
|
<rect key="frame" x="-3" y="-5" width="92" height="27"/>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="80" id="WJc-b5-b3e"/>
|
|
||||||
</constraints>
|
|
||||||
<buttonCell key="cell" type="push" title="Get" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="DIS-cU-NvL">
|
<buttonCell key="cell" type="push" title="Get" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="DIS-cU-NvL">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="smallSystem"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="80" id="WJc-b5-b3e"/>
|
||||||
|
</constraints>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="buttonPressed:" target="lSD-av-rXp" id="Pur-Kz-KOJ"/>
|
<action selector="buttonPressed:" target="lSD-av-rXp" id="Pur-Kz-KOJ"/>
|
||||||
</connections>
|
</connections>
|
||||||
@@ -107,11 +107,11 @@
|
|||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</tableHeaderView>
|
</tableHeaderView>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="86L-qx-fhB">
|
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="86L-qx-fhB">
|
||||||
<rect key="frame" x="18" y="20" width="764" height="14"/>
|
<rect key="frame" x="18" y="20" width="764" height="14"/>
|
||||||
<textFieldCell key="cell" selectable="YES" title="Language specific OCR data files can improve the optical character recognition results." id="LFI-zD-ohi">
|
<textFieldCell key="cell" selectable="YES" title="Language specific OCR data files can improve the optical character recognition results." id="LFI-zD-ohi">
|
||||||
<font key="font" metaFont="smallSystem"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
|
|||||||
@@ -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="14092" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14092"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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 @@
|
|||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="p8t-DX-Sav">
|
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="p8t-DX-Sav">
|
||||||
<rect key="frame" x="307" y="62" width="22" height="17"/>
|
<rect key="frame" x="307" y="63" width="22" height="16"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="ms" id="nxC-E2-XnZ">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="ms" id="nxC-E2-XnZ">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -27,16 +27,16 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="lhD-11-DBf">
|
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="lhD-11-DBf">
|
||||||
<rect key="frame" x="69" y="59" width="233" height="22"/>
|
<rect key="frame" x="69" y="60" width="233" height="21"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="j35-C4-nht">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="j35-C4-nht">
|
||||||
<numberFormatter key="formatter" formatterBehavior="custom10_4" numberStyle="decimal" minimumIntegerDigits="1" maximumIntegerDigits="2000000000" maximumFractionDigits="10" id="bJb-JJ-awo"/>
|
<numberFormatter key="formatter" formatterBehavior="custom10_4" numberStyle="decimal" minimumIntegerDigits="1" maximumIntegerDigits="2000000000" maximumFractionDigits="10" id="bJb-JJ-awo"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Uf6-Aa-BAI">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Uf6-Aa-BAI">
|
||||||
<rect key="frame" x="237" y="12" width="95" height="32"/>
|
<rect key="frame" x="236" y="12" width="97" height="32"/>
|
||||||
<buttonCell key="cell" type="push" title="OK" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="zRv-hv-PCL">
|
<buttonCell key="cell" type="push" title="OK" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="zRv-hv-PCL">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -49,7 +49,7 @@ DQ
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="MtD-m7-VhK">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="MtD-m7-VhK">
|
||||||
<rect key="frame" x="142" y="12" width="95" height="32"/>
|
<rect key="frame" x="141" y="12" width="97" height="32"/>
|
||||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Ypd-2w-xig">
|
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Ypd-2w-xig">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -62,7 +62,7 @@ Gw
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uuA-eC-Gdc">
|
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uuA-eC-Gdc">
|
||||||
<rect key="frame" x="18" y="62" width="46" height="17"/>
|
<rect key="frame" x="18" y="63" width="46" height="16"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Offset:" id="1MN-KJ-v23">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Offset:" id="1MN-KJ-v23">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -86,6 +86,7 @@ Gw
|
|||||||
<constraint firstItem="p8t-DX-Sav" firstAttribute="baseline" secondItem="lhD-11-DBf" secondAttribute="baseline" id="q6R-jC-RnD"/>
|
<constraint firstItem="p8t-DX-Sav" firstAttribute="baseline" secondItem="lhD-11-DBf" secondAttribute="baseline" id="q6R-jC-RnD"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="p8t-DX-Sav" secondAttribute="trailing" constant="19" id="vch-j0-7So"/>
|
<constraint firstAttribute="trailing" secondItem="p8t-DX-Sav" secondAttribute="trailing" constant="19" id="vch-j0-7So"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
<point key="canvasLocation" x="255" y="-50"/>
|
||||||
</view>
|
</view>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
@@ -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="21507" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21507"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
</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="Hz6-mo-xeY">
|
<customView id="Hz6-mo-xeY">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="610" height="220"/>
|
<rect key="frame" x="0.0" y="0.0" width="660" height="202"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="PZS-8W-dno">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="PZS-8W-dno">
|
||||||
<rect key="frame" x="67" y="183" width="184" height="18"/>
|
<rect key="frame" x="69" y="166" width="180" height="16"/>
|
||||||
<buttonCell key="cell" type="check" title="Set filename of Movies to:" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="wci-gO-GWT">
|
<buttonCell key="cell" type="check" title="Set filename of Movies to:" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="wci-gO-GWT">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="TBF-BD-fSk">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="TBF-BD-fSk">
|
||||||
<rect key="frame" x="67" y="104" width="201" height="18"/>
|
<rect key="frame" x="69" y="86" width="197" height="16"/>
|
||||||
<buttonCell key="cell" type="check" title="Set filename of TV Shows to:" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="kQC-bu-0by">
|
<buttonCell key="cell" type="check" title="Set filename of TV Shows to:" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="kQC-bu-0by">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -39,12 +39,9 @@
|
|||||||
<binding destination="BZm-iR-6oK" name="value" keyPath="values.SBSetTVShowFormat" id="e2b-dq-8JE"/>
|
<binding destination="BZm-iR-6oK" name="value" keyPath="values.SBSetTVShowFormat" id="e2b-dq-8JE"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<tokenField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="i8H-oP-Sif">
|
<tokenField focusRingType="none" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="i8H-oP-Sif">
|
||||||
<rect key="frame" x="85" y="153" width="440" height="23"/>
|
<rect key="frame" x="69" y="134" width="476" height="24"/>
|
||||||
<constraints>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<constraint firstAttribute="width" constant="440" id="6Ap-Ey-VHf"/>
|
|
||||||
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="23" id="JPO-az-iic"/>
|
|
||||||
</constraints>
|
|
||||||
<tokenFieldCell key="cell" selectable="YES" editable="YES" borderStyle="bezel" alignment="left" drawsBackground="YES" allowsEditingTextAttributes="YES" id="h4P-Ma-djC">
|
<tokenFieldCell key="cell" selectable="YES" editable="YES" borderStyle="bezel" alignment="left" drawsBackground="YES" allowsEditingTextAttributes="YES" id="h4P-Ma-djC">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -54,11 +51,9 @@
|
|||||||
<outlet property="delegate" destination="-2" id="39Q-aI-o60"/>
|
<outlet property="delegate" destination="-2" id="39Q-aI-o60"/>
|
||||||
</connections>
|
</connections>
|
||||||
</tokenField>
|
</tokenField>
|
||||||
<tokenField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="rzc-AK-4Vr">
|
<tokenField focusRingType="none" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="rzc-AK-4Vr">
|
||||||
<rect key="frame" x="85" y="74" width="440" height="23"/>
|
<rect key="frame" x="69" y="54" width="476" height="24"/>
|
||||||
<constraints>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="23" id="bvK-Gm-JUU"/>
|
|
||||||
</constraints>
|
|
||||||
<tokenFieldCell key="cell" selectable="YES" editable="YES" borderStyle="bezel" alignment="left" drawsBackground="YES" allowsEditingTextAttributes="YES" id="aHe-D5-fgj">
|
<tokenFieldCell key="cell" selectable="YES" editable="YES" borderStyle="bezel" alignment="left" drawsBackground="YES" allowsEditingTextAttributes="YES" id="aHe-D5-fgj">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -68,8 +63,9 @@
|
|||||||
<outlet property="delegate" destination="-2" id="mh9-CJ-zVx"/>
|
<outlet property="delegate" destination="-2" id="mh9-CJ-zVx"/>
|
||||||
</connections>
|
</connections>
|
||||||
</tokenField>
|
</tokenField>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dq1-e8-fa6">
|
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dq1-e8-fa6">
|
||||||
<rect key="frame" x="526" y="148" width="44" height="32"/>
|
<rect key="frame" x="553" y="134" width="38" height="24"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSSmartBadgeTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="qsh-5h-jhl">
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSSmartBadgeTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="qsh-5h-jhl">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -78,8 +74,9 @@
|
|||||||
<action selector="showMovieTokens:" target="-2" id="Er8-nw-di4"/>
|
<action selector="showMovieTokens:" target="-2" id="Er8-nw-di4"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="fZZ-im-9BI">
|
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="fZZ-im-9BI">
|
||||||
<rect key="frame" x="526" y="69" width="44" height="32"/>
|
<rect key="frame" x="553" y="54" width="38" height="24"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSSmartBadgeTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="gf3-DD-hW7">
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSSmartBadgeTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="gf3-DD-hW7">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -88,38 +85,28 @@
|
|||||||
<action selector="showTvShowTokens:" target="-2" id="pHZ-v7-U0W"/>
|
<action selector="showTvShowTokens:" target="-2" id="pHZ-v7-U0W"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Pbz-wc-RXA">
|
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Pbz-wc-RXA">
|
||||||
<rect key="frame" x="83" y="20" width="444" height="34"/>
|
<rect key="frame" x="83" y="20" width="441" height="14"/>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="height" constant="34" id="Y5R-jS-Whb"/>
|
|
||||||
</constraints>
|
|
||||||
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" title="Set the format to create a custom filename in the Save As… panel and in the queue." id="hE3-zH-XFE">
|
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" title="Set the format to create a custom filename in the Save As… panel and in the queue." id="hE3-zH-XFE">
|
||||||
<font key="font" metaFont="smallSystem"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="bottom" secondItem="Pbz-wc-RXA" secondAttribute="bottom" constant="20" symbolic="YES" id="0R2-Y8-s5e"/>
|
<constraint firstAttribute="bottom" secondItem="Pbz-wc-RXA" secondAttribute="bottom" constant="20" symbolic="YES" id="1zf-9m-dj9"/>
|
||||||
<constraint firstItem="Pbz-wc-RXA" firstAttribute="leading" secondItem="i8H-oP-Sif" secondAttribute="leading" id="4Vz-o1-zSY"/>
|
<constraint firstItem="Pbz-wc-RXA" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="85" id="7Sa-nY-Sp0"/>
|
||||||
<constraint firstItem="rzc-AK-4Vr" firstAttribute="leading" secondItem="TBF-BD-fSk" secondAttribute="leading" constant="16" id="Aws-ML-M7P"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="PZS-8W-dno" secondAttribute="trailing" constant="40" id="FWW-Rk-8oX"/>
|
||||||
<constraint firstItem="TBF-BD-fSk" firstAttribute="top" secondItem="i8H-oP-Sif" secondAttribute="bottom" constant="32" id="C0O-NO-8Te"/>
|
<constraint firstItem="TBF-BD-fSk" firstAttribute="top" secondItem="PZS-8W-dno" secondAttribute="bottom" constant="64" id="RMy-yp-T41"/>
|
||||||
<constraint firstItem="dq1-e8-fa6" firstAttribute="centerY" secondItem="i8H-oP-Sif" secondAttribute="centerY" id="Dsc-lq-HSw"/>
|
<constraint firstItem="PZS-8W-dno" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="69" id="Zr8-m0-a0L"/>
|
||||||
<constraint firstItem="rzc-AK-4Vr" firstAttribute="top" secondItem="TBF-BD-fSk" secondAttribute="bottom" constant="8" id="FZZ-y5-ycJ"/>
|
<constraint firstAttribute="trailing" secondItem="Pbz-wc-RXA" secondAttribute="trailing" constant="138" id="f8r-kX-5Cf"/>
|
||||||
<constraint firstItem="PZS-8W-dno" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" id="GYO-gT-cbH"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="TBF-BD-fSk" secondAttribute="trailing" constant="40" id="sO9-ww-FzW"/>
|
||||||
<constraint firstItem="i8H-oP-Sif" firstAttribute="top" secondItem="PZS-8W-dno" secondAttribute="bottom" constant="8" id="Mvi-1G-Dhn"/>
|
<constraint firstItem="PZS-8W-dno" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" symbolic="YES" id="uzL-77-0e4"/>
|
||||||
<constraint firstItem="Pbz-wc-RXA" firstAttribute="top" secondItem="rzc-AK-4Vr" secondAttribute="bottom" constant="20" id="ZQc-Um-c3U"/>
|
<constraint firstItem="Pbz-wc-RXA" firstAttribute="top" secondItem="TBF-BD-fSk" secondAttribute="bottom" constant="52" id="vr9-90-hg3"/>
|
||||||
<constraint firstItem="i8H-oP-Sif" firstAttribute="leading" secondItem="PZS-8W-dno" secondAttribute="leading" constant="16" id="ael-zI-oHU"/>
|
<constraint firstItem="TBF-BD-fSk" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="69" id="yiZ-p7-IJl"/>
|
||||||
<constraint firstItem="TBF-BD-fSk" firstAttribute="leading" secondItem="PZS-8W-dno" secondAttribute="leading" id="cyH-w2-B1O"/>
|
|
||||||
<constraint firstItem="dq1-e8-fa6" firstAttribute="leading" secondItem="i8H-oP-Sif" secondAttribute="trailing" constant="8" id="dhO-Zz-g71"/>
|
|
||||||
<constraint firstItem="fZZ-im-9BI" firstAttribute="centerY" secondItem="rzc-AK-4Vr" secondAttribute="centerY" id="gzL-hH-eGN"/>
|
|
||||||
<constraint firstItem="Pbz-wc-RXA" firstAttribute="trailing" secondItem="i8H-oP-Sif" secondAttribute="trailing" id="ipc-wG-c2z"/>
|
|
||||||
<constraint firstItem="fZZ-im-9BI" firstAttribute="leading" secondItem="rzc-AK-4Vr" secondAttribute="trailing" constant="8" id="kZg-YA-eMU"/>
|
|
||||||
<constraint firstItem="i8H-oP-Sif" firstAttribute="centerX" secondItem="Hz6-mo-xeY" secondAttribute="centerX" id="n4G-w8-dKr"/>
|
|
||||||
<constraint firstItem="i8H-oP-Sif" firstAttribute="width" secondItem="rzc-AK-4Vr" secondAttribute="width" id="xG0-RB-Iyt"/>
|
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="-186" y="-587"/>
|
<point key="canvasLocation" x="-200" y="-636"/>
|
||||||
</customView>
|
</customView>
|
||||||
<userDefaultsController representsSharedInstance="YES" id="BZm-iR-6oK"/>
|
<userDefaultsController representsSharedInstance="YES" id="BZm-iR-6oK"/>
|
||||||
</objects>
|
</objects>
|
||||||
|
|||||||
@@ -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="24127" 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="24127"/>
|
||||||
<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>
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
<outlet property="setsPopUp" destination="179" id="hl9-DS-qsm"/>
|
<outlet property="setsPopUp" destination="179" id="hl9-DS-qsm"/>
|
||||||
<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="fFP-8i-4SK"/>
|
||||||
</connections>
|
</connections>
|
||||||
</customObject>
|
</customObject>
|
||||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||||
@@ -31,35 +32,27 @@
|
|||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<button toolTip="Add an artwork" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="223">
|
<button toolTip="Add an artwork" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="223">
|
||||||
<rect key="frame" x="20" y="58" width="25" height="22"/>
|
<rect key="frame" x="13" y="52" width="44" height="32"/>
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="224">
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSAddTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="224">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="height" constant="20" id="oYK-j2-5dM"/>
|
|
||||||
<constraint firstAttribute="width" constant="25" id="rcu-X5-nFG"/>
|
|
||||||
</constraints>
|
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="selectArtwork:" target="-2" id="232"/>
|
<action selector="selectArtwork:" target="-2" id="232"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Remove selected artwork" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="226">
|
<button toolTip="Remove selected artwork" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="226">
|
||||||
<rect key="frame" x="44" y="58" width="25" height="22"/>
|
<rect key="frame" x="45" y="52" width="44" height="32"/>
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="227">
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSRemoveTemplate" imagePosition="only" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="227">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" constant="25" id="CRL-bR-7Ew"/>
|
|
||||||
<constraint firstAttribute="height" constant="20" id="ni3-qc-LeG"/>
|
|
||||||
</constraints>
|
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="removeArtwork:" target="-2" id="231"/>
|
<action selector="removeArtwork:" target="-2" id="231"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<slider toolTip="Change artworks view zoom" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="235">
|
<slider toolTip="Change artworks view zoom" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="235">
|
||||||
<rect key="frame" x="117" y="59" width="84" height="20"/>
|
<rect key="frame" x="118" y="59" width="84" height="20"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" constant="80" id="QRF-MH-hBi"/>
|
<constraint firstAttribute="width" constant="80" id="QRF-MH-hBi"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
@@ -68,11 +61,11 @@
|
|||||||
<action selector="zoomSliderDidChange:" target="-2" id="237"/>
|
<action selector="zoomSliderDidChange:" target="-2" id="237"/>
|
||||||
</connections>
|
</connections>
|
||||||
</slider>
|
</slider>
|
||||||
<popUpButton toolTip="Add a new metadata item" translatesAutoresizingMaskIntoConstraints="NO" id="30">
|
<popUpButton toolTip="Add a new metadata item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="30">
|
||||||
<rect key="frame" x="207" y="58" width="32" height="22"/>
|
<rect key="frame" x="205" y="55" width="53" height="25"/>
|
||||||
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" pullsDown="YES" id="31">
|
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="center" lineBreakMode="truncatingTail" borderStyle="border" inset="2" pullsDown="YES" id="31">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" id="32">
|
<menu key="menu" id="32">
|
||||||
<items>
|
<items>
|
||||||
<menuItem image="NSAddTemplate" hidden="YES" id="33">
|
<menuItem image="NSAddTemplate" hidden="YES" id="33">
|
||||||
@@ -81,35 +74,27 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="height" constant="20" id="FwO-uK-Ro2"/>
|
|
||||||
<constraint firstAttribute="width" constant="32" id="OwN-pr-6cc"/>
|
|
||||||
</constraints>
|
|
||||||
<accessibility description="Add metadata item"/>
|
<accessibility description="Add metadata item"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="addTag:" target="-2" id="37"/>
|
<action selector="addTag:" target="-2" id="37"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="53">
|
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="53">
|
||||||
<rect key="frame" x="238" y="58" width="24" height="22"/>
|
<rect key="frame" x="249" y="52" width="44" height="32"/>
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSRemoveTemplate" imagePosition="only" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="height" constant="20" id="EIo-Lg-ZeL"/>
|
|
||||||
<constraint firstAttribute="width" constant="24" id="s0Y-ye-DSo"/>
|
|
||||||
</constraints>
|
|
||||||
<accessibility description="Remove selected item"/>
|
<accessibility description="Remove selected item"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="removeTag:" target="-2" id="55"/>
|
<action selector="removeTag:" target="-2" id="55"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="179">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="179">
|
||||||
<rect key="frame" x="270" y="58" width="35" height="22"/>
|
<rect key="frame" x="299" y="55" width="54" height="25"/>
|
||||||
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" pullsDown="YES" selectedItem="184" id="180">
|
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="center" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" pullsDown="YES" selectedItem="184" id="180">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" id="181">
|
<menu key="menu" id="181">
|
||||||
<items>
|
<items>
|
||||||
<menuItem image="NSActionTemplate" hidden="YES" id="184">
|
<menuItem image="NSActionTemplate" hidden="YES" id="184">
|
||||||
@@ -118,20 +103,16 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" constant="35" id="8JP-5S-7Ff"/>
|
|
||||||
<constraint firstAttribute="height" constant="20" id="SNb-1F-FBI"/>
|
|
||||||
</constraints>
|
|
||||||
<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="208" y="87" width="448" height="250"/>
|
<rect key="frame" x="208" y="89" width="448" height="248"/>
|
||||||
<clipView key="contentView" id="cQT-bX-0YB">
|
<clipView key="contentView" id="cQT-bX-0YB">
|
||||||
<rect key="frame" x="1" y="1" width="446" height="248"/>
|
<rect key="frame" x="1" y="1" width="446" height="246"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" 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" 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="447" height="225"/>
|
<rect key="frame" x="0.0" y="0.0" width="446" height="223"/>
|
||||||
<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"/>
|
||||||
@@ -175,7 +156,7 @@
|
|||||||
</tableCellView>
|
</tableCellView>
|
||||||
</prototypeCellViews>
|
</prototypeCellViews>
|
||||||
</tableColumn>
|
</tableColumn>
|
||||||
<tableColumn identifier="value" width="314" minWidth="40" maxWidth="4000" id="os0-Yb-exW">
|
<tableColumn identifier="value" width="285" minWidth="40" maxWidth="4000" id="os0-Yb-exW">
|
||||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Value">
|
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Value">
|
||||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -188,11 +169,11 @@
|
|||||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||||
<prototypeCellViews>
|
<prototypeCellViews>
|
||||||
<tableCellView identifier="TextCell" id="mjh-te-NdK">
|
<tableCellView identifier="TextCell" id="mjh-te-NdK">
|
||||||
<rect key="frame" x="127" y="1" width="318" height="14"/>
|
<rect key="frame" x="127" y="1" width="289" height="14"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T0o-RG-lfn">
|
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T0o-RG-lfn">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="318" height="14"/>
|
<rect key="frame" x="0.0" y="0.0" width="289" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="WRR-52-lxo">
|
<textFieldCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="WRR-52-lxo">
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message" size="11"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -214,11 +195,11 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</tableCellView>
|
</tableCellView>
|
||||||
<tableCellView identifier="TextCellForSizing" id="OUW-Fk-klv">
|
<tableCellView identifier="TextCellForSizing" id="OUW-Fk-klv">
|
||||||
<rect key="frame" x="127" y="17" width="318" height="14"/>
|
<rect key="frame" x="127" y="17" width="289" height="14"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AmC-rT-7Rf">
|
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AmC-rT-7Rf">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="318" height="14"/>
|
<rect key="frame" x="0.0" y="0.0" width="289" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" id="ipR-OL-rI2">
|
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" id="ipR-OL-rI2">
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message" size="11"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -237,11 +218,11 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</tableCellView>
|
</tableCellView>
|
||||||
<tableCellView identifier="PopUpCell" id="JEU-aR-J9v" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
|
<tableCellView identifier="PopUpCell" id="JEU-aR-J9v" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="127" y="33" width="318" height="14"/>
|
<rect key="frame" x="127" y="33" width="289" height="14"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="cFv-4U-VzM">
|
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="cFv-4U-VzM">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="312" height="14"/>
|
<rect key="frame" x="0.0" y="0.0" width="283" height="14"/>
|
||||||
<popUpButtonCell key="cell" type="bevel" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" selectedItem="6Zb-NM-Mmo" id="Myn-C3-tc4">
|
<popUpButtonCell key="cell" type="bevel" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" selectedItem="6Zb-NM-Mmo" id="Myn-C3-tc4">
|
||||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message" size="11"/>
|
||||||
@@ -266,11 +247,11 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</tableCellView>
|
</tableCellView>
|
||||||
<tableCellView identifier="BoolCell" id="DGy-Nb-PAN" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
|
<tableCellView identifier="BoolCell" id="DGy-Nb-PAN" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="127" y="49" width="318" height="17"/>
|
<rect key="frame" x="127" y="49" width="289" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="oyk-jS-zmh">
|
<button translatesAutoresizingMaskIntoConstraints="NO" id="oyk-jS-zmh">
|
||||||
<rect key="frame" x="2" y="-1" width="314" height="19"/>
|
<rect key="frame" x="2" y="-1" width="285" height="19"/>
|
||||||
<buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="f5s-ar-fW6">
|
<buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="f5s-ar-fW6">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message" size="11"/>
|
||||||
@@ -291,11 +272,11 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</tableCellView>
|
</tableCellView>
|
||||||
<tableCellView identifier="ComboCell" id="vy5-48-Vip" customClass="ComboBoxCellView" customModule="Subler" customModuleProvider="target">
|
<tableCellView identifier="ComboCell" id="vy5-48-Vip" customClass="ComboBoxCellView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="127" y="68" width="318" height="17"/>
|
<rect key="frame" x="127" y="68" width="289" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="LbC-r6-Pau">
|
<comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="LbC-r6-Pau">
|
||||||
<rect key="frame" x="2" y="0.0" width="312" height="19"/>
|
<rect key="frame" x="2" y="0.0" width="283" height="19"/>
|
||||||
<comboBoxCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" alignment="left" usesSingleLineMode="YES" buttonBordered="NO" numberOfVisibleItems="5" id="jkg-xz-Hbn">
|
<comboBoxCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" alignment="left" usesSingleLineMode="YES" buttonBordered="NO" numberOfVisibleItems="5" id="jkg-xz-Hbn">
|
||||||
<font key="font" metaFont="message" size="11"/>
|
<font key="font" metaFont="message" size="11"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -326,8 +307,8 @@
|
|||||||
</tableView>
|
</tableView>
|
||||||
</subviews>
|
</subviews>
|
||||||
</clipView>
|
</clipView>
|
||||||
<scroller key="horizontalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="tkU-nC-Bdd">
|
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="tkU-nC-Bdd">
|
||||||
<rect key="frame" x="1" y="233" width="446" height="16"/>
|
<rect key="frame" x="1" y="231" width="446" height="16"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="B65-gn-id0">
|
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="B65-gn-id0">
|
||||||
@@ -335,7 +316,7 @@
|
|||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
<tableHeaderView key="headerView" wantsLayer="YES" id="qXU-xB-xRF">
|
<tableHeaderView key="headerView" wantsLayer="YES" id="qXU-xB-xRF">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="447" height="23"/>
|
<rect key="frame" x="0.0" y="0.0" width="446" height="23"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</tableHeaderView>
|
</tableHeaderView>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
@@ -421,33 +402,33 @@
|
|||||||
<constraint firstAttribute="trailing" secondItem="RvM-No-Mwg" secondAttribute="trailing" constant="20" id="1Va-CN-zbu"/>
|
<constraint firstAttribute="trailing" secondItem="RvM-No-Mwg" secondAttribute="trailing" constant="20" id="1Va-CN-zbu"/>
|
||||||
<constraint firstItem="r4i-wT-qDC" firstAttribute="leading" secondItem="3Ac-rb-Kn1" secondAttribute="trailing" constant="8" symbolic="YES" id="1cm-wR-oSm"/>
|
<constraint firstItem="r4i-wT-qDC" firstAttribute="leading" secondItem="3Ac-rb-Kn1" secondAttribute="trailing" constant="8" symbolic="YES" id="1cm-wR-oSm"/>
|
||||||
<constraint firstItem="Bmy-64-g1U" firstAttribute="firstBaseline" secondItem="aKt-Ed-1jG" secondAttribute="firstBaseline" id="1vd-dr-ZyG"/>
|
<constraint firstItem="Bmy-64-g1U" firstAttribute="firstBaseline" secondItem="aKt-Ed-1jG" secondAttribute="firstBaseline" id="1vd-dr-ZyG"/>
|
||||||
<constraint firstItem="223" firstAttribute="top" secondItem="3Ac-rb-Kn1" secondAttribute="bottom" constant="8" symbolic="YES" id="74e-Mf-nNB"/>
|
<constraint firstItem="226" firstAttribute="firstBaseline" secondItem="235" secondAttribute="firstBaseline" id="6hT-HA-5KM"/>
|
||||||
<constraint firstItem="226" firstAttribute="leading" secondItem="223" secondAttribute="trailing" constant="-1" id="7tB-nW-cen"/>
|
<constraint firstItem="223" firstAttribute="top" secondItem="3Ac-rb-Kn1" secondAttribute="bottom" constant="8" id="74e-Mf-nNB"/>
|
||||||
|
<constraint firstItem="226" firstAttribute="leading" secondItem="223" secondAttribute="trailing" constant="2" id="7tB-nW-cen"/>
|
||||||
<constraint firstItem="223" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" symbolic="YES" id="8Zj-EW-Vyb"/>
|
<constraint firstItem="223" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" symbolic="YES" id="8Zj-EW-Vyb"/>
|
||||||
<constraint firstItem="235" firstAttribute="centerY" secondItem="226" secondAttribute="centerY" id="CbE-lC-Wv3"/>
|
<constraint firstItem="226" firstAttribute="firstBaseline" secondItem="223" secondAttribute="firstBaseline" id="EgB-Zm-8pA"/>
|
||||||
<constraint firstItem="30" firstAttribute="leading" secondItem="235" secondAttribute="trailing" constant="8" symbolic="YES" id="F2d-dE-tnx"/>
|
<constraint firstItem="30" firstAttribute="leading" secondItem="235" secondAttribute="trailing" constant="8" symbolic="YES" id="F2d-dE-tnx"/>
|
||||||
<constraint firstItem="30" firstAttribute="centerY" secondItem="53" secondAttribute="centerY" id="Gb1-qz-uOA"/>
|
|
||||||
<constraint firstItem="3Ac-rb-Kn1" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" symbolic="YES" id="HAd-d5-Zqq"/>
|
<constraint firstItem="3Ac-rb-Kn1" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" symbolic="YES" id="HAd-d5-Zqq"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="87e-za-hJV" secondAttribute="bottom" constant="20" symbolic="YES" id="KmM-wz-0vL"/>
|
<constraint firstAttribute="bottom" secondItem="87e-za-hJV" secondAttribute="bottom" constant="20" symbolic="YES" id="KmM-wz-0vL"/>
|
||||||
<constraint firstItem="235" firstAttribute="leading" secondItem="226" secondAttribute="trailing" constant="50" id="PPb-LG-b6P"/>
|
<constraint firstItem="53" firstAttribute="leading" secondItem="30" secondAttribute="trailing" constant="2" id="SLY-iP-zbc"/>
|
||||||
<constraint firstItem="235" firstAttribute="centerY" secondItem="30" secondAttribute="centerY" id="Rt6-r3-gRX"/>
|
|
||||||
<constraint firstItem="53" firstAttribute="leading" secondItem="30" secondAttribute="trailing" constant="-1" id="SLY-iP-zbc"/>
|
|
||||||
<constraint firstItem="3Ac-rb-Kn1" firstAttribute="top" secondItem="RvM-No-Mwg" secondAttribute="bottom" constant="10" id="U9m-z8-qMt"/>
|
<constraint firstItem="3Ac-rb-Kn1" firstAttribute="top" secondItem="RvM-No-Mwg" secondAttribute="bottom" constant="10" id="U9m-z8-qMt"/>
|
||||||
<constraint firstItem="Bmy-64-g1U" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" symbolic="YES" id="XWe-w9-IAz"/>
|
<constraint firstItem="Bmy-64-g1U" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" symbolic="YES" id="XWe-w9-IAz"/>
|
||||||
|
<constraint firstItem="235" firstAttribute="firstBaseline" secondItem="30" secondAttribute="firstBaseline" id="YBQ-Ew-mzj"/>
|
||||||
<constraint firstItem="RvM-No-Mwg" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" id="a5X-ng-Nlh"/>
|
<constraint firstItem="RvM-No-Mwg" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" id="a5X-ng-Nlh"/>
|
||||||
<constraint firstItem="Bmy-64-g1U" firstAttribute="top" secondItem="223" secondAttribute="bottom" constant="20" id="beI-tF-PTE"/>
|
<constraint firstItem="Bmy-64-g1U" firstAttribute="top" secondItem="223" secondAttribute="bottom" constant="20" id="beI-tF-PTE"/>
|
||||||
<constraint firstItem="226" firstAttribute="centerY" secondItem="223" secondAttribute="centerY" id="eWE-NB-Wul"/>
|
|
||||||
<constraint firstItem="87e-za-hJV" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="aKt-Ed-1jG" secondAttribute="trailing" constant="8" symbolic="YES" id="fIT-dN-zIE"/>
|
<constraint firstItem="87e-za-hJV" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="aKt-Ed-1jG" secondAttribute="trailing" constant="8" symbolic="YES" id="fIT-dN-zIE"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="87e-za-hJV" secondAttribute="trailing" constant="20" id="hm1-Tx-JAI"/>
|
<constraint firstAttribute="trailing" secondItem="87e-za-hJV" secondAttribute="trailing" constant="20" id="hm1-Tx-JAI"/>
|
||||||
|
<constraint firstItem="30" firstAttribute="top" secondItem="53" secondAttribute="top" id="iDy-bp-bu4"/>
|
||||||
|
<constraint firstItem="235" firstAttribute="trailing" secondItem="3Ac-rb-Kn1" secondAttribute="trailing" id="iFX-NK-Yis"/>
|
||||||
<constraint firstItem="r4i-wT-qDC" firstAttribute="top" secondItem="RvM-No-Mwg" secondAttribute="bottom" constant="10" id="iqg-eq-k2z"/>
|
<constraint firstItem="r4i-wT-qDC" firstAttribute="top" secondItem="RvM-No-Mwg" secondAttribute="bottom" constant="10" id="iqg-eq-k2z"/>
|
||||||
<constraint firstItem="aKt-Ed-1jG" firstAttribute="firstBaseline" secondItem="87e-za-hJV" secondAttribute="firstBaseline" id="jRn-Mm-dWK"/>
|
<constraint firstItem="aKt-Ed-1jG" firstAttribute="firstBaseline" secondItem="87e-za-hJV" secondAttribute="firstBaseline" id="jRn-Mm-dWK"/>
|
||||||
<constraint firstItem="RvM-No-Mwg" firstAttribute="top" secondItem="1" secondAttribute="top" constant="10" id="k2D-op-c65"/>
|
<constraint firstItem="RvM-No-Mwg" firstAttribute="top" secondItem="1" secondAttribute="top" constant="10" id="k2D-op-c65"/>
|
||||||
<constraint firstItem="30" firstAttribute="top" secondItem="r4i-wT-qDC" secondAttribute="bottom" constant="8" symbolic="YES" id="kzG-BO-fiE"/>
|
|
||||||
<constraint firstItem="53" firstAttribute="centerY" secondItem="179" secondAttribute="centerY" id="prk-Ob-Q8v"/>
|
|
||||||
<constraint firstAttribute="trailing" secondItem="r4i-wT-qDC" secondAttribute="trailing" constant="20" id="w3O-Hw-KeB"/>
|
<constraint firstAttribute="trailing" secondItem="r4i-wT-qDC" secondAttribute="trailing" constant="20" id="w3O-Hw-KeB"/>
|
||||||
<constraint firstItem="179" firstAttribute="leading" secondItem="53" secondAttribute="trailing" constant="8" symbolic="YES" id="wzu-l1-8QD"/>
|
<constraint firstItem="30" firstAttribute="top" secondItem="r4i-wT-qDC" secondAttribute="bottom" constant="10" id="wEi-0v-zHU"/>
|
||||||
|
<constraint firstItem="179" firstAttribute="leading" secondItem="53" secondAttribute="trailing" constant="16" id="wzu-l1-8QD"/>
|
||||||
|
<constraint firstItem="53" firstAttribute="top" secondItem="179" secondAttribute="top" id="yLs-nz-mLs"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="146" y="-91.5"/>
|
<point key="canvasLocation" x="227" y="-39.5"/>
|
||||||
</customView>
|
</customView>
|
||||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" visibleAtLaunch="NO" animationBehavior="default" id="167" userLabel="Preset Save">
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" visibleAtLaunch="NO" animationBehavior="default" id="167" userLabel="Preset Save">
|
||||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
||||||
@@ -536,7 +517,7 @@ Gw
|
|||||||
<constraint firstAttribute="trailing" secondItem="170" secondAttribute="trailing" constant="20" id="xh2-2u-G14"/>
|
<constraint firstAttribute="trailing" secondItem="170" secondAttribute="trailing" constant="20" id="xh2-2u-G14"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
<point key="canvasLocation" x="215" y="-265"/>
|
<point key="canvasLocation" x="227" y="314"/>
|
||||||
</window>
|
</window>
|
||||||
<userDefaultsController representsSharedInstance="YES" id="z7a-RX-pNz"/>
|
<userDefaultsController representsSharedInstance="YES" id="z7a-RX-pNz"/>
|
||||||
</objects>
|
</objects>
|
||||||
|
|||||||
@@ -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="17506" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17506"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
<rect key="frame" x="1" y="1" width="351" height="17"/>
|
<rect key="frame" x="1" y="1" width="351" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gVw-WH-PIZ">
|
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gVw-WH-PIZ">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="350" height="17"/>
|
<rect key="frame" x="0.0" y="0.0" width="350" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="06q-GJ-S35">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="06q-GJ-S35">
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
<rect key="frame" x="1" y="20" width="351" height="17"/>
|
<rect key="frame" x="1" y="20" width="351" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="G0s-9P-sPN">
|
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="G0s-9P-sPN">
|
||||||
<rect key="frame" x="0.0" y="1" width="350" height="14"/>
|
<rect key="frame" x="0.0" y="1" width="350" height="14"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="6CG-pa-ocP">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="6CG-pa-ocP">
|
||||||
@@ -102,22 +102,18 @@
|
|||||||
<constraint firstAttribute="height" constant="200" id="JWr-Hr-fVF"/>
|
<constraint firstAttribute="height" constant="200" id="JWr-Hr-fVF"/>
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="356" id="m8D-Ig-Qb7"/>
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="356" id="m8D-Ig-Qb7"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="D9w-7o-pBY">
|
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="D9w-7o-pBY">
|
||||||
<rect key="frame" x="1" y="184" width="354" height="15"/>
|
<rect key="frame" x="1" y="184" width="354" height="15"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="Z7j-pj-gXo">
|
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="Z7j-pj-gXo">
|
||||||
<rect key="frame" x="-15" y="1" width="16" height="0.0"/>
|
<rect key="frame" x="-15" y="1" width="16" height="0.0"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
<button toolTip="Remove selected set" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="SIg-lA-6FA">
|
<button toolTip="Remove selected set" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="SIg-lA-6FA">
|
||||||
<rect key="frame" x="44" y="19" width="25" height="23"/>
|
<rect key="frame" x="45" y="13" width="44" height="32"/>
|
||||||
<constraints>
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSRemoveTemplate" imagePosition="only" alignment="center" enabled="NO" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Y2I-ux-1v2">
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="25" id="KCi-qM-zwt"/>
|
|
||||||
<constraint firstAttribute="height" constant="21" id="MLy-Qh-J3X"/>
|
|
||||||
</constraints>
|
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Y2I-ux-1v2">
|
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
@@ -126,11 +122,8 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Edit selected set" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="C1d-lu-T7S">
|
<button toolTip="Edit selected set" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="C1d-lu-T7S">
|
||||||
<rect key="frame" x="85" y="19" width="45" height="23"/>
|
<rect key="frame" x="91" y="13" width="58" height="32"/>
|
||||||
<constraints>
|
<buttonCell key="cell" type="push" title="Edit" bezelStyle="rounded" alignment="center" enabled="NO" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="W45-Bf-XCJ">
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="45" id="8we-xP-MsB"/>
|
|
||||||
</constraints>
|
|
||||||
<buttonCell key="cell" type="smallSquare" title="Edit" bezelStyle="smallSquare" imagePosition="overlaps" alignment="center" enabled="NO" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="W45-Bf-XCJ">
|
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
@@ -139,12 +132,8 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Remove selected set" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gBf-6T-hQv">
|
<button toolTip="Remove selected set" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gBf-6T-hQv">
|
||||||
<rect key="frame" x="20" y="19" width="25" height="23"/>
|
<rect key="frame" x="13" y="13" width="44" height="32"/>
|
||||||
<constraints>
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSAddTemplate" imagePosition="only" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="f7j-PR-nTF">
|
||||||
<constraint firstAttribute="height" constant="21" id="6f5-Cg-MfD"/>
|
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="25" id="x23-FV-5XN"/>
|
|
||||||
</constraints>
|
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="f7j-PR-nTF">
|
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
@@ -154,24 +143,23 @@
|
|||||||
</button>
|
</button>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstItem="gBf-6T-hQv" firstAttribute="top" secondItem="Bgi-pA-eAO" secondAttribute="bottom" constant="7" id="7F4-d2-isf"/>
|
<constraint firstItem="gBf-6T-hQv" firstAttribute="top" secondItem="Bgi-pA-eAO" secondAttribute="bottom" constant="8" id="7F4-d2-isf"/>
|
||||||
<constraint firstItem="Bgi-pA-eAO" firstAttribute="top" secondItem="Sl5-b6-dQC" secondAttribute="top" constant="20" id="CfB-Vj-Oio"/>
|
<constraint firstItem="Bgi-pA-eAO" firstAttribute="top" secondItem="Sl5-b6-dQC" secondAttribute="top" constant="20" id="CfB-Vj-Oio"/>
|
||||||
<constraint firstItem="C1d-lu-T7S" firstAttribute="centerY" secondItem="SIg-lA-6FA" secondAttribute="centerY" id="D3e-th-GNg"/>
|
|
||||||
<constraint firstItem="C1d-lu-T7S" firstAttribute="leading" secondItem="SIg-lA-6FA" secondAttribute="trailing" constant="16" id="R2g-fk-MQZ"/>
|
<constraint firstItem="C1d-lu-T7S" firstAttribute="leading" secondItem="SIg-lA-6FA" secondAttribute="trailing" constant="16" id="R2g-fk-MQZ"/>
|
||||||
<constraint firstItem="Bgi-pA-eAO" firstAttribute="leading" secondItem="Sl5-b6-dQC" secondAttribute="leading" constant="20" id="SNz-hG-5Nz"/>
|
<constraint firstItem="Bgi-pA-eAO" firstAttribute="leading" secondItem="Sl5-b6-dQC" secondAttribute="leading" constant="20" id="SNz-hG-5Nz"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="gBf-6T-hQv" secondAttribute="bottom" constant="20" id="UFw-zI-fr5"/>
|
<constraint firstAttribute="bottom" secondItem="gBf-6T-hQv" secondAttribute="bottom" constant="20" id="UFw-zI-fr5"/>
|
||||||
<constraint firstItem="C1d-lu-T7S" firstAttribute="height" secondItem="SIg-lA-6FA" secondAttribute="height" id="aBA-kq-8vQ"/>
|
<constraint firstItem="gBf-6T-hQv" firstAttribute="firstBaseline" secondItem="SIg-lA-6FA" secondAttribute="firstBaseline" id="cTP-Hu-NGv"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="Bgi-pA-eAO" secondAttribute="trailing" constant="20" id="cgL-bl-uVt"/>
|
<constraint firstAttribute="trailing" secondItem="Bgi-pA-eAO" secondAttribute="trailing" constant="20" id="cgL-bl-uVt"/>
|
||||||
|
<constraint firstItem="C1d-lu-T7S" firstAttribute="top" secondItem="SIg-lA-6FA" secondAttribute="top" id="d4R-oi-p96"/>
|
||||||
<constraint firstItem="gBf-6T-hQv" firstAttribute="leading" secondItem="Sl5-b6-dQC" secondAttribute="leading" constant="20" id="faN-Ws-UIJ"/>
|
<constraint firstItem="gBf-6T-hQv" firstAttribute="leading" secondItem="Sl5-b6-dQC" secondAttribute="leading" constant="20" id="faN-Ws-UIJ"/>
|
||||||
<constraint firstItem="SIg-lA-6FA" firstAttribute="leading" secondItem="gBf-6T-hQv" secondAttribute="trailing" constant="-1" id="opb-OA-4BC"/>
|
<constraint firstItem="SIg-lA-6FA" firstAttribute="leading" secondItem="gBf-6T-hQv" secondAttribute="trailing" constant="2" id="opb-OA-4BC"/>
|
||||||
<constraint firstItem="gBf-6T-hQv" firstAttribute="centerY" secondItem="SIg-lA-6FA" secondAttribute="centerY" id="ux5-dx-1Iq"/>
|
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="C1d-lu-T7S" secondAttribute="trailing" constant="20" symbolic="YES" id="ydN-Lk-gHL"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="C1d-lu-T7S" secondAttribute="trailing" constant="20" symbolic="YES" id="ydN-Lk-gHL"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="-347" y="-669"/>
|
<point key="canvasLocation" x="-347" y="-669"/>
|
||||||
</customView>
|
</customView>
|
||||||
</objects>
|
</objects>
|
||||||
<resources>
|
<resources>
|
||||||
<image name="NSAddTemplate" width="14" height="13"/>
|
<image name="NSAddTemplate" width="18" height="17"/>
|
||||||
<image name="NSRemoveTemplate" width="14" height="4"/>
|
<image name="NSRemoveTemplate" width="18" height="5"/>
|
||||||
</resources>
|
</resources>
|
||||||
</document>
|
</document>
|
||||||
@@ -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="14460.30.1" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14460.30.1"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -17,11 +17,11 @@
|
|||||||
<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"/>
|
||||||
<view id="OYD-Bw-L9a">
|
<view id="OYD-Bw-L9a">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="297" height="121"/>
|
<rect key="frame" x="0.0" y="0.0" width="297" height="119"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3gK-a2-TtL">
|
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3gK-a2-TtL">
|
||||||
<rect key="frame" x="18" y="84" width="55" height="17"/>
|
<rect key="frame" x="18" y="83" width="55" height="16"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Saving…" id="1QY-aq-f1i">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Saving…" id="1QY-aq-f1i">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -29,10 +29,10 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<progressIndicator verticalHuggingPriority="750" maxValue="100" bezeled="NO" indeterminate="YES" style="bar" translatesAutoresizingMaskIntoConstraints="NO" id="pqx-62-iaO">
|
<progressIndicator verticalHuggingPriority="750" maxValue="100" bezeled="NO" indeterminate="YES" style="bar" translatesAutoresizingMaskIntoConstraints="NO" id="pqx-62-iaO">
|
||||||
<rect key="frame" x="20" y="56" width="257" height="20"/>
|
<rect key="frame" x="20" y="55" width="257" height="20"/>
|
||||||
</progressIndicator>
|
</progressIndicator>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="HZz-pP-MXs">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="HZz-pP-MXs">
|
||||||
<rect key="frame" x="201" y="12" width="82" height="32"/>
|
<rect key="frame" x="208" y="12" width="76" height="32"/>
|
||||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="13i-3e-aOA">
|
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="13i-3e-aOA">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -57,7 +57,7 @@ Gw
|
|||||||
<constraint firstItem="HZz-pP-MXs" firstAttribute="top" secondItem="pqx-62-iaO" secondAttribute="bottom" constant="17" id="pCC-91-sdi"/>
|
<constraint firstItem="HZz-pP-MXs" firstAttribute="top" secondItem="pqx-62-iaO" secondAttribute="bottom" constant="17" id="pCC-91-sdi"/>
|
||||||
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="3gK-a2-TtL" secondAttribute="trailing" constant="20" id="xBf-Ds-zaq"/>
|
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="3gK-a2-TtL" secondAttribute="trailing" constant="20" id="xBf-Ds-zaq"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="-65.5" y="-65.5"/>
|
<point key="canvasLocation" x="248" y="-80"/>
|
||||||
</view>
|
</view>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
@@ -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" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22690"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
</button>
|
</button>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" verticalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="zba-Ja-Te5">
|
<textField verticalHuggingPriority="750" verticalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="zba-Ja-Te5">
|
||||||
<rect key="frame" x="18" y="55" width="76" height="16"/>
|
<rect key="frame" x="18" y="55" width="76" height="16"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Options:" id="BXP-AU-x3T">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Options:" id="BXP-AU-x3T">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
<action selector="setSaveFormat:" target="-2" id="sGj-K4-KMX"/>
|
<action selector="setSaveFormat:" target="-2" id="sGj-K4-KMX"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField focusRingType="none" verticalHuggingPriority="750" verticalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="XpL-JT-4Ap">
|
<textField verticalHuggingPriority="750" verticalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="XpL-JT-4Ap">
|
||||||
<rect key="frame" x="18" y="80" width="76" height="16"/>
|
<rect key="frame" x="18" y="80" width="76" height="16"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="File Format:" id="caN-zU-chS">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="File Format:" id="caN-zU-chS">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
|
|||||||
@@ -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="13770" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13770"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -15,11 +15,11 @@
|
|||||||
<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 id="Hz6-mo-xeY">
|
<customView id="Hz6-mo-xeY">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="400" height="16"/>
|
<rect key="frame" x="0.0" y="0.0" width="400" height="15"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tokenField verticalHuggingPriority="750" verticalCompressionResistancePriority="1000" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="3eA-Oq-Zyv">
|
<tokenField verticalHuggingPriority="750" verticalCompressionResistancePriority="1000" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="3eA-Oq-Zyv">
|
||||||
<rect key="frame" x="-2" y="0.0" width="404" height="16"/>
|
<rect key="frame" x="-2" y="0.0" width="404" height="15"/>
|
||||||
<tokenFieldCell key="cell" selectable="YES" alignment="left" allowsEditingTextAttributes="YES" id="hFL-Bt-Qm9">
|
<tokenFieldCell key="cell" selectable="YES" alignment="left" allowsEditingTextAttributes="YES" id="hFL-Bt-Qm9">
|
||||||
<font key="font" metaFont="cellTitle"/>
|
<font key="font" metaFont="cellTitle"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
|||||||
@@ -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="17506" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17506"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||||
<prototypeCellViews>
|
<prototypeCellViews>
|
||||||
<tableCellView identifier="trackEnabled" id="Gfc-fL-316" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
|
<tableCellView identifier="trackEnabled" id="Gfc-fL-316" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="36" y="1" width="18" height="17"/>
|
<rect key="frame" x="35.5" y="1" width="18" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<button toolTip="Enable or disable the track" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="JD5-tO-uQc">
|
<button toolTip="Enable or disable the track" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="JD5-tO-uQc">
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||||
<prototypeCellViews>
|
<prototypeCellViews>
|
||||||
<tableCellView identifier="trackName" id="9fL-77-imQ">
|
<tableCellView identifier="trackName" id="9fL-77-imQ">
|
||||||
<rect key="frame" x="57" y="1" width="267" height="17"/>
|
<rect key="frame" x="56.5" y="1" width="267" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gyX-Aq-rgC">
|
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gyX-Aq-rgC">
|
||||||
@@ -182,7 +182,7 @@
|
|||||||
</tableCellView>
|
</tableCellView>
|
||||||
</prototypeCellViews>
|
</prototypeCellViews>
|
||||||
</tableColumn>
|
</tableColumn>
|
||||||
<tableColumn identifier="trackLanguage" width="149" minWidth="130" maxWidth="200" id="qGd-Uo-RvP">
|
<tableColumn identifier="trackLanguage" width="149.5" minWidth="130" maxWidth="200" id="qGd-Uo-RvP">
|
||||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Language">
|
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Language">
|
||||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -195,15 +195,15 @@
|
|||||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||||
<prototypeCellViews>
|
<prototypeCellViews>
|
||||||
<tableCellView identifier="trackLanguage" id="iMB-mM-hYa" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
|
<tableCellView identifier="trackLanguage" id="iMB-mM-hYa" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="420" y="1" width="149" height="17"/>
|
<rect key="frame" x="420" y="1" width="150" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<popUpButton fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Afo-xh-8aB">
|
<popUpButton fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Afo-xh-8aB">
|
||||||
<rect key="frame" x="3" y="0.0" width="143" height="18"/>
|
<rect key="frame" x="3" y="0.0" width="144" height="18"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||||
<popUpButtonCell key="cell" type="bevel" bezelStyle="regularSquare" alignment="right" lineBreakMode="truncatingTail" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" id="WuP-cy-d5d">
|
<popUpButtonCell key="cell" type="bevel" bezelStyle="regularSquare" alignment="right" lineBreakMode="truncatingTail" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" id="WuP-cy-d5d">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="menu"/>
|
<font key="font" metaFont="message"/>
|
||||||
<menu key="menu" autoenablesItems="NO" id="kca-wV-cAJ"/>
|
<menu key="menu" autoenablesItems="NO" id="kca-wV-cAJ"/>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
<connections>
|
<connections>
|
||||||
@@ -230,11 +230,11 @@
|
|||||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||||
<prototypeCellViews>
|
<prototypeCellViews>
|
||||||
<tableCellView identifier="trackInfo" id="gfy-Nm-dJU">
|
<tableCellView identifier="trackInfo" id="gfy-Nm-dJU">
|
||||||
<rect key="frame" x="572" y="1" width="158" height="17"/>
|
<rect key="frame" x="572.5" y="1" width="157" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="aWa-JY-QEe">
|
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="aWa-JY-QEe">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="158" height="17"/>
|
<rect key="frame" x="0.0" y="0.0" width="157" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" id="3I9-re-Mst">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" id="3I9-re-Mst">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -248,11 +248,11 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</tableCellView>
|
</tableCellView>
|
||||||
<tableCellView identifier="DisabledFormatCell" id="Nfv-nQ-DF5">
|
<tableCellView identifier="DisabledFormatCell" id="Nfv-nQ-DF5">
|
||||||
<rect key="frame" x="572" y="20" width="158" height="17"/>
|
<rect key="frame" x="572.5" y="20" width="157" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ezM-ed-YTi">
|
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ezM-ed-YTi">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="158" height="17"/>
|
<rect key="frame" x="0.0" y="0.0" width="157" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" id="y3u-NN-Et0">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" id="y3u-NN-Et0">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
|
|||||||
@@ -34,13 +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.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
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ final class ChapterSearchController: ViewController, NSTableViewDataSource, NSTa
|
|||||||
|
|
||||||
switch info {
|
switch info {
|
||||||
|
|
||||||
case .movie(let title):
|
case .movie(let title, _, _):
|
||||||
searchTerm = title
|
searchTerm = title
|
||||||
case .tvShow, .none:
|
case .tvShow, .none:
|
||||||
searchTerm = title
|
searchTerm = title
|
||||||
|
|||||||
@@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,7 @@ import Cocoa
|
|||||||
@MainActor @objc optional func collectionViewPaste(to collectionView: NSCollectionView)
|
@MainActor @objc optional func collectionViewPaste(to collectionView: NSCollectionView)
|
||||||
}
|
}
|
||||||
|
|
||||||
class CollectionView: NSCollectionView, NSMenuItemValidation {
|
class CollectionView: NSCollectionView, NSUserInterfaceValidations {
|
||||||
|
|
||||||
var pasteboardTypes: [NSPasteboard.PasteboardType]
|
var pasteboardTypes: [NSPasteboard.PasteboardType]
|
||||||
var pasteboardHasSupportedType: Bool {
|
var pasteboardHasSupportedType: Bool {
|
||||||
@@ -67,6 +67,14 @@ class CollectionView: NSCollectionView, NSMenuItemValidation {
|
|||||||
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)
|
||||||
}
|
}
|
||||||
@@ -104,8 +112,8 @@ class CollectionView: NSCollectionView, NSMenuItemValidation {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
|
||||||
if let action = menuItem.action {
|
if let action = item.action {
|
||||||
switch action {
|
switch action {
|
||||||
case #selector(delete(_:)):
|
case #selector(delete(_:)):
|
||||||
if isSelectionEmpty || implements(selector: #selector(CollectionViewDelegate.collectionViewDelete(in:))) == false {
|
if isSelectionEmpty || implements(selector: #selector(CollectionViewDelegate.collectionViewDelete(in:))) == false {
|
||||||
|
|||||||
+122
-11
@@ -9,19 +9,35 @@ import Cocoa
|
|||||||
import IOKit.pwr_mgt
|
import IOKit.pwr_mgt
|
||||||
import MP42Foundation
|
import MP42Foundation
|
||||||
|
|
||||||
|
@objc(SBDocument)
|
||||||
final class Document: NSDocument {
|
final class Document: NSDocument {
|
||||||
|
|
||||||
private(set) var mp4: MP42File
|
private(set) var mp4: MP42File
|
||||||
private var unsupportedMp4Brand: Bool
|
private var unsupportedMp4Brand: Bool
|
||||||
|
|
||||||
|
// Matroska documents open in tags-only mode: the model is an in-memory
|
||||||
|
// MP42File whose tracks are demuxed for display and whose metadata is
|
||||||
|
// written back into the original file (Tags + cover attachment) by
|
||||||
|
// MP42MkvTagWriter on save.
|
||||||
|
private(set) var isMatroska = false
|
||||||
|
// The pairing/staleness baseline (importer track snapshot, chapter rows,
|
||||||
|
// file size/mtime) and the branching write-back (in-place tag writer vs
|
||||||
|
// stream-copy remuxer) live in MatroskaSaver — shared with QueueItem so a
|
||||||
|
// queued Matroska file saves exactly like the window does.
|
||||||
|
private(set) var mkvSaver: MatroskaSaver?
|
||||||
|
|
||||||
override init() {
|
override init() {
|
||||||
|
self.cancelled = false
|
||||||
self.options = [:]
|
self.options = [:]
|
||||||
self.optimize = false
|
self.optimize = false
|
||||||
self.unsupportedMp4Brand = false
|
self.unsupportedMp4Brand = false
|
||||||
self.mp4 = MP42File()
|
self.mp4 = MP42File()
|
||||||
|
super.init()
|
||||||
|
self.mp4.undo = undoManager
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
@@ -33,6 +49,7 @@ final class Document: NSDocument {
|
|||||||
} else {
|
} else {
|
||||||
updateChangeCount(.changeDone)
|
updateChangeCount(.changeDone)
|
||||||
}
|
}
|
||||||
|
self.mp4.undo = undoManager
|
||||||
}
|
}
|
||||||
|
|
||||||
override func makeWindowControllers() {
|
override func makeWindowControllers() {
|
||||||
@@ -54,27 +71,62 @@ final class Document: NSDocument {
|
|||||||
override public var isEntireFileLoaded: Bool { get { return false } }
|
override public var isEntireFileLoaded: Bool { get { return false } }
|
||||||
|
|
||||||
override func read(from url: URL, ofType typeName: String) throws {
|
override func read(from url: URL, ofType typeName: String) throws {
|
||||||
|
if MP42FileImporter.isMatroskaFileType(url.pathExtension) {
|
||||||
|
try readMatroska(from: url)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
mp4 = try MP42File(url: url)
|
mp4 = try MP42File(url: url)
|
||||||
|
mp4.undo = undoManager
|
||||||
} catch {
|
} catch {
|
||||||
unsupportedMp4Brand = true
|
unsupportedMp4Brand = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override func revert(toContentsOf url: URL, ofType typeName: String) throws {
|
override func revert(toContentsOf url: URL, ofType typeName: String) throws {
|
||||||
|
if isMatroska || MP42FileImporter.isMatroskaFileType(url.pathExtension) {
|
||||||
|
try readMatroska(from: url)
|
||||||
|
} else {
|
||||||
mp4 = try MP42File(url: url)
|
mp4 = try MP42File(url: url)
|
||||||
|
mp4.undo = undoManager
|
||||||
|
}
|
||||||
|
|
||||||
if let docController = windowControllers.first as? DocumentWindowController {
|
if let docController = windowControllers.first as? DocumentWindowController {
|
||||||
docController.reloadData()
|
docController.reloadData()
|
||||||
|
undoManager?.removeAllActions()
|
||||||
}
|
}
|
||||||
|
|
||||||
updateChangeCount(.changeCleared)
|
updateChangeCount(.changeCleared)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func readMatroska(from url: URL) throws {
|
||||||
|
// tagsOnly: the importer mirrors the file's own track flags instead of
|
||||||
|
// applying the MP4 conversion heuristic, so the model matches the file
|
||||||
|
// (MP42MkvTagWriter diffs track fields against it on save).
|
||||||
|
let importer = try MP42FileImporter(url: url, tagsOnly: true)
|
||||||
|
let file = MatroskaSaver.buildModel(from: importer)
|
||||||
|
mp4 = file
|
||||||
|
// (file.undo was not wired during buildModel's addTrack calls, so
|
||||||
|
// those did not open undo groups.)
|
||||||
|
mp4.undo = undoManager
|
||||||
|
isMatroska = true
|
||||||
|
let saver = MatroskaSaver(sourceURL: url, importer: importer, model: file)
|
||||||
|
// The save sheet listens on the model's progress handler (see
|
||||||
|
// DocumentWindowController.startProgressReporting); forward through it.
|
||||||
|
saver.progressHandler = { [weak self] progress in
|
||||||
|
self?.mp4.progressHandler?(progress)
|
||||||
|
}
|
||||||
|
mkvSaver = saver
|
||||||
|
}
|
||||||
|
|
||||||
// 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]()
|
||||||
@@ -113,10 +165,18 @@ final class Document: NSDocument {
|
|||||||
|
|
||||||
if let error = error {
|
if let error = error {
|
||||||
completionHandler(error);
|
completionHandler(error);
|
||||||
|
} else if self.isMatroska {
|
||||||
|
// The file was retagged in place; the tracks in the model are
|
||||||
|
// still the ones on disk, so only the undo stack needs reset.
|
||||||
|
self.undoManager?.removeAllActions()
|
||||||
|
docController?.reloadData()
|
||||||
|
completionHandler(error)
|
||||||
} else {
|
} else {
|
||||||
do {
|
do {
|
||||||
let reloadedFile = try MP42File(url: url)
|
let reloadedFile = try MP42File(url: url)
|
||||||
self.mp4 = reloadedFile
|
self.mp4 = reloadedFile
|
||||||
|
self.mp4.undo = self.undoManager
|
||||||
|
self.undoManager?.removeAllActions()
|
||||||
docController?.reloadData()
|
docController?.reloadData()
|
||||||
completionHandler(error)
|
completionHandler(error)
|
||||||
} catch {
|
} catch {
|
||||||
@@ -132,6 +192,12 @@ 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
|
||||||
|
mkvSaver?.cancel()
|
||||||
|
mp4.cancel()
|
||||||
|
}
|
||||||
|
|
||||||
private var sleepAssertion: IOPMAssertionID = IOPMAssertionID(0)
|
private var sleepAssertion: IOPMAssertionID = IOPMAssertionID(0)
|
||||||
private var sleepAssertionSuccess: IOReturn = kIOReturnInvalid
|
private var sleepAssertionSuccess: IOReturn = kIOReturnInvalid
|
||||||
|
|
||||||
@@ -154,6 +220,18 @@ final class Document: NSDocument {
|
|||||||
unblockUserInteraction()
|
unblockUserInteraction()
|
||||||
preventSleep()
|
preventSleep()
|
||||||
|
|
||||||
|
defer {
|
||||||
|
allowSleep()
|
||||||
|
optimize = false
|
||||||
|
options = [:]
|
||||||
|
}
|
||||||
|
|
||||||
|
if isMatroska {
|
||||||
|
try writeMatroska(to: url, for: saveOperation)
|
||||||
|
cancelled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if Prefs.organizeAlternateGroups {
|
if Prefs.organizeAlternateGroups {
|
||||||
mp4.organizeAlternateGroups()
|
mp4.organizeAlternateGroups()
|
||||||
if Prefs.inferMediaCharacteristics {
|
if Prefs.inferMediaCharacteristics {
|
||||||
@@ -162,28 +240,36 @@ final class Document: NSDocument {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
defer {
|
|
||||||
allowSleep()
|
|
||||||
optimize = false
|
|
||||||
options = [:]
|
|
||||||
}
|
|
||||||
|
|
||||||
switch saveOperation {
|
switch saveOperation {
|
||||||
case .saveOperation:
|
case .saveOperation:
|
||||||
try mp4.update(options: options)
|
try mp4.update(options: options)
|
||||||
case .saveAsOperation:
|
case .saveAsOperation:
|
||||||
try mp4.write(to: url, options: options)
|
try mp4.write(to: url, options: options)
|
||||||
default:
|
default:
|
||||||
fatalError("Unsupported save operation")
|
throw NSError(domain: NSCocoaErrorDomain, code: NSFileWriteUnknownError,
|
||||||
|
userInfo: [NSLocalizedDescriptionKey: NSLocalizedString("The save operation is not supported.", comment: "Document unsupported save operation error.")])
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
}
|
||||||
|
|
||||||
|
private func writeMatroska(to url: URL, for saveOperation: NSDocument.SaveOperationType) throws {
|
||||||
|
guard let saver = mkvSaver else {
|
||||||
|
throw NSError(domain: NSCocoaErrorDomain, code: NSFileWriteUnknownError,
|
||||||
|
userInfo: [NSLocalizedDescriptionKey: NSLocalizedString("The Matroska source file is unknown.", comment: "Document MKV remux missing source error.")])
|
||||||
|
}
|
||||||
|
// `optimize` (Save and Optimize) forces the structural rebuild, as
|
||||||
|
// does Save-As; the saver branches in-place tag writer vs stream-copy
|
||||||
|
// remuxer (see MatroskaSaver.save).
|
||||||
|
try saver.save(model: mp4, to: url, forceStructural: optimize || saveOperation != .saveOperation)
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Save panel
|
// MARK: Save panel
|
||||||
@@ -192,6 +278,8 @@ final class Document: NSDocument {
|
|||||||
|
|
||||||
override var shouldRunSavePanelWithAccessoryView: Bool { return false }
|
override var shouldRunSavePanelWithAccessoryView: Bool { return false }
|
||||||
|
|
||||||
|
override var savePanelShowsFileFormatsControl: Bool { return false }
|
||||||
|
|
||||||
override func prepareSavePanel(_ savePanel: NSSavePanel) -> Bool {
|
override func prepareSavePanel(_ savePanel: NSSavePanel) -> Bool {
|
||||||
self.accessoryViewController = SaveOptions(doc: self, savePanel: savePanel)
|
self.accessoryViewController = SaveOptions(doc: self, savePanel: savePanel)
|
||||||
|
|
||||||
@@ -211,6 +299,19 @@ final class Document: NSDocument {
|
|||||||
guard let windowForSheet = windowForSheet else { return }
|
guard let windowForSheet = windowForSheet else { return }
|
||||||
|
|
||||||
let queue = QueueController.shared
|
let queue = QueueController.shared
|
||||||
|
// Matroska document: match the window's save semantics — the queue
|
||||||
|
// item writes metadata back into the original file instead of muxing
|
||||||
|
// a converted copy, so the destination is the file itself (no save
|
||||||
|
// panel) and the item inherits the document's Matroska baseline: the
|
||||||
|
// TrackEntry↔track pairing is by object identity and cannot be
|
||||||
|
// rebuilt from the model.
|
||||||
|
if isMatroska, let fileURL = fileURL, let saver = mkvSaver {
|
||||||
|
let item = QueueItem(mp4: mp4, fileURL: fileURL, destURL: fileURL)
|
||||||
|
item.attachMatroskaSaver(saver)
|
||||||
|
queue.add(item)
|
||||||
|
close()
|
||||||
|
return
|
||||||
|
}
|
||||||
if mp4.hasFileRepresentation {
|
if mp4.hasFileRepresentation {
|
||||||
let item = QueueItem(mp4: mp4)
|
let item = QueueItem(mp4: mp4)
|
||||||
queue.add(item, applyPreset: true)
|
queue.add(item, applyPreset: true)
|
||||||
@@ -244,10 +345,20 @@ final class Document: NSDocument {
|
|||||||
return true
|
return true
|
||||||
case #selector(save(_:)) where isDocumentEdited == true:
|
case #selector(save(_:)) where isDocumentEdited == true:
|
||||||
return true
|
return true
|
||||||
case #selector(saveAs(_:)),
|
case #selector(saveAs(_:)):
|
||||||
#selector(sendToQueue(_:)):
|
// MKV Save-As runs through MP42MkvRemuxer (stream copy, same
|
||||||
|
// container — the destination must stay .mkv/.mka/.mks, checked
|
||||||
|
// in writeMatroska).
|
||||||
return true
|
return true
|
||||||
case #selector(saveAndOptimize(_:)) where isDocumentEdited == false && mp4.hasFileRepresentation == true:
|
case #selector(sendToQueue(_:)):
|
||||||
|
return true
|
||||||
|
// On a Matroska document optimize = full remuxer rebuild (see
|
||||||
|
// writeMatroska), the container-equivalent of the atom-order optimize.
|
||||||
|
// Tags-only models report hasFileRepresentation == false (their tracks
|
||||||
|
// are never muxed), so the on-disk precondition there is just the
|
||||||
|
// remux source: fileURL.
|
||||||
|
case #selector(saveAndOptimize(_:)) where isDocumentEdited == false
|
||||||
|
&& (isMatroska ? fileURL != nil : mp4.hasFileRepresentation == true):
|
||||||
return true
|
return true
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -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 {
|
||||||
@@ -25,17 +27,26 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
|
|||||||
label: NSLocalizedString("Import", comment: "Toolbar"),
|
label: NSLocalizedString("Import", comment: "Toolbar"),
|
||||||
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: "doc.badge.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,
|
||||||
label: NSLocalizedString("Delete", comment: "Toolbar"),
|
label: NSLocalizedString("Delete", comment: "Toolbar"),
|
||||||
toolTip: NSLocalizedString("Delete the selected track", comment: "Toolbar"),
|
toolTip: NSLocalizedString("Delete the selected track", comment: "Toolbar"),
|
||||||
image: "NSRemoveTemplate",
|
image: "NSRemoveTemplate",
|
||||||
symbolName: "minus",
|
symbolName: "nosign",
|
||||||
|
target: target,
|
||||||
action: #selector(DocumentWindowController.deleteTrack(_:)))
|
action: #selector(DocumentWindowController.deleteTrack(_:)))
|
||||||
} else if itemIdentifier == .actions {
|
} else if itemIdentifier == .actions {
|
||||||
let submenu = NSMenu()
|
let submenu = NSMenu()
|
||||||
|
|
||||||
|
let menuItem = NSMenuItem()
|
||||||
|
menuItem.title = NSLocalizedString("At the Beginning", comment: "Toolbar")
|
||||||
|
menuItem.action = #selector(DocumentWindowController.addChaptersEvery(_:))
|
||||||
|
menuItem.tag = -1
|
||||||
|
submenu.addItem(menuItem)
|
||||||
|
|
||||||
for minutes in [1, 2, 5, 10, 15, 20, 30] {
|
for minutes in [1, 2, 5, 10, 15, 20, 30] {
|
||||||
let menuItem = NSMenuItem()
|
let menuItem = NSMenuItem()
|
||||||
let title = minutes == 1 ? NSLocalizedString("1 minute", comment: "Toolbar") :
|
let title = minutes == 1 ? NSLocalizedString("1 minute", comment: "Toolbar") :
|
||||||
@@ -47,11 +58,16 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
|
|||||||
submenu.addItem(menuItem)
|
submenu.addItem(menuItem)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let insertChapter = NSMenuItem()
|
||||||
|
insertChapter.title = NSLocalizedString("Insert a chapter", comment: "Toolbar")
|
||||||
|
insertChapter.action = #selector(DocumentWindowController.insertChapter(_:))
|
||||||
|
|
||||||
let chapters = NSMenuItem()
|
let chapters = NSMenuItem()
|
||||||
chapters.title = NSLocalizedString("Insert a chapter every", comment: "Toolbar")
|
chapters.title = NSLocalizedString("Insert a chapter every", comment: "Toolbar")
|
||||||
chapters.submenu = submenu
|
chapters.submenu = submenu
|
||||||
|
|
||||||
let menu = NSMenu()
|
let menu = NSMenu()
|
||||||
|
menu.addItem(insertChapter)
|
||||||
menu.addItem(chapters)
|
menu.addItem(chapters)
|
||||||
menu.addItem(NSMenuItem.separator())
|
menu.addItem(NSMenuItem.separator())
|
||||||
menu.addItem(withTitle: NSLocalizedString("Organize alternate groups", comment: "Toolbar"),
|
menu.addItem(withTitle: NSLocalizedString("Organize alternate groups", comment: "Toolbar"),
|
||||||
@@ -76,7 +92,12 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
|
|||||||
if #available(macOS 10.15, *) {
|
if #available(macOS 10.15, *) {
|
||||||
let item = NSMenuToolbarItem(itemIdentifier: itemIdentifier)
|
let item = NSMenuToolbarItem(itemIdentifier: itemIdentifier)
|
||||||
item.label = label
|
item.label = label
|
||||||
if #available(macOS 11.0, *) {
|
item.paletteLabel = label
|
||||||
|
item.toolTip = NSLocalizedString("Perform tasks with the selected items", comment: "Toolbar")
|
||||||
|
if #available(macOS 26.0, *) {
|
||||||
|
item.showsIndicator = false
|
||||||
|
item.image = NSImage.init(systemSymbolName: "ellipsis", accessibilityDescription: nil)
|
||||||
|
} else if #available(macOS 11.0, *) {
|
||||||
item.image = NSImage.init(systemSymbolName: "ellipsis.circle", accessibilityDescription: nil)
|
item.image = NSImage.init(systemSymbolName: "ellipsis.circle", accessibilityDescription: nil)
|
||||||
} else {
|
} else {
|
||||||
item.image = NSImage(named:"NSActionTemplate")
|
item.image = NSImage(named:"NSActionTemplate")
|
||||||
@@ -96,6 +117,8 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
|
|||||||
|
|
||||||
let item = ButtonToolbarItem(itemIdentifier: itemIdentifier)
|
let item = ButtonToolbarItem(itemIdentifier: itemIdentifier)
|
||||||
item.label = label
|
item.label = label
|
||||||
|
item.paletteLabel = label
|
||||||
|
item.toolTip = NSLocalizedString("Perform tasks with the selected items", comment: "Toolbar")
|
||||||
item.view = popUpButton
|
item.view = popUpButton
|
||||||
item.minSize = NSSize(width: 48, height: 16)
|
item.minSize = NSSize(width: 48, height: 16)
|
||||||
|
|
||||||
@@ -106,7 +129,8 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
|
|||||||
label: NSLocalizedString("Search Metadata", comment: "Toolbar"),
|
label: NSLocalizedString("Search Metadata", comment: "Toolbar"),
|
||||||
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: "doc.text.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,
|
||||||
@@ -114,6 +138,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,
|
||||||
@@ -121,6 +146,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(_:)))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,7 +154,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@MainActor func toolbarDefaultItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier] {
|
@MainActor func toolbarDefaultItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier] {
|
||||||
return [.importTracks, .deleteTracks, .space, .actions, .flexibleSpace, .searchMetadata]
|
return [.importTracks, .searchMetadata, .space, .actions, .space, .deleteTracks, .flexibleSpace, .sendToQueue, .showQueue,]
|
||||||
}
|
}
|
||||||
|
|
||||||
@MainActor func toolbarAllowedItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier] {
|
@MainActor func toolbarAllowedItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier] {
|
||||||
|
|||||||
@@ -7,8 +7,9 @@
|
|||||||
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
import MP42Foundation
|
import MP42Foundation
|
||||||
|
import UniformTypeIdentifiers
|
||||||
|
|
||||||
final class DocumentWindowController: NSWindowController, TracksViewControllerDelegate, MetadataSearchViewControllerDelegate, FileImportControllerDelegate, ProgressViewControllerDelegate, NSDraggingDestination, NSUserInterfaceValidations {
|
final class DocumentWindowController: NSWindowController, NSWindowDelegate, TracksViewControllerDelegate, MetadataSearchViewControllerDelegate, ChapterSearchControllerDelegate, FileImportControllerDelegate, ProgressViewControllerDelegate, NSDraggingDestination, NSUserInterfaceValidations {
|
||||||
|
|
||||||
private var doc: Document {
|
private var doc: Document {
|
||||||
return document as! Document
|
return document as! Document
|
||||||
@@ -43,11 +44,17 @@ 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
|
||||||
toolbar.autosavesConfiguration = true
|
toolbar.autosavesConfiguration = true
|
||||||
|
if #available(macOS 26, *) {
|
||||||
|
toolbar.displayMode = .iconOnly
|
||||||
|
} else {
|
||||||
toolbar.displayMode = .iconAndLabel
|
toolbar.displayMode = .iconAndLabel
|
||||||
|
}
|
||||||
self.window?.toolbar = toolbar
|
self.window?.toolbar = toolbar
|
||||||
|
|
||||||
window.contentViewController = splitViewController
|
window.contentViewController = splitViewController
|
||||||
@@ -55,17 +62,32 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
|
|
||||||
if Prefs.rememberDocumentWindowSize {
|
if Prefs.rememberDocumentWindowSize {
|
||||||
window.setFrameAutosaveName("documentSave")
|
window.setFrameAutosaveName("documentSave")
|
||||||
window.setFrame(from: "documentSave")
|
window.setFrameUsingName("documentSave")
|
||||||
|
|
||||||
splitViewController.splitView.autosaveName = DocumentWindowController.splitViewResorationAutosaveName
|
splitViewController.splitView.autosaveName = DocumentWindowController.splitViewResorationAutosaveName
|
||||||
splitViewController.splitView.identifier = DocumentWindowController.splitViewResorationIdentifier
|
splitViewController.splitView.identifier = DocumentWindowController.splitViewResorationIdentifier
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
window.setContentSize(NSSize(width: 690, height: 510))
|
window.setContentSize(NSSize(width: 692, height: 600))
|
||||||
splitViewController.splitView.setPosition(160, ofDividerAt: 0)
|
splitViewController.splitView.setPosition(240, ofDividerAt: 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
didSelect(tracks: [])
|
didSelect(tracks: [])
|
||||||
|
|
||||||
|
let update: (Notification) -> Void = { [weak self] notification in
|
||||||
|
guard let s = self else { return }
|
||||||
|
s.reloadDataAfterAnUndo()
|
||||||
|
}
|
||||||
|
|
||||||
|
NotificationCenter.default.addObserver(forName: NSNotification.Name.NSUndoManagerDidUndoChange,
|
||||||
|
object: doc.undoManager,
|
||||||
|
queue: OperationQueue.main,
|
||||||
|
using: update)
|
||||||
|
|
||||||
|
NotificationCenter.default.addObserver(forName: NSNotification.Name.NSUndoManagerDidRedoChange,
|
||||||
|
object: doc.undoManager,
|
||||||
|
queue: OperationQueue.main,
|
||||||
|
using: update)
|
||||||
}
|
}
|
||||||
|
|
||||||
private static let splitViewResorationIdentifier = NSUserInterfaceItemIdentifier(rawValue: "splitViewSave")
|
private static let splitViewResorationIdentifier = NSUserInterfaceItemIdentifier(rawValue: "splitViewSave")
|
||||||
@@ -121,16 +143,20 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func clearDetailsViewControllers() {
|
private func clearDetailsViewControllers() {
|
||||||
saveTabIndex(metadataViewController)
|
saveTabIndexes()
|
||||||
metadataViewController = nil
|
metadataViewController = nil
|
||||||
saveTabIndex(videoViewController)
|
|
||||||
videoViewController = nil
|
videoViewController = nil
|
||||||
saveTabIndex(soundViewController)
|
|
||||||
soundViewController = nil
|
soundViewController = nil
|
||||||
chapterViewController = nil
|
chapterViewController = nil
|
||||||
multiViewController = nil
|
multiViewController = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func saveTabIndexes() {
|
||||||
|
saveTabIndex(metadataViewController)
|
||||||
|
saveTabIndex(videoViewController)
|
||||||
|
saveTabIndex(soundViewController)
|
||||||
|
}
|
||||||
|
|
||||||
private func detailsViewController(_ tracks: [MP42Track]) -> PropertyView {
|
private func detailsViewController(_ tracks: [MP42Track]) -> PropertyView {
|
||||||
if tracks.count > 1 {
|
if tracks.count > 1 {
|
||||||
let controller = MultiSelectViewController(numberOfTracks: UInt(tracks.count))
|
let controller = MultiSelectViewController(numberOfTracks: UInt(tracks.count))
|
||||||
@@ -169,7 +195,10 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
return emptyViewController!
|
return emptyViewController!
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if metadataViewController == nil {
|
if let metadataViewController = metadataViewController {
|
||||||
|
metadataViewController.metadata = mp4.metadata
|
||||||
|
}
|
||||||
|
else {
|
||||||
metadataViewController = MovieViewController(mp4: mp4, metadata: mp4.metadata)
|
metadataViewController = MovieViewController(mp4: mp4, metadata: mp4.metadata)
|
||||||
}
|
}
|
||||||
return metadataViewController!
|
return metadataViewController!
|
||||||
@@ -182,12 +211,20 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
tracksViewController.mp4 = doc.mp4
|
tracksViewController.mp4 = doc.mp4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func reloadDataAfterAnUndo() {
|
||||||
|
let firstResponder = self.window?.firstResponder;
|
||||||
|
saveTabIndexes()
|
||||||
|
tracksViewController.reloadData()
|
||||||
|
if let firstResponder = firstResponder as? NSView, firstResponder.window != nil {
|
||||||
|
self.window?.makeFirstResponder(firstResponder)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: Tracks controller delegate
|
// MARK: Tracks controller delegate
|
||||||
|
|
||||||
func didSelect(tracks: [MP42Track]) {
|
func didSelect(tracks: [MP42Track]) {
|
||||||
let detailsItem = splitViewController.splitViewItems[1]
|
let detailsItem = splitViewController.splitViewItems[1]
|
||||||
if let detailsViewController = detailsItem.viewController.children.first {
|
if let detailsViewController = detailsItem.viewController.children.first {
|
||||||
doc.undoManager?.removeAllActions(withTarget: detailsViewController)
|
|
||||||
detailsViewController.view.removeFromSuperviewWithoutNeedingDisplay()
|
detailsViewController.view.removeFromSuperviewWithoutNeedingDisplay()
|
||||||
detailsItem.viewController.removeChild(at: 0)
|
detailsItem.viewController.removeChild(at: 0)
|
||||||
}
|
}
|
||||||
@@ -198,17 +235,38 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
trackViewController.view.autoresizingMask = [NSView.AutoresizingMask.width, NSView.AutoresizingMask.height]
|
trackViewController.view.autoresizingMask = [NSView.AutoresizingMask.width, NSView.AutoresizingMask.height]
|
||||||
detailsItem.viewController.view.addSubview(trackViewController.view)
|
detailsItem.viewController.view.addSubview(trackViewController.view)
|
||||||
|
|
||||||
|
// Tags-only mode: tracks are displayed but cannot be modified, except
|
||||||
|
// for the fields MP42MkvTagWriter writes back (see allowsTrackEditing)
|
||||||
|
// and the chapters tab (ChapterViewController edits ride the remuxer's
|
||||||
|
// replacementChapters). Set after the view is loaded so it wins over
|
||||||
|
// controls that the view controllers enable during their own updates.
|
||||||
|
trackViewController.isMatroskaDocument = doc.isMatroska
|
||||||
|
if doc.isMatroska, !(trackViewController is MovieViewController),
|
||||||
|
!(trackViewController is ChapterViewController) {
|
||||||
|
trackViewController.allowsTrackEditing = true
|
||||||
|
trackViewController.isReadOnly = true
|
||||||
|
} else {
|
||||||
|
trackViewController.allowsTrackEditing = false
|
||||||
|
trackViewController.isReadOnly = false
|
||||||
|
}
|
||||||
|
|
||||||
selectTabViewItem(for: trackViewController)
|
selectTabViewItem(for: trackViewController)
|
||||||
}
|
}
|
||||||
|
|
||||||
func delete(tracks: [MP42Track]) {
|
func delete(tracks: [MP42Track]) {
|
||||||
|
// On MKV docs the save path stream-copy-remuxes removed real tracks'
|
||||||
|
// blocks away (MP42MkvRemuxer); a removed chapter pseudo-track makes
|
||||||
|
// the model report "no chapters", which deletes the Chapters element.
|
||||||
if tracks.isEmpty == false {
|
if tracks.isEmpty == false {
|
||||||
mp4.removeTracks(tracks)
|
mp4.removeTracks(tracks)
|
||||||
|
|
||||||
|
if doc.isMatroska == false {
|
||||||
|
// Both heuristics reorder the track model, which would break
|
||||||
|
// the TrackEntry/order pairing the MKV writers depend on.
|
||||||
if Prefs.organizeAlternateGroups { mp4.organizeAlternateGroups() }
|
if Prefs.organizeAlternateGroups { mp4.organizeAlternateGroups() }
|
||||||
if Prefs.inferMediaCharacteristics { mp4.inferMediaCharacteristics() }
|
if Prefs.inferMediaCharacteristics { mp4.inferMediaCharacteristics() }
|
||||||
|
}
|
||||||
|
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
tracksViewController.reloadData()
|
tracksViewController.reloadData()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -218,20 +276,33 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
|
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
|
||||||
switch item.action {
|
switch item.action {
|
||||||
|
|
||||||
case #selector(selectFile(_:)),
|
case #selector(selectMetadataFile(_:)),
|
||||||
#selector(selectMetadataFile(_:)),
|
|
||||||
#selector(searchMetadata(_:)),
|
#selector(searchMetadata(_:)),
|
||||||
|
#selector(sendToQueue(_:)),
|
||||||
|
#selector(insertChapter(_:)),
|
||||||
#selector(addChaptersEvery(_:)),
|
#selector(addChaptersEvery(_:)),
|
||||||
#selector(iTunesFriendlyTrackGroups(_:)),
|
#selector(searchChapters(_:)):
|
||||||
|
return true
|
||||||
|
|
||||||
|
// Matroska documents may import subtitle text files (written as
|
||||||
|
// S_TEXT/UTF8 by the stream-copy remuxer on save).
|
||||||
|
case #selector(selectFile(_:)):
|
||||||
|
return true
|
||||||
|
|
||||||
|
// Track bulk modifications: unavailable in Matroska tags-only mode.
|
||||||
|
// Chapter actions (searchChapters, the Insert-a-chapter commands) are
|
||||||
|
// NOT on this list — chapter changes ride the stream-copy remuxer,
|
||||||
|
// so they work on MKV too.
|
||||||
|
case #selector(iTunesFriendlyTrackGroups(_:)),
|
||||||
#selector(clearTrackNames(_:)),
|
#selector(clearTrackNames(_:)),
|
||||||
#selector(prettifyAudioTrackNames(_:)),
|
#selector(prettifyAudioTrackNames(_:)),
|
||||||
#selector(fixAudioFallbacks(_:)):
|
#selector(fixAudioFallbacks(_:)):
|
||||||
return true
|
return !doc.isMatroska
|
||||||
|
|
||||||
case #selector(sendToExternalApp(_:)) where mp4.hasFileRepresentation && doc.isDocumentEdited == false:
|
case #selector(sendToExternalApp(_:)) where mp4.hasFileRepresentation && doc.isDocumentEdited == false:
|
||||||
return true
|
return true
|
||||||
|
|
||||||
case #selector(showTrackOffsetSheet(_:)) where tracksViewController.selectedTracks.isEmpty == false:
|
case #selector(showTrackOffsetSheet(_:)) where doc.isMatroska == false && tracksViewController.selectedTracks.isEmpty == false:
|
||||||
return true
|
return true
|
||||||
|
|
||||||
case #selector(export(_:)) where tracksViewController.selectedTracks.isEmpty == false:
|
case #selector(export(_:)) where tracksViewController.selectedTracks.isEmpty == false:
|
||||||
@@ -242,6 +313,9 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
case #selector(DocumentWindowController.deleteTrack(_:)):
|
case #selector(DocumentWindowController.deleteTrack(_:)):
|
||||||
|
// MKV documents allow deleting real tracks (stream-copy remux on
|
||||||
|
// save) and the chapter pseudo-track (the Chapters element is
|
||||||
|
// removed on save), so any non-empty selection is deletable.
|
||||||
return tracksViewController.selectedTracks.isEmpty == false && NSApp.isActive
|
return tracksViewController.selectedTracks.isEmpty == false && NSApp.isActive
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -280,12 +354,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)
|
||||||
@@ -296,21 +374,75 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
delete(tracks: tracksViewController.selectedTracks)
|
delete(tracks: tracksViewController.selectedTracks)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Single-chapter insert that also bootstraps the chapter track, so it
|
||||||
|
// works on documents without any chapters yet (both containers: on MKV
|
||||||
|
// the new rows ride the remuxer on save, like the Chapters tab's edits).
|
||||||
|
@IBAction func insertChapter(_ sender: Any) {
|
||||||
|
let track: MP42ChapterTrack
|
||||||
|
if let existing = mp4.chapters {
|
||||||
|
track = existing
|
||||||
|
} else {
|
||||||
|
track = MP42ChapterTrack()
|
||||||
|
mp4.addTrack(track) // addTrack: replaces any previous chapter track
|
||||||
|
if doc.isMatroska {
|
||||||
|
// addTrack: zeroes trackId; keep the table numbering dense.
|
||||||
|
track.trackId = (mp4.tracks.map { $0.trackId }.max() ?? 0) + 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// A brand-new track gets its first chapter at 0; inserting into an
|
||||||
|
// existing track places the chapter 1s after the latest start, so it
|
||||||
|
// never ties with a stored chapter (ties get clamped +1ms on write,
|
||||||
|
// which would silently shift the user's own chapter times). The user
|
||||||
|
// retimes/renames the row either way.
|
||||||
|
var newTimestamp: UInt64 = 0
|
||||||
|
if let last = track.chapters.max(by: { $0.timestamp < $1.timestamp }) {
|
||||||
|
newTimestamp = last.timestamp + 1000
|
||||||
|
if track.duration > last.timestamp + 1, newTimestamp >= track.duration {
|
||||||
|
newTimestamp = track.duration - 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let index = track.addChapter("Chapter", timestamp: newTimestamp)
|
||||||
|
|
||||||
|
if doc.isMatroska {
|
||||||
|
// The tags-only model has no muxing step to mark the document.
|
||||||
|
doc.updateChangeCount(.changeDone)
|
||||||
|
}
|
||||||
|
|
||||||
|
tracksViewController.reloadData()
|
||||||
|
tracksViewController.selectTracks([track])
|
||||||
|
chapterViewController?.selectChapter(at: Int(index))
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func addChaptersEvery(_ sender: NSMenuItem) {
|
@IBAction func addChaptersEvery(_ sender: NSMenuItem) {
|
||||||
let track: MP42ChapterTrack = mp4.chapters ?? { let track = MP42ChapterTrack(); self.mp4.addTrack(track); return track }()
|
// Creates the chapter track when the document has none (same
|
||||||
|
// bookkeeping as insertChapter: addTrack: zeroes trackId and the
|
||||||
|
// tags-only model has no muxing step to mark the document dirty).
|
||||||
|
let existing = mp4.chapters
|
||||||
|
let track: MP42ChapterTrack = existing ?? MP42ChapterTrack()
|
||||||
|
if existing == nil {
|
||||||
|
mp4.addTrack(track) // addTrack: replaces any previous chapter track
|
||||||
|
if doc.isMatroska {
|
||||||
|
track.trackId = (mp4.tracks.map { $0.trackId }.max() ?? 0) + 1
|
||||||
|
}
|
||||||
|
}
|
||||||
let minutes = sender.tag * 60 * 1000
|
let minutes = sender.tag * 60 * 1000
|
||||||
|
|
||||||
if minutes > 0 {
|
if minutes > 0 {
|
||||||
for (index, duration) in stride(from: 0, to: mp4.duration, by: minutes).enumerated() {
|
for (index, timestamp) in stride(from: 0, to: mp4.duration, by: minutes).enumerated() {
|
||||||
track.addChapter("Chapter \(index + 1)", duration: UInt64(duration))
|
track.addChapter("Chapter \(index + 1)", timestamp: UInt64(timestamp))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
track.addChapter("Chapter 1", duration: UInt64(mp4.duration))
|
track.addChapter("Chapter 1", timestamp: 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if doc.isMatroska {
|
||||||
doc.updateChangeCount(.changeDone)
|
doc.updateChangeCount(.changeDone)
|
||||||
|
}
|
||||||
|
|
||||||
tracksViewController.reloadData()
|
tracksViewController.reloadData()
|
||||||
|
tracksViewController.selectTracks([track])
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func iTunesFriendlyTrackGroups(_ sender: Any) {
|
@IBAction func iTunesFriendlyTrackGroups(_ sender: Any) {
|
||||||
@@ -318,7 +450,6 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
mp4.inferTracksLanguages()
|
mp4.inferTracksLanguages()
|
||||||
mp4.inferMediaCharacteristics()
|
mp4.inferMediaCharacteristics()
|
||||||
|
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
tracksViewController.reloadData()
|
tracksViewController.reloadData()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -327,7 +458,6 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
track.name = ""
|
track.name = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
tracksViewController.reloadData()
|
tracksViewController.reloadData()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -337,13 +467,11 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
track.name = track.prettyTrackName
|
track.name = track.prettyTrackName
|
||||||
}
|
}
|
||||||
|
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
tracksViewController.reloadData()
|
tracksViewController.reloadData()
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func fixAudioFallbacks(_ sender: Any) {
|
@IBAction func fixAudioFallbacks(_ sender: Any) {
|
||||||
mp4.setAutoFallback()
|
mp4.setAutoFallback()
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
tracksViewController.reloadData()
|
tracksViewController.reloadData()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -392,9 +520,10 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
func didSelect(metadata: MetadataResult) {
|
func didSelect(metadata: MetadataResult) {
|
||||||
let map = metadata.mediaKind == .movie ? MetadataPrefs.movieResultMap : MetadataPrefs.tvShowResultMap
|
let map = metadata.mediaKind == .movie ? MetadataPrefs.movieResultMap : MetadataPrefs.tvShowResultMap
|
||||||
let keepEmptyKeys = MetadataPrefs.keepEmptyAnnotations
|
let keepEmptyKeys = MetadataPrefs.keepEmptyAnnotations
|
||||||
|
let overwriteExisting = MetadataPrefs.overwriteExistingAnnotations
|
||||||
|
|
||||||
let result = metadata.mappedMetadata(to: map, keepEmptyKeys: keepEmptyKeys)
|
let result = metadata.mappedMetadata(to: map, keepEmptyKeys: keepEmptyKeys)
|
||||||
mp4.metadata.merge(result)
|
mp4.metadata.merge(result, overwrite: overwriteExisting)
|
||||||
|
|
||||||
if let hdType = mp4.hdType {
|
if let hdType = mp4.hdType {
|
||||||
for item in mp4.metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyHDVideo) {
|
for item in mp4.metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyHDVideo) {
|
||||||
@@ -403,25 +532,60 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
mp4.metadata.addItem(MP42MetadataItem(identifier: MP42MetadataKeyHDVideo, value: NSNumber(value: hdType.rawValue),
|
mp4.metadata.addItem(MP42MetadataItem(identifier: MP42MetadataKeyHDVideo, value: NSNumber(value: hdType.rawValue),
|
||||||
dataType: .integer, extendedLanguageTag: nil))
|
dataType: .integer, extendedLanguageTag: nil))
|
||||||
}
|
}
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
metadataViewController?.metadata = mp4.metadata
|
metadataViewController?.metadata = mp4.metadata
|
||||||
|
tracksViewController.selectTracks([])
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func searchChapters(_ sender: Any?) {
|
||||||
|
let name = mp4.metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyName).first?.stringValue
|
||||||
|
let url = mp4.firstSourceURL ?? doc.fileURL
|
||||||
|
let title = (name?.isEmpty == false ? name : url?.lastPathComponent) ?? ""
|
||||||
|
let duration = UInt64(mp4.duration)
|
||||||
|
|
||||||
|
let controller = ChapterSearchController(delegate: self, title: title, duration: duration)
|
||||||
|
contentViewController?.presentAsSheet(controller)
|
||||||
|
}
|
||||||
|
|
||||||
|
func didSelect(chapters: [MP42TextSample]) {
|
||||||
|
let chapterTrack = MP42ChapterTrack()
|
||||||
|
for chapter in chapters {
|
||||||
|
chapterTrack.addChapter(chapter)
|
||||||
|
}
|
||||||
|
|
||||||
|
mp4.addTrack(chapterTrack) // addTrack: replaces any previous chapter track
|
||||||
|
if doc.isMatroska {
|
||||||
|
// Tags-only bookkeeping, same as addChapters/insertChapter:
|
||||||
|
// addTrack: zeroes trackId, and nothing else marks the document.
|
||||||
|
chapterTrack.trackId = (mp4.tracks.map { $0.trackId }.max() ?? 0) + 1
|
||||||
|
doc.updateChangeCount(.changeDone)
|
||||||
|
}
|
||||||
|
tracksViewController.reloadData()
|
||||||
|
tracksViewController.selectTracks([chapterTrack])
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: File import
|
// MARK: File import
|
||||||
|
|
||||||
private func addChapters(fileURL: URL) {
|
private func addChapters(fileURL: URL) {
|
||||||
mp4.addTrack(MP42ChapterTrack(fromFile: fileURL))
|
let track = MP42ChapterTrack(fromFile: fileURL)
|
||||||
|
mp4.addTrack(track) // replaces any previous chapter track
|
||||||
|
if doc.isMatroska {
|
||||||
|
// addTrack: zeroes trackId; keep the table numbering dense, and
|
||||||
|
// flag the document dirty (the tags-only model has no muxing to
|
||||||
|
// mark it, same as importSubtitleTracksForMatroska).
|
||||||
|
track.trackId = (mp4.tracks.map { $0.trackId }.max() ?? 0) + 1
|
||||||
doc.updateChangeCount(.changeDone)
|
doc.updateChangeCount(.changeDone)
|
||||||
|
}
|
||||||
tracksViewController.reloadData()
|
tracksViewController.reloadData()
|
||||||
|
tracksViewController.selectTracks([track])
|
||||||
}
|
}
|
||||||
|
|
||||||
private func updateChapters(fileURL: URL) {
|
private func updateChapters(fileURL: URL) {
|
||||||
do {
|
do {
|
||||||
try mp4.chapters?.update(fromCSVFile: fileURL)
|
try mp4.chapters?.update(fromCSVFile: fileURL)
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
if let track = mp4.chapters {
|
if let track = mp4.chapters {
|
||||||
chapterViewController?.track = track
|
chapterViewController?.track = track
|
||||||
|
tracksViewController.selectTracks([track])
|
||||||
|
if doc.isMatroska { doc.updateChangeCount(.changeDone) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
@@ -436,13 +600,13 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
private func addMetadata(fileURL: URL) {
|
private func addMetadata(fileURL: URL) {
|
||||||
let ext = fileURL.pathExtension.lowercased()
|
let ext = fileURL.pathExtension.lowercased()
|
||||||
if ext == "xml" || ext == "nfo", let metadata = MP42Metadata(url: fileURL) {
|
if ext == "xml" || ext == "nfo", let metadata = MP42Metadata(url: fileURL) {
|
||||||
mp4.metadata.merge(metadata)
|
mp4.metadata.merge(metadata, overwrite: true)
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
metadataViewController?.metadata = mp4.metadata
|
metadataViewController?.metadata = mp4.metadata
|
||||||
|
tracksViewController.selectTracks([])
|
||||||
} else if let file = try? MP42File(url: fileURL) {
|
} else if let file = try? MP42File(url: fileURL) {
|
||||||
mp4.metadata.merge(file.metadata)
|
mp4.metadata.merge(file.metadata, overwrite: true)
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
metadataViewController?.metadata = mp4.metadata
|
metadataViewController?.metadata = mp4.metadata
|
||||||
|
tracksViewController.selectTracks([])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -452,7 +616,13 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
panel.allowsMultipleSelection = false
|
panel.allowsMultipleSelection = false
|
||||||
panel.canChooseFiles = true
|
panel.canChooseFiles = true
|
||||||
panel.canChooseDirectories = false
|
panel.canChooseDirectories = false
|
||||||
|
if #available(macOS 12, *) {
|
||||||
|
panel.allowedContentTypes = [.mpeg4Movie, .mpeg4Audio,
|
||||||
|
.appleProtectedMPEG4Video,
|
||||||
|
.xml, UTType(filenameExtension: "nfo")!]
|
||||||
|
} else {
|
||||||
panel.allowedFileTypes = ["mp4", "m4v", "m4a", "xml", "nfo"]
|
panel.allowedFileTypes = ["mp4", "m4v", "m4a", "xml", "nfo"]
|
||||||
|
}
|
||||||
|
|
||||||
panel.beginSheetModal(for: windowForSheet) { (response) in
|
panel.beginSheetModal(for: windowForSheet) { (response) in
|
||||||
if response == NSApplication.ModalResponse.OK, let url = panel.url {
|
if response == NSApplication.ModalResponse.OK, let url = panel.url {
|
||||||
@@ -463,13 +633,47 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
|
|
||||||
@IBAction func selectFile(_ sender: Any) {
|
@IBAction func selectFile(_ sender: Any) {
|
||||||
guard let windowForSheet = doc.windowForSheet else { return }
|
guard let windowForSheet = doc.windowForSheet else { return }
|
||||||
let supportedFileFormats = MP42FileImporter.supportedFileFormats() + ["txt", "csv"]
|
|
||||||
|
|
||||||
let panel = NSOpenPanel()
|
let panel = NSOpenPanel()
|
||||||
panel.allowsMultipleSelection = true
|
panel.allowsMultipleSelection = true
|
||||||
panel.canChooseFiles = true
|
panel.canChooseFiles = true
|
||||||
panel.canChooseDirectories = false
|
panel.canChooseDirectories = false
|
||||||
panel.allowedFileTypes = supportedFileFormats
|
|
||||||
|
if doc.isMatroska {
|
||||||
|
// A Matroska document can gain subtitle text tracks (the
|
||||||
|
// stream-copy remuxer writes them as S_TEXT/UTF8) and chapters
|
||||||
|
// (.txt creates/replaces the chapter track, .csv updates an
|
||||||
|
// existing one — same dispatch the MP4 branch uses below).
|
||||||
|
let chapterExtensions = ["txt", "csv"]
|
||||||
|
if #available(macOS 11, *) {
|
||||||
|
panel.allowedContentTypes = (DocumentWindowController.matroskaSubtitleExtensions + chapterExtensions).compactMap {
|
||||||
|
UTType(filenameExtension: $0)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
panel.allowedFileTypes = DocumentWindowController.matroskaSubtitleExtensions + chapterExtensions
|
||||||
|
}
|
||||||
|
panel.beginSheetModal(for: windowForSheet) { (response) in
|
||||||
|
guard response == NSApplication.ModalResponse.OK else { return }
|
||||||
|
var subtitleURLs: [URL] = []
|
||||||
|
for url in panel.urls {
|
||||||
|
switch url.pathExtension.lowercased() {
|
||||||
|
case "txt": self.addChapters(fileURL: url)
|
||||||
|
case "csv": self.updateChapters(fileURL: url)
|
||||||
|
default: subtitleURLs.append(url)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if subtitleURLs.isEmpty == false {
|
||||||
|
self.showImportSheet(fileURLs: subtitleURLs)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if #available(macOS 11, *) {
|
||||||
|
panel.allowedContentTypes = MP42FileImporter.supportedContentTypes() + [.text, .commaSeparatedText]
|
||||||
|
} else {
|
||||||
|
panel.allowedFileTypes = MP42FileImporter.supportedFileFormats() + ["txt", "csv"]
|
||||||
|
}
|
||||||
|
|
||||||
panel.beginSheetModal(for: windowForSheet) { (response) in
|
panel.beginSheetModal(for: windowForSheet) { (response) in
|
||||||
if response == NSApplication.ModalResponse.OK {
|
if response == NSApplication.ModalResponse.OK {
|
||||||
@@ -487,7 +691,16 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Subtitle text files a Matroska document can gain — must stay in sync
|
||||||
|
/// with the extension gate in MP42MkvRemuxer's added-track validation.
|
||||||
|
static let matroskaSubtitleExtensions = ["srt", "ssa", "ass"]
|
||||||
|
|
||||||
func showImportSheet(fileURLs: [URL]) {
|
func showImportSheet(fileURLs: [URL]) {
|
||||||
|
if doc.isMatroska {
|
||||||
|
importSubtitleTracksForMatroska(fileURLs: fileURLs)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
let controller = try FileImportController(fileURLs: fileURLs, delegate: self)
|
let controller = try FileImportController(fileURLs: fileURLs, delegate: self)
|
||||||
|
|
||||||
@@ -507,14 +720,92 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A Matroska document gains subtitle tracks by re-parsing the source text
|
||||||
|
// file at save time (MP42MkvRemuxer writes S_TEXT/UTF8 BlockGroups), so
|
||||||
|
// the model only needs the track object with its URL — no FileImportController
|
||||||
|
// sheet, and crucially none of didSelect's organizeAlternateGroups/
|
||||||
|
// inferMediaCharacteristics churn, which would shift model indices and
|
||||||
|
// break the remuxer's TrackEntry↔sourceTracks identity pairing.
|
||||||
|
func importSubtitleTracksForMatroska(fileURLs: [URL]) {
|
||||||
|
let allowed = DocumentWindowController.matroskaSubtitleExtensions
|
||||||
|
let subtitleURLs = fileURLs.filter { allowed.contains($0.pathExtension.lowercased()) }
|
||||||
|
guard subtitleURLs.isEmpty == false else { return }
|
||||||
|
|
||||||
|
var addedTracks: [MP42Track] = []
|
||||||
|
var nextDisplayId: MP42TrackId = (mp4.tracks.map { $0.trackId }.max() ?? 0) + 1
|
||||||
|
for url in subtitleURLs {
|
||||||
|
do {
|
||||||
|
let importer = try MP42FileImporter(url: url)
|
||||||
|
for track in importer.tracks {
|
||||||
|
guard track.isMember(of: MP42ChapterTrack.self) == false else { continue }
|
||||||
|
// Same addTrack: invariant the tags-only read establishes
|
||||||
|
// (see Document.readMatroska) — codecs MP4 cannot carry
|
||||||
|
// as-is must carry conversion settings.
|
||||||
|
if trackNeedConversion(track.format) {
|
||||||
|
(track as? MP42SubtitleTrack)?.conversionSettings = MP42ConversionSettings.subtitlesConversion()
|
||||||
|
}
|
||||||
|
mp4.addTrack(track)
|
||||||
|
// addTrack: zeroes trackId; keep the table numbering dense.
|
||||||
|
track.trackId = nextDisplayId
|
||||||
|
nextDisplayId += 1
|
||||||
|
addedTracks.append(track)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
if let windowForSheet = doc.windowForSheet {
|
||||||
|
presentError(error, modalFor: windowForSheet, delegate: nil, didPresent: nil, contextInfo: nil)
|
||||||
|
} else {
|
||||||
|
presentError(error)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
guard addedTracks.isEmpty == false else { return }
|
||||||
|
doc.updateChangeCount(.changeDone)
|
||||||
|
tracksViewController.reloadData()
|
||||||
|
tracksViewController.selectTracks(addedTracks)
|
||||||
|
}
|
||||||
|
|
||||||
|
@objc func importFilesDirectly(_ fileURLs: [URL]) {
|
||||||
|
// Mirror the open panel's extension routing (selectFile): chapter
|
||||||
|
// text files go to the chapter commands — addChapters bootstraps the
|
||||||
|
// chapter track on both containers — everything else to the regular
|
||||||
|
// track importer.
|
||||||
|
var mediaURLs: [URL] = []
|
||||||
|
for url in fileURLs {
|
||||||
|
switch url.pathExtension.lowercased() {
|
||||||
|
case "txt": addChapters(fileURL: url)
|
||||||
|
case "csv": updateChapters(fileURL: url)
|
||||||
|
default: mediaURLs.append(url)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
guard mediaURLs.isEmpty == false else { return }
|
||||||
|
|
||||||
|
do {
|
||||||
|
let controller = try FileImportController(fileURLs: mediaURLs, delegate: self)
|
||||||
|
|
||||||
|
// Call addTracks directly - the Settings initialization logic runs when the controller is created
|
||||||
|
controller.addTracks(self)
|
||||||
|
tracksViewController.reloadData()
|
||||||
|
} catch {
|
||||||
|
if let windowForSheet = doc.windowForSheet {
|
||||||
|
presentError(error, modalFor: windowForSheet, delegate: nil, didPresent: nil, contextInfo: nil)
|
||||||
|
} else {
|
||||||
|
presentError(error)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?) {
|
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?) {
|
||||||
for track in tracks {
|
for track in tracks {
|
||||||
mp4.addTrack(track)
|
mp4.addTrack(track)
|
||||||
}
|
}
|
||||||
|
|
||||||
if tracks.isEmpty == false {
|
// Reordering must never touch a Matroska document: the remuxer pairs
|
||||||
doc.updateChangeCount(.changeDone)
|
// TrackEntry elements against the saver's importer-order snapshot by
|
||||||
|
// identity, and a reordered model would mispair them (same rule as
|
||||||
|
// delete(tracks:)).
|
||||||
|
if tracks.isEmpty == false, doc.isMatroska == false {
|
||||||
if Prefs.organizeAlternateGroups {
|
if Prefs.organizeAlternateGroups {
|
||||||
mp4.organizeAlternateGroups()
|
mp4.organizeAlternateGroups()
|
||||||
if Prefs.inferMediaCharacteristics {
|
if Prefs.inferMediaCharacteristics {
|
||||||
@@ -524,13 +815,17 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let metadata = metadata {
|
if let metadata, metadata.items.isEmpty == false {
|
||||||
mp4.metadata.merge(metadata)
|
mp4.metadata.merge(metadata, overwrite: true)
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
metadataViewController?.metadata = mp4.metadata
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tracksViewController.reloadData()
|
tracksViewController.reloadData()
|
||||||
|
|
||||||
|
if let metadata, metadata.items.isEmpty == false {
|
||||||
|
tracksViewController.selectTracks([])
|
||||||
|
} else if tracks.isEmpty == false {
|
||||||
|
tracksViewController.selectTracks(tracks)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Drag & drop
|
// MARK: Drag & drop
|
||||||
@@ -551,8 +846,18 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
let items = pasteboard.readObjects(forClasses: [NSURL.classForCoder()], options: [:]) as? [URL]
|
let items = pasteboard.readObjects(forClasses: [NSURL.classForCoder()], options: [:]) as? [URL]
|
||||||
else { return false }
|
else { return false }
|
||||||
|
|
||||||
let chapters = items.filter { $0.pathExtension.lowercased() == "txt" }
|
// Metadata drops are fine in tags-only mode. Chapters ride the
|
||||||
if let url = chapters.first {
|
// remuxer on Matroska documents, so txt/csv drops route there too;
|
||||||
|
// everything else that would add a track goes through the import
|
||||||
|
// panel (which routes Matroska docs to the subtitle-only path).
|
||||||
|
if doc.isMatroska {
|
||||||
|
if let url = items.first(where: { $0.pathExtension.lowercased() == "txt" }) {
|
||||||
|
addChapters(fileURL: url)
|
||||||
|
}
|
||||||
|
if let url = items.first(where: { $0.pathExtension.lowercased() == "csv" }) {
|
||||||
|
updateChapters(fileURL: url)
|
||||||
|
}
|
||||||
|
} else if let url = items.first(where: { $0.pathExtension.lowercased() == "txt" }) {
|
||||||
addChapters(fileURL: url)
|
addChapters(fileURL: url)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,11 @@ import Cocoa
|
|||||||
@MainActor @objc optional func paste(to tableview: NSTableView)
|
@MainActor @objc optional func paste(to tableview: NSTableView)
|
||||||
}
|
}
|
||||||
|
|
||||||
class ExpandedTableView: NSTableView, NSMenuItemValidation {
|
protocol ExpandedTableViewCellActionable {
|
||||||
|
func performAction()
|
||||||
|
}
|
||||||
|
|
||||||
|
class ExpandedTableView: NSTableView {
|
||||||
|
|
||||||
var pasteboardTypes: [NSPasteboard.PasteboardType]
|
var pasteboardTypes: [NSPasteboard.PasteboardType]
|
||||||
var pasteboardHasSupportedType: Bool {
|
var pasteboardHasSupportedType: Bool {
|
||||||
@@ -59,12 +63,20 @@ class ExpandedTableView: NSTableView, NSMenuItemValidation {
|
|||||||
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, NSMenuItemValidation {
|
|||||||
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)
|
||||||
}
|
}
|
||||||
@@ -114,8 +129,8 @@ class ExpandedTableView: NSTableView, NSMenuItemValidation {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
override func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
|
||||||
if let action = menuItem.action {
|
if let action = item.action {
|
||||||
switch action {
|
switch action {
|
||||||
case #selector(delete(_:)):
|
case #selector(delete(_:)):
|
||||||
if selectedRow == -1 || implements(selector: #selector(ExpandedTableViewDelegate.deleteSelection(in:))) == false {
|
if selectedRow == -1 || implements(selector: #selector(ExpandedTableViewDelegate.deleteSelection(in:))) == false {
|
||||||
@@ -137,6 +152,6 @@ class ExpandedTableView: NSTableView, NSMenuItemValidation {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true
|
return super.validateUserInterfaceItem(item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,7 +12,7 @@ protocol FileImportControllerDelegate : AnyObject {
|
|||||||
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?)
|
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?)
|
||||||
}
|
}
|
||||||
|
|
||||||
final class FileImportController: ViewController, NSTableViewDataSource, NSTableViewDelegate, NSMenuItemValidation {
|
final class FileImportController: ViewController, NSTableViewDataSource, NSTableViewDelegate, NSUserInterfaceValidations {
|
||||||
|
|
||||||
private enum ItemType {
|
private enum ItemType {
|
||||||
case file(MP42FileImporter)
|
case file(MP42FileImporter)
|
||||||
@@ -56,6 +56,15 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
|
|||||||
enabled: needsConversion == false)
|
enabled: needsConversion == false)
|
||||||
actions.append(action)
|
actions.append(action)
|
||||||
|
|
||||||
|
// PGS can be kept as bitmap subtitles: the muxer converts the
|
||||||
|
// stream to VobSub (sup2vob) and writes a real MP4 subp track.
|
||||||
|
if track.format == kMP42SubtitleCodecType_PGS {
|
||||||
|
let bitmapAction = Action(title: NSLocalizedString("VobSub", comment: "File Import action menu item."),
|
||||||
|
tag: 2,
|
||||||
|
enabled: true)
|
||||||
|
actions.append(bitmapAction)
|
||||||
|
}
|
||||||
|
|
||||||
if (needsConversion || track.format == kMP42SubtitleCodecType_VobSub) {
|
if (needsConversion || track.format == kMP42SubtitleCodecType_VobSub) {
|
||||||
let conversionAction = Action(title: NSLocalizedString("Tx3g", comment: "File Import action menu item."),
|
let conversionAction = Action(title: NSLocalizedString("Tx3g", comment: "File Import action menu item."),
|
||||||
tag: 1,
|
tag: 1,
|
||||||
@@ -115,6 +124,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
|
||||||
}
|
}
|
||||||
@@ -146,6 +166,11 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// PGS: keep it bitmap — VobSub by default, tx3g only if the
|
||||||
|
// user's bitmap-subtitles-to-tx3g preference says so
|
||||||
|
else if track.format == kMP42SubtitleCodecType_PGS {
|
||||||
|
self.selectedActionTag = Prefs.subtitleConvertBitmap ? 1 : 2
|
||||||
|
}
|
||||||
// Vobsub
|
// Vobsub
|
||||||
else if track.format == kMP42SubtitleCodecType_VobSub && Prefs.subtitleConvertBitmap {
|
else if track.format == kMP42SubtitleCodecType_VobSub && Prefs.subtitleConvertBitmap {
|
||||||
self.selectedActionTag = 1
|
self.selectedActionTag = 1
|
||||||
@@ -233,6 +258,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 +266,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 validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
|
||||||
if let action = menuItem.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 +304,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
|
||||||
@@ -287,6 +343,8 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
|
|||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func addTracks(_ sender: Any) {
|
@IBAction func addTracks(_ sender: Any) {
|
||||||
|
logTracksTable()
|
||||||
|
|
||||||
var selectedTracks: [MP42Track] = []
|
var selectedTracks: [MP42Track] = []
|
||||||
|
|
||||||
for trackSettings in settings where trackSettings.checked {
|
for trackSettings in settings where trackSettings.checked {
|
||||||
@@ -327,7 +385,10 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
|
|||||||
|
|
||||||
case let track as MP42SubtitleTrack:
|
case let track as MP42SubtitleTrack:
|
||||||
|
|
||||||
if trackSettings.selectedActionTag > 0 {
|
if trackSettings.selectedActionTag == 2 {
|
||||||
|
// PGS → VobSub: mux as a bitmap subp track (sup2vob)
|
||||||
|
track.conversionSettings = MP42ConversionSettings.subtitlesVobSubConversion()
|
||||||
|
} else if trackSettings.selectedActionTag > 0 {
|
||||||
track.conversionSettings = MP42ConversionSettings.subtitlesConversion()
|
track.conversionSettings = MP42ConversionSettings.subtitlesConversion()
|
||||||
}
|
}
|
||||||
selectedTracks.append(trackSettings.track)
|
selectedTracks.append(trackSettings.track)
|
||||||
@@ -411,6 +472,7 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
|
|||||||
case checkColumn?:
|
case checkColumn?:
|
||||||
let cell = tableView.makeView(withIdentifier: checkColumn, owner:self) as? CheckBoxCellView
|
let cell = tableView.makeView(withIdentifier: checkColumn, owner:self) as? CheckBoxCellView
|
||||||
cell?.checkboxButton?.state = settings.checked ? .on : .off
|
cell?.checkboxButton?.state = settings.checked ? .on : .off
|
||||||
|
cell?.checkboxButton?.isEnabled = settings.importable
|
||||||
return cell
|
return cell
|
||||||
|
|
||||||
case trackIdColumn?:
|
case trackIdColumn?:
|
||||||
@@ -479,4 +541,78 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
|
|||||||
return 18
|
return 18
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: Private methods
|
||||||
|
|
||||||
|
private func logTracksTable() {
|
||||||
|
let logger = Logger.shared
|
||||||
|
|
||||||
|
// Helper function to truncate strings
|
||||||
|
func truncate(_ str: String, to length: Int) -> String {
|
||||||
|
if str.count <= length {
|
||||||
|
return str.padding(toLength: length, withPad: " ", startingAt: 0)
|
||||||
|
}
|
||||||
|
return String(str.prefix(length - 1)) + "~"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Helper function to format duration
|
||||||
|
func formatDuration(_ duration: Double, timescale: UInt32) -> String {
|
||||||
|
if duration <= 0 || timescale == 0 {
|
||||||
|
return "Unknown"
|
||||||
|
}
|
||||||
|
let seconds = duration / Double(timescale)
|
||||||
|
let hours = Int(seconds) / 3600
|
||||||
|
let minutes = (Int(seconds) % 3600) / 60
|
||||||
|
let secs = Int(seconds) % 60
|
||||||
|
let millisecs = Int((seconds - Double(Int(seconds))) * 1000)
|
||||||
|
return String(format: "%02d:%02d:%02d.%03d", hours, minutes, secs, millisecs)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build the entire table as a single string
|
||||||
|
var tableLines: [String] = []
|
||||||
|
|
||||||
|
tableLines.append("File Import: Processing tracks with applied settings:")
|
||||||
|
tableLines.append("----------------------------------------------------------------------------------------------")
|
||||||
|
tableLines.append("| | Id | Name | Duration | Language | Info | Action |")
|
||||||
|
tableLines.append("----------------------------------------------------------------------------------------------")
|
||||||
|
|
||||||
|
var trackId = 1
|
||||||
|
for item in items {
|
||||||
|
switch item {
|
||||||
|
case .file(_):
|
||||||
|
// Skip file headers in table format
|
||||||
|
break
|
||||||
|
|
||||||
|
case .track(let settings):
|
||||||
|
let track = settings.track
|
||||||
|
|
||||||
|
// Get the selected action description
|
||||||
|
let selectedAction = settings.actions.first { $0.tag == settings.selectedActionTag }
|
||||||
|
let action = selectedAction?.title ?? "Unknown"
|
||||||
|
|
||||||
|
// Format the data with proper truncation and alignment
|
||||||
|
let name = truncate(track.name.isEmpty ? "Unnamed" : track.name, to: 21)
|
||||||
|
let language = truncate(MP42Languages.defaultManager.localizedLang(forExtendedTag: track.language), to: 13)
|
||||||
|
let infoTruncated = truncate(track.formatSummary, to: 10)
|
||||||
|
let actionTruncated = truncate(action, to: 13)
|
||||||
|
let duration = formatDuration(Double(track.duration), timescale: track.timescale)
|
||||||
|
let selected = settings.checked ? "X" : " "
|
||||||
|
let id = String(format: "%02d", trackId)
|
||||||
|
|
||||||
|
// Create properly aligned row with fixed column widths
|
||||||
|
// The truncate function now handles padding, so we just need to pad duration
|
||||||
|
let durationPadded = duration.padding(toLength: 12, withPad: " ", startingAt: 0)
|
||||||
|
|
||||||
|
let row = "| \(selected) | \(id) | \(name) | \(durationPadded) | \(language) | \(infoTruncated) | \(actionTruncated) |"
|
||||||
|
tableLines.append(row)
|
||||||
|
|
||||||
|
trackId += 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tableLines.append("----------------------------------------------------------------------------------------------")
|
||||||
|
|
||||||
|
// Log the entire table as a single entry
|
||||||
|
logger.write(toLog: tableLines.joined(separator: "\n"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -23,6 +23,84 @@ class GeneralPrefsViewController: NSViewController {
|
|||||||
return "GeneralPrefsViewController"
|
return "GeneralPrefsViewController"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: Save As location popUp
|
||||||
|
|
||||||
|
@IBOutlet var saveLocationPopUp: NSPopUpButton!
|
||||||
|
|
||||||
|
private let customLocationTag = 2
|
||||||
|
|
||||||
|
override func viewDidLoad() {
|
||||||
|
super.viewDidLoad()
|
||||||
|
prepareSaveLocationPopUp()
|
||||||
|
}
|
||||||
|
|
||||||
|
private func menuItem(url: URL) -> NSMenuItem {
|
||||||
|
let icon = NSWorkspace.shared.icon(forFile: url.path)
|
||||||
|
icon.size = NSSize(width: 16, height: 16)
|
||||||
|
|
||||||
|
let values = try? url.resourceValues(forKeys: [.localizedNameKey])
|
||||||
|
let title = values?.localizedName ?? url.lastPathComponent
|
||||||
|
|
||||||
|
let item = NSMenuItem(title: title, action: #selector(setSaveLocation(_:)), keyEquivalent: "")
|
||||||
|
item.image = icon
|
||||||
|
item.target = self
|
||||||
|
item.representedObject = url
|
||||||
|
item.toolTip = url.path
|
||||||
|
item.tag = customLocationTag
|
||||||
|
return item
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Rebuilds the custom folder item, then selects the current location.
|
||||||
|
private func prepareSaveLocationPopUp() {
|
||||||
|
guard let menu = saveLocationPopUp.menu else { return }
|
||||||
|
|
||||||
|
if let item = menu.items.first(where: { $0.tag == customLocationTag }) {
|
||||||
|
menu.removeItem(item)
|
||||||
|
}
|
||||||
|
|
||||||
|
if let url = Prefs.saveAsCustomLocation {
|
||||||
|
menu.insertItem(NSMenuItem.separator(), at: 2)
|
||||||
|
menu.insertItem(menuItem(url: url), at: 3)
|
||||||
|
}
|
||||||
|
|
||||||
|
selectCurrentSaveLocation()
|
||||||
|
}
|
||||||
|
|
||||||
|
private func selectCurrentSaveLocation() {
|
||||||
|
let location = Prefs.saveAsLocation
|
||||||
|
|
||||||
|
if location == .custom && Prefs.saveAsCustomLocation == nil {
|
||||||
|
saveLocationPopUp.selectItem(withTag: SaveAsLocation.automatic.rawValue)
|
||||||
|
} else {
|
||||||
|
saveLocationPopUp.selectItem(withTag: location.rawValue)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func setSaveLocation(_ sender: NSMenuItem) {
|
||||||
|
if let url = sender.representedObject as? URL {
|
||||||
|
Prefs.saveAsCustomLocation = url
|
||||||
|
Prefs.saveAsLocation = .custom
|
||||||
|
} else {
|
||||||
|
Prefs.saveAsLocation = SaveAsLocation(rawValue: sender.tag) ?? .automatic
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func chooseSaveLocation(_ sender: Any) {
|
||||||
|
let panel = NSOpenPanel()
|
||||||
|
panel.allowsMultipleSelection = false
|
||||||
|
panel.canChooseFiles = false
|
||||||
|
panel.canChooseDirectories = true
|
||||||
|
panel.canCreateDirectories = true
|
||||||
|
|
||||||
|
panel.begin { response in
|
||||||
|
if response == .OK, let url = panel.url {
|
||||||
|
Prefs.saveAsCustomLocation = url
|
||||||
|
Prefs.saveAsLocation = .custom
|
||||||
|
}
|
||||||
|
self.prepareSaveLocationPopUp()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func clearRecentSearches(_ sender: Any) {
|
@IBAction func clearRecentSearches(_ sender: Any) {
|
||||||
MetadataSearchController.clearRecentSearches()
|
MetadataSearchController.clearRecentSearches()
|
||||||
}
|
}
|
||||||
@@ -37,4 +115,11 @@ class GeneralPrefsViewController: NSViewController {
|
|||||||
|
|
||||||
@objc dynamic var ratingsCountries: [String] { return Ratings.shared.countries.map { $0.displayName } }
|
@objc dynamic var ratingsCountries: [String] { return Ratings.shared.countries.map { $0.displayName } }
|
||||||
|
|
||||||
|
@objc dynamic var logFormatOptions: [String] {
|
||||||
|
return [
|
||||||
|
NSLocalizedString("Time Only", comment: ""),
|
||||||
|
NSLocalizedString("Date and Time", comment: "")
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
+50
-2
@@ -10,7 +10,15 @@ import MP42Foundation
|
|||||||
|
|
||||||
final class Logger : NSObject, MP42Logging {
|
final class Logger : NSObject, MP42Logging {
|
||||||
|
|
||||||
|
enum Format: Int {
|
||||||
|
case timeOnly = 0
|
||||||
|
case dateAndTime = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
static let shared = Logger(fileURL: defaultDestinationURL)
|
||||||
|
|
||||||
var delegate: MP42Logging?
|
var delegate: MP42Logging?
|
||||||
|
var format: Format { Format(rawValue: Prefs.logFormat) ?? .timeOnly }
|
||||||
|
|
||||||
private let fileURL: URL
|
private let fileURL: URL
|
||||||
private let queue: DispatchQueue
|
private let queue: DispatchQueue
|
||||||
@@ -24,7 +32,17 @@ final class Logger : NSObject, MP42Logging {
|
|||||||
var currentTime = time(nil)
|
var currentTime = time(nil)
|
||||||
if let localTime = localtime(¤tTime) {
|
if let localTime = localtime(¤tTime) {
|
||||||
let p = localTime.pointee
|
let p = localTime.pointee
|
||||||
return "\(p.tm_hour):\(p.tm_min):\(p.tm_sec)"
|
return String(format: "%02d:%02d:%02d", p.tm_hour, p.tm_min, p.tm_sec)
|
||||||
|
} else {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private func currentDate() -> String {
|
||||||
|
var currentTime = time(nil)
|
||||||
|
if let localTime = localtime(¤tTime) {
|
||||||
|
let p = localTime.pointee
|
||||||
|
return String(format: "%04d-%02d-%02d", p.tm_year + 1900, p.tm_mon + 1, p.tm_mday)
|
||||||
} else {
|
} else {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
@@ -32,7 +50,14 @@ final class Logger : NSObject, MP42Logging {
|
|||||||
|
|
||||||
func write(toLog string: String) {
|
func write(toLog string: String) {
|
||||||
queue.sync {
|
queue.sync {
|
||||||
let output = "\(currentTime()) \(string)\n"
|
let prefix: String
|
||||||
|
switch format {
|
||||||
|
case .timeOnly:
|
||||||
|
prefix = currentTime()
|
||||||
|
case .dateAndTime:
|
||||||
|
prefix = "\(currentDate()) \(currentTime())"
|
||||||
|
}
|
||||||
|
let output = "\(prefix) \(string)\n"
|
||||||
|
|
||||||
fileURL.withUnsafeFileSystemRepresentation {
|
fileURL.withUnsafeFileSystemRepresentation {
|
||||||
if let file = fopen($0, "a") {
|
if let file = fopen($0, "a") {
|
||||||
@@ -55,5 +80,28 @@ final class Logger : NSObject, MP42Logging {
|
|||||||
try? FileManager.default.removeItem(at: fileURL)
|
try? FileManager.default.removeItem(at: fileURL)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static let defaultDestinationURL: URL = {
|
||||||
|
appSupportURL().appendingPathComponent("debugLog.txt")
|
||||||
|
}()
|
||||||
|
|
||||||
|
private static func appSupportURL() -> URL {
|
||||||
|
let fileManager = FileManager.default
|
||||||
|
if let url = fileManager.urls(for: .applicationSupportDirectory, in: .userDomainMask)
|
||||||
|
.first?.appendingPathComponent("SublerMKV") {
|
||||||
|
|
||||||
|
do {
|
||||||
|
if fileManager.fileExists(atPath: url.path) == false {
|
||||||
|
try fileManager.createDirectory(at: url, withIntermediateDirectories: true, attributes: [:])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch _ {
|
||||||
|
fatalError("Couldn't create the app support directory")
|
||||||
|
}
|
||||||
|
|
||||||
|
return url
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
fatalError("Couldn't find the app support directory")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -27,7 +27,7 @@ extension MP42File {
|
|||||||
var hdType: TrackHDType? {
|
var hdType: TrackHDType? {
|
||||||
for track in tracks(withMediaType: kMP42MediaType_Video) as! [MP42VideoTrack] {
|
for track in tracks(withMediaType: kMP42MediaType_Video) as! [MP42VideoTrack] {
|
||||||
if (track.width > 1920 && track.height > 1088) {
|
if (track.width > 1920 && track.height > 1088) {
|
||||||
return nil // .hd4k 4k breaks AppleTV streaming
|
return Prefs.set4KHDVideoMetadata ? .hd4k : nil
|
||||||
} else if (track.width > 1280 || track.height > 720) && track.width <= 1920 && track.height <= 1088 {
|
} else if (track.width > 1280 || track.height > 720) && track.width <= 1920 && track.height <= 1088 {
|
||||||
return .hd1080p
|
return .hd1080p
|
||||||
} else if track.width >= 960 && track.height >= 720 || track.width >= 1280 {
|
} else if track.width >= 960 && track.height >= 720 || track.width >= 1280 {
|
||||||
@@ -51,15 +51,26 @@ extension MP42File {
|
|||||||
let _ = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyReleaseDate).first?.stringValue,
|
let _ = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyReleaseDate).first?.stringValue,
|
||||||
let mediaKind = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyMediaKind).first?.numberValue?.intValue,
|
let mediaKind = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyMediaKind).first?.numberValue?.intValue,
|
||||||
mediaKind == MediaKind.movie.rawValue {
|
mediaKind == MediaKind.movie.rawValue {
|
||||||
return MetadataSearchTerms.movie(title: title)
|
// Only the file name can carry a service ID or release year, so parse
|
||||||
|
// it even when the metadata already describes the movie: an already
|
||||||
|
// tagged file (or one tagged by an earlier search) still gets the
|
||||||
|
// direct ID lookup and the year preference from `{tmdb-…}`-style names.
|
||||||
|
var fileID: MetadataFileID?
|
||||||
|
var fileYear: Int?
|
||||||
|
if let url = firstSourceURL ?? fallbackURL,
|
||||||
|
case let .movie(_, urlID, urlYear) = url.deletingPathExtension().lastPathComponent.parsedAsFilename() {
|
||||||
|
fileID = urlID
|
||||||
|
fileYear = urlYear
|
||||||
|
}
|
||||||
|
return MetadataSearchTerms.movie(title: title, id: fileID, year: fileYear)
|
||||||
}
|
}
|
||||||
else if let url = firstSourceURL ?? fallbackURL {
|
else if let url = firstSourceURL ?? fallbackURL {
|
||||||
let parsed = url.deletingPathExtension().lastPathComponent.parsedAsFilename()
|
let parsed = url.deletingPathExtension().lastPathComponent.parsedAsFilename()
|
||||||
|
|
||||||
switch parsed {
|
switch parsed {
|
||||||
case .none:
|
case .none:
|
||||||
let title = url.deletingPathExtension().lastPathComponent
|
let name = url.deletingPathExtension().lastPathComponent
|
||||||
return MetadataSearchTerms.movie(title: title)
|
return MetadataSearchTerms.movie(title: name, year: name.parsedAsFilenameYear())
|
||||||
|
|
||||||
case .tvShow, .movie:
|
case .tvShow, .movie:
|
||||||
return parsed
|
return parsed
|
||||||
@@ -91,6 +102,10 @@ extension MP42File {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func firstSourceDirectoryURL() -> URL? {
|
||||||
|
return tracks.compactMap { $0.url }.first?.deletingLastPathComponent()
|
||||||
|
}
|
||||||
|
|
||||||
func formattedFileName() -> String? {
|
func formattedFileName() -> String? {
|
||||||
guard let mediaKindValue = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyMediaKind).first?.numberValue?.intValue,
|
guard let mediaKindValue = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyMediaKind).first?.numberValue?.intValue,
|
||||||
let mediaKind = MediaKind(rawValue: mediaKindValue)
|
let mediaKind = MediaKind(rawValue: mediaKindValue)
|
||||||
|
|||||||
@@ -0,0 +1,229 @@
|
|||||||
|
//
|
||||||
|
// MatroskaSaver.swift
|
||||||
|
// Subler
|
||||||
|
//
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
import MP42Foundation
|
||||||
|
|
||||||
|
/// Owns the on-disk baseline of a tags-only Matroska source file and writes
|
||||||
|
/// model changes back into it with the window's save semantics: in-place
|
||||||
|
/// metadata/track-field retagging via MP42MkvTagWriter, or a stream-copy
|
||||||
|
/// rebuild via MP42MkvRemuxer when the edit is structural (deleted/added
|
||||||
|
/// tracks, chapter changes), when a full rebuild is forced (optimize,
|
||||||
|
/// Save-As-style different destination), never producing an MP4.
|
||||||
|
///
|
||||||
|
/// Shared by Document (window saves) and QueueItem (queue retags MKVs in
|
||||||
|
/// place instead of converting them) so the pairing/staleness bookkeeping
|
||||||
|
/// cannot drift between the two save paths.
|
||||||
|
final class MatroskaSaver {
|
||||||
|
|
||||||
|
private var sourceURL: URL
|
||||||
|
// Tracks exactly as the importer produced them (file order, chapter
|
||||||
|
// pseudo-track filtered): the baseline MP42MkvRemuxer pairs TrackEntry
|
||||||
|
// elements against, so a deleted track is detected by object identity.
|
||||||
|
private var sourceTracks: [MP42Track]
|
||||||
|
// Chapter rows as the file's baseline holds them (model milliseconds,
|
||||||
|
// plus the track-level chapter language the remuxer stamps as
|
||||||
|
// ChapterLanguage). nil when the last read/written file had no chapters.
|
||||||
|
// Compared model-vs-snapshot against the model on save: because the
|
||||||
|
// importer itself drops some atoms (duplicate zero timestamps), those
|
||||||
|
// silently-dropped atoms must not look like edits.
|
||||||
|
private var chaptersSnapshot: [(timestamp: UInt64, title: String, language: String)]?
|
||||||
|
// The tag writer refuses to overwrite a file that changed on disk since
|
||||||
|
// we read it; NSDocument doesn't perform that check for us here (and the
|
||||||
|
// queue certainly doesn't).
|
||||||
|
private var fileSize: UInt64 = 0
|
||||||
|
private var fileModificationDate: Date?
|
||||||
|
|
||||||
|
private var activeWriter: MP42MkvTagWriter?
|
||||||
|
private var activeRemuxer: MP42MkvRemuxer?
|
||||||
|
|
||||||
|
// Called on the writing thread; hosts forward it to their progress UI
|
||||||
|
// (the window's save sheet listens on the model's progress handler, the
|
||||||
|
// queue on its delegate).
|
||||||
|
var progressHandler: ((Double) -> Void)?
|
||||||
|
|
||||||
|
/// Builds the tags-only display model for a Matroska importer: metadata
|
||||||
|
/// merged in, every importer track added (chapter pseudo-track included)
|
||||||
|
/// with 1-based display trackIds like MKV players number tracks.
|
||||||
|
///
|
||||||
|
/// The returned file's undo manager is deliberately not wired yet — the
|
||||||
|
/// caller wires it after this returns so these addTrack: calls do not
|
||||||
|
/// open undo groups.
|
||||||
|
static func buildModel(from importer: MP42FileImporter) -> MP42File {
|
||||||
|
let file = MP42File()
|
||||||
|
file.metadata.merge(importer.metadata, overwrite: true)
|
||||||
|
var displayTrackId: MP42TrackId = 0
|
||||||
|
for track in importer.tracks {
|
||||||
|
// -[MP42File addTrack:] asserts that tracks whose codec cannot be
|
||||||
|
// muxed into MP4 as-is (mp3, vorbis, srt, pgs, …) carry conversion
|
||||||
|
// settings. Tags-only documents never mux these tracks, but
|
||||||
|
// satisfy the invariant with the same defaults the convert-import
|
||||||
|
// flow uses (see FileImportController.addTracks).
|
||||||
|
if trackNeedConversion(track.format), track.isMember(of: MP42ChapterTrack.self) == false {
|
||||||
|
switch track {
|
||||||
|
case let audioTrack as MP42AudioTrack:
|
||||||
|
audioTrack.conversionSettings = MP42AudioConversionSettings.audioConversion(withBitRate: Prefs.audioBitrate,
|
||||||
|
mixDown: MP42AudioMixdown(Prefs.audioMixdown),
|
||||||
|
drc: Prefs.audioDRC)
|
||||||
|
case let subtitleTrack as MP42SubtitleTrack:
|
||||||
|
subtitleTrack.conversionSettings = MP42ConversionSettings.subtitlesConversion()
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file.addTrack(track)
|
||||||
|
// addTrack: zeroes trackId (pending-mux bookkeeping, the real
|
||||||
|
// IDs come from the muxer) and tags-only documents are never
|
||||||
|
// muxed, so assign display IDs 1-based like MKV players number
|
||||||
|
// tracks. The chapter track is numbered too, matching how the
|
||||||
|
// muxer would eventually number it.
|
||||||
|
displayTrackId += 1
|
||||||
|
track.trackId = displayTrackId
|
||||||
|
}
|
||||||
|
return file
|
||||||
|
}
|
||||||
|
|
||||||
|
/// - parameter model: the tags-only model built by `buildModel(from:)`
|
||||||
|
/// from this same `importer` (track identity is the pairing baseline).
|
||||||
|
init(sourceURL: URL, importer: MP42FileImporter, model: MP42File) {
|
||||||
|
self.sourceURL = sourceURL
|
||||||
|
// Order-sensitive snapshot for the remuxer's TrackEntry pairing; the
|
||||||
|
// chapter pseudo-track has no TrackEntry and must not shift positions.
|
||||||
|
self.sourceTracks = importer.tracks.filter { $0.isMember(of: MP42ChapterTrack.self) == false }
|
||||||
|
self.chaptersSnapshot = Self.chapterRows(model.chapters)
|
||||||
|
snapshotSourceFile()
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: Save
|
||||||
|
|
||||||
|
/// Writes the model back with the window's save branching.
|
||||||
|
///
|
||||||
|
/// - parameter forceStructural: forces the remuxer rebuild even without
|
||||||
|
/// detected model changes — what the window passes for optimize and
|
||||||
|
/// Save-As, and what the queue passes when the destination differs
|
||||||
|
/// from the source (a renamed output or a queue destination folder).
|
||||||
|
func save(model: MP42File, to url: URL, forceStructural: Bool) throws {
|
||||||
|
guard MP42FileImporter.isMatroskaFileType(url.pathExtension) else {
|
||||||
|
throw NSError(domain: NSCocoaErrorDomain, code: NSFileWriteUnknownError,
|
||||||
|
userInfo: [NSLocalizedDescriptionKey: NSLocalizedString("Matroska documents can only be saved as a .mkv, .mka or .mks file.", comment: "Document MKV save destination type error.")])
|
||||||
|
}
|
||||||
|
|
||||||
|
let currentTracks = model.tracks.filter { $0.isMember(of: MP42ChapterTrack.self) == false }
|
||||||
|
// Structural change == some importer-created track is gone, or the
|
||||||
|
// model carries a track the importer never produced (an imported
|
||||||
|
// subtitle). Tracks are paired by object identity, so a reordered
|
||||||
|
// (impossible: reorder is gated on MKV docs) or merely renamed track
|
||||||
|
// still compares equal.
|
||||||
|
let tracksChanged = currentTracks.count != sourceTracks.count ||
|
||||||
|
currentTracks.contains { track in sourceTracks.contains(where: { $0 === track }) == false }
|
||||||
|
// Chapters ride the remuxer too: the Chapters element sits before the
|
||||||
|
// Clusters, so any size change shifts every following byte (the tag
|
||||||
|
// writer's in-place machinery is tail-only). An added-but-empty
|
||||||
|
// chapter track means "delete every chapter" — the remuxer removes
|
||||||
|
// the element.
|
||||||
|
let modelChapterRows = Self.chapterRows(model.chapters)
|
||||||
|
let chaptersChanged: Bool
|
||||||
|
switch (modelChapterRows, chaptersSnapshot) {
|
||||||
|
case (nil, nil): chaptersChanged = false
|
||||||
|
case let (model?, snapshot?):
|
||||||
|
chaptersChanged = model.count != snapshot.count ||
|
||||||
|
zip(model, snapshot).contains { $0.timestamp != $1.timestamp
|
||||||
|
|| $0.title != $1.title || $0.language != $1.language }
|
||||||
|
default: chaptersChanged = true
|
||||||
|
}
|
||||||
|
|
||||||
|
// A forced rebuild is the Matroska equivalent of reordering atoms:
|
||||||
|
// rebuilding the whole file — blocks stream-copied verbatim,
|
||||||
|
// Tracks/Tags rewritten, SeekHead and Cues regenerated — i.e.
|
||||||
|
// exactly the Save-As pass, done in place through the remuxer's
|
||||||
|
// temp file + atomic rename when the destination is the source.
|
||||||
|
if tracksChanged || chaptersChanged || forceStructural {
|
||||||
|
// An absent model track means "no chapters" — pass an empty
|
||||||
|
// track so the remuxer removes the element rather than copying
|
||||||
|
// the old one verbatim (nil replacement = verbatim).
|
||||||
|
try remux(model: model, to: url, currentTracks: currentTracks,
|
||||||
|
replacementChapters: chaptersChanged ? (model.chapters ?? MP42ChapterTrack()) : nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
let writer = MP42MkvTagWriter(url: url)
|
||||||
|
writer.expectedFileSize = fileSize
|
||||||
|
writer.expectedModificationDate = fileModificationDate
|
||||||
|
writer.progressHandler = { [weak self] progress in
|
||||||
|
self?.progressHandler?(progress)
|
||||||
|
}
|
||||||
|
activeWriter = writer
|
||||||
|
defer { activeWriter = nil }
|
||||||
|
// Track edits (name/language/enabled/subtitle forced) ride along; the
|
||||||
|
// chapter pseudo-track is skipped by the writer.
|
||||||
|
try writer.write(model.metadata, tracks: model.tracks)
|
||||||
|
// The file we just wrote is the new baseline for the staleness check.
|
||||||
|
snapshotSourceFile()
|
||||||
|
}
|
||||||
|
|
||||||
|
func cancel() {
|
||||||
|
activeWriter?.cancel()
|
||||||
|
activeRemuxer?.cancel()
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: Remux
|
||||||
|
|
||||||
|
// Stream-copy rebuild: blocks are copied verbatim except those of removed
|
||||||
|
// tracks, and metadata/cover/track-field edits ride in the same pass.
|
||||||
|
// Writes a temp file and renames atomically; see MP42MkvRemuxer.h.
|
||||||
|
private func remux(model: MP42File, to url: URL, currentTracks: [MP42Track],
|
||||||
|
replacementChapters: MP42ChapterTrack?) throws {
|
||||||
|
let remuxer = MP42MkvRemuxer(sourceURL: sourceURL)
|
||||||
|
remuxer.expectedFileSize = fileSize
|
||||||
|
remuxer.expectedModificationDate = fileModificationDate
|
||||||
|
remuxer.progressHandler = { [weak self] progress in
|
||||||
|
self?.progressHandler?(progress)
|
||||||
|
}
|
||||||
|
// nil keeps the source Chapters element verbatim.
|
||||||
|
remuxer.replacementChapters = replacementChapters
|
||||||
|
activeRemuxer = remuxer
|
||||||
|
defer { activeRemuxer = nil }
|
||||||
|
try remuxer.remux(to: url, metadata: model.metadata,
|
||||||
|
sourceTracks: sourceTracks, currentTracks: currentTracks)
|
||||||
|
// The written file's chapters are exactly what the model holds now
|
||||||
|
// (modulo the writer's own sort/clamp, which the model then absorbs
|
||||||
|
// on the next read — an untouched save must not look "changed").
|
||||||
|
chaptersSnapshot = Self.chapterRows(model.chapters)
|
||||||
|
// The output keeps the surviving TrackEntry elements in source file
|
||||||
|
// order and appends one TrackEntry per added subtitle track last
|
||||||
|
// (MP42MkvRemuxer), so re-snapshot the pairing baseline in that same
|
||||||
|
// order — otherwise the appended track would look "added" again on
|
||||||
|
// the next save and the TrackEntry count would mispair.
|
||||||
|
let addedTracks = currentTracks.filter { track in
|
||||||
|
sourceTracks.contains(where: { $0 === track }) == false
|
||||||
|
}
|
||||||
|
sourceTracks = sourceTracks.filter { track in
|
||||||
|
currentTracks.contains(where: { $0 === track })
|
||||||
|
} + addedTracks
|
||||||
|
// A Save-As-style different destination becomes the new source: the
|
||||||
|
// next save reads/pairs against the file we just wrote.
|
||||||
|
if url != sourceURL {
|
||||||
|
sourceURL = url
|
||||||
|
}
|
||||||
|
snapshotSourceFile()
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: Baseline helpers
|
||||||
|
|
||||||
|
private func snapshotSourceFile() {
|
||||||
|
let attributes = try? FileManager.default.attributesOfItem(atPath: sourceURL.path)
|
||||||
|
fileSize = (attributes?[.size] as? NSNumber)?.uint64Value ?? 0
|
||||||
|
fileModificationDate = attributes?[.modificationDate] as? Date
|
||||||
|
}
|
||||||
|
|
||||||
|
private static func chapterRows(_ track: MP42ChapterTrack?)
|
||||||
|
-> [(timestamp: UInt64, title: String, language: String)]? {
|
||||||
|
guard let track else { return nil }
|
||||||
|
// The language is track-level; repeated per row so the zip comparison
|
||||||
|
// above covers language-only edits.
|
||||||
|
let language = track.language
|
||||||
|
return track.chapters.map { ($0.timestamp, $0.title, language) }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -29,7 +29,7 @@ private extension MetadataResult {
|
|||||||
self[.director] = item.rolesSummary?.directors?.joined(separator: ", ")
|
self[.director] = item.rolesSummary?.directors?.joined(separator: ", ")
|
||||||
|
|
||||||
self[.iTunesURL] = item.url
|
self[.iTunesURL] = item.url
|
||||||
self[.serviceSeriesID] = item.id
|
self[.serviceContentID] = item.id
|
||||||
|
|
||||||
self.remoteArtworks = [item.images.coverArt16X9, item.images.coverArt].compactMap { $0?.artwork(type: .poster) }
|
self.remoteArtworks = [item.images.coverArt16X9, item.images.coverArt].compactMap { $0?.artwork(type: .poster) }
|
||||||
}
|
}
|
||||||
@@ -39,7 +39,7 @@ private extension MetadataResult {
|
|||||||
|
|
||||||
self.mediaKind = .tvShow
|
self.mediaKind = .tvShow
|
||||||
|
|
||||||
self[.serviceSeriesID] = item.id
|
self[.serviceContentID] = item.id
|
||||||
|
|
||||||
self[.seriesName] = item.title
|
self[.seriesName] = item.title
|
||||||
self[.seriesDescription] = item.description
|
self[.seriesDescription] = item.description
|
||||||
@@ -59,13 +59,14 @@ private extension MetadataResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self[.iTunesURL] = episode.showURL
|
self[.iTunesURL] = episode.showURL
|
||||||
self[.serviceSeriesID] = episode.showID
|
self[.serviceContentID] = episode.showID
|
||||||
|
|
||||||
if let releaseDate = item.releaseDate {
|
if let releaseDate = item.releaseDate {
|
||||||
self[.releaseDate] = Date(timeIntervalSince1970: releaseDate / 1000)
|
self[.releaseDate] = Date(timeIntervalSince1970: releaseDate / 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
self.remoteArtworks = [item.images.coverArt16X9, item.images.coverArt].compactMap { $0?.artwork(type: .poster) }
|
self.remoteArtworks = [item.images.coverArt16X9, item.images.coverArt].compactMap { $0?.artwork(type: .poster) }
|
||||||
|
self.remoteArtworks += [item.images.previewFrame].compactMap { $0?.artwork(type: .backdrop) }
|
||||||
self.remoteArtworks += [episode.seasonImages.coverArt16X9, episode.seasonImages.coverArt].compactMap { $0?.artwork(type: .season) }
|
self.remoteArtworks += [episode.seasonImages.coverArt16X9, episode.seasonImages.coverArt].compactMap { $0?.artwork(type: .season) }
|
||||||
self.remoteArtworks += [episode.images.previewFrame].compactMap { $0?.artwork(type: .episode) }
|
self.remoteArtworks += [episode.images.previewFrame].compactMap { $0?.artwork(type: .episode) }
|
||||||
}
|
}
|
||||||
@@ -130,7 +131,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: "")
|
||||||
@@ -156,16 +157,21 @@ public struct AppleTV: MetadataService {
|
|||||||
|
|
||||||
private func loadDetails(_ metadata: MetadataResult, language: String) -> MetadataResult {
|
private func loadDetails(_ metadata: MetadataResult, language: String) -> MetadataResult {
|
||||||
guard let store = iTunesStore.Store(language: language),
|
guard let store = iTunesStore.Store(language: language),
|
||||||
let id = metadata[.serviceSeriesID] as? String,
|
let id = metadata[.serviceContentID] as? String,
|
||||||
let details = fetchMovieDetails(id: id, store: store) else { return metadata }
|
let details = fetchMovieDetails(id: id, store: store) else { return metadata }
|
||||||
|
|
||||||
metadata.insert(contentOf: details, store: store)
|
metadata.insert(contentOf: details, store: store)
|
||||||
|
|
||||||
if let season = metadata[.season] as? Int {
|
if let season = metadata[.season] as? Int {
|
||||||
let index = metadata.remoteArtworks.count > 1 ? 1 : 0
|
let index = metadata.remoteArtworks.count > 1 ? 1 : 0
|
||||||
metadata.remoteArtworks.insert(contentsOf: searchSeasons(id: id, season: season, store: store), at: index)
|
let seasonArtworks = searchSeasons(id: id, season: season, store: store)
|
||||||
|
|
||||||
|
if let season16x9 = seasonArtworks.first(where: { $0.size == .rectangle } ) {
|
||||||
|
metadata.remoteArtworks.insert(season16x9, at: index)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
metadata.remoteArtworks.sortTopPicks(service: self.name)
|
||||||
return metadata
|
return metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -221,7 +227,8 @@ public struct AppleTV: MetadataService {
|
|||||||
let urlString = "\(seasonsURL)\(id)/itunesSeasons?sf=\(store.storeCode)&locale=\(store.language2)\(options)"
|
let urlString = "\(seasonsURL)\(id)/itunesSeasons?sf=\(store.storeCode)&locale=\(store.language2)\(options)"
|
||||||
if let url = URL(string: urlString), let results = sendJSONRequest(url: url, type: Wrapper<Seasons>.self) {
|
if let url = URL(string: urlString), let results = sendJSONRequest(url: url, type: Wrapper<Seasons>.self) {
|
||||||
let filteredResults = results.data.seasons.values.joined().filter { $0.seasonNumber == season }
|
let filteredResults = results.data.seasons.values.joined().filter { $0.seasonNumber == season }
|
||||||
return filteredResults.compactMap { $0.images.coverArt16X9?.artwork(type: .season) }
|
return filteredResults.compactMap { $0.images.coverArt16X9?.artwork(type: .season) } +
|
||||||
|
filteredResults.compactMap { $0.images.coverArt?.artwork(type: .season) }
|
||||||
}
|
}
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
@@ -236,7 +243,7 @@ public struct AppleTV: MetadataService {
|
|||||||
let items = results.data.canvas?.shelves.first?.items
|
let items = results.data.canvas?.shelves.first?.items
|
||||||
.filter { $0.type == type.description }
|
.filter { $0.type == type.description }
|
||||||
|
|
||||||
if let result = items?.filter({ $0.title == normalizedTerm }).first {
|
if let result = items?.filter({ $0.title?.caseInsensitiveCompare(normalizedTerm) == .orderedSame }).first {
|
||||||
return result
|
return result
|
||||||
} else if let result = items?.filter({ $0.title?.minimumEditDistance(other: normalizedTerm) ?? Int.max < 8 }).first {
|
} else if let result = items?.filter({ $0.title?.minimumEditDistance(other: normalizedTerm) ?? Int.max < 8 }).first {
|
||||||
return result
|
return result
|
||||||
@@ -247,15 +254,29 @@ public struct AppleTV: MetadataService {
|
|||||||
|
|
||||||
if let filteredResult = filteredResult {
|
if let filteredResult = filteredResult {
|
||||||
|
|
||||||
if let artworks = filteredResult.images.coverArt16X9?.artwork(type: .poster) {
|
var artworksSet = Set<Artwork>()
|
||||||
|
|
||||||
|
if let poster = filteredResult.images.coverArt16X9?.artwork(type: .poster) {
|
||||||
|
artworksSet.insert(poster)
|
||||||
|
}
|
||||||
|
|
||||||
|
if let poster = filteredResult.images.coverArt?.artwork(type: .poster) {
|
||||||
|
artworksSet.insert(poster)
|
||||||
|
}
|
||||||
|
|
||||||
if case let MediaType.tvShow(season) = type {
|
if case let MediaType.tvShow(season) = type {
|
||||||
if let season = season {
|
if let season = season {
|
||||||
return [artworks] + searchSeasons(id: filteredResult.id, season: season, store: store)
|
let seasonArtworks = searchSeasons(id: filteredResult.id, season: season, store: store)
|
||||||
|
if let season16x9 = seasonArtworks.first(where: { $0.size == .rectangle } ) {
|
||||||
|
artworksSet.insert(season16x9)
|
||||||
|
}
|
||||||
|
if let seasonSquare = seasonArtworks.first(where: { $0.size == .square } ) {
|
||||||
|
artworksSet.insert(seasonSquare)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return [artworks]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return Array(artworksSet)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return []
|
return []
|
||||||
@@ -360,11 +381,11 @@ public struct AppleTV: MetadataService {
|
|||||||
get {
|
get {
|
||||||
switch size {
|
switch size {
|
||||||
case .square:
|
case .square:
|
||||||
return "800x800.jpg"
|
return "1600x1600.jpg"
|
||||||
case .rectangle:
|
case .rectangle:
|
||||||
return "800x450.jpg"
|
return "1920x1080.jpg"
|
||||||
default:
|
default:
|
||||||
return "600x900.jpg"
|
return "1200x1800.jpg"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
@@ -9,9 +9,20 @@ import Foundation
|
|||||||
|
|
||||||
// MARK: - Filename
|
// MARK: - Filename
|
||||||
|
|
||||||
|
/// A metadata service ID embedded in the file name (e.g. `{tmdb-1015812}`).
|
||||||
|
public enum MetadataFileID: Equatable {
|
||||||
|
case tmdb(Int)
|
||||||
|
case tvdb(Int)
|
||||||
|
/// Normalized to the `tt…` form, leading zeros preserved.
|
||||||
|
case imdb(String)
|
||||||
|
}
|
||||||
|
|
||||||
public enum MetadataSearchTerms {
|
public enum MetadataSearchTerms {
|
||||||
case none
|
case none
|
||||||
case movie(title: String)
|
/// `id` is a metadata service ID parsed from the file name, when present.
|
||||||
|
/// `year` is a release year parsed from the file name, when present; it
|
||||||
|
/// lets search-result ranking prefer the same-year entry.
|
||||||
|
case movie(title: String, id: MetadataFileID? = nil, year: Int? = nil)
|
||||||
case tvShow(seriesName: String, season: Int?, episode: Int?)
|
case tvShow(seriesName: String, season: Int?, episode: Int?)
|
||||||
|
|
||||||
public var isMovie: Bool { get {
|
public var isMovie: Bool { get {
|
||||||
@@ -54,6 +65,50 @@ private func parseAnimeFilename(_ filename: String) -> MetadataSearchTerms? {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Parses the `id:<kind>:<value>` line emitted by ParseFilename.pl, when present.
|
||||||
|
private func parseFileID(_ lines: [Substring]) -> MetadataFileID? {
|
||||||
|
guard let idLine = lines.first(where: { $0.hasPrefix("id:") }) else { return nil }
|
||||||
|
|
||||||
|
let components = idLine.dropFirst(3).split(separator: ":", omittingEmptySubsequences: false)
|
||||||
|
guard components.count == 2, components[1].isEmpty == false else { return nil }
|
||||||
|
|
||||||
|
let kind = components[0]
|
||||||
|
let value = components[1]
|
||||||
|
|
||||||
|
switch kind {
|
||||||
|
case "tmdb":
|
||||||
|
return Int(value).map(MetadataFileID.tmdb)
|
||||||
|
case "tvdb":
|
||||||
|
return Int(value).map(MetadataFileID.tvdb)
|
||||||
|
case "imdb", "tt":
|
||||||
|
// The parser strips the `tt` prefix from IMDb IDs; the find API wants it back.
|
||||||
|
return .imdb("tt" + value)
|
||||||
|
default:
|
||||||
|
// A bare number with no known prefix is too ambiguous for a direct lookup.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 1950–2099 keeps resolutions (720/1080) and tiny numbers out of the match.
|
||||||
|
// Group 1 is the year in both; the class metacharacters must be escaped or
|
||||||
|
// ICU refuses to compile the pattern at all.
|
||||||
|
private let bracketedYearRegex = try? NSRegularExpression(pattern: "[\\(\\[\\{](19[5-9][0-9]|20[0-9][0-9])[\\)\\]\\}]")
|
||||||
|
private let delimitedYearRegex = try? NSRegularExpression(pattern: "[._ ](19[5-9][0-9]|20[0-9][0-9])(?:[._ ]|$)")
|
||||||
|
|
||||||
|
/// Extracts a release year from the file name. ParseFilename strips the year
|
||||||
|
/// from the title it emits but never reports it, so it is recovered here.
|
||||||
|
/// Bracketed years (`(2026)`, `[2026]`, `{2026}`) are the authoritative
|
||||||
|
/// release-name decoration and win over bare dot/space-delimited ones, which
|
||||||
|
/// can also hit resolution numbers (`Movie.1920.1080p.x264`).
|
||||||
|
private func parseFilenameYear(_ filename: String) -> Int? {
|
||||||
|
for regex in [bracketedYearRegex, delimitedYearRegex].compactMap({ $0 }) {
|
||||||
|
guard let match = regex.firstMatch(in: filename, range: NSRange(filename.startIndex..., in: filename)),
|
||||||
|
let yearRange = Range(match.range(at: 1), in: filename) else { continue }
|
||||||
|
return Int(filename[yearRange])
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
private func parseFilename(_ filename: String) -> MetadataSearchTerms? {
|
private func parseFilename(_ filename: String) -> MetadataSearchTerms? {
|
||||||
guard let path = Bundle.main.path(forResource: "ParseFilename", ofType: "") else { return nil }
|
guard let path = Bundle.main.path(forResource: "ParseFilename", ofType: "") else { return nil }
|
||||||
|
|
||||||
@@ -86,7 +141,7 @@ private func parseFilename(_ filename: String) -> MetadataSearchTerms? {
|
|||||||
.replacingOccurrences(of: "[", with: " ")
|
.replacingOccurrences(of: "[", with: " ")
|
||||||
.replacingOccurrences(of: "]", with: " ")
|
.replacingOccurrences(of: "]", with: " ")
|
||||||
.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
|
.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
|
||||||
return MetadataSearchTerms.movie(title: newTitle)
|
return MetadataSearchTerms.movie(title: newTitle, id: parseFileID(lines), year: parseFilenameYear(filename))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,4 +163,53 @@ extension String {
|
|||||||
func trimmingWhitespacesAndNewlinews() -> String {
|
func trimmingWhitespacesAndNewlinews() -> String {
|
||||||
return trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
|
return trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The release year decorated in a file name (`Title (2026)`, `Title.2026`), when present.
|
||||||
|
func parsedAsFilenameYear() -> Int? {
|
||||||
|
return parseFilenameYear(self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Movie result ranking
|
||||||
|
|
||||||
|
private func normalizedSearchTitle(_ title: String) -> String {
|
||||||
|
let folded = title.folding(options: [.caseInsensitive, .diacriticInsensitive], locale: nil)
|
||||||
|
return String(String.UnicodeScalarView(folded.unicodeScalars.filter { CharacterSet.alphanumerics.contains($0) }))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// The release year of a search result, as far as its (usually ISO) release
|
||||||
|
/// date string exposes it.
|
||||||
|
private func movieResultYear(_ result: MetadataResult) -> Int? {
|
||||||
|
guard let releaseDate = result[.releaseDate] as? String else { return nil }
|
||||||
|
return Int(releaseDate.split(separator: "-").first ?? "")
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Orders movie title-search results so the most likely match for a searched
|
||||||
|
/// title comes first: exact title matches on top (year-matching ones before
|
||||||
|
/// the rest), then year-matching fuzzy hits, then the service's own order.
|
||||||
|
/// The sort is stable, so the provider's relevance ranking survives inside
|
||||||
|
/// each band — it only stops exact matches from being scattered among the
|
||||||
|
/// fuzzy ones. Keep every caller indexing into the same list ranking the same
|
||||||
|
/// way (the AppleScript result list and its index-based fetch must agree).
|
||||||
|
func rankMovieResults(_ results: [MetadataResult], title: String, year: Int?) -> [MetadataResult] {
|
||||||
|
let wanted = normalizedSearchTitle(title)
|
||||||
|
|
||||||
|
func rank(_ result: MetadataResult) -> Int {
|
||||||
|
let name = (result[.name] as? String).map(normalizedSearchTitle)
|
||||||
|
let titleMatch = wanted.isEmpty == false && name == wanted
|
||||||
|
let yearMatch = year != nil && movieResultYear(result) == year
|
||||||
|
switch (titleMatch, yearMatch) {
|
||||||
|
case (true, true): return 3
|
||||||
|
case (true, false): return 2
|
||||||
|
case (false, true): return 1
|
||||||
|
case (false, false): return 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
struct Ranked { let offset: Int; let result: MetadataResult; let rank: Int }
|
||||||
|
let ranked = results.enumerated().map { Ranked(offset: $0.offset, result: $0.element, rank: rank($0.element)) }
|
||||||
|
let ordered: [Ranked] = ranked.sorted { (a: Ranked, b: Ranked) -> Bool in
|
||||||
|
return a.rank != b.rank ? a.rank > b.rank : a.offset < b.offset
|
||||||
|
}
|
||||||
|
return ordered.map { $0.result }
|
||||||
}
|
}
|
||||||
@@ -10,12 +10,16 @@ import MP42Foundation
|
|||||||
|
|
||||||
public enum LanguageType {
|
public enum LanguageType {
|
||||||
case ISO
|
case ISO
|
||||||
|
case ISO_639_2
|
||||||
case custom
|
case custom
|
||||||
|
|
||||||
public func displayName(language: String) -> String {
|
public func displayName(language: String) -> String {
|
||||||
switch self {
|
switch self {
|
||||||
case .ISO:
|
case .ISO:
|
||||||
return MP42Languages.defaultManager .localizedLang(forExtendedTag: language)
|
return MP42Languages.defaultManager.localizedLang(forExtendedTag: language)
|
||||||
|
case .ISO_639_2:
|
||||||
|
let extendedTag = MP42Languages.defaultManager.extendedTag(forISO_639_2: language)
|
||||||
|
return MP42Languages.defaultManager.localizedLang(forExtendedTag: extendedTag)
|
||||||
case .custom:
|
case .custom:
|
||||||
return language
|
return language
|
||||||
}
|
}
|
||||||
@@ -25,6 +29,20 @@ public enum LanguageType {
|
|||||||
switch self {
|
switch self {
|
||||||
case .ISO:
|
case .ISO:
|
||||||
return MP42Languages.defaultManager.extendedTag(forLocalizedLang: displayName)
|
return MP42Languages.defaultManager.extendedTag(forLocalizedLang: displayName)
|
||||||
|
case .ISO_639_2:
|
||||||
|
return MP42Languages.defaultManager.extendedTag(forLocalizedLang: displayName)
|
||||||
|
case .custom:
|
||||||
|
return displayName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public func tag(displayName: String) -> String {
|
||||||
|
switch self {
|
||||||
|
case .ISO:
|
||||||
|
return MP42Languages.defaultManager.extendedTag(forLocalizedLang: displayName)
|
||||||
|
case .ISO_639_2:
|
||||||
|
let extendedTag = MP42Languages.defaultManager.extendedTag(forLocalizedLang: displayName)
|
||||||
|
return MP42Languages.defaultManager.iso_639_2Code(forExtendedTag: extendedTag)
|
||||||
case .custom:
|
case .custom:
|
||||||
return displayName
|
return displayName
|
||||||
}
|
}
|
||||||
@@ -44,10 +62,22 @@ public protocol MetadataService {
|
|||||||
func loadTVMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult
|
func loadTVMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult
|
||||||
|
|
||||||
func search(movie: String, language: String) -> [MetadataResult]
|
func search(movie: String, language: String) -> [MetadataResult]
|
||||||
|
func search(movieID id: MetadataFileID, language: String) -> [MetadataResult]
|
||||||
func loadMovieMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult
|
func loadMovieMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public extension MetadataService {
|
||||||
|
|
||||||
|
/// Direct lookup of a movie by an ID embedded in the file name.
|
||||||
|
/// The default implementation answers an empty result, which callers treat
|
||||||
|
/// as "not supported/not found" and fall back to the title search.
|
||||||
|
func search(movieID id: MetadataFileID, language: String) -> [MetadataResult] {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public enum MetadataNameSearch {
|
public enum MetadataNameSearch {
|
||||||
case tvNameSearch(service: MetadataService, tvShow: String, language: String)
|
case tvNameSearch(service: MetadataService, tvShow: String, language: String)
|
||||||
|
|
||||||
@@ -77,6 +107,7 @@ public enum MetadataType : Int, CustomStringConvertible, Codable {
|
|||||||
|
|
||||||
public enum MetadataSearch {
|
public enum MetadataSearch {
|
||||||
case movieSeach(service: MetadataService, movie: String, language: String)
|
case movieSeach(service: MetadataService, movie: String, language: String)
|
||||||
|
case movieIDSearch(service: MetadataService, id: MetadataFileID, language: String)
|
||||||
case tvSearch(service: MetadataService, tvShow: String, season: Int?, episode: Int?, language: String)
|
case tvSearch(service: MetadataService, tvShow: String, season: Int?, episode: Int?, language: String)
|
||||||
|
|
||||||
public func search(completionHandler: @escaping ([MetadataResult]) -> Void) -> Runnable {
|
public func search(completionHandler: @escaping ([MetadataResult]) -> Void) -> Runnable {
|
||||||
@@ -84,6 +115,9 @@ public enum MetadataSearch {
|
|||||||
case let .movieSeach(service, movie, language):
|
case let .movieSeach(service, movie, language):
|
||||||
return RunnableTask(search: service.search(movie: movie, language: language),
|
return RunnableTask(search: service.search(movie: movie, language: language),
|
||||||
completionHandler: completionHandler)
|
completionHandler: completionHandler)
|
||||||
|
case let .movieIDSearch(service, id, language):
|
||||||
|
return RunnableTask(search: service.search(movieID: id, language: language),
|
||||||
|
completionHandler: completionHandler)
|
||||||
case let .tvSearch(service, tvShow, season, episode, language):
|
case let .tvSearch(service, tvShow, season, episode, language):
|
||||||
return RunnableTask(search: service.search(tvShow: tvShow, language: language, season: season, episode: episode),
|
return RunnableTask(search: service.search(tvShow: tvShow, language: language, season: season, episode: episode),
|
||||||
completionHandler: completionHandler)
|
completionHandler: completionHandler)
|
||||||
@@ -95,6 +129,10 @@ public enum MetadataSearch {
|
|||||||
case let .movieSeach(service, _, language):
|
case let .movieSeach(service, _, language):
|
||||||
return RunnableTask(search: service.loadMovieMetadata(metadata, language: language),
|
return RunnableTask(search: service.loadMovieMetadata(metadata, language: language),
|
||||||
completionHandler: completionHandler)
|
completionHandler: completionHandler)
|
||||||
|
case .movieIDSearch:
|
||||||
|
// The ID lookup already returns the full movie details.
|
||||||
|
return RunnableTask(search: metadata,
|
||||||
|
completionHandler: completionHandler)
|
||||||
case let .tvSearch(service, _, _, _, language):
|
case let .tvSearch(service, _, _, _, language):
|
||||||
return RunnableTask(search: service.loadTVMetadata(metadata, language: language),
|
return RunnableTask(search: service.loadTVMetadata(metadata, language: language),
|
||||||
completionHandler: completionHandler)
|
completionHandler: completionHandler)
|
||||||
@@ -103,7 +141,7 @@ public enum MetadataSearch {
|
|||||||
|
|
||||||
public var type: MetadataType {
|
public var type: MetadataType {
|
||||||
switch self {
|
switch self {
|
||||||
case .movieSeach:
|
case .movieSeach, .movieIDSearch:
|
||||||
return .movie
|
return .movie
|
||||||
case .tvSearch:
|
case .tvSearch:
|
||||||
return .tvShow
|
return .tvShow
|
||||||
@@ -113,7 +151,7 @@ public enum MetadataSearch {
|
|||||||
|
|
||||||
extension MetadataSearch {
|
extension MetadataSearch {
|
||||||
|
|
||||||
public static var movieProviders: [String] { get { return [AppleTV().name, TheMovieDB().name, iTunesStore().name] } }
|
public static var movieProviders: [String] { get { return [AppleTV().name, TheMovieDB().name, TheTVDB().name, iTunesStore().name] } }
|
||||||
public static var tvProviders: [String] { get { return [AppleTV().name, TheMovieDB().name, TheTVDB().name, iTunesStore().name] } }
|
public static var tvProviders: [String] { get { return [AppleTV().name, TheMovieDB().name, TheTVDB().name, iTunesStore().name] } }
|
||||||
|
|
||||||
public static func service(name: String?) -> MetadataService {
|
public static func service(name: String?) -> MetadataService {
|
||||||
@@ -147,8 +185,8 @@ extension MetadataSearch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static func setDefaultLanguage(_ language: String, service: MetadataService, type: MetadataType) {
|
public static func setDefaultLanguage(_ language: String, service: MetadataService, type: MetadataType) {
|
||||||
let extendedLanguage = service.languageType.extendedTag(displayName: language)
|
let language = service.languageType.tag(displayName: language)
|
||||||
UserDefaults.standard.set(extendedLanguage, forKey: "SBMetadataPreference|\(type.description)|\(service.name)|Language")
|
UserDefaults.standard.set(language, forKey: "SBMetadataPreference|\(type.description)|\(service.name)|Language")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -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,83 @@ public enum ArtworkType : Int, CustomStringConvertible {
|
|||||||
case season
|
case season
|
||||||
case episode
|
case episode
|
||||||
case backdrop
|
case backdrop
|
||||||
case none
|
case person = 5
|
||||||
|
case none = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
extension Array where Element == Artwork {
|
||||||
|
|
||||||
|
func first(by type: ArtworkType, size: ArtworkSize, service: String) -> Artwork? {
|
||||||
|
if type == .backdrop || type == .episode {
|
||||||
|
let serviceArtwork = self.filter { $0.type == type && $0.service == service }.first
|
||||||
|
let artwork = self.filter { $0.type == type }.first
|
||||||
|
return serviceArtwork != nil ? serviceArtwork : artwork
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
let serviceArtwork = self.filter { $0.type == type && $0.size == size && $0.service == service }.first
|
||||||
|
let artwork = self.filter { $0.type == type && $0.size == size}.first
|
||||||
|
return serviceArtwork != nil ? serviceArtwork : artwork
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutating func sortTopPicks(service: String) {
|
||||||
|
let poster = first(by: .poster, size: .standard, service: service)
|
||||||
|
let posterRect = first(by: .poster, size: .rectangle, service: AppleTV().name)
|
||||||
|
let posterSquare = first(by: .poster, size: .square, service: AppleTV().name)
|
||||||
|
let season = first(by: .season, size: .standard, service: service)
|
||||||
|
let seasonRect = first(by: .season, size: .rectangle, service: AppleTV().name)
|
||||||
|
let seasonSquare = first(by: .season, size: .square, service: AppleTV().name)
|
||||||
|
let backdrop = first(by: .backdrop, size: .standard, service: service)
|
||||||
|
let episode = first(by: .episode, size: .standard, service: service)
|
||||||
|
|
||||||
|
let topPicks = [poster, posterRect, posterSquare,
|
||||||
|
season, seasonRect, seasonSquare,
|
||||||
|
backdrop, episode]
|
||||||
|
|
||||||
|
for pick in topPicks {
|
||||||
|
if let pick, let index = firstIndex(of: pick) {
|
||||||
|
remove(at: index)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for pick in topPicks.reversed() {
|
||||||
|
if let pick {
|
||||||
|
insert(pick, at: 0)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func sortedTopPicks(service: String) -> [Self.Element] {
|
||||||
|
var sorted = self
|
||||||
|
sorted.sortTopPicks(service: service)
|
||||||
|
return sorted
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum MediaKind: Int {
|
public enum MediaKind: Int {
|
||||||
@@ -113,8 +207,9 @@ private let localizedKeys: [MetadataResult.Key: String] = [
|
|||||||
.season : NSLocalizedString("Season", comment: "nil"),
|
.season : NSLocalizedString("Season", comment: "nil"),
|
||||||
.network : NSLocalizedString("Network", comment: "nil"),
|
.network : NSLocalizedString("Network", comment: "nil"),
|
||||||
|
|
||||||
.serviceSeriesID : NSLocalizedString("Service ID", comment: "nil"),
|
.serviceContentID : NSLocalizedString("Service Content ID", comment: "nil"),
|
||||||
.serviceEpisodeID : NSLocalizedString("Service ID", comment: "nil")
|
.serviceAdditionalContentID : NSLocalizedString("Service Additional Content ID", comment: "nil"),
|
||||||
|
.serviceEpisodeID : NSLocalizedString("Service Episode ID", comment: "nil")
|
||||||
]
|
]
|
||||||
|
|
||||||
public final class MetadataResult {
|
public final class MetadataResult {
|
||||||
@@ -156,10 +251,10 @@ public final class MetadataResult {
|
|||||||
case season = "{Season}"
|
case season = "{Season}"
|
||||||
case network = "{Network}"
|
case network = "{Network}"
|
||||||
|
|
||||||
//
|
// Services internal IDs
|
||||||
case serviceSeriesID = "ServiceSeriesID"
|
case serviceContentID = "{ServiceSeriesID}"
|
||||||
case serviceAdditionalSeriesID = "AdditionalServiceSeriesID"
|
case serviceAdditionalContentID = "{AdditionalServiceSeriesID}"
|
||||||
case serviceEpisodeID = "ServiceEpisodeID"
|
case serviceEpisodeID = "{ServiceEpisodeID}"
|
||||||
|
|
||||||
fileprivate static var movieKeys: [Key] {
|
fileprivate static var movieKeys: [Key] {
|
||||||
return [.name,
|
return [.name,
|
||||||
@@ -178,7 +273,11 @@ public final class MetadataResult {
|
|||||||
.copyright,
|
.copyright,
|
||||||
.contentID,
|
.contentID,
|
||||||
.artistID,
|
.artistID,
|
||||||
.iTunesCountry]
|
.iTunesCountry,
|
||||||
|
|
||||||
|
.serviceContentID,
|
||||||
|
.serviceAdditionalContentID,
|
||||||
|
.serviceEpisodeID]
|
||||||
}
|
}
|
||||||
|
|
||||||
fileprivate static var tvShowKeys: [Key] {
|
fileprivate static var tvShowKeys: [Key] {
|
||||||
@@ -211,6 +310,10 @@ public final class MetadataResult {
|
|||||||
.artistID,
|
.artistID,
|
||||||
.playlistID,
|
.playlistID,
|
||||||
.iTunesCountry,
|
.iTunesCountry,
|
||||||
|
|
||||||
|
.serviceContentID,
|
||||||
|
.serviceAdditionalContentID,
|
||||||
|
.serviceEpisodeID
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -247,8 +350,8 @@ public final class MetadataResult {
|
|||||||
.iTunesURL,
|
.iTunesURL,
|
||||||
.iTunesCountry,
|
.iTunesCountry,
|
||||||
|
|
||||||
.serviceSeriesID,
|
.serviceContentID,
|
||||||
.serviceAdditionalSeriesID,
|
.serviceAdditionalContentID,
|
||||||
.serviceEpisodeID
|
.serviceEpisodeID
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -305,7 +408,7 @@ public final class MetadataResult {
|
|||||||
if let index1 = sortedKeys.firstIndex(of: key1), let index2 = sortedKeys.firstIndex(of: key2) {
|
if let index1 = sortedKeys.firstIndex(of: key1), let index2 = sortedKeys.firstIndex(of: key2) {
|
||||||
return index1 < index2
|
return index1 < index2
|
||||||
}
|
}
|
||||||
return key1 != Key.serviceSeriesID && key1 != Key.serviceEpisodeID
|
return key1 != Key.serviceContentID && key1 != Key.serviceEpisodeID
|
||||||
})
|
})
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public struct TheMovieDB: MetadataService {
|
|||||||
|
|
||||||
metadata.mediaKind = .movie
|
metadata.mediaKind = .movie
|
||||||
|
|
||||||
metadata[.serviceSeriesID] = result.id
|
metadata[.serviceContentID] = result.id
|
||||||
metadata[.name] = result.title
|
metadata[.name] = result.title
|
||||||
metadata[.releaseDate] = result.release_date
|
metadata[.releaseDate] = result.release_date
|
||||||
metadata[.longDescription] = result.overview;
|
metadata[.longDescription] = result.overview;
|
||||||
@@ -52,6 +52,20 @@ public struct TheMovieDB: MetadataService {
|
|||||||
return results.map { metadata(forMoviePartialResult: $0, language: nil) }
|
return results.map { metadata(forMoviePartialResult: $0, language: nil) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public func search(movieID id: MetadataFileID, language: String) -> [MetadataResult] {
|
||||||
|
let result: TMDBMovie?
|
||||||
|
switch id {
|
||||||
|
case .tmdb(let movieID):
|
||||||
|
result = session.fetch(movieID: movieID, language: language)
|
||||||
|
case .imdb(let imdbID):
|
||||||
|
result = session.findMovie(id: imdbID, externalSource: "imdb_id", language: language)
|
||||||
|
case .tvdb:
|
||||||
|
// A TVDB ID identifies a series: no direct movie to fetch, fall back to the title search.
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
return result.map { [metadata(forResult: $0, language: language)] } ?? []
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: - Helpers
|
// MARK: - Helpers
|
||||||
|
|
||||||
private func cleanList(items: [TMDBTuple]?) -> String? {
|
private func cleanList(items: [TMDBTuple]?) -> String? {
|
||||||
@@ -111,16 +125,9 @@ public struct TheMovieDB: MetadataService {
|
|||||||
private func loadMovieArtworks(result: TMDBMovie) -> [Artwork] {
|
private func loadMovieArtworks(result: TMDBMovie) -> [Artwork] {
|
||||||
var artworks: [Artwork] = []
|
var artworks: [Artwork] = []
|
||||||
|
|
||||||
var iTunesImage = [Artwork](), appleTV = [Artwork]()
|
var appleTV = [Artwork]()
|
||||||
let group = DispatchGroup()
|
let group = DispatchGroup()
|
||||||
|
|
||||||
DispatchQueue.global().async(group: group) {
|
|
||||||
// add iTunes artwork
|
|
||||||
if let title = result.title, let iTunesMetadata = iTunesStore.quickiTunesSearch(movieName: title) {
|
|
||||||
iTunesImage = iTunesMetadata.remoteArtworks
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
DispatchQueue.global().async(group: group) {
|
DispatchQueue.global().async(group: group) {
|
||||||
if let title = result.title,
|
if let title = result.title,
|
||||||
let store = iTunesStore.Store(language: "USA (English)") {
|
let store = iTunesStore.Store(language: "USA (English)") {
|
||||||
@@ -130,7 +137,6 @@ public struct TheMovieDB: MetadataService {
|
|||||||
group.wait()
|
group.wait()
|
||||||
|
|
||||||
artworks.append(contentsOf: appleTV)
|
artworks.append(contentsOf: appleTV)
|
||||||
artworks.append(contentsOf: iTunesImage)
|
|
||||||
|
|
||||||
// Add TheMovieDB artworks
|
// Add TheMovieDB artworks
|
||||||
if let config = session.fetchConfiguration()?.images,
|
if let config = session.fetchConfiguration()?.images,
|
||||||
@@ -154,7 +160,7 @@ public struct TheMovieDB: MetadataService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return artworks
|
return artworks.sortedTopPicks(service: self.name)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func metadata(forResult result: TMDBMovie, language: String?) -> MetadataResult {
|
private func metadata(forResult result: TMDBMovie, language: String?) -> MetadataResult {
|
||||||
@@ -184,12 +190,13 @@ public struct TheMovieDB: MetadataService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
metadata.remoteArtworks = loadMovieArtworks(result: result)
|
metadata.remoteArtworks = loadMovieArtworks(result: result)
|
||||||
|
metadata[.serviceContentID] = result.id
|
||||||
|
|
||||||
return metadata
|
return metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
public func loadMovieMetadata(_ partialMetadata: MetadataResult, language: String) -> MetadataResult {
|
public func loadMovieMetadata(_ partialMetadata: MetadataResult, language: String) -> MetadataResult {
|
||||||
guard let movieID = partialMetadata[.serviceSeriesID] as? Int,
|
guard let movieID = partialMetadata[.serviceContentID] as? Int,
|
||||||
let result = session.fetch(movieID: movieID, language: language)
|
let result = session.fetch(movieID: movieID, language: language)
|
||||||
else { return partialMetadata }
|
else { return partialMetadata }
|
||||||
|
|
||||||
@@ -228,7 +235,7 @@ public struct TheMovieDB: MetadataService {
|
|||||||
private func loadSquareTVArtwork(_ metadata: MetadataResult) -> [Artwork] {
|
private func loadSquareTVArtwork(_ metadata: MetadataResult) -> [Artwork] {
|
||||||
guard let tvShow = metadata[.seriesName] as? String,
|
guard let tvShow = metadata[.seriesName] as? String,
|
||||||
let seasonNum = metadata[.season] as? Int,
|
let seasonNum = metadata[.season] as? Int,
|
||||||
let seriesId = metadata[.serviceAdditionalSeriesID] as? Int
|
let seriesId = metadata[.serviceAdditionalContentID] as? Int
|
||||||
else { return [] }
|
else { return [] }
|
||||||
|
|
||||||
return SquaredTVArt().search(tvShow: tvShow, theTVDBSeriesId: seriesId, season: seasonNum)
|
return SquaredTVArt().search(tvShow: tvShow, theTVDBSeriesId: seriesId, season: seasonNum)
|
||||||
@@ -279,8 +286,8 @@ public struct TheMovieDB: MetadataService {
|
|||||||
metadata.mediaKind = .tvShow
|
metadata.mediaKind = .tvShow
|
||||||
|
|
||||||
// TV Show Info
|
// TV Show Info
|
||||||
metadata[.serviceSeriesID] = info.id
|
metadata[.serviceContentID] = info.id
|
||||||
metadata[.serviceAdditionalSeriesID] = info.external_ids?.tvdb_id
|
metadata[.serviceAdditionalContentID] = info.external_ids?.tvdb_id
|
||||||
|
|
||||||
metadata[.seriesName] = info.name
|
metadata[.seriesName] = info.name
|
||||||
metadata[.seriesDescription] = info.overview
|
metadata[.seriesDescription] = info.overview
|
||||||
@@ -360,7 +367,7 @@ public struct TheMovieDB: MetadataService {
|
|||||||
public func loadTVMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult {
|
public func loadTVMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult {
|
||||||
var artworks: [Artwork] = []
|
var artworks: [Artwork] = []
|
||||||
|
|
||||||
if let seriesID = metadata[.serviceSeriesID] as? Int, let season = metadata[.season] as? Int,
|
if let seriesID = metadata[.serviceContentID] as? Int, let season = metadata[.season] as? Int,
|
||||||
let episodeNumber = metadata[.episodeNumber] as? Int {
|
let episodeNumber = metadata[.episodeNumber] as? Int {
|
||||||
|
|
||||||
let seasonImages = session.fetch(imagesForSeriesID: seriesID, season: String(season), language: language)
|
let seasonImages = session.fetch(imagesForSeriesID: seriesID, season: String(season), language: language)
|
||||||
@@ -378,17 +385,8 @@ public struct TheMovieDB: MetadataService {
|
|||||||
|
|
||||||
artworks.insert(contentsOf: metadata.remoteArtworks, at: 0)
|
artworks.insert(contentsOf: metadata.remoteArtworks, at: 0)
|
||||||
|
|
||||||
var iTunesImage = [Artwork](), appleTV = [Artwork](), squareTVArt = [Artwork]()
|
var appleTV = [Artwork](), squareTVArt = [Artwork]()
|
||||||
let group = DispatchGroup()
|
let group = DispatchGroup()
|
||||||
DispatchQueue.global().async(group: group) {
|
|
||||||
// add iTunes artwork
|
|
||||||
if let name = metadata[.seriesName] as? String,
|
|
||||||
let iTunesMetadata = iTunesStore.quickiTunesSearch(tvSeriesName: name,
|
|
||||||
seasonNum: metadata[.season] as? Int,
|
|
||||||
episodeNum: metadata[.episodeNumber] as? Int) {
|
|
||||||
iTunesImage = iTunesMetadata.remoteArtworks
|
|
||||||
}
|
|
||||||
}
|
|
||||||
DispatchQueue.global().async(group: group) {
|
DispatchQueue.global().async(group: group) {
|
||||||
if let name = metadata[.seriesName] as? String,
|
if let name = metadata[.seriesName] as? String,
|
||||||
let season = metadata[.season] as? Int,
|
let season = metadata[.season] as? Int,
|
||||||
@@ -403,11 +401,10 @@ public struct TheMovieDB: MetadataService {
|
|||||||
}
|
}
|
||||||
group.wait()
|
group.wait()
|
||||||
|
|
||||||
artworks.insert(contentsOf: iTunesImage, at: 0)
|
|
||||||
artworks.insert(contentsOf: squareTVArt, at: 0)
|
artworks.insert(contentsOf: squareTVArt, at: 0)
|
||||||
artworks.insert(contentsOf: appleTV, at: 0)
|
artworks.insert(contentsOf: appleTV, at: 0)
|
||||||
|
|
||||||
metadata.remoteArtworks = artworks
|
metadata.remoteArtworks = artworks.sortedTopPicks(service: self.name)
|
||||||
|
|
||||||
return metadata
|
return metadata
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -285,6 +285,21 @@ final public class TheMovieDBService {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Resolves an external ID (e.g. an `tt…` IMDb ID with `external_source=imdb_id`)
|
||||||
|
/// to a movie and fetches its full details.
|
||||||
|
public func findMovie(id externalID: String, externalSource: String, language: String) -> TMDBMovie? {
|
||||||
|
guard let url = URL(string: basePath + "find/" + externalID + "?api_key=" + key + "&external_source=" + externalSource),
|
||||||
|
let result = sendJSONRequest(url: url, language: language, type: FindResults.self),
|
||||||
|
let movieID = result.movie_results?.first?.id
|
||||||
|
else { return nil }
|
||||||
|
|
||||||
|
return fetch(movieID: movieID, language: language)
|
||||||
|
}
|
||||||
|
|
||||||
|
private struct FindResults : Codable {
|
||||||
|
let movie_results: [TMDBMovieSearchResult]?
|
||||||
|
}
|
||||||
|
|
||||||
public func search(series: String, language: String) -> [TMDBTVSearchResult] {
|
public func search(series: String, language: String) -> [TMDBTVSearchResult] {
|
||||||
let encodedName = series.urlEncoded()
|
let encodedName = series.urlEncoded()
|
||||||
|
|
||||||
|
|||||||
@@ -11,11 +11,10 @@ import MP42Foundation
|
|||||||
public struct TheTVDB : MetadataService {
|
public struct TheTVDB : MetadataService {
|
||||||
|
|
||||||
private let session = TheTVDBService.sharedInstance
|
private let session = TheTVDBService.sharedInstance
|
||||||
private static let bannerPath = "https://thetvdb.com/banners/"
|
|
||||||
|
|
||||||
public var languageType: LanguageType {
|
public var languageType: LanguageType {
|
||||||
get {
|
get {
|
||||||
return .ISO
|
return .ISO_639_2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,7 +25,7 @@ public struct TheTVDB : MetadataService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public var defaultLanguage: String {
|
public var defaultLanguage: String {
|
||||||
return "en"
|
return "eng"
|
||||||
}
|
}
|
||||||
|
|
||||||
public var name: String {
|
public var name: String {
|
||||||
@@ -38,13 +37,8 @@ public struct TheTVDB : MetadataService {
|
|||||||
public func search(tvShow: String, language: String) -> [String] {
|
public func search(tvShow: String, language: String) -> [String] {
|
||||||
var results: Set<String> = Set()
|
var results: Set<String> = Set()
|
||||||
|
|
||||||
let series = session.fetch(series: tvShow, language: language)
|
let series = session.fetch(series: tvShow)
|
||||||
results.formUnion(series.compactMap { $0.seriesName } )
|
results.formUnion(series.compactMap { $0.translations?[language] ?? $0.name } )
|
||||||
|
|
||||||
if language != defaultLanguage {
|
|
||||||
let englishResults = search(tvShow: tvShow, language: defaultLanguage)
|
|
||||||
results.formUnion(englishResults)
|
|
||||||
}
|
|
||||||
|
|
||||||
if results.isEmpty {
|
if results.isEmpty {
|
||||||
return TheMovieDB().search(tvShow: tvShow, language: language)
|
return TheMovieDB().search(tvShow: tvShow, language: language)
|
||||||
@@ -55,31 +49,37 @@ public struct TheTVDB : MetadataService {
|
|||||||
|
|
||||||
// MARK: - TV Series ID search
|
// MARK: - TV Series ID search
|
||||||
|
|
||||||
private func match(series: TVDBSeriesSearchResult, name: String) -> Bool {
|
private func match(series: TVDBSearchResult, name: String, language: String) -> Bool {
|
||||||
if let name = series.seriesName, name.caseInsensitiveCompare(name) == .orderedSame {
|
if let seriesName = series.translations?[language] ?? series.name,
|
||||||
|
seriesName.caseInsensitiveCompare(name) == .orderedSame {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
for alias in series.aliases {
|
if let aliases = series.aliases {
|
||||||
|
for alias in aliases {
|
||||||
if alias.caseInsensitiveCompare(name) == .orderedSame {
|
if alias.caseInsensitiveCompare(name) == .orderedSame {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
private func searchIDs(seriesName: String, language: String) -> [Int] {
|
private func searchIDs(seriesName: String, language: String) -> [String] {
|
||||||
let series = session.fetch(series: seriesName, language: language)
|
let series = session.fetch(series: seriesName)
|
||||||
let sorted = series.sorted { el1, el2 -> Bool in
|
let sorted = series.sorted { el1, el2 -> Bool in
|
||||||
return el1.seriesName?.caseInsensitiveCompare(seriesName) == .orderedSame ? true : false
|
let name = el1.translations?[language] ?? el1.name
|
||||||
|
let order = name?.caseInsensitiveCompare(seriesName)
|
||||||
|
return order == .orderedSame ? true : false
|
||||||
}
|
}
|
||||||
let filteredSeries = sorted.filter { $0.status.isEmpty == false && match(series: $0, name: seriesName) }.map { $0.id }
|
let filteredSeries = sorted.filter {
|
||||||
|
$0.status?.isEmpty == false && match(series: $0, name: seriesName, language: language)
|
||||||
|
}.map { $0.tvdb_id }
|
||||||
|
|
||||||
if filteredSeries.isEmpty == false {
|
if filteredSeries.isEmpty == false {
|
||||||
return filteredSeries
|
return filteredSeries
|
||||||
}
|
} else if let firstItemsID = series.first?.tvdb_id {
|
||||||
else if let firstItemsID = series.first?.id {
|
|
||||||
return [firstItemsID]
|
return [firstItemsID]
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -89,12 +89,27 @@ public struct TheTVDB : MetadataService {
|
|||||||
|
|
||||||
// MARK: - Helpers
|
// MARK: - Helpers
|
||||||
|
|
||||||
private func cleanList(actors: [TVDBActor]) -> String {
|
private func cleanList(characters: [TVDBCharacter], type: String) -> String {
|
||||||
return actors.map { $0.name } .reduce("", { $0 + ($0.isEmpty ? "" : ", ") + $1 })
|
return characters.filter { $0.peopleType == type }
|
||||||
|
.map { $0.personName }
|
||||||
|
.reduce("", { $0 + ($0.isEmpty ? "" : ", ") + $1 })
|
||||||
}
|
}
|
||||||
|
|
||||||
private func cleanList(names: [String]) -> String {
|
private func cleanList(genres: [TVDBGenreBaseRecord]) -> String {
|
||||||
return names.reduce("", { $0 + ($0.isEmpty ? "" : ", ") + $1 })
|
return genres.map {$0.name }.reduce("", { $0 + ($0.isEmpty ? "" : ", ") + $1 })
|
||||||
|
}
|
||||||
|
|
||||||
|
private func cleanList(ratings: [TVDBContentRating], mediaKind: MediaKind) -> String? {
|
||||||
|
if let rating = ratings.filter({ $0.country == "usa" }).first {
|
||||||
|
return Ratings.shared.rating(countryCode: "USA", mediaKind: mediaKind, name: rating.name)?.iTunesCode
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
private func cleanList(companies: [TVDBCompany]) -> String {
|
||||||
|
return companies
|
||||||
|
.map { $0.name }
|
||||||
|
.reduce("", { $0 + ($0.isEmpty ? "" : ", ") + $1 })
|
||||||
}
|
}
|
||||||
|
|
||||||
private func areInIncreasingOrder(ep1: MetadataResult, ep2: MetadataResult) -> Bool {
|
private func areInIncreasingOrder(ep1: MetadataResult, ep2: MetadataResult) -> Bool {
|
||||||
@@ -112,37 +127,127 @@ public struct TheTVDB : MetadataService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func merge(episode: TVDBEpisode, info: TVDBSeriesInfo, actors: [TVDBActor]) -> MetadataResult {
|
fileprivate func cleanArtworks(_ records: [TVDBArtworBaseRecord]) -> [Artwork] {
|
||||||
|
var artworks: [Artwork] = []
|
||||||
|
let artworkTypes = session.fetchArtworkTypes()
|
||||||
|
|
||||||
|
for artwork in records {
|
||||||
|
let url = URL(string: artwork.image)
|
||||||
|
let thumbnailURL = URL(string: artwork.thumbnail)
|
||||||
|
|
||||||
|
var type: ArtworkType?
|
||||||
|
var size: ArtworkSize = .default
|
||||||
|
|
||||||
|
let artworkType = artworkTypes.first(where: { $0.id == artwork.type })
|
||||||
|
switch (artworkType?.name, artworkType?.recordType) {
|
||||||
|
case ("Poster", "movie"):
|
||||||
|
type = .poster
|
||||||
|
case ("Background", "movie"):
|
||||||
|
type = .backdrop
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (artworkType?.width ?? 1, artworkType?.height ?? 1) {
|
||||||
|
case (let width, let height) where width == height:
|
||||||
|
size = .square
|
||||||
|
case (let width, let height) where width >= height:
|
||||||
|
size = .rectangle
|
||||||
|
case (let width, let height) where height > width:
|
||||||
|
size = .standard
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
if let url, let thumbnailURL, let type {
|
||||||
|
let entry = Artwork(url: url,
|
||||||
|
thumbURL: thumbnailURL,
|
||||||
|
service: self.name,
|
||||||
|
type: type,
|
||||||
|
size: size)
|
||||||
|
artworks.append(entry)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return artworks
|
||||||
|
}
|
||||||
|
|
||||||
|
fileprivate func cleanArtworks(_ records: [TVDBArtworkExtendedRecord]) -> [Artwork] {
|
||||||
|
var artworks: [Artwork] = []
|
||||||
|
let artworkTypes = session.fetchArtworkTypes()
|
||||||
|
|
||||||
|
for artwork in records {
|
||||||
|
let url = URL(string: artwork.image)
|
||||||
|
let thumbnailURL = URL(string: artwork.thumbnail)
|
||||||
|
|
||||||
|
var type: ArtworkType?
|
||||||
|
var size: ArtworkSize = .default
|
||||||
|
|
||||||
|
let artworkType = artworkTypes.first(where: { $0.id == artwork.type })
|
||||||
|
switch (artworkType?.name, artworkType?.recordType) {
|
||||||
|
case ("Poster", "series"):
|
||||||
|
type = .poster
|
||||||
|
case ("Poster", "season"):
|
||||||
|
type = .season
|
||||||
|
case ("Background", "series"),
|
||||||
|
("Background", "season"):
|
||||||
|
type = .backdrop
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (artworkType?.width ?? 1, artworkType?.height ?? 1) {
|
||||||
|
case (let width, let height) where width == height:
|
||||||
|
size = .square
|
||||||
|
case (let width, let height) where width >= height:
|
||||||
|
size = .rectangle
|
||||||
|
case (let width, let height) where height > width:
|
||||||
|
size = .standard
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
if let url, let thumbnailURL, let type {
|
||||||
|
let entry = Artwork(url: url,
|
||||||
|
thumbURL: thumbnailURL,
|
||||||
|
service: self.name,
|
||||||
|
type: type,
|
||||||
|
size: size)
|
||||||
|
artworks.append(entry)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return artworks
|
||||||
|
}
|
||||||
|
|
||||||
|
private func merge(episode: TVDBEpisodeBaseRecord,
|
||||||
|
info: TVDBSeriesExtendedRecord,
|
||||||
|
translation: TVDBTranslation?,
|
||||||
|
episodeTranslation: TVDBTranslation?) -> MetadataResult {
|
||||||
let result = MetadataResult()
|
let result = MetadataResult()
|
||||||
|
|
||||||
result.mediaKind = .tvShow
|
result.mediaKind = .tvShow
|
||||||
|
|
||||||
// TV Show Info
|
// TV Show Info
|
||||||
result[.serviceSeriesID] = info.id
|
result[.serviceContentID] = info.id
|
||||||
result[.seriesName] = info.seriesName
|
result[.seriesName] = translation?.name ?? info.name
|
||||||
result[.seriesDescription] = info.overview?.trimmingWhitespacesAndNewlinews()
|
result[.seriesDescription] = (translation?.overview ?? info.overview)?.trimmingWhitespacesAndNewlinews()
|
||||||
result[.genre] = cleanList(names: info.genre)
|
result[.genre] = cleanList(genres: info.genres)
|
||||||
result[.network] = info.network
|
result[.network] = info.originalNetwork?.name
|
||||||
|
result[.rating] = cleanList(ratings: info.contentRatings, mediaKind: .tvShow)
|
||||||
|
result[.cast] = cleanList(characters: info.characters ?? [], type: "Actor")
|
||||||
|
|
||||||
// Episode Info
|
// Episode Info
|
||||||
result[.serviceEpisodeID] = episode.id
|
result[.serviceEpisodeID] = episode.id
|
||||||
result[.name] = episode.episodeName
|
result[.name] = episodeTranslation?.name ?? episode.name
|
||||||
result[.releaseDate] = episode.firstAired
|
result[.releaseDate] = episode.aired
|
||||||
result[.longDescription] = episode.overview?.trimmingWhitespacesAndNewlinews()
|
result[.longDescription] = (episodeTranslation?.overview ?? episode.overview)?.trimmingWhitespacesAndNewlinews()
|
||||||
|
result[.season] = episode.seasonNumber
|
||||||
|
result[.episodeID] = String(format: "%d%02d", episode.seasonNumber, episode.number)
|
||||||
|
result[.episodeNumber] = episode.number
|
||||||
|
result[.trackNumber] = episode.number
|
||||||
|
|
||||||
result[.season] = episode.airedSeason
|
result.remoteArtworks += cleanArtworks(info.artworks)
|
||||||
|
|
||||||
result[.episodeID] = String(format: "%d%02d", episode.airedSeason, episode.airedEpisodeNumber)
|
|
||||||
result[.episodeNumber] = episode.airedEpisodeNumber
|
|
||||||
result[.trackNumber] = episode.airedEpisodeNumber
|
|
||||||
|
|
||||||
// Rating
|
|
||||||
if let rating = info.rating, rating.count > 0 {
|
|
||||||
result[.rating] = Ratings.shared.rating(countryCode: "USA", mediaKind: .tvShow, name: rating)?.iTunesCode
|
|
||||||
}
|
|
||||||
|
|
||||||
// Actors
|
|
||||||
result[.cast] = cleanList(actors: actors)
|
|
||||||
|
|
||||||
// TheTVDB does not provide the following fields normally associated with TV shows in SBMetadataResult:
|
// TheTVDB does not provide the following fields normally associated with TV shows in SBMetadataResult:
|
||||||
// "Copyright", "Comments", "Producers", "Artist"
|
// "Copyright", "Comments", "Producers", "Artist"
|
||||||
@@ -150,14 +255,24 @@ public struct TheTVDB : MetadataService {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
private func loadEpisodes(info: TVDBSeriesInfo, actors: [TVDBActor], season: Int?, episode: Int?, language: String) -> [MetadataResult] {
|
private func loadEpisodes(info: TVDBSeriesExtendedRecord, seasonID: Int?, episodeID: Int?, language: String) -> [MetadataResult] {
|
||||||
let episodes = session.fetch(episodeForSeriesID: info.id, season: season, episode: episode, language: language)
|
let translation = session.fetch(seriesTranslation: String(info.id), language: language)
|
||||||
|
|
||||||
|
if let seasonID, let episodeID,
|
||||||
|
let episode = session.fetch(episodesForSeriesID: info.id, season: seasonID, episode: episodeID).first,
|
||||||
|
let episodeTranslation = session.fetch(episodesTranslation: episode.id, language: language) {
|
||||||
|
return [merge(episode: episode, info: info, translation: translation, episodeTranslation: episodeTranslation)]
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
let episodes = session.fetch(translatedEpisodesForSeriesID: info.id, season: seasonID, episode: episodeID, language: language)
|
||||||
|
|
||||||
let filteredEpisodes = episodes.filter {
|
let filteredEpisodes = episodes.filter {
|
||||||
(season != nil ? $0.airedSeason == season : true) &&
|
(seasonID != nil ? $0.seasonNumber == seasonID : true) &&
|
||||||
(episode != nil ? $0.airedEpisodeNumber == episode : true)
|
(episodeID != nil ? $0.number == episodeID : true)
|
||||||
}
|
}
|
||||||
|
|
||||||
return filteredEpisodes.map { merge(episode: $0, info: info, actors: actors) }
|
return filteredEpisodes.map { merge(episode: $0, info: info, translation: translation, episodeTranslation: nil ) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Nil values check
|
// MARK: - Nil values check
|
||||||
@@ -213,8 +328,8 @@ public struct TheTVDB : MetadataService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func merge(info: TVDBSeriesInfo, results: [MetadataResult]) {
|
private func merge(info: TVDBSeriesExtendedRecord, results: [MetadataResult]) {
|
||||||
let name = info.seriesName
|
let name = info.name
|
||||||
for result in results {
|
for result in results {
|
||||||
result[.seriesName] = name
|
result[.seriesName] = name
|
||||||
}
|
}
|
||||||
@@ -229,70 +344,38 @@ public struct TheTVDB : MetadataService {
|
|||||||
// MARK: - TV Search
|
// MARK: - TV Search
|
||||||
|
|
||||||
public func search(tvShow: String, language: String, season: Int?, episode: Int?) -> [MetadataResult] {
|
public func search(tvShow: String, language: String, season: Int?, episode: Int?) -> [MetadataResult] {
|
||||||
let seriesIDs: [Int] = {
|
let seriesIDs: [String] = self.searchIDs(seriesName: tvShow, language: language)
|
||||||
let result = self.searchIDs(seriesName: tvShow, language: language)
|
|
||||||
if result.isEmpty {
|
|
||||||
let enResults = self.searchIDs(seriesName: tvShow, language: defaultLanguage)
|
|
||||||
if enResults.isEmpty {
|
|
||||||
let tmdb = TheMovieDB()
|
|
||||||
let tvShowsTMDB = tmdb.search(tvShow: tvShow, language: language)
|
|
||||||
if let tvShowTMDB = tvShowsTMDB.first {
|
|
||||||
return self.searchIDs(seriesName: tvShowTMDB, language: language)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return enResults
|
|
||||||
}
|
|
||||||
return result
|
|
||||||
}()
|
|
||||||
|
|
||||||
var results: [MetadataResult] = []
|
|
||||||
|
|
||||||
for id in seriesIDs {
|
for id in seriesIDs {
|
||||||
guard let info: TVDBSeriesInfo = {
|
if let info = session.fetch(seriesInfo: id) {
|
||||||
let result = session.fetch(seriesInfo: id, language: language)
|
let availableLanguage = info.overviewTranslations.first(where: { $0 == language }) ??
|
||||||
return result != nil ? result : session.fetch(seriesInfo: id, language: defaultLanguage)
|
info.overviewTranslations.first(where: { $0 == defaultLanguage }) ??
|
||||||
}()
|
info.overviewTranslations.first ?? defaultLanguage
|
||||||
else { continue }
|
|
||||||
let actors = session.fetch(actors: id, language: language)
|
let episodes = loadEpisodes(info: info, seasonID: season, episodeID: episode, language: availableLanguage)
|
||||||
let episodes = loadEpisodes(info: info, actors: actors, season: season, episode: episode, language: language)
|
|
||||||
|
|
||||||
let nilValues = checkMissingValues(results: episodes)
|
let nilValues = checkMissingValues(results: episodes)
|
||||||
|
|
||||||
if language != defaultLanguage {
|
if language != defaultLanguage {
|
||||||
if nilValues.contains(.seriesInfo),
|
|
||||||
let enInfo = session.fetch(seriesInfo: id, language: defaultLanguage) {
|
|
||||||
merge(info: enInfo, results: episodes)
|
|
||||||
}
|
|
||||||
|
|
||||||
if nilValues.contains(.episodesInfo) {
|
if nilValues.contains(.episodesInfo) {
|
||||||
let enResults = loadEpisodes(info: info, actors: actors, season: season, episode: episode, language: defaultLanguage)
|
let enResults = loadEpisodes(info: info, seasonID: season, episodeID: episode, language: defaultLanguage)
|
||||||
merge(enResults: enResults, results: episodes)
|
merge(enResults: enResults, results: episodes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
results.append(contentsOf: episodes.sorted(by: areInIncreasingOrder))
|
return episodes.sorted(by: areInIncreasingOrder)
|
||||||
break
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return results
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Additional metadata
|
// MARK: - Additional metadata
|
||||||
|
|
||||||
private func loadiTunesArtwork(_ metadata: MetadataResult) -> [Artwork] {
|
|
||||||
guard let name = metadata[.seriesName] as? String,
|
|
||||||
let seasonNum = metadata[.season] as? Int,
|
|
||||||
let episodeNum = metadata[.episodeNumber] as? Int,
|
|
||||||
let result = iTunesStore.quickiTunesSearch(tvSeriesName: name, seasonNum: seasonNum, episodeNum: episodeNum)
|
|
||||||
else { return [] }
|
|
||||||
|
|
||||||
return result.remoteArtworks
|
|
||||||
}
|
|
||||||
|
|
||||||
private func loadSquareTVArtwork(_ metadata: MetadataResult) -> [Artwork] {
|
private func loadSquareTVArtwork(_ metadata: MetadataResult) -> [Artwork] {
|
||||||
guard let tvShow = metadata[.seriesName] as? String,
|
guard let tvShow = metadata[.seriesName] as? String,
|
||||||
let seasonNum = metadata[.season] as? Int,
|
let seasonNum = metadata[.season] as? Int,
|
||||||
let seriesId = metadata[.serviceSeriesID] as? Int
|
let seriesId = metadata[.serviceContentID] as? Int
|
||||||
else { return [] }
|
else { return [] }
|
||||||
|
|
||||||
return SquaredTVArt().search(tvShow: tvShow, theTVDBSeriesId: seriesId, season: seasonNum)
|
return SquaredTVArt().search(tvShow: tvShow, theTVDBSeriesId: seriesId, season: seasonNum)
|
||||||
@@ -306,45 +389,16 @@ public struct TheTVDB : MetadataService {
|
|||||||
return AppleTV().searchArtwork(term: name, store: store, type: .tvShow(season: season))
|
return AppleTV().searchArtwork(term: name, store: store, type: .tvShow(season: season))
|
||||||
}
|
}
|
||||||
|
|
||||||
private func loadTVArtwork(seriesID: Int, type: ArtworkType, season: String, language: String) -> [Artwork] {
|
|
||||||
var artworks: [Artwork] = []
|
|
||||||
let images: [TVDBImage] = {
|
|
||||||
var result = session.fetch(images: seriesID, type: type, language: language)
|
|
||||||
if result.count == 0 || language != defaultLanguage {
|
|
||||||
result.append(contentsOf: session.fetch(images: seriesID, type: type, language: defaultLanguage))
|
|
||||||
}
|
|
||||||
return result
|
|
||||||
}()
|
|
||||||
|
|
||||||
for image in images {
|
|
||||||
guard let fileURL = URL(string: TheTVDB.bannerPath + image.fileName),
|
|
||||||
let thumbURL = URL(string: TheTVDB.bannerPath + image.fileName.replacingOccurrences(of: ".jpg", with: "_t.jpg"))
|
|
||||||
else { continue }
|
|
||||||
|
|
||||||
var selected = true
|
|
||||||
|
|
||||||
if type == .season, let subKey = image.subKey, subKey != season {
|
|
||||||
selected = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if selected {
|
|
||||||
artworks.append(Artwork(url: fileURL, thumbURL: image.thumbnail.isEmpty ? fileURL : thumbURL, service: self.name, type: type, size: .standard))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return artworks
|
|
||||||
}
|
|
||||||
|
|
||||||
public func loadTVMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult {
|
public func loadTVMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult {
|
||||||
guard let id = metadata[.serviceEpisodeID] as? Int else { return metadata }
|
guard let id = metadata[.serviceEpisodeID] as? Int else { return metadata }
|
||||||
guard let seriesId = metadata[.serviceSeriesID] as? Int else { return metadata }
|
|
||||||
|
|
||||||
var artworks: [Artwork] = []
|
var artworks: [Artwork] = []
|
||||||
|
|
||||||
if let info = session.fetch(episodeInfo: id, language: language) {
|
if let info = session.fetch(episodeInfo: id, language: language) {
|
||||||
metadata[.director] = cleanList(names: info.directors)
|
metadata[.director] = cleanList(characters: info.characters ?? [], type: "Director")
|
||||||
metadata[.screenwriters] = cleanList(names: info.writers)
|
metadata[.screenwriters] = cleanList(characters: info.characters ?? [], type: "Writer")
|
||||||
|
|
||||||
let guests = cleanList(names: info.guestStars)
|
let guests = cleanList(characters: info.characters ?? [], type: "Guest Star")
|
||||||
if let actors = metadata[.cast] as? String {
|
if let actors = metadata[.cast] as? String {
|
||||||
if actors.count > 0 && guests.count > 0 {
|
if actors.count > 0 && guests.count > 0 {
|
||||||
metadata[.cast] = actors + ", " + guests
|
metadata[.cast] = actors + ", " + guests
|
||||||
@@ -353,51 +407,91 @@ public struct TheTVDB : MetadataService {
|
|||||||
metadata[.cast] = guests
|
metadata[.cast] = guests
|
||||||
}
|
}
|
||||||
|
|
||||||
if let filename = info.filename, let url = URL(string: TheTVDB.bannerPath + filename) {
|
if let path = info.image, let url = URL(string: path) {
|
||||||
artworks.append(Artwork(url: url, thumbURL: url, service: self.name, type: .episode, size: .rectangle))
|
artworks.append(Artwork(url: url, thumbURL: url, service: self.name, type: .episode, size: .rectangle))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get additionals images
|
// Get additionals images
|
||||||
if let season = metadata[.season] as? Int {
|
if ((metadata[.season] as? Int) != nil) {
|
||||||
var iTunesImage = [Artwork](), appleTV = [Artwork](), squareTVArt = [Artwork](), seasonImages = [Artwork](), posterImages = [Artwork]()
|
var appleTV = [Artwork](), squareTVArt = [Artwork]()
|
||||||
let group = DispatchGroup()
|
let group = DispatchGroup()
|
||||||
DispatchQueue.global().async(group: group) {
|
|
||||||
iTunesImage = self.loadiTunesArtwork(metadata)
|
|
||||||
}
|
|
||||||
DispatchQueue.global().async(group: group) {
|
DispatchQueue.global().async(group: group) {
|
||||||
squareTVArt = self.loadSquareTVArtwork(metadata)
|
squareTVArt = self.loadSquareTVArtwork(metadata)
|
||||||
}
|
}
|
||||||
DispatchQueue.global().async(group: group) {
|
DispatchQueue.global().async(group: group) {
|
||||||
appleTV = self.loadAppleTVArtwork(metadata)
|
appleTV = self.loadAppleTVArtwork(metadata)
|
||||||
}
|
}
|
||||||
DispatchQueue.global().async(group: group) {
|
|
||||||
seasonImages = self.loadTVArtwork(seriesID: seriesId, type: .season, season: String(season), language: language)
|
|
||||||
}
|
|
||||||
DispatchQueue.global().async(group: group) {
|
|
||||||
posterImages = self.loadTVArtwork(seriesID: seriesId, type: .poster, season: String(season), language: language)
|
|
||||||
}
|
|
||||||
group.wait()
|
group.wait()
|
||||||
|
|
||||||
artworks.insert(contentsOf: iTunesImage, at: 0)
|
|
||||||
artworks.insert(contentsOf: squareTVArt, at: 0)
|
artworks.insert(contentsOf: squareTVArt, at: 0)
|
||||||
artworks.insert(contentsOf: appleTV, at: 0)
|
artworks.insert(contentsOf: appleTV, at: 0)
|
||||||
artworks.append(contentsOf: seasonImages)
|
|
||||||
artworks.append(contentsOf: posterImages)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata.remoteArtworks = artworks
|
metadata.remoteArtworks.insert(contentsOf: artworks, at: 0)
|
||||||
|
metadata.remoteArtworks.sortTopPicks(service: self.name)
|
||||||
|
|
||||||
return metadata
|
return metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Unimplemented movie search
|
// MARK: - Movie search
|
||||||
|
|
||||||
|
private func metadata(forMoviePartialResult result: TVDBSearchResult, language: String?) -> MetadataResult {
|
||||||
|
let metadata = MetadataResult()
|
||||||
|
|
||||||
|
metadata.mediaKind = .movie
|
||||||
|
|
||||||
|
metadata[.serviceContentID] = result.tvdb_id
|
||||||
|
metadata[.name] = result.translations?[language ?? defaultLanguage] ?? result.name
|
||||||
|
metadata[.releaseDate] = result.first_air_time
|
||||||
|
metadata[.longDescription] = (result.overviews?[language ?? defaultLanguage] ?? result.overview)?.trimmingWhitespacesAndNewlinews()
|
||||||
|
metadata[.studio] = result.studios?.first
|
||||||
|
|
||||||
|
return metadata
|
||||||
|
}
|
||||||
|
|
||||||
public func search(movie: String, language: String) -> [MetadataResult] {
|
public func search(movie: String, language: String) -> [MetadataResult] {
|
||||||
return []
|
let results = session.fetch(movie: movie)
|
||||||
|
return results.map { metadata(forMoviePartialResult: $0, language: language) }
|
||||||
}
|
}
|
||||||
|
|
||||||
public func loadMovieMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult {
|
public func loadMovieMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult {
|
||||||
|
guard let movieID = metadata[.serviceContentID] as? String,
|
||||||
|
let name = metadata[.name] as? String,
|
||||||
|
let info = session.fetch(movieInfo: movieID)
|
||||||
|
else { return metadata }
|
||||||
|
|
||||||
|
metadata[.releaseDate] = info.first_release?.date
|
||||||
|
metadata[.rating] = cleanList(ratings: info.contentRatings ?? [], mediaKind: .movie)
|
||||||
|
metadata[.genre] = cleanList(genres: info.genres)
|
||||||
|
metadata[.studio] = cleanList(companies: info.companies?.studio ?? [])
|
||||||
|
metadata[.cast] = cleanList(characters: info.characters ?? [], type: "Actor")
|
||||||
|
metadata[.director] = cleanList(characters: info.characters ?? [], type: "Director")
|
||||||
|
metadata[.screenwriters] = cleanList(characters: info.characters ?? [], type: "Writer")
|
||||||
|
metadata[.producers] = cleanList(characters: info.characters ?? [], type: "Producer")
|
||||||
|
metadata[.executiveProducer] = cleanList(characters: info.characters ?? [], type: "Executive Producer")
|
||||||
|
metadata[.composer] = cleanList(characters: info.characters ?? [], type: "Original Music Composer")
|
||||||
|
|
||||||
|
metadata[.serviceContentID] = info.id
|
||||||
|
|
||||||
|
var artworks: [Artwork] = []
|
||||||
|
artworks += cleanArtworks(info.artworks)
|
||||||
|
|
||||||
|
var appleTV = [Artwork]()
|
||||||
|
let group = DispatchGroup()
|
||||||
|
let queue = DispatchQueue.global()
|
||||||
|
|
||||||
|
queue.async(group: group) {
|
||||||
|
if let store = iTunesStore.Store(language: "USA (English)") {
|
||||||
|
appleTV = AppleTV().searchArtwork(term: name, store: store, type: .movie)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
group.wait()
|
||||||
|
|
||||||
|
artworks.insert(contentsOf: appleTV, at: 0)
|
||||||
|
|
||||||
|
metadata.remoteArtworks = artworks.sortedTopPicks(service: self.name)
|
||||||
|
|
||||||
return metadata
|
return metadata
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,117 +8,377 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import MP42Foundation
|
import MP42Foundation
|
||||||
|
|
||||||
public struct TVDBSeriesSearchResult : Codable {
|
struct TVDBLanguage : Codable {
|
||||||
public let aliases: [String]
|
let id: String
|
||||||
public let banner: String?
|
let name: String
|
||||||
public let firstAired: String?
|
let nativeName: String
|
||||||
public let id: Int
|
let shortCode: String?
|
||||||
public let imdbId: String?
|
|
||||||
public let network: String?
|
|
||||||
public let overview: String?
|
|
||||||
public let seriesName: String?
|
|
||||||
public let status: String
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct TVDBSeriesInfo : Codable {
|
public struct TVDBAlias : Codable {
|
||||||
public let added: String?
|
public let language: String
|
||||||
public let airsDayOfWeek: String?
|
|
||||||
public let airsTime: String?
|
|
||||||
public let firstAired: String?
|
|
||||||
|
|
||||||
public let aliases: [String]
|
|
||||||
public let banner: String?
|
|
||||||
public let genre: [String]
|
|
||||||
|
|
||||||
public let id: Int
|
|
||||||
public let imdbId: String?
|
|
||||||
|
|
||||||
public let lastUpdated: Int?
|
|
||||||
|
|
||||||
public let network: String?
|
|
||||||
public let networkId: String?
|
|
||||||
|
|
||||||
public let rating: String?
|
|
||||||
public let runtime: String?
|
|
||||||
|
|
||||||
public let seriesId: String
|
|
||||||
public let seriesName: String
|
|
||||||
public let overview: String?
|
|
||||||
|
|
||||||
//public let siteRating: Double?
|
|
||||||
//public let siteRatingCount: Double?
|
|
||||||
|
|
||||||
//public let status: String?
|
|
||||||
}
|
|
||||||
|
|
||||||
public struct TVDBActor : Codable {
|
|
||||||
public let id: Int
|
|
||||||
public let name: String
|
public let name: String
|
||||||
//public let role: String?
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct TVDBRatingInfo : Codable {
|
public class TVDBArtworkType : Codable {
|
||||||
public let average: Double
|
public let id: Int64
|
||||||
public let count: Int
|
public let name: String
|
||||||
|
public let imageFormat: String
|
||||||
|
public let width: Int64
|
||||||
|
public let height: Int64
|
||||||
|
public let thumbHeight: Int64
|
||||||
|
public let thumbWidth: Int64
|
||||||
|
public let recordType: String
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct TVDBImage : Codable {
|
public class TVDBArtworkStatus : Codable {
|
||||||
public let fileName: String
|
let id: Int64
|
||||||
public let keyType: String
|
let name: String?
|
||||||
public let ratingsInfo: TVDBRatingInfo?
|
}
|
||||||
public let resolution: String?
|
|
||||||
public let subKey: String?
|
public class TVDBArtworBaseRecord : Codable {
|
||||||
|
public let height: Int64
|
||||||
|
public let id: Int64
|
||||||
|
public let image: String
|
||||||
|
public let includesText: Bool
|
||||||
|
public let language: String?
|
||||||
|
public let score: Double?
|
||||||
public let thumbnail: String
|
public let thumbnail: String
|
||||||
|
public let type: Int64
|
||||||
|
public let width: Int64
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct TVDBEpisode : Codable {
|
public class TVDBArtworkExtendedRecord : Codable {
|
||||||
|
public let episodeId: Int?
|
||||||
|
public let height: Int64
|
||||||
|
public let id: Int64
|
||||||
|
public let image: String
|
||||||
|
public let includesText: Bool
|
||||||
|
public let language: String?
|
||||||
|
public let movieId: Int?
|
||||||
|
public let networkId: Int?
|
||||||
|
public let peopleId: Int?
|
||||||
|
public let score: Double
|
||||||
|
public let seasonId: Int?
|
||||||
|
public let seriesId: Int?
|
||||||
|
public let seriesPeopleId: Int?
|
||||||
|
public let status: TVDBArtworkStatus
|
||||||
|
// public let tagOptions: TVDBTagOptions
|
||||||
|
public let thumbnail: String
|
||||||
|
public let thumbnailHeight: Int64
|
||||||
|
public let thumbnailWidth: Int64
|
||||||
|
public let type: Int64
|
||||||
|
public let updatedAt: Int64
|
||||||
|
}
|
||||||
|
|
||||||
|
public class TVDBGenreBaseRecord : Codable {
|
||||||
|
public let id: Int64
|
||||||
|
public let name: String
|
||||||
|
public let slug: String?
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBCharacter : Codable {
|
||||||
|
public let aliases: [TVDBAlias]?
|
||||||
|
// public let episode: TVDBRecordInfo
|
||||||
|
public let episodeId: Int?
|
||||||
|
public let id: Int
|
||||||
|
public let image: String?
|
||||||
|
public let isFeatured: Bool?
|
||||||
|
public let movieId: Int?
|
||||||
|
public let name: String?
|
||||||
|
public let nameTranslations: [String]?
|
||||||
|
public let overviewTranslations: [String]?
|
||||||
|
public let peopleId: Int
|
||||||
|
public let personImgURL: String?
|
||||||
|
public let peopleType: String
|
||||||
|
public let seriesId: Int?
|
||||||
|
// public let series: TVDBRecordInfo
|
||||||
|
public let sort: Int
|
||||||
|
// public let tagOptions: TVDBTagOptions
|
||||||
|
public let type: Int
|
||||||
|
public let url: String
|
||||||
|
public let personName: String
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBParentCompany : Codable {
|
||||||
|
public let id: Int?
|
||||||
|
public let name: String?
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBCompany : Codable {
|
||||||
|
public let activeDate: String?
|
||||||
|
public let aliases: [TVDBAlias]?
|
||||||
|
public let country: String?
|
||||||
|
public let id: Int64
|
||||||
|
public let inactiveDate: String?
|
||||||
|
public let name: String
|
||||||
|
public let nameTranslations: [String]?
|
||||||
|
public let overviewTranslations: [String]?
|
||||||
|
public let primaryCompanyType: Int64?
|
||||||
|
public let slug: String?
|
||||||
|
public let parentCompany: TVDBParentCompany?
|
||||||
|
// public let tagOptions: TVDBTagOptions
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBCompanies : Codable {
|
||||||
|
public let studio: [TVDBCompany]?
|
||||||
|
public let network: [TVDBCompany]?
|
||||||
|
public let production: [TVDBCompany]?
|
||||||
|
public let distributor: [TVDBCompany]?
|
||||||
|
public let special_effects: [TVDBCompany]?
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBStudioBaseRecord : Codable {
|
||||||
|
public let id: Int64
|
||||||
|
public let name: String
|
||||||
|
public let parentStudio: Int?
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBContentRating : Codable {
|
||||||
|
public let id: Int64
|
||||||
|
public let name: String
|
||||||
|
public let description: String
|
||||||
|
public let country: String
|
||||||
|
public let contentType: String
|
||||||
|
public let order: Int
|
||||||
|
public let fullName: String?
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBRemoteId : Codable {
|
||||||
|
public let id: String
|
||||||
|
public let type: Int64
|
||||||
|
public let sourceName: String
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBTranslation : Codable {
|
||||||
|
public let aliases: [String]?
|
||||||
|
public let isAlias: Bool?
|
||||||
|
public let isPrimary: Bool?
|
||||||
|
public let language: String
|
||||||
|
public let name: String?
|
||||||
|
public let overview: String?
|
||||||
|
public let tagline: String?
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBTranslationExtended : Codable {
|
||||||
|
public let nameTranslations: [TVDBTranslation]?
|
||||||
|
public let overviewTranslations: [TVDBTranslation]?
|
||||||
|
public let alias: [String]?
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBRelease : Codable {
|
||||||
|
public let country: String
|
||||||
|
public let date: String
|
||||||
|
public let detail: String?
|
||||||
|
}
|
||||||
|
|
||||||
|
public class TVDBStatus : Codable {
|
||||||
|
public let id: Int64?
|
||||||
|
public let keepUpdated: Bool
|
||||||
|
public let name: String
|
||||||
|
public let recordType: String
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBSearchResult : Codable {
|
||||||
|
public let aliases: [String]?
|
||||||
|
public let companies: [String]?
|
||||||
|
public let companyType: String?
|
||||||
|
public let country: String?
|
||||||
|
public let directory: String?
|
||||||
|
public let first_air_time: String?
|
||||||
|
public let genres: [String]?
|
||||||
|
public let id: String
|
||||||
|
public let image_url: String?
|
||||||
|
public let name: String?
|
||||||
|
public let is_official: Bool?
|
||||||
|
public let name_translated: String?
|
||||||
|
public let network: String?
|
||||||
|
public let objectID: String?
|
||||||
|
public let officialList: String?
|
||||||
|
public let overview: String?
|
||||||
|
public let overviews: Dictionary<String, String>?
|
||||||
|
public let overview_translated: [String]?
|
||||||
|
public let poster: String?
|
||||||
|
public let posters: [String]?
|
||||||
|
public let primary_language: String?
|
||||||
|
public let status: String?
|
||||||
|
public let slug: String?
|
||||||
|
public let studios: [String]?
|
||||||
|
public let title: String?
|
||||||
|
public let thumbnail: String?
|
||||||
|
public let translations: Dictionary<String, String>?
|
||||||
|
public let translationsWithLang: [String]?
|
||||||
|
public let tvdb_id: String
|
||||||
|
public let type: String?
|
||||||
|
public let year: String?
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBMovieExtendedRecord : Codable {
|
||||||
|
public let aliases: [TVDBAlias]?
|
||||||
|
public let artworks: [TVDBArtworBaseRecord]
|
||||||
|
public let audioLanguages: [String]?
|
||||||
|
// public let awards: [TVDBAwardBaseRecord]
|
||||||
|
public let boxOffice: String?
|
||||||
|
public let boxOfficeUS: String?
|
||||||
|
public let budget: String?
|
||||||
|
public let characters: [TVDBCharacter]?
|
||||||
|
public let companies: TVDBCompanies?
|
||||||
|
public let contentRatings: [TVDBContentRating]?
|
||||||
|
public let first_release: TVDBRelease?
|
||||||
|
public let genres: [TVDBGenreBaseRecord]
|
||||||
|
public let id: Int64
|
||||||
|
public let image: String?
|
||||||
|
// public let inspirations: [TVDBInspiration]?
|
||||||
|
public let lastUpdated: String
|
||||||
|
// public let lists: TVDBList
|
||||||
|
public let name: String
|
||||||
|
public let nameTranslations: [String]
|
||||||
|
public let originalCountry: String?
|
||||||
|
public let originalLanguage: String?
|
||||||
|
public let overviewTranslations: [String]?
|
||||||
|
// public let production_countries: [TVDBProductionCountry]?
|
||||||
|
public let releases: [TVDBRelease]?
|
||||||
|
public let remoteIds: [TVDBRemoteId]
|
||||||
|
public let runtime: Int?
|
||||||
|
public let score: Double?
|
||||||
|
public let slug: String?
|
||||||
|
public let spoken_languages: [String]?
|
||||||
|
public let studios: [TVDBStudioBaseRecord]?
|
||||||
|
public let subtitleLanguages: [String]?
|
||||||
|
// public let tagOptions: [TVDBTagOption]
|
||||||
|
// public let trailers: [TVDBTrailer]
|
||||||
|
public let translations: TVDBTranslationExtended?
|
||||||
|
public let year: String
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBEpisodeBaseRecord : Codable {
|
||||||
public let absoluteNumber: Double?
|
public let absoluteNumber: Double?
|
||||||
public let airedEpisodeNumber: Int
|
public let aired: String?
|
||||||
public let airedSeason: Int
|
public let airsBeforeEpisode: Int?
|
||||||
|
public let airsBeforeSeason: Int?
|
||||||
//public let dvdEpisodeNumber: Double?
|
public let finaleType: String?
|
||||||
//public let dvdSeason: Double?
|
|
||||||
|
|
||||||
public let episodeName: String?
|
|
||||||
public let firstAired: String?
|
|
||||||
|
|
||||||
public let id: Int
|
public let id: Int
|
||||||
|
public let image: String?
|
||||||
|
public let imageType: Int?
|
||||||
|
public let isMovie: Int
|
||||||
|
public let lastUpdated: String
|
||||||
|
public let name: String?
|
||||||
|
public let nameTranslations: [String]?
|
||||||
|
public let number: Int
|
||||||
public let overview: String?
|
public let overview: String?
|
||||||
|
public let overviewTranslations: [String]?
|
||||||
|
public let runtime: Int?
|
||||||
|
public let seasonNumber: Int
|
||||||
|
// public let seasons: []?
|
||||||
|
public let seriesId: Int?
|
||||||
|
public let year: String?
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct TVDBEpisodeInfo : Codable {
|
public struct TVDBEpisodeExtendedRecord : Codable {
|
||||||
public let absoluteNumber: Int?
|
public let aired: String?
|
||||||
public let airedEpisodeNumber: Int?
|
public let airsAfterSeason: Int?
|
||||||
public let airedSeason: Int?
|
public let airsBeforeEpisode: Int?
|
||||||
|
public let airsBeforeSeason: Int?
|
||||||
public let directors: [String]
|
// public let awards: [TVDBAwardBaseRecord]
|
||||||
|
public let characters: [TVDBCharacter]?
|
||||||
//public let dvdEpisodeNumber: Double?
|
public let companies: [TVDBCompany]?
|
||||||
//public let dvdSeason: Double?
|
public let contentRatings: [TVDBContentRating]
|
||||||
|
public let finaleType: String?
|
||||||
public let episodeName: String?
|
public let id: Int64
|
||||||
public let filename: String?
|
public let image: String?
|
||||||
public let firstAired: String?
|
public let imageType: Int?
|
||||||
|
public let isMovie: Int64
|
||||||
public let guestStars: [String]
|
public let lastUpdated: String
|
||||||
|
public let linkedMovie: Int?
|
||||||
public let id: Int
|
public let name: String
|
||||||
|
public let nameTranslations: [String]
|
||||||
|
public let networks: [TVDBCompany]?
|
||||||
|
// public let nominations: [TVDBAwardNomineeBaseRecorde]
|
||||||
|
public let number: Int
|
||||||
public let overview: String?
|
public let overview: String?
|
||||||
|
public let overviewTranslations: [String]?
|
||||||
public let writers: [String]
|
public let productionCode: String?
|
||||||
|
public let remoteIds: [TVDBRemoteId]
|
||||||
|
public let runtime: Int?
|
||||||
|
public let seasonNumber: Int
|
||||||
|
// public let season: []
|
||||||
|
public let seriesId: Int64
|
||||||
|
public let studios: [TVDBCompany]?
|
||||||
|
// public let tagOptions: [TVDBTagOption]
|
||||||
|
// public let trailers: [TVDBTrailer]
|
||||||
|
public let translations: TVDBTranslationExtended?
|
||||||
|
public let year: String
|
||||||
}
|
}
|
||||||
|
|
||||||
private extension ArtworkType {
|
public struct TVDBSeriesBaseRecord : Codable {
|
||||||
var theTVDBName: String {
|
public let aliases: [TVDBAlias]?
|
||||||
switch self {
|
public let averageRuntime: Int?
|
||||||
case .poster:
|
public let defaultSeasonType: Int64?
|
||||||
return "poster"
|
public let episodes: [TVDBEpisodeBaseRecord]?
|
||||||
case .season:
|
public let firstAired: String?
|
||||||
return "season"
|
public let id: Int
|
||||||
default:
|
public let image: String
|
||||||
return "poster"
|
public let isOrderRandomized: Bool
|
||||||
}
|
public let lastAired: String
|
||||||
}
|
public let lastUpdated: String
|
||||||
|
public let name: String
|
||||||
|
public let nameTranslations: [String]
|
||||||
|
public let nextAired: String
|
||||||
|
public let originalCountry: String
|
||||||
|
public let originalLanguage: String
|
||||||
|
public let overview: String?
|
||||||
|
public let overviewTranslations: [String]?
|
||||||
|
public let score: Int?
|
||||||
|
public let slug: String?
|
||||||
|
// public let status: Status
|
||||||
|
public let year: String?
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBSeriesEpisodes : Codable {
|
||||||
|
public let series: TVDBSeriesBaseRecord
|
||||||
|
public let episodes: [TVDBEpisodeBaseRecord]
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct TVDBSeriesExtendedRecord : Codable {
|
||||||
|
public let abbreviation: String?
|
||||||
|
// public let airsDays: TVDBSeriesAirsDays
|
||||||
|
public let aliases: [TVDBAlias]?
|
||||||
|
public let artworks: [TVDBArtworkExtendedRecord]
|
||||||
|
public let averageRuntime: Int?
|
||||||
|
public let characters: [TVDBCharacter]?
|
||||||
|
public let contentRatings: [TVDBContentRating]
|
||||||
|
public let country: String?
|
||||||
|
public let defaultSeasonType: Int64?
|
||||||
|
public let episodes: [TVDBEpisodeBaseRecord]?
|
||||||
|
public let firstAired: String?
|
||||||
|
// public let lists: TVDBList
|
||||||
|
public let genres: [TVDBGenreBaseRecord]
|
||||||
|
public let id: Int
|
||||||
|
public let image: String?
|
||||||
|
public let isOrderRandomized: Bool
|
||||||
|
public let lastAired: String
|
||||||
|
public let lastUpdated: String
|
||||||
|
public let name: String
|
||||||
|
public let nameTranslations: [String]
|
||||||
|
public let companies: [TVDBCompany]?
|
||||||
|
public let nextAired: String
|
||||||
|
public let originalCountry: String
|
||||||
|
public let originalLanguage: String
|
||||||
|
public let originalNetwork: TVDBCompany?
|
||||||
|
public let overview: String?
|
||||||
|
public let latestNetwork: TVDBCompany?
|
||||||
|
public let overviewTranslations: [String]
|
||||||
|
public let remoteIds: [TVDBRemoteId]
|
||||||
|
public let score: Double
|
||||||
|
// public let seasons: [TVDBSeasonBaseRecord]
|
||||||
|
// public let seasons: [TVDBSeasonType]
|
||||||
|
public let status: TVDBStatus
|
||||||
|
public let slug: String
|
||||||
|
// public let status: Status
|
||||||
|
// public let tags: [TVDBTagOptions]
|
||||||
|
// public let trailers: [TVDBTrailer]
|
||||||
|
public let translations: TVDBTranslationExtended?
|
||||||
|
public let year: String
|
||||||
}
|
}
|
||||||
|
|
||||||
final public class TheTVDBService {
|
final public class TheTVDBService {
|
||||||
@@ -128,40 +388,26 @@ final public class TheTVDBService {
|
|||||||
private let queue: DispatchQueue
|
private let queue: DispatchQueue
|
||||||
private let tokenQueue: DispatchQueue
|
private let tokenQueue: DispatchQueue
|
||||||
|
|
||||||
private let basePath = "https://api.thetvdb.com/"
|
private static let apiKey = "7bba6aca-a2c7-42d1-9c34-ed84bb44dfc6"
|
||||||
|
private static let basePath = "https://api4.thetvdb.com/v4/"
|
||||||
|
|
||||||
private struct Languages {
|
private var savedLanguages: [String]
|
||||||
let data: [String]
|
|
||||||
let timestamp: TimeInterval
|
|
||||||
}
|
|
||||||
|
|
||||||
private var savedLanguages: Languages?
|
|
||||||
|
|
||||||
public var languages: [String] {
|
public var languages: [String] {
|
||||||
get {
|
get {
|
||||||
return ["en",
|
return queue.sync {
|
||||||
"sv",
|
let now = Date.timeIntervalSinceReferenceDate
|
||||||
"no",
|
let timestamp = UserDefaults.standard.double(forKey: "SBTheTVBDv4LanguagesArrayTimestamp")
|
||||||
"da",
|
if let languagesArray = UserDefaults.standard.object(forKey: "SBTheTVBDv4LanguagesArray") as? [String], languagesArray.isEmpty == false,
|
||||||
"fi",
|
timestamp + 60 * 60 * 24 * 30 > Date.timeIntervalSinceReferenceDate {
|
||||||
"nl",
|
savedLanguages = languagesArray
|
||||||
"de",
|
} else {
|
||||||
"it",
|
savedLanguages = fetchLanguages()
|
||||||
"es",
|
UserDefaults.standard.set(savedLanguages, forKey: "SBTheTVBDv4LanguagesArray")
|
||||||
"fr",
|
UserDefaults.standard.set(now, forKey: "SBTheTVBDv4LanguagesArrayTimestamp")
|
||||||
"pl",
|
}
|
||||||
"hu",
|
return savedLanguages
|
||||||
"el",
|
}
|
||||||
"tr",
|
|
||||||
"ru",
|
|
||||||
"he",
|
|
||||||
"ja",
|
|
||||||
"pt",
|
|
||||||
"zh",
|
|
||||||
"cs",
|
|
||||||
"sl",
|
|
||||||
"hr",
|
|
||||||
"ko"]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -170,6 +416,9 @@ final public class TheTVDBService {
|
|||||||
let timestamp: TimeInterval
|
let timestamp: TimeInterval
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static let tokenKey = "SBTheTVBDv4Token"
|
||||||
|
private static let tokenTimestampKey = "SBTheTVBDv4TokenTimestamp"
|
||||||
|
|
||||||
private var savedToken: Token?
|
private var savedToken: Token?
|
||||||
|
|
||||||
private var token: Token? {
|
private var token: Token? {
|
||||||
@@ -179,8 +428,8 @@ final public class TheTVDBService {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
else if let result = login() {
|
else if let result = login() {
|
||||||
UserDefaults.standard.set(result.key, forKey: "SBTheTVBDToken")
|
UserDefaults.standard.set(result.key, forKey: TheTVDBService.tokenKey)
|
||||||
UserDefaults.standard.set(result.timestamp, forKey: "SBTheTVBDTokenTimestamp")
|
UserDefaults.standard.set(result.timestamp, forKey: TheTVDBService.tokenTimestampKey)
|
||||||
savedToken = result
|
savedToken = result
|
||||||
return result
|
return result
|
||||||
} else {
|
} else {
|
||||||
@@ -193,24 +442,27 @@ final public class TheTVDBService {
|
|||||||
private init() {
|
private init() {
|
||||||
queue = DispatchQueue(label: "org.subler.TheTVDBQueue")
|
queue = DispatchQueue(label: "org.subler.TheTVDBQueue")
|
||||||
tokenQueue = DispatchQueue(label: "org.subler.TheTVDBTokenQueue")
|
tokenQueue = DispatchQueue(label: "org.subler.TheTVDBTokenQueue")
|
||||||
|
savedLanguages = []
|
||||||
|
|
||||||
if let languagesArray = UserDefaults.standard.object(forKey: "SBTheTVBDLanguagesArray") as? [String] {
|
if let tokenKey = UserDefaults.standard.string(forKey: TheTVDBService.tokenKey) {
|
||||||
let timestamp = UserDefaults.standard.double(forKey: "SBTheTVBDLanguagesArrayTimestamp")
|
let timestamp = UserDefaults.standard.double(forKey: TheTVDBService.tokenTimestampKey)
|
||||||
if timestamp + 60 * 60 * 24 * 30 > Date.timeIntervalSinceReferenceDate {
|
|
||||||
savedLanguages = Languages(data: languagesArray, timestamp: timestamp)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if let tokenKey = UserDefaults.standard.string(forKey: "SBTheTVBDToken") {
|
|
||||||
let timestamp = UserDefaults.standard.double(forKey: "SBTheTVBDTokenTimestamp")
|
|
||||||
if timestamp + 60 * 60 * 4 > Date.timeIntervalSinceReferenceDate {
|
if timestamp + 60 * 60 * 4 > Date.timeIntervalSinceReferenceDate {
|
||||||
savedToken = Token(key: tokenKey, timestamp: timestamp)
|
savedToken = Token(key: tokenKey, timestamp: timestamp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private struct Links : Codable {
|
||||||
|
let next: String?
|
||||||
|
let page_size: Int
|
||||||
|
let prev: String?
|
||||||
|
let total_items: Int
|
||||||
|
}
|
||||||
|
|
||||||
private struct Wrapper<T> : Codable where T : Codable {
|
private struct Wrapper<T> : Codable where T : Codable {
|
||||||
let data: T
|
let data: T
|
||||||
|
let links: Links?
|
||||||
|
let status: String
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Login
|
// MARK: - Login
|
||||||
@@ -224,119 +476,188 @@ final public class TheTVDBService {
|
|||||||
let token: String
|
let token: String
|
||||||
}
|
}
|
||||||
|
|
||||||
guard let apikey = try? JSONEncoder().encode(ApiKey(apikey: "3498815BE9484A62")) else { return nil }
|
guard let apikey = try? JSONEncoder().encode(ApiKey(apikey: TheTVDBService.apiKey)) else { return nil }
|
||||||
guard let url = URL(string: "https://api.thetvdb.com/login") else { return nil }
|
guard let url = URL(string: TheTVDBService.basePath + "login") else { return nil }
|
||||||
|
|
||||||
let header = ["Content-Type" : "application/json",
|
let header = ["Content-Type" : "application/json"]
|
||||||
"Accept" : "application/vnd.thetvdb.v3"]
|
|
||||||
|
|
||||||
guard let response = URLSession.data(from: url,
|
guard let response = URLSession.data(from: url,
|
||||||
httpMethod: "POST",
|
httpMethod: "POST",
|
||||||
httpBody:apikey,
|
httpBody:apikey,
|
||||||
header: header) else { return nil }
|
header: header) else { return nil }
|
||||||
|
|
||||||
guard let responseToken = try? JSONDecoder().decode(TokenWrapper.self, from: response) else { return nil }
|
do {
|
||||||
return Token(key: responseToken.token, timestamp: Date.timeIntervalSinceReferenceDate)
|
let responseToken = try JSONDecoder().decode(Wrapper<TokenWrapper>.self, from: response)
|
||||||
|
return Token(key: responseToken.data.token, timestamp: Date.timeIntervalSinceReferenceDate)
|
||||||
|
} catch {
|
||||||
|
print("\(error)")
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Languages
|
// MARK: - Languages
|
||||||
|
|
||||||
private func fetchLanguages() -> Languages? {
|
private func fetchLanguages() -> [String] {
|
||||||
struct Language: Codable {
|
|
||||||
let abbreviation: String
|
guard let url = URL(string: "\(TheTVDBService.basePath)languages"),
|
||||||
let englishName: String
|
let result = sendJSONRequest(url: url, type: Wrapper<[TVDBLanguage]>.self)
|
||||||
let id: Int
|
else { return [] }
|
||||||
let name: String
|
|
||||||
|
return result.data.map { $0.id }
|
||||||
}
|
}
|
||||||
|
|
||||||
guard let url = URL(string: "\(basePath)languages"),
|
private var artworkTypes: [TVDBArtworkType]?
|
||||||
let result = sendJSONRequest(url: url, language: "en", type: Wrapper<[Language]>.self)
|
|
||||||
else { return nil }
|
|
||||||
|
|
||||||
let langManager = MP42Languages.defaultManager
|
public func fetchArtworkTypes() -> [TVDBArtworkType] {
|
||||||
return Languages(data: result.data.map { langManager.extendedTag(forISO_639_1:$0.abbreviation) }, timestamp: Date.timeIntervalSinceReferenceDate)
|
if let artworkTypes {
|
||||||
|
return artworkTypes
|
||||||
|
} else {
|
||||||
|
guard let url = URL(string: "\(TheTVDBService.basePath)artwork/types"),
|
||||||
|
let result = sendJSONRequest(url: url, type: Wrapper<[TVDBArtworkType]>.self)
|
||||||
|
else { return [] }
|
||||||
|
|
||||||
|
artworkTypes = result.data
|
||||||
|
return result.data
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Data request
|
// MARK: - Data request
|
||||||
|
|
||||||
private func sendRequest(url: URL, language: String) -> Data? {
|
private func sendRequest(url: URL) -> Data? {
|
||||||
guard let token = self.token else { return nil }
|
guard let token = self.token else { return nil }
|
||||||
|
|
||||||
let header = ["Authorization": "Bearer \(token.key)",
|
let header = ["Authorization": "Bearer \(token.key)",
|
||||||
"Content-Type" : "application/json",
|
"accept" : "application/json"]
|
||||||
"Accept" : "application/vnd.thetvdb.v3",
|
|
||||||
"Accept-Language" : language]
|
|
||||||
|
|
||||||
return URLSession.data(from: url, header: header)
|
return URLSession.data(from: url, header: header)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func sendJSONRequest<T>(url: URL, language: String, type: T.Type) -> T? where T : Decodable {
|
private func sendJSONRequest<T>(url: URL, type: T.Type) -> T? where T : Decodable {
|
||||||
guard let data = sendRequest(url: url, language: language),
|
guard let data = sendRequest(url: url) else { return nil }
|
||||||
let result = try? JSONDecoder().decode(type, from: data)
|
|
||||||
else { return nil }
|
|
||||||
|
|
||||||
return result
|
// let response = String(data: data, encoding: .utf8)
|
||||||
|
// if let response {
|
||||||
|
// print(response)
|
||||||
|
// }
|
||||||
|
|
||||||
|
do {
|
||||||
|
return try JSONDecoder().decode(type, from: data)
|
||||||
|
} catch {
|
||||||
|
print(error)
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Service calls
|
// MARK: - Service calls
|
||||||
|
|
||||||
public func fetch(series: String, language: String) -> [TVDBSeriesSearchResult] {
|
public func fetch(movie: String) -> [TVDBSearchResult] {
|
||||||
// Remove + because it breaks search
|
// Remove + because it breaks search
|
||||||
let encodedName = series.replacingOccurrences(of: "+", with: "").replacingOccurrences(of: "*", with: "-").urlEncoded()
|
let encodedName = movie.replacingOccurrences(of: "+", with: "").replacingOccurrences(of: "*", with: "-").urlEncoded()
|
||||||
|
|
||||||
guard let url = URL(string: "\(basePath)search/series?name=\(encodedName)"),
|
guard let url = URL(string: "\(TheTVDBService.basePath)search?query=\(encodedName)&type=movie"),
|
||||||
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[TVDBSeriesSearchResult]>.self)
|
let result = sendJSONRequest(url: url, type: Wrapper<[TVDBSearchResult]>.self)
|
||||||
else { return [] }
|
else { return [] }
|
||||||
|
|
||||||
return result.data
|
return result.data
|
||||||
}
|
}
|
||||||
|
|
||||||
public func fetch(seriesInfo seriesID: Int, language: String) -> TVDBSeriesInfo? {
|
public func fetch(movieInfo movieID: String) -> TVDBMovieExtendedRecord? {
|
||||||
guard let url = URL(string: "\(basePath)series/\(seriesID)"),
|
guard let url = URL(string: "\(TheTVDBService.basePath)movies/\(movieID)/extended"),
|
||||||
let result = sendJSONRequest(url: url, language: language, type: Wrapper<TVDBSeriesInfo>.self)
|
let result = sendJSONRequest(url: url, type: Wrapper<TVDBMovieExtendedRecord>.self)
|
||||||
else { return nil }
|
else { return nil }
|
||||||
|
|
||||||
return result.data
|
return result.data
|
||||||
}
|
}
|
||||||
|
|
||||||
public func fetch(actors seriesID: Int, language: String) -> [TVDBActor] {
|
public func fetch(movieTranslation movieID: String, language: String) -> TVDBTranslation? {
|
||||||
guard let url = URL(string: "\(basePath)series/\(seriesID)/actors"),
|
guard let url = URL(string: "\(TheTVDBService.basePath)movies/\(movieID)/translations/\(language)"),
|
||||||
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[TVDBActor]>.self)
|
let result = sendJSONRequest(url: url, type: Wrapper<TVDBTranslation>.self)
|
||||||
|
else { return nil }
|
||||||
|
|
||||||
|
return result.data
|
||||||
|
}
|
||||||
|
|
||||||
|
public func fetch(series: String) -> [TVDBSearchResult] {
|
||||||
|
// Remove + because it breaks search
|
||||||
|
let encodedName = series.replacingOccurrences(of: "+", with: "").replacingOccurrences(of: "*", with: "-").urlEncoded()
|
||||||
|
|
||||||
|
guard let url = URL(string: "\(TheTVDBService.basePath)search?query=\(encodedName)&type=series"),
|
||||||
|
let result = sendJSONRequest(url: url, type: Wrapper<[TVDBSearchResult]>.self)
|
||||||
else { return [] }
|
else { return [] }
|
||||||
|
|
||||||
return result.data
|
return result.data
|
||||||
}
|
}
|
||||||
|
|
||||||
public func fetch(images seriesID: Int, type: ArtworkType, language: String) -> [TVDBImage] {
|
public func fetch(seriesInfo seriesID: String) -> TVDBSeriesExtendedRecord? {
|
||||||
guard let url = URL(string: "\(basePath)series/\(seriesID)/images/query?keyType=\(type.theTVDBName)"),
|
guard let url = URL(string: "\(TheTVDBService.basePath)series/\(seriesID)/extended"),
|
||||||
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[TVDBImage]>.self)
|
let result = sendJSONRequest(url: url, type: Wrapper<TVDBSeriesExtendedRecord>.self)
|
||||||
else { return [] }
|
else { return nil }
|
||||||
|
|
||||||
return result.data
|
return result.data
|
||||||
}
|
}
|
||||||
|
|
||||||
private func episodesURL(seriesID: Int, season: Int?, episode: Int?) -> URL? {
|
public func fetch(seriesTranslation seriesID: String, language: String) -> TVDBTranslation? {
|
||||||
|
guard let url = URL(string: "\(TheTVDBService.basePath)series/\(seriesID)/translations/\(language)"),
|
||||||
|
let result = sendJSONRequest(url: url, type: Wrapper<TVDBTranslation>.self)
|
||||||
|
else { return nil }
|
||||||
|
|
||||||
|
return result.data
|
||||||
|
}
|
||||||
|
|
||||||
|
private func episodesURL(seriesID: Int, season: Int?, episode: Int?, page: UInt) -> URL? {
|
||||||
switch (season, episode) {
|
switch (season, episode) {
|
||||||
case let (season?, episode?):
|
case let (season?, episode?):
|
||||||
return URL(string: "\(basePath)series/\(seriesID)/episodes/query?airedSeason=\(season)&airedEpisode=\(episode)")
|
return URL(string:
|
||||||
|
"\(TheTVDBService.basePath)series/\(seriesID)/episodes/default?page=\(page)&season=\(season)&episodeNumber=\(episode)")
|
||||||
case let (season?, _):
|
case let (season?, _):
|
||||||
return URL(string: "\(basePath)series/\(seriesID)/episodes/query?airedSeason=\(season)")
|
return URL(string:
|
||||||
|
"\(TheTVDBService.basePath)series/\(seriesID)/episodes/default?page=\(page)&season=\(season)")
|
||||||
default:
|
default:
|
||||||
return URL(string: "\(basePath)series/\(seriesID)/episodes")
|
return URL(string:
|
||||||
|
"\(TheTVDBService.basePath)series/\(seriesID)/episodes/default?page=\(page)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public func fetch(episodeForSeriesID seriesID: Int, season: Int?, episode: Int?, language: String) -> [TVDBEpisode] {
|
public func fetch(episodesForSeriesID seriesID: Int, season: Int?, episode: Int?) -> [TVDBEpisodeBaseRecord] {
|
||||||
guard let url = episodesURL(seriesID: seriesID, season: season, episode: episode),
|
guard let url = episodesURL(seriesID: seriesID, season: season, episode: episode, page: 0),
|
||||||
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[TVDBEpisode]>.self)
|
let result = sendJSONRequest(url: url, type: Wrapper<TVDBSeriesEpisodes>.self)
|
||||||
else { return [] }
|
else { return [] }
|
||||||
|
|
||||||
|
return result.data.episodes
|
||||||
|
}
|
||||||
|
|
||||||
|
public func fetch(translatedEpisodesForSeriesID seriesID: Int, season: Int?, episode: Int?, language: String) -> [TVDBEpisodeBaseRecord] {
|
||||||
|
var episodes: [TVDBEpisodeBaseRecord] = Array()
|
||||||
|
var url = URL(string: "\(TheTVDBService.basePath)series/\(seriesID)/episodes/default/\(language)?page=0")
|
||||||
|
|
||||||
|
while let requestURL = url {
|
||||||
|
let result = sendJSONRequest(url: requestURL, type: Wrapper<TVDBSeriesBaseRecord>.self)
|
||||||
|
|
||||||
|
episodes += result?.data.episodes ?? []
|
||||||
|
|
||||||
|
if let next = result?.links?.next {
|
||||||
|
url = URL(string: next)
|
||||||
|
} else {
|
||||||
|
url = nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return episodes
|
||||||
|
}
|
||||||
|
|
||||||
|
public func fetch(episodeInfo episodeID: Int, language: String) -> TVDBEpisodeExtendedRecord? {
|
||||||
|
guard let url = URL(string: "\(TheTVDBService.basePath)episodes/\(episodeID)/extended"),
|
||||||
|
let result = sendJSONRequest(url: url, type: Wrapper<TVDBEpisodeExtendedRecord>.self)
|
||||||
|
else { return nil }
|
||||||
|
|
||||||
return result.data
|
return result.data
|
||||||
}
|
}
|
||||||
|
|
||||||
public func fetch(episodeInfo episodeID: Int, language: String) -> TVDBEpisodeInfo? {
|
public func fetch(episodesTranslation episodeID: Int, language: String) -> TVDBTranslation? {
|
||||||
guard let url = URL(string: "\(basePath)episodes/\(episodeID)"),
|
guard let url = URL(string: "\(TheTVDBService.basePath)episodes/\(episodeID)/translations/\(language)"),
|
||||||
let result = sendJSONRequest(url: url, language: language, type: Wrapper<TVDBEpisodeInfo>.self)
|
let result = sendJSONRequest(url: url, type: Wrapper<TVDBTranslation>.self)
|
||||||
else { return nil }
|
else { return nil }
|
||||||
|
|
||||||
return result.data
|
return result.data
|
||||||
|
|||||||
@@ -476,10 +476,10 @@ public struct iTunesStore: MetadataService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func compactMultipartSeasons(results: [MetadataResult]) {
|
private func compactMultipartSeasons(results: [MetadataResult]) {
|
||||||
let seasons = Dictionary(grouping: results.filter { $0[.serviceAdditionalSeriesID] != nil }, by: { $0[.season] as? Int })
|
let seasons = Dictionary(grouping: results.filter { $0[.serviceAdditionalContentID] != nil }, by: { $0[.season] as? Int })
|
||||||
|
|
||||||
for (_, episodes) in seasons {
|
for (_, episodes) in seasons {
|
||||||
let parts = Dictionary(grouping: episodes, by: { $0[.serviceAdditionalSeriesID] as! Int })
|
let parts = Dictionary(grouping: episodes, by: { $0[.serviceAdditionalContentID] as! Int })
|
||||||
let max = parts.mapValues { $0.compactMap { $0[.episodeNumber] as? Int } .max() ?? 0 }
|
let max = parts.mapValues { $0.compactMap { $0[.episodeNumber] as? Int } .max() ?? 0 }
|
||||||
|
|
||||||
for (part, episodes) in parts {
|
for (part, episodes) in parts {
|
||||||
@@ -490,7 +490,7 @@ public struct iTunesStore: MetadataService {
|
|||||||
if min < count, let episodeNumber = episode[.episodeNumber] as? Int {
|
if min < count, let episodeNumber = episode[.episodeNumber] as? Int {
|
||||||
episode[.episodeNumber] = episodeNumber + count
|
episode[.episodeNumber] = episodeNumber + count
|
||||||
}
|
}
|
||||||
episode[.serviceAdditionalSeriesID] = nil
|
episode[.serviceAdditionalContentID] = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -565,7 +565,7 @@ public struct iTunesStore: MetadataService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let part = part {
|
if let part = part {
|
||||||
metadata[.serviceAdditionalSeriesID] = part;
|
metadata[.serviceAdditionalContentID] = part;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -576,6 +576,7 @@ public struct iTunesStore: MetadataService {
|
|||||||
metadata[.iTunesCountry] = store.storeCode
|
metadata[.iTunesCountry] = store.storeCode
|
||||||
metadata[.iTunesURL] = result.trackViewUrl
|
metadata[.iTunesURL] = result.trackViewUrl
|
||||||
metadata[.contentID] = result.trackId
|
metadata[.contentID] = result.trackId
|
||||||
|
metadata[.serviceContentID] = result.trackId
|
||||||
|
|
||||||
if result.trackExplicitness == "explicit" {
|
if result.trackExplicitness == "explicit" {
|
||||||
metadata.contentRating = 4
|
metadata.contentRating = 4
|
||||||
@@ -622,6 +623,7 @@ public struct iTunesStore: MetadataService {
|
|||||||
metadata[.iTunesCountry] = store.storeCode
|
metadata[.iTunesCountry] = store.storeCode
|
||||||
metadata[.iTunesURL] = result.trackViewUrl
|
metadata[.iTunesURL] = result.trackViewUrl
|
||||||
metadata[.contentID] = result.trackId
|
metadata[.contentID] = result.trackId
|
||||||
|
metadata[.serviceContentID] = result.trackId
|
||||||
|
|
||||||
if result.trackExplicitness == "explicit" {
|
if result.trackExplicitness == "explicit" {
|
||||||
metadata.contentRating = 4
|
metadata.contentRating = 4
|
||||||
|
|||||||
@@ -97,7 +97,15 @@ class MetadataPrefsViewController : NSViewController, NSTableViewDelegate, NSTab
|
|||||||
s.map.items.sort(by: s.sort)
|
s.map.items.sort(by: s.sort)
|
||||||
s.tableView.reloadData()
|
s.tableView.reloadData()
|
||||||
s.builtInTokenField.stringValue = s.currentTokens.reduce("", { "\($0)/\($1)" })
|
s.builtInTokenField.stringValue = s.currentTokens.reduce("", { "\($0)/\($1)" })
|
||||||
|
|
||||||
|
s.updateControlsState()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateControlsState()
|
||||||
|
}
|
||||||
|
|
||||||
|
private func updateControlsState() {
|
||||||
|
removeMetadataButton.isEnabled = tableView.selectedRow != -1
|
||||||
}
|
}
|
||||||
|
|
||||||
private func save() {
|
private func save() {
|
||||||
@@ -141,6 +149,10 @@ class MetadataPrefsViewController : NSViewController, NSTableViewDelegate, NSTab
|
|||||||
|
|
||||||
// MARK: Table View
|
// MARK: Table View
|
||||||
|
|
||||||
|
func tableViewSelectionDidChange(_ notification: Notification) {
|
||||||
|
updateControlsState()
|
||||||
|
}
|
||||||
|
|
||||||
func numberOfRows(in tableView: NSTableView) -> Int {
|
func numberOfRows(in tableView: NSTableView) -> Int {
|
||||||
if tableView == self.tableView {
|
if tableView == self.tableView {
|
||||||
return map.items.count
|
return map.items.count
|
||||||
|
|||||||
@@ -57,6 +57,13 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
|
|||||||
|
|
||||||
private var state: MetadataSearchState = .none
|
private var state: MetadataSearchState = .none
|
||||||
|
|
||||||
|
/// Service ID parsed from the file name: consumed by the first automatic movie search.
|
||||||
|
private var pendingMovieID: MetadataFileID?
|
||||||
|
|
||||||
|
/// Release year parsed from the file name: consumed by the first completed
|
||||||
|
/// movie search, so it only steers the search seeded by the file name.
|
||||||
|
private var pendingMovieYear: Int?
|
||||||
|
|
||||||
private var movieService: MetadataService = MetadataSearch.defaultMovieService
|
private var movieService: MetadataService = MetadataSearch.defaultMovieService
|
||||||
private var tvShowService: MetadataService = MetadataSearch.defaultTVService
|
private var tvShowService: MetadataService = MetadataSearch.defaultTVService
|
||||||
|
|
||||||
@@ -122,10 +129,12 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
|
|||||||
case .none:
|
case .none:
|
||||||
updateUI()
|
updateUI()
|
||||||
|
|
||||||
case .movie(let title):
|
case .movie(let title, let id, let year):
|
||||||
searchMode.selectTabViewItem(at: 0)
|
searchMode.selectTabViewItem(at: 0)
|
||||||
movieName.stringValue = title
|
movieName.stringValue = title
|
||||||
tvSeriesName.stringValue = title
|
tvSeriesName.stringValue = title
|
||||||
|
pendingMovieID = id
|
||||||
|
pendingMovieYear = year
|
||||||
searchForResults(searchMovieButton)
|
searchForResults(searchMovieButton)
|
||||||
|
|
||||||
case .tvShow(let tvShow, let season, let episode):
|
case .tvShow(let tvShow, let season, let episode):
|
||||||
@@ -193,7 +202,7 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
|
|||||||
}
|
}
|
||||||
else if tvSeriesName.stringValue.count > 3 {
|
else if tvSeriesName.stringValue.count > 3 {
|
||||||
if let task = nameSearchTask { task.cancel() }
|
if let task = nameSearchTask { task.cancel() }
|
||||||
let language = tvShowService.languageType.extendedTag(displayName: tvLanguage.titleOfSelectedItem ?? "en")
|
let language = tvShowService.languageType.tag(displayName: tvLanguage.titleOfSelectedItem ?? "en")
|
||||||
|
|
||||||
tvSeriesNameSearchArray = [NSLocalizedString("Searching…", comment: "")]
|
tvSeriesNameSearchArray = [NSLocalizedString("Searching…", comment: "")]
|
||||||
|
|
||||||
@@ -242,8 +251,27 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func searchMovie() {
|
private func searchMovie() {
|
||||||
|
let language = movieService.languageType.tag(displayName: movieLanguage.titleOfSelectedItem ?? "en")
|
||||||
|
|
||||||
|
if let id = pendingMovieID {
|
||||||
|
// The file name carried a service ID: try a direct lookup first and
|
||||||
|
// consume it either way, so later searches follow the text field.
|
||||||
|
pendingMovieID = nil
|
||||||
|
let searcher = MetadataSearch.movieIDSearch(service: movieService, id: id, language: language)
|
||||||
|
let task = searcher.search(completionHandler: { results in
|
||||||
|
if results.isEmpty {
|
||||||
|
// Not supported by this provider, or unknown ID: fall back to the title search.
|
||||||
|
DispatchQueue.main.async { self.searchForResults(self.searchMovieButton) }
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
self.searchDone(search: searcher, results: results)
|
||||||
|
}
|
||||||
|
}).runAsync()
|
||||||
|
state = .searching(search: searcher, task: task)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let title = movieName.stringValue
|
let title = movieName.stringValue
|
||||||
let language = movieService.languageType.extendedTag(displayName: movieLanguage.titleOfSelectedItem ?? "en")
|
|
||||||
let searcher = MetadataSearch.movieSeach(service: movieService, movie: title, language: language)
|
let searcher = MetadataSearch.movieSeach(service: movieService, movie: title, language: language)
|
||||||
let task = searcher.search(completionHandler: { self.searchDone(search: searcher, results: $0) }).runAsync()
|
let task = searcher.search(completionHandler: { self.searchDone(search: searcher, results: $0) }).runAsync()
|
||||||
state = .searching(search: searcher, task: task)
|
state = .searching(search: searcher, task: task)
|
||||||
@@ -251,7 +279,7 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
|
|||||||
|
|
||||||
private func searchTVShow() {
|
private func searchTVShow() {
|
||||||
let title = tvSeriesName.stringValue
|
let title = tvSeriesName.stringValue
|
||||||
let language = tvShowService.languageType.extendedTag(displayName: tvLanguage.titleOfSelectedItem ?? "en")
|
let language = tvShowService.languageType.tag(displayName: tvLanguage.titleOfSelectedItem ?? "en")
|
||||||
let season = Int(tvSeasonNum.stringValue)
|
let season = Int(tvSeasonNum.stringValue)
|
||||||
let episode = Int(tvEpisodeNum.stringValue)
|
let episode = Int(tvEpisodeNum.stringValue)
|
||||||
let searcher = MetadataSearch.tvSearch(service: tvShowService, tvShow: title, season: season, episode: episode, language: language)
|
let searcher = MetadataSearch.tvSearch(service: tvShowService, tvShow: title, season: season, episode: episode, language: language)
|
||||||
@@ -272,6 +300,14 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
|
|||||||
|
|
||||||
private func searchDone(search: MetadataSearch, results: [MetadataResult]) {
|
private func searchDone(search: MetadataSearch, results: [MetadataResult]) {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
|
var results = results
|
||||||
|
if search.type == .movie {
|
||||||
|
// Exact title matches first, the file-name year preferred among
|
||||||
|
// them; the parsed year steers only the search seeded by the
|
||||||
|
// file name, so it is consumed here.
|
||||||
|
results = rankMovieResults(results, title: self.movieName.stringValue, year: self.pendingMovieYear)
|
||||||
|
self.pendingMovieYear = nil
|
||||||
|
}
|
||||||
if let first = results.first {
|
if let first = results.first {
|
||||||
self.state = .completed(search: search, results: results, selectedResult: first)
|
self.state = .completed(search: search, results: results, selectedResult: first)
|
||||||
}
|
}
|
||||||
@@ -331,14 +367,14 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
|
|||||||
switch state {
|
switch state {
|
||||||
case .searching(let search, _):
|
case .searching(let search, _):
|
||||||
switch search {
|
switch search {
|
||||||
case .movieSeach(let service, _, _):
|
case .movieSeach(let service, _, _), .movieIDSearch(let service, _, _):
|
||||||
progressText.stringValue = String.localizedStringWithFormat(NSLocalizedString("Searching %@ for movie information…", comment: ""), service.name)
|
progressText.stringValue = String.localizedStringWithFormat(NSLocalizedString("Searching %@ for movie information…", comment: ""), service.name)
|
||||||
case .tvSearch(let service, _, _ , _, _):
|
case .tvSearch(let service, _, _ , _, _):
|
||||||
progressText.stringValue = String.localizedStringWithFormat(NSLocalizedString("Searching %@ for episode information…", comment: ""), service.name)
|
progressText.stringValue = String.localizedStringWithFormat(NSLocalizedString("Searching %@ for episode information…", comment: ""), service.name)
|
||||||
}
|
}
|
||||||
case .additionalSearch(let search, _, _):
|
case .additionalSearch(let search, _, _):
|
||||||
switch search {
|
switch search {
|
||||||
case .movieSeach:
|
case .movieSeach, .movieIDSearch:
|
||||||
progressText.stringValue = NSLocalizedString("Downloading additional movie metadata…", comment: "")
|
progressText.stringValue = NSLocalizedString("Downloading additional movie metadata…", comment: "")
|
||||||
case .tvSearch:
|
case .tvSearch:
|
||||||
progressText.stringValue = NSLocalizedString("Downloading additional TV metadata…", comment: "")
|
progressText.stringValue = NSLocalizedString("Downloading additional TV metadata…", comment: "")
|
||||||
@@ -395,9 +431,14 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
|
|||||||
startProgressReport()
|
startProgressReport()
|
||||||
reloadTableData()
|
reloadTableData()
|
||||||
swithDefaultButton(from: addButton, to: visibleSearchButton(), disableOldButton: true)
|
swithDefaultButton(from: addButton, to: visibleSearchButton(), disableOldButton: true)
|
||||||
case .completed:
|
case .completed(_, let results, let selectedResult):
|
||||||
stopProgressReport()
|
stopProgressReport()
|
||||||
reloadTableData()
|
reloadTableData()
|
||||||
|
// Highlight the default pick (the ranked first result) so the
|
||||||
|
// user sees what Add would apply.
|
||||||
|
if let index = results.firstIndex(where: { $0 === selectedResult }) {
|
||||||
|
resultsTable.selectRowIndexes(IndexSet(integer: index), byExtendingSelection: false)
|
||||||
|
}
|
||||||
swithDefaultButton(from: searchMovieButton, to: addButton, disableOldButton: nil)
|
swithDefaultButton(from: searchMovieButton, to: addButton, disableOldButton: nil)
|
||||||
swithDefaultButton(from: searchTvButton, to: addButton, disableOldButton: nil)
|
swithDefaultButton(from: searchTvButton, to: addButton, disableOldButton: nil)
|
||||||
updateSearchButtonVisibility()
|
updateSearchButtonVisibility()
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -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="25098" 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="25098"/>
|
||||||
<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>
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
<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"/>
|
||||||
<view wantsLayer="YES" id="HYk-Hf-rvN">
|
<view wantsLayer="YES" id="HYk-Hf-rvN">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="540" height="520"/>
|
<rect key="frame" x="0.0" y="0.0" width="590" height="520"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<point key="canvasLocation" x="111.5" y="68.5"/>
|
<point key="canvasLocation" x="327" y="14"/>
|
||||||
</view>
|
</view>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
@@ -230,7 +230,7 @@ final class OCRManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private lazy var destinationURL = {
|
private lazy var destinationURL = {
|
||||||
return FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first?.appendingPathComponent("Subler", isDirectory: true).appendingPathComponent("tessdata", isDirectory: true).appendingPathComponent("v4", isDirectory: true)
|
return FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first?.appendingPathComponent("SublerMKV", isDirectory: true).appendingPathComponent("tessdata", isDirectory: true).appendingPathComponent("v4", isDirectory: true)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
private lazy var baseURL = {
|
private lazy var baseURL = {
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ final class OffsetViewController: NSViewController {
|
|||||||
@IBAction func setOffset(_ sender: Any) {
|
@IBAction func setOffset(_ sender: Any) {
|
||||||
if track.startOffset != offsetField.doubleValue {
|
if track.startOffset != offsetField.doubleValue {
|
||||||
track.startOffset = offsetField.doubleValue
|
track.startOffset = offsetField.doubleValue
|
||||||
doc.updateChangeCount(.changeDone)
|
|
||||||
}
|
}
|
||||||
presentingViewController?.dismiss(self)
|
presentingViewController?.dismiss(self)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
import Cocoa
|
import Cocoa
|
||||||
import MP42Foundation
|
import MP42Foundation
|
||||||
|
|
||||||
final class OptionsViewController: NSViewController, NSMenuItemValidation {
|
final class OptionsViewController: NSViewController, NSUserInterfaceValidations {
|
||||||
|
|
||||||
@IBOutlet weak var sendToExternalApp: NSButton!
|
@IBOutlet weak var sendToExternalApp: NSButton!
|
||||||
@IBOutlet var destButton: NSPopUpButton!
|
@IBOutlet var destButton: NSPopUpButton!
|
||||||
@@ -98,8 +98,8 @@ final class OptionsViewController: NSViewController, NSMenuItemValidation {
|
|||||||
preparePresetsPopUp()
|
preparePresetsPopUp()
|
||||||
}
|
}
|
||||||
|
|
||||||
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
|
||||||
switch menuItem.action {
|
switch item.action {
|
||||||
case #selector(chooseDestination(_:)),
|
case #selector(chooseDestination(_:)),
|
||||||
#selector(destination(_:)):
|
#selector(destination(_:)):
|
||||||
return true
|
return true
|
||||||
@@ -124,7 +124,11 @@ final class OptionsViewController: NSViewController, NSMenuItemValidation {
|
|||||||
private func menuItem(url: URL) -> NSMenuItem {
|
private func menuItem(url: URL) -> NSMenuItem {
|
||||||
let icon = NSWorkspace.shared.icon(forFile: url.path)
|
let icon = NSWorkspace.shared.icon(forFile: url.path)
|
||||||
icon.size = NSSize(width: 16, height: 16)
|
icon.size = NSSize(width: 16, height: 16)
|
||||||
let item = NSMenuItem(title: url.lastPathComponent, action: #selector(destination(_:)), keyEquivalent: "")
|
|
||||||
|
let values = try? url.resourceValues(forKeys: [.localizedNameKey])
|
||||||
|
let title = values?.localizedName ?? url.lastPathComponent
|
||||||
|
|
||||||
|
let item = NSMenuItem(title: title, action: #selector(destination(_:)), keyEquivalent: "")
|
||||||
item.image = icon
|
item.image = icon
|
||||||
item.target = self
|
item.target = self
|
||||||
item.representedObject = url
|
item.representedObject = url
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
//
|
||||||
|
// PasteboardItem.swift
|
||||||
|
// Subler
|
||||||
|
//
|
||||||
|
// Created by Damiano Galassi on 22/09/2026.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Cocoa
|
||||||
|
|
||||||
|
extension NSPasteboard.PasteboardType {
|
||||||
|
static let tableViewIndex = NSPasteboard.PasteboardType("org.subler.tableViewIndex")
|
||||||
|
}
|
||||||
|
|
||||||
|
class PasteboardItem: NSObject, NSPasteboardWriting {
|
||||||
|
let index: Int
|
||||||
|
let type: NSPasteboard.PasteboardType
|
||||||
|
|
||||||
|
init(index: Int, type: NSPasteboard.PasteboardType) {
|
||||||
|
self.index = index
|
||||||
|
self.type = type
|
||||||
|
}
|
||||||
|
|
||||||
|
func writableTypes(for pasteboard: NSPasteboard) -> [NSPasteboard.PasteboardType] {
|
||||||
|
return [type]
|
||||||
|
}
|
||||||
|
|
||||||
|
func pasteboardPropertyList(forType type: NSPasteboard.PasteboardType) -> Any? {
|
||||||
|
switch type {
|
||||||
|
case self.type:
|
||||||
|
return index
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
extension NSPasteboardItem {
|
||||||
|
func integer(forType type: NSPasteboard.PasteboardType) -> Int? {
|
||||||
|
guard let data = data(forType: type) else { return nil }
|
||||||
|
let plist = try? PropertyListSerialization.propertyList(
|
||||||
|
from: data,
|
||||||
|
options: .mutableContainers,
|
||||||
|
format: nil)
|
||||||
|
return plist as? Int
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
extension Array {
|
||||||
|
mutating func move(from start: Index, to end: Index) {
|
||||||
|
guard (0..<count) ~= start, (0...count) ~= end else { return }
|
||||||
|
if start == end { return }
|
||||||
|
let targetIndex = start < end ? end - 1 : end
|
||||||
|
insert(remove(at: start), at: targetIndex)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutating func move(with indexes: IndexSet, to toIndex: Index) {
|
||||||
|
let movingData = indexes.map{ self[$0] }
|
||||||
|
let targetIndex = toIndex - indexes.filter{ $0 < toIndex }.count
|
||||||
|
for (i, e) in indexes.enumerated() {
|
||||||
|
remove(at: e - i)
|
||||||
|
}
|
||||||
|
insert(contentsOf: movingData, at: targetIndex)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
+71
-20
@@ -26,11 +26,6 @@ struct Stored<T> : Registable {
|
|||||||
let key: String
|
let key: String
|
||||||
let defaultValue: T
|
let defaultValue: T
|
||||||
|
|
||||||
init(key: String, defaultValue: T) {
|
|
||||||
self.key = key
|
|
||||||
self.defaultValue = defaultValue
|
|
||||||
}
|
|
||||||
|
|
||||||
var wrappedValue: T {
|
var wrappedValue: T {
|
||||||
get { ud.object(forKey: key) as? T ?? defaultValue }
|
get { ud.object(forKey: key) as? T ?? defaultValue }
|
||||||
set { ud.set(newValue, forKey: key) }
|
set { ud.set(newValue, forKey: key) }
|
||||||
@@ -41,16 +36,41 @@ struct Stored<T> : Registable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@propertyWrapper
|
||||||
|
struct StoredEnum<T: RawRepresentable> : Registable {
|
||||||
|
let key: String
|
||||||
|
let defaultValue: T
|
||||||
|
|
||||||
|
var wrappedValue: T {
|
||||||
|
get { T(rawValue: (ud.object(forKey: key) as? T.RawValue) ?? defaultValue.rawValue) ?? defaultValue }
|
||||||
|
set { ud.set(newValue.rawValue, forKey: key) }
|
||||||
|
}
|
||||||
|
|
||||||
|
func register(in dictionary: inout [String :Any]) {
|
||||||
|
dictionary[key] = defaultValue.rawValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@propertyWrapper
|
||||||
|
struct StoredURL : Registable {
|
||||||
|
let key: String
|
||||||
|
let defaultValue: URL?
|
||||||
|
|
||||||
|
var wrappedValue: URL? {
|
||||||
|
get { ud.url(forKey: key) ?? defaultValue }
|
||||||
|
set { ud.set(newValue, forKey: key) }
|
||||||
|
}
|
||||||
|
|
||||||
|
func register(in dictionary: inout [String :Any]) {
|
||||||
|
dictionary[key] = defaultValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@propertyWrapper
|
@propertyWrapper
|
||||||
struct StoredCodable<T: Codable> : Registable {
|
struct StoredCodable<T: Codable> : Registable {
|
||||||
let key: String
|
let key: String
|
||||||
let defaultValue: T
|
let defaultValue: T
|
||||||
|
|
||||||
init(key: String, defaultValue: T) {
|
|
||||||
self.key = key
|
|
||||||
self.defaultValue = defaultValue
|
|
||||||
}
|
|
||||||
|
|
||||||
var wrappedValue: T {
|
var wrappedValue: T {
|
||||||
get {
|
get {
|
||||||
guard let data = ud.data(forKey: key) else { return defaultValue }
|
guard let data = ud.data(forKey: key) else { return defaultValue }
|
||||||
@@ -70,14 +90,21 @@ struct StoredCodable<T: Codable> : Registable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum SaveAsLocation: Int {
|
||||||
|
case automatic = 0
|
||||||
|
case sameAsFile = 1
|
||||||
|
case custom = 2
|
||||||
|
}
|
||||||
|
|
||||||
enum Prefs {
|
enum Prefs {
|
||||||
|
|
||||||
static func register() {
|
static func register() {
|
||||||
ud.register(defaults: [_crashOnException, _showOpenPanelAtLaunch, _suppressDonationAlert, _saveFormat, _organizeAlternateGroups,
|
ud.register(defaults: [_crashOnException, _showOpenPanelAtLaunch, _suppressDonationAlert, _fileType, _organizeAlternateGroups,
|
||||||
_defaultSaveFormat, _organizeAlternateGroups, _inferMediaCharacteristics, _audioMixdown,
|
_organizeAlternateGroups, _inferMediaCharacteristics, _audioMixdown,
|
||||||
_audioBitrate, _audioDRC, _audioConvertAC3, _audioKeepAC3, _audioConvertDts,
|
_audioBitrate, _audioDRC, _audioConvertAC3, _audioKeepAC3, _audioConvertDts,
|
||||||
_audioDtsOptions, _subtitleConvertBitmap, _ratingsCountry, _chaptersPreviewPosition,
|
_audioDtsOptions, _subtitleConvertBitmap, _ratingsCountry, _chaptersPreviewPosition,
|
||||||
_chaptersPreviewTrack, _mp464bitOffset, _mp464bitTimes, _mp4SaveAsOptimize, _forceHvc1])
|
_chaptersPreviewTrack, _mp464bitOffset, _mp464bitTimes, _mp4SaveAsOptimize, _forceHvc1,
|
||||||
|
_logFormat, _saveAsLocation, _set4KHDVideoMetadata])
|
||||||
}
|
}
|
||||||
|
|
||||||
@Stored(key: "NSApplicationCrashOnException", defaultValue: true)
|
@Stored(key: "NSApplicationCrashOnException", defaultValue: true)
|
||||||
@@ -95,11 +122,8 @@ enum Prefs {
|
|||||||
@Stored(key: "rememberWindowSize", defaultValue: false)
|
@Stored(key: "rememberWindowSize", defaultValue: false)
|
||||||
static var rememberDocumentWindowSize: Bool
|
static var rememberDocumentWindowSize: Bool
|
||||||
|
|
||||||
@Stored(key: "SBSaveFormat", defaultValue: "m4v")
|
@Stored(key: "SBSaveFormat", defaultValue: "mp4")
|
||||||
static var saveFormat: String
|
static var fileType: String
|
||||||
|
|
||||||
@Stored(key: "defaultSaveFormat", defaultValue: 0)
|
|
||||||
static var defaultSaveFormat: Int
|
|
||||||
|
|
||||||
@Stored(key: "SBOrganizeAlternateGroups", defaultValue: true)
|
@Stored(key: "SBOrganizeAlternateGroups", defaultValue: true)
|
||||||
static var organizeAlternateGroups: Bool
|
static var organizeAlternateGroups: Bool
|
||||||
@@ -151,6 +175,28 @@ enum Prefs {
|
|||||||
|
|
||||||
@Stored(key: "SBForceHvc1", defaultValue: true)
|
@Stored(key: "SBForceHvc1", defaultValue: true)
|
||||||
static var forceHvc1: Bool
|
static var forceHvc1: Bool
|
||||||
|
|
||||||
|
@Stored(key: "SBSet4KHDVideoMetadata", defaultValue: false)
|
||||||
|
static var set4KHDVideoMetadata: Bool
|
||||||
|
|
||||||
|
@Stored(key: "SBArtworkSelectorZoomLevel", defaultValue: 50)
|
||||||
|
static var artworkSelectorZoomLevel: Float
|
||||||
|
|
||||||
|
@Stored(key: "SBMovieArtworkSelectorZoomLevel", defaultValue: 50)
|
||||||
|
static var movieArtworkSelectorZoomLevel: Float
|
||||||
|
|
||||||
|
@Stored(key: "SBPresetArtworkSelectorZoomLevel", defaultValue: 0)
|
||||||
|
static var presetArtworkSelectorZoomLevel: Float
|
||||||
|
|
||||||
|
@Stored(key: "SBLogFormat", defaultValue: 0)
|
||||||
|
static var logFormat: Int // 0 = Time Only, 1 = Date and Time
|
||||||
|
|
||||||
|
@StoredEnum(key: "SBSaveAsLocationMode", defaultValue: .automatic)
|
||||||
|
static var saveAsLocation: SaveAsLocation
|
||||||
|
|
||||||
|
/// The folder used when saveAsLocation is set to custom.
|
||||||
|
@StoredURL(key: "SBSaveAsCustomLocation", defaultValue: nil)
|
||||||
|
static var saveAsCustomLocation: URL?
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MetadataPrefs {
|
enum MetadataPrefs {
|
||||||
@@ -158,8 +204,10 @@ 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,
|
||||||
_keepEmptyAnnotations, _keepImportedFilesMetadata])
|
_tvShowTheTVDBLanguage, _tvShowTheMovieDBLanguage,
|
||||||
|
_keepEmptyAnnotations, _overwriteExistingAnnotations,
|
||||||
|
_keepImportedFilesMetadata])
|
||||||
}
|
}
|
||||||
|
|
||||||
@StoredCodable(key: "SBMovieFormatTokens", defaultValue: [Token(text: "{Name}")])
|
@StoredCodable(key: "SBMovieFormatTokens", defaultValue: [Token(text: "{Name}")])
|
||||||
@@ -208,6 +256,9 @@ enum MetadataPrefs {
|
|||||||
@Stored(key: "SBMetadataKeepEmptyAnnotations", defaultValue: false)
|
@Stored(key: "SBMetadataKeepEmptyAnnotations", defaultValue: false)
|
||||||
static var keepEmptyAnnotations: Bool
|
static var keepEmptyAnnotations: Bool
|
||||||
|
|
||||||
|
@Stored(key: "SBMetadataOverwriteExistingAnnotations", defaultValue: true)
|
||||||
|
static var overwriteExistingAnnotations: Bool
|
||||||
|
|
||||||
@Stored(key: "SBFileImporterImportMetadata", defaultValue: false)
|
@Stored(key: "SBFileImporterImportMetadata", defaultValue: false)
|
||||||
static var keepImportedFilesMetadata: Bool
|
static var keepImportedFilesMetadata: Bool
|
||||||
}
|
}
|
||||||
@@ -9,11 +9,11 @@ import Cocoa
|
|||||||
|
|
||||||
class PrefsWindow: NSWindow {
|
class PrefsWindow: NSWindow {
|
||||||
|
|
||||||
override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
override func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
|
||||||
if menuItem.action == #selector(NSWindow.toggleToolbarShown(_:)) {
|
if item.action == #selector(NSWindow.toggleToolbarShown(_:)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return super.validateMenuItem(menuItem)
|
return super.validateUserInterfaceItem(item)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -67,14 +67,14 @@ class PrefsWindowController: NSWindowController, NSWindowDelegate {
|
|||||||
|
|
||||||
// MARK: Panel switching
|
// MARK: Panel switching
|
||||||
|
|
||||||
private func view(for identifier: NSToolbarItem.Identifier) -> NSView? {
|
private func view(for identifier: NSToolbarItem.Identifier) -> NSView {
|
||||||
if identifier == general { return generalController.view }
|
if identifier == general { return generalController.view }
|
||||||
if identifier == metadata { return metadataController.view }
|
if identifier == metadata { return metadataController.view }
|
||||||
if identifier == presets { return presetController.view }
|
if identifier == presets { return presetController.view }
|
||||||
if identifier == output { return outputController.view }
|
if identifier == output { return outputController.view }
|
||||||
if identifier == ocr { return ocrController.view }
|
if identifier == ocr { return ocrController.view }
|
||||||
if identifier == advanced { return advancedController.view }
|
if identifier == advanced { return advancedController.view }
|
||||||
return nil
|
return generalController.view
|
||||||
}
|
}
|
||||||
|
|
||||||
private func animationDuration(view: NSView, previousView: NSView?) -> TimeInterval {
|
private func animationDuration(view: NSView, previousView: NSView?) -> TimeInterval {
|
||||||
@@ -82,33 +82,61 @@ class PrefsWindowController: NSWindowController, NSWindowDelegate {
|
|||||||
return TimeInterval(abs(previousView.frame.size.height - view.frame.height)) * 0.0011
|
return TimeInterval(abs(previousView.frame.size.height - view.frame.height)) * 0.0011
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func resizeWindow(toFitView view: NSView) {
|
||||||
|
guard let window, let contentView = window.contentView else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
view.setFrameSize(view.fittingSize)
|
||||||
|
|
||||||
|
let viewFrame = view.frame
|
||||||
|
let windowFrame = window.frame
|
||||||
|
let contentViewFrame = contentView.frame
|
||||||
|
|
||||||
|
let windowWidth = max(windowFrame.width, viewFrame.width)
|
||||||
|
let deltaHeight = contentViewFrame.height - viewFrame.height
|
||||||
|
let heightForWindow = windowFrame.height - deltaHeight
|
||||||
|
let windowOriginY = windowFrame.minY + deltaHeight
|
||||||
|
|
||||||
|
var updatedWindowFrame = windowFrame
|
||||||
|
updatedWindowFrame.size.height = heightForWindow
|
||||||
|
updatedWindowFrame.origin.y = windowOriginY
|
||||||
|
updatedWindowFrame.size.width = windowWidth
|
||||||
|
|
||||||
|
var updatedViewFrame = viewFrame
|
||||||
|
updatedViewFrame.origin = NSPoint.zero
|
||||||
|
updatedViewFrame.size.width = windowWidth
|
||||||
|
if viewFrame != updatedViewFrame {
|
||||||
|
view.frame = updatedViewFrame
|
||||||
|
}
|
||||||
|
|
||||||
|
if windowFrame != updatedWindowFrame {
|
||||||
|
contentView.isHidden = true
|
||||||
|
window.setFrame(updatedWindowFrame, display: true, animate: true)
|
||||||
|
contentView.isHidden = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var currentView: NSView? {
|
||||||
|
window?.contentView?.subviews.first
|
||||||
|
}
|
||||||
|
|
||||||
private func selectItem(_ item: NSToolbarItem, animate: Bool) {
|
private func selectItem(_ item: NSToolbarItem, animate: Bool) {
|
||||||
guard let window = self.window,
|
guard let window, let contentView = window.contentView else { return }
|
||||||
let view = self.view(for: item.itemIdentifier),
|
|
||||||
window.contentView != view
|
|
||||||
else { return }
|
|
||||||
|
|
||||||
let duration = animationDuration(view: view, previousView: window.contentView)
|
let newView = view(for: item.itemIdentifier)
|
||||||
window.contentView = view
|
if newView == currentView {
|
||||||
|
return
|
||||||
if window.isVisible && animate {
|
|
||||||
NSAnimationContext.runAnimationGroup({ context in
|
|
||||||
context.allowsImplicitAnimation = true
|
|
||||||
context.duration = duration
|
|
||||||
window.layoutIfNeeded()
|
|
||||||
|
|
||||||
NSAnimationContext.beginGrouping()
|
|
||||||
NSAnimationContext.current.duration = 0
|
|
||||||
view.isHidden = true
|
|
||||||
NSAnimationContext.endGrouping()
|
|
||||||
}, completionHandler: {
|
|
||||||
view.isHidden = false
|
|
||||||
window.title = item.label
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
|
currentView?.removeFromSuperview()
|
||||||
|
|
||||||
|
resizeWindow(toFitView: newView)
|
||||||
|
|
||||||
|
contentView.addSubview(newView)
|
||||||
|
|
||||||
window.title = item.label
|
window.title = item.label
|
||||||
}
|
window.makeFirstResponder(newView)
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func setPrefView(_ sender: NSToolbarItem) {
|
@IBAction func setPrefView(_ sender: NSToolbarItem) {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ protocol Preset: NSSecureCoding, NSCopying {
|
|||||||
extension Preset {
|
extension Preset {
|
||||||
|
|
||||||
private func appSupportURL() -> URL? {
|
private func appSupportURL() -> URL? {
|
||||||
return FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first?.appendingPathComponent("Subler")
|
return FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first?.appendingPathComponent("SublerMKV")
|
||||||
}
|
}
|
||||||
|
|
||||||
var fileURL: URL {
|
var fileURL: URL {
|
||||||
|
|||||||
@@ -42,6 +42,15 @@ final class PresetEditorViewController: MovieViewController {
|
|||||||
replaceAnnotations.state = preset.replaceAnnotations == false ? .on : .off
|
replaceAnnotations.state = preset.replaceAnnotations == false ? .on : .off
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override var zoomLevel: Float {
|
||||||
|
get {
|
||||||
|
Prefs.presetArtworkSelectorZoomLevel
|
||||||
|
}
|
||||||
|
set (value) {
|
||||||
|
Prefs.presetArtworkSelectorZoomLevel = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func done(_ sender: Any) {
|
@IBAction func done(_ sender: Any) {
|
||||||
presentingViewController?.dismiss(self)
|
presentingViewController?.dismiss(self)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ final class PresetManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func appSupportURL() -> URL? {
|
private func appSupportURL() -> URL? {
|
||||||
return FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first?.appendingPathComponent("Subler")
|
return FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first?.appendingPathComponent("SublerMKV")
|
||||||
}
|
}
|
||||||
|
|
||||||
private func version(of fileURL: URL) -> Int? {
|
private func version(of fileURL: URL) -> Int? {
|
||||||
@@ -117,14 +117,14 @@ final class PresetManager {
|
|||||||
let resourceValues = try fileURL.resourceValues(forKeys: [.isDirectoryKey])
|
let resourceValues = try fileURL.resourceValues(forKeys: [.isDirectoryKey])
|
||||||
if resourceValues.isDirectory == false, let version = version(of: fileURL) {
|
if resourceValues.isDirectory == false, let version = version(of: fileURL) {
|
||||||
let data = try Data(contentsOf: fileURL)
|
let data = try Data(contentsOf: fileURL)
|
||||||
let unarchiver = NSKeyedUnarchiver(forReadingWith: data)
|
if let unarchiver = try? NSKeyedUnarchiver(forReadingFrom: data) {
|
||||||
unarchiver.requiresSecureCoding = true
|
|
||||||
defer { unarchiver.finishDecoding() }
|
defer { unarchiver.finishDecoding() }
|
||||||
|
|
||||||
if version == 2, let preset = try? unarchiver.decodeTopLevelObject(of: [MetadataPreset.self], forKey: NSKeyedArchiveRootObjectKey) as? MetadataPreset {
|
if version == 2, let preset = try? unarchiver.decodeTopLevelObject(of: [MetadataPreset.self], forKey: NSKeyedArchiveRootObjectKey) as? MetadataPreset {
|
||||||
return preset
|
return preset
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
throw LoadError.unsupportedFile
|
throw LoadError.unsupportedFile
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,13 +148,11 @@ final class PresetManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func save(preset: Preset) throws {
|
private func save(preset: Preset) throws {
|
||||||
let data = NSMutableData()
|
let archiver = NSKeyedArchiver(requiringSecureCoding: true)
|
||||||
let archiver = NSKeyedArchiver(forWritingWith: data)
|
|
||||||
archiver.requiresSecureCoding = true
|
|
||||||
archiver.encode(preset, forKey: NSKeyedArchiveRootObjectKey)
|
archiver.encode(preset, forKey: NSKeyedArchiveRootObjectKey)
|
||||||
archiver.finishEncoding()
|
archiver.finishEncoding()
|
||||||
|
|
||||||
try data.write(to: preset.fileURL, options: [.atomic])
|
try archiver.encodedData.write(to: preset.fileURL, options: [.atomic])
|
||||||
preset.changed = false
|
preset.changed = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -159,8 +159,11 @@ class PresetPrefsViewController: NSViewController, SectionsTableViewDataSource,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let count = presetManager.metadataPresets.count + presetManager.queuePresets.count
|
||||||
|
if let index = rowIndexes.last, index < count {
|
||||||
tableView.selectRowIndexes(rowIndexes, byExtendingSelection: false)
|
tableView.selectRowIndexes(rowIndexes, byExtendingSelection: false)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func editPreset(_ sender: NSView) {
|
@IBAction func editPreset(_ sender: NSView) {
|
||||||
let rowIndex = tableView.selectedRow
|
let rowIndex = tableView.selectedRow
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
<?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">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="25098" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="25098"/>
|
||||||
<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>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="ChapterViewController" customModule="Subler" customModuleProvider="target">
|
<customObject id="-2" userLabel="File's Owner" customClass="ChapterViewController" customModule="Subler" customModuleProvider="target">
|
||||||
<connections>
|
<connections>
|
||||||
|
<outlet property="actions" destination="IvH-Ff-dyN" id="EiR-xB-dq9"/>
|
||||||
<outlet property="removeChapter" destination="31" id="faJ-CI-g36"/>
|
<outlet property="removeChapter" destination="31" id="faJ-CI-g36"/>
|
||||||
<outlet property="tabView" destination="10" id="CC8-n9-JPu"/>
|
<outlet property="tabView" destination="10" id="CC8-n9-JPu"/>
|
||||||
<outlet property="tableView" destination="22" id="7Za-v5-yKx"/>
|
<outlet property="tableView" destination="22" id="7Za-v5-yKx"/>
|
||||||
@@ -29,15 +30,14 @@
|
|||||||
<rect key="frame" x="10" y="29" width="753" height="237"/>
|
<rect key="frame" x="10" y="29" width="753" height="237"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="19">
|
<scrollView autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="19">
|
||||||
<rect key="frame" x="17" y="36" width="719" height="195"/>
|
<rect key="frame" x="17" y="44" width="719" height="187"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
||||||
<clipView key="contentView" id="gfP-N5-8Ji">
|
<clipView key="contentView" id="gfP-N5-8Ji">
|
||||||
<rect key="frame" x="1" y="1" width="717" height="193"/>
|
<rect key="frame" x="1" y="1" width="717" height="185"/>
|
||||||
<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" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="14" headerView="23" viewBased="YES" id="22" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnSelection="YES" autosaveColumns="NO" rowHeight="14" headerView="23" viewBased="YES" id="22" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="717" height="176"/>
|
<rect key="frame" x="0.0" y="0.0" width="717" height="168"/>
|
||||||
<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"/>
|
||||||
@@ -383,32 +383,19 @@
|
|||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</tableHeaderView>
|
</tableHeaderView>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
<button toolTip="Delete selected chapter" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="31">
|
<button toolTip="Add chapter" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="42">
|
||||||
<rect key="frame" x="42" y="7" width="26" height="22"/>
|
<rect key="frame" x="17" y="16" width="32" height="20"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSAddTemplate" imagePosition="only" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="43">
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="32">
|
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
</buttonCell>
|
|
||||||
<connections>
|
|
||||||
<action selector="removeChapter:" target="-2" id="48"/>
|
|
||||||
</connections>
|
|
||||||
</button>
|
|
||||||
<button toolTip="Add chapter" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="42">
|
|
||||||
<rect key="frame" x="17" y="7" width="26" height="22"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="43">
|
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
||||||
<font key="font" metaFont="system"/>
|
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="addChapter:" target="-2" id="50"/>
|
<action selector="addChapter:" target="-2" id="50"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="IvH-Ff-dyN">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="IvH-Ff-dyN">
|
||||||
<rect key="frame" x="76" y="7" width="33" height="22"/>
|
<rect key="frame" x="90" y="16" width="53" height="20"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" pullsDown="YES" id="frw-Vk-Gwo">
|
||||||
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" pullsDown="YES" id="frw-Vk-Gwo">
|
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="controlContent" size="11"/>
|
<font key="font" metaFont="controlContent" size="11"/>
|
||||||
<menu key="menu" id="T3N-JJ-mWq">
|
<menu key="menu" id="T3N-JJ-mWq">
|
||||||
@@ -426,13 +413,35 @@
|
|||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
|
<button toolTip="Delete selected chapter" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="31">
|
||||||
|
<rect key="frame" x="50" y="16" width="32" height="20"/>
|
||||||
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSRemoveTemplate" imagePosition="only" alignment="center" controlSize="small" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="32">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="smallSystem"/>
|
||||||
|
</buttonCell>
|
||||||
|
<connections>
|
||||||
|
<action selector="removeChapter:" target="-2" id="48"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
</subviews>
|
</subviews>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstItem="19" firstAttribute="leading" secondItem="12" secondAttribute="leading" constant="17" id="21K-r4-gXZ"/>
|
||||||
|
<constraint firstItem="31" firstAttribute="top" secondItem="42" secondAttribute="top" id="GlU-QC-OYe"/>
|
||||||
|
<constraint firstItem="42" firstAttribute="top" secondItem="19" secondAttribute="bottom" constant="8" symbolic="YES" id="Ngw-J5-tMS"/>
|
||||||
|
<constraint firstItem="42" firstAttribute="leading" secondItem="19" secondAttribute="leading" id="XGG-xy-ibf"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="19" secondAttribute="trailing" constant="17" id="cNR-fN-seC"/>
|
||||||
|
<constraint firstItem="19" firstAttribute="top" secondItem="12" secondAttribute="top" constant="6" id="dMH-VU-NKD"/>
|
||||||
|
<constraint firstAttribute="bottom" secondItem="42" secondAttribute="bottom" constant="16" id="mjM-zH-dIu"/>
|
||||||
|
<constraint firstItem="IvH-Ff-dyN" firstAttribute="leading" secondItem="31" secondAttribute="trailing" constant="8" symbolic="YES" id="rvP-0R-kpo"/>
|
||||||
|
<constraint firstItem="31" firstAttribute="leading" secondItem="42" secondAttribute="trailing" constant="1" id="teO-jO-fZC"/>
|
||||||
|
<constraint firstItem="IvH-Ff-dyN" firstAttribute="top" secondItem="31" secondAttribute="top" id="yyG-lL-AQz"/>
|
||||||
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
</tabViewItem>
|
</tabViewItem>
|
||||||
</tabViewItems>
|
</tabViewItems>
|
||||||
</tabView>
|
</tabView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<point key="canvasLocation" x="-36" y="-92"/>
|
<point key="canvasLocation" x="-36.5" y="-92"/>
|
||||||
</customView>
|
</customView>
|
||||||
</objects>
|
</objects>
|
||||||
<resources>
|
<resources>
|
||||||
|
|||||||
@@ -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="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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>
|
||||||
@@ -27,6 +27,7 @@
|
|||||||
<constraint firstAttribute="bottom" secondItem="5" secondAttribute="bottom" constant="-2" id="mBt-hk-Csd"/>
|
<constraint firstAttribute="bottom" secondItem="5" secondAttribute="bottom" constant="-2" id="mBt-hk-Csd"/>
|
||||||
<constraint firstItem="5" firstAttribute="top" secondItem="1" secondAttribute="top" constant="8" id="x6g-Yu-20J"/>
|
<constraint firstItem="5" firstAttribute="top" secondItem="1" secondAttribute="top" constant="8" id="x6g-Yu-20J"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
<point key="canvasLocation" x="259" y="39"/>
|
||||||
</customView>
|
</customView>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
@@ -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="24127" 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="24127"/>
|
||||||
<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,25 +20,26 @@
|
|||||||
<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="184"/>
|
||||||
<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="191"/>
|
||||||
<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="136"/>
|
||||||
<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" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="30">
|
||||||
<rect key="frame" x="17" y="7" width="29" height="22"/>
|
<rect key="frame" x="13" y="12" width="44" height="22"/>
|
||||||
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" pullsDown="YES" id="31">
|
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" inset="2" pullsDown="YES" id="31">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="menu" size="11"/>
|
<font key="font" metaFont="menu" size="11"/>
|
||||||
<menu key="menu" id="32">
|
<menu key="menu" id="32">
|
||||||
@@ -49,31 +50,25 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="height" constant="20" id="oAx-ac-cJp"/>
|
|
||||||
</constraints>
|
|
||||||
<accessibility description="Add metadata item"/>
|
<accessibility description="Add metadata item"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="addTag:" target="-2" id="37"/>
|
<action selector="addTag:" target="-2" id="37"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="53">
|
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="53">
|
||||||
<rect key="frame" x="45" y="7" width="24" height="22"/>
|
<rect key="frame" x="49" y="9" width="36" height="27"/>
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSRemoveTemplate" imagePosition="only" alignment="center" controlSize="small" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" constant="24" id="0TW-Pw-B6h"/>
|
|
||||||
</constraints>
|
|
||||||
<accessibility description="Remove selected item"/>
|
<accessibility description="Remove selected item"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="removeTag:" target="-2" id="55"/>
|
<action selector="removeTag:" target="-2" id="55"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="179">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="179">
|
||||||
<rect key="frame" x="77" y="7" width="33" height="22"/>
|
<rect key="frame" x="87" y="12" width="45" height="22"/>
|
||||||
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" pullsDown="YES" selectedItem="184" id="180">
|
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" pullsDown="YES" selectedItem="184" id="180">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="menu" size="11"/>
|
<font key="font" metaFont="menu" size="11"/>
|
||||||
<menu key="menu" id="181">
|
<menu key="menu" id="181">
|
||||||
@@ -84,19 +79,16 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" constant="33" id="ZIk-ID-MnW"/>
|
|
||||||
</constraints>
|
|
||||||
<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="40" width="737" height="90"/>
|
||||||
<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="88"/>
|
||||||
<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="88"/>
|
||||||
<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"/>
|
||||||
@@ -307,56 +299,46 @@
|
|||||||
</scrollView>
|
</scrollView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstItem="179" firstAttribute="height" secondItem="30" secondAttribute="height" id="2Hj-9j-VM5"/>
|
<constraint firstItem="53" firstAttribute="top" secondItem="179" secondAttribute="top" id="67S-NK-9fD"/>
|
||||||
<constraint firstItem="30" firstAttribute="bottom" secondItem="53" secondAttribute="bottom" id="EnX-PG-7Ac"/>
|
<constraint firstItem="30" firstAttribute="top" secondItem="53" secondAttribute="top" id="BKG-GH-axI"/>
|
||||||
<constraint firstItem="179" firstAttribute="height" secondItem="53" secondAttribute="height" id="HWR-pd-5Nn"/>
|
<constraint firstAttribute="bottom" secondItem="30" secondAttribute="bottom" constant="16" id="IRj-LS-ekM"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="30" secondAttribute="bottom" constant="8" id="IRj-LS-ekM"/>
|
<constraint firstItem="179" firstAttribute="leading" secondItem="53" secondAttribute="trailing" constant="12" id="KUd-5V-MXX"/>
|
||||||
<constraint firstItem="179" firstAttribute="leading" secondItem="53" secondAttribute="trailing" constant="8" symbolic="YES" id="KUd-5V-MXX"/>
|
|
||||||
<constraint firstItem="30" firstAttribute="leading" secondItem="r4i-wT-qDC" secondAttribute="leading" id="LNH-mJ-f9f"/>
|
<constraint firstItem="30" firstAttribute="leading" secondItem="r4i-wT-qDC" secondAttribute="leading" id="LNH-mJ-f9f"/>
|
||||||
<constraint firstItem="r4i-wT-qDC" firstAttribute="leading" secondItem="12" secondAttribute="leading" constant="17" id="PV0-Uz-uaD"/>
|
<constraint firstItem="r4i-wT-qDC" firstAttribute="leading" secondItem="12" secondAttribute="leading" constant="17" id="PV0-Uz-uaD"/>
|
||||||
<constraint firstItem="30" firstAttribute="baseline" secondItem="179" secondAttribute="baseline" id="TK8-QK-mzF"/>
|
|
||||||
<constraint firstItem="30" firstAttribute="top" secondItem="r4i-wT-qDC" secondAttribute="bottom" constant="8" id="TYO-yE-jpg"/>
|
<constraint firstItem="30" firstAttribute="top" secondItem="r4i-wT-qDC" secondAttribute="bottom" constant="8" id="TYO-yE-jpg"/>
|
||||||
<constraint firstItem="30" firstAttribute="top" secondItem="53" secondAttribute="top" id="Up9-Gf-EM1"/>
|
|
||||||
<constraint firstItem="r4i-wT-qDC" firstAttribute="top" secondItem="12" secondAttribute="top" constant="6" id="a4X-aI-Ggo"/>
|
<constraint firstItem="r4i-wT-qDC" firstAttribute="top" secondItem="12" secondAttribute="top" constant="6" id="a4X-aI-Ggo"/>
|
||||||
<constraint firstItem="53" firstAttribute="leading" secondItem="30" secondAttribute="trailing" constant="-1" id="c3d-V8-Rid"/>
|
<constraint firstItem="53" firstAttribute="leading" secondItem="30" secondAttribute="trailing" constant="2" id="c3d-V8-Rid"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="r4i-wT-qDC" secondAttribute="trailing" constant="17" id="mlL-15-A41"/>
|
<constraint firstAttribute="trailing" secondItem="r4i-wT-qDC" secondAttribute="trailing" constant="17" id="mlL-15-A41"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
</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="153"/>
|
||||||
<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">
|
||||||
<rect key="frame" x="17" y="7" width="25" height="22"/>
|
<rect key="frame" x="11" y="9" width="36" height="27"/>
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="224">
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSAddTemplate" imagePosition="only" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="224">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" constant="25" id="PQ5-Tu-VFK"/>
|
|
||||||
<constraint firstAttribute="height" constant="20" id="nbn-sF-RRs"/>
|
|
||||||
</constraints>
|
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="selectArtwork:" target="-2" id="232"/>
|
<action selector="selectArtwork:" target="-2" id="232"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="226">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="226">
|
||||||
<rect key="frame" x="41" y="7" width="25" height="22"/>
|
<rect key="frame" x="36" y="9" width="36" height="27"/>
|
||||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="227">
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSRemoveTemplate" imagePosition="only" alignment="center" controlSize="small" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="227">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" constant="25" id="FBv-tK-Tdv"/>
|
|
||||||
</constraints>
|
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="removeArtwork:" target="-2" id="231"/>
|
<action selector="removeArtwork:" target="-2" id="231"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="235">
|
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="235">
|
||||||
<rect key="frame" x="635" y="9" width="119" height="20"/>
|
<rect key="frame" x="635" y="15" width="119" height="20"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" constant="115" id="mBx-7u-wTU"/>
|
<constraint firstAttribute="width" constant="115" id="mBx-7u-wTU"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
@@ -366,13 +348,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="40" width="737" height="107"/>
|
||||||
<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="105"/>
|
||||||
<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="105"/>
|
||||||
<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,23 +373,22 @@
|
|||||||
<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="88"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="trailing" secondItem="235" secondAttribute="trailing" constant="19" id="0hC-mb-MlL"/>
|
<constraint firstAttribute="trailing" secondItem="235" secondAttribute="trailing" constant="19" id="0hC-mb-MlL"/>
|
||||||
<constraint firstItem="226" firstAttribute="centerY" secondItem="223" secondAttribute="centerY" id="5a5-e8-dAP"/>
|
<constraint firstAttribute="bottom" secondItem="223" secondAttribute="bottom" constant="16" id="BgF-RQ-nc8"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="223" secondAttribute="bottom" constant="8" id="BgF-RQ-nc8"/>
|
|
||||||
<constraint firstItem="226" firstAttribute="centerY" secondItem="235" secondAttribute="centerY" constant="0.5" id="IHP-mq-pja"/>
|
<constraint firstItem="226" firstAttribute="centerY" secondItem="235" secondAttribute="centerY" constant="0.5" id="IHP-mq-pja"/>
|
||||||
<constraint firstItem="WUe-C3-hRA" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="17" id="Lvi-Ls-dwm"/>
|
<constraint firstItem="WUe-C3-hRA" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="17" id="Lvi-Ls-dwm"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="WUe-C3-hRA" secondAttribute="trailing" constant="17" id="Wbo-yN-xLN"/>
|
<constraint firstAttribute="trailing" secondItem="WUe-C3-hRA" secondAttribute="trailing" constant="17" id="Wbo-yN-xLN"/>
|
||||||
<constraint firstItem="226" firstAttribute="height" secondItem="223" secondAttribute="height" id="bRk-bc-DiM"/>
|
|
||||||
<constraint firstItem="WUe-C3-hRA" firstAttribute="top" secondItem="16" secondAttribute="top" constant="6" id="fGU-nu-khr"/>
|
<constraint firstItem="WUe-C3-hRA" firstAttribute="top" secondItem="16" secondAttribute="top" constant="6" id="fGU-nu-khr"/>
|
||||||
<constraint firstItem="223" firstAttribute="top" secondItem="WUe-C3-hRA" secondAttribute="bottom" constant="8" symbolic="YES" id="juc-Kd-k1q"/>
|
<constraint firstItem="223" firstAttribute="top" secondItem="WUe-C3-hRA" secondAttribute="bottom" constant="8" symbolic="YES" id="juc-Kd-k1q"/>
|
||||||
<constraint firstItem="226" firstAttribute="leading" secondItem="223" secondAttribute="trailing" constant="-1" id="mSU-ml-jzw"/>
|
<constraint firstItem="226" firstAttribute="leading" secondItem="223" secondAttribute="trailing" constant="1" id="mSU-ml-jzw"/>
|
||||||
<constraint firstItem="223" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="17" id="yTy-Iz-roe"/>
|
<constraint firstItem="223" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="17" id="yTy-Iz-roe"/>
|
||||||
|
<constraint firstItem="223" firstAttribute="firstBaseline" secondItem="226" secondAttribute="firstBaseline" id="zB3-nk-dWH"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
</tabViewItem>
|
</tabViewItem>
|
||||||
@@ -420,7 +401,7 @@
|
|||||||
<constraint firstItem="10" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="-4" id="W2u-1d-KH8"/>
|
<constraint firstItem="10" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="-4" id="W2u-1d-KH8"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="10" secondAttribute="bottom" constant="-2" id="gd6-eJ-5fo"/>
|
<constraint firstAttribute="bottom" secondItem="10" secondAttribute="bottom" constant="-2" id="gd6-eJ-5fo"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<point key="canvasLocation" x="34.5" y="-7"/>
|
<point key="canvasLocation" x="247.5" y="-20"/>
|
||||||
</customView>
|
</customView>
|
||||||
<userDefaultsController representsSharedInstance="YES" id="z7a-RX-pNz"/>
|
<userDefaultsController representsSharedInstance="YES" id="z7a-RX-pNz"/>
|
||||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" visibleAtLaunch="NO" animationBehavior="default" id="ZRj-hi-qeJ" userLabel="Preset Save">
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" visibleAtLaunch="NO" animationBehavior="default" id="ZRj-hi-qeJ" userLabel="Preset Save">
|
||||||
|
|||||||
@@ -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="13528" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13528"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<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,10 +20,9 @@
|
|||||||
<subviews>
|
<subviews>
|
||||||
<tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="5">
|
<tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="5">
|
||||||
<rect key="frame" x="-11" y="-12" width="502" height="279"/>
|
<rect key="frame" x="-11" y="-12" width="502" height="279"/>
|
||||||
<tabViewItems/>
|
|
||||||
</tabView>
|
</tabView>
|
||||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hdQ-nD-A4N">
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hdQ-nD-A4N">
|
||||||
<rect key="frame" x="179" y="128" width="122" height="17"/>
|
<rect key="frame" x="179" y="128" width="123" height="16"/>
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="%lu tracks selected" id="Mo5-ii-LsO">
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="%lu tracks selected" id="Mo5-ii-LsO">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -39,6 +38,7 @@
|
|||||||
<constraint firstAttribute="bottom" secondItem="5" secondAttribute="bottom" constant="-2" id="mBt-hk-Csd"/>
|
<constraint firstAttribute="bottom" secondItem="5" secondAttribute="bottom" constant="-2" id="mBt-hk-Csd"/>
|
||||||
<constraint firstItem="5" firstAttribute="top" secondItem="1" secondAttribute="top" constant="8" id="x6g-Yu-20J"/>
|
<constraint firstItem="5" firstAttribute="top" secondItem="1" secondAttribute="top" constant="8" id="x6g-Yu-20J"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
<point key="canvasLocation" x="244" y="6"/>
|
||||||
</customView>
|
</customView>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
@@ -1,9 +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="17132" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<development version="11000" identifier="xcode"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17132"/>
|
|
||||||
<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>
|
||||||
@@ -33,10 +32,10 @@
|
|||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<view translatesAutoresizingMaskIntoConstraints="NO" id="Hv4-PS-bN1">
|
<view translatesAutoresizingMaskIntoConstraints="NO" id="Hv4-PS-bN1">
|
||||||
<rect key="frame" x="39" y="21" width="405" height="184"/>
|
<rect key="frame" x="39" y="25" width="405" height="177"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" verticalCompressionResistancePriority="1000" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="AN1-Gb-9rU">
|
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" verticalCompressionResistancePriority="1000" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="AN1-Gb-9rU">
|
||||||
<rect key="frame" x="48" y="152" width="91" height="14"/>
|
<rect key="frame" x="48" y="145" width="91" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Volume:" id="Z5x-Oq-P8Z">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Volume:" id="Z5x-Oq-P8Z">
|
||||||
<font key="font" metaFont="controlContent" size="11"/>
|
<font key="font" metaFont="controlContent" size="11"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -44,7 +43,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="MVR-Tx-Jpc">
|
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="MVR-Tx-Jpc">
|
||||||
<rect key="frame" x="139" y="149" width="222" height="20"/>
|
<rect key="frame" x="143" y="142" width="214" height="20"/>
|
||||||
<sliderCell key="cell" controlSize="small" state="on" alignment="left" maxValue="200" doubleValue="100" tickMarkPosition="below" numberOfTickMarks="1" sliderType="linear" id="Yee-GR-ylI">
|
<sliderCell key="cell" controlSize="small" state="on" alignment="left" maxValue="200" doubleValue="100" tickMarkPosition="below" numberOfTickMarks="1" sliderType="linear" id="Yee-GR-ylI">
|
||||||
<font key="font" metaFont="controlContent" size="11"/>
|
<font key="font" metaFont="controlContent" size="11"/>
|
||||||
</sliderCell>
|
</sliderCell>
|
||||||
@@ -54,7 +53,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</slider>
|
</slider>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="oJQ-vl-QbS">
|
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="oJQ-vl-QbS">
|
||||||
<rect key="frame" x="48" y="103" width="91" height="14"/>
|
<rect key="frame" x="48" y="99" width="91" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Alternate Group:" id="CTV-P7-IaD">
|
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Alternate Group:" id="CTV-P7-IaD">
|
||||||
<font key="font" metaFont="controlContent" size="11"/>
|
<font key="font" metaFont="controlContent" size="11"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -65,7 +64,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="AHt-fF-cmH">
|
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="AHt-fF-cmH">
|
||||||
<rect key="frame" x="48" y="78" width="91" height="14"/>
|
<rect key="frame" x="48" y="76" width="91" height="14"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Fallback:" id="8KY-0L-cm1">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Fallback:" id="8KY-0L-cm1">
|
||||||
<font key="font" metaFont="controlContent" size="11"/>
|
<font key="font" metaFont="controlContent" size="11"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -73,10 +72,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hO4-U9-j72">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hO4-U9-j72">
|
||||||
<rect key="frame" x="142" y="100" width="87" height="22"/>
|
<rect key="frame" x="141" y="94" width="89" height="22"/>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" constant="81" id="deO-aT-0vb"/>
|
|
||||||
</constraints>
|
|
||||||
<popUpButtonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="QBa-Jt-TO2" id="jSp-EO-3Gh">
|
<popUpButtonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="QBa-Jt-TO2" id="jSp-EO-3Gh">
|
||||||
<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"/>
|
||||||
@@ -92,16 +88,16 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" constant="81" id="deO-aT-0vb"/>
|
||||||
|
</constraints>
|
||||||
<connections>
|
<connections>
|
||||||
<accessibilityConnection property="title" destination="oJQ-vl-QbS" id="Cbl-Aq-ObF"/>
|
<accessibilityConnection property="title" destination="oJQ-vl-QbS" id="Cbl-Aq-ObF"/>
|
||||||
<action selector="setTrackAlternateGroup:" target="-2" id="Xpd-ML-0hX"/>
|
<action selector="setTrackAlternateGroup:" target="-2" id="Xpd-ML-0hX"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="kyn-qq-nF7">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="kyn-qq-nF7">
|
||||||
<rect key="frame" x="142" y="75" width="216" height="22"/>
|
<rect key="frame" x="141" y="71" width="218" height="22"/>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" constant="210" id="VlQ-qX-xoP"/>
|
|
||||||
</constraints>
|
|
||||||
<popUpButtonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="Qdb-gu-B3h" id="NRh-66-Ilv">
|
<popUpButtonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="Qdb-gu-B3h" id="NRh-66-Ilv">
|
||||||
<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"/>
|
||||||
@@ -111,6 +107,9 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" constant="210" id="VlQ-qX-xoP"/>
|
||||||
|
</constraints>
|
||||||
<connections>
|
<connections>
|
||||||
<accessibilityConnection property="title" destination="AHt-fF-cmH" id="xln-Xh-ghS"/>
|
<accessibilityConnection property="title" destination="AHt-fF-cmH" id="xln-Xh-ghS"/>
|
||||||
<action selector="setTrackFallback:" target="-2" id="dW2-e8-n1H"/>
|
<action selector="setTrackFallback:" target="-2" id="dW2-e8-n1H"/>
|
||||||
@@ -125,10 +124,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="6Kd-IU-I5v">
|
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="6Kd-IU-I5v">
|
||||||
<rect key="frame" x="142" y="51" width="216" height="22"/>
|
<rect key="frame" x="141" y="49" width="218" height="22"/>
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" constant="210" id="p8q-de-wud"/>
|
|
||||||
</constraints>
|
|
||||||
<popUpButtonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="Zgh-b7-8aY" id="vO8-pC-sox">
|
<popUpButtonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="Zgh-b7-8aY" id="vO8-pC-sox">
|
||||||
<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"/>
|
||||||
@@ -138,13 +134,16 @@
|
|||||||
</items>
|
</items>
|
||||||
</menu>
|
</menu>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" constant="210" id="p8q-de-wud"/>
|
||||||
|
</constraints>
|
||||||
<connections>
|
<connections>
|
||||||
<accessibilityConnection property="title" destination="Wwd-LM-Zu2" id="c2I-EU-yGn"/>
|
<accessibilityConnection property="title" destination="Wwd-LM-Zu2" id="c2I-EU-yGn"/>
|
||||||
<action selector="setTrackFollows:" target="-2" id="aKE-dj-ggZ"/>
|
<action selector="setTrackFollows:" target="-2" id="aKE-dj-ggZ"/>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="IeL-sA-ryZ">
|
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="IeL-sA-ryZ">
|
||||||
<rect key="frame" x="327" y="138" width="30" height="11"/>
|
<rect key="frame" x="327" y="131" width="30" height="11"/>
|
||||||
<textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="+6 db" id="5ZH-ms-h3O">
|
<textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="+6 db" id="5ZH-ms-h3O">
|
||||||
<font key="font" metaFont="miniSystem"/>
|
<font key="font" metaFont="miniSystem"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -152,7 +151,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="nJx-6Z-zO1">
|
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="nJx-6Z-zO1">
|
||||||
<rect key="frame" x="233" y="138" width="33" height="11"/>
|
<rect key="frame" x="233" y="131" width="33" height="11"/>
|
||||||
<textFieldCell key="cell" controlSize="mini" sendsActionOnEndEditing="YES" title="+ 0 db" id="5af-rM-3Vd">
|
<textFieldCell key="cell" controlSize="mini" sendsActionOnEndEditing="YES" title="+ 0 db" id="5af-rM-3Vd">
|
||||||
<font key="font" metaFont="miniSystem"/>
|
<font key="font" metaFont="miniSystem"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -160,7 +159,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="k0u-bj-qan">
|
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="k0u-bj-qan">
|
||||||
<rect key="frame" x="143" y="138" width="33" height="11"/>
|
<rect key="frame" x="143" y="131" width="33" height="11"/>
|
||||||
<textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="-∞ db" id="dCR-ej-bsH">
|
<textFieldCell key="cell" controlSize="mini" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="-∞ db" id="dCR-ej-bsH">
|
||||||
<font key="font" metaFont="miniSystem"/>
|
<font key="font" metaFont="miniSystem"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
|||||||
@@ -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="24127" 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="24127"/>
|
||||||
<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>
|
||||||
@@ -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"/>
|
||||||
@@ -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"/>
|
||||||
@@ -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,6 +469,9 @@
|
|||||||
</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"/>
|
||||||
|
|||||||
@@ -8,16 +8,21 @@
|
|||||||
import Cocoa
|
import Cocoa
|
||||||
import MP42Foundation
|
import MP42Foundation
|
||||||
|
|
||||||
final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTableViewDelegate {
|
final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTableViewDelegate, ExpandedTableViewDelegate {
|
||||||
|
|
||||||
var track: MP42ChapterTrack {
|
var track: MP42ChapterTrack {
|
||||||
didSet {
|
didSet {
|
||||||
|
let indexes = tableView.selectedRowIndexes
|
||||||
tableView.reloadData()
|
tableView.reloadData()
|
||||||
|
if let last = indexes.last, last < track.chapters.count {
|
||||||
|
tableView.selectRowIndexes(indexes, byExtendingSelection: false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBOutlet var tableView: ExpandedTableView!
|
@IBOutlet var tableView: ExpandedTableView!
|
||||||
@IBOutlet var removeChapter: NSButton!
|
@IBOutlet var removeChapter: NSButton!
|
||||||
|
@IBOutlet var actions: NSPopUpButton!
|
||||||
|
|
||||||
override var nibName: NSNib.Name? {
|
override var nibName: NSNib.Name? {
|
||||||
return "ChapterView"
|
return "ChapterView"
|
||||||
@@ -36,6 +41,10 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
|
|||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
tableView.defaultEditingColumn = 1
|
tableView.defaultEditingColumn = 1
|
||||||
tableView.doubleAction = #selector(doubleClickAction(_:))
|
tableView.doubleAction = #selector(doubleClickAction(_:))
|
||||||
|
|
||||||
|
if #available(macOS 26, *) {
|
||||||
|
actions.menu?.items.first?.image = NSImage.init(systemSymbolName: "ellipsis", accessibilityDescription: nil)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Table View
|
// MARK: Table View
|
||||||
@@ -67,7 +76,11 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
|
|||||||
}
|
}
|
||||||
|
|
||||||
func tableViewSelectionDidChange(_ notification: Notification) {
|
func tableViewSelectionDidChange(_ notification: Notification) {
|
||||||
removeChapter.isEnabled = tableView.selectedRow != -1 ? true : false
|
removeChapter.isEnabled = tableView.selectedRow != -1 && isReadOnly == false
|
||||||
|
}
|
||||||
|
|
||||||
|
func tableView(_ tableView: NSTableView, shouldEdit tableColumn: NSTableColumn?, row: Int) -> Bool {
|
||||||
|
return isReadOnly == false
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func setChapterTitle(_ sender: NSTextField) {
|
@IBAction func setChapterTitle(_ sender: NSTextField) {
|
||||||
@@ -77,7 +90,6 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
|
|||||||
track.setTitle(sender.stringValue, forChapter: chapter)
|
track.setTitle(sender.stringValue, forChapter: chapter)
|
||||||
|
|
||||||
tableView.reloadData(forRowIndexes: IndexSet(integer: row), columnIndexes: IndexSet(integer: 1))
|
tableView.reloadData(forRowIndexes: IndexSet(integer: row), columnIndexes: IndexSet(integer: 1))
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,40 +101,52 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
|
|||||||
track.setTimestamp(timestamp, forChapter: chapter)
|
track.setTimestamp(timestamp, forChapter: chapter)
|
||||||
|
|
||||||
tableView.reloadData()
|
tableView.reloadData()
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func doubleClickAction(_ sender: NSTableView) {
|
@IBAction func doubleClickAction(_ sender: NSTableView) {
|
||||||
|
guard isReadOnly == false else { return }
|
||||||
if sender.clickedRow > -1 && sender.clickedColumn > -1 {
|
if sender.clickedRow > -1 && sender.clickedColumn > -1 {
|
||||||
sender.editColumn(sender.clickedColumn, row: sender.clickedRow, with: nil, select: true)
|
sender.editColumn(sender.clickedColumn, row: sender.clickedRow, with: nil, select: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func deleteSelection(in tableview: NSTableView) {
|
||||||
|
guard isReadOnly == false else { return }
|
||||||
|
let indexes = tableView.selectedRowIndexes
|
||||||
|
if indexes.isEmpty == false {
|
||||||
|
track.removeChapters(at: indexes)
|
||||||
|
tableView.removeRows(at: indexes, withAnimation: NSTableView.AnimationOptions.slideUp)
|
||||||
|
if let index = indexes.first, index < track.chapters.count {
|
||||||
|
tableView.selectRowIndexes(IndexSet(integer: index), byExtendingSelection: false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: Actions
|
// MARK: Actions
|
||||||
|
|
||||||
private func updateChangeCount() {
|
|
||||||
view.window?.windowController?.document?.updateChangeCount(NSDocument.ChangeType.changeDone)
|
|
||||||
}
|
|
||||||
|
|
||||||
@IBAction func removeChapter(_ sender: Any) {
|
@IBAction func removeChapter(_ sender: Any) {
|
||||||
let currentIndex = tableView.selectedRow
|
deleteSelection(in: tableView)
|
||||||
if currentIndex < track.chapterCount() {
|
|
||||||
track.removeChapter(at: UInt(currentIndex))
|
|
||||||
|
|
||||||
let indexes = IndexSet(integer: currentIndex)
|
|
||||||
tableView.removeRows(at: indexes, withAnimation: NSTableView.AnimationOptions.slideUp)
|
|
||||||
tableView.selectRowIndexes(indexes, byExtendingSelection: false)
|
|
||||||
|
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Selects and scrolls to a row (used after the window controller appends
|
||||||
|
// a chapter from the Actions menu, when the tab may not have shown this
|
||||||
|
// track's table yet).
|
||||||
|
func selectChapter(at index: Int) {
|
||||||
|
guard isViewLoaded, index >= 0, index < track.chapters.count else { return }
|
||||||
|
tableView.reloadData()
|
||||||
|
tableView.scrollRowToVisible(index)
|
||||||
|
let indexSet = IndexSet(integer: index)
|
||||||
|
tableView.selectRowIndexes(indexSet, byExtendingSelection: false)
|
||||||
|
view.window?.makeFirstResponder(tableView)
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func addChapter(_ sender: Any) {
|
@IBAction func addChapter(_ sender: Any) {
|
||||||
track.addChapter("Chapter", duration: 0)
|
let index = track.addChapter("Chapter", timestamp: 0)
|
||||||
|
let indexSet = IndexSet(integer: Int(index))
|
||||||
tableView.reloadData()
|
tableView.insertRows(at: indexSet, withAnimation: .slideDown)
|
||||||
updateChangeCount()
|
tableView.selectRowIndexes(indexSet, byExtendingSelection: false)
|
||||||
|
view.window?.makeFirstResponder(tableView)
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func renameChapters(_ sender: Any) {
|
@IBAction func renameChapters(_ sender: Any) {
|
||||||
@@ -131,7 +155,6 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
|
|||||||
track.setTitle(title, forChapter: chapter)
|
track.setTitle(title, forChapter: chapter)
|
||||||
}
|
}
|
||||||
tableView.reloadData()
|
tableView.reloadData()
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -101,6 +101,15 @@ final class MediaTagsController: NSViewController, NSTableViewDataSource, NSTabl
|
|||||||
}
|
}
|
||||||
private var tags: [MediaTag]
|
private var tags: [MediaTag]
|
||||||
|
|
||||||
|
/// Propagated from the hosting PropertyView (Matroska tags-only mode).
|
||||||
|
var isReadOnly = false {
|
||||||
|
didSet {
|
||||||
|
if isViewLoaded, isReadOnly != oldValue {
|
||||||
|
tableView.reloadData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override var nibName: NSNib.Name? {
|
override var nibName: NSNib.Name? {
|
||||||
return "MediaTagsController"
|
return "MediaTagsController"
|
||||||
}
|
}
|
||||||
@@ -162,6 +171,7 @@ final class MediaTagsController: NSViewController, NSTableViewDataSource, NSTabl
|
|||||||
func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {
|
func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {
|
||||||
let view = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: "SBCheckBoxTableCellView"), owner: self) as? CheckBoxTableCellView
|
let view = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: "SBCheckBoxTableCellView"), owner: self) as? CheckBoxTableCellView
|
||||||
view?.representedTag = tags[row]
|
view?.representedTag = tags[row]
|
||||||
|
view?.checkBox.isEnabled = !isReadOnly
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -176,7 +186,5 @@ final class MediaTagsController: NSViewController, NSTableViewDataSource, NSTabl
|
|||||||
private func updateTrack() {
|
private func updateTrack() {
|
||||||
let updatedTags = tags.filter { $0.state }.map { $0.value }
|
let updatedTags = tags.filter { $0.state }.map { $0.value }
|
||||||
track.mediaCharacteristicTags = Set(updatedTags)
|
track.mediaCharacteristicTags = Set(updatedTags)
|
||||||
|
|
||||||
view.window?.windowController?.document?.updateChangeCount(.changeDone)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
import Quartz
|
import UniformTypeIdentifiers
|
||||||
import MP42Foundation
|
import MP42Foundation
|
||||||
|
|
||||||
extension NSPasteboard.PasteboardType {
|
extension NSPasteboard.PasteboardType {
|
||||||
@@ -18,7 +18,13 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
|
|
||||||
var metadata: MP42Metadata {
|
var metadata: MP42Metadata {
|
||||||
didSet {
|
didSet {
|
||||||
|
let metadataIndexes = self.metadataTableView.selectedRowIndexes
|
||||||
|
// let artworkIndexes = self.artworksView.selectionIndexPaths;
|
||||||
reloadData()
|
reloadData()
|
||||||
|
if let last = metadataIndexes.last, last < tags.count {
|
||||||
|
self.metadataTableView.selectRowIndexes(metadataIndexes, byExtendingSelection: false)
|
||||||
|
}
|
||||||
|
// self.artworksView.selectItems(at: artworkIndexes, scrollPosition: .top)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,6 +68,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? {
|
||||||
@@ -115,8 +122,19 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The document may already be known to be Matroska (the flag is set
|
||||||
|
// after this view loads in DocumentWindowController, but subclasses
|
||||||
|
// of the preset editor never set it — the viewDidLoad pass keeps
|
||||||
|
// this view correct either way).
|
||||||
|
updateMatroskaFieldHints()
|
||||||
|
|
||||||
|
if #available(macOS 26, *) {
|
||||||
|
setsPopUp.menu?.items.first?.image = NSImage.init(systemSymbolName: "ellipsis", accessibilityDescription: nil)
|
||||||
|
}
|
||||||
|
|
||||||
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,13 +152,76 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
reloadData()
|
reloadData()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func viewWillAppear() {
|
||||||
|
let zoomValue = zoomLevel
|
||||||
|
setZoomValue(zoomValue)
|
||||||
|
zoomSlider.floatValue = zoomValue
|
||||||
|
}
|
||||||
|
|
||||||
private func reloadData() {
|
private func reloadData() {
|
||||||
rowHeights.removeAll(keepingCapacity: true)
|
rowHeights.removeAll(keepingCapacity: true)
|
||||||
updateMetadataArray()
|
updateMetadataArray()
|
||||||
metadataTableView.reloadData()
|
metadataTableView.reloadData()
|
||||||
updateArtworksArray()
|
updateArtworksArray()
|
||||||
artworksView.reloadData()
|
artworksView.reloadData()
|
||||||
view.undoManager?.removeAllActions(withTarget: self)
|
updateUI()
|
||||||
|
}
|
||||||
|
|
||||||
|
private func updateUI() {
|
||||||
|
removeTagButton.isEnabled = self.metadataTableView.selectedRow != -1
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: Matroska field hints
|
||||||
|
|
||||||
|
/// Fonts used to flag metadata fields that `MP42MkvTagWriter` cannot save
|
||||||
|
/// (MP4-only keys). They stay selectable on purpose: an MKV document can
|
||||||
|
/// still be converted to MP4 via the queue, where these values do apply.
|
||||||
|
private static let italicMenuFont: NSFont = {
|
||||||
|
return NSFontManager.shared.convert(NSFont.menuFont(ofSize: 0), toHaveTrait: .italicFontMask)
|
||||||
|
}()
|
||||||
|
|
||||||
|
private func isPersistedInMatroska(identifier: String) -> Bool {
|
||||||
|
return MP42MkvMetadataKeyIsPersisted(identifier)
|
||||||
|
}
|
||||||
|
|
||||||
|
override func updateMatroskaFieldHints() {
|
||||||
|
guard isViewLoaded else { return }
|
||||||
|
|
||||||
|
if let menu = tagsPopUp.menu {
|
||||||
|
let identifiers = MP42Metadata.writableMetadata
|
||||||
|
for item in menu.items where item.isHidden == false && item.tag >= 0 && item.tag < identifiers.count {
|
||||||
|
if isMatroskaDocument && !isPersistedInMatroska(identifier: identifiers[item.tag]) {
|
||||||
|
item.attributedTitle = NSAttributedString(string: item.title, attributes: [
|
||||||
|
.font: MovieViewController.italicMenuFont,
|
||||||
|
.foregroundColor: NSColor.secondaryLabelColor,
|
||||||
|
])
|
||||||
|
item.toolTip = NSLocalizedString("This field cannot be saved to a Matroska file.",
|
||||||
|
comment: "Metadata tag menu hint for MP4-only fields")
|
||||||
|
// Italics/color are invisible to assistive tech; carry the
|
||||||
|
// hint in the accessibility label too.
|
||||||
|
item.setAccessibilityLabel(item.title + ", " + NSLocalizedString("cannot be saved to a Matroska file",
|
||||||
|
comment: "Metadata tag menu hint for MP4-only fields"))
|
||||||
|
} else {
|
||||||
|
// Empty attributed title: AppKit falls back to `title`.
|
||||||
|
item.attributedTitle = NSAttributedString(string: "")
|
||||||
|
item.toolTip = nil
|
||||||
|
item.setAccessibilityLabel(nil)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Track # and TV Episode # share the single PART_NUMBER tag on
|
||||||
|
// Matroska files (see syncMatroskaEpisodeFields) — say so.
|
||||||
|
if isMatroskaDocument {
|
||||||
|
for key in [MP42MetadataKeyTrackNumber, MP42MetadataKeyTVEpisodeNumber] {
|
||||||
|
// items are addressed by tag, not position: the pulls-down
|
||||||
|
// title item occupies position 0
|
||||||
|
if let index = identifiers.firstIndex(of: key),
|
||||||
|
let item = menu.items.first(where: { $0.isHidden == false && $0.tag == index }) {
|
||||||
|
item.toolTip = NSLocalizedString("In Matroska files these two fields share one tag: editing either updates both.",
|
||||||
|
comment: "Metadata tag menu note for Track #/TV Episode #")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Metadata
|
// MARK: Metadata
|
||||||
@@ -168,17 +249,6 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
metadata.addItem(item)
|
metadata.addItem(item)
|
||||||
rowHeights[item.identifier] = nil
|
rowHeights[item.identifier] = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if let undo = view.undoManager {
|
|
||||||
undo.registerUndo(withTarget: self) { (target) in
|
|
||||||
target.remove(metadataItems: items)
|
|
||||||
}
|
|
||||||
|
|
||||||
if undo.isUndoing == false {
|
|
||||||
undo.setActionName(NSLocalizedString("Insert", comment: "Undo tag insert."))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
updateMetadataArray()
|
updateMetadataArray()
|
||||||
metadataTableView.reloadData()
|
metadataTableView.reloadData()
|
||||||
}
|
}
|
||||||
@@ -187,38 +257,19 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
for item in items {
|
for item in items {
|
||||||
metadata.removeItem(item)
|
metadata.removeItem(item)
|
||||||
}
|
}
|
||||||
|
|
||||||
if let undo = view.undoManager {
|
|
||||||
undo.registerUndo(withTarget: self) { (target) in
|
|
||||||
target.add(metadataItems: items)
|
|
||||||
}
|
|
||||||
|
|
||||||
if undo.isUndoing == false {
|
|
||||||
undo.setActionName(NSLocalizedString("Delete", comment: "Undo tag delete."))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
updateMetadataArray()
|
updateMetadataArray()
|
||||||
|
let index = metadataTableView.selectedRowIndexes.first ?? 0
|
||||||
metadataTableView.reloadData()
|
metadataTableView.reloadData()
|
||||||
|
if index < tags.count {
|
||||||
|
metadataTableView.selectRowIndexes(IndexSet(integer: index), byExtendingSelection: false)
|
||||||
|
}
|
||||||
|
updateUI()
|
||||||
}
|
}
|
||||||
|
|
||||||
private func replace(metadataItem item: MP42MetadataItem, withItem newItem: MP42MetadataItem) {
|
private func replace(metadataItem item: MP42MetadataItem, withItem newItem: MP42MetadataItem) {
|
||||||
metadata.removeItem(item)
|
metadata.removeItem(item)
|
||||||
metadata.addItem(newItem)
|
metadata.addItem(newItem)
|
||||||
|
|
||||||
if let undo = view.undoManager {
|
|
||||||
undo.registerUndo(withTarget: self) { (target) in
|
|
||||||
target.replace(metadataItem: newItem, withItem: item)
|
|
||||||
}
|
|
||||||
|
|
||||||
if undo.isUndoing == false {
|
|
||||||
undo.setActionName(NSLocalizedString("Editing", comment: "Undo tag editing."))
|
|
||||||
view.window?.windowController?.document?.updateChangeCount(.changeDone)
|
|
||||||
} else {
|
|
||||||
view.window?.windowController?.document?.updateChangeCount(.changeUndone)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
updateMetadataArray()
|
updateMetadataArray()
|
||||||
|
|
||||||
NSAnimationContext.beginGrouping()
|
NSAnimationContext.beginGrouping()
|
||||||
@@ -547,6 +598,19 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
else {
|
else {
|
||||||
cell?.textField?.textColor = .disabledControlTextColor
|
cell?.textField?.textColor = .disabledControlTextColor
|
||||||
}
|
}
|
||||||
|
if let textField = cell?.textField {
|
||||||
|
// Cells are reused: strip any italic from a previous row first,
|
||||||
|
// then italicize MP4-only fields on Matroska documents.
|
||||||
|
let baseFont = NSFontManager.shared.convert(textField.font ?? NSFont.systemFont(ofSize: 0),
|
||||||
|
toNotHaveTrait: .italicFontMask)
|
||||||
|
let flagField = isMatroskaDocument && !isPersistedInMatroska(identifier: item.identifier)
|
||||||
|
textField.font = flagField ? NSFontManager.shared.convert(baseFont, toHaveTrait: .italicFontMask) : baseFont
|
||||||
|
let label = localizedMetadataKeyName(item.identifier) ?? item.identifier
|
||||||
|
textField.setAccessibilityLabel(flagField ?
|
||||||
|
label + ", " + NSLocalizedString("cannot be saved to a Matroska file",
|
||||||
|
comment: "Metadata field hint for MP4-only fields") :
|
||||||
|
nil)
|
||||||
|
}
|
||||||
return cell
|
return cell
|
||||||
|
|
||||||
} else if tableColumn?.identifier == valueColumn {
|
} else if tableColumn?.identifier == valueColumn {
|
||||||
@@ -673,6 +737,48 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
let editedItem = MP42MetadataItem(identifier: item.identifier, value: value as! NSCopying & NSObjectProtocol, dataType: type, extendedLanguageTag: item.extendedLanguageTag)
|
let editedItem = MP42MetadataItem(identifier: item.identifier, value: value as! NSCopying & NSObjectProtocol, dataType: type, extendedLanguageTag: item.extendedLanguageTag)
|
||||||
|
|
||||||
replace(metadataItem: item, withItem: editedItem)
|
replace(metadataItem: item, withItem: editedItem)
|
||||||
|
syncMatroskaEpisodeFields(from: editedItem)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Matroska stores a single movie-level `PART_NUMBER` tag, and the importer
|
||||||
|
/// fills both Track # and TV Episode # from it. On Matroska documents the
|
||||||
|
/// two rows must therefore move together: whichever one the user edits
|
||||||
|
/// updates the other, so the edit is what `MP42MkvTagWriter` regenerates
|
||||||
|
/// `PART_NUMBER` from. No-op on MP4 documents, where the two are separate
|
||||||
|
/// atoms.
|
||||||
|
private func syncMatroskaEpisodeFields(from editedItem: MP42MetadataItem) {
|
||||||
|
guard isMatroskaDocument else { return }
|
||||||
|
|
||||||
|
let numbers = (editedItem.arrayValue as? [Any])?.compactMap { ($0 as? NSNumber)?.intValue } ?? []
|
||||||
|
|
||||||
|
switch editedItem.identifier {
|
||||||
|
case MP42MetadataKeyTrackNumber:
|
||||||
|
let newIndex = numbers.first ?? 0
|
||||||
|
guard let episode = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyTVEpisodeNumber).first,
|
||||||
|
episode.numberValue?.intValue != newIndex else { return }
|
||||||
|
let replacement = MP42MetadataItem(identifier: MP42MetadataKeyTVEpisodeNumber,
|
||||||
|
value: NSNumber(value: newIndex) as NSCopying & NSObjectProtocol,
|
||||||
|
dataType: episode.dataType,
|
||||||
|
extendedLanguageTag: episode.extendedLanguageTag)
|
||||||
|
replace(metadataItem: episode, withItem: replacement)
|
||||||
|
|
||||||
|
case MP42MetadataKeyTVEpisodeNumber:
|
||||||
|
let newNumber = editedItem.numberValue?.intValue ?? 0
|
||||||
|
guard let track = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyTrackNumber).first else {
|
||||||
|
return // no Track # row: the writer falls back to TV Episode # itself
|
||||||
|
}
|
||||||
|
let parts = (track.arrayValue as? [Any])?.compactMap { ($0 as? NSNumber)?.intValue } ?? []
|
||||||
|
let total = parts.count > 1 ? parts[1] : 0
|
||||||
|
guard (parts.first ?? 0) != newNumber else { return }
|
||||||
|
let replacement = MP42MetadataItem(identifier: MP42MetadataKeyTrackNumber,
|
||||||
|
value: [NSNumber(value: newNumber), NSNumber(value: total)] as NSCopying & NSObjectProtocol,
|
||||||
|
dataType: .integerArray,
|
||||||
|
extendedLanguageTag: track.extendedLanguageTag)
|
||||||
|
replace(metadataItem: track, withItem: replacement)
|
||||||
|
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func setMetadataBoolValue(_ sender: NSButton) {
|
@IBAction func setMetadataBoolValue(_ sender: NSButton) {
|
||||||
@@ -765,7 +871,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
func paste(to tableview: NSTableView) {
|
func paste(to tableview: NSTableView) {
|
||||||
let pb = NSPasteboard.general
|
let pb = NSPasteboard.general
|
||||||
if let archivedData = pb.data(forType: .metadataDragType),
|
if let archivedData = pb.data(forType: .metadataDragType),
|
||||||
let data = try? NSKeyedUnarchiver.unarchivedObject(ofClasses: [MP42MetadataItem.classForCoder()], from: archivedData) as? [MP42MetadataItem] {
|
let data = try? NSKeyedUnarchiver.unarchivedObject(ofClasses: [NSArray.classForCoder(), MP42MetadataItem.classForCoder()], from: archivedData) as? [MP42MetadataItem] {
|
||||||
add(metadataItems: data)
|
add(metadataItems: data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -822,8 +928,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
}
|
}
|
||||||
|
|
||||||
func tableViewSelectionDidChange(_ notification: Notification) {
|
func tableViewSelectionDidChange(_ notification: Notification) {
|
||||||
let enabled = metadataTableView.selectedRow != -1 ? true : false
|
updateUI()
|
||||||
removeTagButton.isEnabled = enabled
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Artworks
|
// MARK: Artworks
|
||||||
@@ -834,34 +939,12 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
|
|
||||||
private func add(metadataArtworks items: [MP42MetadataItem]) {
|
private func add(metadataArtworks items: [MP42MetadataItem]) {
|
||||||
metadata.addItems(items)
|
metadata.addItems(items)
|
||||||
|
|
||||||
if let undo = view.undoManager {
|
|
||||||
undo.registerUndo(withTarget: self) { (target) in
|
|
||||||
target.remove(metadataArtworks: items)
|
|
||||||
}
|
|
||||||
|
|
||||||
if undo.isUndoing == false {
|
|
||||||
undo.setActionName(NSLocalizedString("Insert", comment: "Undo cover art insert."))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
updateArtworksArray()
|
updateArtworksArray()
|
||||||
artworksView.reloadData()
|
artworksView.reloadData()
|
||||||
}
|
}
|
||||||
|
|
||||||
private func remove(metadataArtworks items: [MP42MetadataItem]) {
|
private func remove(metadataArtworks items: [MP42MetadataItem]) {
|
||||||
metadata.removeItems(items)
|
metadata.removeItems(items)
|
||||||
|
|
||||||
if let undo = view.undoManager {
|
|
||||||
undo.registerUndo(withTarget: self) { (target) in
|
|
||||||
target.add(metadataArtworks: items)
|
|
||||||
}
|
|
||||||
|
|
||||||
if undo.isUndoing == false {
|
|
||||||
undo.setActionName(NSLocalizedString("Delete", comment: "Undo cover art delete"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
updateArtworksArray()
|
updateArtworksArray()
|
||||||
artworksView.reloadData()
|
artworksView.reloadData()
|
||||||
updateSelection()
|
updateSelection()
|
||||||
@@ -870,17 +953,6 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
private func replace(metadataArtworks items: [MP42MetadataItem], withItems newItems: [MP42MetadataItem]) {
|
private func replace(metadataArtworks items: [MP42MetadataItem], withItems newItems: [MP42MetadataItem]) {
|
||||||
metadata.removeItems(items)
|
metadata.removeItems(items)
|
||||||
metadata.addItems(newItems)
|
metadata.addItems(newItems)
|
||||||
|
|
||||||
if let undo = view.undoManager {
|
|
||||||
undo.registerUndo(withTarget: self) { (target) in
|
|
||||||
target.replace(metadataArtworks: newItems, withItems: items)
|
|
||||||
}
|
|
||||||
|
|
||||||
if undo.isUndoing == false {
|
|
||||||
undo.setActionName(NSLocalizedString("Move", comment: "Undo cover art delete"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
updateArtworksArray()
|
updateArtworksArray()
|
||||||
artworksView.reloadData()
|
artworksView.reloadData()
|
||||||
updateSelection()
|
updateSelection()
|
||||||
@@ -893,9 +965,18 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
private func add(artworks: [Any], toIndexPath: IndexPath) -> Bool {
|
private func add(artworks: [Any], toIndexPath: IndexPath) -> Bool {
|
||||||
let items = artworks.compactMap { (artwork: Any) -> MP42Image? in
|
let items = artworks.compactMap { (artwork: Any) -> MP42Image? in
|
||||||
if let url = artwork as? URL {
|
if let url = artwork as? URL {
|
||||||
|
var isJpeg = false
|
||||||
|
if #available(macOS 11, *) {
|
||||||
|
let value = try? url.resourceValues(forKeys: [URLResourceKey.contentTypeKey])
|
||||||
|
isJpeg = value?.contentType?.conforms(to: .jpeg) ?? false
|
||||||
|
} else {
|
||||||
let value = try? url.resourceValues(forKeys: [URLResourceKey.typeIdentifierKey])
|
let value = try? url.resourceValues(forKeys: [URLResourceKey.typeIdentifierKey])
|
||||||
|
if let type = value?.typeIdentifier, UTTypeConformsTo(type as CFString, "public.jpeg" as CFString) {
|
||||||
|
isJpeg = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if let type = value?.typeIdentifier, UTTypeConformsTo(type as CFString, "public.jpeg" as CFString), let data = try? Data(contentsOf: url) {
|
if isJpeg, let data = try? Data(contentsOf: url) {
|
||||||
return MP42Image(data: data, type: MP42_ART_JPEG)
|
return MP42Image(data: data, type: MP42_ART_JPEG)
|
||||||
} else if let image = NSImage(contentsOf: url) {
|
} else if let image = NSImage(contentsOf: url) {
|
||||||
return MP42Image(image: image)
|
return MP42Image(image: image)
|
||||||
@@ -924,7 +1005,11 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
panel.allowsMultipleSelection = true
|
panel.allowsMultipleSelection = true
|
||||||
panel.canChooseFiles = true
|
panel.canChooseFiles = true
|
||||||
panel.canChooseDirectories = false
|
panel.canChooseDirectories = false
|
||||||
|
if #available(macOS 11, *) {
|
||||||
|
panel.allowedContentTypes = [.image]
|
||||||
|
} else {
|
||||||
panel.allowedFileTypes = ["public.image"]
|
panel.allowedFileTypes = ["public.image"]
|
||||||
|
}
|
||||||
|
|
||||||
guard let window = view.window else { return }
|
guard let window = view.window else { return }
|
||||||
|
|
||||||
@@ -986,15 +1071,12 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
func filePromiseProvider(_ filePromiseProvider: NSFilePromiseProvider, writePromiseTo url: URL, completionHandler: @escaping (Error?) -> Void) {
|
func filePromiseProvider(_ filePromiseProvider: NSFilePromiseProvider, writePromiseTo url: URL, completionHandler: @escaping (Error?) -> Void) {
|
||||||
if let userInfo = filePromiseProvider.userInfo as? [String: AnyObject] {
|
if let userInfo = filePromiseProvider.userInfo as? [String: AnyObject] {
|
||||||
do {
|
do {
|
||||||
if let indexPathData = userInfo[FilePromiseProvider.UserInfoKeys.indexPathKey] as? Data {
|
if let indexPathData = userInfo[FilePromiseProvider.UserInfoKeys.indexPathKey] as? Data,
|
||||||
if let indexPath = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(indexPathData) as? IndexPath {
|
let indexPath = try NSKeyedUnarchiver.unarchivedObject(ofClasses: [NSIndexPath.classForCoder()], from: indexPathData) as? IndexPath,
|
||||||
let item = artworks[indexPath.last!]
|
let image = artworks[indexPath.last!].imageValue {
|
||||||
if let image = item.imageValue {
|
|
||||||
try image.data?.write(to: url)
|
try image.data?.write(to: url)
|
||||||
completionHandler(nil)
|
completionHandler(nil)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch {
|
} catch {
|
||||||
fatalError("failed to unarchive indexPath from promise provider.")
|
fatalError("failed to unarchive indexPath from promise provider.")
|
||||||
}
|
}
|
||||||
@@ -1106,7 +1188,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
if let pasteboardItem = draggingItem.item as? NSPasteboardItem {
|
if let pasteboardItem = draggingItem.item as? NSPasteboardItem {
|
||||||
do {
|
do {
|
||||||
if let indexPathData = pasteboardItem.data(forType: .artworkDragType),
|
if let indexPathData = pasteboardItem.data(forType: .artworkDragType),
|
||||||
let itemIndexPath = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(indexPathData) as? IndexPath {
|
let itemIndexPath = try NSKeyedUnarchiver.unarchivedObject(ofClasses: [NSIndexPath.classForCoder()], from:indexPathData) as? IndexPath {
|
||||||
indexes.insert(itemIndexPath)
|
indexes.insert(itemIndexPath)
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
@@ -1238,7 +1320,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
for pasteboardItem in items {
|
for pasteboardItem in items {
|
||||||
do {
|
do {
|
||||||
if let indexPathData = pasteboardItem.data(forType: .artworkDragType),
|
if let indexPathData = pasteboardItem.data(forType: .artworkDragType),
|
||||||
let itemIndexPath = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(indexPathData) as? IndexPath {
|
let itemIndexPath = try NSKeyedUnarchiver.unarchivedObject(ofClasses: [NSIndexPath.classForCoder()], from:indexPathData) as? IndexPath {
|
||||||
indexes.insert(itemIndexPath)
|
indexes.insert(itemIndexPath)
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
@@ -1254,24 +1336,37 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func zoomSliderDidChange(_ sender: NSControl) {
|
var zoomLevel: Float {
|
||||||
let floatValue = CGFloat(sender.floatValue)
|
get {
|
||||||
|
Prefs.movieArtworkSelectorZoomLevel
|
||||||
|
}
|
||||||
|
set (value) {
|
||||||
|
Prefs.movieArtworkSelectorZoomLevel = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private func setZoomValue(_ newZoomValue: Float) {
|
||||||
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)
|
||||||
|
zoomLevel = sender.floatValue
|
||||||
|
}
|
||||||
|
|
||||||
func collectionViewDelete(in collectionView: NSCollectionView) {
|
func collectionViewDelete(in collectionView: NSCollectionView) {
|
||||||
removeArtwork(self)
|
removeArtwork(self)
|
||||||
}
|
}
|
||||||
@@ -1298,4 +1393,9 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func collectionViewCut(in collectionView: NSCollectionView) {
|
||||||
|
collectionViewCopy(in: collectionView)
|
||||||
|
collectionViewDelete(in: collectionView)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -10,6 +10,40 @@ import Cocoa
|
|||||||
class PropertyView : NSViewController {
|
class PropertyView : NSViewController {
|
||||||
@IBOutlet var tabView: NSTabView?
|
@IBOutlet var tabView: NSTabView?
|
||||||
|
|
||||||
|
/// True when the view must be displayed but not edited (Matroska
|
||||||
|
/// tags-only documents). Set by DocumentWindowController; subclasses that
|
||||||
|
/// host tables or re-enable controls dynamically must honor it.
|
||||||
|
var isReadOnly = false {
|
||||||
|
didSet {
|
||||||
|
if isViewLoaded, isReadOnly {
|
||||||
|
view.setAllControlsEnabled(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Companion to `isReadOnly` for Matroska documents: the blanket disable
|
||||||
|
/// still applies, but subclasses may re-enable the handful of controls
|
||||||
|
/// whose values `MP42MkvTagWriter` can write back (currently the subtitle
|
||||||
|
/// forced flag). Never consulted when `isReadOnly` is false.
|
||||||
|
var allowsTrackEditing = false
|
||||||
|
|
||||||
|
/// True when the document is a Matroska tags-only document. Unlike
|
||||||
|
/// `isReadOnly` this is set on *every* property view — including the
|
||||||
|
/// metadata tab, which stays editable — so views can visually flag the
|
||||||
|
/// fields `MP42MkvTagWriter` cannot save. Subclasses override
|
||||||
|
/// `updateMatroskaFieldHints()` to apply the styling.
|
||||||
|
var isMatroskaDocument = false {
|
||||||
|
didSet {
|
||||||
|
if isViewLoaded, isMatroskaDocument != oldValue {
|
||||||
|
updateMatroskaFieldHints()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Hook for `isMatroskaDocument` changes; called by subclasses after
|
||||||
|
/// their views are loaded too. Default: nothing to flag.
|
||||||
|
func updateMatroskaFieldHints() {}
|
||||||
|
|
||||||
func navigate(direction: Int) {
|
func navigate(direction: Int) {
|
||||||
if direction == NSRightArrowFunctionKey {
|
if direction == NSRightArrowFunctionKey {
|
||||||
tabView?.selectNextTabViewItem(self)
|
tabView?.selectNextTabViewItem(self)
|
||||||
|
|||||||
@@ -20,6 +20,10 @@ final class SoundViewController : PropertyView {
|
|||||||
|
|
||||||
let mediaTagsController: MediaTagsController
|
let mediaTagsController: MediaTagsController
|
||||||
|
|
||||||
|
override var isReadOnly: Bool {
|
||||||
|
didSet { mediaTagsController.isReadOnly = isReadOnly }
|
||||||
|
}
|
||||||
|
|
||||||
@IBOutlet var mediaTagsView: NSView!
|
@IBOutlet var mediaTagsView: NSView!
|
||||||
@IBOutlet var volume: NSSlider!
|
@IBOutlet var volume: NSSlider!
|
||||||
@IBOutlet var alternateGroup: NSPopUpButton!
|
@IBOutlet var alternateGroup: NSPopUpButton!
|
||||||
@@ -118,15 +122,10 @@ final class SoundViewController : PropertyView {
|
|||||||
|
|
||||||
// MARK: Actions
|
// MARK: Actions
|
||||||
|
|
||||||
private func updateChangeCount() {
|
|
||||||
view.window?.windowController?.document?.updateChangeCount(NSDocument.ChangeType.changeDone)
|
|
||||||
}
|
|
||||||
|
|
||||||
@IBAction func setTrackVolume(_ sender: NSSlider) {
|
@IBAction func setTrackVolume(_ sender: NSSlider) {
|
||||||
let value = sender.floatValue / 100
|
let value = sender.floatValue / 100
|
||||||
if value != track.volume {
|
if value != track.volume {
|
||||||
track.volume = value
|
track.volume = value
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,12 +133,10 @@ final class SoundViewController : PropertyView {
|
|||||||
if let newFallbackTrack = sender.representedObject as? MP42AudioTrack {
|
if let newFallbackTrack = sender.representedObject as? MP42AudioTrack {
|
||||||
if newFallbackTrack != track.fallbackTrack {
|
if newFallbackTrack != track.fallbackTrack {
|
||||||
track.fallbackTrack = newFallbackTrack
|
track.fallbackTrack = newFallbackTrack
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
track.fallbackTrack = nil
|
track.fallbackTrack = nil
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -147,12 +144,10 @@ final class SoundViewController : PropertyView {
|
|||||||
if let newFollowsTrack = sender.representedObject as? MP42SubtitleTrack {
|
if let newFollowsTrack = sender.representedObject as? MP42SubtitleTrack {
|
||||||
if newFollowsTrack != track.followsTrack {
|
if newFollowsTrack != track.followsTrack {
|
||||||
track.followsTrack = newFollowsTrack
|
track.followsTrack = newFollowsTrack
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
track.followsTrack = nil
|
track.followsTrack = nil
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,7 +155,6 @@ final class SoundViewController : PropertyView {
|
|||||||
if let group = sender.selectedItem?.tag {
|
if let group = sender.selectedItem?.tag {
|
||||||
if track.alternateGroup != group {
|
if track.alternateGroup != group {
|
||||||
track.alternateGroup = UInt64(group)
|
track.alternateGroup = UInt64(group)
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,24 @@ final class VideoViewController: PropertyView {
|
|||||||
|
|
||||||
private let mediaTagsController: MediaTagsController
|
private let mediaTagsController: MediaTagsController
|
||||||
|
|
||||||
|
override var isReadOnly: Bool {
|
||||||
|
didSet {
|
||||||
|
mediaTagsController.isReadOnly = isReadOnly
|
||||||
|
// Matroska tags-only: FlagForced is writable (Never/All — the
|
||||||
|
// per-sample "Any samples" option has no Matroska equivalent).
|
||||||
|
if isReadOnly, allowsTrackEditing, isViewLoaded, track is MP42SubtitleTrack {
|
||||||
|
let anySamplesIndex = forcedSubs.indexOfItem(withTag: 1)
|
||||||
|
if anySamplesIndex >= 0 {
|
||||||
|
forcedSubs.removeItem(at: anySamplesIndex)
|
||||||
|
}
|
||||||
|
if forcedSubs.indexOfSelectedItem == -1 {
|
||||||
|
forcedSubs.selectItem(withTag: 0)
|
||||||
|
}
|
||||||
|
forcedSubs.isEnabled = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override var nibName: NSNib.Name? {
|
override var nibName: NSNib.Name? {
|
||||||
return "VideoView"
|
return "VideoView"
|
||||||
}
|
}
|
||||||
@@ -143,6 +161,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 +214,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
|
||||||
|
|
||||||
@@ -250,10 +272,6 @@ final class VideoViewController: PropertyView {
|
|||||||
|
|
||||||
// MARK: Actions
|
// MARK: Actions
|
||||||
|
|
||||||
private func updateChangeCount() {
|
|
||||||
view.window?.windowController?.document?.updateChangeCount(NSDocument.ChangeType.changeDone)
|
|
||||||
}
|
|
||||||
|
|
||||||
@IBAction func setSize(_ sender: NSTextField) {
|
@IBAction func setSize(_ sender: NSTextField) {
|
||||||
if sender == trackWidth {
|
if sender == trackWidth {
|
||||||
let value = trackWidth.floatValue
|
let value = trackWidth.floatValue
|
||||||
@@ -263,13 +281,11 @@ final class VideoViewController: PropertyView {
|
|||||||
trackHeight.floatValue = track.trackHeight
|
trackHeight.floatValue = track.trackHeight
|
||||||
}
|
}
|
||||||
track.trackWidth = value
|
track.trackWidth = value
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
} else if sender == trackHeight {
|
} else if sender == trackHeight {
|
||||||
let value = trackHeight.floatValue
|
let value = trackHeight.floatValue
|
||||||
if track.trackHeight != value {
|
if track.trackHeight != value {
|
||||||
track.trackHeight = value
|
track.trackHeight = value
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
} else if sender == offsetX {
|
} else if sender == offsetX {
|
||||||
let value = CGFloat(offsetX.integerValue)
|
let value = CGFloat(offsetX.integerValue)
|
||||||
@@ -277,7 +293,6 @@ final class VideoViewController: PropertyView {
|
|||||||
var transform = track.transform
|
var transform = track.transform
|
||||||
transform.tx = value
|
transform.tx = value
|
||||||
track.transform = transform
|
track.transform = transform
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
} else if sender == offsetY {
|
} else if sender == offsetY {
|
||||||
let value = CGFloat(offsetY.integerValue)
|
let value = CGFloat(offsetY.integerValue)
|
||||||
@@ -285,7 +300,6 @@ final class VideoViewController: PropertyView {
|
|||||||
var transform = track.transform
|
var transform = track.transform
|
||||||
transform.ty = value
|
transform.ty = value
|
||||||
track.transform = transform
|
track.transform = transform
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -295,14 +309,12 @@ final class VideoViewController: PropertyView {
|
|||||||
let value = UInt64(hSpacing.integerValue)
|
let value = UInt64(hSpacing.integerValue)
|
||||||
if track.hSpacing != value {
|
if track.hSpacing != value {
|
||||||
track.hSpacing = value
|
track.hSpacing = value
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if sender == vSpacing {
|
else if sender == vSpacing {
|
||||||
let value = UInt64(vSpacing.intValue)
|
let value = UInt64(vSpacing.intValue)
|
||||||
if track.vSpacing != value {
|
if track.vSpacing != value {
|
||||||
track.vSpacing = value
|
track.vSpacing = value
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -330,6 +342,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
|
||||||
}
|
}
|
||||||
@@ -338,7 +354,6 @@ final class VideoViewController: PropertyView {
|
|||||||
track.colorPrimaries = colorTag.0
|
track.colorPrimaries = colorTag.0
|
||||||
track.transferCharacteristics = colorTag.1
|
track.transferCharacteristics = colorTag.1
|
||||||
track.matrixCoefficients = colorTag.2
|
track.matrixCoefficients = colorTag.2
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -362,7 +377,6 @@ final class VideoViewController: PropertyView {
|
|||||||
default:
|
default:
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func setForcedSubtitles(_ sender: NSPopUpButton) {
|
@IBAction func setForcedSubtitles(_ sender: NSPopUpButton) {
|
||||||
@@ -383,7 +397,6 @@ final class VideoViewController: PropertyView {
|
|||||||
if track.someSamplesAreForced != value.0 || track.allSamplesAreForced != value.1 {
|
if track.someSamplesAreForced != value.0 || track.allSamplesAreForced != value.1 {
|
||||||
track.someSamplesAreForced = value.0
|
track.someSamplesAreForced = value.0
|
||||||
track.allSamplesAreForced = value.1
|
track.allSamplesAreForced = value.1
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -393,12 +406,10 @@ final class VideoViewController: PropertyView {
|
|||||||
if let newForcedTrack = sender.representedObject as? MP42SubtitleTrack {
|
if let newForcedTrack = sender.representedObject as? MP42SubtitleTrack {
|
||||||
if newForcedTrack != track.forcedTrack {
|
if newForcedTrack != track.forcedTrack {
|
||||||
track.forcedTrack = newForcedTrack
|
track.forcedTrack = newForcedTrack
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
track.forcedTrack = nil
|
track.forcedTrack = nil
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -407,7 +418,6 @@ final class VideoViewController: PropertyView {
|
|||||||
if let group = sender.selectedItem?.tag {
|
if let group = sender.selectedItem?.tag {
|
||||||
if track.alternateGroup != group {
|
if track.alternateGroup != group {
|
||||||
track.alternateGroup = UInt64(group)
|
track.alternateGroup = UInt64(group)
|
||||||
updateChangeCount()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,40 +2,40 @@
|
|||||||
"4p7-7v-cUB.title" = "Guardar";
|
"4p7-7v-cUB.title" = "Guardar";
|
||||||
|
|
||||||
/* Class = "NSTabViewItem"; label = "Metadata"; ObjectID = "11"; */
|
/* Class = "NSTabViewItem"; label = "Metadata"; ObjectID = "11"; */
|
||||||
"11.label" = "Metadatos";
|
"11.label" = "Etiquetas";
|
||||||
|
|
||||||
/* Class = "NSTabViewItem"; label = "Artwork"; ObjectID = "15"; */
|
/* Class = "NSTabViewItem"; label = "Artwork"; ObjectID = "15"; */
|
||||||
"15.label" = "Ilustración";
|
"15.label" = "Ilustración";
|
||||||
|
|
||||||
/* Class = "NSPopUpButton"; ibExternalAccessibilityDescription = "Add metadata item"; ObjectID = "30"; */
|
/* Class = "NSPopUpButton"; ibExternalAccessibilityDescription = "Add metadata item"; ObjectID = "30"; */
|
||||||
"30.ibExternalAccessibilityDescription" = "Agregar propiedad";
|
"30.ibExternalAccessibilityDescription" = "Agregar etiqueta";
|
||||||
|
|
||||||
/* Class = "NSPopUpButton"; ibShadowedToolTip = "Add a new metadata item"; ObjectID = "30"; */
|
/* Class = "NSPopUpButton"; ibShadowedToolTip = "Add a new metadata item"; ObjectID = "30"; */
|
||||||
"30.ibShadowedToolTip" = "Agregar propiedad";
|
"30.ibShadowedToolTip" = "Agregar etiqueta";
|
||||||
|
|
||||||
/* Class = "NSButton"; ibExternalAccessibilityDescription = "Remove selected item"; ObjectID = "53"; */
|
/* Class = "NSButton"; ibExternalAccessibilityDescription = "Remove selected item"; ObjectID = "53"; */
|
||||||
"53.ibExternalAccessibilityDescription" = "Eliminar propiedad";
|
"53.ibExternalAccessibilityDescription" = "Eliminar etiqueta";
|
||||||
|
|
||||||
/* Class = "NSButton"; ibShadowedToolTip = "Remove selected item"; ObjectID = "53"; */
|
/* Class = "NSButton"; ibShadowedToolTip = "Remove selected item"; ObjectID = "53"; */
|
||||||
"53.ibShadowedToolTip" = "Eliminar propiedad";
|
"53.ibShadowedToolTip" = "Eliminar etiqueta";
|
||||||
|
|
||||||
/* Class = "NSPopUpButton"; ibExternalAccessibilityDescription = "Sets"; ObjectID = "179"; */
|
/* Class = "NSPopUpButton"; ibExternalAccessibilityDescription = "Sets"; ObjectID = "179"; */
|
||||||
"179.ibExternalAccessibilityDescription" = "Preset";
|
"179.ibExternalAccessibilityDescription" = "Preset";
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Keep existing annotations"; ObjectID = "aiW-0y-PWH"; */
|
/* Class = "NSButtonCell"; title = "Keep existing annotations"; ObjectID = "aiW-0y-PWH"; */
|
||||||
"aiW-0y-PWH.title" = "Mantener propiedades existentes";
|
"aiW-0y-PWH.title" = "Mantener etiquetas existentes";
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Keep existing artworks"; ObjectID = "doa-uZ-CNr"; */
|
/* Class = "NSButtonCell"; title = "Keep existing artworks"; ObjectID = "doa-uZ-CNr"; */
|
||||||
"doa-uZ-CNr.title" = "Mantener ilustraciones existentes";
|
"doa-uZ-CNr.title" = "Mantener ilustraciones existentes";
|
||||||
|
|
||||||
/* Class = "NSTableColumn"; headerCell.title = "Annotation"; ObjectID = "j7q-XE-YXB"; */
|
/* Class = "NSTableColumn"; headerCell.title = "Annotation"; ObjectID = "j7q-XE-YXB"; */
|
||||||
"j7q-XE-YXB.headerCell.title" = "Propiedad";
|
"j7q-XE-YXB.headerCell.title" = "Etiqueta";
|
||||||
|
|
||||||
/* Class = "NSTableColumn"; headerCell.title = "Value"; ObjectID = "os0-Yb-exW"; */
|
/* Class = "NSTableColumn"; headerCell.title = "Value"; ObjectID = "os0-Yb-exW"; */
|
||||||
"os0-Yb-exW.headerCell.title" = "Valor";
|
"os0-Yb-exW.headerCell.title" = "Valor";
|
||||||
|
|
||||||
/* Class = "NSTableView"; ibExternalAccessibilityDescription = "Metadata"; ObjectID = "qg5-r0-E4V"; */
|
/* Class = "NSTableView"; ibExternalAccessibilityDescription = "Metadata"; ObjectID = "qg5-r0-E4V"; */
|
||||||
"qg5-r0-E4V.ibExternalAccessibilityDescription" = "Metadatos";
|
"qg5-r0-E4V.ibExternalAccessibilityDescription" = "Etiquetas";
|
||||||
|
|
||||||
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "sNX-Z3-AtD"; */
|
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "sNX-Z3-AtD"; */
|
||||||
"sNX-Z3-AtD.title" = "Cancelar";
|
"sNX-Z3-AtD.title" = "Cancelar";
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
"Fye-Hi-zqu.title" = "Grupo alternativo:";
|
"Fye-Hi-zqu.title" = "Grupo alternativo:";
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "You should only change the video profile if you want to load the file onto one of the devices listed and have been unable to do so. However, if the video file uses advanced features of the codec, then the file may still be unplayable on the device."; ObjectID = "gcL-yf-yxF"; */
|
/* Class = "NSTextFieldCell"; title = "You should only change the video profile if you want to load the file onto one of the devices listed and have been unable to do so. However, if the video file uses advanced features of the codec, then the file may still be unplayable on the device."; ObjectID = "gcL-yf-yxF"; */
|
||||||
"gcL-yf-yxF.title" = "Debes cambiar el perfil de vídeo solo si quieres reproducir el archivo en uno de los dispositivos de la lista y no lo has logrado. Sin embargo, si el archivo de vídeo utiliza características avanzadas del códec, es posible que aún no puedas reproducirlo en el dispositivo.";
|
"gcL-yf-yxF.title" = "Debes cambiar el perfil de video solo si quieres reproducir el archivo en uno de los dispositivos de la lista y no lo has logrado. Sin embargo, si el archivo de video utiliza características avanzadas del códec, es posible que aún no puedas reproducirlo en el dispositivo.";
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "GfY-OY-SWL"; */
|
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "GfY-OY-SWL"; */
|
||||||
"GfY-OY-SWL.title" = "x";
|
"GfY-OY-SWL.title" = "x";
|
||||||
@@ -76,6 +76,9 @@
|
|||||||
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "ILN-KP-l0z"; */
|
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "ILN-KP-l0z"; */
|
||||||
"ILN-KP-l0z.title" = "x";
|
"ILN-KP-l0z.title" = "x";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "IPT-C2 (9-16-15)"; ObjectID = "J66-Ah-thQ"; */
|
||||||
|
"J66-Ah-thQ.title" = "IPT-C2 (9-16-15)";
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "No"; ObjectID = "KOg-FR-dr6"; */
|
/* Class = "NSMenuItem"; title = "No"; ObjectID = "KOg-FR-dr6"; */
|
||||||
"KOg-FR-dr6.title" = "No";
|
"KOg-FR-dr6.title" = "No";
|
||||||
|
|
||||||
@@ -107,7 +110,10 @@
|
|||||||
"nr0-Jc-cUj.title" = "Mantener relación de aspecto";
|
"nr0-Jc-cUj.title" = "Mantener relación de aspecto";
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "H.264 Video Profile/Level:"; ObjectID = "nrd-22-FZl"; */
|
/* Class = "NSTextFieldCell"; title = "H.264 Video Profile/Level:"; ObjectID = "nrd-22-FZl"; */
|
||||||
"nrd-22-FZl.title" = "Perfil/Nivel del vídeo H.264:";
|
"nrd-22-FZl.title" = "Perfil/Nivel del video H.264:";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Undefined (2-2-2)"; ObjectID = "Pxl-vS-IAs"; */
|
||||||
|
"Pxl-vS-IAs.title" = "No definido (2-2-2)";
|
||||||
|
|
||||||
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Aspect Ratio Numerator"; ObjectID = "Q0D-6k-Hgx"; */
|
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Aspect Ratio Numerator"; ObjectID = "Q0D-6k-Hgx"; */
|
||||||
"Q0D-6k-Hgx.ibExternalAccessibilityDescription" = "Numerador de relación de aspecto";
|
"Q0D-6k-Hgx.ibExternalAccessibilityDescription" = "Numerador de relación de aspecto";
|
||||||
|
|||||||
@@ -25,12 +25,27 @@
|
|||||||
/* Class = "NSTextFieldCell"; title = "-∞ db"; ObjectID = "dCR-ej-bsH"; */
|
/* Class = "NSTextFieldCell"; title = "-∞ db"; ObjectID = "dCR-ej-bsH"; */
|
||||||
"dCR-ej-bsH.title" = "-∞ db";
|
"dCR-ej-bsH.title" = "-∞ db";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "4"; ObjectID = "e5A-Zf-BwW"; */
|
||||||
|
"e5A-Zf-BwW.title" = "4";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "5"; ObjectID = "F8Z-GJ-QaV"; */
|
||||||
|
"F8Z-GJ-QaV.title" = "5";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "1"; ObjectID = "mXc-eW-usD"; */
|
||||||
|
"mXc-eW-usD.title" = "1";
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "None"; ObjectID = "QBa-Jt-TO2"; */
|
/* Class = "NSMenuItem"; title = "None"; ObjectID = "QBa-Jt-TO2"; */
|
||||||
"QBa-Jt-TO2.title" = "Nessuno";
|
"QBa-Jt-TO2.title" = "Nessuno";
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "None"; ObjectID = "Qdb-gu-B3h"; */
|
/* Class = "NSMenuItem"; title = "None"; ObjectID = "Qdb-gu-B3h"; */
|
||||||
"Qdb-gu-B3h.title" = "Nessuno";
|
"Qdb-gu-B3h.title" = "Nessuno";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "6"; ObjectID = "RPZ-ZF-Pvg"; */
|
||||||
|
"RPZ-ZF-Pvg.title" = "6";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "2"; ObjectID = "xjR-b6-VG2"; */
|
||||||
|
"xjR-b6-VG2.title" = "2";
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Volume:"; ObjectID = "Z5x-Oq-P8Z"; */
|
/* Class = "NSTextFieldCell"; title = "Volume:"; ObjectID = "Z5x-Oq-P8Z"; */
|
||||||
"Z5x-Oq-P8Z.title" = "Volume:";
|
"Z5x-Oq-P8Z.title" = "Volume:";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
/* Class = "NSTextFieldCell"; title = "Scaled Size:"; ObjectID = "1O9-J3-Plk"; */
|
/* Class = "NSTextFieldCell"; title = "Scaled Size:"; ObjectID = "1O9-J3-Plk"; */
|
||||||
"1O9-J3-Plk.title" = "Dimensioni in scala:";
|
"1O9-J3-Plk.title" = "Dimensioni in scala:";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "3"; ObjectID = "3D2-8h-I0N"; */
|
||||||
|
"3D2-8h-I0N.title" = "3";
|
||||||
|
|
||||||
/* Class = "NSTabViewItem"; label = "Visual Settings"; ObjectID = "6"; */
|
/* Class = "NSTabViewItem"; label = "Visual Settings"; ObjectID = "6"; */
|
||||||
"6.label" = "Impostazioni visive";
|
"6.label" = "Impostazioni visive";
|
||||||
|
|
||||||
@@ -25,6 +28,9 @@
|
|||||||
/* Class = "NSMenuItem"; title = "2"; ObjectID = "a5f-nN-J1C"; */
|
/* Class = "NSMenuItem"; title = "2"; ObjectID = "a5f-nN-J1C"; */
|
||||||
"a5f-nN-J1C.title" = "2";
|
"a5f-nN-J1C.title" = "2";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "4"; ObjectID = "B3w-wZ-pOJ"; */
|
||||||
|
"B3w-wZ-pOJ.title" = "4";
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "Rec. 709 (1-1-1)"; ObjectID = "bc1-gr-6m9"; */
|
/* Class = "NSMenuItem"; title = "Rec. 709 (1-1-1)"; ObjectID = "bc1-gr-6m9"; */
|
||||||
"bc1-gr-6m9.title" = "Rec. 709 (1-1-1)";
|
"bc1-gr-6m9.title" = "Rec. 709 (1-1-1)";
|
||||||
|
|
||||||
@@ -37,6 +43,9 @@
|
|||||||
/* Class = "NSMenuItem"; title = "Rec. 2100 PQ (9-16-9)"; ObjectID = "d2S-Qf-ltk"; */
|
/* Class = "NSMenuItem"; title = "Rec. 2100 PQ (9-16-9)"; ObjectID = "d2S-Qf-ltk"; */
|
||||||
"d2S-Qf-ltk.title" = "Rec. 2100 PQ (9-16-9)";
|
"d2S-Qf-ltk.title" = "Rec. 2100 PQ (9-16-9)";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "5"; ObjectID = "Ejg-9c-E4w"; */
|
||||||
|
"Ejg-9c-E4w.title" = "5";
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "pixels"; ObjectID = "EQ0-oQ-E9J"; */
|
/* Class = "NSTextFieldCell"; title = "pixels"; ObjectID = "EQ0-oQ-E9J"; */
|
||||||
"EQ0-oQ-E9J.title" = "pixel";
|
"EQ0-oQ-E9J.title" = "pixel";
|
||||||
|
|
||||||
@@ -67,6 +76,9 @@
|
|||||||
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "ILN-KP-l0z"; */
|
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "ILN-KP-l0z"; */
|
||||||
"ILN-KP-l0z.title" = "x";
|
"ILN-KP-l0z.title" = "x";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "IPT-C2 (9-16-15)"; ObjectID = "J66-Ah-thQ"; */
|
||||||
|
"J66-Ah-thQ.title" = "IPT-C2 (9-16-15)";
|
||||||
|
|
||||||
/* Class = "NSMenuItem"; title = "No"; ObjectID = "KOg-FR-dr6"; */
|
/* Class = "NSMenuItem"; title = "No"; ObjectID = "KOg-FR-dr6"; */
|
||||||
"KOg-FR-dr6.title" = "No";
|
"KOg-FR-dr6.title" = "No";
|
||||||
|
|
||||||
@@ -100,6 +112,9 @@
|
|||||||
/* Class = "NSTextFieldCell"; title = "H.264 Video Profile/Level:"; ObjectID = "nrd-22-FZl"; */
|
/* Class = "NSTextFieldCell"; title = "H.264 Video Profile/Level:"; ObjectID = "nrd-22-FZl"; */
|
||||||
"nrd-22-FZl.title" = "Profilo/Livello video H.264:";
|
"nrd-22-FZl.title" = "Profilo/Livello video H.264:";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Undefined (2-2-2)"; ObjectID = "Pxl-vS-IAs"; */
|
||||||
|
"Pxl-vS-IAs.title" = "Non definito (2-2-2)";
|
||||||
|
|
||||||
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Aspect Ratio Numerator"; ObjectID = "Q0D-6k-Hgx"; */
|
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Aspect Ratio Numerator"; ObjectID = "Q0D-6k-Hgx"; */
|
||||||
"Q0D-6k-Hgx.ibExternalAccessibilityDescription" = "Numeratore rapporto proporzioni";
|
"Q0D-6k-Hgx.ibExternalAccessibilityDescription" = "Numeratore rapporto proporzioni";
|
||||||
|
|
||||||
@@ -112,6 +127,9 @@
|
|||||||
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Scaled Size Width"; ObjectID = "r90-c5-7PH"; */
|
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Scaled Size Width"; ObjectID = "r90-c5-7PH"; */
|
||||||
"r90-c5-7PH.ibExternalAccessibilityDescription" = "Larghezza dimensione in scala";
|
"r90-c5-7PH.ibExternalAccessibilityDescription" = "Larghezza dimensione in scala";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "1"; ObjectID = "S4p-0Y-kRW"; */
|
||||||
|
"S4p-0Y-kRW.title" = "1";
|
||||||
|
|
||||||
/* Class = "NSTextFieldCell"; title = "Normal Size:"; ObjectID = "soD-gL-b4G"; */
|
/* Class = "NSTextFieldCell"; title = "Normal Size:"; ObjectID = "soD-gL-b4G"; */
|
||||||
"soD-gL-b4G.title" = "Dimensioni normali:";
|
"soD-gL-b4G.title" = "Dimensioni normali:";
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
/* Class = "NSTabViewItem"; label = "Chapters"; ObjectID = "11"; */
|
||||||
|
"11.label" = "Capítulos";
|
||||||
|
|
||||||
|
/* Class = "NSTableView"; ibExternalAccessibilityDescription = "Chapters"; ObjectID = "22"; */
|
||||||
|
"22.ibExternalAccessibilityDescription" = "Capítulos";
|
||||||
|
|
||||||
|
/* Class = "NSTableColumn"; headerCell.title = "Time"; ObjectID = "24"; */
|
||||||
|
"24.headerCell.title" = "Tempo";
|
||||||
|
|
||||||
|
/* Class = "NSTableColumn"; headerCell.title = "Title"; ObjectID = "25"; */
|
||||||
|
"25.headerCell.title" = "Título";
|
||||||
|
|
||||||
|
/* Class = "NSButton"; ibShadowedToolTip = "Delete selected chapter"; ObjectID = "31"; */
|
||||||
|
"31.ibShadowedToolTip" = "Remover Capítulo Selecionado";
|
||||||
|
|
||||||
|
/* Class = "NSButton"; ibShadowedToolTip = "Add chapter"; ObjectID = "42"; */
|
||||||
|
"42.ibShadowedToolTip" = "Adicionar Capítulo";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Rename every chapter"; ObjectID = "SOg-Lz-v5L"; */
|
||||||
|
"SOg-Lz-v5L.title" = "Renomear Capítulos";
|
||||||
|
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/* Class = "NSButtonCell"; title = "Save"; ObjectID = "4p7-7v-cUB"; */
|
||||||
|
"4p7-7v-cUB.title" = "Salvar";
|
||||||
|
|
||||||
|
/* Class = "NSTabViewItem"; label = "Metadata"; ObjectID = "11"; */
|
||||||
|
"11.label" = "Tags";
|
||||||
|
|
||||||
|
/* Class = "NSTabViewItem"; label = "Artwork"; ObjectID = "15"; */
|
||||||
|
"15.label" = "Capa";
|
||||||
|
|
||||||
|
/* Class = "NSPopUpButton"; ibExternalAccessibilityDescription = "Add metadata item"; ObjectID = "30"; */
|
||||||
|
"30.ibExternalAccessibilityDescription" = "Adicionar Tag";
|
||||||
|
|
||||||
|
/* Class = "NSPopUpButton"; ibShadowedToolTip = "Add a new metadata item"; ObjectID = "30"; */
|
||||||
|
"30.ibShadowedToolTip" = "Adicionar Tag";
|
||||||
|
|
||||||
|
/* Class = "NSButton"; ibExternalAccessibilityDescription = "Remove selected item"; ObjectID = "53"; */
|
||||||
|
"53.ibExternalAccessibilityDescription" = "Remover Tag";
|
||||||
|
|
||||||
|
/* Class = "NSButton"; ibShadowedToolTip = "Remove selected item"; ObjectID = "53"; */
|
||||||
|
"53.ibShadowedToolTip" = "Remover Tag";
|
||||||
|
|
||||||
|
/* Class = "NSPopUpButton"; ibExternalAccessibilityDescription = "Sets"; ObjectID = "179"; */
|
||||||
|
"179.ibExternalAccessibilityDescription" = "Preset";
|
||||||
|
|
||||||
|
/* Class = "NSButtonCell"; title = "Keep existing annotations"; ObjectID = "aiW-0y-PWH"; */
|
||||||
|
"aiW-0y-PWH.title" = "Manter Tags Existentes";
|
||||||
|
|
||||||
|
/* Class = "NSButtonCell"; title = "Keep existing artworks"; ObjectID = "doa-uZ-CNr"; */
|
||||||
|
"doa-uZ-CNr.title" = "Manter Capas Existentes";
|
||||||
|
|
||||||
|
/* Class = "NSTableColumn"; headerCell.title = "Annotation"; ObjectID = "j7q-XE-YXB"; */
|
||||||
|
"j7q-XE-YXB.headerCell.title" = "Tag";
|
||||||
|
|
||||||
|
/* Class = "NSTableColumn"; headerCell.title = "Value"; ObjectID = "os0-Yb-exW"; */
|
||||||
|
"os0-Yb-exW.headerCell.title" = "Valor";
|
||||||
|
|
||||||
|
/* Class = "NSTableView"; ibExternalAccessibilityDescription = "Metadata"; ObjectID = "qg5-r0-E4V"; */
|
||||||
|
"qg5-r0-E4V.ibExternalAccessibilityDescription" = "Tags";
|
||||||
|
|
||||||
|
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "sNX-Z3-AtD"; */
|
||||||
|
"sNX-Z3-AtD.title" = "Cancelar";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Name:"; ObjectID = "ZqF-j8-NeN"; */
|
||||||
|
"ZqF-j8-NeN.title" = "Nome:";
|
||||||
|
|
||||||
|
/* Class = "NSWindow"; title = "Window"; ObjectID = "ZRj-hi-qeJ"; */
|
||||||
|
"ZRj-hi-qeJ.title" = "Janela";
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
/* Class = "NSTextFieldCell"; title = "%lu tracks selected"; ObjectID = "Mo5-ii-LsO"; */
|
||||||
|
"Mo5-ii-LsO.title" = "%lu faixas selecionadas";
|
||||||
|
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/* Class = "NSMenuItem"; title = "3"; ObjectID = "1xu-y0-sPc"; */
|
||||||
|
"1xu-y0-sPc.title" = "3";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "+ 0 db"; ObjectID = "5af-rM-3Vd"; */
|
||||||
|
"5af-rM-3Vd.title" = "+ 0 db";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "+6 db"; ObjectID = "5ZH-ms-h3O"; */
|
||||||
|
"5ZH-ms-h3O.title" = "+6 db";
|
||||||
|
|
||||||
|
/* Class = "NSTabViewItem"; label = "Sound Settings"; ObjectID = "6"; */
|
||||||
|
"6.label" = "Configurações de som";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Fallback:"; ObjectID = "8KY-0L-cm1"; */
|
||||||
|
"8KY-0L-cm1.title" = "Alternativa:";
|
||||||
|
|
||||||
|
/* Class = "NSTabViewItem"; label = "Media Characteristics"; ObjectID = "22R-da-Q3B"; */
|
||||||
|
"22R-da-Q3B.label" = "Características da mídia";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Alternate Group:"; ObjectID = "CTV-P7-IaD"; */
|
||||||
|
"CTV-P7-IaD.title" = "Grupo Alternativo:";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Subtitles:"; ObjectID = "dbp-55-tUy"; */
|
||||||
|
"dbp-55-tUy.title" = "Legendas:";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "-∞ db"; ObjectID = "dCR-ej-bsH"; */
|
||||||
|
"dCR-ej-bsH.title" = "-∞ db";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "4"; ObjectID = "e5A-Zf-BwW"; */
|
||||||
|
"e5A-Zf-BwW.title" = "4";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "5"; ObjectID = "F8Z-GJ-QaV"; */
|
||||||
|
"F8Z-GJ-QaV.title" = "5";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "1"; ObjectID = "mXc-eW-usD"; */
|
||||||
|
"mXc-eW-usD.title" = "1";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "None"; ObjectID = "QBa-Jt-TO2"; */
|
||||||
|
"QBa-Jt-TO2.title" = "Nenhum";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "None"; ObjectID = "Qdb-gu-B3h"; */
|
||||||
|
"Qdb-gu-B3h.title" = "Nenhum";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "6"; ObjectID = "RPZ-ZF-Pvg"; */
|
||||||
|
"RPZ-ZF-Pvg.title" = "6";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "2"; ObjectID = "xjR-b6-VG2"; */
|
||||||
|
"xjR-b6-VG2.title" = "2";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Volume:"; ObjectID = "Z5x-Oq-P8Z"; */
|
||||||
|
"Z5x-Oq-P8Z.title" = "Volume:";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "None"; ObjectID = "Zgh-b7-8aY"; */
|
||||||
|
"Zgh-b7-8aY.title" = "Nenhum";
|
||||||
|
|
||||||
@@ -0,0 +1,162 @@
|
|||||||
|
/* Class = "NSTextFieldCell"; title = "Scaled Size:"; ObjectID = "1O9-J3-Plk"; */
|
||||||
|
"1O9-J3-Plk.title" = "Tamanho Escalado:";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "3"; ObjectID = "3D2-8h-I0N"; */
|
||||||
|
"3D2-8h-I0N.title" = "3";
|
||||||
|
|
||||||
|
/* Class = "NSTabViewItem"; label = "Visual Settings"; ObjectID = "6"; */
|
||||||
|
"6.label" = "Configurações Visuais";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "pixels"; ObjectID = "6I1-7O-uon"; */
|
||||||
|
"6I1-7O-uon.title" = "pixels";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Implicit"; ObjectID = "6PY-Np-Y3s"; */
|
||||||
|
"6PY-Np-Y3s.title" = "Implícito";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "pixels"; ObjectID = "7as-HC-onR"; */
|
||||||
|
"7as-HC-onR.title" = "pixels";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "7Ug-k7-d7I"; */
|
||||||
|
"7Ug-k7-d7I.title" = "x";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Rec. 2020 (9-1-9)"; ObjectID = "8V9-Sh-Mnu"; */
|
||||||
|
"8V9-Sh-Mnu.title" = "Rec. 2020 (9-1-9)";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Baseline @ 2.1 (iPod classic, iPod nano)"; ObjectID = "8y5-eT-wSx"; */
|
||||||
|
"8y5-eT-wSx.title" = "Baseline @ 2.1 (iPod classic, iPod nano)";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "2"; ObjectID = "a5f-nN-J1C"; */
|
||||||
|
"a5f-nN-J1C.title" = "2";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "4"; ObjectID = "B3w-wZ-pOJ"; */
|
||||||
|
"B3w-wZ-pOJ.title" = "4";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Rec. 709 (1-1-1)"; ObjectID = "bc1-gr-6m9"; */
|
||||||
|
"bc1-gr-6m9.title" = "Rec. 709 (1-1-1)";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Main @ 3.1 (iPhone, iPod touch, iPad, tv)"; ObjectID = "bMn-03-nc8"; */
|
||||||
|
"bMn-03-nc8.title" = "Main @ 3.1 (iPhone, iPod touch, iPad, tv)";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Color Space:"; ObjectID = "BZv-h3-OMk"; */
|
||||||
|
"BZv-h3-OMk.title" = "Espaço de Cores:";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Rec. 2100 PQ (9-16-9)"; ObjectID = "d2S-Qf-ltk"; */
|
||||||
|
"d2S-Qf-ltk.title" = "Rec. 2100 PQ (9-16-9)";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "5"; ObjectID = "Ejg-9c-E4w"; */
|
||||||
|
"Ejg-9c-E4w.title" = "5";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "pixels"; ObjectID = "EQ0-oQ-E9J"; */
|
||||||
|
"EQ0-oQ-E9J.title" = "pixels";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "P3-D65 (12-17-6)"; ObjectID = "fNy-M4-iaz"; */
|
||||||
|
"fNy-M4-iaz.title" = "P3-D65 (12-17-6)";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Alternate Group:"; ObjectID = "Fye-Hi-zqu"; */
|
||||||
|
"Fye-Hi-zqu.title" = "Grupo Alternativo:";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "You should only change the video profile if you want to load the file onto one of the devices listed and have been unable to do so. However, if the video file uses advanced features of the codec, then the file may still be unplayable on the device."; ObjectID = "gcL-yf-yxF"; */
|
||||||
|
"gcL-yf-yxF.title" = "Você só deve alterar o perfil de vídeo se quiser carregar o arquivo em um dos dispositivos listados e não puder fazê-lo. No entanto, se o arquivo de vídeo usar recursos avançados do codec, o arquivo ainda pode não ser reproduzido no dispositivo.";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "GfY-OY-SWL"; */
|
||||||
|
"GfY-OY-SWL.title" = "x";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Forced:"; ObjectID = "gMo-yz-dz5"; */
|
||||||
|
"gMo-yz-dz5.title" = "Forçado:";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "None"; ObjectID = "H3I-ix-0Ay"; */
|
||||||
|
"H3I-ix-0Ay.title" = "Nenhuma";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Some Samples Are Forced"; ObjectID = "i0h-ag-Pc5"; */
|
||||||
|
"i0h-ag-Pc5.title" = "Algumas amostras são forçadas";
|
||||||
|
|
||||||
|
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Aspect Ratio Denominator"; ObjectID = "ifV-jn-Kjv"; */
|
||||||
|
"ifV-jn-Kjv.ibExternalAccessibilityDescription" = "Denominador de proporção";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "ILN-KP-l0z"; */
|
||||||
|
"ILN-KP-l0z.title" = "x";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "IPT-C2 (9-16-15)"; ObjectID = "J66-Ah-thQ"; */
|
||||||
|
"J66-Ah-thQ.title" = "IPT-C2 (9-16-15)";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "No"; ObjectID = "KOg-FR-dr6"; */
|
||||||
|
"KOg-FR-dr6.title" = "Não";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "sRGB (1-13-1)"; ObjectID = "l0E-aL-LGd"; */
|
||||||
|
"l0E-aL-LGd.title" = "sRGB (1-13-1)";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Rec. 2100 HLG (9-18-9)"; ObjectID = "lAn-vv-Amd"; */
|
||||||
|
"lAn-vv-Amd.title" = "Rec. 2100 HLG (9-18-9)";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "lgq-Fj-LB5"; */
|
||||||
|
"lgq-Fj-LB5.title" = "x";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "All Samples Are Forced"; ObjectID = "MLa-b8-424"; */
|
||||||
|
"MLa-b8-424.title" = "Todas as amostras são forçadas";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "High @ 3.1"; ObjectID = "Mre-1h-VoX"; */
|
||||||
|
"Mre-1h-VoX.title" = "High @ 3.1";
|
||||||
|
|
||||||
|
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Scaled Size Height"; ObjectID = "n9M-HO-S4Z"; */
|
||||||
|
"n9M-HO-S4Z.ibExternalAccessibilityDescription" = "Altura do Tamanho Escalado";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Current profile: unknown"; ObjectID = "NIA-f8-VWx"; */
|
||||||
|
"NIA-f8-VWx.title" = "Perfil atual: desconhecido";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Forced track:"; ObjectID = "NPR-jz-Ile"; */
|
||||||
|
"NPR-jz-Ile.title" = "Faixa Forçada:";
|
||||||
|
|
||||||
|
/* Class = "NSButtonCell"; title = "Preserve Aspect Ratio"; ObjectID = "nr0-Jc-cUj"; */
|
||||||
|
"nr0-Jc-cUj.title" = "Preservar a proporção";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "H.264 Video Profile/Level:"; ObjectID = "nrd-22-FZl"; */
|
||||||
|
"nrd-22-FZl.title" = "Perfil/Nível de Vídeo H.264:";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Undefined (2-2-2)"; ObjectID = "Pxl-vS-IAs"; */
|
||||||
|
"Pxl-vS-IAs.title" = "Indefinido (2-2-2)";
|
||||||
|
|
||||||
|
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Aspect Ratio Numerator"; ObjectID = "Q0D-6k-Hgx"; */
|
||||||
|
"Q0D-6k-Hgx.ibExternalAccessibilityDescription" = "Numerador de proporção";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Aspect Ratio:"; ObjectID = "Q8w-0e-NRr"; */
|
||||||
|
"Q8w-0e-NRr.title" = "Proporção:";
|
||||||
|
|
||||||
|
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Offset X"; ObjectID = "qFL-0W-Ye6"; */
|
||||||
|
"qFL-0W-Ye6.ibExternalAccessibilityDescription" = "Deslocamento X";
|
||||||
|
|
||||||
|
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Scaled Size Width"; ObjectID = "r90-c5-7PH"; */
|
||||||
|
"r90-c5-7PH.ibExternalAccessibilityDescription" = "Largura do tamanho escalado";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "1"; ObjectID = "S4p-0Y-kRW"; */
|
||||||
|
"S4p-0Y-kRW.title" = "1";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Normal Size:"; ObjectID = "soD-gL-b4G"; */
|
||||||
|
"soD-gL-b4G.title" = "Dimensões:";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "6"; ObjectID = "sqU-tK-Ekm"; */
|
||||||
|
"sqU-tK-Ekm.title" = "6";
|
||||||
|
|
||||||
|
/* Class = "NSTextFieldCell"; title = "Offset:"; ObjectID = "ubI-H1-utj"; */
|
||||||
|
"ubI-H1-utj.title" = "Deslocamento:";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "None"; ObjectID = "vVg-S9-JUk"; */
|
||||||
|
"vVg-S9-JUk.title" = "Nenhum";
|
||||||
|
|
||||||
|
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Offset Y"; ObjectID = "wlV-Oh-ui5"; */
|
||||||
|
"wlV-Oh-ui5.ibExternalAccessibilityDescription" = "Deslocamento Y";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Rec. 601 (5-1-6)"; ObjectID = "X7B-de-Yur"; */
|
||||||
|
"X7B-de-Yur.title" = "Rec. 601 (5-1-6)";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "High @ 4.1"; ObjectID = "Xeg-lb-cfA"; */
|
||||||
|
"Xeg-lb-cfA.title" = "High @ 4.1";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Rec. 601 (6-1-6)"; ObjectID = "XQd-tC-sVM"; */
|
||||||
|
"XQd-tC-sVM.title" = "Rec. 601 (6-1-6)";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "P3-DCI (11-17-6)"; ObjectID = "z4V-UV-xor"; */
|
||||||
|
"z4V-UV-xor.title" = "P3-DCI (11-17-6)";
|
||||||
|
|
||||||
|
/* Class = "NSTabViewItem"; label = "Media Characteristics"; ObjectID = "ZZa-lk-8Uv"; */
|
||||||
|
"ZZa-lk-8Uv.label" = "Características da mídia";
|
||||||
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
/* Class = "NSTabViewItem"; label = "Chapters"; ObjectID = "11"; */
|
||||||
|
"11.label" = "章节";
|
||||||
|
|
||||||
|
/* Class = "NSTableView"; ibExternalAccessibilityDescription = "Chapters"; ObjectID = "22"; */
|
||||||
|
"22.ibExternalAccessibilityDescription" = "章节";
|
||||||
|
|
||||||
|
/* Class = "NSTableColumn"; headerCell.title = "Time"; ObjectID = "24"; */
|
||||||
|
"24.headerCell.title" = "时间";
|
||||||
|
|
||||||
|
/* Class = "NSTableColumn"; headerCell.title = "Title"; ObjectID = "25"; */
|
||||||
|
"25.headerCell.title" = "标题";
|
||||||
|
|
||||||
|
/* Class = "NSButton"; ibShadowedToolTip = "Delete selected chapter"; ObjectID = "31"; */
|
||||||
|
"31.ibShadowedToolTip" = "删除所选章节";
|
||||||
|
|
||||||
|
/* Class = "NSButton"; ibShadowedToolTip = "Add chapter"; ObjectID = "42"; */
|
||||||
|
"42.ibShadowedToolTip" = "添加章节";
|
||||||
|
|
||||||
|
/* Class = "NSMenuItem"; title = "Rename every chapter"; ObjectID = "SOg-Lz-v5L"; */
|
||||||
|
"SOg-Lz-v5L.title" = "重命名所有章节";
|
||||||
|
|
||||||
Loaded 100 of 214 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user