continue;
Layer_PasteCanvas* paste_canvas(static_cast<Layer_PasteCanvas*>(layer.get()));
- if(layer->get_name()=="PasteCanvas" && paste_canvas->get_time_offset()==0)
+ if(layer->get_name()=="paste_canvas" && paste_canvas->get_time_offset()==0)
{
Canvas::Handle sub_canvas(Canvas::create_inline(op_canvas));
Canvas::Handle paste_sub_canvas = paste_canvas->get_sub_canvas();
continue;
}catch(int) { }
#endif
- Layer::Handle new_layer(Layer::create("PasteCanvas"));
+ Layer::Handle new_layer(Layer::create("paste_canvas"));
dynamic_cast<Layer_PasteCanvas*>(new_layer.get())->set_muck_with_time(false);
Layer::ParamList param_list(paste_canvas->get_param_list());
//param_list.erase("canvas");
//parammenu.items().push_back(Gtk::Menu_Helpers::MenuElem(_("New Layer"),*newlayers));
- if(layer->get_name()=="PasteCanvas")
+ if(layer->get_name()=="paste_canvas")
{
menu->items().push_back(Gtk::Menu_Helpers::MenuElem(_("Select All Children"),
sigc::bind(
build_new_layer_menu(*newlayers);
parammenu.items().push_back(Gtk::Menu_Helpers::MenuElem("New Layer",*newlayers));
- if(!multiple_selected && layer->get_name()=="PasteCanvas")
+ if(!multiple_selected && layer->get_name()=="paste_canvas")
{
parammenu.items().push_back(Gtk::Menu_Helpers::MenuElem(_("Select All Children"),
sigc::bind(
// If this is a paste canvas layer, then we need to
// descend into it
- if(layer_name=="PasteCanvas")
+ if(layer_name=="paste_canvas")
{
Vector scale;
scale[0]=scale[1]=exp(layer->get_param("zoom").get(Real()));
INIT_STOCK_ICON(saveall,"saveall_icon."IMAGE_EXT,_("Save All"));
INIT_STOCK_ICON(bool,"bool_icon."IMAGE_EXT,_("Bool"));
INIT_STOCK_ICON(layer,"layer_icon."IMAGE_EXT,_("Layer"));
- INIT_STOCK_ICON(layer_pastecanvas,"pastecanvas_icon."IMAGE_EXT,_("PasteCanvas"));
+ INIT_STOCK_ICON(layer_pastecanvas,"pastecanvas_icon."IMAGE_EXT,_("Paste Canvas"));
INIT_STOCK_ICON(group,"group_icon."IMAGE_EXT,_("Group"));
INIT_STOCK_ICON(grid_enable,"grid_enable_icon."IMAGE_EXT,_("Show Grid"));
INIT_STOCK_ICON(grid_disable,"grid_disable_icon."IMAGE_EXT,_("Hide Grid"));
Gtk::StockID
studio::layer_icon(const synfig::String &layer)
{
- if(layer=="PasteCanvas" || layer=="pastecanvas")
+ if(layer=="PasteCanvas" || layer=="pastecanvas" || layer=="paste_canvas")
return Gtk::StockID("synfig-layer_pastecanvas");
else if(layer=="rotate")
return Gtk::StockID("synfig-rotate");
}
}
- if(!multiple_selected && layer->get_name()=="PasteCanvas")
+ if(!multiple_selected && layer->get_name()=="paste_canvas")
{
action_group_->add(Gtk::Action::create(
"select-all-child-layers",
if(!child_canvas)
child_canvas=Canvas::create_inline(get_canvas());
- Layer::Handle new_layer(Layer::create("PasteCanvas"));
+ Layer::Handle new_layer(Layer::create("paste_canvas"));
new_layer->set_param("canvas",child_canvas);
if(!outside_canvas)
throw String(_("Unable to open this composition"));
- Layer::Handle layer(add_layer_to("PasteCanvas",get_canvas()));
+ Layer::Handle layer(add_layer_to("paste_canvas",get_canvas()));
if(!layer)
- throw String(_("Unable to create \"PasteCanvas\" layer"));
+ throw String(_("Unable to create \"Paste Canvas\" layer"));
if(!layer->set_param("canvas",ValueBase(outside_canvas)))
throw int();