/*! \file childrentreestore.h
** \brief Template Header
**
-** $Id: childrentreestore.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
*/
/* ========================================================================= */
*/
public:
-
+
//! TreeModel for the layers
const Model model;
*/
private:
-
+
Gtk::TreeModel::Row value_node_row;
Gtk::TreeModel::Row canvas_row;
-
+
std::set<synfig::ValueNode::Handle> changed_set_;
std::set<synfig::ValueNode::Handle> replaced_set_;
-
+
/*
-- ** -- P R I V A T E M E T H O D S ---------------------------------------
*/
private:
-
+
sigc::connection changed_connection;
bool execute_changed_queued()const { return !changed_set_.empty() || !replaced_set_.empty(); }
bool execute_changed_value_nodes();
void clear_changed_queue() { changed_set_.clear(); replaced_set_.clear(); }
-
+
/*
-- ** -- S I G N A L T E R M I N A L S -------------------------------------
*/
*/
public:
-
+
ChildrenTreeStore(etl::loose_handle<synfigapp::CanvasInterface> canvas_interface_);
~ChildrenTreeStore();
void refresh_row(Gtk::TreeModel::Row &row, bool do_children=false);
Gtk::TreeModel::Row get_canvas_row()const { return canvas_row; }
-
+
Gtk::TreeModel::Row get_value_node_row()const { return value_node_row; }
/*
*/
public:
-
+
static Glib::RefPtr<ChildrenTreeStore> create(etl::loose_handle<synfigapp::CanvasInterface> canvas_interface_);
}; // END of class ChildrenTreeStore