diff options
author | neoraider <devnull@localhost> | 2007-11-01 00:03:04 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-11-01 00:03:04 +0100 |
commit | b478ad79508f5a06e8c0fc5937b28585c747fb04 (patch) | |
tree | 62253b031732435881d0611eca670086adc57d36 /Window.cpp | |
parent | bc2b34ead69f7fa1ef997308e0cff6123179f40e (diff) | |
download | zoomedit-b478ad79508f5a06e8c0fc5937b28585c747fb04.tar zoomedit-b478ad79508f5a06e8c0fc5937b28585c747fb04.zip |
zoomedit: Speichern jetzt m?glich.
Diffstat (limited to 'Window.cpp')
-rw-r--r-- | Window.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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; |