X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Finstance.h;h=4c23d38f6d25e0ebab2cb83df0375266dd4f70d8;hb=e94afbea92edb78826bff981ddc84b0757b2550f;hp=9f1c193d3606f7ef5b73e75fccc61c91a62e544a;hpb=837b63e9fb829d66d43f4f169861f8979f76820d;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/instance.h b/synfig-studio/trunk/src/gtkmm/instance.h index 9f1c193..4c23d38 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.h +++ b/synfig-studio/trunk/src/gtkmm/instance.h @@ -37,6 +37,7 @@ #include /* === M A C R O S ========================================================= */ +#define DEFAULT_FILENAME_PREFIX _("Synfig Animation ") // will be followed by a different number for each document /* === T Y P E D E F S ===================================================== */ @@ -54,6 +55,13 @@ class Instance : public synfigapp::Instance public: typedef std::list< etl::handle > CanvasViewList; + enum Status + { + STATUS_OK, + STATUS_ERROR, + STATUS_CANCEL + }; + class CanvasTreeModel : public Gtk::TreeModel::ColumnRecord { public: @@ -167,14 +175,13 @@ public: const CanvasViewList & canvas_view_list()const { return canvas_view_list_; } - bool save_as(const synfig::String &filename)const; - bool save_as(const synfig::String &filename); //! Opens a "Save As" dialog, and then saves the composition to that file - void dialog_save_as(); + //! returns true if the save was successful + bool dialog_save_as(); - bool save(); + Status save(); void dialog_cvs_commit();