diff options
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 |