X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fchildrentree.h;h=5c709b6581afd8f298dddcd2286363b3b1bd1baf;hb=756c0d29ac1742f231e6615f9a577e574e35a4af;hp=40d68d10fbbcfe0c979ef4fc1ce34b88d38c33d4;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/childrentree.h b/synfig-studio/trunk/src/gtkmm/childrentree.h index 40d68d1..5c709b6 100644 --- a/synfig-studio/trunk/src/gtkmm/childrentree.h +++ b/synfig-studio/trunk/src/gtkmm/childrentree.h @@ -1,28 +1,30 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file childrentree.h ** \brief Template Header ** -** $Id: childrentree.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 +** Copyright (c) 2008 Chris Moore ** -** 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_CHILDRENTREE_H -#define __SINFG_STUDIO_CHILDRENTREE_H +#ifndef __SYNFIG_STUDIO_CHILDRENTREE_H +#define __SYNFIG_STUDIO_CHILDRENTREE_H /* === H E A D E R S ======================================================= */ @@ -35,10 +37,10 @@ #include #include -#include -#include +#include +#include #include "childrentreestore.h" -#include +#include #include "widget_value.h" @@ -68,9 +70,9 @@ public: */ public: - + ChildrenTreeStore::Model model; - + /* -- ** -- P R I V A T E D A T A --------------------------------------------- */ @@ -93,11 +95,11 @@ private: CellRenderer_ValueBase *cellrenderer_value; - sigc::signal signal_edited_value_; + sigc::signal signal_edited_value_; sigc::signal signal_user_click_; - sigc::signal signal_waypoint_clicked_; + sigc::signal >,int,synfig::Waypoint::Side> signal_waypoint_clicked_childrentree_; Gtk::Button *button_raise; Gtk::Button *button_lower; @@ -105,22 +107,22 @@ private: Gtk::Button *button_delete; Widget_ValueBase blend_method_widget; - + /* -- ** -- 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 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_waypoint_clicked(const Glib::ustring &, sinfg::Waypoint,int button); + void on_waypoint_clicked_childrentree(const etl::handle& node,const synfig::Time&,const synfig::Time&,int button,synfig::Waypoint::Side side); bool on_tree_event(GdkEvent *event); @@ -145,10 +147,10 @@ public: Gtk::HBox& get_hbox() { return *hbox; } Gtk::TreeView& get_tree_view() { return tree_view; } - + Glib::RefPtr get_selection() { return tree_view.get_selection(); } Glib::SignalProxy1< bool,GdkEvent* > signal_event () { return tree_view.signal_event(); } - + ChildrenTree(); ~ChildrenTree(); @@ -159,13 +161,13 @@ public: void set_show_timetrack(bool x=true); //! 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_user_click() { return signal_user_click_; } - sigc::signal& signal_waypoint_clicked() { return signal_waypoint_clicked_; } + sigc::signal >,int,synfig::Waypoint::Side>& signal_waypoint_clicked_childrentree() { return signal_waypoint_clicked_childrentree_; } - etl::handle get_selection_manager() { return children_tree_store_->canvas_interface()->get_selection_manager(); } + etl::handle get_selection_manager() { return children_tree_store_->canvas_interface()->get_selection_manager(); } }; // END of ChildrenTree