From 4211b2ae06777d5bbe8261a1ab5c0dd057829a35 Mon Sep 17 00:00:00 2001 From: Rubén Beltrán del Río Date: Fri, 16 Jan 2026 00:36:23 +0100 Subject: Add export image --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.rs') 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 -- cgit