X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fkeyframetreestore.h;h=c3efccf7e5e8c08a6deebaa6ca2d87d1198410ad;hb=756c0d29ac1742f231e6615f9a577e574e35a4af;hp=758c8d5191d6492c686ba266e3a0eeadfb429463;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/keyframetreestore.h b/synfig-studio/trunk/src/gtkmm/keyframetreestore.h index 758c8d5..c3efccf 100644 --- a/synfig-studio/trunk/src/gtkmm/keyframetreestore.h +++ b/synfig-studio/trunk/src/gtkmm/keyframetreestore.h @@ -2,19 +2,21 @@ /*! \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 +** Copyright (c) 2008 Chris Moore ** -** 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 */ /* ========================================================================= */ @@ -44,7 +46,7 @@ namespace studio { class KeyframeTreeStore_Class; - + class KeyframeTreeStore : public Glib::Object, public Gtk::TreeModel, @@ -64,7 +66,7 @@ public: Gtk::TreeModelColumn description; Gtk::TreeModelColumn keyframe; Gtk::TreeModelColumn time_delta; - + Model() { add(time); @@ -79,7 +81,7 @@ public: */ public: - + const Model model; /* @@ -92,7 +94,7 @@ private: //! Unique stamp for this TreeModel. int stamp_; - + static KeyframeTreeStore_Class keyframe_tree_store_class_; //std::map path_table_; @@ -126,7 +128,7 @@ private: ** constructed or when large numbers of ** iterators become invalid. */ void reset_stamp(); - + //void reset_path_table(); /* @@ -134,7 +136,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 +164,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,13 +176,13 @@ private: */ public: - + KeyframeTreeStore(etl::loose_handle canvas_interface_); ~KeyframeTreeStore(); 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(); } @@ -195,6 +197,7 @@ public: static Glib::RefPtr create(etl::loose_handle canvas_interface_); static int time_sorter(const Gtk::TreeModel::iterator &rhs,const Gtk::TreeModel::iterator &lhs); + static int description_sorter(const Gtk::TreeModel::iterator &rhs,const Gtk::TreeModel::iterator &lhs); }; // END of class KeyframeTreeStore @@ -206,11 +209,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