The "View Output" window always saved the raw output (JSON), even with a
.txt file name, and offered no format choice. The device information
window saved text into a .json file when the "Text Files" type was
selected, since the suggested file name has a .json extension.
- Add smartctl_output_export (applib): extracts the available formats
(JSON, and the text output embedded with --json=o) from smartctl output,
and decides the format and file extension from the selected file type or
the typed extension.
- Add a shared Save As dialog used by both windows, offering only the
available formats and confirming overwrites of extension-adjusted names.
- "View Output" window: add a JSON / Text selector, so the displayed (and
copyable) text can be switched; Save As suggests the displayed format.
Fixes#85
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>