X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Floadcanvas.h;h=dc665c2036e76a3fbd458344c45ea4b2cc616bad;hb=4ba22fb51d97f1ecce04dcc5e40569a4354c1bae;hp=be093fe41dcac190589bdfadd6d8ee1727fcaf8f;hpb=6c6dde907eadafe73e401781fd2ffb6c6223ec85;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/loadcanvas.h b/synfig-core/trunk/src/synfig/loadcanvas.h index be093fe..dc665c2 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.h +++ b/synfig-core/trunk/src/synfig/loadcanvas.h @@ -74,6 +74,7 @@ private: String path; String errors_text; + String warnings_text; GUID guid_; @@ -116,12 +117,18 @@ public: const synfig::String& get_path()const { return path; } const synfig::String& get_errors_text()const { return errors_text; } + const synfig::String& get_warnings_text()const { return warnings_text; } + + static void register_canvas_in_map(Canvas::Handle canvas, String as); + +#ifdef _DEBUG + static void show_canvas_map(String file, int line, String text); +#endif // _DEBUG //! \todo writeme Canvas::Handle parse_from_file_as(const String &filename,const String &as,String &errors); - //! \todo writeme - Canvas::Handle parse_from_string(const String &data); + static std::set loading_; private: @@ -171,11 +178,8 @@ private: //! Loads a canvas from \a filename /*! \return The Canvas's handle on success, an empty handle on failure */ -extern Canvas::Handle open_canvas(const String &filename,String &errors); -extern Canvas::Handle open_canvas_as(const String &filename,const String &as,String &errors); - -//! Retrieves a Canvas from a string in XML format -extern Canvas::Handle string_to_canvas(const String &data); +extern Canvas::Handle open_canvas(const String &filename,String &errors,String &warnings); +extern Canvas::Handle open_canvas_as(const String &filename,const String &as,String &errors,String &warnings); std::map >& get_open_canvas_map();