Add option to export all diagrams from UI (same as CLI) #3497
+148
−50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Creating a full export of all diagrams in a model was already possible from the command-line. This can be intimidating for people who are less used to working in a CLI environment. I encountered this issue at my work where some system engineers were going through their model and manually exporting diagrams one-by-one, which is not a good use of their time. I quickly whipped up a plugin for them to do a dump to PNG. This PR is the cleaned up version of that plugin with support for all 4 formats that Gaphor currently supports.
Additionally this also adds support for EPS export on the CLI which was missing before.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Export is only available for a single diagram in the UI
Issue Number: N/A
What is the new behavior?
Menu options exist to export all diagrams in the model to a specific format
Does this PR introduce a breaking change?
Other information