Commit Graph
212 Commits
Author SHA1 Message Date
Scott GarrettandClaude Code f457b4e89c Make chapter tracks deletable, insertable, and language-editable
Delete: the phase-1 gate against deleting the chapter pseudo-track on
Matroska documents is obsolete now that chapter changes ride the
stream-copy remuxer — a removed pseudo-track simply makes the model
report "no chapters", which removes the Chapters element on save (the
same path emptying the Chapters tab already took). The toolbar Delete
button's validation is corrected too; it still rejected chapter-only
selections after deleteSelection was opened up.

Insert: the Actions toolbar gets a single "Insert a chapter" item, and
"Insert a chapter every" (previously MP4-only) is enabled on Matroska.
Both create the chapter track when the document has none, doing the
tags-only bookkeeping the model needs (dense display trackId,
updateChangeCount). A single insert lands 1s after the latest start,
clamped to the track duration, so it can never tie with a stored
chapter — ties get clamped +1ms on write and would silently shift the
user's own chapter times.

Language: the chapter row's language popup stays editable on MKV
documents (the value rides the remuxer's chapter rebuild, not the tag
writer, since the pseudo-track has no TrackEntry), and the Matroska
chapters snapshot carries it so a language-only edit triggers the
remux. Pairs with the submodule's ChapterLanguage round trip.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-26 18:17:37 -05:00
Scott GarrettandClaude Code eb386a52c3 Open and edit Matroska files in place, including track removal
.mkv/.mka/.mks now open directly into a tags-only document instead of
forcing the convert-import sheet:

- Metadata, cover art, and the four per-track fields Matroska stores
  (name, language, enabled, subtitle forced) save back into the same
  file via MP42MkvTagWriter; MP4-only properties stay read-only.
- Real tracks can be deleted and Save-As is enabled; both go through
  MP42MkvRemuxer's stream-copy rebuild (Document keeps an importer-order
  track snapshot and pairs TrackEntry elements by object identity).
  Destinations must stay .mkv/.mka/.mks.
- Info.plist: the Matroska document type becomes Editor so NSDocument
  offers .mkv Save-As instead of defaulting to the MP4 type.
- Delete on MKV docs skips organizeAlternateGroups/
  inferMediaCharacteristics because they reorder the model, which the
  TrackEntry pairing depends on; chapter rows stay undeletable.

Bumps MP42Foundation for the Matroska tagging/remux support.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-25 19:48:34 -05: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 40107a9db1 Fix the jpeg check on macOS 11 and later
Fix #151.
2026-09-25 07:48:42 +02:00
Damiano Galassi 334bc51906 Update localizations 2026-09-22 20:02:45 +02:00
Damiano Galassi 192de27e8d Fix even more deprecation warnings 2026-09-22 18:51:35 +02:00
Damiano Galassi f8667656ef Use the ellipsis icon on macOS 26 and later 2026-09-22 17:18:32 +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 4b5f384a56 Re-implement cut command in the artworks view 2025-10-13 15:17:38 +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 eaa28f9efd Update Italian localization 2025-09-18 14:21:44 +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 a029d2bf23 Fix imports 2025-09-16 11:48:58 +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 d9f2681bba Save movie view and presets editor view zoom level to a separate key 2025-03-22 10:06:47 +01:00
Damiano Galassi 8bbb34298a Remember artworks size in the movie view 2024-11-29 13:32:36 +01:00
Damiano Galassi 2d0cb8b827 Add IPT-C2 and Undefined color profiles 2024-11-29 12:53:43 +01:00
Damiano Galassi e7a4d7af09 Improve keyboard navigation 2024-07-22 10:06:33 +02:00
Damiano Galassi 94c0780be8 Fix metadata copy & paste 2024-07-20 12:04:08 +02:00
Damiano Galassi 9b4651b346 Actually update the right localization 2024-07-19 20:07:45 +02:00
Damiano Galassi 90fe211d8f Update localizations 2024-07-19 18:25:15 +02:00
Damiano Galassi f863b60062 Fix file promises for artworks that are not jpeg 2024-07-18 11:28:47 +02:00
Damiano Galassi ea9a72b28a Replace some deprecated methods with newer ones 2024-07-06 17:03:58 +02:00
Damiano Galassi 89ba80859e Preserve the tab selection after a reload 2024-07-06 16:58:35 +02:00
Damiano Galassi de497f46b4 Actually update the correct Chinese resources 2024-07-03 19:54:22 +02:00
Damiano Galassi 9e03ea06b4 Add additional media characteristic tags 2024-07-03 14:14:34 +02:00
Damiano Galassi 8d77b4cf24 Update localizations 2024-07-03 12:08:33 +02:00
Damiano Galassi abd3b99fde Remove unneeded titles from xib files 2024-07-03 12:04:23 +02:00
Damiano Galassi feffd25229 Remove artworks when they are dragged to the Trash 2024-07-02 17:49:11 +02:00
Damiano Galassi c1a0afbee5 Align the combo box yet again 2024-07-02 17:48:36 +02:00
Damiano Galassi a40a3bfe3c Hide the collection view items labels when they are not needed 2024-07-01 17:49:47 +02:00
Damiano Galassi 5fc68123c3 Call the already existing method to remove artworks 2024-07-01 08:43:25 +02:00
Damiano Galassi ca866537a8 Reneable some deinits 2024-06-30 12:48:31 +02:00
Damiano Galassi 7ee51541dd Properly enable the copy menu item 2024-06-30 12:47:51 +02:00
Damiano Galassi 79544cf7ff Add back artworks copy & paste 2024-06-30 12:14:48 +02:00
Damiano Galassi f3676f68c1 Improve Drag & Drop 2024-06-29 13:16:23 +02:00
Damiano Galassi a1bb044164 Implement file promises in the artworks collection view 2024-06-29 12:01:54 +02:00
Damiano Galassi da3a30c72f Fix dragging external artworks 2024-06-27 17:50:05 +02:00
Damiano Galassi c70f9991de Align the combo box arrows 2024-06-27 17:49:22 +02:00
Damiano Galassi fc6bc09ce2 Partially enable Swift concurrency checks 2024-06-27 11:57:20 +02:00
Damiano Galassi e3d781e488 Preliminary work to replace the deprecated IKImageBrowserView with a NSCollectionView 2024-06-27 11:18:40 +02:00
Damiano Galassi 7109b0b53f Add VVC 2024-06-26 18:16:10 +02:00
Damiano Galassi 6194da4e06 Update French localization. 2022-02-24 10:25:28 +01:00
Damiano Galassi 5ab01bfa95 Add French localization. 2022-01-11 11:13:48 +01:00
Damiano Galassi 06b72f7e8e Fix a couple of non working UI elements. 2021-12-10 09:59:55 +01:00