X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Flayertree.h;h=884cb36463805d6f0d64fde8622501d1fb3d32e7;hb=c17ff8c0593a678801a38e3dc400ace6bc57a4bb;hp=b0e0f989d91247c08384dc6ac4146f12f8a54e9a;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/layertree.h b/synfig-studio/trunk/src/gtkmm/layertree.h index b0e0f98..884cb36 100644 --- a/synfig-studio/trunk/src/gtkmm/layertree.h +++ b/synfig-studio/trunk/src/gtkmm/layertree.h @@ -1,28 +1,29 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file layertree.h ** \brief Template Header ** ** $Id: layertree.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $ ** ** \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_LAYERTREE_H -#define __SINFG_STUDIO_LAYERTREE_H +#ifndef __SYNFIG_STUDIO_LAYERTREE_H +#define __SYNFIG_STUDIO_LAYERTREE_H /* === H E A D E R S ======================================================= */ @@ -35,11 +36,11 @@ #include #include -#include -#include +#include +#include #include "layertreestore.h" #include "layerparamtreestore.h" -#include +#include #include "widget_value.h" @@ -74,7 +75,7 @@ public: COLUMNID_END //!< \internal }; */ - typedef std::list LayerList; + typedef std::list LayerList; /* -- ** -- P U B L I C D A T A ------------------------------------------------ @@ -87,7 +88,7 @@ public: LayerTreeStore::Model layer_model; LayerParamTreeStore::Model param_model; - sinfg::Layer::Handle last_top_selected_layer; + synfig::Layer::Handle last_top_selected_layer; Gtk::TreePath last_top_selected_path; /* @@ -113,7 +114,7 @@ private: Gtk::HScale *layer_amount_hscale; - sinfg::Layer::Handle quick_layer; + synfig::Layer::Handle quick_layer; Glib::RefPtr layer_tree_store_; @@ -129,15 +130,15 @@ private: CellRenderer_ValueBase *cellrenderer_value; - sigc::signal signal_layer_toggle_; + sigc::signal signal_layer_toggle_; - sigc::signal signal_edited_value_; + sigc::signal signal_edited_value_; sigc::signal signal_layer_user_click_; sigc::signal signal_param_user_click_; - sigc::signal signal_waypoint_clicked_; + sigc::signal signal_waypoint_clicked_; bool disable_amount_changed_signal; @@ -163,13 +164,15 @@ private: private: - void on_edited_value(const Glib::ustring&path_string,sinfg::ValueBase value); + void on_edited_value(const Glib::ustring&path_string,synfig::ValueBase value); + + void on_layer_renamed(const Glib::ustring&path_string,const Glib::ustring& value); void on_layer_toggle(const Glib::ustring& path_string); - void on_waypoint_clicked(const Glib::ustring &, sinfg::Waypoint, int button); + void on_waypoint_clicked(const Glib::ustring &, synfig::Waypoint, int button); - void on_waypoint_changed( sinfg::Waypoint waypoint , sinfg::ValueNode::Handle value_node); + void on_waypoint_changed( synfig::Waypoint waypoint , synfig::ValueNode::Handle value_node); bool on_layer_tree_event(GdkEvent *event); @@ -222,27 +225,27 @@ public: void set_show_timetrack(bool x=true); //! Signal called when layer is toggled. - sigc::signal& signal_layer_toggle() { return signal_layer_toggle_; } + sigc::signal& signal_layer_toggle() { return signal_layer_toggle_; } //! Signal called with a value has been edited. - sigc::signal& signal_edited_value() { return signal_edited_value_; } + sigc::signal& signal_edited_value() { return signal_edited_value_; } sigc::signal& signal_layer_user_click() { return signal_layer_user_click_; } sigc::signal& signal_param_user_click() { return signal_param_user_click_; } - sigc::signal& signal_waypoint_clicked() { return signal_waypoint_clicked_; } + sigc::signal& signal_waypoint_clicked() { return signal_waypoint_clicked_; } - etl::handle get_selection_manager() { return layer_tree_store_->canvas_interface()->get_selection_manager(); } + etl::handle get_selection_manager() { return layer_tree_store_->canvas_interface()->get_selection_manager(); } - void select_layer(sinfg::Layer::Handle layer); + void select_layer(synfig::Layer::Handle layer); void select_layers(const LayerList& layer_list); - void select_all_children_layers(sinfg::Layer::Handle layer); + void select_all_children_layers(synfig::Layer::Handle layer); void select_all_children(Gtk::TreeModel::Children::iterator iter); LayerList get_selected_layers()const; - sinfg::Layer::Handle get_selected_layer()const; + synfig::Layer::Handle get_selected_layer()const; void clear_selected_layers(); }; // END of LayerTree