Only use gamma correction on R,G,B & Y, and only when it's turned on!
[synfig.git] / synfig-studio / trunk / src / gtkmm / instance.h
index 9f1c193..4c23d38 100644 (file)
@@ -37,6 +37,7 @@
 #include <synfig/canvas.h>
 
 /* === 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<CanvasView> > 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();