Skip to content

Export multiple files - #12106

Merged
grliszas14 merged 14 commits into
audacity:masterfrom
grliszas14:export_multiple
Sep 18, 2026
Merged

grliszas14 merged 14 commits into
audacity:masterfrom
grliszas14:export_multiple

Conversation

@grliszas14

Copy link
Copy Markdown
Contributor

Resolves: #11136

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Testflow test cases have been run

@grliszas14

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 0aceda26-a71c-4907-acc4-b0b0e05062e7

📥 Commits

Reviewing files that changed from the base of the PR and between 78c8159 and accee57.

📒 Files selected for processing (3)
  • src/importexport/export/exportutils.cpp
  • src/importexport/export/tests/exportutils_tests.cpp
  • src/importexport/export/view/exportpreferencesmodel.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/importexport/export/view/exportpreferencesmodel.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

Adds separate audio export by track and label. The exporter prepares file data before export and supports filename prefixes, numbering, label ranges, unique names, and optional audio before the first label. Export settings persist the new options. The export model and dialog expose separate-file controls and previews. Projects expose label content state, and action validation checks audio and labels separately. Utility tests and conditional CMake test support were added.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant ExportDialog
  participant ExportPreferencesModel
  participant Au3Exporter
  participant ExportProcessor
  ExportDialog->>ExportPreferencesModel: Configure separate-file export
  ExportPreferencesModel->>Au3Exporter: Prepare separate files
  Au3Exporter-->>ExportPreferencesModel: Return prepared file names
  ExportDialog->>ExportPreferencesModel: Start export
  ExportPreferencesModel->>Au3Exporter: Export prepared files
  Au3Exporter->>ExportProcessor: Export each track or label range
  ExportProcessor-->>Au3Exporter: Return export result
  Au3Exporter-->>ExportPreferencesModel: Return completion status
  ExportPreferencesModel-->>ExportDialog: Show completion or error
Loading

Merge Risk: ⚪ Minimal · up to accee

The filename utility changes include coverage for sanitization, reserved Windows device names, uniqueness, and label ranges. No unresolved merge-blocking issue is identified.

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes the issue link and required checklist, but it omits the required short description of the changes and their motivation. QA testing is also not marked as completed. Add a short summary explaining the multiple-file export changes and their motivation. Mark the QA checkbox only after the relevant Testflow cases have been run.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change: support for exporting multiple files.
Linked Issues check ✅ Passed Issue #11136 requires an Export dialog option for multiple audio-file export that matches AU3 behavior. The PR adds track and label export modes, dialog controls, persisted options, filename preview a…
Out of Scope Changes check ✅ Passed The changed files support issue #11136. Export utility changes provide safe unique names. Configuration and QML changes expose the required options. Exporter refactoring supports prepared multi-file e…

Warning

Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped musescore/musescore.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 7c1fc9cc-dd95-47a9-a465-bb810b542af7

📥 Commits

Reviewing files that changed from the base of the PR and between ef246e4 and 5e92fad.

📒 Files selected for processing (20)
  • CMakeLists.txt
  • src/importexport/export/CMakeLists.txt
  • src/importexport/export/exportutils.cpp
  • src/importexport/export/exportutils.h
  • src/importexport/export/iexportconfiguration.h
  • src/importexport/export/iexporter.h
  • src/importexport/export/internal/au3/au3exporter.cpp
  • src/importexport/export/internal/au3/au3exporter.h
  • src/importexport/export/internal/exportconfiguration.cpp
  • src/importexport/export/internal/exportconfiguration.h
  • src/importexport/export/qml/Export/ExportDialog.qml
  • src/importexport/export/tests/CMakeLists.txt
  • src/importexport/export/tests/exportutils_tests.cpp
  • src/importexport/export/view/exportpreferencesmodel.cpp
  • src/importexport/export/view/exportpreferencesmodel.h
  • src/project/internal/projectactionscontroller.cpp
  • src/trackedit/internal/au3/au3trackeditproject.cpp
  • src/trackedit/internal/au3/au3trackeditproject.h
  • src/trackedit/itrackeditproject.h
  • src/trackedit/tests/mocks/trackeditprojectmock.h

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@grliszas14
grliszas14 requested a review from kryksyh September 14, 2026 08:17

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)
src/trackedit/internal/au3/au3trackeditproject.cpp (1)

321-432: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Refresh hasLabels after project-edit commits

applyChanges() replaces and appends label tracks without an ITrackeditProject notification or reload(). A project edit can therefore leave m_hasLabels false after labels are added, or true after the last label is removed. ProjectActionsController::canReceiveAction() uses this value to gate export-labels, so the action can be incorrectly disabled or enabled. Refresh hasLabels at the project-edit commit/finalization boundary after applyChanges().


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 1b623863-817f-46d6-bdcc-ad4f90e869da

📥 Commits

Reviewing files that changed from the base of the PR and between 5e92fad and b8f29fc.

📒 Files selected for processing (2)
  • src/importexport/export/internal/au3/au3exporter.cpp
  • src/importexport/export/view/exportpreferencesmodel.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/importexport/export/internal/au3/au3exporter.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Comment thread src/importexport/export/exportutils.cpp Resolved
Comment thread src/importexport/export/exportutils.cpp Resolved
@kryksyh

kryksyh commented Sep 14, 2026

Copy link
Copy Markdown
Member

And one more thing, we call separateFiles() twice, first in separateFileNames and then again in exportSeparateFiles, even though we only need to do this once. I think we need to build and verify the list once, and then reuse it.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 0ad83676-ca06-401f-ae3f-f1df89490708

📥 Commits

Reviewing files that changed from the base of the PR and between 0097109 and 78c8159.

📒 Files selected for processing (8)
  • src/importexport/export/exportutils.cpp
  • src/importexport/export/exportutils.h
  • src/importexport/export/iexporter.h
  • src/importexport/export/internal/au3/au3exporter.cpp
  • src/importexport/export/internal/au3/au3exporter.h
  • src/importexport/export/qml/Export/ExportDialog.qml
  • src/importexport/export/tests/exportutils_tests.cpp
  • src/importexport/export/view/exportpreferencesmodel.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Comment thread src/importexport/export/exportutils.cpp Resolved
@grliszas14
grliszas14 merged commit cba74fa into audacity:master Sep 18, 2026
28 checks passed
@grliszas14
grliszas14 deleted the export_multiple branch September 18, 2026 14:54
kryksyh added a commit that referenced this pull request Sep 22, 2026
Export multiple files (#12106)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement export multiple

2 participants