X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Finstance.h;h=b7cc495fc3e188531c46d913f17a2b6c4613252b;hb=0412ed084660fbab6760d60e1432f8fc161fbc69;hp=ac9a76366df0bc4e20a97b4bc6fd2b16efea080b;hpb=ce408de81ca266b1f334ee9bc6c8fb7ba1492ed4;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/instance.h b/synfig-studio/trunk/src/gtkmm/instance.h index ac9a763..b7cc495 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.h +++ b/synfig-studio/trunk/src/gtkmm/instance.h @@ -1,8 +1,8 @@ /* === S Y N F I G ========================================================= */ -/*! \file instance.h +/*! \file gtkmm/instance.h ** \brief writeme ** -** $Id: instance.h,v 1.2 2005/01/13 18:37:30 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley @@ -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 ===================================================== */ @@ -47,7 +48,7 @@ namespace Gtk { class Menu; class ActionGroup; }; namespace studio { class CanvasView; - + class Instance : public synfigapp::Instance { @@ -75,7 +76,7 @@ public: Gtk::TreeModelColumn is_editable; Gtk::TreeModelColumn value_desc; - + CanvasTreeModel() { add(value); @@ -95,12 +96,12 @@ public: add(link_id); } } canvas_tree_model; - + private: sigc::signal signal_canvas_view_created_; sigc::signal signal_canvas_view_deleted_; - + sigc::signal signal_undo_redo_status_changed_; //! Tree containing the canvases -- used for the "canvas browser" @@ -117,7 +118,7 @@ private: //! List of canvas view windows CanvasViewList canvas_view_list_; - + bool undo_status_; bool redo_status_; @@ -144,7 +145,7 @@ public: bool get_redo_status()const { return redo_status_; } int get_visible_canvases()const; - + Glib::RefPtr canvas_tree_store() { return canvas_tree_store_; } Glib::RefPtr canvas_tree_store()const { return canvas_tree_store_; } @@ -157,22 +158,21 @@ public: static int get_count() { return instance_count_; } //etl::handle get_canvas()const { return synfigapp::Instance::get_canvas(); } - + etl::handle find_canvas_view(etl::handle canvas); //! Sets the focus to a specific canvas void focus(etl::handle canvas); CanvasViewList & canvas_view_list() { return canvas_view_list_; } - - const CanvasViewList & canvas_view_list()const { return canvas_view_list_; } - bool save_as(const synfig::String &filename)const; + const CanvasViewList & canvas_view_list()const { return canvas_view_list_; } 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(); @@ -183,16 +183,16 @@ public: void dialog_cvs_update(); void dialog_cvs_revert(); - + //! Closes the instance of this composition void close(); - + void revert(); - + void update_all_titles(); void refresh_canvas_tree(); - + bool safe_revert(); bool safe_close();