X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fcanvas.h;h=a6474da9afbb902d93c77e582cbdb5fa748caa4a;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=cbed17decce309af17316257c6e596ec8678262d;hpb=b054a4463e94169b6d119191000b8485cf7fa853;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/canvas.h b/synfig-core/trunk/src/synfig/canvas.h index cbed17d..a6474da 100644 --- a/synfig-core/trunk/src/synfig/canvas.h +++ b/synfig-core/trunk/src/synfig/canvas.h @@ -91,9 +91,19 @@ * * Added "offset", "scale", and "fixed_length" links to the * "BLine Tangent" ValueNode. + * + * 0.6: svn r2067 + * + * 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 r2315 + * + * Added "loop" link to the "Random" ValueNode in svn r2315. */ -#define CURRENT_CANVAS_VERSION "0.5" +#define CURRENT_CANVAS_VERSION "0.7" /* === T Y P E D E F S ===================================================== */ @@ -463,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 &); @@ -535,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);