X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Fcanvasinterface.h;h=5bb3ec0e3124250bad6892fb0eb9ef0d733bc7c9;hb=1e706e54c01cd6baae01b1199c8997c48345ed8c;hp=38643ac529797c976bed874cc85dd6e1c1e2bb0f;hpb=c34eaa5441242b3e9a7b7645e9ee4983d14eae85;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/canvasinterface.h b/synfig-studio/trunk/src/synfigapp/canvasinterface.h index 38643ac..5bb3ec0 100644 --- a/synfig-studio/trunk/src/synfigapp/canvasinterface.h +++ b/synfig-studio/trunk/src/synfigapp/canvasinterface.h @@ -2,10 +2,11 @@ /*! \file canvasinterface.h ** \brief Template Header ** -** $Id: canvasinterface.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007, 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -85,7 +86,6 @@ private: sigc::signal signal_value_node_added_; sigc::signal signal_value_node_deleted_; - sigc::signal signal_value_node_changed_; sigc::signal signal_value_node_replaced_; sigc::signal signal_keyframe_added_; @@ -151,7 +151,9 @@ public: // Signal Interface //! Signal called when a ValueNode has been changed sigc::signal >& signal_value_node_changed() { return get_canvas()->signal_value_node_changed(); } - //sigc::signal >& signal_value_node_changed() { return signal_value_node_changed_; } + + //! Signal called when a ValueNode has been renamed + sigc::signal >& signal_value_node_renamed() { return get_canvas()->signal_value_node_renamed(); } //! Signal called when the mode has changed sigc::signal signal_mode_changed() { return signal_mode_changed_; } @@ -209,21 +211,21 @@ public: etl::loose_handle get_instance()const { return instance_; } //! Changes the name of the canvas. Undoable. - bool set_name(const synfig::String &x); + void set_name(const synfig::String &x); //! Changes the description of the canvas. Undoable. - bool set_description(const synfig::String &x); + void set_description(const synfig::String &x); //! Changes the ID of the canvas. Undoable. - bool set_id(const synfig::String &x); + void set_id(const synfig::String &x); - //! Convience function to retrieve the name of the canvas + //! Convenience function to retrieve the name of the canvas synfig::String get_name()const { return get_canvas()->get_name(); } - //! Convience function to retrieve the description of the canvas + //! Convenience function to retrieve the description of the canvas synfig::String get_description()const { return get_canvas()->get_description(); } - //! Convience function to retrieve the ID of the canvas + //! Convenience function to retrieve the ID of the canvas synfig::String get_id()const { return get_canvas()->get_id(); } //! Sets the current time @@ -254,7 +256,7 @@ public: Mode get_mode()const; //! Creates a new layer, of type \c id at the top of the layer stack - synfig::Layer::Handle add_layer(synfig::String id) { return add_layer_to(id,get_canvas()); } + // synfig::Layer::Handle add_layer(synfig::String id) { return add_layer_to(id,get_canvas()); } synfig::Layer::Handle add_layer_to(synfig::String id,synfig::Canvas::Handle canvas, int depth=0); @@ -269,12 +271,14 @@ public: void set_rend_desc(const synfig::RendDesc &rend_desc); - bool import(const synfig::String &filename, bool copy=false); + bool import(const synfig::String &filename, synfig::String &errors, synfig::String &warnings, bool resize_image=false); void waypoint_duplicate(synfigapp::ValueDesc value_desc,synfig::Waypoint waypoint); + void waypoint_duplicate(synfig::ValueNode::Handle value_node,synfig::Waypoint waypoint); void waypoint_remove(synfigapp::ValueDesc value_desc,synfig::Waypoint waypoint); + void waypoint_remove(synfig::ValueNode::Handle value_node,synfig::Waypoint waypoint); bool change_value(synfigapp::ValueDesc value_desc,synfig::ValueBase new_value);