X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-studio%2Ftags%2Fstable%2Fsrc%2Fgtkmm%2Fkeyframetreestore.h;h=75caf83af4f2fa39d15206cf1a267ce7a8317859;hb=a42ee14a3397a3fbb31d14e6eece4236620ae2db;hp=b0b975471ae6a00c447b78d34fd5ff7d34e5d5bd;hpb=7c6d5426922cb3cda793f688dcd4d534b02765c8;p=synfig.git diff --git a/synfig-studio/tags/stable/src/gtkmm/keyframetreestore.h b/synfig-studio/tags/stable/src/gtkmm/keyframetreestore.h index b0b9754..75caf83 100644 --- a/synfig-studio/tags/stable/src/gtkmm/keyframetreestore.h +++ b/synfig-studio/tags/stable/src/gtkmm/keyframetreestore.h @@ -1,35 +1,36 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file keyframetreestore.h ** \brief Template Header ** -** $Id: keyframetreestore.h,v 1.1.1.1 2005/01/07 03:34:36 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 */ /* ========================================================================= */ /* === S T A R T =========================================================== */ -#ifndef __SINFG_STUDIO_KEYFRAMETREESTORE_H -#define __SINFG_STUDIO_KEYFRAMETREESTORE_H +#ifndef __SYNFIG_STUDIO_KEYFRAMETREESTORE_H +#define __SYNFIG_STUDIO_KEYFRAMETREESTORE_H /* === H E A D E R S ======================================================= */ #include -#include +#include #include -#include +#include #include /* === M A C R O S ========================================================= */ @@ -44,7 +45,7 @@ namespace studio { class KeyframeTreeStore_Class; - + class KeyframeTreeStore : public Glib::Object, public Gtk::TreeModel, @@ -60,11 +61,11 @@ public: class Model : public Gtk::TreeModel::ColumnRecord { public: - Gtk::TreeModelColumn time; + Gtk::TreeModelColumn time; Gtk::TreeModelColumn description; - Gtk::TreeModelColumn keyframe; - Gtk::TreeModelColumn time_delta; - + Gtk::TreeModelColumn keyframe; + Gtk::TreeModelColumn time_delta; + Model() { add(time); @@ -79,7 +80,7 @@ public: */ public: - + const Model model; /* @@ -88,16 +89,16 @@ public: private: - etl::loose_handle canvas_interface_; + etl::loose_handle canvas_interface_; //! Unique stamp for this TreeModel. int stamp_; - + static KeyframeTreeStore_Class keyframe_tree_store_class_; - //std::map path_table_; + //std::map path_table_; - sinfg::KeyframeList old_keyframe_list; + synfig::KeyframeList old_keyframe_list; /* -- ** -- P R I V A T E M E T H O D S --------------------------------------- @@ -105,11 +106,11 @@ private: private: - void add_keyframe(sinfg::Keyframe); + void add_keyframe(synfig::Keyframe); - void remove_keyframe(sinfg::Keyframe); + void remove_keyframe(synfig::Keyframe); - void change_keyframe(sinfg::Keyframe); + void change_keyframe(synfig::Keyframe); static int sorter(const Gtk::TreeModel::iterator &,const Gtk::TreeModel::iterator &); @@ -126,7 +127,7 @@ private: ** constructed or when large numbers of ** iterators become invalid. */ void reset_stamp(); - + //void reset_path_table(); /* @@ -134,7 +135,7 @@ private: */ protected: - + virtual void set_value_impl (const Gtk::TreeModel::iterator& row, int column, const Glib::ValueBase& value); virtual Gtk::TreeModelFlags get_flags_vfunc (); virtual int get_n_columns_vfunc (); @@ -162,7 +163,7 @@ protected: virtual void set_default_sort_func_vfunc (GtkTreeIterCompareFunc func, void* data, GtkDestroyNotify destroy); virtual bool has_default_sort_func_vfunc (); */ - + /* -- ** -- S I G N A L T E R M I N A L S ------------------------------------- */ @@ -174,17 +175,17 @@ private: */ public: - - KeyframeTreeStore(etl::loose_handle canvas_interface_); + + KeyframeTreeStore(etl::loose_handle canvas_interface_); ~KeyframeTreeStore(); - etl::loose_handle canvas_interface() { return canvas_interface_; } - etl::loose_handle canvas_interface()const { return canvas_interface_; } - - sinfg::Canvas::Handle get_canvas() { return canvas_interface()->get_canvas(); } - sinfg::Canvas::Handle get_canvas()const { return canvas_interface()->get_canvas(); } + etl::loose_handle canvas_interface() { return canvas_interface_; } + etl::loose_handle canvas_interface()const { return canvas_interface_; } + + synfig::Canvas::Handle get_canvas() { return canvas_interface()->get_canvas(); } + synfig::Canvas::Handle get_canvas()const { return canvas_interface()->get_canvas(); } - Gtk::TreeModel::Row find_row(const sinfg::Keyframe &keyframe); + Gtk::TreeModel::Row find_row(const synfig::Keyframe &keyframe); /* -- ** -- S T A T I C M E T H O D S ------------------------------------------ @@ -192,7 +193,7 @@ public: public: - static Glib::RefPtr create(etl::loose_handle canvas_interface_); + static Glib::RefPtr create(etl::loose_handle canvas_interface_); static int time_sorter(const Gtk::TreeModel::iterator &rhs,const Gtk::TreeModel::iterator &lhs); @@ -206,11 +207,11 @@ public: { GObjectClass parent_class; }; - + friend class KeyframeTreeStore; - + const Glib::Class& init(); - + static void class_init_function(gpointer g_blass, gpointer class_data); }; // END of CustomTreeStore_Class