From: dooglus Date: Sun, 1 Apr 2007 18:38:23 +0000 (+0000) Subject: Simple implementation of 'Save All'. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=55e0ee1a66bc612e4da9d19eb778bc1e2c50d051;p=synfig.git Simple implementation of 'Save All'. git-svn-id: http://svn.voria.com/code@411 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/toolbox.cpp b/synfig-studio/trunk/src/gtkmm/toolbox.cpp index 9dddf79..435f0d9 100644 --- a/synfig-studio/trunk/src/gtkmm/toolbox.cpp +++ b/synfig-studio/trunk/src/gtkmm/toolbox.cpp @@ -148,6 +148,14 @@ save_as_selected_instance() } void +save_all() +{ + std::list >::iterator iter; + for(iter=App::instance_list.begin();iter!=App::instance_list.end();iter++) + (*iter)->save(); +} + +void close_selected_instance() { etl::handle instance=studio::App::get_selected_instance(); @@ -289,7 +297,7 @@ Toolbox::Toolbox(): button_open->signal_clicked().connect(sigc::ptr_fun(studio::App::dialog_open)); button_save->signal_clicked().connect(sigc::ptr_fun(save_selected_instance)); button_saveas->signal_clicked().connect(sigc::ptr_fun(save_as_selected_instance)); - button_save_all->signal_clicked().connect(sigc::ptr_fun(studio::App::dialog_not_implemented)); + button_save_all->signal_clicked().connect(sigc::ptr_fun(save_all)); button_undo->signal_clicked().connect(sigc::ptr_fun(studio::App::undo)); button_redo->signal_clicked().connect(sigc::ptr_fun(studio::App::redo)); button_color->signal_clicked().connect(sigc::ptr_fun(show_dialog_color));