X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fgroupactionmanager.cpp;h=55024160cad3d979d4e239a8567683e7c4576e9f;hb=acc2e299d146ba31e030c8e5ed775427b6f0607e;hp=ab2727cb4f2cbe3ef1c7ee4070d9935098ba38de;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/groupactionmanager.cpp b/synfig-studio/trunk/src/gtkmm/groupactionmanager.cpp index ab2727c..5502416 100644 --- a/synfig-studio/trunk/src/gtkmm/groupactionmanager.cpp +++ b/synfig-studio/trunk/src/gtkmm/groupactionmanager.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file template.cpp ** \brief Template File ** ** $Id: groupactionmanager.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -30,7 +31,7 @@ #include "groupactionmanager.h" #include "layergrouptree.h" -#include +#include #include "instance.h" #include @@ -40,7 +41,7 @@ using namespace std; using namespace etl; -using namespace sinfg; +using namespace synfig; using namespace studio; static const guint no_prev_popup((guint)-1); @@ -94,7 +95,7 @@ GroupActionManager::set_group_tree(LayerGroupTree* x) } void -GroupActionManager::set_canvas_interface(const etl::handle &x) +GroupActionManager::set_canvas_interface(const etl::handle &x) { canvas_interface_=x; } @@ -154,7 +155,7 @@ GroupActionManager::refresh() // Make sure we are ready if(!ui_manager_ || !group_tree_ || !canvas_interface_) { - sinfg::error("GroupActionManager::refresh(): Not ready!"); + synfig::error("GroupActionManager::refresh(): Not ready!"); return; } @@ -182,14 +183,14 @@ GroupActionManager::refresh() // bool multiple_selected(group_tree_->get_selection()->count_selected_rows()>1); LayerGroupTree::LayerList selected_layers(group_tree_->get_selected_layers()); - std::list selected_groups(group_tree_->get_selected_groups()); + std::list selected_groups(group_tree_->get_selected_groups()); - sinfg::info("selected_layers.size()=%d",selected_layers.size()); - sinfg::info("selected_groups.size()=%d",selected_groups.size()); + synfig::info("selected_layers.size()=%d",selected_layers.size()); + synfig::info("selected_groups.size()=%d",selected_groups.size()); { bool canvas_set(false); - sinfgapp::Action::ParamList param_list; + synfigapp::Action::ParamList param_list; param_list.add("time",get_canvas_interface()->get_time()); param_list.add("canvas_interface",get_canvas_interface()); @@ -208,11 +209,11 @@ GroupActionManager::refresh() } { - std::list::iterator iter; + std::list::iterator iter; for(iter=selected_groups.begin();iter!=selected_groups.end();++iter) { - param_list.add("group",(sinfg::String)*iter); + param_list.add("group",(synfig::String)*iter); } } @@ -223,7 +224,7 @@ GroupActionManager::refresh() } handle::cast_static(get_canvas_interface()->get_instance())-> - add_actions_to_group(action_group_, ui_info, param_list, sinfgapp::Action::CATEGORY_GROUP); + add_actions_to_group(action_group_, ui_info, param_list, synfigapp::Action::CATEGORY_GROUP); } }