X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Flayergrouptreestore.h;h=cd0c196a3557613a3ccb0fe381dcc86869447ddd;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=dfd83a7d5c69610ccac22f208060d44fa3c1e726;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/layergrouptreestore.h b/synfig-studio/trunk/src/gtkmm/layergrouptreestore.h index dfd83a7..cd0c196 100644 --- a/synfig-studio/trunk/src/gtkmm/layergrouptreestore.h +++ b/synfig-studio/trunk/src/gtkmm/layergrouptreestore.h @@ -1,35 +1,36 @@ -/* === S I N F G =========================================================== */ -/*! \file layertreestore.h +/* === S Y N F I G ========================================================= */ +/*! \file layergrouptreestore.h ** \brief Template Header ** -** $Id: layergrouptreestore.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_LAYERGROUPTREESTORE_H -#define __SINFG_STUDIO_LAYERGROUPTREESTORE_H +#ifndef __SYNFIG_STUDIO_LAYERGROUPTREESTORE_H +#define __SYNFIG_STUDIO_LAYERGROUPTREESTORE_H /* === H E A D E R S ======================================================= */ #include -#include -#include -#include +#include +#include +#include #include /* === M A C R O S ========================================================= */ @@ -47,7 +48,7 @@ class LayerGroupTreeStore : public Gtk::TreeStore */ public: - typedef std::list LayerList; + typedef std::list LayerList; class Model : public Gtk::TreeModel::ColumnRecord { @@ -55,20 +56,20 @@ public: Gtk::TreeModelColumn > icon; Gtk::TreeModelColumn label; Gtk::TreeModelColumn tooltip; - + Gtk::TreeModelColumn group_name; Gtk::TreeModelColumn parent_group_name; - Gtk::TreeModelColumn canvas; + Gtk::TreeModelColumn canvas; Gtk::TreeModelColumn active; Gtk::TreeModelColumn is_layer; Gtk::TreeModelColumn is_group; - Gtk::TreeModelColumn layer; - + Gtk::TreeModelColumn layer; + Gtk::TreeModelColumn all_layers; Gtk::TreeModelColumn child_layers; - + Model() { add(icon); @@ -91,10 +92,10 @@ public: */ public: - + //! TreeModel for the layers const Model model; - + bool rebuilding; /* @@ -103,7 +104,7 @@ public: private: - etl::loose_handle canvas_interface_; + etl::loose_handle canvas_interface_; Glib::RefPtr layer_icon; Glib::RefPtr group_icon; @@ -130,8 +131,8 @@ private: virtual bool row_drop_possible_vfunc (const TreeModel::Path& dest, const Gtk::SelectionData& selection_data)const; - void on_group_pair_added(sinfg::String group, etl::handle layer); - void on_group_pair_removed(sinfg::String group, etl::handle layer); + void on_group_pair_added(synfig::String group, etl::handle layer); + void on_group_pair_removed(synfig::String group, etl::handle layer); void on_activity(); @@ -143,36 +144,36 @@ private: bool on_layer_tree_event(GdkEvent *event); - void on_layer_new_description(sinfg::Layer::Handle handle,sinfg::String desc); + void on_layer_new_description(synfig::Layer::Handle handle,synfig::String desc); - void on_layer_status_changed(sinfg::Layer::Handle handle,bool); + void on_layer_status_changed(synfig::Layer::Handle handle,bool); - bool find_layer_row_(const sinfg::Layer::Handle &handle, sinfg::Canvas::Handle canvas, Gtk::TreeModel::Children layers, Gtk::TreeModel::Children::iterator &iter, Gtk::TreeModel::Children::iterator &prev); + bool find_layer_row_(const synfig::Layer::Handle &handle, synfig::Canvas::Handle canvas, Gtk::TreeModel::Children layers, Gtk::TreeModel::Children::iterator &iter, Gtk::TreeModel::Children::iterator &prev); - bool find_group_row_(const sinfg::String &group, Gtk::TreeModel::Children layers, Gtk::TreeModel::Children::iterator &iter, Gtk::TreeModel::Children::iterator &prev); + bool find_group_row_(const synfig::String &group, Gtk::TreeModel::Children layers, Gtk::TreeModel::Children::iterator &iter, Gtk::TreeModel::Children::iterator &prev); - bool on_group_removed(sinfg::String group); - bool on_group_changed(sinfg::String group); + bool on_group_removed(synfig::String group); + bool on_group_changed(synfig::String group); /* -- ** -- P U B L I C M E T H O D S ----------------------------------------- */ public: - - LayerGroupTreeStore(etl::loose_handle canvas_interface_); + + LayerGroupTreeStore(etl::loose_handle canvas_interface_); ~LayerGroupTreeStore(); - Gtk::TreeRow on_group_added(sinfg::String group); - etl::loose_handle canvas_interface() { return canvas_interface_; } - etl::loose_handle canvas_interface()const { return canvas_interface_; } - etl::loose_handle get_canvas_interface()const { return canvas_interface_; } + Gtk::TreeRow on_group_added(synfig::String group); + etl::loose_handle canvas_interface() { return canvas_interface_; } + etl::loose_handle canvas_interface()const { return canvas_interface_; } + etl::loose_handle get_canvas_interface()const { return canvas_interface_; } - bool find_layer_row(const sinfg::Layer::Handle &handle, Gtk::TreeModel::Children::iterator &iter); + bool find_layer_row(const synfig::Layer::Handle &handle, Gtk::TreeModel::Children::iterator &iter); - bool find_group_row(const sinfg::String &group, Gtk::TreeModel::Children::iterator &iter); + bool find_group_row(const synfig::String &group, Gtk::TreeModel::Children::iterator &iter); - bool find_prev_layer_row(const sinfg::Layer::Handle &handle, Gtk::TreeModel::Children::iterator &iter); + bool find_prev_layer_row(const synfig::Layer::Handle &handle, Gtk::TreeModel::Children::iterator &iter); void rebuild(); @@ -180,7 +181,7 @@ public: void refresh_row(Gtk::TreeModel::Row &row); - void set_row_layer(Gtk::TreeRow &row,sinfg::Layer::Handle &handle); + void set_row_layer(Gtk::TreeRow &row,synfig::Layer::Handle &handle); static bool search_func(const Glib::RefPtr&,int,const Glib::ustring&,const TreeModel::iterator&); @@ -189,8 +190,8 @@ public: */ public: - - static Glib::RefPtr create(etl::loose_handle canvas_interface_); + + static Glib::RefPtr create(etl::loose_handle canvas_interface_); }; // END of class LayerGroupTreeStore