179 Commits
Author SHA1 Message Date
Damiano Galassi 9077b6d149 Bump version to 1.9.5 2026-10-05 08:56:50 +02:00
Damiano Galassi a3e15e725a Update Italian localization 2026-10-05 08:16:39 +02:00
Damiano Galassi 839b47cd9e Update NEWS 2026-10-05 08:09:19 +02:00
Damiano Galassi b58346eda7 Improve selection restoration 2026-10-05 08:07:52 +02:00
Damiano Galassi 4c7a26a175 Move the 4k checkbox to the metadata preferences panel 2026-10-05 08:07:14 +02:00
Brett Pynn 85854a2f06 Add preference to allow 4k hd video metadata auto detection (#164) 2026-10-05 07:57:25 +02:00
Damiano Galassi a3f73cf1f8 Add missing classes to actions decoder
Fix #163.
2026-10-03 20:23:18 +02:00
Damiano Galassi a7739840ee Improve TVDB tv series name match 2026-10-03 20:17:52 +02:00
Damiano Galassi d0cd519460 Improve track view selection after an import 2026-10-03 17:59:29 +02:00
Damiano Galassi 1040f0dab6 Switch to the appropriate view after an action 2026-10-03 17:52:22 +02:00
Damiano Galassi dfdffb9332 Better preserve the UI state after an undo 2026-10-03 17:20:42 +02:00
Damiano Galassi 530ea2ed20 Use the newer actions icon on macOS 26 and later 2026-10-03 14:06:24 +02:00
Damiano Galassi 23f683626d Improve tracks and chapters undo 2026-10-03 14:06:06 +02:00
Damiano Galassi 934ae63b95 Expand undo/redo to all the document UI 2026-10-03 11:49:04 +02:00
Damiano Galassi 1cb5fb59dc Remove the '…' at the end of the 'Load more artworks' button 2026-10-01 10:55:11 +02:00
Damiano Galassi 81d5f8902c Add artworks in a deterministic order 2026-10-01 10:54:42 +02:00
Brett Pynn a48cb77aac Strip leading zeroes while preserving a real numeric zero (for example, S00 specials). (#160)
I always forget the regex syntax, so I can't really review the changes, but if it works…
2026-10-01 08:08:49 +02:00
Damiano Galassi d930bdb0a6 Do not retrieve the iTunes Store artworks when using a different provider
The iTunes Store API seems quite broken lately, and it doesn't add anything of value
2026-09-30 18:01:34 +02:00
Damiano Galassi 8c0d366764 Increase the default metadata search sheet width 2026-09-30 17:22:04 +02:00
Damiano Galassi 33a7665c5a Order the top artworks to make to make the various size options easier to pick 2026-09-30 17:21:35 +02:00
Damiano Galassi 43a768a187 Update NEWS 2026-09-30 12:05:56 +02:00
Damiano Galassi 8290bf7c52 Bump versio to 1.9.4 2026-09-30 11:57:24 +02:00
Damiano Galassi b250450966 Use the localized folder names 2026-09-30 11:55:48 +02:00
Damiano Galassi c84cfd47e3 Update localization 2026-09-30 11:48:22 +02:00
Damiano Galassi 53e46d8095 Update submodule 2026-09-30 11:40:50 +02:00
Damiano Galassi d9131ffc3b Update submodule 2026-09-29 16:19:20 +02:00
Damiano Galassi 0305d5371c Clean up project folder 2026-09-29 12:14:37 +02:00
Damiano Galassi 257e412987 Fix typos 2026-09-29 12:13:46 +02:00
Damiano Galassi 73e27ef56c Disable drag & drop for muxed tracks 2026-09-29 10:41:57 +02:00
Damiano Galassi 59f085a7e4 Rename the 'Last used' save position to 'Automatic'
It's not always the last used position
2026-09-25 07:50:06 +02:00
Damiano Galassi 40107a9db1 Fix the jpeg check on macOS 11 and later
Fix #151.
2026-09-25 07:48:42 +02:00
Damiano Galassi ce011a4d37 Cleanup the Save As destination feature a bit 2026-09-23 21:29:18 +02:00
mindprint c8fb950854 Add a Save As location preference (#145)
Add a General preferences option controlling where the Save As panel
opens: the last used folder (default), the same folder as the
imported file, or a custom folder chosen by the user.
2026-09-23 21:15:08 +02:00
Damiano Galassi 151530d6ab Fix things 2026-09-23 15:55:36 +02:00
Damiano Galassi 94255d6e17 Add an additional space in the default toolbar set 2026-09-23 15:55:17 +02:00
Damiano Galassi a65fcf9bf2 Set the document window to use fullSizeContentView to avoid AppKit bugs 2026-09-23 15:54:48 +02:00
Damiano Galassi b7910bdb45 Bump version to 1.9.3 2026-09-23 11:19:38 +02:00
Damiano Galassi 3017c4ef35 Update NEWS 2026-09-23 11:18:47 +02:00
Damiano Galassi e12618bda4 Initial work to replace a deprecated API 2026-09-23 11:12:37 +02:00
Damiano Galassi b88b3d48a6 Align things on older macOS versions 2026-09-23 11:12:01 +02:00
Damiano Galassi e3f67451b0 Restore some code that might be useful in the future 2026-09-23 10:47:56 +02:00
Damiano Galassi 2f3050f9d0 Improve constraints 2026-09-23 09:54:43 +02:00
Damiano Galassi fbdbb2006b Remove an unused var 2026-09-23 09:54:16 +02:00
Damiano Galassi 9ac32753d4 Fix the macOS version in an available check 2026-09-23 09:54:01 +02:00
Damiano Galassi d399af54b2 Increase the default document window size to workaround tableview wonky initial coloums size 2026-09-23 09:27:41 +02:00
Damiano Galassi 689f51d002 Modify the search layout a bit 2026-09-23 09:00:50 +02:00
Damiano Galassi 6307626786 Bump version to 1.9.3 2026-09-23 09:00:33 +02:00
Damiano Galassi 7990e816b2 Fix build on macOS 26 SDK 2026-09-22 20:34:17 +02:00
Damiano Galassi d8d40fa315 Update submodule 2026-09-22 20:19:14 +02:00
Damiano Galassi 9896d96e87 Fix the first launch toolbar styles 2026-09-22 20:03:06 +02:00
Damiano Galassi 334bc51906 Update localizations 2026-09-22 20:02:45 +02:00
Damiano Galassi 8dd1adc199 Fix some UI issues 2026-09-22 19:59:57 +02:00
Damiano Galassi 192de27e8d Fix even more deprecation warnings 2026-09-22 18:51:35 +02:00
Damiano Galassi 97b88a2adb Update submodule 2026-09-22 18:50:20 +02:00
Damiano Galassi abdfa38d2d Use UserNotifications on macOS 11 and later 2026-09-22 17:19:08 +02:00
Damiano Galassi f8667656ef Use the ellipsis icon on macOS 26 and later 2026-09-22 17:18:32 +02:00
Damiano Galassi 22c449f798 Use a gesture recognizer to handle the double click 2026-09-22 16:29:42 +02:00
Damiano Galassi 17c7d67b96 Use some modern APIs and fix warnings on the latest macOS SDK 2026-09-22 16:10:37 +02:00
Damiano Galassi beb7774761 Add a preference to overwrite or not existing metadata 2026-09-11 09:52:03 +02:00
Damiano Galassi 6c124ca5d0 Disable the track import checkbox if the track can't be imported 2026-09-11 09:34:26 +02:00
Damiano Galassi b0d8ee73a8 Update submodule 2026-08-27 16:51:34 +02:00
Konstantin Klitenik ed69edf45f Use .standard for portrait images in TheTVDB (#144) 2026-08-27 16:50:37 +02:00
Damiano Galassi 4f2c8f2509 Try to match the translated title 2026-08-27 16:45:50 +02:00
Damiano Galassi 16e81d4be0 Bump version to 1.9.2 2026-08-19 10:24:10 +02:00
Damiano Galassi 153b8e6570 Update Sparkle 2026-08-19 10:20:07 +02:00
Damiano Galassi 45cf445bca Update submodule 2026-08-19 10:19:46 +02:00
Damiano Galassi cf3dae6490 Truncate file name in the middle 2026-08-19 10:16:28 +02:00
Damiano Galassi 51f395469c Do simpler API calls for a single TVDB episode 2026-08-17 09:54:38 +02:00
Damiano Galassi c01460cb43 Load all TVDB episodes if there are more than 500 2026-08-17 09:24:19 +02:00
Damiano Galassi fc082f3bca Make more fields optional 2026-08-16 08:57:23 +02:00
Damiano Galassi 9122f520db TVDB movie metadata search 2026-08-14 14:46:01 +02:00
Damiano Galassi 1a797e20fa Update submodule 2026-08-14 10:46:52 +02:00
Damiano Galassi f58142a250 Fetch TVDB episodes metadata in another language if they are not available in the selected language 2026-08-14 10:46:39 +02:00
Damiano Galassi 68bef59a9f Improve TVDB languages selection 2026-08-10 18:24:46 +02:00
Damiano Galassi 78ddedb92a Fetch TVDB languages 2026-08-10 14:41:39 +02:00
Brett Pynn 68709ef2ec Small console fixes (#141) 2026-08-10 08:22:10 +02:00
Damiano Galassi 9aaf78acd2 Part 2 of TVDB v4 API 2026-08-07 13:10:08 +02:00
Damiano Galassi d6cd740aa8 Part 1 of TVDB v4 API 2026-08-06 17:20:32 +02:00
arnnalddo 418196dbe0 Add Paraguay iTunes Store. (#133) 2026-08-03 10:42:35 +02:00
Damiano Galassi aeda6095a8 Get higher quality images from AppleTV
Fix #25
2025-10-13 15:32:20 +02:00
Damiano Galassi 4b5f384a56 Re-implement cut command in the artworks view 2025-10-13 15:17:38 +02:00
Damiano Galassi d50ad9a86f Fix Info.plist 2025-10-13 15:14:48 +02:00
Damiano Galassi 03c9a0a129 Disable one time code autofill in macOS 26 2025-09-30 07:08:45 +02:00
Damiano Galassi 11633fe0e2 Fix typo 2025-09-30 07:08:28 +02:00
Damiano Galassi c928f94e18 Update NEWS 2025-09-22 11:56:34 +02:00
Damiano Galassi 49edd9adc5 Bump version to 1.9.1 2025-09-22 11:47:24 +02:00
Damiano Galassi 43ebf7e835 Remove some auto layout constraints to work around a crash in macOS 26 2025-09-22 11:46:38 +02:00
gwjr 6bc6b749c5 Enclose application's queue items within Subler automation suite (#84) 2025-09-21 07:10:27 +02:00
Damiano Galassi 20521b0446 Improve the default placement of some windows 2025-09-19 08:12:04 +02:00
Damiano Galassi dea7426df2 Use the gear symbol for the queue settings 2025-09-19 08:11:44 +02:00
Damiano Galassi 5de48ff7c9 Update NEWS 2025-09-18 16:38:47 +02:00
Damiano Galassi 9fb9665b36 Align bottom chapters UI 2025-09-18 16:20:10 +02:00
Damiano Galassi e352888937 Fix some UI elements alignments on macOS 10.13 2025-09-18 16:16:47 +02:00
Damiano Galassi 56a424ca7e Hide the actions toolbar item indicator on macOS 26 2025-09-18 15:41:49 +02:00
Damiano Galassi 6e9be6c89e Update the actions item toolbar icon 2025-09-18 15:38:37 +02:00
Damiano Galassi a50ba3910e Update toolbars icons and default orders 2025-09-18 15:28:13 +02:00
Damiano Galassi f8388175d8 Fix an Italian loc string 2025-09-18 15:27:56 +02:00
Damiano Galassi 1fe4d225bf App icon tweaks 2025-09-18 15:27:37 +02:00
Damiano Galassi eaa28f9efd Update Italian localization 2025-09-18 14:21:44 +02:00
Damiano Galassi 770e15d1a5 Bump version to 1.9.0 2025-09-18 14:10:14 +02:00
Damiano Galassi 2f1bb0a51c Set some info labels color to secondary color 2025-09-18 13:54:00 +02:00
Damiano Galassi 21682cd1a4 Fourth test 2025-09-18 12:29:29 +02:00
Damiano Galassi cda042d5e8 Third test 2025-09-18 12:14:37 +02:00
Damiano Galassi 81d3c565e8 A second icon experiment 2025-09-18 12:02:16 +02:00
Damiano Galassi b152c18e2f Fix queue column size 2025-09-17 17:53:42 +02:00
Damiano Galassi c0d36f5767 Fix autolayout constrains 2025-09-17 17:50:44 +02:00
Damiano Galassi 72a7288834 Fix file extension in the save panel 2025-09-17 17:36:36 +02:00
Damiano Galassi 0b35d88f8d Work in progress of a new icon 2025-09-17 16:46:07 +02:00
Damiano Galassi dfc2e86ec3 Update Metadata prefs delete button state 2025-09-17 16:01:33 +02:00
Damiano Galassi d6b72cafce Switch the latest NSButtons 2025-09-17 15:55:08 +02:00
Damiano Galassi aa350a876b Switch more NSButtons to default style 2025-09-17 15:46:08 +02:00
Damiano Galassi c2ad5130df Switch to standard push buttons 2025-09-17 15:04:56 +02:00
Damiano Galassi 23aaff4933 Update XIBs 2025-09-16 12:39:39 +02:00
Damiano Galassi 3b62db369f Update submodule 2025-09-16 11:56:15 +02:00
Damiano Galassi 40b32a8cca Fix build on Xcode 26 2025-09-16 11:53:58 +02:00
Damiano Galassi df8facbcbe Update again the app category 2025-09-16 11:53:04 +02:00
Damiano Galassi 3a3d2cdf8d Update Sparkle to version 2.8.0 2025-09-16 11:51:06 +02:00
Damiano Galassi dcc8281d20 Add app category 2025-09-16 11:49:23 +02:00
Damiano Galassi a029d2bf23 Fix imports 2025-09-16 11:48:58 +02:00
Damiano Galassi 91cf78c0cc Update submodule 2025-09-16 11:48:48 +02:00
Damiano Galassi 2e34a3affd Update localization 2025-09-11 16:29:41 +02:00
Damiano Galassi e016c5fc60 Hook up the service content id to all the metadata providers 2025-09-11 16:29:29 +02:00
Damiano Galassi f270e3dca7 Update submodule 2025-09-08 14:39:08 +02:00
Damiano Galassi d78b320322 Use modern UTI API in the save panel 2025-09-08 14:38:24 +02:00
Damiano Galassi 80e561d88c Update Sparkle to 2.7.1 2025-08-12 16:28:59 +02:00
Damiano Galassi 210cb96196 Bump version to 1.8.9 2025-08-12 16:22:21 +02:00
Damiano Galassi 56c7f01d07 Update NEWS 2025-08-12 16:21:12 +02:00
Damiano Galassi 04eab36031 Update submodule 2025-08-12 16:14:56 +02:00
Michael Mock d88285ece2 Subler Automation Support (#67)
Expand the AppleScript dictionary to support many additional commands.
2025-08-12 11:52:16 +02:00
Michael Mock 20a8714974 Menu Items and Hotkeys 2025-08-08 17:11:39 +02:00
Damiano Galassi 13f1f301e3 Add a "At the Beginning" item to the action menu 2025-08-08 17:09:35 +02:00
Damiano Galassi 5890c9abe2 Fix the none artwork queue option
Fix #59.
2025-07-25 18:06:51 +02:00
Damiano Galassi 2a1d8b08e1 Fix Swedish Rating
Fix #73.
2025-07-25 17:42:56 +02:00
Damiano Galassi 971adb6342 Fix the insert a chapter at the beginning action
Fix #74.
2025-07-25 17:36:46 +02:00
Damiano Galassi 87837a0f5e Cleanup logger 2025-07-05 09:30:19 +02:00
Michael Mock a4e4b6027d Logging functionality (#71)
Enhancing logging functionality, including log format options
2025-07-05 09:29:41 +02:00
Damiano Galassi bf012927b4 Expose the services ids in the metadata map 2025-06-24 10:02:42 +02:00
Damiano Galassi 3f5c5e7459 Autorecalculate key view loop 2025-06-24 09:53:59 +02:00
Damiano Galassi 1fd17a5cd0 Update NEWS 2025-03-22 10:10:06 +01:00
Damiano Galassi 5965ce4836 Bump version to 1.8.8 2025-03-22 10:07:35 +01:00
Damiano Galassi d9f2681bba Save movie view and presets editor view zoom level to a separate key 2025-03-22 10:06:47 +01:00
Damiano Galassi c256d87e50 Connect the zoom slider outlet 2025-03-19 16:19:54 +01:00
Damiano Galassi 7e1e9c148c Update NEWS 2025-03-17 16:32:05 +01:00
Damiano Galassi 7aa1674c08 Bump version to 1.8.7 2025-03-17 14:35:09 +01:00
Damiano Galassi e44a786b72 Update submodule 2025-03-17 14:33:52 +01:00
Damiano Galassi f0faeb066a Fix queue toolbar items validation 2025-03-13 09:50:35 +01:00
Damiano Galassi 7abffdda03 Bump version to 1.8.6 2025-03-11 11:58:38 +01:00
Damiano Galassi bc2597499b Update submodule 2025-03-11 11:57:31 +01:00
Damiano Galassi b6163b4d80 Update NEWS 2025-03-11 11:33:00 +01:00
Damiano Galassi 9ea235a35e Fix the checkOnlySelectedTracks function to make it work with multiple files 2025-03-11 11:23:22 +01:00
Karsten 5fdf9efa80 Added Check-Only-Selected Item
** How was it Changed? **
- importing media to a video, a dialog appears with the tracks to be imported. All tracks are enabled
- there is already a context-menu-item to only check the selected language
- i added another item to the context menu to only check the selected tracks
- the logic is simple:
   - if nothing is selected, the target item is the only checked item
   - if there's selection, these items will then be checked
   - target-item has precedence from selected items because it's more precise but can also be fixed by reopening the menu by targeting the selection

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

No files matched your search

+17
View File
@@ -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

+7
View File
@@ -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

+250
View File
@@ -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"
}
}
+37 -37
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -24,14 +24,14 @@
</declaredKeys>
</userDefaultsController>
<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"/>
<subviews>
<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>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="101">
<rect key="frame" x="18" y="232" width="133" height="16"/>
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="101">
<rect key="frame" x="18" y="236" width="133" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Convert:" id="102">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -39,10 +39,10 @@
</textFieldCell>
</textField>
<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">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
<font key="font" metaFont="message"/>
<menu key="menu" id="rX2-PN-Ebm">
<items>
<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"/>
</connections>
</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"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Bitrate (per channel):" id="190">
<font key="font" metaFont="system"/>
@@ -68,7 +68,7 @@
</textFieldCell>
</textField>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -77,8 +77,8 @@
<binding destination="3" name="value" keyPath="values.SBOrganizeAlternateGroups" id="dwA-nR-J68"/>
</connections>
</button>
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="Z2f-U9-9ZT">
<rect key="frame" x="18" y="19" width="133" height="16"/>
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="Z2f-U9-9ZT">
<rect key="frame" x="18" y="20" width="133" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="HEVC:" id="XpG-OO-ZNT">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -86,7 +86,7 @@
</textFieldCell>
</textField>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -95,15 +95,15 @@
<binding destination="3" name="value" keyPath="values.SBAudioConvertAC3" id="112"/>
</connections>
</button>
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="113">
<rect key="frame" x="18" y="107" width="133" height="16"/>
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="113">
<rect key="frame" x="18" y="105" width="133" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Downmix audio to:" id="114">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" 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"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" title="kbps" id="202">
<font key="font" metaFont="system"/>
@@ -112,10 +112,10 @@
</textFieldCell>
</textField>
<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">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
<font key="font" metaFont="message"/>
<menu key="menu" id="117">
<items>
<menuItem title="Dolby Pro Logic II" state="on" tag="1" id="121"/>
@@ -132,7 +132,7 @@
</connections>
</popUpButton>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -142,7 +142,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -151,8 +151,8 @@
<binding destination="3" name="value" keyPath="values.SBAudioConvertDts" id="zGa-cq-MgW"/>
</connections>
</button>
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="Pud-GM-vyU">
<rect key="frame" x="18" y="47" width="133" height="16"/>
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="Pud-GM-vyU">
<rect key="frame" x="18" y="48" width="133" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="DRC:" id="kde-QJ-Sl9">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -160,13 +160,10 @@
</textFieldCell>
</textField>
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ETf-LE-57P">
<rect key="frame" x="154" y="41" width="65" height="25"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="60" id="fZU-8d-Ua1"/>
</constraints>
<rect key="frame" x="153" y="41" width="67" height="25"/>
<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"/>
<font key="font" metaFont="system"/>
<font key="font" metaFont="message"/>
<menu key="menu" id="v6x-m2-JTe">
<items>
<menuItem title="0" state="on" id="aHL-pt-Ze0"/>
@@ -177,13 +174,16 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="60" id="fZU-8d-Ua1"/>
</constraints>
<connections>
<accessibilityConnection property="title" destination="Pud-GM-vyU" id="I13-DW-46I"/>
<binding destination="123" name="selectedTag" keyPath="values.SBAudioDRC" id="ozi-Zd-fSY"/>
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="hgg-QV-i0I">
<rect key="frame" x="18" y="286" width="133" height="16"/>
<textField focusRingType="none" verticalHuggingPriority="750" preferredMaxLayoutWidth="400" translatesAutoresizingMaskIntoConstraints="NO" id="hgg-QV-i0I">
<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">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -191,7 +191,7 @@
</textFieldCell>
</textField>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -202,13 +202,10 @@
</connections>
</button>
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="191">
<rect key="frame" x="155" y="70" width="65" height="25"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="60" id="gDw-hn-dbd"/>
</constraints>
<rect key="frame" x="154" y="69" width="67" height="25"/>
<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"/>
<font key="font" metaFont="system"/>
<font key="font" metaFont="message"/>
<menu key="menu" id="193">
<items>
<menuItem title="64" state="on" tag="64" id="194"/>
@@ -226,13 +223,16 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="60" id="gDw-hn-dbd"/>
</constraints>
<connections>
<accessibilityConnection property="title" destination="189" id="hSG-o4-8UE"/>
<binding destination="123" name="selectedTag" keyPath="values.SBAudioBitrate" id="205"/>
</connections>
</popUpButton>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -243,7 +243,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
+12 -12
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -25,7 +25,7 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -38,7 +38,7 @@ DQ
</connections>
</button>
<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>
<constraint firstAttribute="width" constant="100" id="o7H-4a-ogx"/>
</constraints>
@@ -49,8 +49,8 @@ DQ
</connections>
</slider>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="iH5-SJ-sDV">
<rect key="frame" x="13" y="13" width="159" height="32"/>
<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">
<rect key="frame" x="20" y="20" width="145" height="24"/>
<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"/>
<font key="font" metaFont="system"/>
<string key="keyEquivalent">l</string>
@@ -61,7 +61,7 @@ DQ
</connections>
</button>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -74,13 +74,13 @@ Gw
</connections>
</button>
<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">
<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"/>
<subviews>
<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"/>
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="lte-fF-bVi">
<size key="itemSize" width="154" height="194"/>
@@ -99,7 +99,7 @@ Gw
<autoresizingMask key="autoresizingMask"/>
</scroller>
<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"/>
</scroller>
</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="AYL-Jp-agY" firstAttribute="centerY" secondItem="NEi-uU-Lh7" secondAttribute="centerY" id="zvc-Fx-gsf"/>
</constraints>
<point key="canvasLocation" x="72.5" y="129.5"/>
<point key="canvasLocation" x="239" y="56"/>
</view>
</objects>
</document>
+16 -10
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -36,8 +36,14 @@
<action selector="checkOnlyTracksWithSameLanguage:" target="-2" id="3Gg-ed-oeo"/>
</connections>
</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>
<point key="canvasLocation" x="139" y="146"/>
<point key="canvasLocation" x="-538" y="123"/>
</menu>
<view id="XhE-7o-ek3">
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<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"/>
<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"/>
<font key="font" metaFont="menu"/>
<font key="font" metaFont="message"/>
<menu key="menu" id="i8l-4s-h93"/>
</popUpButtonCell>
<connections>
@@ -303,7 +309,7 @@
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</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"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Select tracks:" id="1JV-df-zeq">
<font key="font" metaFont="systemBold"/>
+173 -96
View File
@@ -1,13 +1,14 @@
<?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>
<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"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="GeneralPrefsViewController" customModule="Subler" customModuleProvider="target">
<connections>
<outlet property="saveLocationPopUp" destination="saveLocationPopUp" id="saveLocationOutlet"/>
<outlet property="view" destination="76" id="u5x-9E-WAf"/>
</connections>
</customObject>
@@ -21,33 +22,34 @@
<string>windowSize</string>
<string>rememberWindowSize</string>
<string>chaptersPreviewTrack</string>
<string>SBLogFormat</string>
</declaredKeys>
</userDefaultsController>
<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"/>
<subviews>
<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>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XPF-Mh-XYC">
<rect key="frame" x="147" y="139" width="57" height="14"/>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="754" translatesAutoresizingMaskIntoConstraints="NO" id="XPF-Mh-XYC">
<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">
<font key="font" metaFont="message" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="249">
<rect key="frame" x="129" y="95" width="165" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="1000" verticalCompressionResistancePriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="249">
<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">
<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"/>
</textFieldCell>
</textField>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -57,7 +59,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -70,16 +72,16 @@
</binding>
</connections>
</button>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="139">
<rect key="frame" x="18" y="54" width="107" height="16"/>
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="139">
<rect key="frame" x="18" y="58" width="112" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Privacy:" id="140">
<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>
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="82">
<rect key="frame" x="129" y="180" width="232" height="18"/>
<button verticalHuggingPriority="1000" verticalCompressionResistancePriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="82">
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -92,16 +94,16 @@
</binding>
</connections>
</button>
<slider verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="JhA-jk-CGt">
<rect key="frame" x="147" y="152" width="214" height="24"/>
<slider verticalHuggingPriority="1000" verticalCompressionResistancePriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="JhA-jk-CGt">
<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"/>
<connections>
<binding destination="3" name="value" keyPath="values.SBChaptersPreviewPosition" id="JtQ-lM-MNU"/>
<binding destination="3" name="enabled" keyPath="values.chaptersPreviewTrack" id="hNU-uO-zsL"/>
</connections>
</slider>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="206">
<rect key="frame" x="18" y="115" width="107" height="16"/>
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="206">
<rect key="frame" x="18" y="142" width="112" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Show ratings for:" id="207">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -109,7 +111,7 @@
</textFieldCell>
</textField>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -118,8 +120,8 @@
<action selector="deleteCachedMetadata:" target="-2" id="141"/>
</connections>
</button>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="81">
<rect key="frame" x="18" y="181" width="107" height="16"/>
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="81">
<rect key="frame" x="18" y="216" width="112" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Chapters:" id="85">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -127,7 +129,7 @@
</textFieldCell>
</textField>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -136,32 +138,48 @@
<binding destination="3" name="value" keyPath="values.SUEnableAutomaticChecks" id="6AF-uh-wt7"/>
</connections>
</button>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="77">
<rect key="frame" x="18" y="263" width="107" height="16"/>
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="77">
<rect key="frame" x="18" y="338" width="112" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="At Launch:" id="89">
<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 horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tVb-Qq-sU7">
<rect key="frame" x="337" y="139" width="24" height="14"/>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tVb-Qq-sU7">
<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">
<font key="font" metaFont="message" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="78">
<rect key="frame" x="18" y="205" width="107" height="16"/>
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="78">
<rect key="frame" x="18" y="276" width="112" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Window:" id="88">
<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="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">
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -170,16 +188,16 @@
<binding destination="3" name="value" keyPath="values.SBShowOpenPanelAtLaunch" id="T36-sT-wu3"/>
</connections>
</button>
<popUpButton verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="236">
<rect key="frame" x="129" y="108" width="185" height="25"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="180" id="mhj-Zx-MME"/>
</constraints>
<popUpButton verticalHuggingPriority="1000" verticalCompressionResistancePriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="236">
<rect key="frame" x="136" y="138" width="180" height="24"/>
<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"/>
<font key="font" metaFont="system"/>
<font key="font" metaFont="message"/>
<menu key="menu" id="238"/>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="180" id="2hc-oc-YJo"/>
</constraints>
<connections>
<accessibilityConnection property="title" destination="206" id="SzO-00-e3U"/>
<action selector="updateRatingsCountry:" target="-2" id="242"/>
@@ -187,79 +205,138 @@
<binding destination="123" name="selectedValue" keyPath="values.SBRatingsCountry" previousBinding="245" id="248"/>
</connections>
</popUpButton>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mNP-6I-gV4">
<rect key="frame" x="232" y="139" width="44" height="14"/>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mNP-6I-gV4">
<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">
<font key="font" metaFont="message" size="11"/>
<color key="textColor" name="labelColor" 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="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>
<constraints>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="236" secondAttribute="trailing" constant="20" symbolic="YES" id="1oW-ke-hqe"/>
<constraint firstItem="tVb-Qq-sU7" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" id="27C-Ly-Tkt"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="82" secondAttribute="trailing" constant="20" symbolic="YES" id="3hd-ph-Nok"/>
<constraint firstItem="136" firstAttribute="leading" secondItem="133" secondAttribute="leading" id="4f8-7e-F9H"/>
<constraint firstItem="236" firstAttribute="firstBaseline" secondItem="206" secondAttribute="firstBaseline" id="5Vz-H5-wjk"/>
<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="136" firstAttribute="top" secondItem="133" secondAttribute="bottom" constant="10" id="7kk-gt-dXa"/>
<constraint firstItem="78" firstAttribute="leading" secondItem="77" secondAttribute="leading" id="8JN-XP-DsB"/>
<constraint firstItem="139" firstAttribute="leading" secondItem="206" secondAttribute="leading" id="98n-sk-tTI"/>
<constraint firstItem="mNP-6I-gV4" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" id="A3z-Gk-hqC"/>
<constraint firstItem="79" firstAttribute="leading" secondItem="77" secondAttribute="trailing" constant="8" id="AmK-53-V7H"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="136" secondAttribute="trailing" constant="20" symbolic="YES" id="BUH-t3-FKl"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="79" secondAttribute="trailing" constant="20" symbolic="YES" id="C2B-fq-5vM"/>
<constraint firstItem="81" firstAttribute="leading" secondItem="78" secondAttribute="leading" id="Ctg-6r-Vpm"/>
<constraint firstAttribute="bottom" secondItem="136" secondAttribute="bottom" constant="20" symbolic="YES" id="Cxf-3a-EqU"/>
<constraint firstItem="133" firstAttribute="top" secondItem="249" secondAttribute="bottom" constant="23" id="DFU-xm-8vq"/>
<constraint firstItem="B5v-6Q-3Qa" firstAttribute="leading" secondItem="79" secondAttribute="leading" id="FJg-U6-HDs"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" constant="20" id="J3X-XR-5sZ"/>
<constraint firstItem="82" firstAttribute="leading" secondItem="81" secondAttribute="trailing" constant="8" id="LHd-r8-b8o"/>
<constraint firstItem="JhA-jk-CGt" firstAttribute="leading" secondItem="82" secondAttribute="leading" constant="18" id="NQL-dp-Vub"/>
<constraint firstItem="XPF-Mh-XYC" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" id="O6P-tC-NH3"/>
<constraint firstItem="78" firstAttribute="width" secondItem="81" secondAttribute="width" id="QlR-IC-jsI"/>
<constraint firstItem="JhA-jk-CGt" firstAttribute="top" secondItem="82" secondAttribute="bottom" constant="8" id="QnP-ja-Gc7"/>
<constraint firstItem="XPF-Mh-XYC" firstAttribute="leading" secondItem="JhA-jk-CGt" secondAttribute="leading" id="Rfn-GF-l2N"/>
<constraint firstItem="82" firstAttribute="top" secondItem="80" secondAttribute="bottom" constant="10" id="Rh6-wr-DAJ"/>
<constraint firstItem="236" firstAttribute="top" secondItem="XPF-Mh-XYC" secondAttribute="bottom" constant="7" id="SB1-bz-e1K"/>
<constraint firstItem="tVb-Qq-sU7" firstAttribute="trailing" secondItem="JhA-jk-CGt" secondAttribute="trailing" id="UtU-8c-yJh"/>
<constraint firstAttribute="trailing" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" priority="750" constant="20" id="WZa-Od-APp"/>
<constraint firstItem="JhA-jk-CGt" firstAttribute="trailing" secondItem="82" secondAttribute="trailing" id="XmQ-xf-0Vu"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="133" secondAttribute="trailing" constant="20" symbolic="YES" id="Xma-7G-WMb"/>
<constraint firstItem="80" firstAttribute="firstBaseline" secondItem="78" secondAttribute="firstBaseline" id="YqB-Qi-X3l"/>
<constraint firstItem="77" firstAttribute="width" secondItem="78" secondAttribute="width" id="Z1U-c1-eRX"/>
<constraint firstItem="82" firstAttribute="firstBaseline" secondItem="81" secondAttribute="firstBaseline" id="aYU-OT-jre"/>
<constraint firstItem="mNP-6I-gV4" firstAttribute="centerX" secondItem="JhA-jk-CGt" secondAttribute="centerX" id="b0h-AX-P0j"/>
<constraint firstItem="249" firstAttribute="top" secondItem="236" secondAttribute="bottom" constant="2" id="bJo-qb-vyA"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="JhA-jk-CGt" secondAttribute="trailing" constant="20" symbolic="YES" id="cO3-0g-Ika"/>
<constraint firstItem="206" firstAttribute="width" secondItem="139" secondAttribute="width" id="cVB-T7-Lgd"/>
<constraint firstItem="77" firstAttribute="top" secondItem="dxI-5Q-gDD" secondAttribute="top" constant="20" symbolic="YES" id="dAn-q7-AND"/>
<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="80" secondAttribute="trailing" constant="20" symbolic="YES" id="gEL-hv-NaH"/>
<constraint firstItem="206" firstAttribute="leading" secondItem="81" secondAttribute="leading" id="gu1-Mn-ct5"/>
<constraint firstItem="mNP-6I-gV4" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="XPF-Mh-XYC" secondAttribute="trailing" constant="8" symbolic="YES" id="jyx-OY-6tw"/>
<constraint firstItem="133" firstAttribute="firstBaseline" secondItem="139" secondAttribute="firstBaseline" id="kA6-a1-Krp"/>
<constraint firstItem="249" firstAttribute="leading" secondItem="236" secondAttribute="leading" id="kh1-gL-cmS"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="249" secondAttribute="trailing" constant="20" symbolic="YES" id="mef-Mj-rvp"/>
<constraint firstItem="236" firstAttribute="leading" secondItem="206" secondAttribute="trailing" constant="8" id="n47-AS-gXR"/>
<constraint firstItem="80" firstAttribute="leading" secondItem="78" secondAttribute="trailing" constant="8" id="nPD-Zb-eKT"/>
<constraint firstItem="82" firstAttribute="leading" secondItem="81" secondAttribute="trailing" constant="8" id="sCG-e3-Wcb"/>
<constraint firstItem="77" firstAttribute="firstBaseline" secondItem="79" secondAttribute="firstBaseline" id="tSW-F5-J12"/>
<constraint firstItem="136" firstAttribute="width" secondItem="133" secondAttribute="width" id="u0D-8L-4Yl"/>
<constraint firstItem="81" firstAttribute="width" secondItem="206" secondAttribute="width" id="v43-RZ-P1e"/>
<constraint firstItem="B5v-6Q-3Qa" firstAttribute="top" secondItem="79" secondAttribute="bottom" constant="6" id="vbo-wa-RS0"/>
<constraint firstItem="80" firstAttribute="top" secondItem="B5v-6Q-3Qa" secondAttribute="bottom" constant="24" id="wIZ-qs-cis"/>
<constraint firstItem="133" firstAttribute="leading" secondItem="139" secondAttribute="trailing" constant="8" id="y4R-KJ-KyA"/>
<constraint firstItem="133" firstAttribute="width" secondItem="136" secondAttribute="width" id="05F-cw-fMw"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="79" secondAttribute="trailing" id="0bd-hZ-ylz"/>
<constraint firstItem="78" firstAttribute="firstBaseline" secondItem="80" secondAttribute="firstBaseline" id="1td-Oe-7AD"/>
<constraint firstItem="79" firstAttribute="leading" secondItem="B5v-6Q-3Qa" secondAttribute="leading" id="2Mr-Mj-vU1"/>
<constraint firstItem="JhA-jk-CGt" firstAttribute="top" secondItem="82" secondAttribute="bottom" constant="8" symbolic="YES" id="2vm-yX-6Ce"/>
<constraint firstItem="80" firstAttribute="top" secondItem="B5v-6Q-3Qa" secondAttribute="bottom" constant="24" id="3ue-nN-QeE"/>
<constraint firstItem="B5v-6Q-3Qa" firstAttribute="top" secondItem="79" secondAttribute="bottom" constant="6" symbolic="YES" id="5ve-SK-Mci"/>
<constraint firstAttribute="bottom" secondItem="136" secondAttribute="bottom" constant="20" symbolic="YES" id="6Bj-Ao-4kA"/>
<constraint firstItem="78" firstAttribute="width" secondItem="81" secondAttribute="width" id="8Em-7b-7bc"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="JhA-jk-CGt" secondAttribute="trailing" id="8sB-JV-mUa"/>
<constraint firstItem="logFormatPopup" firstAttribute="top" secondItem="249" secondAttribute="bottom" constant="8" symbolic="YES" id="9n2-fa-iGe"/>
<constraint firstItem="logFormatLabel" firstAttribute="leading" secondItem="139" secondAttribute="leading" id="ACz-EL-4Hh"/>
<constraint firstItem="XPF-Mh-XYC" firstAttribute="firstBaseline" secondItem="mNP-6I-gV4" secondAttribute="firstBaseline" id="AFc-cn-ab1"/>
<constraint firstItem="77" firstAttribute="top" secondItem="dxI-5Q-gDD" secondAttribute="top" constant="20" symbolic="YES" id="D9x-E1-HxF"/>
<constraint firstItem="82" firstAttribute="leading" secondItem="JhA-jk-CGt" secondAttribute="leading" constant="-18" id="E8S-ti-ghL"/>
<constraint firstItem="82" firstAttribute="top" secondItem="saveLocationPopUp" secondAttribute="bottom" constant="10" id="ELH-2G-UJe"/>
<constraint firstItem="mNP-6I-gV4" firstAttribute="firstBaseline" secondItem="tVb-Qq-sU7" secondAttribute="firstBaseline" id="ElQ-mv-Pfd"/>
<constraint firstItem="206" firstAttribute="width" secondItem="logFormatLabel" secondAttribute="width" id="G5L-ax-8Io"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" id="Ies-Bx-zqg"/>
<constraint firstAttribute="trailing" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" priority="750" constant="19" id="L97-mT-mLE"/>
<constraint firstItem="77" firstAttribute="firstBaseline" secondItem="79" secondAttribute="firstBaseline" id="LWO-5R-E6y"/>
<constraint firstItem="136" firstAttribute="top" secondItem="133" secondAttribute="bottom" constant="10" id="MKK-lc-cU2"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="133" secondAttribute="trailing" id="MPl-R6-UUO"/>
<constraint firstItem="XPF-Mh-XYC" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" constant="6" id="MvX-7T-WjO"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="82" secondAttribute="trailing" id="N5X-3a-SM6"/>
<constraint firstItem="77" firstAttribute="leading" secondItem="dxI-5Q-gDD" secondAttribute="leading" constant="20" symbolic="YES" id="Ndo-DG-rTs"/>
<constraint firstItem="79" firstAttribute="leading" secondItem="77" secondAttribute="trailing" constant="8" symbolic="YES" id="Oa0-iG-Y8X"/>
<constraint firstItem="82" firstAttribute="leading" secondItem="81" secondAttribute="trailing" constant="8" symbolic="YES" id="OhX-HZ-gdU"/>
<constraint firstItem="236" firstAttribute="leading" secondItem="206" secondAttribute="trailing" constant="8" symbolic="YES" id="Sgq-Ky-wad"/>
<constraint firstItem="206" firstAttribute="leading" secondItem="logFormatLabel" secondAttribute="leading" id="TIw-54-KF5"/>
<constraint firstItem="133" firstAttribute="leading" secondItem="139" secondAttribute="trailing" constant="8" symbolic="YES" id="TQC-yN-iis"/>
<constraint firstItem="JhA-jk-CGt" firstAttribute="trailing" secondItem="tVb-Qq-sU7" secondAttribute="trailing" id="Tbj-IO-aVa"/>
<constraint firstItem="133" firstAttribute="leading" secondItem="136" secondAttribute="leading" id="TsE-6g-XG7"/>
<constraint firstItem="81" firstAttribute="leading" secondItem="206" secondAttribute="leading" id="UAx-iy-hxT"/>
<constraint firstItem="81" firstAttribute="firstBaseline" secondItem="82" secondAttribute="firstBaseline" id="VaX-EX-DOj"/>
<constraint firstItem="81" firstAttribute="width" secondItem="206" secondAttribute="width" id="X0h-iv-OhL"/>
<constraint firstItem="206" firstAttribute="firstBaseline" secondItem="236" secondAttribute="firstBaseline" id="Xab-xw-ax9"/>
<constraint firstItem="XPF-Mh-XYC" firstAttribute="leading" secondItem="JhA-jk-CGt" secondAttribute="leading" id="ZmN-hP-iwq"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="236" secondAttribute="trailing" id="abQ-h9-0wL"/>
<constraint firstItem="249" firstAttribute="top" secondItem="236" secondAttribute="bottom" constant="2" id="agf-iq-Fof"/>
<constraint firstItem="logFormatLabel" firstAttribute="firstBaseline" secondItem="logFormatPopup" secondAttribute="firstBaseline" id="fpM-Am-Shn"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="logFormatPopup" secondAttribute="trailing" id="gPM-A7-A88"/>
<constraint firstItem="JhA-jk-CGt" firstAttribute="width" secondItem="82" secondAttribute="width" multiplier="0.923077" id="jgz-Me-pjU"/>
<constraint firstItem="236" firstAttribute="top" secondItem="XPF-Mh-XYC" secondAttribute="bottom" constant="10" id="kR3-YO-JZD"/>
<constraint firstItem="78" firstAttribute="leading" secondItem="81" secondAttribute="leading" id="kaX-Td-UPd"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="80" secondAttribute="trailing" id="ltP-cz-uYy"/>
<constraint firstItem="236" firstAttribute="leading" secondItem="249" secondAttribute="leading" id="nFq-4a-rlf"/>
<constraint firstItem="JhA-jk-CGt" firstAttribute="centerX" secondItem="mNP-6I-gV4" secondAttribute="centerX" id="oJD-2R-bDt"/>
<constraint firstItem="logFormatLabel" firstAttribute="width" secondItem="139" secondAttribute="width" id="rof-yU-4Yg"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="136" secondAttribute="trailing" id="s3j-nY-Z3K"/>
<constraint firstItem="saveLocationLabel" firstAttribute="firstBaseline" secondItem="saveLocationPopUp" secondAttribute="firstBaseline" id="saveLocationBaseline"/>
<constraint firstItem="saveLocationPopUp" firstAttribute="leading" secondItem="saveLocationLabel" secondAttribute="trailing" constant="8" symbolic="YES" id="saveLocationHorizontalSpace"/>
<constraint firstItem="saveLocationLabel" firstAttribute="width" secondItem="206" secondAttribute="width" id="saveLocationLabelWidth"/>
<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>
</customView>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="dxI-5Q-gDD" secondAttribute="bottom" id="0Kk-6J-TZf"/>
<constraint firstItem="dxI-5Q-gDD" firstAttribute="centerX" secondItem="76" secondAttribute="centerX" id="At8-0S-kG8"/>
<constraint firstItem="dxI-5Q-gDD" firstAttribute="top" secondItem="76" secondAttribute="top" id="EGu-f6-P6n"/>
<constraint firstItem="dxI-5Q-gDD" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="76" secondAttribute="leading" id="A10-FJ-fxP"/>
<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="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>
<point key="canvasLocation" x="-452" y="-1223"/>
<point key="canvasLocation" x="-452" y="-1218"/>
</customView>
<userDefaultsController representsSharedInstance="YES" id="123"/>
</objects>
+25 -21
View File
@@ -1,8 +1,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>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="25098"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
@@ -38,7 +38,7 @@
<menuItem isSeparatorItem="YES" id="236">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Preferences…" keyEquivalent="," id="129" userLabel="121">
<menuItem title="Preferences…" preferredImageVisibility="hidden" keyEquivalent="," id="129" userLabel="121">
<connections>
<action selector="showPrefsWindow:" target="-1" id="558"/>
</connections>
@@ -147,12 +147,13 @@
<action selector="sendToQueue:" target="-1" id="599"/>
</connections>
</menuItem>
<menuItem title="Send To iTunes" id="597" userLabel="10">
<menuItem title="Send To iTunes" keyEquivalent="I" id="597" userLabel="10">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="sendToExternalApp:" target="-1" id="598"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="Wqy-Ps-5Qb"/>
<menuItem title="Import" id="544">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Import" id="545">
@@ -184,15 +185,18 @@
<menuItem isSeparatorItem="YES" id="74" userLabel="2">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Page Setup..." keyEquivalent="P" id="77" userLabel="5">
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<menuItem title="Start Queue" keyEquivalent="B" id="TRh-ZN-Id8">
<connections>
<action selector="runPageLayout:" target="-1" id="87"/>
<action selector="toggleStartStop:" target="449" id="ea4-oe-9YQ"/>
</connections>
</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>
<action selector="printDocument:" target="-1" id="373"/>
<action selector="removeCompletedItems:" target="-1" id="ouO-db-qWo"/>
</connections>
</menuItem>
</items>
@@ -241,8 +245,8 @@
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="532"/>
<menuItem title="Offset…" id="567">
<modifierMask key="keyEquivalentModifierMask"/>
<menuItem title="Offset…" keyEquivalent="o" id="567">
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
<connections>
<action selector="showTrackOffsetSheet:" target="-1" id="570"/>
</connections>
@@ -309,31 +313,31 @@
</items>
</menu>
</menuItem>
<menuItem title="Organize alternate groups" id="652">
<modifierMask key="keyEquivalentModifierMask"/>
<menuItem title="Organize alternate groups" keyEquivalent="g" id="652">
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
<connections>
<action selector="iTunesFriendlyTrackGroups:" target="-1" id="654"/>
</connections>
</menuItem>
<menuItem title="Clear tracks names" id="hKY-N2-NzK">
<modifierMask key="keyEquivalentModifierMask"/>
<menuItem title="Clear tracks names" keyEquivalent="n" id="hKY-N2-NzK">
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
<connections>
<action selector="clearTrackNames:" target="-1" id="KsZ-tN-sdV"/>
</connections>
</menuItem>
<menuItem title="Prettify audio track names" id="fm8-d2-1Yi">
<modifierMask key="keyEquivalentModifierMask"/>
<menuItem title="Prettify audio track names" keyEquivalent="p" id="fm8-d2-1Yi">
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
<connections>
<action selector="prettifyAudioTrackNames:" target="-1" id="z63-Uv-MTO"/>
</connections>
</menuItem>
<menuItem title="Fix audio fallbacks" id="FXb-bX-0Wb">
<modifierMask key="keyEquivalentModifierMask"/>
<menuItem title="Fix audio fallbacks" keyEquivalent="f" id="FXb-bX-0Wb">
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
<connections>
<action selector="fixAudioFallbacks:" target="-1" id="cpY-If-3df"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="568"/>
<menuItem isSeparatorItem="YES" id="yw4-pb-tNR"/>
<menuItem title="Find" id="218">
<menu key="submenu" title="Find" id="220">
<items>
@@ -488,7 +492,7 @@
</menu>
</menuItem>
</items>
<point key="canvasLocation" x="-244" y="-303"/>
<point key="canvasLocation" x="214" y="-221"/>
</menu>
<customObject id="419" customClass="NSFontManager"/>
<customObject id="449" userLabel="AppDelegate" customClass="AppDelegate" customModule="Subler" customModuleProvider="target">
+3 -3
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -88,7 +88,7 @@
<autoresizingMask key="autoresizingMask"/>
</scroller>
</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"/>
<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">
+152 -173
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -32,11 +32,11 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<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"/>
<subviews>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -49,7 +49,7 @@
</connections>
</button>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<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">
<rect key="frame" x="20" y="20" width="16" height="16"/>
</progressIndicator>
<tabView translatesAutoresizingMaskIntoConstraints="NO" id="6hW-RR-cfF">
<rect key="frame" x="-12" y="347" width="574" height="115"/>
<tabView horizontalHuggingPriority="249" verticalHuggingPriority="249" translatesAutoresizingMaskIntoConstraints="NO" id="6hW-RR-cfF">
<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"/>
<tabViewItems>
<tabViewItem label="Movie" identifier="1" id="apc-8c-iyM">
<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"/>
<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">
<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">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<connections>
<accessibilityConnection property="title" destination="gBb-mO-eZD" id="V6J-SK-ibX"/>
<outlet property="delegate" destination="-2" id="HI8-qI-i23"/>
</connections>
</textField>
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="qsS-B6-c2q">
<rect key="frame" x="64" y="6" width="187" height="25"/>
<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"/>
<popUpButton horizontalCompressionResistancePriority="751" verticalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="0aO-Wz-ASZ">
<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="nn6-mR-Bh1" id="k9r-Fo-4Nl">
<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">
<items>
<menuItem title="iTunes Store" state="on" id="nn6-mR-Bh1"/>
@@ -120,17 +99,14 @@ Gw
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="110" id="4MR-8H-PO9"/>
</constraints>
<accessibility description="Metadata Provider"/>
<connections>
<action selector="metadataProviderSelected:" target="-2" id="Z6X-nl-ffA"/>
</connections>
</popUpButton>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="x4l-iV-xgr">
<rect key="frame" x="467" y="36" width="77" height="32"/>
<buttonCell key="cell" type="push" title="Search" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="HF1-WK-lv1">
<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="HF1-WK-lv1">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
<string key="keyEquivalent" base64-UTF8="YES">
@@ -141,51 +117,112 @@ DQ
<action selector="searchForResults:" target="-2" id="Oy5-RZ-YGX"/>
</connections>
</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>
<constraints>
<constraint firstItem="0aO-Wz-ASZ" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="qsS-B6-c2q" secondAttribute="trailing" constant="20" id="9UN-0q-TUf"/>
<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="0aO-Wz-ASZ" firstAttribute="leading" secondItem="e2g-GX-p4j" secondAttribute="leading" constant="20" symbolic="YES" id="80g-EC-tOh"/>
<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="qsS-B6-c2q" firstAttribute="top" secondItem="e2g-GX-p4j" secondAttribute="top" constant="39" id="M8Q-0P-nWB"/>
<constraint firstItem="qsS-B6-c2q" firstAttribute="bottom" secondItem="0aO-Wz-ASZ" secondAttribute="bottom" id="OEE-wC-5np"/>
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="firstBaseline" secondItem="gBb-mO-eZD" secondAttribute="firstBaseline" id="WeN-uo-QVa"/>
<constraint firstItem="gBb-mO-eZD" firstAttribute="top" secondItem="e2g-GX-p4j" secondAttribute="top" constant="8" id="Y39-sC-lfw"/>
<constraint firstItem="x4l-iV-xgr" firstAttribute="trailing" secondItem="0aO-Wz-ASZ" secondAttribute="trailing" id="crX-q8-6xo"/>
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="leading" secondItem="gBb-mO-eZD" secondAttribute="trailing" constant="7" id="cxE-Kb-aJS"/>
<constraint firstItem="gBb-mO-eZD" firstAttribute="leading" secondItem="e2g-GX-p4j" secondAttribute="leading" constant="20" symbolic="YES" id="feD-8w-Skn"/>
<constraint firstAttribute="trailing" secondItem="x4l-iV-xgr" secondAttribute="trailing" constant="17" id="fhM-i9-sRG"/>
<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"/>
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="top" secondItem="e2g-GX-p4j" secondAttribute="top" constant="4" id="RJf-nv-Vmc"/>
<constraint firstItem="0aO-Wz-ASZ" firstAttribute="centerY" secondItem="qsS-B6-c2q" secondAttribute="centerY" id="T91-4a-kLt"/>
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="leading" secondItem="e2g-GX-p4j" secondAttribute="leading" constant="20" symbolic="YES" id="TD7-Np-2g0"/>
<constraint firstAttribute="bottom" secondItem="0aO-Wz-ASZ" secondAttribute="bottom" constant="10" id="bqC-Gj-KcW"/>
<constraint firstAttribute="trailing" secondItem="x4l-iV-xgr" secondAttribute="trailing" constant="20" symbolic="YES" id="fhM-i9-sRG"/>
<constraint firstItem="0aO-Wz-ASZ" firstAttribute="top" secondItem="Dyr-Xb-8vA" secondAttribute="bottom" constant="10" id="g1y-qg-YWU"/>
<constraint firstItem="qsS-B6-c2q" firstAttribute="leading" secondItem="0aO-Wz-ASZ" secondAttribute="trailing" constant="8" symbolic="YES" id="ubq-To-aMP"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="qsS-B6-c2q" secondAttribute="trailing" constant="20" symbolic="YES" id="ydk-pF-yHc"/>
</constraints>
</view>
</tabViewItem>
<tabViewItem label="TV Episode" identifier="2" id="GPk-3A-rQI">
<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"/>
<subviews>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="PoJ-z7-u2L">
<rect key="frame" x="14" y="45" width="61" height="16"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="TV Show:" id="lE4-J1-ySV">
<comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="yxL-hY-Wvf">
<rect key="frame" x="20" y="44" width="434" height="24"/>
<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="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gWo-ag-3S4">
<rect key="frame" x="14" y="13" width="61" height="16"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</comboBoxCell>
<connections>
<outlet property="dataSource" destination="-2" id="1TN-qD-O3Q"/>
<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">
<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="nYS-Uo-Puv">
<rect key="frame" x="80" y="10" width="30" height="21"/>
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="nYS-Uo-Puv">
<rect key="frame" x="355" y="10" width="30" height="24"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="9CR-ib-DtF"/>
<constraint firstAttribute="width" constant="30" id="j6g-V9-PJF"/>
</constraints>
<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"/>
@@ -197,10 +234,10 @@ DQ
<outlet property="delegate" destination="-2" id="wF7-SW-Zgw"/>
</connections>
</textField>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="PmP-Uz-mXF">
<rect key="frame" x="184" y="10" width="30" height="21"/>
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="PmP-Uz-mXF">
<rect key="frame" x="460" y="10" width="30" height="24"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="JnI-dd-MkA"/>
<constraint firstAttribute="width" constant="30" id="ojN-7h-wgW"/>
</constraints>
<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"/>
@@ -213,100 +250,34 @@ DQ
</connections>
</textField>
<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">
<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>
<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>
<constraints>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="gWo-ag-3S4" secondAttribute="trailing" constant="20" symbolic="YES" id="1cf-QH-GoS"/>
<constraint firstItem="yxL-hY-Wvf" firstAttribute="leading" secondItem="nYS-Uo-Puv" secondAttribute="leading" id="3XJ-NW-2OT"/>
<constraint firstItem="nYS-Uo-Puv" firstAttribute="baseline" secondItem="r32-v1-g3U" secondAttribute="baseline" id="5Yy-LG-A13"/>
<constraint firstItem="UTG-O0-5RG" firstAttribute="leading" secondItem="4yY-id-JNb" secondAttribute="trailing" constant="60" id="5bZ-A2-oAt"/>
<constraint firstItem="gWo-ag-3S4" firstAttribute="baseline" secondItem="nYS-Uo-Puv" secondAttribute="baseline" id="7w2-5k-loo"/>
<constraint firstItem="PoJ-z7-u2L" firstAttribute="top" secondItem="pC0-6X-DbE" secondAttribute="top" constant="8" id="EVi-oc-tqE"/>
<constraint firstItem="r32-v1-g3U" firstAttribute="baseline" secondItem="PmP-Uz-mXF" secondAttribute="baseline" id="IcC-EN-90a"/>
<constraint firstItem="PmP-Uz-mXF" firstAttribute="leading" secondItem="r32-v1-g3U" secondAttribute="trailing" constant="7" id="Nlc-DQ-qvf"/>
<constraint firstItem="gWo-ag-3S4" firstAttribute="width" secondItem="PoJ-z7-u2L" secondAttribute="width" id="PI1-1C-eAU"/>
<constraint firstItem="EpM-F6-30O" firstAttribute="trailing" secondItem="UTG-O0-5RG" secondAttribute="trailing" id="PKp-73-Vbb"/>
<constraint firstItem="PoJ-z7-u2L" firstAttribute="leading" secondItem="pC0-6X-DbE" secondAttribute="leading" constant="16" id="YbU-68-uWT"/>
<constraint firstAttribute="trailing" secondItem="EpM-F6-30O" secondAttribute="trailing" constant="17" id="baJ-gT-gpq"/>
<constraint firstItem="EpM-F6-30O" firstAttribute="leading" secondItem="yxL-hY-Wvf" secondAttribute="trailing" constant="12" id="e0P-Oe-Tz3"/>
<constraint firstAttribute="bottom" secondItem="nYS-Uo-Puv" secondAttribute="bottom" constant="10" id="ehG-Fz-i2o"/>
<constraint firstItem="r32-v1-g3U" firstAttribute="leading" secondItem="nYS-Uo-Puv" secondAttribute="trailing" constant="7" id="iUT-w5-MQJ"/>
<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="4yY-id-JNb" firstAttribute="top" secondItem="pC0-6X-DbE" secondAttribute="top" constant="39" id="n3d-4T-yVM"/>
<constraint firstItem="4yY-id-JNb" firstAttribute="bottom" secondItem="UTG-O0-5RG" secondAttribute="bottom" id="r9M-rQ-1OL"/>
<constraint firstItem="PoJ-z7-u2L" firstAttribute="firstBaseline" secondItem="yxL-hY-Wvf" secondAttribute="firstBaseline" constant="1" id="txE-Mz-IYh"/>
<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"/>
<constraint firstAttribute="bottom" secondItem="UTG-O0-5RG" secondAttribute="bottom" constant="10" id="0jz-eZ-PYZ"/>
<constraint firstItem="PmP-Uz-mXF" firstAttribute="leading" secondItem="r32-v1-g3U" secondAttribute="trailing" constant="7" id="76f-1f-IhA"/>
<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="top" secondItem="yxL-hY-Wvf" secondAttribute="bottom" constant="10" id="Drk-HP-jyl"/>
<constraint firstAttribute="trailing" secondItem="EpM-F6-30O" secondAttribute="trailing" constant="20" symbolic="YES" id="EpQ-oZ-M1N"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="PmP-Uz-mXF" secondAttribute="trailing" constant="20" symbolic="YES" id="GX9-Ax-mrl"/>
<constraint firstItem="nYS-Uo-Puv" firstAttribute="firstBaseline" secondItem="r32-v1-g3U" secondAttribute="firstBaseline" id="OVu-Br-svU"/>
<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="firstBaseline" secondItem="nYS-Uo-Puv" secondAttribute="firstBaseline" id="Shj-mM-Vg8"/>
<constraint firstItem="4yY-id-JNb" firstAttribute="leading" secondItem="UTG-O0-5RG" secondAttribute="trailing" constant="8" symbolic="YES" id="U32-Nz-YfN"/>
<constraint firstItem="nYS-Uo-Puv" firstAttribute="leading" secondItem="gWo-ag-3S4" secondAttribute="trailing" constant="7" id="YqB-c1-I3n"/>
<constraint firstItem="4yY-id-JNb" firstAttribute="centerY" secondItem="gWo-ag-3S4" secondAttribute="centerY" id="eLh-kH-KNh"/>
<constraint firstItem="r32-v1-g3U" firstAttribute="leading" secondItem="nYS-Uo-Puv" secondAttribute="trailing" constant="8" symbolic="YES" id="fVO-St-Aez"/>
<constraint firstItem="yxL-hY-Wvf" firstAttribute="leading" secondItem="pC0-6X-DbE" secondAttribute="leading" constant="20" symbolic="YES" id="hTu-YS-Eeh"/>
<constraint firstItem="UTG-O0-5RG" firstAttribute="leading" secondItem="yxL-hY-Wvf" secondAttribute="leading" id="hp6-qT-uGH"/>
<constraint firstItem="gWo-ag-3S4" firstAttribute="leading" secondItem="4yY-id-JNb" secondAttribute="trailing" constant="8" symbolic="YES" id="lRS-M6-Cxr"/>
<constraint firstItem="UTG-O0-5RG" firstAttribute="centerY" secondItem="4yY-id-JNb" secondAttribute="centerY" id="nVx-52-jdh"/>
<constraint firstItem="r32-v1-g3U" firstAttribute="firstBaseline" secondItem="PmP-Uz-mXF" secondAttribute="firstBaseline" id="rMa-Q9-tLd"/>
<constraint firstItem="yxL-hY-Wvf" firstAttribute="top" secondItem="pC0-6X-DbE" secondAttribute="top" constant="4" id="x6j-8D-FgH"/>
</constraints>
</view>
</tabViewItem>
@@ -324,20 +295,20 @@ DQ
</textFieldCell>
</textField>
<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>
<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"/>
<subviews>
<scrollView misplaced="YES" 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"/>
<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="0.0" width="510" height="120"/>
<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"/>
<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">
<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"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -406,25 +377,29 @@ DQ
</scrollView>
</subviews>
<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 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 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="height" relation="greaterThanOrEqual" constant="120" id="oBd-XH-2sW"/>
</constraints>
</customView>
<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"/>
<subviews>
<scrollView misplaced="YES" 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"/>
<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="0.0" width="510" height="192"/>
<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"/>
<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">
<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"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -552,11 +527,15 @@ DQ
</scrollView>
</subviews>
<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 firstAttribute="bottom" secondItem="L9f-RN-ymm" secondAttribute="bottom" id="Dji-UV-X83"/>
<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 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>
</customView>
</subviews>
@@ -567,25 +546,25 @@ DQ
</splitView>
</subviews>
<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 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="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 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 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="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="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 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="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"/>
</constraints>
<point key="canvasLocation" x="168" y="157"/>
<point key="canvasLocation" x="130" y="71"/>
</view>
</objects>
</document>
+6 -6
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -13,16 +13,16 @@
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<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"/>
<windowPositionMask key="initialPositionMask" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="625" y="560" width="660" height="220"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="875"/>
<rect key="contentRect" x="625" y="660" width="660" height="220"/>
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1055"/>
<view key="contentView" id="2">
<rect key="frame" x="0.0" y="0.0" width="660" height="220"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
</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>
<toolbarItem implicitItemIdentifier="NSToolbarSpaceItem" id="vqk-zF-m6l"/>
<toolbarItem implicitItemIdentifier="NSToolbarFlexibleSpaceItem" id="R2N-58-umt"/>
+36 -30
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -18,33 +18,33 @@
<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">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="98" y="651" width="378" height="351"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="875"/>
<windowPositionMask key="initialPositionMask" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="98" y="443" width="503" height="505"/>
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1049"/>
<value key="minSize" type="size" width="378" height="200"/>
<view key="contentView" wantsLayer="YES" id="2">
<rect key="frame" x="0.0" y="0.0" width="378" height="351"/>
<view key="contentView" wantsLayer="YES" misplaced="YES" id="2">
<rect key="frame" x="0.0" y="0.0" width="450" height="505"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="21" horizontalPageScroll="10" verticalLineScroll="21" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3">
<rect key="frame" x="-1" y="46" width="380" height="306"/>
<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="69" width="452" height="437"/>
<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"/>
<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">
<rect key="frame" x="0.0" y="0.0" width="378" height="304"/>
<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="452" height="435"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="4"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<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">
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
</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"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -52,26 +52,23 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES"/>
<prototypeCellViews>
<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"/>
<subviews>
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="pjh-GC-aOA">
<rect key="frame" x="29" y="-1" width="317" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" id="srx-EJ-mK6">
<font key="font" metaFont="cellTitle"/>
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="pjh-GC-aOA">
<rect key="frame" x="29" y="2" width="370" height="16"/>
<textFieldCell key="cell" lineBreakMode="truncatingMiddle" sendsActionOnEndEditing="YES" title="Name" usesSingleLineMode="YES" id="srx-EJ-mK6">
<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>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Xeb-eQ-90j">
<rect key="frame" x="7" y="0.0" width="16" height="16"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Xeb-eQ-90j">
<rect key="frame" x="7" y="2" width="16" height="16"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="EncodeComplete" id="uXb-c3-MQO"/>
</imageView>
<button toolTip="Show item info" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="o98-wM-YAQ">
<rect key="frame" x="352" y="0.0" width="16" height="16"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
<button toolTip="Show item info" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="o98-wM-YAQ">
<rect key="frame" x="405" y="2" width="16" height="16"/>
<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"/>
<font key="font" metaFont="system"/>
@@ -82,6 +79,15 @@
</connections>
</button>
</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>
<outlet property="imageView" destination="Xeb-eQ-90j" id="Q6V-gj-mwY"/>
<outlet property="textField" destination="pjh-GC-aOA" id="PQK-Y7-IFu"/>
@@ -100,7 +106,7 @@
</subviews>
</clipView>
<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"/>
</scroller>
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="4">
@@ -109,7 +115,7 @@
</scroller>
</scrollView>
<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">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -117,7 +123,7 @@
</textFieldCell>
</textField>
<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>
<constraint firstAttribute="width" constant="140" id="zk9-SM-dx0"/>
</constraints>
@@ -138,7 +144,7 @@
<connections>
<outlet property="delegate" destination="-2" id="c4X-w0-NMZ"/>
</connections>
<point key="canvasLocation" x="-66" y="113"/>
<point key="canvasLocation" x="294.5" y="35.5"/>
</window>
<menu id="78">
<items>
+10 -9
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -21,7 +21,7 @@
<rect key="frame" x="0.0" y="0.0" width="424" height="115"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<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"/>
<textFieldCell key="cell" controlSize="small" selectable="YES" sendsActionOnEndEditing="YES" title="ItemName" id="5j3-R9-JdX">
<font key="font" metaFont="smallSystemBold"/>
@@ -32,7 +32,7 @@
<binding destination="-2" name="value" keyPath="self.name" id="KJR-7T-87z"/>
</connections>
</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"/>
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Destination:" id="9R2-ND-o8w">
<font key="font" metaFont="smallSystemBold"/>
@@ -40,7 +40,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</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"/>
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Actions:" id="4B2-1n-ouM">
<font key="font" metaFont="smallSystemBold"/>
@@ -55,7 +55,7 @@
</binding>
</connections>
</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"/>
<textFieldCell key="cell" controlSize="small" lineBreakMode="charWrapping" selectable="YES" sendsActionOnEndEditing="YES" id="5mD-V5-53a">
<font key="font" metaFont="toolTip"/>
@@ -67,7 +67,7 @@
<binding destination="-2" name="value" keyPath="self.destPath" id="NW6-M3-Krl"/>
</connections>
</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"/>
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Source:" id="9De-A4-Oas">
<font key="font" metaFont="smallSystemBold"/>
@@ -75,7 +75,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</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"/>
<textFieldCell key="cell" controlSize="small" lineBreakMode="charWrapping" selectable="YES" sendsActionOnEndEditing="YES" id="OJa-Jm-vq4">
<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 firstAttribute="bottom" secondItem="J0r-57-7ab" secondAttribute="bottom" constant="9" id="vQ6-oB-s7z"/>
</constraints>
<point key="canvasLocation" x="125" y="-121"/>
<point key="canvasLocation" x="200" y="-110"/>
</customView>
<arrayController objectClassName="SBQueueAction" id="J6Q-ls-Vzn">
<classReference key="objectClass" className="SBQueueAction"/>
<connections>
<binding destination="-2" name="contentArray" keyPath="item.actions" id="DPr-Hj-MPk"/>
</connections>
+77 -80
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -16,18 +16,15 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<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"/>
<subviews>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
</buttonCell>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="67" id="st2-UI-Qkc"/>
</constraints>
<connections>
<binding destination="-2" name="value" keyPath="self.options.optimize" id="2oW-EB-1dq">
<dictionary key="options">
@@ -37,7 +34,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -51,7 +48,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -65,7 +62,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -79,7 +76,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -93,7 +90,7 @@
</connections>
</button>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -121,24 +118,24 @@
<accessibilityConnection property="title" destination="vJ5-JB-k1m" id="D3Y-SD-Lcc"/>
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="vJ5-JB-k1m">
<rect key="frame" x="132" y="136" width="56" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="vJ5-JB-k1m">
<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">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="NhN-Lg-awX">
<rect key="frame" x="126" y="156" width="62" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="NhN-Lg-awX">
<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">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="eTL-yP-QQ5">
<rect key="frame" x="126" y="570" width="48" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="eTL-yP-QQ5">
<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">
<font key="font" metaFont="smallSystemBold"/>
<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"/>
</connections>
</textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="bDo-OD-bck">
<rect key="frame" x="126" y="524" width="63" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="bDo-OD-bck">
<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">
<font key="font" metaFont="smallSystemBold"/>
<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"/>
</connections>
</textField>
<textField 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"/>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="Uoo-hZ-D1f">
<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">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="S7L-mA-j3Y">
<rect key="frame" x="49" y="613" width="58" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="S7L-mA-j3Y">
<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">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -176,7 +173,7 @@
</textFieldCell>
</textField>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -208,7 +205,7 @@
</connections>
</popUpButton>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -235,7 +232,7 @@
</connections>
</popUpButton>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -261,8 +258,8 @@
</binding>
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="BWL-Nn-iGH">
<rect key="frame" x="142" y="504" width="63" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="BWL-Nn-iGH">
<rect key="frame" x="142" y="530" width="63" height="14"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="58" id="vbR-Os-38g"/>
</constraints>
@@ -275,8 +272,8 @@
<binding destination="-2" name="enabled" keyPath="self.options.searchMetadata" id="ZDg-5s-ifn"/>
</connections>
</textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="Ns9-7q-hsh">
<rect key="frame" x="126" y="476" width="54" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="Ns9-7q-hsh">
<rect key="frame" x="126" y="498" width="54" height="14"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="50" id="98L-OX-PB1"/>
</constraints>
@@ -290,7 +287,7 @@
</connections>
</textField>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -317,8 +314,8 @@
</binding>
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="73q-gi-fe2">
<rect key="frame" x="142" y="550" width="63" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="73q-gi-fe2">
<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">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -329,7 +326,7 @@
</connections>
</textField>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -358,14 +355,11 @@
</connections>
</popUpButton>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
</buttonCell>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="117" id="8uL-Xd-FJM"/>
</constraints>
<connections>
<binding destination="-2" name="value" keyPath="self.options.fixFallbacks" id="W1e-uB-NXG">
<dictionary key="options">
@@ -375,7 +369,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -388,8 +382,8 @@
</binding>
</connections>
</button>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="swT-iM-shZ">
<rect key="frame" x="126" y="307" width="64" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="swT-iM-shZ">
<rect key="frame" x="126" y="325" width="64" height="14"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="x6U-u1-ezQ"/>
</constraints>
@@ -403,7 +397,7 @@
</connections>
</textField>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -430,8 +424,8 @@
<binding destination="-2" name="enabled" keyPath="self.options.fixTrackLanguage" id="iYk-sU-PL5"/>
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="ntU-85-AaJ">
<rect key="frame" x="126" y="267" width="63" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="ntU-85-AaJ">
<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">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -442,7 +436,7 @@
</connections>
</textField>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -470,7 +464,7 @@
</connections>
</popUpButton>
<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>
<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"/>
@@ -485,7 +479,7 @@
</connections>
</button>
<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>
<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"/>
@@ -500,7 +494,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -514,7 +508,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -528,7 +522,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -542,7 +536,7 @@
</connections>
</button>
<button toolTip="Rename chapters titles to &quot;Chapter N&quot; 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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -556,7 +550,7 @@
</connections>
</button>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -587,7 +581,7 @@
</connections>
</popUpButton>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -600,8 +594,8 @@
</binding>
</connections>
</button>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="2Hf-2V-95U">
<rect key="frame" x="126" y="192" width="76" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="2Hf-2V-95U">
<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">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -612,7 +606,7 @@
</connections>
</textField>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -641,7 +635,7 @@
</connections>
</popUpButton>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -655,7 +649,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -669,7 +663,7 @@
</connections>
</button>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -693,8 +687,8 @@
<binding destination="-2" name="enabled" keyPath="self.options.searchMetadata" id="UK3-vK-Ddd"/>
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="FJc-Hc-zCR">
<rect key="frame" x="126" y="230" width="63" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="FJc-Hc-zCR">
<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">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -705,7 +699,7 @@
</connections>
</textField>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -733,7 +727,7 @@
</connections>
</popUpButton>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -743,7 +737,7 @@
</connections>
</button>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="label" size="11"/>
@@ -762,8 +756,8 @@
<binding destination="-2" name="selectedValue" keyPath="self.options.fileType" id="cpt-5g-SPz"/>
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="muY-E0-hVI">
<rect key="frame" x="129" y="116" width="59" height="14"/>
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="muY-E0-hVI">
<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">
<font key="font" metaFont="smallSystemBold"/>
<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="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="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="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="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="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 firstItem="muY-E0-hVI" firstAttribute="top" secondItem="vJ5-JB-k1m" secondAttribute="bottom" constant="6" id="Cy6-XK-sSC"/>
<constraint firstAttribute="bottom" secondItem="yI9-2a-q2a" secondAttribute="bottom" constant="20" id="9sX-va-Dwk"/>
<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="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 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="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="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 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="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="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="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"/>
@@ -811,8 +804,8 @@
<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 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="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="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"/>
@@ -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 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="etc-K7-Atw" firstAttribute="trailing" secondItem="0qr-Nt-Pan" secondAttribute="trailing" id="XT5-Su-3cJ"/>
<constraint firstItem="2Hf-2V-95U" firstAttribute="top" secondItem="Pdq-s0-erT" secondAttribute="bottom" constant="5" id="Ylb-ff-hBi"/>
<constraint firstItem="DVM-Js-DwK" firstAttribute="top" secondItem="Hjl-i0-gFW" secondAttribute="bottom" constant="3" id="X54-PH-kRj"/>
<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="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="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 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"/>
@@ -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="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 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="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 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="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="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="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="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="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="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="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"/>
@@ -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="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 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="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"/>
</constraints>
<point key="canvasLocation" x="-1040" y="-34"/>
<point key="canvasLocation" x="-1250" y="-137"/>
</customView>
<arrayController objectClassName="Preset" automaticallyPreparesContent="YES" id="vyv-na-Xpo" userLabel="Set Controller">
<declaredKeys>
+3 -3
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<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 firstAttribute="bottom" secondItem="3EA-ze-TJM" secondAttribute="bottom" constant="20" symbolic="YES" id="zdI-AV-TEM"/>
</constraints>
<point key="canvasLocation" x="27" y="-55"/>
<point key="canvasLocation" x="259" y="2"/>
</view>
</objects>
</document>
+21 -25
View File
@@ -62,38 +62,15 @@ final class DocumentController : NSDocumentController {
}
@NSApplicationMain
final class AppDelegate: NSObject, NSApplicationDelegate {
final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuItemValidation {
@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 = {
return PrefsWindowController()
}()
private lazy var logger: Logger = {
return Logger(fileURL: AppDelegate.appSupportURL().appendingPathComponent("debugLog.txt"))
}()
private let logger = Logger.shared
@MainActor private lazy var activityWindowController: ActivityWindowController = {
return ActivityWindowController(logger: logger)
@@ -236,6 +213,25 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
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
@IBAction func openInQueue(_ sender: Any) {
+17 -12
View File
@@ -6,7 +6,6 @@
//
import Cocoa
import Quartz
import MP42Foundation
private protocol ArtworkImageObjectDelegate: AnyObject {
@@ -187,7 +186,7 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
view.wantsLayer = true
imageBrowser.register(ArtworkSelectorViewItem.self, forItemWithIdentifier: ArtworkSelectorController.itemView)
loadMoreArtworks(count: 8)
loadMoreArtworks(count: 11)
let type = metadata.mediaKind.description
@@ -205,9 +204,9 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
}
override func viewWillAppear() {
if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout {
layout.itemSize = standardSize
}
let zoomValue = Prefs.artworkSelectorZoomLevel
setZoomValue(zoomValue)
slider.floatValue = zoomValue
}
@IBAction func loadMoreArtwork(_ sender: Any) {
@@ -216,23 +215,28 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
// MARK: - User Interface
@IBAction func zoomSliderDidChange(_ sender: Any) {
private func setZoomValue(_ newZoomValue: Float) {
if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout {
if slider.floatValue == 50 {
if newZoomValue == 50 {
layout.itemSize = standardSize
} else if slider.floatValue < 50 {
let zoomValue = (CGFloat(slider.floatValue) + 50) / 100
} else if newZoomValue < 50 {
let zoomValue = (CGFloat(newZoomValue) + 50) / 100
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
height: Int((standardSize.height - 32) * zoomValue + 32))
} 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),
height: Int((standardSize.height - 32) * zoomValue + 32))
}
}
}
@IBAction func zoomSliderDidChange(_ sender: Any) {
setZoomValue(slider.floatValue)
Prefs.artworkSelectorZoomLevel = slider.floatValue
}
fileprivate func reloadItem(_ item: ArtworkImageObject) {
let selectionIndexPaths = imageBrowser.selectionIndexPaths
@@ -241,7 +245,7 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
imageBrowser.reloadItems(at: [indexPath])
}
imageBrowser.selectionIndexPaths = selectionIndexPaths
imageBrowser.selectionIndexPaths = selectionIndexPaths
}
private func selectArtwork(at index: Int) {
@@ -290,7 +294,8 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
}
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
+28 -9
View File
@@ -10,7 +10,8 @@ import AVFoundation
final class ArtworkSelectorViewItemLabel : NSTextField {
@IBInspectable var highlightColor: NSColor = .alternateSelectedControlColor
@IBInspectable var highlightColor: NSColor = .alternateSelectedControlColor //.selectedContentBackgroundColor
@IBInspectable var highlightTextColor: NSColor = .alternateSelectedControlTextColor
@IBInspectable var cornerRadius: CGFloat = 3
@@ -162,7 +163,11 @@ final class ArtworkSelectorViewItemView: NSView {
backgroundLayer.anchorPoint = CGPoint.zero
backgroundLayer.position = CGPoint(x: 0, y: paddingBottom)
backgroundLayer.backgroundColor = NSColor.controlHighlightColor.cgColor
if #available(macOS 10.14, *) {
backgroundLayer.backgroundColor = NSColor.unemphasizedSelectedContentBackgroundColor.cgColor
} else {
backgroundLayer.backgroundColor = NSColor.controlHighlightColor.cgColor
}
backgroundLayer.cornerRadius = 8
backgroundLayer.isHidden = true
backgroundLayer.isOpaque = true
@@ -171,7 +176,11 @@ final class ArtworkSelectorViewItemView: NSView {
emptyLayer.position = CGPoint(x: padding, y: padding + paddingBottom)
emptyLayer.lineWidth = 3.0
emptyLayer.lineDashPattern = [12,5]
emptyLayer.strokeColor = NSColor.secondarySelectedControlColor.cgColor
if #available(macOS 10.14, *) {
emptyLayer.strokeColor = NSColor.unemphasizedSelectedContentBackgroundColor.cgColor
} else {
emptyLayer.strokeColor = NSColor.secondarySelectedControlColor.cgColor
}
emptyLayer.fillColor = NSColor.windowBackgroundColor.cgColor
emptyLayer.isOpaque = true
@@ -197,12 +206,21 @@ final class ArtworkSelectorViewItemView: NSView {
}
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
NSAppearance.current = effectiveAppearance
imageLayer.shadowColor = NSColor.labelColor.cgColor
backgroundLayer.backgroundColor = NSColor.unemphasizedSelectedContentBackgroundColor.cgColor
if #available(macOS 10.14, *) {
backgroundLayer.backgroundColor = NSColor.unemphasizedSelectedContentBackgroundColor.cgColor
}
emptyLayer.strokeColor = NSColor.secondarySelectedControlColor.cgColor
emptyLayer.fillColor = NSColor.windowBackgroundColor.cgColor
@@ -276,6 +294,9 @@ final class ArtworkSelectorViewItem: NSCollectionViewItem {
override func viewDidLoad() {
super.viewDidLoad()
textField?.layer?.isOpaque = true
let recognizer = NSClickGestureRecognizer(target: self, action: #selector(handleGesture))
recognizer.numberOfClicksRequired = 2
self.view.addGestureRecognizer(recognizer)
}
private func updateLabels() {
@@ -337,11 +358,9 @@ final class ArtworkSelectorViewItem: NSCollectionViewItem {
// MARK: Actions
override func mouseUp(with event: NSEvent) {
if event.clickCount > 1, let action = doubleAction {
@objc func handleGesture() {
if let action = doubleAction {
target?.performSelector(onMainThread: action, with: nil, waitUntilDone: true)
} else {
super.mouseUp(with: event)
}
}
+4 -5
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -19,7 +19,7 @@
<rect key="frame" x="0.0" y="0.0" width="128" height="171"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<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"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" alignment="center" title="Label" usesSingleLineMode="YES" id="TsL-Ak-xnf">
<font key="font" metaFont="cellTitle"/>
@@ -27,7 +27,7 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</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"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" alignment="center" title="Label" usesSingleLineMode="YES" id="ggX-Q2-CZ0">
<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 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 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 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"/>
+3 -2
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -16,6 +16,7 @@
<customView id="Hz6-mo-xeY">
<rect key="frame" x="0.0" y="0.0" width="480" height="272"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<point key="canvasLocation" x="261" y="18"/>
</customView>
</objects>
</document>
@@ -1,8 +1,7 @@
<?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>
<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"/>
</dependencies>
<objects>
@@ -13,11 +12,11 @@
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<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">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<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" fullSizeContentView="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="screenRect" x="0.0" y="0.0" width="1440" height="875"/>
<rect key="contentRect" x="200" y="500" width="520" height="510"/>
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1049"/>
<value key="minSize" type="size" width="520" height="510"/>
<view key="contentView" id="rip-YL-WpY">
<rect key="frame" x="0.0" y="0.0" width="520" height="510"/>
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -19,23 +19,23 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<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"/>
<subviews>
<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">
<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"/>
<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">
<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"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<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">
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
@@ -74,7 +74,7 @@
</tableCellView>
</prototypeCellViews>
</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">
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
@@ -87,11 +87,11 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<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"/>
<subviews>
<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">
<font key="font" metaFont="cellTitle"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -134,12 +134,12 @@
<autoresizingMask key="autoresizingMask"/>
</scroller>
<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"/>
</tableHeaderView>
</scrollView>
<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">
<font key="font" metaFont="cellTitle"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -151,8 +151,8 @@
</connections>
</tokenField>
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="sd5-qb-K5v">
<rect key="frame" x="194" y="113" width="26" height="22"/>
<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">
<rect key="frame" x="229" y="135" width="38" height="24"/>
<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"/>
<font key="font" metaFont="system"/>
</buttonCell>
@@ -161,10 +161,10 @@
</connections>
</button>
<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"/>
<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">
<rect key="frame" x="166" y="135" width="61" height="24"/>
<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"/>
<font key="font" metaFont="smallSystem"/>
<font key="font" metaFont="message"/>
<menu key="menu" id="ywu-nj-9bP">
<items>
<menuItem image="NSAddTemplate" hidden="YES" id="5wF-Yq-18d">
@@ -173,31 +173,18 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="height" constant="20" id="zjQ-DY-ahs"/>
</constraints>
<connections>
<action selector="addMetadataItem:" target="-2" id="wQl-dy-iQm"/>
</connections>
</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">
<rect key="frame" x="20" y="142" width="138" height="311"/>
<clipView key="contentView" id="KId-fX-q1q">
<rect key="frame" x="1" y="1" width="136" height="309"/>
<rect key="frame" x="20" y="167" width="138" height="307"/>
<clipView key="contentView" ambiguous="YES" id="KId-fX-q1q">
<rect key="frame" x="1" y="1" width="136" height="305"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<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">
<rect key="frame" x="0.0" y="0.0" width="136" height="286"/>
<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="282"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -269,7 +256,7 @@
</tableHeaderView>
</scrollView>
<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">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -277,8 +264,8 @@
</textFieldCell>
</textField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="BkU-sx-jUf">
<rect key="frame" x="501" y="113" width="120" height="22"/>
<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">
<rect key="frame" x="498" y="135" width="124" height="24"/>
<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"/>
<font key="font" metaFont="system"/>
</buttonCell>
@@ -290,47 +277,82 @@
</connections>
</button>
<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">
<font key="font" usesAppearanceFont="YES"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</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>
<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="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="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 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="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="ZMK-Xt-bJh" firstAttribute="trailing" secondItem="Y15-gP-AOw" secondAttribute="trailing" constant="-250" id="FE7-1p-ZNW"/>
<constraint firstItem="SZd-pK-hWX" firstAttribute="top" secondItem="ZMK-Xt-bJh" secondAttribute="bottom" constant="6" symbolic="YES" id="DHM-ZO-C7P"/>
<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="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="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 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="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="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="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="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="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 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="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"/>
</constraints>
<point key="canvasLocation" x="-295.5" y="-469.5"/>
<point key="canvasLocation" x="-296" y="-459"/>
</customView>
<arrayController objectClassName="NSString" id="RId-BH-Y2G" userLabel="Types Controller">
<classReference key="objectClass" className="NSString"/>
@@ -343,58 +365,5 @@
<resources>
<image name="NSAddTemplate" width="18" height="17"/>
<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>
</document>
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -47,8 +47,8 @@
<rect key="frame" x="1" y="1" width="755" height="19"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="Fec-S0-J1M">
<rect key="frame" x="87" y="4" width="668" height="16"/>
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="Fec-S0-J1M">
<rect key="frame" x="87" y="3" width="668" height="16"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" id="Zhz-YB-L6R">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -57,13 +57,13 @@
</textField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Lhm-Hc-3on">
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="80" id="WJc-b5-b3e"/>
</constraints>
<connections>
<action selector="buttonPressed:" target="lSD-av-rXp" id="Pur-Kz-KOJ"/>
</connections>
@@ -107,11 +107,11 @@
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</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"/>
<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"/>
<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"/>
</textFieldCell>
</textField>
+9 -8
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -19,7 +19,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<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">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -27,16 +27,16 @@
</textFieldCell>
</textField>
<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">
<numberFormatter key="formatter" formatterBehavior="custom10_4" numberStyle="decimal" minimumIntegerDigits="1" maximumIntegerDigits="2000000000" maximumFractionDigits="10" id="bJb-JJ-awo"/>
<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"/>
</textFieldCell>
</textField>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -49,7 +49,7 @@ DQ
</connections>
</button>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -62,7 +62,7 @@ Gw
</connections>
</button>
<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">
<font key="font" metaFont="system"/>
<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 firstAttribute="trailing" secondItem="p8t-DX-Sav" secondAttribute="trailing" constant="19" id="vch-j0-7So"/>
</constraints>
<point key="canvasLocation" x="255" y="-50"/>
</view>
</objects>
</document>
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -15,12 +15,12 @@
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView misplaced="YES" id="Hz6-mo-xeY">
<rect key="frame" x="0.0" y="0.0" width="610" height="220"/>
<customView id="Hz6-mo-xeY">
<rect key="frame" x="0.0" y="0.0" width="660" height="202"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -30,7 +30,7 @@
</connections>
</button>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -39,12 +39,9 @@
<binding destination="BZm-iR-6oK" name="value" keyPath="values.SBSetTVShowFormat" id="e2b-dq-8JE"/>
</connections>
</button>
<tokenField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="i8H-oP-Sif">
<rect key="frame" x="85" y="153" width="440" height="23"/>
<constraints>
<constraint firstAttribute="width" constant="440" id="6Ap-Ey-VHf"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="23" id="JPO-az-iic"/>
</constraints>
<tokenField focusRingType="none" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="i8H-oP-Sif">
<rect key="frame" x="69" y="134" width="476" height="24"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<tokenFieldCell key="cell" selectable="YES" editable="YES" borderStyle="bezel" alignment="left" drawsBackground="YES" allowsEditingTextAttributes="YES" id="h4P-Ma-djC">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -54,11 +51,9 @@
<outlet property="delegate" destination="-2" id="39Q-aI-o60"/>
</connections>
</tokenField>
<tokenField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="rzc-AK-4Vr">
<rect key="frame" x="85" y="74" width="440" height="23"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="23" id="bvK-Gm-JUU"/>
</constraints>
<tokenField focusRingType="none" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="rzc-AK-4Vr">
<rect key="frame" x="69" y="54" width="476" height="24"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<tokenFieldCell key="cell" selectable="YES" editable="YES" borderStyle="bezel" alignment="left" drawsBackground="YES" allowsEditingTextAttributes="YES" id="aHe-D5-fgj">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -68,8 +63,9 @@
<outlet property="delegate" destination="-2" id="mh9-CJ-zVx"/>
</connections>
</tokenField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dq1-e8-fa6">
<rect key="frame" x="526" y="148" width="44" height="32"/>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dq1-e8-fa6">
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -78,8 +74,9 @@
<action selector="showMovieTokens:" target="-2" id="Er8-nw-di4"/>
</connections>
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="fZZ-im-9BI">
<rect key="frame" x="526" y="69" width="44" height="32"/>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="fZZ-im-9BI">
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -88,38 +85,28 @@
<action selector="showTvShowTokens:" target="-2" id="pHZ-v7-U0W"/>
</connections>
</button>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Pbz-wc-RXA">
<rect key="frame" x="83" y="20" width="444" height="34"/>
<constraints>
<constraint firstAttribute="height" constant="34" id="Y5R-jS-Whb"/>
</constraints>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Pbz-wc-RXA">
<rect key="frame" x="83" y="20" width="441" height="14"/>
<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"/>
<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"/>
</textFieldCell>
</textField>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="Pbz-wc-RXA" secondAttribute="bottom" constant="20" symbolic="YES" id="0R2-Y8-s5e"/>
<constraint firstItem="Pbz-wc-RXA" firstAttribute="leading" secondItem="i8H-oP-Sif" secondAttribute="leading" id="4Vz-o1-zSY"/>
<constraint firstItem="rzc-AK-4Vr" firstAttribute="leading" secondItem="TBF-BD-fSk" secondAttribute="leading" constant="16" id="Aws-ML-M7P"/>
<constraint firstItem="TBF-BD-fSk" firstAttribute="top" secondItem="i8H-oP-Sif" secondAttribute="bottom" constant="32" id="C0O-NO-8Te"/>
<constraint firstItem="dq1-e8-fa6" firstAttribute="centerY" secondItem="i8H-oP-Sif" secondAttribute="centerY" id="Dsc-lq-HSw"/>
<constraint firstItem="rzc-AK-4Vr" firstAttribute="top" secondItem="TBF-BD-fSk" secondAttribute="bottom" constant="8" id="FZZ-y5-ycJ"/>
<constraint firstItem="PZS-8W-dno" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" id="GYO-gT-cbH"/>
<constraint firstItem="i8H-oP-Sif" firstAttribute="top" secondItem="PZS-8W-dno" secondAttribute="bottom" constant="8" id="Mvi-1G-Dhn"/>
<constraint firstItem="Pbz-wc-RXA" firstAttribute="top" secondItem="rzc-AK-4Vr" secondAttribute="bottom" constant="20" id="ZQc-Um-c3U"/>
<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="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"/>
<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="Hz6-mo-xeY" secondAttribute="leading" constant="85" id="7Sa-nY-Sp0"/>
<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="PZS-8W-dno" secondAttribute="bottom" constant="64" id="RMy-yp-T41"/>
<constraint firstItem="PZS-8W-dno" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="69" id="Zr8-m0-a0L"/>
<constraint firstAttribute="trailing" secondItem="Pbz-wc-RXA" secondAttribute="trailing" constant="138" id="f8r-kX-5Cf"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="TBF-BD-fSk" secondAttribute="trailing" constant="40" id="sO9-ww-FzW"/>
<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="TBF-BD-fSk" secondAttribute="bottom" constant="52" id="vr9-90-hg3"/>
<constraint firstItem="TBF-BD-fSk" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="69" id="yiZ-p7-IJl"/>
</constraints>
<point key="canvasLocation" x="-186" y="-587"/>
<point key="canvasLocation" x="-200" y="-636"/>
</customView>
<userDefaultsController representsSharedInstance="YES" id="BZm-iR-6oK"/>
</objects>
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -22,6 +22,7 @@
<outlet property="setsPopUp" destination="179" id="hl9-DS-qsm"/>
<outlet property="tagsPopUp" destination="30" id="1v4-T2-oDW"/>
<outlet property="view" destination="1" id="2"/>
<outlet property="zoomSlider" destination="235" id="fFP-8i-4SK"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
@@ -31,35 +32,27 @@
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<button toolTip="Add an artwork" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="223">
<rect key="frame" x="20" y="58" width="25" height="22"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="224">
<rect key="frame" x="13" y="52" width="44" height="32"/>
<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"/>
<font key="font" metaFont="system"/>
</buttonCell>
<constraints>
<constraint firstAttribute="height" constant="20" id="oYK-j2-5dM"/>
<constraint firstAttribute="width" constant="25" id="rcu-X5-nFG"/>
</constraints>
<connections>
<action selector="selectArtwork:" target="-2" id="232"/>
</connections>
</button>
<button toolTip="Remove selected artwork" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="226">
<rect key="frame" x="44" y="58" width="25" height="22"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="227">
<rect key="frame" x="45" y="52" width="44" height="32"/>
<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"/>
<font key="font" metaFont="system"/>
</buttonCell>
<constraints>
<constraint firstAttribute="width" constant="25" id="CRL-bR-7Ew"/>
<constraint firstAttribute="height" constant="20" id="ni3-qc-LeG"/>
</constraints>
<connections>
<action selector="removeArtwork:" target="-2" id="231"/>
</connections>
</button>
<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>
<constraint firstAttribute="width" constant="80" id="QRF-MH-hBi"/>
</constraints>
@@ -68,11 +61,11 @@
<action selector="zoomSliderDidChange:" target="-2" id="237"/>
</connections>
</slider>
<popUpButton toolTip="Add a new metadata item" translatesAutoresizingMaskIntoConstraints="NO" id="30">
<rect key="frame" x="207" y="58" width="32" height="22"/>
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" pullsDown="YES" id="31">
<popUpButton toolTip="Add a new metadata item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="30">
<rect key="frame" x="205" y="55" width="53" height="25"/>
<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"/>
<font key="font" metaFont="message" size="11"/>
<font key="font" metaFont="message"/>
<menu key="menu" id="32">
<items>
<menuItem image="NSAddTemplate" hidden="YES" id="33">
@@ -81,35 +74,27 @@
</items>
</menu>
</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"/>
<connections>
<action selector="addTag:" target="-2" id="37"/>
</connections>
</popUpButton>
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="53">
<rect key="frame" x="238" y="58" width="24" height="22"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
<rect key="frame" x="249" y="52" width="44" height="32"/>
<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"/>
<font key="font" metaFont="system"/>
</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"/>
<connections>
<action selector="removeTag:" target="-2" id="55"/>
</connections>
</button>
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="179">
<rect key="frame" x="270" y="58" width="35" 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">
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="179">
<rect key="frame" x="299" y="55" width="54" height="25"/>
<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"/>
<font key="font" metaFont="message" size="11"/>
<font key="font" metaFont="message"/>
<menu key="menu" id="181">
<items>
<menuItem image="NSActionTemplate" hidden="YES" id="184">
@@ -118,20 +103,16 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="35" id="8JP-5S-7Ff"/>
<constraint firstAttribute="height" constant="20" id="SNb-1F-FBI"/>
</constraints>
<accessibility description="Sets"/>
</popUpButton>
<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">
<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"/>
<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">
<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"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -175,7 +156,7 @@
</tableCellView>
</prototypeCellViews>
</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">
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
@@ -188,11 +169,11 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<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"/>
<subviews>
<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">
<font key="font" metaFont="message" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -214,11 +195,11 @@
</connections>
</tableCellView>
<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"/>
<subviews>
<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">
<font key="font" metaFont="message" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -237,11 +218,11 @@
</connections>
</tableCellView>
<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"/>
<subviews>
<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">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="message" size="11"/>
@@ -266,11 +247,11 @@
</connections>
</tableCellView>
<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"/>
<subviews>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="message" size="11"/>
@@ -291,11 +272,11 @@
</connections>
</tableCellView>
<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"/>
<subviews>
<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">
<font key="font" metaFont="message" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -326,8 +307,8 @@
</tableView>
</subviews>
</clipView>
<scroller key="horizontalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="tkU-nC-Bdd">
<rect key="frame" x="1" y="233" width="446" height="16"/>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="tkU-nC-Bdd">
<rect key="frame" x="1" y="231" width="446" height="16"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="B65-gn-id0">
@@ -335,7 +316,7 @@
<autoresizingMask key="autoresizingMask"/>
</scroller>
<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"/>
</tableHeaderView>
</scrollView>
@@ -421,33 +402,33 @@
<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="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="leading" secondItem="223" secondAttribute="trailing" constant="-1" id="7tB-nW-cen"/>
<constraint firstItem="226" firstAttribute="firstBaseline" secondItem="235" secondAttribute="firstBaseline" id="6hT-HA-5KM"/>
<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="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="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 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="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="53" firstAttribute="leading" secondItem="30" secondAttribute="trailing" constant="2" 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="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="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 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="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="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 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>
<point key="canvasLocation" x="146" y="-91.5"/>
<point key="canvasLocation" x="227" y="-39.5"/>
</customView>
<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"/>
@@ -536,7 +517,7 @@ Gw
<constraint firstAttribute="trailing" secondItem="170" secondAttribute="trailing" constant="20" id="xh2-2u-G14"/>
</constraints>
</view>
<point key="canvasLocation" x="215" y="-265"/>
<point key="canvasLocation" x="227" y="314"/>
</window>
<userDefaultsController representsSharedInstance="YES" id="z7a-RX-pNz"/>
</objects>
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -49,7 +49,7 @@
<rect key="frame" x="1" y="1" width="351" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<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="width" relation="greaterThanOrEqual" constant="356" id="m8D-Ig-Qb7"/>
</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"/>
<autoresizingMask key="autoresizingMask"/>
</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"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
</scrollView>
<button toolTip="Remove selected set" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="SIg-lA-6FA">
<rect key="frame" x="44" y="19" width="25" height="23"/>
<constraints>
<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">
<rect key="frame" x="45" y="13" width="44" height="32"/>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
@@ -126,11 +122,8 @@
</connections>
</button>
<button toolTip="Edit selected set" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="C1d-lu-T7S">
<rect key="frame" x="85" y="19" width="45" height="23"/>
<constraints>
<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">
<rect key="frame" x="91" y="13" width="58" height="32"/>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
@@ -139,12 +132,8 @@
</connections>
</button>
<button toolTip="Remove selected set" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gBf-6T-hQv">
<rect key="frame" x="20" y="19" width="25" height="23"/>
<constraints>
<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">
<rect key="frame" x="13" y="13" width="44" height="32"/>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
@@ -154,24 +143,23 @@
</button>
</subviews>
<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="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="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 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 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="SIg-lA-6FA" firstAttribute="leading" secondItem="gBf-6T-hQv" secondAttribute="trailing" constant="-1" id="opb-OA-4BC"/>
<constraint firstItem="gBf-6T-hQv" firstAttribute="centerY" secondItem="SIg-lA-6FA" secondAttribute="centerY" id="ux5-dx-1Iq"/>
<constraint firstItem="SIg-lA-6FA" firstAttribute="leading" secondItem="gBf-6T-hQv" secondAttribute="trailing" constant="2" id="opb-OA-4BC"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="C1d-lu-T7S" secondAttribute="trailing" constant="20" symbolic="YES" id="ydN-Lk-gHL"/>
</constraints>
<point key="canvasLocation" x="-347" y="-669"/>
</customView>
</objects>
<resources>
<image name="NSAddTemplate" width="14" height="13"/>
<image name="NSRemoveTemplate" width="14" height="4"/>
<image name="NSAddTemplate" width="18" height="17"/>
<image name="NSRemoveTemplate" width="18" height="5"/>
</resources>
</document>
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -17,11 +17,11 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<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"/>
<subviews>
<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">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -29,10 +29,10 @@
</textFieldCell>
</textField>
<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>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<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 firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="3gK-a2-TtL" secondAttribute="trailing" constant="20" id="xBf-Ds-zaq"/>
</constraints>
<point key="canvasLocation" x="-65.5" y="-65.5"/>
<point key="canvasLocation" x="248" y="-80"/>
</view>
</objects>
</document>
+4 -4
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -31,7 +31,7 @@
<font key="font" metaFont="system"/>
</buttonCell>
</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"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Options:" id="BXP-AU-x3T">
<font key="font" metaFont="system"/>
@@ -53,7 +53,7 @@
<action selector="setSaveFormat:" target="-2" id="sGj-K4-KMX"/>
</connections>
</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"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="File Format:" id="caN-zU-chS">
<font key="font" metaFont="system"/>
+4 -4
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -15,11 +15,11 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<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"/>
<subviews>
<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">
<font key="font" metaFont="cellTitle"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+12 -12
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -93,7 +93,7 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<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"/>
<subviews>
<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"/>
<prototypeCellViews>
<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"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gyX-Aq-rgC">
@@ -182,7 +182,7 @@
</tableCellView>
</prototypeCellViews>
</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">
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
@@ -195,15 +195,15 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<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"/>
<subviews>
<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"/>
<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"/>
<font key="font" metaFont="menu"/>
<font key="font" metaFont="message"/>
<menu key="menu" autoenablesItems="NO" id="kca-wV-cAJ"/>
</popUpButtonCell>
<connections>
@@ -230,11 +230,11 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<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"/>
<subviews>
<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"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" id="3I9-re-Mst">
<font key="font" metaFont="system"/>
@@ -248,11 +248,11 @@
</connections>
</tableCellView>
<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"/>
<subviews>
<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"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" id="y3u-NN-Et0">
<font key="font" metaFont="system"/>
+4 -2
View File
@@ -34,13 +34,15 @@ final class ButtonToolbarItem : NSToolbarItem {
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)
self.label = label
self.paletteLabel = label
self.toolTip = toolTip
self.setSymbol(symbolName: symbolName, fallbackName: image)
self.target = target
self.action = action
self.setSymbol(symbolName: symbolName, fallbackName: image)
if #available(macOS 14, *) {
self.isBordered = true
+5 -1
View File
@@ -7,6 +7,10 @@
import Cocoa
final class CheckBoxCellView : NSTableCellView {
final class CheckBoxCellView : NSTableCellView, ExpandedTableViewCellActionable {
@IBOutlet var checkboxButton: NSButton!
func performAction() {
self.checkboxButton.performClick(self)
}
}
+11 -3
View File
@@ -14,7 +14,7 @@ import Cocoa
@MainActor @objc optional func collectionViewPaste(to collectionView: NSCollectionView)
}
class CollectionView: NSCollectionView, NSMenuItemValidation {
class CollectionView: NSCollectionView, NSUserInterfaceValidations {
var pasteboardTypes: [NSPasteboard.PasteboardType]
var pasteboardHasSupportedType: Bool {
@@ -67,6 +67,14 @@ class CollectionView: NSCollectionView, NSMenuItemValidation {
else if key == 27 && isSelected {
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 {
super.keyDown(with: event)
}
@@ -104,8 +112,8 @@ class CollectionView: NSCollectionView, NSMenuItemValidation {
}
}
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
if let action = menuItem.action {
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
if let action = item.action {
switch action {
case #selector(delete(_:)):
if isSelectionEmpty || implements(selector: #selector(CollectionViewDelegate.collectionViewDelete(in:))) == false {
+24 -1
View File
@@ -9,19 +9,24 @@ import Cocoa
import IOKit.pwr_mgt
import MP42Foundation
@objc(SBDocument)
final class Document: NSDocument {
private(set) var mp4: MP42File
private var unsupportedMp4Brand: Bool
override init() {
self.cancelled = false
self.options = [:]
self.optimize = false
self.unsupportedMp4Brand = false
self.mp4 = MP42File()
super.init()
self.mp4.undo = undoManager
}
init(mp4: MP42File) {
self.cancelled = false
self.options = [:]
self.optimize = false
self.unsupportedMp4Brand = false
@@ -33,6 +38,7 @@ final class Document: NSDocument {
} else {
updateChangeCount(.changeDone)
}
self.mp4.undo = undoManager
}
override func makeWindowControllers() {
@@ -56,6 +62,7 @@ final class Document: NSDocument {
override func read(from url: URL, ofType typeName: String) throws {
do {
mp4 = try MP42File(url: url)
mp4.undo = undoManager
} catch {
unsupportedMp4Brand = true
}
@@ -63,9 +70,11 @@ final class Document: NSDocument {
override func revert(toContentsOf url: URL, ofType typeName: String) throws {
mp4 = try MP42File(url: url)
mp4.undo = undoManager
if let docController = windowControllers.first as? DocumentWindowController {
docController.reloadData()
undoManager?.removeAllActions()
}
updateChangeCount(.changeCleared)
@@ -73,8 +82,11 @@ final class Document: NSDocument {
// MARK: Save
override nonisolated class var autosavesInPlace: Bool { return false }
private var optimize: Bool
private var options: [String : Any]
private var cancelled: Bool
private func saveOptions(for saveOperation: NSDocument.SaveOperationType) -> [String : Any] {
var options = [String : Any]()
@@ -117,6 +129,8 @@ final class Document: NSDocument {
do {
let reloadedFile = try MP42File(url: url)
self.mp4 = reloadedFile
self.mp4.undo = self.undoManager
self.undoManager?.removeAllActions()
docController?.reloadData()
completionHandler(error)
} catch {
@@ -132,6 +146,11 @@ final class Document: NSDocument {
super.save(to: url, ofType: typeName, for: saveOperation, completionHandler: modifiedCompletionhandler)
}
func cancelSave() {
cancelled = true
mp4.cancel()
}
private var sleepAssertion: IOPMAssertionID = IOPMAssertionID(0)
private var sleepAssertionSuccess: IOReturn = kIOReturnInvalid
@@ -177,13 +196,15 @@ final class Document: NSDocument {
fatalError("Unsupported save operation")
}
if optimize {
if optimize && cancelled == false {
DispatchQueue.main.async {
let docController = self.windowControllers.first as? DocumentWindowController
docController?.setProgress(title: NSLocalizedString("Optimizing…", comment: "Document Optimize sheet."))
}
mp4.optimize()
}
cancelled = false
}
// MARK: Save panel
@@ -191,6 +212,8 @@ final class Document: NSDocument {
private var accessoryViewController: SaveOptions?
override var shouldRunSavePanelWithAccessoryView: Bool { return false }
override var savePanelShowsFileFormatsControl: Bool { return false }
override func prepareSavePanel(_ savePanel: NSSavePanel) -> Bool {
self.accessoryViewController = SaveOptions(doc: self, savePanel: savePanel)
+26 -5
View File
@@ -18,6 +18,8 @@ private extension NSToolbarItem.Identifier {
class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
weak var target: AnyObject?
@MainActor func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? {
if itemIdentifier == .importTracks {
@@ -25,17 +27,26 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
label: NSLocalizedString("Import", comment: "Toolbar"),
toolTip: NSLocalizedString("Import tracks from external files", comment: "Toolbar"),
image: "NSAddTemplate",
symbolName: "plus",
symbolName: "doc.badge.plus",
target: target,
action: #selector(DocumentWindowController.selectFile(_:)))
} else if itemIdentifier == .deleteTracks {
return ButtonToolbarItem(itemIdentifier: itemIdentifier,
label: NSLocalizedString("Delete", comment: "Toolbar"),
toolTip: NSLocalizedString("Delete the selected track", comment: "Toolbar"),
image: "NSRemoveTemplate",
symbolName: "minus",
symbolName: "nosign",
target: target,
action: #selector(DocumentWindowController.deleteTrack(_:)))
} else if itemIdentifier == .actions {
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] {
let menuItem = NSMenuItem()
let title = minutes == 1 ? NSLocalizedString("1 minute", comment: "Toolbar") :
@@ -76,7 +87,12 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
if #available(macOS 10.15, *) {
let item = NSMenuToolbarItem(itemIdentifier: itemIdentifier)
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)
} else {
item.image = NSImage(named:"NSActionTemplate")
@@ -96,6 +112,8 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
let item = ButtonToolbarItem(itemIdentifier: itemIdentifier)
item.label = label
item.paletteLabel = label
item.toolTip = NSLocalizedString("Perform tasks with the selected items", comment: "Toolbar")
item.view = popUpButton
item.minSize = NSSize(width: 48, height: 16)
@@ -106,7 +124,8 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
label: NSLocalizedString("Search Metadata", comment: "Toolbar"),
toolTip: NSLocalizedString("Search metadata on the web", comment: "Toolbar"),
image: "NSRevealFreestandingTemplate",
symbolName: "sparkle.magnifyingglass",
symbolName: "doc.text.magnifyingglass",
target: target,
action: #selector(DocumentWindowController.searchMetadata(_:)))
} else if itemIdentifier == .sendToQueue {
return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -114,6 +133,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Send the current document to the queue", comment: "Toolbar"),
image: "ToolbarActionTemplate",
symbolName: "photo.badge.plus",
target: target,
action: #selector(Document.sendToQueue(_:)))
} else if itemIdentifier == .showQueue {
return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -121,6 +141,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Show the Queue window", comment: "Toolbar"),
image: "ToolbarActionTemplate",
symbolName: "photo.stack",
target: nil,
action: #selector(AppDelegate.showQueueWindow(_:)))
}
@@ -128,7 +149,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
}
@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] {
+129 -41
View File
@@ -7,8 +7,9 @@
import Cocoa
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 {
return document as! Document
@@ -43,11 +44,17 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
window.toolbarStyle = .expanded
}
toolbarDelegate.target = self
let toolbar = NSToolbar(identifier: "SublerDocumentToolbar")
toolbar.delegate = toolbarDelegate
toolbar.allowsUserCustomization = true
toolbar.autosavesConfiguration = true
toolbar.displayMode = .iconAndLabel
if #available(macOS 26, *) {
toolbar.displayMode = .iconOnly
} else {
toolbar.displayMode = .iconAndLabel
}
self.window?.toolbar = toolbar
window.contentViewController = splitViewController
@@ -55,17 +62,32 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
if Prefs.rememberDocumentWindowSize {
window.setFrameAutosaveName("documentSave")
window.setFrame(from: "documentSave")
window.setFrameUsingName("documentSave")
splitViewController.splitView.autosaveName = DocumentWindowController.splitViewResorationAutosaveName
splitViewController.splitView.identifier = DocumentWindowController.splitViewResorationIdentifier
}
else {
window.setContentSize(NSSize(width: 690, height: 510))
splitViewController.splitView.setPosition(160, ofDividerAt: 0)
window.setContentSize(NSSize(width: 692, height: 600))
splitViewController.splitView.setPosition(240, ofDividerAt: 0)
}
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")
@@ -121,16 +143,20 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
}
private func clearDetailsViewControllers() {
saveTabIndex(metadataViewController)
saveTabIndexes()
metadataViewController = nil
saveTabIndex(videoViewController)
videoViewController = nil
saveTabIndex(soundViewController)
soundViewController = nil
chapterViewController = nil
multiViewController = nil
}
private func saveTabIndexes() {
saveTabIndex(metadataViewController)
saveTabIndex(videoViewController)
saveTabIndex(soundViewController)
}
private func detailsViewController(_ tracks: [MP42Track]) -> PropertyView {
if tracks.count > 1 {
let controller = MultiSelectViewController(numberOfTracks: UInt(tracks.count))
@@ -169,7 +195,10 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
return emptyViewController!
default:
if metadataViewController == nil {
if let metadataViewController = metadataViewController {
metadataViewController.metadata = mp4.metadata
}
else {
metadataViewController = MovieViewController(mp4: mp4, metadata: mp4.metadata)
}
return metadataViewController!
@@ -182,12 +211,20 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
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
func didSelect(tracks: [MP42Track]) {
let detailsItem = splitViewController.splitViewItems[1]
if let detailsViewController = detailsItem.viewController.children.first {
doc.undoManager?.removeAllActions(withTarget: detailsViewController)
detailsViewController.view.removeFromSuperviewWithoutNeedingDisplay()
detailsItem.viewController.removeChild(at: 0)
}
@@ -208,7 +245,6 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
if Prefs.organizeAlternateGroups { mp4.organizeAlternateGroups() }
if Prefs.inferMediaCharacteristics { mp4.inferMediaCharacteristics() }
doc.updateChangeCount(.changeDone)
tracksViewController.reloadData()
}
}
@@ -221,11 +257,13 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
case #selector(selectFile(_:)),
#selector(selectMetadataFile(_:)),
#selector(searchMetadata(_:)),
#selector(searchChapters(_:)),
#selector(addChaptersEvery(_:)),
#selector(iTunesFriendlyTrackGroups(_:)),
#selector(clearTrackNames(_:)),
#selector(prettifyAudioTrackNames(_:)),
#selector(fixAudioFallbacks(_:)):
#selector(fixAudioFallbacks(_:)),
#selector(sendToQueue(_:)):
return true
case #selector(sendToExternalApp(_:)) where mp4.hasFileRepresentation && doc.isDocumentEdited == false:
@@ -280,12 +318,16 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
}
}
func cancel() {
mp4.cancel()
func cancelSave() {
doc.cancelSave()
}
// MARK: Actions
@IBAction func sendToQueue(_ sender: Any) {
doc.sendToQueue(self)
}
@IBAction func sendToExternalApp(_ sender: Any) {
if let fileURL = doc.fileURL {
_ = sendToFileExternalApp(fileURL: fileURL)
@@ -301,16 +343,16 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
let minutes = sender.tag * 60 * 1000
if minutes > 0 {
for (index, duration) in stride(from: 0, to: mp4.duration, by: minutes).enumerated() {
track.addChapter("Chapter \(index + 1)", duration: UInt64(duration))
for (index, timestamp) in stride(from: 0, to: mp4.duration, by: minutes).enumerated() {
track.addChapter("Chapter \(index + 1)", timestamp: UInt64(timestamp))
}
}
else {
track.addChapter("Chapter 1", duration: UInt64(mp4.duration))
track.addChapter("Chapter 1", timestamp: 0)
}
doc.updateChangeCount(.changeDone)
tracksViewController.reloadData()
tracksViewController.selectTracks([track])
}
@IBAction func iTunesFriendlyTrackGroups(_ sender: Any) {
@@ -318,7 +360,6 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
mp4.inferTracksLanguages()
mp4.inferMediaCharacteristics()
doc.updateChangeCount(.changeDone)
tracksViewController.reloadData()
}
@@ -327,7 +368,6 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
track.name = ""
}
doc.updateChangeCount(.changeDone)
tracksViewController.reloadData()
}
@@ -337,13 +377,11 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
track.name = track.prettyTrackName
}
doc.updateChangeCount(.changeDone)
tracksViewController.reloadData()
}
@IBAction func fixAudioFallbacks(_ sender: Any) {
mp4.setAutoFallback()
doc.updateChangeCount(.changeDone)
tracksViewController.reloadData()
}
@@ -392,9 +430,10 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
func didSelect(metadata: MetadataResult) {
let map = metadata.mediaKind == .movie ? MetadataPrefs.movieResultMap : MetadataPrefs.tvShowResultMap
let keepEmptyKeys = MetadataPrefs.keepEmptyAnnotations
let overwriteExisting = MetadataPrefs.overwriteExistingAnnotations
let result = metadata.mappedMetadata(to: map, keepEmptyKeys: keepEmptyKeys)
mp4.metadata.merge(result)
mp4.metadata.merge(result, overwrite: overwriteExisting)
if let hdType = mp4.hdType {
for item in mp4.metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyHDVideo) {
@@ -403,25 +442,46 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
mp4.metadata.addItem(MP42MetadataItem(identifier: MP42MetadataKeyHDVideo, value: NSNumber(value: hdType.rawValue),
dataType: .integer, extendedLanguageTag: nil))
}
doc.updateChangeCount(.changeDone)
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)
tracksViewController.reloadData()
tracksViewController.selectTracks([chapterTrack])
}
// MARK: File import
private func addChapters(fileURL: URL) {
mp4.addTrack(MP42ChapterTrack(fromFile: fileURL))
doc.updateChangeCount(.changeDone)
let track = MP42ChapterTrack(fromFile: fileURL)
mp4.addTrack(track)
tracksViewController.reloadData()
tracksViewController.selectTracks([track])
}
private func updateChapters(fileURL: URL) {
do {
try mp4.chapters?.update(fromCSVFile: fileURL)
doc.updateChangeCount(.changeDone)
if let track = mp4.chapters {
chapterViewController?.track = track
tracksViewController.selectTracks([track])
}
}
catch {
@@ -436,13 +496,13 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
private func addMetadata(fileURL: URL) {
let ext = fileURL.pathExtension.lowercased()
if ext == "xml" || ext == "nfo", let metadata = MP42Metadata(url: fileURL) {
mp4.metadata.merge(metadata)
doc.updateChangeCount(.changeDone)
mp4.metadata.merge(metadata, overwrite: true)
metadataViewController?.metadata = mp4.metadata
tracksViewController.selectTracks([])
} else if let file = try? MP42File(url: fileURL) {
mp4.metadata.merge(file.metadata)
doc.updateChangeCount(.changeDone)
mp4.metadata.merge(file.metadata, overwrite: true)
metadataViewController?.metadata = mp4.metadata
tracksViewController.selectTracks([])
}
}
@@ -452,7 +512,13 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
panel.allowsMultipleSelection = false
panel.canChooseFiles = true
panel.canChooseDirectories = false
panel.allowedFileTypes = ["mp4", "m4v", "m4a", "xml", "nfo"]
if #available(macOS 12, *) {
panel.allowedContentTypes = [.mpeg4Movie, .mpeg4Audio,
.appleProtectedMPEG4Video,
.xml, UTType(filenameExtension: "nfo")!]
} else {
panel.allowedFileTypes = ["mp4", "m4v", "m4a", "xml", "nfo"]
}
panel.beginSheetModal(for: windowForSheet) { (response) in
if response == NSApplication.ModalResponse.OK, let url = panel.url {
@@ -463,13 +529,17 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
@IBAction func selectFile(_ sender: Any) {
guard let windowForSheet = doc.windowForSheet else { return }
let supportedFileFormats = MP42FileImporter.supportedFileFormats() + ["txt", "csv"]
let panel = NSOpenPanel()
panel.allowsMultipleSelection = true
panel.canChooseFiles = true
panel.canChooseDirectories = false
panel.allowedFileTypes = supportedFileFormats
if #available(macOS 11, *) {
panel.allowedContentTypes = MP42FileImporter.supportedContentTypes() + [.text, .commaSeparatedText]
} else {
panel.allowedFileTypes = MP42FileImporter.supportedFileFormats() + ["txt", "csv"]
}
panel.beginSheetModal(for: windowForSheet) { (response) in
if response == NSApplication.ModalResponse.OK {
@@ -507,14 +577,28 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
}
}
@objc func importFilesDirectly(_ fileURLs: [URL]) {
do {
let controller = try FileImportController(fileURLs: fileURLs, 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?) {
for track in tracks {
mp4.addTrack(track)
}
if tracks.isEmpty == false {
doc.updateChangeCount(.changeDone)
if Prefs.organizeAlternateGroups {
mp4.organizeAlternateGroups()
if Prefs.inferMediaCharacteristics {
@@ -524,13 +608,17 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
}
}
if let metadata = metadata {
mp4.metadata.merge(metadata)
doc.updateChangeCount(.changeDone)
metadataViewController?.metadata = mp4.metadata
if let metadata, metadata.items.isEmpty == false {
mp4.metadata.merge(metadata, overwrite: true)
}
tracksViewController.reloadData()
if let metadata, metadata.items.isEmpty == false {
tracksViewController.selectTracks([])
} else if tracks.isEmpty == false {
tracksViewController.selectTracks(tracks)
}
}
// MARK: Drag & drop
+20 -5
View File
@@ -14,7 +14,11 @@ import Cocoa
@MainActor @objc optional func paste(to tableview: NSTableView)
}
class ExpandedTableView: NSTableView, NSMenuItemValidation {
protocol ExpandedTableViewCellActionable {
func performAction()
}
class ExpandedTableView: NSTableView {
var pasteboardTypes: [NSPasteboard.PasteboardType]
var pasteboardHasSupportedType: Bool {
@@ -59,12 +63,20 @@ class ExpandedTableView: NSTableView, NSMenuItemValidation {
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) {
guard let key = event.charactersIgnoringModifiers?.utf16.first else { super.keyDown(with: event); return }
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:))) {
if selectedRow == -1 {
@@ -73,6 +85,9 @@ class ExpandedTableView: NSTableView, NSMenuItemValidation {
expandedDelegate?.deleteSelection!(in: self)
}
}
else if key == NSRightArrowFunctionKey || key == NSLeftArrowFunctionKey {
self.window?.windowController?.keyDown(with: event)
}
else if key == 27 && selectedRow != -1 {
deselectAll(self)
}
@@ -114,8 +129,8 @@ class ExpandedTableView: NSTableView, NSMenuItemValidation {
}
}
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
if let action = menuItem.action {
override func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
if let action = item.action {
switch action {
case #selector(delete(_:)):
if selectedRow == -1 || implements(selector: #selector(ExpandedTableViewDelegate.deleteSelection(in:))) == false {
@@ -137,6 +152,6 @@ class ExpandedTableView: NSTableView, NSMenuItemValidation {
break
}
}
return true
return super.validateUserInterfaceItem(item)
}
}
+126 -7
View File
@@ -12,7 +12,7 @@ protocol FileImportControllerDelegate : AnyObject {
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?)
}
final class FileImportController: ViewController, NSTableViewDataSource, NSTableViewDelegate, NSMenuItemValidation {
final class FileImportController: ViewController, NSTableViewDataSource, NSTableViewDelegate, NSUserInterfaceValidations {
private enum ItemType {
case file(MP42FileImporter)
@@ -115,6 +115,17 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
enabled: true)
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:
break
}
@@ -233,6 +244,7 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
}
private func setCheck(value: Bool, forIndexes indexes: IndexSet) {
var modifiedIndexes = IndexSet()
for index in indexes {
let item = items[index]
switch item {
@@ -240,16 +252,18 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
break
case .track(let settings):
settings.checked = value && settings.importable
modifiedIndexes.insert(index)
}
}
reloadCheckColumn(forRowIndexes: indexes)
reloadCheckColumn(forRowIndexes: modifiedIndexes)
}
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
if let action = menuItem.action,
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
if let action = item.action,
action == #selector(self.checkSelected(_:)) ||
action == #selector(self.uncheckSelected(_:)) ||
action == #selector(self.checkOnlyTracksWithSameLanguage(_:)) {
action == #selector(self.checkOnlyTracksWithSameLanguage(_:)) ||
action == #selector(self.checkOnlySelectedTracks(_:)) {
if tracksTableView.selectedRow != -1 || tracksTableView.clickedRow != -1 {
return true
}
@@ -276,8 +290,36 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
}
}
settings.forEach { $0.checked = $0.importable && languages.contains($0.track.language) }
reloadCheckColumn(forRowIndexes: IndexSet(integersIn: items.indices))
var modifiedIndexes = IndexSet()
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
@@ -287,6 +329,8 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
}
@IBAction func addTracks(_ sender: Any) {
logTracksTable()
var selectedTracks: [MP42Track] = []
for trackSettings in settings where trackSettings.checked {
@@ -411,6 +455,7 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
case checkColumn?:
let cell = tableView.makeView(withIdentifier: checkColumn, owner:self) as? CheckBoxCellView
cell?.checkboxButton?.state = settings.checked ? .on : .off
cell?.checkboxButton?.isEnabled = settings.importable
return cell
case trackIdColumn?:
@@ -479,4 +524,78 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
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"))
}
}
+85
View File
@@ -23,6 +23,84 @@ class GeneralPrefsViewController: NSViewController {
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) {
MetadataSearchController.clearRecentSearches()
}
@@ -37,4 +115,11 @@ class GeneralPrefsViewController: NSViewController {
@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: "")
]
}
}
+51 -3
View File
@@ -10,7 +10,15 @@ import MP42Foundation
final class Logger : NSObject, MP42Logging {
enum Format: Int {
case timeOnly = 0
case dateAndTime = 1
}
static let shared = Logger(fileURL: defaultDestinationURL)
var delegate: MP42Logging?
var format: Format { Format(rawValue: Prefs.logFormat) ?? .timeOnly }
private let fileURL: URL
private let queue: DispatchQueue
@@ -24,7 +32,17 @@ final class Logger : NSObject, MP42Logging {
var currentTime = time(nil)
if let localTime = localtime(&currentTime) {
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(&currentTime) {
let p = localTime.pointee
return String(format: "%04d-%02d-%02d", p.tm_year + 1900, p.tm_mon + 1, p.tm_mday)
} else {
return ""
}
@@ -32,7 +50,14 @@ final class Logger : NSObject, MP42Logging {
func write(toLog string: String) {
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 {
if let file = fopen($0, "a") {
@@ -40,7 +65,7 @@ final class Logger : NSObject, MP42Logging {
fclose(file)
}
}
if let delegate = delegate {
delegate.write(toLog: output)
}
@@ -55,5 +80,28 @@ final class Logger : NSObject, MP42Logging {
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("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")
}
}
}
+5 -1
View File
@@ -27,7 +27,7 @@ extension MP42File {
var hdType: TrackHDType? {
for track in tracks(withMediaType: kMP42MediaType_Video) as! [MP42VideoTrack] {
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 {
return .hd1080p
} else if track.width >= 960 && track.height >= 720 || track.width >= 1280 {
@@ -91,6 +91,10 @@ extension MP42File {
}
}
func firstSourceDirectoryURL() -> URL? {
return tracks.compactMap { $0.url }.first?.deletingLastPathComponent()
}
func formattedFileName() -> String? {
guard let mediaKindValue = metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyMediaKind).first?.numberValue?.intValue,
let mediaKind = MediaKind(rawValue: mediaKindValue)
+37 -16
View File
@@ -29,7 +29,7 @@ private extension MetadataResult {
self[.director] = item.rolesSummary?.directors?.joined(separator: ", ")
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) }
}
@@ -39,7 +39,7 @@ private extension MetadataResult {
self.mediaKind = .tvShow
self[.serviceSeriesID] = item.id
self[.serviceContentID] = item.id
self[.seriesName] = item.title
self[.seriesDescription] = item.description
@@ -59,13 +59,14 @@ private extension MetadataResult {
}
self[.iTunesURL] = episode.showURL
self[.serviceSeriesID] = episode.showID
self[.serviceContentID] = episode.showID
if let releaseDate = item.releaseDate {
self[.releaseDate] = Date(timeIntervalSince1970: releaseDate / 1000)
}
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.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 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 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 {
return term.replacingOccurrences(of: " (Dubbed)", with: "")
@@ -156,16 +157,21 @@ public struct AppleTV: MetadataService {
private func loadDetails(_ metadata: MetadataResult, language: String) -> MetadataResult {
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 }
metadata.insert(contentOf: details, store: store)
if let season = metadata[.season] as? Int {
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
}
@@ -221,7 +227,8 @@ public struct AppleTV: MetadataService {
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) {
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 []
}
@@ -236,7 +243,7 @@ public struct AppleTV: MetadataService {
let items = results.data.canvas?.shelves.first?.items
.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
} else if let result = items?.filter({ $0.title?.minimumEditDistance(other: normalizedTerm) ?? Int.max < 8 }).first {
return result
@@ -247,15 +254,29 @@ public struct AppleTV: MetadataService {
if let filteredResult = filteredResult {
if let artworks = filteredResult.images.coverArt16X9?.artwork(type: .poster) {
var artworksSet = Set<Artwork>()
if case let MediaType.tvShow(season) = type {
if let season = season {
return [artworks] + searchSeasons(id: filteredResult.id, season: season, store: store)
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 let season = season {
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 []
@@ -360,11 +381,11 @@ public struct AppleTV: MetadataService {
get {
switch size {
case .square:
return "800x800.jpg"
return "1600x1600.jpg"
case .rectangle:
return "800x450.jpg"
return "1920x1080.jpg"
default:
return "600x900.jpg"
return "1200x1800.jpg"
}
}
}
File diff suppressed because it is too large. Load diff
@@ -10,12 +10,16 @@ import MP42Foundation
public enum LanguageType {
case ISO
case ISO_639_2
case custom
public func displayName(language: String) -> String {
switch self {
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:
return language
}
@@ -25,6 +29,20 @@ public enum LanguageType {
switch self {
case .ISO:
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:
return displayName
}
@@ -113,7 +131,7 @@ public enum 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 func service(name: String?) -> MetadataService {
@@ -147,8 +165,8 @@ extension MetadataSearch {
}
public static func setDefaultLanguage(_ language: String, service: MetadataService, type: MetadataType) {
let extendedLanguage = service.languageType.extendedTag(displayName: language)
UserDefaults.standard.set(extendedLanguage, forKey: "SBMetadataPreference|\(type.description)|\(service.name)|Language")
let language = service.languageType.tag(displayName: language)
UserDefaults.standard.set(language, forKey: "SBMetadataPreference|\(type.description)|\(service.name)|Language")
}
}
+115 -12
View File
@@ -19,12 +19,36 @@ public enum ArtworkSize : Int, CustomStringConvertible {
return "square"
case .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 square
case rectangle
case vertical
case fullscreen
case widescreen
case maxres
case low
case medium
case high
case `default`
}
public enum ArtworkType : Int, CustomStringConvertible {
@@ -38,6 +62,8 @@ public enum ArtworkType : Int, CustomStringConvertible {
return "episode"
case .backdrop:
return "backdrop"
case .person:
return "person"
case .none:
return NSLocalizedString("None", comment: "Queue metadata search artwork type")
@@ -57,15 +83,83 @@ public enum ArtworkType : Int, CustomStringConvertible {
case season
case episode
case backdrop
case none
case person = 5
case none = 4
}
public struct Artwork {
public struct Artwork: Equatable, Hashable {
public let url: URL
public let thumbURL: URL
public let service: String
public let type: ArtworkType
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 {
@@ -113,8 +207,9 @@ private let localizedKeys: [MetadataResult.Key: String] = [
.season : NSLocalizedString("Season", comment: "nil"),
.network : NSLocalizedString("Network", comment: "nil"),
.serviceSeriesID : NSLocalizedString("Service ID", comment: "nil"),
.serviceEpisodeID : NSLocalizedString("Service ID", comment: "nil")
.serviceContentID : NSLocalizedString("Service Content ID", comment: "nil"),
.serviceAdditionalContentID : NSLocalizedString("Service Additional Content ID", comment: "nil"),
.serviceEpisodeID : NSLocalizedString("Service Episode ID", comment: "nil")
]
public final class MetadataResult {
@@ -156,10 +251,10 @@ public final class MetadataResult {
case season = "{Season}"
case network = "{Network}"
//
case serviceSeriesID = "ServiceSeriesID"
case serviceAdditionalSeriesID = "AdditionalServiceSeriesID"
case serviceEpisodeID = "ServiceEpisodeID"
// Services internal IDs
case serviceContentID = "{ServiceSeriesID}"
case serviceAdditionalContentID = "{AdditionalServiceSeriesID}"
case serviceEpisodeID = "{ServiceEpisodeID}"
fileprivate static var movieKeys: [Key] {
return [.name,
@@ -178,7 +273,11 @@ public final class MetadataResult {
.copyright,
.contentID,
.artistID,
.iTunesCountry]
.iTunesCountry,
.serviceContentID,
.serviceAdditionalContentID,
.serviceEpisodeID]
}
fileprivate static var tvShowKeys: [Key] {
@@ -211,6 +310,10 @@ public final class MetadataResult {
.artistID,
.playlistID,
.iTunesCountry,
.serviceContentID,
.serviceAdditionalContentID,
.serviceEpisodeID
]
}
@@ -247,8 +350,8 @@ public final class MetadataResult {
.iTunesURL,
.iTunesCountry,
.serviceSeriesID,
.serviceAdditionalSeriesID,
.serviceContentID,
.serviceAdditionalContentID,
.serviceEpisodeID
]
}
@@ -305,7 +408,7 @@ public final class MetadataResult {
if let index1 = sortedKeys.firstIndex(of: key1), let index2 = sortedKeys.firstIndex(of: key2) {
return index1 < index2
}
return key1 != Key.serviceSeriesID && key1 != Key.serviceEpisodeID
return key1 != Key.serviceContentID && key1 != Key.serviceEpisodeID
})
}()
+11 -28
View File
@@ -39,7 +39,7 @@ public struct TheMovieDB: MetadataService {
metadata.mediaKind = .movie
metadata[.serviceSeriesID] = result.id
metadata[.serviceContentID] = result.id
metadata[.name] = result.title
metadata[.releaseDate] = result.release_date
metadata[.longDescription] = result.overview;
@@ -111,16 +111,9 @@ public struct TheMovieDB: MetadataService {
private func loadMovieArtworks(result: TMDBMovie) -> [Artwork] {
var artworks: [Artwork] = []
var iTunesImage = [Artwork](), appleTV = [Artwork]()
var appleTV = [Artwork]()
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) {
if let title = result.title,
let store = iTunesStore.Store(language: "USA (English)") {
@@ -130,7 +123,6 @@ public struct TheMovieDB: MetadataService {
group.wait()
artworks.append(contentsOf: appleTV)
artworks.append(contentsOf: iTunesImage)
// Add TheMovieDB artworks
if let config = session.fetchConfiguration()?.images,
@@ -154,7 +146,7 @@ public struct TheMovieDB: MetadataService {
}
return artworks
return artworks.sortedTopPicks(service: self.name)
}
private func metadata(forResult result: TMDBMovie, language: String?) -> MetadataResult {
@@ -184,12 +176,13 @@ public struct TheMovieDB: MetadataService {
}
metadata.remoteArtworks = loadMovieArtworks(result: result)
metadata[.serviceContentID] = result.id
return metadata
}
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)
else { return partialMetadata }
@@ -228,7 +221,7 @@ public struct TheMovieDB: MetadataService {
private func loadSquareTVArtwork(_ metadata: MetadataResult) -> [Artwork] {
guard let tvShow = metadata[.seriesName] as? String,
let seasonNum = metadata[.season] as? Int,
let seriesId = metadata[.serviceAdditionalSeriesID] as? Int
let seriesId = metadata[.serviceAdditionalContentID] as? Int
else { return [] }
return SquaredTVArt().search(tvShow: tvShow, theTVDBSeriesId: seriesId, season: seasonNum)
@@ -279,8 +272,8 @@ public struct TheMovieDB: MetadataService {
metadata.mediaKind = .tvShow
// TV Show Info
metadata[.serviceSeriesID] = info.id
metadata[.serviceAdditionalSeriesID] = info.external_ids?.tvdb_id
metadata[.serviceContentID] = info.id
metadata[.serviceAdditionalContentID] = info.external_ids?.tvdb_id
metadata[.seriesName] = info.name
metadata[.seriesDescription] = info.overview
@@ -360,7 +353,7 @@ public struct TheMovieDB: MetadataService {
public func loadTVMetadata(_ metadata: MetadataResult, language: String) -> MetadataResult {
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 seasonImages = session.fetch(imagesForSeriesID: seriesID, season: String(season), language: language)
@@ -378,17 +371,8 @@ public struct TheMovieDB: MetadataService {
artworks.insert(contentsOf: metadata.remoteArtworks, at: 0)
var iTunesImage = [Artwork](), appleTV = [Artwork](), squareTVArt = [Artwork]()
var appleTV = [Artwork](), squareTVArt = [Artwork]()
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) {
if let name = metadata[.seriesName] as? String,
let season = metadata[.season] as? Int,
@@ -403,11 +387,10 @@ public struct TheMovieDB: MetadataService {
}
group.wait()
artworks.insert(contentsOf: iTunesImage, at: 0)
artworks.insert(contentsOf: squareTVArt, at: 0)
artworks.insert(contentsOf: appleTV, at: 0)
metadata.remoteArtworks = artworks
metadata.remoteArtworks = artworks.sortedTopPicks(service: self.name)
return metadata
}
+248 -154
View File
@@ -11,11 +11,10 @@ import MP42Foundation
public struct TheTVDB : MetadataService {
private let session = TheTVDBService.sharedInstance
private static let bannerPath = "https://thetvdb.com/banners/"
public var languageType: LanguageType {
get {
return .ISO
return .ISO_639_2
}
}
@@ -26,7 +25,7 @@ public struct TheTVDB : MetadataService {
}
public var defaultLanguage: String {
return "en"
return "eng"
}
public var name: String {
@@ -38,13 +37,8 @@ public struct TheTVDB : MetadataService {
public func search(tvShow: String, language: String) -> [String] {
var results: Set<String> = Set()
let series = session.fetch(series: tvShow, language: language)
results.formUnion(series.compactMap { $0.seriesName } )
if language != defaultLanguage {
let englishResults = search(tvShow: tvShow, language: defaultLanguage)
results.formUnion(englishResults)
}
let series = session.fetch(series: tvShow)
results.formUnion(series.compactMap { $0.translations?[language] ?? $0.name } )
if results.isEmpty {
return TheMovieDB().search(tvShow: tvShow, language: language)
@@ -55,31 +49,37 @@ public struct TheTVDB : MetadataService {
// MARK: - TV Series ID search
private func match(series: TVDBSeriesSearchResult, name: String) -> Bool {
if let name = series.seriesName, name.caseInsensitiveCompare(name) == .orderedSame {
private func match(series: TVDBSearchResult, name: String, language: String) -> Bool {
if let seriesName = series.translations?[language] ?? series.name,
seriesName.caseInsensitiveCompare(name) == .orderedSame {
return true
}
for alias in series.aliases {
if alias.caseInsensitiveCompare(name) == .orderedSame {
return true
if let aliases = series.aliases {
for alias in aliases {
if alias.caseInsensitiveCompare(name) == .orderedSame {
return true
}
}
}
return false
}
private func searchIDs(seriesName: String, language: String) -> [Int] {
let series = session.fetch(series: seriesName, language: language)
private func searchIDs(seriesName: String, language: String) -> [String] {
let series = session.fetch(series: seriesName)
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 {
return filteredSeries
}
else if let firstItemsID = series.first?.id {
} else if let firstItemsID = series.first?.tvdb_id {
return [firstItemsID]
}
else {
@@ -89,12 +89,27 @@ public struct TheTVDB : MetadataService {
// MARK: - Helpers
private func cleanList(actors: [TVDBActor]) -> String {
return actors.map { $0.name } .reduce("", { $0 + ($0.isEmpty ? "" : ", ") + $1 })
private func cleanList(characters: [TVDBCharacter], type: String) -> String {
return characters.filter { $0.peopleType == type }
.map { $0.personName }
.reduce("", { $0 + ($0.isEmpty ? "" : ", ") + $1 })
}
private func cleanList(names: [String]) -> String {
return names.reduce("", { $0 + ($0.isEmpty ? "" : ", ") + $1 })
private func cleanList(genres: [TVDBGenreBaseRecord]) -> String {
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 {
@@ -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()
result.mediaKind = .tvShow
// TV Show Info
result[.serviceSeriesID] = info.id
result[.seriesName] = info.seriesName
result[.seriesDescription] = info.overview?.trimmingWhitespacesAndNewlinews()
result[.genre] = cleanList(names: info.genre)
result[.network] = info.network
result[.serviceContentID] = info.id
result[.seriesName] = translation?.name ?? info.name
result[.seriesDescription] = (translation?.overview ?? info.overview)?.trimmingWhitespacesAndNewlinews()
result[.genre] = cleanList(genres: info.genres)
result[.network] = info.originalNetwork?.name
result[.rating] = cleanList(ratings: info.contentRatings, mediaKind: .tvShow)
result[.cast] = cleanList(characters: info.characters ?? [], type: "Actor")
// Episode Info
result[.serviceEpisodeID] = episode.id
result[.name] = episode.episodeName
result[.releaseDate] = episode.firstAired
result[.longDescription] = episode.overview?.trimmingWhitespacesAndNewlinews()
result[.name] = episodeTranslation?.name ?? episode.name
result[.releaseDate] = episode.aired
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[.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)
result.remoteArtworks += cleanArtworks(info.artworks)
// TheTVDB does not provide the following fields normally associated with TV shows in SBMetadataResult:
// "Copyright", "Comments", "Producers", "Artist"
@@ -150,14 +255,24 @@ public struct TheTVDB : MetadataService {
return result
}
private func loadEpisodes(info: TVDBSeriesInfo, actors: [TVDBActor], season: Int?, episode: Int?, language: String) -> [MetadataResult] {
let episodes = session.fetch(episodeForSeriesID: info.id, season: season, episode: episode, language: language)
let filteredEpisodes = episodes.filter {
(season != nil ? $0.airedSeason == season : true) &&
(episode != nil ? $0.airedEpisodeNumber == episode : true)
}
private func loadEpisodes(info: TVDBSeriesExtendedRecord, seasonID: Int?, episodeID: Int?, language: String) -> [MetadataResult] {
let translation = session.fetch(seriesTranslation: String(info.id), language: language)
return filteredEpisodes.map { merge(episode: $0, info: info, actors: actors) }
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 {
(seasonID != nil ? $0.seasonNumber == seasonID : true) &&
(episodeID != nil ? $0.number == episodeID : true)
}
return filteredEpisodes.map { merge(episode: $0, info: info, translation: translation, episodeTranslation: nil ) }
}
}
// MARK: - Nil values check
@@ -213,8 +328,8 @@ public struct TheTVDB : MetadataService {
}
}
private func merge(info: TVDBSeriesInfo, results: [MetadataResult]) {
let name = info.seriesName
private func merge(info: TVDBSeriesExtendedRecord, results: [MetadataResult]) {
let name = info.name
for result in results {
result[.seriesName] = name
}
@@ -229,70 +344,38 @@ public struct TheTVDB : MetadataService {
// MARK: - TV Search
public func search(tvShow: String, language: String, season: Int?, episode: Int?) -> [MetadataResult] {
let seriesIDs: [Int] = {
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] = []
let seriesIDs: [String] = self.searchIDs(seriesName: tvShow, language: language)
for id in seriesIDs {
guard let info: TVDBSeriesInfo = {
let result = session.fetch(seriesInfo: id, language: language)
return result != nil ? result : session.fetch(seriesInfo: id, language: defaultLanguage)
}()
else { continue }
let actors = session.fetch(actors: id, language: language)
let episodes = loadEpisodes(info: info, actors: actors, season: season, episode: episode, language: language)
if let info = session.fetch(seriesInfo: id) {
let availableLanguage = info.overviewTranslations.first(where: { $0 == language }) ??
info.overviewTranslations.first(where: { $0 == defaultLanguage }) ??
info.overviewTranslations.first ?? defaultLanguage
let nilValues = checkMissingValues(results: episodes)
let episodes = loadEpisodes(info: info, seasonID: season, episodeID: episode, language: availableLanguage)
if language != defaultLanguage {
if nilValues.contains(.seriesInfo),
let enInfo = session.fetch(seriesInfo: id, language: defaultLanguage) {
merge(info: enInfo, results: episodes)
let nilValues = checkMissingValues(results: episodes)
if language != defaultLanguage {
if nilValues.contains(.episodesInfo) {
let enResults = loadEpisodes(info: info, seasonID: season, episodeID: episode, language: defaultLanguage)
merge(enResults: enResults, results: episodes)
}
}
if nilValues.contains(.episodesInfo) {
let enResults = loadEpisodes(info: info, actors: actors, season: season, episode: episode, language: defaultLanguage)
merge(enResults: enResults, results: episodes)
}
return episodes.sorted(by: areInIncreasingOrder)
}
results.append(contentsOf: episodes.sorted(by: areInIncreasingOrder))
break
}
return results
return []
}
// 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] {
guard let tvShow = metadata[.seriesName] as? String,
let seasonNum = metadata[.season] as? Int,
let seriesId = metadata[.serviceSeriesID] as? Int
let seriesId = metadata[.serviceContentID] as? Int
else { return [] }
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))
}
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 {
guard let id = metadata[.serviceEpisodeID] as? Int else { return metadata }
guard let seriesId = metadata[.serviceSeriesID] as? Int else { return metadata }
var artworks: [Artwork] = []
if let info = session.fetch(episodeInfo: id, language: language) {
metadata[.director] = cleanList(names: info.directors)
metadata[.screenwriters] = cleanList(names: info.writers)
metadata[.director] = cleanList(characters: info.characters ?? [], type: "Director")
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 actors.count > 0 && guests.count > 0 {
metadata[.cast] = actors + ", " + guests
@@ -353,51 +407,91 @@ public struct TheTVDB : MetadataService {
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))
}
}
// Get additionals images
if let season = metadata[.season] as? Int {
var iTunesImage = [Artwork](), appleTV = [Artwork](), squareTVArt = [Artwork](), seasonImages = [Artwork](), posterImages = [Artwork]()
if ((metadata[.season] as? Int) != nil) {
var appleTV = [Artwork](), squareTVArt = [Artwork]()
let group = DispatchGroup()
DispatchQueue.global().async(group: group) {
iTunesImage = self.loadiTunesArtwork(metadata)
}
DispatchQueue.global().async(group: group) {
squareTVArt = self.loadSquareTVArtwork(metadata)
}
DispatchQueue.global().async(group: group) {
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()
artworks.insert(contentsOf: iTunesImage, at: 0)
artworks.insert(contentsOf: squareTVArt, 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
}
// 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] {
return []
let results = session.fetch(movie: movie)
return results.map { metadata(forMoviePartialResult: $0, language: language) }
}
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
}
}
+511 -190
View File
@@ -8,117 +8,377 @@
import Foundation
import MP42Foundation
public struct TVDBSeriesSearchResult : Codable {
public let aliases: [String]
public let banner: String?
public let firstAired: String?
public let id: Int
public let imdbId: String?
public let network: String?
public let overview: String?
public let seriesName: String?
public let status: String
struct TVDBLanguage : Codable {
let id: String
let name: String
let nativeName: String
let shortCode: String?
}
public struct TVDBSeriesInfo : Codable {
public let added: 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 struct TVDBAlias : Codable {
public let language: String
public let name: String
//public let role: String?
}
public struct TVDBRatingInfo : Codable {
public let average: Double
public let count: Int
public class TVDBArtworkType : Codable {
public let id: Int64
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 let fileName: String
public let keyType: String
public let ratingsInfo: TVDBRatingInfo?
public let resolution: String?
public let subKey: String?
public class TVDBArtworkStatus : Codable {
let id: Int64
let name: 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 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 airedEpisodeNumber: Int
public let airedSeason: Int
//public let dvdEpisodeNumber: Double?
//public let dvdSeason: Double?
public let episodeName: String?
public let firstAired: String?
public let aired: String?
public let airsBeforeEpisode: Int?
public let airsBeforeSeason: Int?
public let finaleType: String?
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 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 let absoluteNumber: Int?
public let airedEpisodeNumber: Int?
public let airedSeason: Int?
public let directors: [String]
//public let dvdEpisodeNumber: Double?
//public let dvdSeason: Double?
public let episodeName: String?
public let filename: String?
public let firstAired: String?
public let guestStars: [String]
public let id: Int
public struct TVDBEpisodeExtendedRecord : Codable {
public let aired: String?
public let airsAfterSeason: Int?
public let airsBeforeEpisode: Int?
public let airsBeforeSeason: Int?
// public let awards: [TVDBAwardBaseRecord]
public let characters: [TVDBCharacter]?
public let companies: [TVDBCompany]?
public let contentRatings: [TVDBContentRating]
public let finaleType: String?
public let id: Int64
public let image: String?
public let imageType: Int?
public let isMovie: Int64
public let lastUpdated: String
public let linkedMovie: 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 writers: [String]
public let overviewTranslations: [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 {
var theTVDBName: String {
switch self {
case .poster:
return "poster"
case .season:
return "season"
default:
return "poster"
}
}
public struct TVDBSeriesBaseRecord : Codable {
public let aliases: [TVDBAlias]?
public let averageRuntime: Int?
public let defaultSeasonType: Int64?
public let episodes: [TVDBEpisodeBaseRecord]?
public let firstAired: String?
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 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 {
@@ -128,40 +388,26 @@ final public class TheTVDBService {
private let queue: 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 {
let data: [String]
let timestamp: TimeInterval
}
private var savedLanguages: Languages?
private var savedLanguages: [String]
public var languages: [String] {
get {
return ["en",
"sv",
"no",
"da",
"fi",
"nl",
"de",
"it",
"es",
"fr",
"pl",
"hu",
"el",
"tr",
"ru",
"he",
"ja",
"pt",
"zh",
"cs",
"sl",
"hr",
"ko"]
return queue.sync {
let now = Date.timeIntervalSinceReferenceDate
let timestamp = UserDefaults.standard.double(forKey: "SBTheTVBDv4LanguagesArrayTimestamp")
if let languagesArray = UserDefaults.standard.object(forKey: "SBTheTVBDv4LanguagesArray") as? [String], languagesArray.isEmpty == false,
timestamp + 60 * 60 * 24 * 30 > Date.timeIntervalSinceReferenceDate {
savedLanguages = languagesArray
} else {
savedLanguages = fetchLanguages()
UserDefaults.standard.set(savedLanguages, forKey: "SBTheTVBDv4LanguagesArray")
UserDefaults.standard.set(now, forKey: "SBTheTVBDv4LanguagesArrayTimestamp")
}
return savedLanguages
}
}
}
@@ -170,6 +416,9 @@ final public class TheTVDBService {
let timestamp: TimeInterval
}
private static let tokenKey = "SBTheTVBDv4Token"
private static let tokenTimestampKey = "SBTheTVBDv4TokenTimestamp"
private var savedToken: Token?
private var token: Token? {
@@ -179,8 +428,8 @@ final public class TheTVDBService {
return result
}
else if let result = login() {
UserDefaults.standard.set(result.key, forKey: "SBTheTVBDToken")
UserDefaults.standard.set(result.timestamp, forKey: "SBTheTVBDTokenTimestamp")
UserDefaults.standard.set(result.key, forKey: TheTVDBService.tokenKey)
UserDefaults.standard.set(result.timestamp, forKey: TheTVDBService.tokenTimestampKey)
savedToken = result
return result
} else {
@@ -193,26 +442,29 @@ final public class TheTVDBService {
private init() {
queue = DispatchQueue(label: "org.subler.TheTVDBQueue")
tokenQueue = DispatchQueue(label: "org.subler.TheTVDBTokenQueue")
savedLanguages = []
if let languagesArray = UserDefaults.standard.object(forKey: "SBTheTVBDLanguagesArray") as? [String] {
let timestamp = UserDefaults.standard.double(forKey: "SBTheTVBDLanguagesArrayTimestamp")
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 let tokenKey = UserDefaults.standard.string(forKey: TheTVDBService.tokenKey) {
let timestamp = UserDefaults.standard.double(forKey: TheTVDBService.tokenTimestampKey)
if timestamp + 60 * 60 * 4 > Date.timeIntervalSinceReferenceDate {
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 {
let data: T
let links: Links?
let status: String
}
// MARK: - Login
private func login() -> Token? {
@@ -224,119 +476,188 @@ final public class TheTVDBService {
let token: String
}
guard let apikey = try? JSONEncoder().encode(ApiKey(apikey: "3498815BE9484A62")) else { return nil }
guard let url = URL(string: "https://api.thetvdb.com/login") else { return nil }
guard let apikey = try? JSONEncoder().encode(ApiKey(apikey: TheTVDBService.apiKey)) else { return nil }
guard let url = URL(string: TheTVDBService.basePath + "login") else { return nil }
let header = ["Content-Type" : "application/json",
"Accept" : "application/vnd.thetvdb.v3"]
let header = ["Content-Type" : "application/json"]
guard let response = URLSession.data(from: url,
httpMethod: "POST",
httpBody:apikey,
header: header) else { return nil }
guard let responseToken = try? JSONDecoder().decode(TokenWrapper.self, from: response) else { return nil }
return Token(key: responseToken.token, timestamp: Date.timeIntervalSinceReferenceDate)
do {
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
private func fetchLanguages() -> Languages? {
struct Language: Codable {
let abbreviation: String
let englishName: String
let id: Int
let name: String
private func fetchLanguages() -> [String] {
guard let url = URL(string: "\(TheTVDBService.basePath)languages"),
let result = sendJSONRequest(url: url, type: Wrapper<[TVDBLanguage]>.self)
else { return [] }
return result.data.map { $0.id }
}
private var artworkTypes: [TVDBArtworkType]?
public func fetchArtworkTypes() -> [TVDBArtworkType] {
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
}
guard let url = URL(string: "\(basePath)languages"),
let result = sendJSONRequest(url: url, language: "en", type: Wrapper<[Language]>.self)
else { return nil }
let langManager = MP42Languages.defaultManager
return Languages(data: result.data.map { langManager.extendedTag(forISO_639_1:$0.abbreviation) }, timestamp: Date.timeIntervalSinceReferenceDate)
}
// 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 }
let header = ["Authorization": "Bearer \(token.key)",
"Content-Type" : "application/json",
"Accept" : "application/vnd.thetvdb.v3",
"Accept-Language" : language]
"accept" : "application/json"]
return URLSession.data(from: url, header: header)
}
private func sendJSONRequest<T>(url: URL, language: String, type: T.Type) -> T? where T : Decodable {
guard let data = sendRequest(url: url, language: language),
let result = try? JSONDecoder().decode(type, from: data)
else { return nil }
private func sendJSONRequest<T>(url: URL, type: T.Type) -> T? where T : Decodable {
guard let data = sendRequest(url: url) 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
public func fetch(series: String, language: String) -> [TVDBSeriesSearchResult] {
// Remove + because it breaks search
let encodedName = series.replacingOccurrences(of: "+", with: "").replacingOccurrences(of: "*", with: "-").urlEncoded()
guard let url = URL(string: "\(basePath)search/series?name=\(encodedName)"),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[TVDBSeriesSearchResult]>.self)
public func fetch(movie: String) -> [TVDBSearchResult] {
// Remove + because it breaks search
let encodedName = movie.replacingOccurrences(of: "+", with: "").replacingOccurrences(of: "*", with: "-").urlEncoded()
guard let url = URL(string: "\(TheTVDBService.basePath)search?query=\(encodedName)&type=movie"),
let result = sendJSONRequest(url: url, type: Wrapper<[TVDBSearchResult]>.self)
else { return [] }
return result.data
}
public func fetch(seriesInfo seriesID: Int, language: String) -> TVDBSeriesInfo? {
guard let url = URL(string: "\(basePath)series/\(seriesID)"),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<TVDBSeriesInfo>.self)
public func fetch(movieInfo movieID: String) -> TVDBMovieExtendedRecord? {
guard let url = URL(string: "\(TheTVDBService.basePath)movies/\(movieID)/extended"),
let result = sendJSONRequest(url: url, type: Wrapper<TVDBMovieExtendedRecord>.self)
else { return nil }
return result.data
}
public func fetch(actors seriesID: Int, language: String) -> [TVDBActor] {
guard let url = URL(string: "\(basePath)series/\(seriesID)/actors"),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[TVDBActor]>.self)
public func fetch(movieTranslation movieID: String, language: String) -> TVDBTranslation? {
guard let url = URL(string: "\(TheTVDBService.basePath)movies/\(movieID)/translations/\(language)"),
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 [] }
return result.data
}
public func fetch(images seriesID: Int, type: ArtworkType, language: String) -> [TVDBImage] {
guard let url = URL(string: "\(basePath)series/\(seriesID)/images/query?keyType=\(type.theTVDBName)"),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[TVDBImage]>.self)
else { return [] }
public func fetch(seriesInfo seriesID: String) -> TVDBSeriesExtendedRecord? {
guard let url = URL(string: "\(TheTVDBService.basePath)series/\(seriesID)/extended"),
let result = sendJSONRequest(url: url, type: Wrapper<TVDBSeriesExtendedRecord>.self)
else { return nil }
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) {
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?, _):
return URL(string: "\(basePath)series/\(seriesID)/episodes/query?airedSeason=\(season)")
return URL(string:
"\(TheTVDBService.basePath)series/\(seriesID)/episodes/default?page=\(page)&season=\(season)")
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] {
guard let url = episodesURL(seriesID: seriesID, season: season, episode: episode),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[TVDBEpisode]>.self)
public func fetch(episodesForSeriesID seriesID: Int, season: Int?, episode: Int?) -> [TVDBEpisodeBaseRecord] {
guard let url = episodesURL(seriesID: seriesID, season: season, episode: episode, page: 0),
let result = sendJSONRequest(url: url, type: Wrapper<TVDBSeriesEpisodes>.self)
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
}
public func fetch(episodeInfo episodeID: Int, language: String) -> TVDBEpisodeInfo? {
guard let url = URL(string: "\(basePath)episodes/\(episodeID)"),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<TVDBEpisodeInfo>.self)
public func fetch(episodesTranslation episodeID: Int, language: String) -> TVDBTranslation? {
guard let url = URL(string: "\(TheTVDBService.basePath)episodes/\(episodeID)/translations/\(language)"),
let result = sendJSONRequest(url: url, type: Wrapper<TVDBTranslation>.self)
else { return nil }
return result.data
+8 -6
View File
@@ -476,10 +476,10 @@ public struct iTunesStore: MetadataService {
}
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 {
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 }
for (part, episodes) in parts {
@@ -490,7 +490,7 @@ public struct iTunesStore: MetadataService {
if min < count, let episodeNumber = episode[.episodeNumber] as? Int {
episode[.episodeNumber] = episodeNumber + count
}
episode[.serviceAdditionalSeriesID] = nil
episode[.serviceAdditionalContentID] = nil
}
}
}
@@ -565,7 +565,7 @@ public struct iTunesStore: MetadataService {
}
if let part = part {
metadata[.serviceAdditionalSeriesID] = part;
metadata[.serviceAdditionalContentID] = part;
}
}
@@ -576,7 +576,8 @@ public struct iTunesStore: MetadataService {
metadata[.iTunesCountry] = store.storeCode
metadata[.iTunesURL] = result.trackViewUrl
metadata[.contentID] = result.trackId
metadata[.serviceContentID] = result.trackId
if result.trackExplicitness == "explicit" {
metadata.contentRating = 4
}
@@ -622,7 +623,8 @@ public struct iTunesStore: MetadataService {
metadata[.iTunesCountry] = store.storeCode
metadata[.iTunesURL] = result.trackViewUrl
metadata[.contentID] = result.trackId
metadata[.serviceContentID] = result.trackId
if result.trackExplicitness == "explicit" {
metadata.contentRating = 4
}
+12
View File
@@ -97,7 +97,15 @@ class MetadataPrefsViewController : NSViewController, NSTableViewDelegate, NSTab
s.map.items.sort(by: s.sort)
s.tableView.reloadData()
s.builtInTokenField.stringValue = s.currentTokens.reduce("", { "\($0)/\($1)" })
s.updateControlsState()
}
updateControlsState()
}
private func updateControlsState() {
removeMetadataButton.isEnabled = tableView.selectedRow != -1
}
private func save() {
@@ -141,6 +149,10 @@ class MetadataPrefsViewController : NSViewController, NSTableViewDelegate, NSTab
// MARK: Table View
func tableViewSelectionDidChange(_ notification: Notification) {
updateControlsState()
}
func numberOfRows(in tableView: NSTableView) -> Int {
if tableView == self.tableView {
return map.items.count
+3 -3
View File
@@ -193,7 +193,7 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
}
else if tvSeriesName.stringValue.count > 3 {
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: "")]
@@ -243,7 +243,7 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
private func searchMovie() {
let title = movieName.stringValue
let language = movieService.languageType.extendedTag(displayName: movieLanguage.titleOfSelectedItem ?? "en")
let language = movieService.languageType.tag(displayName: movieLanguage.titleOfSelectedItem ?? "en")
let searcher = MetadataSearch.movieSeach(service: movieService, movie: title, language: language)
let task = searcher.search(completionHandler: { self.searchDone(search: searcher, results: $0) }).runAsync()
state = .searching(search: searcher, task: task)
@@ -251,7 +251,7 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
private func searchTVShow() {
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 episode = Int(tvEpisodeNum.stringValue)
let searcher = MetadataSearch.tvSearch(service: tvShowService, tvShow: title, season: season, episode: episode, language: language)
@@ -38,6 +38,10 @@ class MetadataSearchViewController: ViewController, MetadataSearchControllerDele
view.addSubview(metadataViewController.view)
}
override func viewDidAppear() {
self.view.window?.autorecalculatesKeyViewLoop = true
}
override func addChild(_ childViewController: NSViewController) {
childViewController.view.frame.size = view.frame.size
childViewController.view.autoresizingMask = [NSView.AutoresizingMask.width, NSView.AutoresizingMask.height]
+4 -4
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -14,9 +14,9 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<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"/>
<point key="canvasLocation" x="111.5" y="68.5"/>
<point key="canvasLocation" x="327" y="14"/>
</view>
</objects>
</document>
-1
View File
@@ -37,7 +37,6 @@ final class OffsetViewController: NSViewController {
@IBAction func setOffset(_ sender: Any) {
if track.startOffset != offsetField.doubleValue {
track.startOffset = offsetField.doubleValue
doc.updateChangeCount(.changeDone)
}
presentingViewController?.dismiss(self)
}
+8 -4
View File
@@ -8,7 +8,7 @@
import Cocoa
import MP42Foundation
final class OptionsViewController: NSViewController, NSMenuItemValidation {
final class OptionsViewController: NSViewController, NSUserInterfaceValidations {
@IBOutlet weak var sendToExternalApp: NSButton!
@IBOutlet var destButton: NSPopUpButton!
@@ -98,8 +98,8 @@ final class OptionsViewController: NSViewController, NSMenuItemValidation {
preparePresetsPopUp()
}
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
switch menuItem.action {
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
switch item.action {
case #selector(chooseDestination(_:)),
#selector(destination(_:)):
return true
@@ -124,7 +124,11 @@ final class OptionsViewController: NSViewController, NSMenuItemValidation {
private func menuItem(url: URL) -> NSMenuItem {
let icon = NSWorkspace.shared.icon(forFile: url.path)
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.target = self
item.representedObject = url
+64
View File
@@ -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)
}
}
+5 -1
View File
@@ -7,6 +7,10 @@
import Cocoa
final class PopUpCellView : NSTableCellView {
final class PopUpCellView : NSTableCellView, ExpandedTableViewCellActionable {
@IBOutlet var popUpButton: NSPopUpButton!
func performAction() {
self.popUpButton.performClick(self)
}
}
+71 -20
View File
@@ -26,11 +26,6 @@ struct Stored<T> : Registable {
let key: String
let defaultValue: T
init(key: String, defaultValue: T) {
self.key = key
self.defaultValue = defaultValue
}
var wrappedValue: T {
get { ud.object(forKey: key) as? T ?? defaultValue }
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
struct StoredCodable<T: Codable> : Registable {
let key: String
let defaultValue: T
init(key: String, defaultValue: T) {
self.key = key
self.defaultValue = defaultValue
}
var wrappedValue: T {
get {
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 {
static func register() {
ud.register(defaults: [_crashOnException, _showOpenPanelAtLaunch, _suppressDonationAlert, _saveFormat, _organizeAlternateGroups,
_defaultSaveFormat, _organizeAlternateGroups, _inferMediaCharacteristics, _audioMixdown,
ud.register(defaults: [_crashOnException, _showOpenPanelAtLaunch, _suppressDonationAlert, _fileType, _organizeAlternateGroups,
_organizeAlternateGroups, _inferMediaCharacteristics, _audioMixdown,
_audioBitrate, _audioDRC, _audioConvertAC3, _audioKeepAC3, _audioConvertDts,
_audioDtsOptions, _subtitleConvertBitmap, _ratingsCountry, _chaptersPreviewPosition,
_chaptersPreviewTrack, _mp464bitOffset, _mp464bitTimes, _mp4SaveAsOptimize, _forceHvc1])
_chaptersPreviewTrack, _mp464bitOffset, _mp464bitTimes, _mp4SaveAsOptimize, _forceHvc1,
_logFormat, _saveAsLocation, _set4KHDVideoMetadata])
}
@Stored(key: "NSApplicationCrashOnException", defaultValue: true)
@@ -95,11 +122,8 @@ enum Prefs {
@Stored(key: "rememberWindowSize", defaultValue: false)
static var rememberDocumentWindowSize: Bool
@Stored(key: "SBSaveFormat", defaultValue: "m4v")
static var saveFormat: String
@Stored(key: "defaultSaveFormat", defaultValue: 0)
static var defaultSaveFormat: Int
@Stored(key: "SBSaveFormat", defaultValue: "mp4")
static var fileType: String
@Stored(key: "SBOrganizeAlternateGroups", defaultValue: true)
static var organizeAlternateGroups: Bool
@@ -151,6 +175,28 @@ enum Prefs {
@Stored(key: "SBForceHvc1", defaultValue: true)
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 {
@@ -158,8 +204,10 @@ enum MetadataPrefs {
static func register() {
ud.register(defaults: [_setMovieFormat, _setTVShowFormat,
_movieImporter, _movieiTunesStoreLanguage,
_tvShowImporter, _tvShowiTunesStoreLanguage, _tvShowTheTVDBLanguage, _tvShowTheMovieDBLanguage,
_keepEmptyAnnotations, _keepImportedFilesMetadata])
_tvShowImporter, _tvShowiTunesStoreLanguage,
_tvShowTheTVDBLanguage, _tvShowTheMovieDBLanguage,
_keepEmptyAnnotations, _overwriteExistingAnnotations,
_keepImportedFilesMetadata])
}
@StoredCodable(key: "SBMovieFormatTokens", defaultValue: [Token(text: "{Name}")])
@@ -208,6 +256,9 @@ enum MetadataPrefs {
@Stored(key: "SBMetadataKeepEmptyAnnotations", defaultValue: false)
static var keepEmptyAnnotations: Bool
@Stored(key: "SBMetadataOverwriteExistingAnnotations", defaultValue: true)
static var overwriteExistingAnnotations: Bool
@Stored(key: "SBFileImporterImportMetadata", defaultValue: false)
static var keepImportedFilesMetadata: Bool
}
+3 -3
View File
@@ -9,11 +9,11 @@ import Cocoa
class PrefsWindow: NSWindow {
override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
if menuItem.action == #selector(NSWindow.toggleToolbarShown(_:)) {
override func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
if item.action == #selector(NSWindow.toggleToolbarShown(_:)) {
return false
}
return super.validateMenuItem(menuItem)
return super.validateUserInterfaceItem(item)
}
}
+1
View File
@@ -104,6 +104,7 @@ class PrefsWindowController: NSWindowController, NSWindowDelegate {
}, completionHandler: {
view.isHidden = false
window.title = item.label
self.window?.makeFirstResponder(view.nextKeyView)
})
}
else {
+9
View File
@@ -42,6 +42,15 @@ final class PresetEditorViewController: MovieViewController {
replaceAnnotations.state = preset.replaceAnnotations == false ? .on : .off
}
override var zoomLevel: Float {
get {
Prefs.presetArtworkSelectorZoomLevel
}
set (value) {
Prefs.presetArtworkSelectorZoomLevel = value;
}
}
@IBAction func done(_ sender: Any) {
presentingViewController?.dismiss(self)
}
+7 -9
View File
@@ -117,12 +117,12 @@ final class PresetManager {
let resourceValues = try fileURL.resourceValues(forKeys: [.isDirectoryKey])
if resourceValues.isDirectory == false, let version = version(of: fileURL) {
let data = try Data(contentsOf: fileURL)
let unarchiver = NSKeyedUnarchiver(forReadingWith: data)
unarchiver.requiresSecureCoding = true
defer { unarchiver.finishDecoding() }
if let unarchiver = try? NSKeyedUnarchiver(forReadingFrom: data) {
defer { unarchiver.finishDecoding() }
if version == 2, let preset = try? unarchiver.decodeTopLevelObject(of: [MetadataPreset.self], forKey: NSKeyedArchiveRootObjectKey) as? MetadataPreset {
return preset
if version == 2, let preset = try? unarchiver.decodeTopLevelObject(of: [MetadataPreset.self], forKey: NSKeyedArchiveRootObjectKey) as? MetadataPreset {
return preset
}
}
}
throw LoadError.unsupportedFile
@@ -148,13 +148,11 @@ final class PresetManager {
}
private func save(preset: Preset) throws {
let data = NSMutableData()
let archiver = NSKeyedArchiver(forWritingWith: data)
archiver.requiresSecureCoding = true
let archiver = NSKeyedArchiver(requiringSecureCoding: true)
archiver.encode(preset, forKey: NSKeyedArchiveRootObjectKey)
archiver.finishEncoding()
try data.write(to: preset.fileURL, options: [.atomic])
try archiver.encodedData.write(to: preset.fileURL, options: [.atomic])
preset.changed = false
}
+4 -1
View File
@@ -159,7 +159,10 @@ class PresetPrefsViewController: NSViewController, SectionsTableViewDataSource,
}
}
tableView.selectRowIndexes(rowIndexes, byExtendingSelection: false)
let count = presetManager.metadataPresets.count + presetManager.queuePresets.count
if let index = rowIndexes.last, index < count {
tableView.selectRowIndexes(rowIndexes, byExtendingSelection: false)
}
}
@IBAction func editPreset(_ sender: NSView) {
+2 -2
View File
@@ -8,7 +8,7 @@
import Cocoa
protocol ProgressViewControllerDelegate : AnyObject {
func cancel()
func cancelSave()
}
final class ProgressViewController: NSViewController {
@@ -53,7 +53,7 @@ final class ProgressViewController: NSViewController {
}
@IBAction func cancel(_ sender: Any) {
delegate?.cancel()
delegate?.cancelSave()
cancelButton.isEnabled = false
}
}
+38 -29
View File
@@ -1,13 +1,14 @@
<?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>
<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"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="ChapterViewController" customModule="Subler" customModuleProvider="target">
<connections>
<outlet property="actions" destination="IvH-Ff-dyN" id="EiR-xB-dq9"/>
<outlet property="removeChapter" destination="31" id="faJ-CI-g36"/>
<outlet property="tabView" destination="10" id="CC8-n9-JPu"/>
<outlet property="tableView" destination="22" id="7Za-v5-yKx"/>
@@ -29,15 +30,14 @@
<rect key="frame" x="10" y="29" width="753" height="237"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView fixedFrame="YES" 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"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<scrollView autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="19">
<rect key="frame" x="17" y="44" width="719" height="187"/>
<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"/>
<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">
<rect key="frame" x="0.0" y="0.0" width="717" height="176"/>
<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="168"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -383,32 +383,19 @@
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
<button toolTip="Delete selected chapter" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="31">
<rect key="frame" x="42" y="7" width="26" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="32">
<button toolTip="Add chapter" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="42">
<rect key="frame" x="17" y="16" width="32" height="20"/>
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSAddTemplate" imagePosition="only" alignment="center" controlSize="small" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="43">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</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"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<action selector="addChapter:" target="-2" id="50"/>
</connections>
</button>
<popUpButton fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="IvH-Ff-dyN">
<rect key="frame" x="76" y="7" width="33" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<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">
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="IvH-Ff-dyN">
<rect key="frame" x="90" y="16" width="53" height="20"/>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="controlContent" size="11"/>
<menu key="menu" id="T3N-JJ-mWq">
@@ -426,13 +413,35 @@
</menu>
</popUpButtonCell>
</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>
<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>
</tabViewItem>
</tabViewItems>
</tabView>
</subviews>
<point key="canvasLocation" x="-36" y="-92"/>
<point key="canvasLocation" x="-36.5" y="-92"/>
</customView>
</objects>
<resources>
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -27,6 +27,7 @@
<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"/>
</constraints>
<point key="canvasLocation" x="259" y="39"/>
</customView>
</objects>
</document>
+41 -60
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -20,25 +20,26 @@
<outlet property="tabView" destination="10" id="nrf-df-lqq"/>
<outlet property="tagsPopUp" destination="30" id="1v4-T2-oDW"/>
<outlet property="view" destination="1" id="2"/>
<outlet property="zoomSlider" destination="235" id="Lbq-eP-7Mp"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView misplaced="YES" id="1">
<rect key="frame" x="0.0" y="0.0" width="769" height="256"/>
<customView id="1">
<rect key="frame" x="0.0" y="0.0" width="769" height="184"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<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>
<tabViewItem label="Metadata" identifier="1" id="11">
<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"/>
<subviews>
<popUpButton toolTip="Add a new metadata item" translatesAutoresizingMaskIntoConstraints="NO" id="30">
<rect key="frame" x="17" y="7" width="29" height="22"/>
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" pullsDown="YES" id="31">
<popUpButton toolTip="Add a new metadata item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="30">
<rect key="frame" x="13" y="12" width="44" height="22"/>
<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"/>
<font key="font" metaFont="menu" size="11"/>
<menu key="menu" id="32">
@@ -49,31 +50,25 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="height" constant="20" id="oAx-ac-cJp"/>
</constraints>
<accessibility description="Add metadata item"/>
<connections>
<action selector="addTag:" target="-2" id="37"/>
</connections>
</popUpButton>
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="53">
<rect key="frame" x="45" y="7" width="24" height="22"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
<rect key="frame" x="49" y="9" width="36" height="27"/>
<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"/>
<font key="font" metaFont="system"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<constraints>
<constraint firstAttribute="width" constant="24" id="0TW-Pw-B6h"/>
</constraints>
<accessibility description="Remove selected item"/>
<connections>
<action selector="removeTag:" target="-2" id="55"/>
</connections>
</button>
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="179">
<rect key="frame" x="77" y="7" width="33" 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">
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="179">
<rect key="frame" x="87" y="12" width="45" height="22"/>
<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"/>
<font key="font" metaFont="menu" size="11"/>
<menu key="menu" id="181">
@@ -84,19 +79,16 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="33" id="ZIk-ID-MnW"/>
</constraints>
<accessibility description="Sets"/>
</popUpButton>
<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">
<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"/>
<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">
<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"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -307,56 +299,46 @@
</scrollView>
</subviews>
<constraints>
<constraint firstItem="179" firstAttribute="height" secondItem="30" secondAttribute="height" id="2Hj-9j-VM5"/>
<constraint firstItem="30" firstAttribute="bottom" secondItem="53" secondAttribute="bottom" id="EnX-PG-7Ac"/>
<constraint firstItem="179" firstAttribute="height" secondItem="53" secondAttribute="height" id="HWR-pd-5Nn"/>
<constraint firstAttribute="bottom" secondItem="30" secondAttribute="bottom" constant="8" id="IRj-LS-ekM"/>
<constraint firstItem="179" firstAttribute="leading" secondItem="53" secondAttribute="trailing" constant="8" symbolic="YES" id="KUd-5V-MXX"/>
<constraint firstItem="53" firstAttribute="top" secondItem="179" secondAttribute="top" id="67S-NK-9fD"/>
<constraint firstItem="30" firstAttribute="top" secondItem="53" secondAttribute="top" id="BKG-GH-axI"/>
<constraint firstAttribute="bottom" secondItem="30" secondAttribute="bottom" constant="16" id="IRj-LS-ekM"/>
<constraint firstItem="179" firstAttribute="leading" secondItem="53" secondAttribute="trailing" constant="12" id="KUd-5V-MXX"/>
<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="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="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="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"/>
</constraints>
</view>
</tabViewItem>
<tabViewItem label="Artwork" identifier="Item 1" id="15">
<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"/>
<subviews>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="223">
<rect key="frame" x="17" y="7" width="25" height="22"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="224">
<rect key="frame" x="11" y="9" width="36" height="27"/>
<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"/>
<font key="font" metaFont="system"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<constraints>
<constraint firstAttribute="width" constant="25" id="PQ5-Tu-VFK"/>
<constraint firstAttribute="height" constant="20" id="nbn-sF-RRs"/>
</constraints>
<connections>
<action selector="selectArtwork:" target="-2" id="232"/>
</connections>
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="226">
<rect key="frame" x="41" y="7" width="25" height="22"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="227">
<rect key="frame" x="36" y="9" width="36" height="27"/>
<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"/>
<font key="font" metaFont="system"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<constraints>
<constraint firstAttribute="width" constant="25" id="FBv-tK-Tdv"/>
</constraints>
<connections>
<action selector="removeArtwork:" target="-2" id="231"/>
</connections>
</button>
<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>
<constraint firstAttribute="width" constant="115" id="mBx-7u-wTU"/>
</constraints>
@@ -366,13 +348,13 @@
</connections>
</slider>
<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">
<rect key="frame" x="1" y="1" width="735" height="204"/>
<autoresizingMask key="autoresizingMask"/>
<rect key="frame" x="1" y="1" width="735" height="105"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<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"/>
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="ofy-8i-tTx">
<size key="itemSize" width="280" height="224"/>
@@ -391,23 +373,22 @@
<autoresizingMask key="autoresizingMask"/>
</scroller>
<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"/>
</scroller>
</scrollView>
</subviews>
<constraints>
<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="8" id="BgF-RQ-nc8"/>
<constraint firstAttribute="bottom" secondItem="223" secondAttribute="bottom" constant="16" id="BgF-RQ-nc8"/>
<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 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="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="firstBaseline" secondItem="226" secondAttribute="firstBaseline" id="zB3-nk-dWH"/>
</constraints>
</view>
</tabViewItem>
@@ -420,7 +401,7 @@
<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"/>
</constraints>
<point key="canvasLocation" x="34.5" y="-7"/>
<point key="canvasLocation" x="247.5" y="-20"/>
</customView>
<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">
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -20,10 +20,9 @@
<subviews>
<tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="5">
<rect key="frame" x="-11" y="-12" width="502" height="279"/>
<tabViewItems/>
</tabView>
<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">
<font key="font" metaFont="system"/>
<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 firstItem="5" firstAttribute="top" secondItem="1" secondAttribute="top" constant="8" id="x6g-Yu-20J"/>
</constraints>
<point key="canvasLocation" x="244" y="6"/>
</customView>
</objects>
</document>
+22 -23
View File
@@ -1,9 +1,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>
<deployment identifier="macosx"/>
<development version="11000" identifier="xcode"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17132"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
@@ -33,10 +32,10 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<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>
<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">
<font key="font" metaFont="controlContent" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -44,7 +43,7 @@
</textFieldCell>
</textField>
<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">
<font key="font" metaFont="controlContent" size="11"/>
</sliderCell>
@@ -54,7 +53,7 @@
</connections>
</slider>
<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">
<font key="font" metaFont="controlContent" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -65,7 +64,7 @@
</connections>
</textField>
<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">
<font key="font" metaFont="controlContent" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -73,10 +72,7 @@
</textFieldCell>
</textField>
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hO4-U9-j72">
<rect key="frame" x="142" y="100" width="87" height="22"/>
<constraints>
<constraint firstAttribute="width" constant="81" id="deO-aT-0vb"/>
</constraints>
<rect key="frame" x="141" y="94" width="89" height="22"/>
<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"/>
<font key="font" metaFont="controlContent" size="11"/>
@@ -92,16 +88,16 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="81" id="deO-aT-0vb"/>
</constraints>
<connections>
<accessibilityConnection property="title" destination="oJQ-vl-QbS" id="Cbl-Aq-ObF"/>
<action selector="setTrackAlternateGroup:" target="-2" id="Xpd-ML-0hX"/>
</connections>
</popUpButton>
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="kyn-qq-nF7">
<rect key="frame" x="142" y="75" width="216" height="22"/>
<constraints>
<constraint firstAttribute="width" constant="210" id="VlQ-qX-xoP"/>
</constraints>
<rect key="frame" x="141" y="71" width="218" height="22"/>
<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"/>
<font key="font" metaFont="controlContent" size="11"/>
@@ -111,6 +107,9 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="210" id="VlQ-qX-xoP"/>
</constraints>
<connections>
<accessibilityConnection property="title" destination="AHt-fF-cmH" id="xln-Xh-ghS"/>
<action selector="setTrackFallback:" target="-2" id="dW2-e8-n1H"/>
@@ -125,10 +124,7 @@
</textFieldCell>
</textField>
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="6Kd-IU-I5v">
<rect key="frame" x="142" y="51" width="216" height="22"/>
<constraints>
<constraint firstAttribute="width" constant="210" id="p8q-de-wud"/>
</constraints>
<rect key="frame" x="141" y="49" width="218" height="22"/>
<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"/>
<font key="font" metaFont="controlContent" size="11"/>
@@ -138,13 +134,16 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="210" id="p8q-de-wud"/>
</constraints>
<connections>
<accessibilityConnection property="title" destination="Wwd-LM-Zu2" id="c2I-EU-yGn"/>
<action selector="setTrackFollows:" target="-2" id="aKE-dj-ggZ"/>
</connections>
</popUpButton>
<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">
<font key="font" metaFont="miniSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -152,7 +151,7 @@
</textFieldCell>
</textField>
<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">
<font key="font" metaFont="miniSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -160,7 +159,7 @@
</textFieldCell>
</textField>
<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">
<font key="font" metaFont="miniSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+13 -11
View File
@@ -1,8 +1,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>
<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"/>
</dependencies>
<objects>
@@ -325,9 +325,6 @@
</textField>
<popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="ERY-K2-cCj">
<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">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="controlContent" size="11"/>
@@ -339,6 +336,9 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="190" id="tR3-Ay-aDb"/>
</constraints>
<connections>
<accessibilityConnection property="title" destination="cbR-yR-H9l" id="GZC-Cu-awU"/>
<action selector="setForcedSubtitles:" target="-2" id="n1Z-pH-esH"/>
@@ -396,9 +396,6 @@
</textField>
<popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="RpH-28-y5s">
<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">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<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-D65 (12-17-6)" tag="9" id="fNy-M4-iaz"/>
<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>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="190" id="8ks-py-KoB"/>
</constraints>
<connections>
<accessibilityConnection property="title" destination="xfb-DL-1Pr" id="OIM-4J-sWM"/>
<action selector="setColorProfile:" target="-2" id="xtd-k4-x1K"/>
@@ -449,9 +451,6 @@
</textField>
<popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="b24-td-FnZ">
<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">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="controlContent" size="11"/>
@@ -470,6 +469,9 @@
</items>
</menu>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="251" id="ALj-JO-YYW"/>
</constraints>
<connections>
<accessibilityConnection property="title" destination="jin-Xn-WJl" id="xvo-aC-czO"/>
<action selector="setProfileLevel:" target="-2" id="fhj-D3-61K"/>
@@ -8,16 +8,21 @@
import Cocoa
import MP42Foundation
final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTableViewDelegate {
final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTableViewDelegate, ExpandedTableViewDelegate {
var track: MP42ChapterTrack {
didSet {
let indexes = tableView.selectedRowIndexes
tableView.reloadData()
if let last = indexes.last, last < track.chapters.count {
tableView.selectRowIndexes(indexes, byExtendingSelection: false)
}
}
}
@IBOutlet var tableView: ExpandedTableView!
@IBOutlet var removeChapter: NSButton!
@IBOutlet var actions: NSPopUpButton!
override var nibName: NSNib.Name? {
return "ChapterView"
@@ -36,6 +41,10 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
super.viewDidLoad()
tableView.defaultEditingColumn = 1
tableView.doubleAction = #selector(doubleClickAction(_:))
if #available(macOS 26, *) {
actions.menu?.items.first?.image = NSImage.init(systemSymbolName: "ellipsis", accessibilityDescription: nil)
}
}
// MARK: Table View
@@ -77,7 +86,6 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
track.setTitle(sender.stringValue, forChapter: chapter)
tableView.reloadData(forRowIndexes: IndexSet(integer: row), columnIndexes: IndexSet(integer: 1))
updateChangeCount()
}
}
@@ -89,7 +97,6 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
track.setTimestamp(timestamp, forChapter: chapter)
tableView.reloadData()
updateChangeCount()
}
}
@@ -99,30 +106,29 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
}
}
// MARK: Actions
private func updateChangeCount() {
view.window?.windowController?.document?.updateChangeCount(NSDocument.ChangeType.changeDone)
}
@IBAction func removeChapter(_ sender: Any) {
let currentIndex = tableView.selectedRow
if currentIndex < track.chapterCount() {
track.removeChapter(at: UInt(currentIndex))
let indexes = IndexSet(integer: currentIndex)
func deleteSelection(in tableview: NSTableView) {
let indexes = tableView.selectedRowIndexes
if indexes.isEmpty == false {
track.removeChapters(at: indexes)
tableView.removeRows(at: indexes, withAnimation: NSTableView.AnimationOptions.slideUp)
tableView.selectRowIndexes(indexes, byExtendingSelection: false)
updateChangeCount()
if let index = indexes.first, index < track.chapters.count {
tableView.selectRowIndexes(IndexSet(integer: index), byExtendingSelection: false)
}
}
}
@IBAction func addChapter(_ sender: Any) {
track.addChapter("Chapter", duration: 0)
// MARK: Actions
tableView.reloadData()
updateChangeCount()
@IBAction func removeChapter(_ sender: Any) {
deleteSelection(in: tableView)
}
@IBAction func addChapter(_ sender: Any) {
let index = track.addChapter("Chapter", timestamp: 0)
let indexSet = IndexSet(integer: Int(index))
tableView.insertRows(at: indexSet, withAnimation: .slideDown)
tableView.selectRowIndexes(indexSet, byExtendingSelection: false)
view.window?.makeFirstResponder(tableView)
}
@IBAction func renameChapters(_ sender: Any) {
@@ -131,7 +137,6 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
track.setTitle(title, forChapter: chapter)
}
tableView.reloadData()
updateChangeCount()
}
}
@@ -176,7 +176,5 @@ final class MediaTagsController: NSViewController, NSTableViewDataSource, NSTabl
private func updateTrack() {
let updatedTags = tags.filter { $0.state }.map { $0.value }
track.mediaCharacteristicTags = Set(updatedTags)
view.window?.windowController?.document?.updateChangeCount(.changeDone)
}
}
+78 -92
View File
@@ -6,7 +6,7 @@
//
import Cocoa
import Quartz
import UniformTypeIdentifiers
import MP42Foundation
extension NSPasteboard.PasteboardType {
@@ -18,7 +18,13 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
var metadata: MP42Metadata {
didSet {
let metadataIndexes = self.metadataTableView.selectedRowIndexes
// let artworkIndexes = self.artworksView.selectionIndexPaths;
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)
@IBOutlet var removeArtworkButton: NSButton!
@IBOutlet var zoomSlider: NSSlider!
@IBOutlet var artworksView: CollectionView!
override var nibName: NSNib.Name? {
@@ -115,8 +122,13 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
}
}
if #available(macOS 26, *) {
setsPopUp.menu?.items.first?.image = NSImage.init(systemSymbolName: "ellipsis", accessibilityDescription: nil)
}
columnWidth = column.width
metadataTableView.defaultEditingColumn = 1
metadataTableView.doubleAction = #selector(doubleClickAction(_:))
metadataTableView.target = self
metadataTableView.pasteboardTypes = [.metadataDragType]
@@ -134,13 +146,23 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
reloadData()
}
override func viewWillAppear() {
let zoomValue = zoomLevel
setZoomValue(zoomValue)
zoomSlider.floatValue = zoomValue
}
private func reloadData() {
rowHeights.removeAll(keepingCapacity: true)
updateMetadataArray()
metadataTableView.reloadData()
updateArtworksArray()
artworksView.reloadData()
view.undoManager?.removeAllActions(withTarget: self)
updateUI()
}
private func updateUI() {
removeTagButton.isEnabled = self.metadataTableView.selectedRow != -1
}
// MARK: Metadata
@@ -168,17 +190,6 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
metadata.addItem(item)
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()
metadataTableView.reloadData()
}
@@ -187,38 +198,19 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
for item in items {
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()
let index = metadataTableView.selectedRowIndexes.first ?? 0
metadataTableView.reloadData()
if index < tags.count {
metadataTableView.selectRowIndexes(IndexSet(integer: index), byExtendingSelection: false)
}
updateUI()
}
private func replace(metadataItem item: MP42MetadataItem, withItem newItem: MP42MetadataItem) {
metadata.removeItem(item)
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()
NSAnimationContext.beginGrouping()
@@ -765,7 +757,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
func paste(to tableview: NSTableView) {
let pb = NSPasteboard.general
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)
}
}
@@ -822,8 +814,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
}
func tableViewSelectionDidChange(_ notification: Notification) {
let enabled = metadataTableView.selectedRow != -1 ? true : false
removeTagButton.isEnabled = enabled
updateUI()
}
// MARK: Artworks
@@ -834,34 +825,12 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
private func add(metadataArtworks items: [MP42MetadataItem]) {
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()
artworksView.reloadData()
}
private func remove(metadataArtworks items: [MP42MetadataItem]) {
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()
artworksView.reloadData()
updateSelection()
@@ -870,17 +839,6 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
private func replace(metadataArtworks items: [MP42MetadataItem], withItems newItems: [MP42MetadataItem]) {
metadata.removeItems(items)
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()
artworksView.reloadData()
updateSelection()
@@ -893,9 +851,18 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
private func add(artworks: [Any], toIndexPath: IndexPath) -> Bool {
let items = artworks.compactMap { (artwork: Any) -> MP42Image? in
if let url = artwork as? URL {
let value = try? url.resourceValues(forKeys: [URLResourceKey.typeIdentifierKey])
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])
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)
} else if let image = NSImage(contentsOf: url) {
return MP42Image(image: image)
@@ -924,7 +891,11 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
panel.allowsMultipleSelection = true
panel.canChooseFiles = true
panel.canChooseDirectories = false
panel.allowedFileTypes = ["public.image"]
if #available(macOS 11, *) {
panel.allowedContentTypes = [.image]
} else {
panel.allowedFileTypes = ["public.image"]
}
guard let window = view.window else { return }
@@ -986,14 +957,11 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
func filePromiseProvider(_ filePromiseProvider: NSFilePromiseProvider, writePromiseTo url: URL, completionHandler: @escaping (Error?) -> Void) {
if let userInfo = filePromiseProvider.userInfo as? [String: AnyObject] {
do {
if let indexPathData = userInfo[FilePromiseProvider.UserInfoKeys.indexPathKey] as? Data {
if let indexPath = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(indexPathData) as? IndexPath {
let item = artworks[indexPath.last!]
if let image = item.imageValue {
try image.data?.write(to: url)
completionHandler(nil)
}
}
if let indexPathData = userInfo[FilePromiseProvider.UserInfoKeys.indexPathKey] as? Data,
let indexPath = try NSKeyedUnarchiver.unarchivedObject(ofClasses: [NSIndexPath.classForCoder()], from: indexPathData) as? IndexPath,
let image = artworks[indexPath.last!].imageValue {
try image.data?.write(to: url)
completionHandler(nil)
}
} catch {
fatalError("failed to unarchive indexPath from promise provider.")
@@ -1106,7 +1074,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
if let pasteboardItem = draggingItem.item as? NSPasteboardItem {
do {
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)
}
} catch {
@@ -1238,7 +1206,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
for pasteboardItem in items {
do {
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)
}
} catch {
@@ -1254,24 +1222,37 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
}
}
@IBAction func zoomSliderDidChange(_ sender: NSControl) {
let floatValue = CGFloat(sender.floatValue)
var zoomLevel: Float {
get {
Prefs.movieArtworkSelectorZoomLevel
}
set (value) {
Prefs.movieArtworkSelectorZoomLevel = value;
}
}
private func setZoomValue(_ newZoomValue: Float) {
if let layout = artworksView.collectionViewLayout as? NSCollectionViewFlowLayout {
if floatValue == 50 {
if newZoomValue == 50 {
layout.itemSize = standardSize
} else if floatValue < 50 {
let zoomValue = (floatValue + 50) / 100
} else if newZoomValue < 50 {
let zoomValue = (CGFloat(newZoomValue) + 50) / 100
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
height: Int(standardSize.height * zoomValue))
} 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),
height: Int(standardSize.height * zoomValue))
}
}
}
@IBAction func zoomSliderDidChange(_ sender: NSControl) {
setZoomValue(sender.floatValue)
zoomLevel = sender.floatValue
}
func collectionViewDelete(in collectionView: NSCollectionView) {
removeArtwork(self)
}
@@ -1298,4 +1279,9 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
}
}
func collectionViewCut(in collectionView: NSCollectionView) {
collectionViewCopy(in: collectionView)
collectionViewDelete(in: collectionView)
}
}
@@ -118,15 +118,10 @@ final class SoundViewController : PropertyView {
// MARK: Actions
private func updateChangeCount() {
view.window?.windowController?.document?.updateChangeCount(NSDocument.ChangeType.changeDone)
}
@IBAction func setTrackVolume(_ sender: NSSlider) {
let value = sender.floatValue / 100
if value != track.volume {
track.volume = value
updateChangeCount()
}
}
@@ -134,12 +129,10 @@ final class SoundViewController : PropertyView {
if let newFallbackTrack = sender.representedObject as? MP42AudioTrack {
if newFallbackTrack != track.fallbackTrack {
track.fallbackTrack = newFallbackTrack
updateChangeCount()
}
}
else {
track.fallbackTrack = nil
updateChangeCount()
}
}
@@ -147,12 +140,10 @@ final class SoundViewController : PropertyView {
if let newFollowsTrack = sender.representedObject as? MP42SubtitleTrack {
if newFollowsTrack != track.followsTrack {
track.followsTrack = newFollowsTrack
updateChangeCount()
}
}
else {
track.followsTrack = nil
updateChangeCount()
}
}
@@ -160,7 +151,6 @@ final class SoundViewController : PropertyView {
if let group = sender.selectedItem?.tag {
if track.alternateGroup != group {
track.alternateGroup = UInt64(group)
updateChangeCount()
}
}
}
+9 -17
View File
@@ -143,6 +143,10 @@ final class VideoViewController: PropertyView {
return NSLocalizedString("P3-D65 (12-17-6)", comment: "color profile")
case (1, 13, 1):
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:
return "\(colorTag.0)-\(colorTag.1)-\(colorTag.2)"
}
@@ -192,7 +196,7 @@ final class VideoViewController: PropertyView {
if track.format == kMP42VideoCodecType_H264 || track.format == kMP42VideoCodecType_MPEG4Video ||
track.format == kMP42VideoCodecType_HEVC || track.format == kMP42VideoCodecType_HEVC_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
colorHeight.constant = 24
@@ -250,10 +254,6 @@ final class VideoViewController: PropertyView {
// MARK: Actions
private func updateChangeCount() {
view.window?.windowController?.document?.updateChangeCount(NSDocument.ChangeType.changeDone)
}
@IBAction func setSize(_ sender: NSTextField) {
if sender == trackWidth {
let value = trackWidth.floatValue
@@ -263,13 +263,11 @@ final class VideoViewController: PropertyView {
trackHeight.floatValue = track.trackHeight
}
track.trackWidth = value
updateChangeCount()
}
} else if sender == trackHeight {
let value = trackHeight.floatValue
if track.trackHeight != value {
track.trackHeight = value
updateChangeCount()
}
} else if sender == offsetX {
let value = CGFloat(offsetX.integerValue)
@@ -277,7 +275,6 @@ final class VideoViewController: PropertyView {
var transform = track.transform
transform.tx = value
track.transform = transform
updateChangeCount()
}
} else if sender == offsetY {
let value = CGFloat(offsetY.integerValue)
@@ -285,7 +282,6 @@ final class VideoViewController: PropertyView {
var transform = track.transform
transform.ty = value
track.transform = transform
updateChangeCount()
}
}
}
@@ -295,14 +291,12 @@ final class VideoViewController: PropertyView {
let value = UInt64(hSpacing.integerValue)
if track.hSpacing != value {
track.hSpacing = value
updateChangeCount()
}
}
else if sender == vSpacing {
let value = UInt64(vSpacing.intValue)
if track.vSpacing != value {
track.vSpacing = value
updateChangeCount()
}
}
}
@@ -330,6 +324,10 @@ final class VideoViewController: PropertyView {
colorTag = (12, 17, 6)
case 10:
colorTag = (1, 13, 1)
case 11:
colorTag = (9, 16, 15)
case 12:
colorTag = (2, 2, 2)
default:
return
}
@@ -338,7 +336,6 @@ final class VideoViewController: PropertyView {
track.colorPrimaries = colorTag.0
track.transferCharacteristics = colorTag.1
track.matrixCoefficients = colorTag.2
updateChangeCount()
}
}
@@ -362,7 +359,6 @@ final class VideoViewController: PropertyView {
default:
return
}
updateChangeCount()
}
@IBAction func setForcedSubtitles(_ sender: NSPopUpButton) {
@@ -383,7 +379,6 @@ final class VideoViewController: PropertyView {
if track.someSamplesAreForced != value.0 || track.allSamplesAreForced != value.1 {
track.someSamplesAreForced = value.0
track.allSamplesAreForced = value.1
updateChangeCount()
}
}
}
@@ -393,12 +388,10 @@ final class VideoViewController: PropertyView {
if let newForcedTrack = sender.representedObject as? MP42SubtitleTrack {
if newForcedTrack != track.forcedTrack {
track.forcedTrack = newForcedTrack
updateChangeCount()
}
}
else {
track.forcedTrack = nil
updateChangeCount()
}
}
}
@@ -407,7 +400,6 @@ final class VideoViewController: PropertyView {
if let group = sender.selectedItem?.tag {
if track.alternateGroup != group {
track.alternateGroup = UInt64(group)
updateChangeCount()
}
}
}
@@ -2,40 +2,40 @@
"4p7-7v-cUB.title" = "Guardar";
/* Class = "NSTabViewItem"; label = "Metadata"; ObjectID = "11"; */
"11.label" = "Metadatos";
"11.label" = "Etiquetas";
/* Class = "NSTabViewItem"; label = "Artwork"; ObjectID = "15"; */
"15.label" = "Ilustración";
/* 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"; */
"30.ibShadowedToolTip" = "Agregar propiedad";
"30.ibShadowedToolTip" = "Agregar etiqueta";
/* Class = "NSButton"; ibExternalAccessibilityDescription = "Remove selected item"; ObjectID = "53"; */
"53.ibExternalAccessibilityDescription" = "Eliminar propiedad";
"53.ibExternalAccessibilityDescription" = "Eliminar etiqueta";
/* Class = "NSButton"; ibShadowedToolTip = "Remove selected item"; ObjectID = "53"; */
"53.ibShadowedToolTip" = "Eliminar propiedad";
"53.ibShadowedToolTip" = "Eliminar etiqueta";
/* Class = "NSPopUpButton"; ibExternalAccessibilityDescription = "Sets"; ObjectID = "179"; */
"179.ibExternalAccessibilityDescription" = "Preset";
/* 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"; */
"doa-uZ-CNr.title" = "Mantener ilustraciones existentes";
/* 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"; */
"os0-Yb-exW.headerCell.title" = "Valor";
/* 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"; */
"sNX-Z3-AtD.title" = "Cancelar";
@@ -56,7 +56,7 @@
"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" = "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"; */
"GfY-OY-SWL.title" = "x";
@@ -76,6 +76,9 @@
/* 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" = "No";
@@ -107,7 +110,10 @@
"nr0-Jc-cUj.title" = "Mantener relación de aspecto";
/* 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"; */
"Q0D-6k-Hgx.ibExternalAccessibilityDescription" = "Numerador de relación de aspecto";
@@ -25,12 +25,27 @@
/* 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" = "Nessuno";
/* Class = "NSMenuItem"; title = "None"; ObjectID = "Qdb-gu-B3h"; */
"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"; */
"Z5x-Oq-P8Z.title" = "Volume:";
@@ -1,6 +1,9 @@
/* Class = "NSTextFieldCell"; title = "Scaled Size:"; ObjectID = "1O9-J3-Plk"; */
"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"; */
"6.label" = "Impostazioni visive";
@@ -25,6 +28,9 @@
/* 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)";
@@ -37,6 +43,9 @@
/* 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" = "pixel";
@@ -67,6 +76,9 @@
/* 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" = "No";
@@ -100,6 +112,9 @@
/* Class = "NSTextFieldCell"; title = "H.264 Video Profile/Level:"; ObjectID = "nrd-22-FZl"; */
"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"; */
"Q0D-6k-Hgx.ibExternalAccessibilityDescription" = "Numeratore rapporto proporzioni";
@@ -112,6 +127,9 @@
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Scaled Size Width"; ObjectID = "r90-c5-7PH"; */
"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"; */
"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" = "重命名所有章节";
@@ -0,0 +1,48 @@
/* Class = "NSButtonCell"; title = "Save"; ObjectID = "4p7-7v-cUB"; */
"4p7-7v-cUB.title" = "存储";
/* Class = "NSTabViewItem"; label = "Metadata"; ObjectID = "11"; */
"11.label" = "元数据";
/* Class = "NSTabViewItem"; label = "Artwork"; ObjectID = "15"; */
"15.label" = "插图";
/* Class = "NSPopUpButton"; ibExternalAccessibilityDescription = "Add metadata item"; ObjectID = "30"; */
"30.ibExternalAccessibilityDescription" = "添加元数据条目";
/* Class = "NSPopUpButton"; ibShadowedToolTip = "Add a new metadata item"; ObjectID = "30"; */
"30.ibShadowedToolTip" = "添加一个新的元数据条目";
/* Class = "NSButton"; ibExternalAccessibilityDescription = "Remove selected item"; ObjectID = "53"; */
"53.ibExternalAccessibilityDescription" = "移除所选项";
/* Class = "NSButton"; ibShadowedToolTip = "Remove selected item"; ObjectID = "53"; */
"53.ibShadowedToolTip" = "移除所选项";
/* Class = "NSPopUpButton"; ibExternalAccessibilityDescription = "Sets"; ObjectID = "179"; */
"179.ibExternalAccessibilityDescription" = "预设";
/* Class = "NSButtonCell"; title = "Keep existing annotations"; ObjectID = "aiW-0y-PWH"; */
"aiW-0y-PWH.title" = "保留现有注释";
/* Class = "NSButtonCell"; title = "Keep existing artworks"; ObjectID = "doa-uZ-CNr"; */
"doa-uZ-CNr.title" = "保留现有插图";
/* Class = "NSTableColumn"; headerCell.title = "Annotation"; ObjectID = "j7q-XE-YXB"; */
"j7q-XE-YXB.headerCell.title" = "注释";
/* Class = "NSTableColumn"; headerCell.title = "Value"; ObjectID = "os0-Yb-exW"; */
"os0-Yb-exW.headerCell.title" = "值";
/* Class = "NSTableView"; ibExternalAccessibilityDescription = "Metadata"; ObjectID = "qg5-r0-E4V"; */
"qg5-r0-E4V.ibExternalAccessibilityDescription" = "元数据";
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "sNX-Z3-AtD"; */
"sNX-Z3-AtD.title" = "取消";
/* Class = "NSTextFieldCell"; title = "Name:"; ObjectID = "ZqF-j8-NeN"; */
"ZqF-j8-NeN.title" = "名称:";
/* Class = "NSWindow"; title = "Window"; ObjectID = "ZRj-hi-qeJ"; */
"ZRj-hi-qeJ.title" = "窗口";
@@ -0,0 +1,3 @@
/* Class = "NSTextFieldCell"; title = "%lu tracks selected"; ObjectID = "Mo5-ii-LsO"; */
"Mo5-ii-LsO.title" = "已选中 %lu 个轨道";
@@ -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" = "声音设置";
/* Class = "NSTextFieldCell"; title = "Fallback:"; ObjectID = "8KY-0L-cm1"; */
"8KY-0L-cm1.title" = "回退:";
/* Class = "NSTabViewItem"; label = "Media Characteristics"; ObjectID = "22R-da-Q3B"; */
"22R-da-Q3B.label" = "媒体特征";
/* Class = "NSTextFieldCell"; title = "Alternate Group:"; ObjectID = "CTV-P7-IaD"; */
"CTV-P7-IaD.title" = "轨道分组:";
/* Class = "NSTextFieldCell"; title = "Subtitles:"; ObjectID = "dbp-55-tUy"; */
"dbp-55-tUy.title" = "字幕:";
/* 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" = "无";
/* Class = "NSMenuItem"; title = "None"; ObjectID = "Qdb-gu-B3h"; */
"Qdb-gu-B3h.title" = "无";
/* 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" = "音量:";
/* Class = "NSMenuItem"; title = "None"; ObjectID = "Zgh-b7-8aY"; */
"Zgh-b7-8aY.title" = "无";
@@ -0,0 +1,156 @@
/* Class = "NSTextFieldCell"; title = "Scaled Size:"; ObjectID = "1O9-J3-Plk"; */
"1O9-J3-Plk.title" = "缩放尺寸:";
/* Class = "NSMenuItem"; title = "3"; ObjectID = "3D2-8h-I0N"; */
"3D2-8h-I0N.title" = "3";
/* Class = "NSTabViewItem"; label = "Visual Settings"; ObjectID = "6"; */
"6.label" = "视觉设置";
/* Class = "NSTextFieldCell"; title = "pixels"; ObjectID = "6I1-7O-uon"; */
"6I1-7O-uon.title" = "像素";
/* Class = "NSMenuItem"; title = "Implicit"; ObjectID = "6PY-Np-Y3s"; */
"6PY-Np-Y3s.title" = "缺省";
/* Class = "NSTextFieldCell"; title = "pixels"; ObjectID = "7as-HC-onR"; */
"7as-HC-onR.title" = "像素";
/* 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" = "色域:";
/* 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" = "像素";
/* 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" = "轨道分组:";
/* 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" = "仅当您要将文件加载到列出的设备之一且无法加载时,才应更改视频配置文件。但是,如果视频文件使用编解码器的高级功能,则该文件可能仍无法在设备上播放。";
/* 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" = "强制:";
/* Class = "NSMenuItem"; title = "None"; ObjectID = "H3I-ix-0Ay"; */
"H3I-ix-0Ay.title" = "无";
/* Class = "NSMenuItem"; title = "Some Samples Are Forced"; ObjectID = "i0h-ag-Pc5"; */
"i0h-ag-Pc5.title" = "强制部分样本";
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Aspect Ratio Denominator"; ObjectID = "ifV-jn-Kjv"; */
"ifV-jn-Kjv.ibExternalAccessibilityDescription" = "横纵比分母";
/* Class = "NSTextFieldCell"; title = "x"; ObjectID = "ILN-KP-l0z"; */
"ILN-KP-l0z.title" = "x";
/* Class = "NSMenuItem"; title = "No"; ObjectID = "KOg-FR-dr6"; */
"KOg-FR-dr6.title" = "否";
/* 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" = "强制全部样本";
/* 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" = "缩放尺寸高";
/* Class = "NSMenuItem"; title = "Current profile: unknown"; ObjectID = "NIA-f8-VWx"; */
"NIA-f8-VWx.title" = "当前配置文件:未知";
/* Class = "NSTextFieldCell"; title = "Forced track:"; ObjectID = "NPR-jz-Ile"; */
"NPR-jz-Ile.title" = "强制轨道:";
/* Class = "NSButtonCell"; title = "Preserve Aspect Ratio"; ObjectID = "nr0-Jc-cUj"; */
"nr0-Jc-cUj.title" = "保留横纵比";
/* Class = "NSTextFieldCell"; title = "H.264 Video Profile/Level:"; ObjectID = "nrd-22-FZl"; */
"nrd-22-FZl.title" = "H.264 视频 Profile/Level:";
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Aspect Ratio Numerator"; ObjectID = "Q0D-6k-Hgx"; */
"Q0D-6k-Hgx.ibExternalAccessibilityDescription" = "横纵比分子";
/* Class = "NSTextFieldCell"; title = "Aspect Ratio:"; ObjectID = "Q8w-0e-NRr"; */
"Q8w-0e-NRr.title" = "横纵比:";
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Offset X"; ObjectID = "qFL-0W-Ye6"; */
"qFL-0W-Ye6.ibExternalAccessibilityDescription" = "偏移 X";
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Scaled Size Width"; ObjectID = "r90-c5-7PH"; */
"r90-c5-7PH.ibExternalAccessibilityDescription" = "缩放尺寸宽";
/* 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" = "正常尺寸:";
/* 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" = "偏移:";
/* Class = "NSMenuItem"; title = "None"; ObjectID = "vVg-S9-JUk"; */
"vVg-S9-JUk.title" = "无";
/* Class = "NSTextField"; ibExternalAccessibilityDescription = "Offset Y"; ObjectID = "wlV-Oh-ui5"; */
"wlV-Oh-ui5.ibExternalAccessibilityDescription" = "偏移 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" = "媒体特征";
+9 -6
View File
@@ -28,6 +28,8 @@ final class Queue {
private let url: URL
private let logger = Logger.shared
enum Status {
case unknown
case working
@@ -44,8 +46,7 @@ final class Queue {
do {
let data = try Data(contentsOf: url)
let unarchiver = NSKeyedUnarchiver(forReadingWith: data)
unarchiver.requiresSecureCoding = true
let unarchiver = try NSKeyedUnarchiver(forReadingFrom: data)
if let decodedItems = try unarchiver.decodeTopLevelObject(of: [NSArray.classForCoder(), NSMutableArray.classForCoder(), QueueItem.classForCoder()], forKey: NSKeyedArchiveRootObjectKey) as? [QueueItem] {
items = decodedItems
} else {
@@ -53,6 +54,7 @@ final class Queue {
}
unarchiver.finishDecoding()
} catch {
self.logger.writeError(toLog: error)
items = []
}
@@ -61,13 +63,11 @@ final class Queue {
func saveToDisk() throws {
arrayQueue.sync {
let data = NSMutableData()
let archiver = NSKeyedArchiver(forWritingWith: data)
archiver.requiresSecureCoding = true
let archiver = NSKeyedArchiver(requiringSecureCoding: true)
archiver.encode(items, forKey: NSKeyedArchiveRootObjectKey)
archiver.finishEncoding()
data.write(to: url, atomically: true)
try? archiver.encodedData.write(to: url, options: [.atomic])
}
}
@@ -157,9 +157,12 @@ final class Queue {
let result = self.process(currentItem)
if .completed == result {
completed += 1
self.logger.write(toLog: currentItem.fileURL.lastPathComponent + " completed")
} else if .failed == result {
failed += 1
self.logger.write(toLog: currentItem.fileURL.lastPathComponent + " failed")
} else if .cancelled == result {
self.logger.write(toLog: currentItem.fileURL.lastPathComponent + " cancelled")
break
}
} else {
+4 -21
View File
@@ -176,23 +176,6 @@ class QueueSetAction : NSObject, QueueActionProtocol {
}
extension Array where Element == Artwork {
func filter(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
}
}
}
/// An action that fetches metadata online.
class QueueMetadataAction : NSObject, QueueActionProtocol {
@@ -263,13 +246,13 @@ class QueueMetadataAction : NSObject, QueueActionProtocol {
let artwork: Artwork? = {
let provider = terms.isMovie ? self.movieProvider : self.tvShowProvider
let type = terms.isMovie && preferredArtwork.isMovieType == false ? .poster : preferredArtwork
if let artwork = artworks.filter(by: type, size: preferredArtworkSize, service: provider) {
if let artwork = artworks.first(by: type, size: preferredArtworkSize, service: provider) {
return artwork
}
else if let artwork = artworks.filter(by: .season, size: preferredArtworkSize, service: provider) {
else if let artwork = artworks.first(by: .season, size: preferredArtworkSize, service: provider) {
return artwork
}
else if let artwork = artworks.filter(by: .poster, size: .standard, service: provider) {
else if let artwork = artworks.first(by: .poster, size: .standard, service: provider) {
return artwork
}
else {
@@ -301,7 +284,7 @@ class QueueMetadataAction : NSObject, QueueActionProtocol {
extendedLanguageTag: nil))
}
file.metadata.merge(metadata)
file.metadata.merge(metadata, overwrite: true)
return true
}
}
+106 -46
View File
@@ -6,9 +6,10 @@
//
import Cocoa
import UserNotifications
import MP42Foundation
final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDelegate, ItemViewDelegate, NSTableViewDataSource, NSTableViewDelegate, ExpandedTableViewDelegate, NSUserInterfaceValidations {
final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDelegate, ItemViewDelegate, NSTableViewDataSource, NSTableViewDelegate, ExpandedTableViewDelegate, UNUserNotificationCenterDelegate, NSUserInterfaceValidations {
static let shared = QueueController()
@@ -16,13 +17,17 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
private let prefs = QueuePreferences()
private var popover: NSPopover?
private var itemPopover: NSPopover?
private var windowController: OptionsViewController?
private let toolbarDelegate = QueueToolbarDelegate()
private let tablePasteboardType = NSPasteboard.PasteboardType("SublerQueueTableViewDataType")
private lazy var docImg: NSImage = {
// Load a generic movie icon to display in the table view
let img = NSWorkspace.shared.icon(forFileType: "mov")
let img = {
if #available(macOS 12, *) {
return NSWorkspace.shared.icon(for: .quickTimeMovie)
} else {
return NSWorkspace.shared.icon(forFileType: "mov")
}
}()
img.size = NSSize(width: 16, height: 16)
return img
}()
@@ -38,7 +43,6 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
private init() {
popover = nil
itemPopover = nil
windowController = nil
if let url = prefs.queueURL {
queue = Queue(url: url)
} else {
@@ -61,16 +65,28 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
window?.toolbarStyle = .unified
}
toolbarDelegate.target = self
let toolbar = NSToolbar(identifier: "SublerQueueToolbar")
toolbar.delegate = toolbarDelegate
toolbar.allowsUserCustomization = true
toolbar.autosavesConfiguration = true
toolbar.displayMode = .iconAndLabel
if #available(macOS 26, *) {
toolbar.displayMode = .iconOnly
} else {
toolbar.displayMode = .iconAndLabel
}
self.window?.toolbar = toolbar
table.registerForDraggedTypes([NSPasteboard.PasteboardType.fileURL, tablePasteboardType])
table.registerForDraggedTypes([NSPasteboard.PasteboardType.fileURL, .tableViewIndex])
progressBar.isHidden = true
if #available(macOS 11, *) {
let center = UNUserNotificationCenter.current()
center.delegate = self
center.requestAuthorization(options: [.sound, .alert], completionHandler: {_,_ in })
}
let main = OperationQueue.main
let nc = NotificationCenter.default
@@ -104,18 +120,36 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
self.updateUI()
if self.prefs.showDoneNotification, let info = note.userInfo {
let notification = NSUserNotification()
notification.title = NSLocalizedString("Queue Done", comment: "")
let title = NSLocalizedString("Queue Done", comment: "")
let informativeText = {
if let failedCount = info["FailedCount"] as? UInt, failedCount > 0,
let completedCount = info["CompletedCount"] as? UInt {
return "Completed: \(completedCount); Failed: \(failedCount)"
}
else if let completedCount = info["CompletedCount"] as? UInt {
return "Completed: \(completedCount)"
} else {
return ""
}
}()
if let failedCount = info["FailedCount"] as? UInt, failedCount > 0,
let completedCount = info["CompletedCount"] as? UInt {
notification.informativeText = "Completed: \(completedCount); Failed: \(failedCount)"
if #available(macOS 11, *) {
let notification = UNMutableNotificationContent()
notification.title = title
notification.body = informativeText
notification.sound = UNNotificationSound.default
let request = UNNotificationRequest(identifier: UUID().uuidString,
content: notification,
trigger: nil)
UNUserNotificationCenter.current().add(request) { _ in }
} else {
let notification = NSUserNotification()
notification.title = title
notification.informativeText = informativeText
notification.soundName = NSUserNotificationDefaultSoundName
NSUserNotificationCenter.default.deliver(notification)
}
else if let completedCount = info["CompletedCount"] as? UInt {
notification.informativeText = "Completed: \(completedCount)"
}
notification.soundName = NSUserNotificationDefaultSoundName
NSUserNotificationCenter.default.deliver(notification)
}
for script in self.scripts {
@@ -181,6 +215,13 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
}
}
//MARK: Notification delegate
@available(macOS 10.14, *)
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
completionHandler([.sound])
}
//MARK: Queue
func saveToDisk() throws {
@@ -238,9 +279,18 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
private func destination(for url: URL) -> URL {
let value = try? url.resourceValues(forKeys: [URLResourceKey.typeIdentifierKey])
var isMpeg4 = false
if #available(macOS 11, *) {
isMpeg4 = value?.contentType?.conforms(to: .mpeg4Movie) ?? false
} else {
if let type = value?.typeIdentifier, UTTypeConformsTo(type as CFString, "public.mpeg-4" as CFString) {
isMpeg4 = true
}
}
if let destination = prefs.destination {
return destination.appendingPathComponent(url.lastPathComponent).deletingPathExtension().appendingPathExtension(prefs.fileType)
} else if let type = value?.typeIdentifier, UTTypeConformsTo(type as CFString, "public.mpeg-4" as CFString) {
} else if isMpeg4 {
return url
} else {
return url.deletingPathExtension().appendingPathExtension(prefs.fileType)
@@ -405,7 +455,9 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
}
table.removeRows(at: indexes, withAnimation: .slideUp)
table.selectRowIndexes(IndexSet(integer: indexes.first!), byExtendingSelection: false)
if let index = indexes.first, index < queue.count {
table.selectRowIndexes(IndexSet(integer: index), byExtendingSelection: false)
}
table.endUpdates()
updateState()
@@ -564,10 +616,6 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
}
}
func windowWillClose(_ notification: Notification) {
windowController = nil
}
//MARK: UI
/// Updates the count on the app dock icon.
@@ -677,7 +725,12 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
panel.allowsMultipleSelection = true
panel.canChooseFiles = true
panel.canChooseDirectories = true
panel.allowedFileTypes = MP42FileImporter.supportedFileFormats()
if #available(macOS 11, *) {
panel.allowedContentTypes = MP42FileImporter.supportedContentTypes()
} else {
panel.allowedFileTypes = MP42FileImporter.supportedFileFormats()
}
panel.beginSheetModal(for: windowForSheet) { (response) in
if response == NSApplication.ModalResponse.OK {
@@ -765,41 +818,48 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
//MARK: Drag & Drop
func tableView(_ tableView: NSTableView, writeRowsWith rowIndexes: IndexSet, to pboard: NSPasteboard) -> Bool {
let data = try? NSKeyedArchiver.archivedData(withRootObject: rowIndexes, requiringSecureCoding: true)
pboard.declareTypes([tablePasteboardType], owner: self)
pboard.setData(data, forType: tablePasteboardType)
return true
func tableView(_ tableView: NSTableView,
pasteboardWriterForRow row: Int) -> (any NSPasteboardWriting)? {
let item = PasteboardItem(index: row, type: .tableViewIndex)
return item
}
func tableView(_ tableView: NSTableView, validateDrop info: NSDraggingInfo, proposedRow row: Int, proposedDropOperation dropOperation: NSTableView.DropOperation) -> NSDragOperation {
if info.draggingSource == nil {
tableView.setDropRow(row, dropOperation: .above)
func tableView(_ tableView: NSTableView,
validateDrop info: NSDraggingInfo,
proposedRow row: Int,
proposedDropOperation dropOperation: NSTableView.DropOperation) -> NSDragOperation {
guard dropOperation == .above else { return [] }
if let source = info.draggingSource as? NSTableView,
tableView == source
{
return .move
} else if info.draggingSource == nil {
return .copy
} else if let source = info.draggingSource as? NSTableView, tableView == source && dropOperation == .above {
return .every
} else {
return []
}
}
func tableView(_ tableView: NSTableView, acceptDrop info: NSDraggingInfo, row: Int, dropOperation: NSTableView.DropOperation) -> Bool {
let pboard = info.draggingPasteboard
if let source = info.draggingSource as? NSTableView, source == tableView, let rowData = pboard.data(forType: tablePasteboardType), let rowIndexes = NSKeyedUnarchiver.unarchiveObject(with: rowData) as? IndexSet {
func tableView(_ tableView: NSTableView,
acceptDrop info: NSDraggingInfo,
row: Int,
dropOperation: NSTableView.DropOperation) -> Bool {
guard let pasteboardItems = info.draggingPasteboard.pasteboardItems
else { return false }
if let source = info.draggingSource as? NSTableView,
source == tableView
{
let rowIndexes = IndexSet(pasteboardItems.compactMap { $0.integer(forType: .tableViewIndex) })
let items = queue.items(at: rowIndexes)
move(items: items, at: row)
return true
} else {
if pboard.types?.contains(NSPasteboard.PasteboardType.fileURL) ?? false {
if let items = pboard.readObjects(forClasses: [NSURL.classForCoder()], options: [:]) as? [URL] {
insert(contentOf: items, at: row)
}
return true
} else if info.draggingPasteboard.types?.contains(NSPasteboard.PasteboardType.fileURL) ?? false {
if let items = info.draggingPasteboard.readObjects(forClasses: [NSURL.classForCoder()], options: [:]) as? [URL] {
insert(contentOf: items, at: row)
}
return true
}
return false
+13 -6
View File
@@ -262,7 +262,7 @@ import MP42Foundation
let importer = try MP42FileImporter(url: fileURL)
let activeTracks = importer.tracks.filter { isTrackMuxable($0.format) || trackNeedConversion($0.format) }
mp4.metadata.merge(importer.metadata)
mp4.metadata.merge(importer.metadata, overwrite: true)
for track in activeTracks {
@@ -415,8 +415,8 @@ import MP42Foundation
statusInternal = QueueItem.Status(rawValue: Int(aDecoder.decodeInt32(forKey: "SBQueueItemStatus"))) ?? .failed
mp4File = aDecoder.decodeObject(of: [MP42File.classForCoder()], forKey: "SBQueueItemMp4File") as? MP42File
uniqueID = aDecoder.decodeObject(of: [NSString.classForCoder()], forKey: "SBQueueItemID") as! String
attributes = aDecoder.decodeObject(of: [NSDictionary.classForCoder()], forKey: "SBQueueItemAttributes") as! [String : Any]
uniqueID = aDecoder.decodeObject(of: [NSString.classForCoder()], forKey: "SBQueueItemID") as? String ?? UUID().uuidString
attributes = aDecoder.decodeObject(of: [NSDictionary.classForCoder(), NSString.classForCoder(), NSNumber.classForCoder()], forKey: "SBQueueItemAttributes") as? [String : Any] ?? [:]
#if SB_SANDBOX
if var bookmark = aDecoder.decodeObject(of: [NSData.classForCoder()], forKey: "SBQueueItemFileURLBookmark") as? Data {
@@ -449,8 +449,14 @@ import MP42Foundation
return nil
}
#else
fileURL = aDecoder.decodeObject(of: [NSURL.classForCoder()], forKey: "SBQueueItemFileURL") as! URL
destURLInternal = aDecoder.decodeObject(of: [NSURL.classForCoder()], forKey: "SBQueueItemDestURL") as! URL
if let fileURL = aDecoder.decodeObject(of: [NSURL.classForCoder()], forKey: "SBQueueItemFileURL") as? URL,
let destURLInternal = aDecoder.decodeObject(of: [NSURL.classForCoder()], forKey: "SBQueueItemDestURL") as? URL {
self.fileURL = fileURL
self.destURLInternal = destURLInternal
} else {
return nil
}
#endif
actionsInternal = aDecoder.decodeObject(of: [NSArray.classForCoder(), QueueSetAction.classForCoder(),
@@ -460,7 +466,8 @@ import MP42Foundation
QueueRenameChaptersAction.classForCoder(),
QueueOrganizeGroupsAction.classForCoder(), QueueColorSpaceAction.classForCoder(),
QueueSetOutputFilenameAction.classForCoder(), QueueClearExistingMetadataAction.classForCoder(),
QueueOptimizeAction.classForCoder(), QueueSendToiTunesAction.classForCoder()], forKey: "SBQueueItemActions") as! [QueueActionProtocol]
QueueOptimizeAction.classForCoder(), QueueSendToiTunesAction.classForCoder(),
QueueChangeAudioLanguageAction.classForCoder(), QueueChangeSubtitleLanguageAction.classForCoder()], forKey: "SBQueueItemActions") as? [QueueActionProtocol] ?? []
}
}
+24
View File
@@ -45,3 +45,27 @@ import Foundation
}
}
@objc(SBQueueRemoveCompletedScriptCommand) class QueueRemoveCompletedScriptCommand: NSScriptCommand {
@MainActor override func performDefaultImplementation() -> Any? {
QueueController.shared.removeCompletedItems(self)
return nil
}
}
@objc(SBQueueStatusScriptCommand) class SBQueueStatusScriptCommand: NSScriptCommand {
@MainActor override func performDefaultImplementation() -> Any? {
switch QueueController.shared.status {
case .unknown:
return 0 // idle
case .working:
return 1 // running
case .completed:
return 2 // completed
}
}
}
+7 -2
View File
@@ -15,6 +15,8 @@ extension NSToolbarItem.Identifier {
class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
weak var target: AnyObject?
@MainActor func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? {
if itemIdentifier == .queueAdd {
@@ -22,14 +24,16 @@ class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
label: NSLocalizedString("Add Item", comment: "Toolbar"),
toolTip: NSLocalizedString("Add an item to the queue", comment: "Toolbar"),
image: "NSAddTemplate",
symbolName: "plus",
symbolName: "doc.badge.plus",
target: target,
action: #selector(QueueController.open(_:)))
} else if itemIdentifier == .queueSettings {
return ButtonToolbarItem(itemIdentifier: itemIdentifier,
label: NSLocalizedString("Settings", comment: "Toolbar"),
toolTip: NSLocalizedString("Show/Hide settings", comment: "Toolbar"),
image: "NSActionTemplate",
symbolName: "ellipsis.circle",
symbolName: "gear",
target: target,
action: #selector(QueueController.toggleOptions(_:)))
} else if itemIdentifier == .queueStartStop {
return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -37,6 +41,7 @@ class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Start/Stop queue", comment: "Toolbar"),
image: "playBackTemplate",
symbolName: "play.fill",
target: target,
action: #selector(QueueController.toggleStartStop(_:)))
}
Loaded 100 of 198 files, more files were not shown because too many files have changed in this diff. Show more