Skip to content

feat(dialog): add default_suffix to the save-file picker#138

Open
pabloinigoblasco wants to merge 2 commits into
feature/plot-markersfrom
feat/dialog-save-file-picker
Open

feat(dialog): add default_suffix to the save-file picker#138
pabloinigoblasco wants to merge 2 commits into
feature/plot-markersfrom
feat/dialog-save-file-picker

Conversation

@pabloinigoblasco

@pabloinigoblasco pabloinigoblasco commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Builds on PlotJuggler/plotjuggler_sdk#135 (which introduces the save-file picker as part of the pj.data_processors.v1 unification) and adds the optional default_suffix argument to setSaveFilePicker — appended to the typed filename when it carries no extension (so exporting library saves library.json).

Targeted at feature/plot-markers so the two merge cleanly: the picker's setter and isSaveFilePicker are identical to #135's; this branch's only delta is default_suffix plus its saveFilePickerDefaultSuffix accessor. Filter/title are read through the shared filePicker* accessors, matching #135's style.

Contents

  • WidgetData::setSaveFilePicker gains default_suffix = "" (writes e["default_suffix"]).
  • WidgetDataView::saveFilePickerDefaultSuffix.
  • docs: dialog-sdk-reference.md, dialog-plugin-guide.md.

Pairs with

The host rendering (PlotJuggler/PJ4#252) and the Transform Editor library Export that uses it (PlotJuggler/pj-official-plugins#158).

Add WidgetData::setSaveFilePicker and the matching WidgetDataView
accessors so a plugin can turn a button into a native "save as" chooser.
The chosen path is delivered through the existing onFileSelected handler,
so no new event type or typed handler is required. This is a
backward-compatible API addition, so bump the SDK to 0.13.0 and bring
recipe.yaml back in sync with the other version sources.

Contents:
- setSaveFilePicker(name, text, filter, title, default_suffix) -> "save_file_picker" action
- WidgetDataView: isSaveFilePicker / saveFilePickerFilter / Title / DefaultSuffix
- version 0.13.0 in conanfile.py, CMakeLists.txt, recipe.yaml + docstring example
- docs: dialog-sdk-reference.md and dialog-plugin-guide.md
The save-file picker now lives on top of the markers/data-processors
unification branch. setSaveFilePicker / isSaveFilePicker are taken from that
branch; this branch's only remaining contribution is the optional
default_suffix argument (and its saveFilePickerDefaultSuffix accessor),
appended to the typed name when it carries no extension. Filter/title are read
through the shared filePicker accessors, matching that branch's style.
@pabloinigoblasco pabloinigoblasco changed the title feat(dialog): add save-file picker to the dialog SDK feat(dialog): add default_suffix to the save-file picker Jun 28, 2026
@pabloinigoblasco pabloinigoblasco changed the base branch from main to feature/plot-markers June 28, 2026 20:30
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.

1 participant