1 /* === S Y N F I G ========================================================= */
2 /*! \file metadatatreestore.h
3 ** \brief Template Header
5 ** $Id: metadatatreestore.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SYNFIG_STUDIO_METADATATREESTORE_H
25 #define __SYNFIG_STUDIO_METADATATREESTORE_H
27 /* === H E A D E R S ======================================================= */
29 #include <gtkmm/treestore.h>
30 #include <synfigapp/canvasinterface.h>
31 #include <gdkmm/pixbuf.h>
32 #include <synfigapp/action.h>
34 /* === M A C R O S ========================================================= */
36 /* === T Y P E D E F S ===================================================== */
38 /* === C L A S S E S & S T R U C T S ======================================= */
40 namespace synfigapp { class CanvasInterface; }
44 class MetaDataTreeStore : virtual public Gtk::TreeStore
47 -- ** -- P U B L I C T Y P E S ---------------------------------------------
52 class Model : public Gtk::TreeModel::ColumnRecord
56 Gtk::TreeModelColumn<Glib::ustring> key;
57 Gtk::TreeModelColumn<Glib::ustring> data;
67 -- ** -- P U B L I C D A T A ------------------------------------------------
75 -- ** -- P R I V A T E D A T A ---------------------------------------------
80 etl::loose_handle<synfigapp::CanvasInterface> canvas_interface_;
83 -- ** -- P R I V A T E M E T H O D S ---------------------------------------
89 -- ** -- S I G N A L T E R M I N A L S -------------------------------------
94 void meta_data_changed(synfig::String key);
97 -- ** -- P U B L I C M E T H O D S -----------------------------------------
102 ~MetaDataTreeStore();
104 etl::loose_handle<synfigapp::CanvasInterface> get_canvas_interface() { return canvas_interface_; }
105 etl::loose_handle<const synfigapp::CanvasInterface> get_canvas_interface()const { return canvas_interface_; }
106 synfig::Canvas::Handle get_canvas()const { return canvas_interface_->get_canvas(); }
107 synfig::Canvas::Handle get_canvas() { return canvas_interface_->get_canvas(); }
111 void refresh() { rebuild(); }
114 -- ** -- P R O T E C T E D M E T H O D S -----------------------------------
118 MetaDataTreeStore(etl::loose_handle<synfigapp::CanvasInterface>);
119 void get_value_vfunc (const Gtk::TreeModel::iterator& iter, int column, Glib::ValueBase& value)const;
120 void set_value_impl(const Gtk::TreeModel::iterator& iter, int column, const Glib::ValueBase& value);
124 static Glib::RefPtr<MetaDataTreeStore> create(etl::loose_handle<synfigapp::CanvasInterface>);
126 }; // END of class MetaDataTreeStore
128 }; // END of namespace studio
130 /* === E N D =============================================================== */