--- /dev/null
+/* === S I N F G =========================================================== */
+/*! \file metadatatreestore.h
+** \brief Template Header
+**
+** $Id: metadatatreestore.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
+**
+** \legal
+** Copyright (c) 2002 Robert B. Quattlebaum Jr.
+**
+** This software and associated documentation
+** are CONFIDENTIAL and PROPRIETARY property of
+** the above-mentioned copyright holder.
+**
+** You may not copy, print, publish, or in any
+** other way distribute this software without
+** a prior written agreement with
+** the copyright holder.
+** \endlegal
+*/
+/* ========================================================================= */
+
+/* === S T A R T =========================================================== */
+
+#ifndef __SINFG_STUDIO_METADATATREESTORE_H
+#define __SINFG_STUDIO_METADATATREESTORE_H
+
+/* === H E A D E R S ======================================================= */
+
+#include <gtkmm/treestore.h>
+#include <sinfgapp/canvasinterface.h>
+#include <gdkmm/pixbuf.h>
+#include <sinfgapp/action.h>
+
+/* === M A C R O S ========================================================= */
+
+/* === T Y P E D E F S ===================================================== */
+
+/* === C L A S S E S & S T R U C T S ======================================= */
+
+namespace sinfgapp { class CanvasInterface; }
+
+namespace studio {
+
+class MetaDataTreeStore : virtual public Gtk::TreeStore
+{
+ /*
+ -- ** -- P U B L I C T Y P E S ---------------------------------------------
+ */
+
+public:
+
+ class Model : public Gtk::TreeModel::ColumnRecord
+ {
+ public:
+ public:
+ Gtk::TreeModelColumn<Glib::ustring> key;
+ Gtk::TreeModelColumn<Glib::ustring> data;
+
+ Model()
+ {
+ add(key);
+ add(data);
+ }
+ };
+
+ /*
+ -- ** -- P U B L I C D A T A ------------------------------------------------
+ */
+
+public:
+
+ const Model model;
+
+ /*
+ -- ** -- P R I V A T E D A T A ---------------------------------------------
+ */
+
+private:
+
+ etl::loose_handle<sinfgapp::CanvasInterface> canvas_interface_;
+
+ /*
+ -- ** -- P R I V A T E M E T H O D S ---------------------------------------
+ */
+
+private:
+
+ /*
+ -- ** -- S I G N A L T E R M I N A L S -------------------------------------
+ */
+
+private:
+
+ void meta_data_changed(sinfg::String key);
+
+ /*
+ -- ** -- P U B L I C M E T H O D S -----------------------------------------
+ */
+
+public:
+
+ ~MetaDataTreeStore();
+
+ etl::loose_handle<sinfgapp::CanvasInterface> get_canvas_interface() { return canvas_interface_; }
+ etl::loose_handle<const sinfgapp::CanvasInterface> get_canvas_interface()const { return canvas_interface_; }
+ sinfg::Canvas::Handle get_canvas()const { return canvas_interface_->get_canvas(); }
+ sinfg::Canvas::Handle get_canvas() { return canvas_interface_->get_canvas(); }
+
+ void rebuild();
+
+ void refresh() { rebuild(); }
+
+ /*
+ -- ** -- P R O T E C T E D M E T H O D S -----------------------------------
+ */
+
+protected:
+ MetaDataTreeStore(etl::loose_handle<sinfgapp::CanvasInterface>);
+ void get_value_vfunc (const Gtk::TreeModel::iterator& iter, int column, Glib::ValueBase& value)const;
+ void set_value_impl(const Gtk::TreeModel::iterator& iter, int column, const Glib::ValueBase& value);
+
+public:
+
+ static Glib::RefPtr<MetaDataTreeStore> create(etl::loose_handle<sinfgapp::CanvasInterface>);
+
+}; // END of class MetaDataTreeStore
+
+}; // END of namespace studio
+
+/* === E N D =============================================================== */
+
+#endif