diff options
| author | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-01-16 00:36:23 +0100 |
|---|---|---|
| committer | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-01-16 00:58:35 +0100 |
| commit | 4211b2ae06777d5bbe8261a1ab5c0dd057829a35 (patch) | |
| tree | 15d501e3c101abfa5f6657b023f385e4272fbcc4 /src/main.rs | |
| parent | 04b1e6080d99601b8d6343be3140f545cd8f9eae (diff) | |
Add export image
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 30f2381..2162845 100644 --- a/src/main.rs +++ b/src/main.rs @@ -500,12 +500,12 @@ impl SimpleComponent for AppModel { Action::ZoomIn => handlers::zoom::zoom_in(self), Action::ZoomOut => handlers::zoom::zoom_out(self), - // Export (not yet implemented) + // Export Action::ExportImage => { - // TODO: Implement image export functionality - // - Show save dialog with PNG/SVG format picker - // - Default filename: current file name with .png or .svg extension - // - Call renderer's render_to_png() or render_to_svg() based on selection + dialogs::show_export_dialog(&self.window, self.current_file.clone(), sender) + } + Action::ExportToFile { path, format } => { + handlers::export::export_to_file(self, path, format) } // File actions |