Coordinates OS native save dialogs, comparison datasets formatting, and export I/O.
More...
#include <PlotExportManager.hpp>
|
| using | StatusCallback = std::function<void(const std::string &)> |
| | Callback type for reporting export results or user cancellations.
|
Coordinates OS native save dialogs, comparison datasets formatting, and export I/O.
◆ StatusCallback
Callback type for reporting export results or user cancellations.
◆ PlotExportManager() [1/3]
| correlation::app::PlotExportManager::PlotExportManager |
( |
| ) |
|
|
default |
◆ ~PlotExportManager()
| correlation::app::PlotExportManager::~PlotExportManager |
( |
| ) |
|
Destructor. Joins active dialog thread if running.
◆ PlotExportManager() [2/3]
| correlation::app::PlotExportManager::PlotExportManager |
( |
const PlotExportManager & | | ) |
|
|
delete |
◆ PlotExportManager() [3/3]
| correlation::app::PlotExportManager::PlotExportManager |
( |
PlotExportManager && | | ) |
|
|
delete |
◆ exportPlotAsync()
Launches the native OS save dialog on a background worker and executes the save on completion.
- Parameters
-
| [in] | default_base_path | Base output file path from program options. |
| [in] | plot_name | Name of the plot to export. |
| [in] | hist | Active histogram pointer. |
| [in] | config | Base plot configuration. |
| [in] | pinned_runs | Vector of pinned runs for comparison exports. |
| [in] | ashcroft_weights | Map of Ashcroft weights. |
| [in] | on_status | Callback invoked on the Slint main event loop with status text. |
◆ isDialogActive()
| bool correlation::app::PlotExportManager::isDialogActive |
( |
| ) |
const |
|
nodiscardnoexcept |
Checks if a native save file dialog is currently active.
- Returns
- True if dialog is running, false otherwise.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ savePlot()
Saves a plot synchronously to a destination filepath.
- Parameters
-
| [in] | filepath | Target file path on disk (SVG or PDF). |
| [in] | plot_name | Name of the plot to save. |
| [in] | hist | Active histogram pointer. |
| [in] | config | Base plot configuration. |
| [in] | pinned_runs | Span of pinned runs for comparison exports. |
| [in] | ashcroft_weights | Map of Ashcroft weights for S(Q) partials. |
- Returns
- Expected void on success or error description string on failure.
◆ dialog_active_
| std::atomic<bool> correlation::app::PlotExportManager::dialog_active_ {false} |
|
private |
◆ dialog_thread_
| std::jthread correlation::app::PlotExportManager::dialog_thread_ |
|
private |
The documentation for this class was generated from the following files: