27 #ifndef __SYNFIG_STUDIO_INSTANCE_H
28 #define __SYNFIG_STUDIO_INSTANCE_H
33 #include <gtkmm/treeview.h>
34 #include <gtkmm/treestore.h>
36 #include <sigc++/object.h>
39 #include <synfig/canvas.h>
42 #define DEFAULT_FILENAME_PREFIX _("Synfig Animation ") // will be followed by a different number for each document
48 namespace Gtk {
class Menu;
class ActionGroup; };
70 Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> >
icon;
71 Gtk::TreeModelColumn<Glib::ustring>
label;
72 Gtk::TreeModelColumn<Glib::ustring>
name;
73 Gtk::TreeModelColumn<Glib::ustring>
id;
75 Gtk::TreeModelColumn<synfig::Canvas::Handle>
canvas;
78 Gtk::TreeModelColumn<synfig::ValueNode::Handle>
value_node;
80 Gtk::TreeModelColumn<synfig::ValueBase>
value;
81 Gtk::TreeModelColumn<Glib::ustring>
type;
111 sigc::signal<void,CanvasView*> signal_canvas_view_created_;
112 sigc::signal<void,CanvasView*> signal_canvas_view_deleted_;
114 sigc::signal<void> signal_undo_redo_status_changed_;
117 Glib::RefPtr<Gtk::TreeStore> canvas_tree_store_;
120 Glib::RefPtr<HistoryTreeStore> history_tree_store_;
126 static int instance_count_;
134 void set_undo_status(
bool x);
135 void set_redo_status(
bool x);
169 etl::handle<CanvasView>
find_canvas_view(etl::handle<synfig::Canvas> canvas);
172 void focus(etl::handle<synfig::Canvas> canvas);
180 bool save_as(
const synfig::String &filename);