From b478ad79508f5a06e8c0fc5937b28585c747fb04 Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 31 Oct 2007 23:03:04 +0000 Subject: zoomedit: Speichern jetzt m?glich. --- Window.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Window.cpp') diff --git a/Window.cpp b/Window.cpp index f69e148..af0357b 100644 --- a/Window.cpp +++ b/Window.cpp @@ -11,7 +11,8 @@ gboolean Window::deleteEvent(GtkWidget *widget, GdkEvent *event, Window *window) } Window::Window(GdkGLConfig *glconfig, WindowManager *manager) - : uiManager(this), editor(this), drawer(this, glconfig), sidebar(&editor) + : uiManager(this), editor(this), drawer(this, glconfig), sidebar(&editor), + fileManager(this) { this->manager = manager; @@ -53,6 +54,14 @@ void Window::update() { void Window::handleAction(UIManager::Action action) { switch(action) { + case UIManager::SAVE: + fileManager.save(GTK_WINDOW(window)); + break; + + case UIManager::SAVE_AS: + fileManager.saveAs(GTK_WINDOW(window)); + break; + case UIManager::ZOOM_IN: drawer.zoom(2); break; -- cgit v1.2.3