X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Finstance.h;h=9f1c193d3606f7ef5b73e75fccc61c91a62e544a;hb=c9f12a26fe0844b04e035fe01f32c4dd8b86f237;hp=374c7e48164208273825dd28b29b4b5f7c4d378a;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/instance.h b/synfig-studio/trunk/src/gtkmm/instance.h index 374c7e4..9f1c193 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.h +++ b/synfig-studio/trunk/src/gtkmm/instance.h @@ -1,20 +1,21 @@ /* === 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 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -46,7 +47,7 @@ namespace Gtk { class Menu; class ActionGroup; }; namespace studio { class CanvasView; - + class Instance : public synfigapp::Instance { @@ -74,7 +75,7 @@ public: Gtk::TreeModelColumn is_editable; Gtk::TreeModelColumn value_desc; - + CanvasTreeModel() { add(value); @@ -94,12 +95,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" @@ -116,7 +117,7 @@ private: //! List of canvas view windows CanvasViewList canvas_view_list_; - + bool undo_status_; bool redo_status_; @@ -143,7 +144,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_; } @@ -156,14 +157,14 @@ 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; @@ -182,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();