X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fcanvas.h;h=e3099488c56e672e8000e0dad17b774d8dcf1e34;hb=66bff9875e5cda32a5472a78f973254bc0963849;hp=76ea332a9667a3a7edfc8aeb8d47e066617af99d;hpb=6876a54bece1d54df8ae3d0c9899ad8fef053ef1;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/canvas.h b/synfig-core/trunk/src/synfig/canvas.h index 76ea332..e309948 100644 --- a/synfig-core/trunk/src/synfig/canvas.h +++ b/synfig-core/trunk/src/synfig/canvas.h @@ -97,9 +97,13 @@ * Added "scale" link to the "BLine Width" ValueNode in svn r1872. * * Added "loop" link to the "Gradient Color" ValueNode in svn r1901. + * + * 0.7: svn r2??? + * + * Added "loop" link to the "Random" ValueNode in svn r????. */ -#define CURRENT_CANVAS_VERSION "0.6" +#define CURRENT_CANVAS_VERSION "0.7" /* === T Y P E D E F S ===================================================== */ @@ -469,19 +473,19 @@ public: ** If not found, it creates a new Canvas and returns it ** If an error occurs, it returns an empty handle */ - Handle surefind_canvas(const String &id); + Handle surefind_canvas(const String &id,String &warnings); //! Finds a child Canvas in the Canvas with the given \a id /*! \return If found, returns a handle to the child Canvas. ** Otherwise, returns an empty handle. */ - Handle find_canvas(const String &id); + Handle find_canvas(const String &id, String &warnings); //! Finds a child Canvas in the Canvas with the given \a id /*! \return If found, returns a handle to the child Canvas. ** Otherwise, returns an empty handle. */ - ConstHandle find_canvas(const String &id)const; + ConstHandle find_canvas(const String &id, String &warnings)const; //! Sets the file path for the Canvas //void set_file_path(const String &); @@ -541,6 +545,12 @@ public: Handle clone(const GUID& deriv_guid=GUID())const; + void register_external_canvas(String file, Handle canvas); + +#ifdef _DEBUG + void show_externals(String file, int line, String text) const; +#endif // _DEBUG + private: void add_group_pair(String group, etl::handle layer); void remove_group_pair(String group, etl::handle layer);