X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fchildrentree.h;fp=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fchildrentree.h;h=0000000000000000000000000000000000000000;hb=a095981e18cc37a8ecc7cd237cc22b9c10329264;hp=34a216fefd386a43c3d90473a6d8c3cfad3856f8;hpb=9459638ad6797b8139f1e9f0715c96076dbf0890;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/childrentree.h b/synfig-studio/trunk/src/gtkmm/childrentree.h deleted file mode 100644 index 34a216f..0000000 --- a/synfig-studio/trunk/src/gtkmm/childrentree.h +++ /dev/null @@ -1,178 +0,0 @@ -/* === S Y N F I G ========================================================= */ -/*! \file childrentree.h -** \brief Template Header -** -** $Id$ -** -** \legal -** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2008 Chris Moore -** -** 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. -** -** 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 __SYNFIG_STUDIO_CHILDRENTREE_H -#define __SYNFIG_STUDIO_CHILDRENTREE_H - -/* === H E A D E R S ======================================================= */ - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include "childrentreestore.h" -#include - -#include "widget_value.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 studio { - -class CellRenderer_TimeTrack; -class CellRenderer_ValueBase; - -class ChildrenTree : public Gtk::Table -{ - /* - -- ** -- P U B L I C T Y P E S --------------------------------------------- - */ - -public: - - typedef studio::ColumnID ColumnID; - - /* - -- ** -- P U B L I C D A T A ------------------------------------------------ - */ - -public: - - ChildrenTreeStore::Model model; - - /* - -- ** -- P R I V A T E D A T A --------------------------------------------- - */ - -private: - - Gtk::Tooltips tooltips_; - - Gtk::TreePath last_tooltip_path; - - Gtk::TreeView tree_view; - - Gtk::HBox *hbox; - - Glib::RefPtr children_tree_store_; - - CellRenderer_TimeTrack *cellrenderer_time_track; - - Gtk::TreeView::Column* column_time_track; - - CellRenderer_ValueBase *cellrenderer_value; - - sigc::signal signal_edited_value_; - - sigc::signal signal_user_click_; - - sigc::signal >,int> signal_waypoint_clicked_childrentree_; - - Gtk::Button *button_raise; - Gtk::Button *button_lower; - Gtk::Button *button_duplicate; - 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,synfig::ValueBase value); - - void on_waypoint_clicked_childrentree(const etl::handle& node,const synfig::Time&,const synfig::Time&,int button); - - bool on_tree_event(GdkEvent *event); - - void on_selection_changed(); - - void on_dirty_preview(); - - void on_raise_pressed(); - - void on_lower_pressed(); - - void on_duplicate_pressed(); - - void on_delete_pressed(); - - /* - -- ** -- P U B L I C M E T H O D S ----------------------------------------- - */ - -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(); - - void set_model(Glib::RefPtr children_tree_store_); - - void set_time_adjustment(Gtk::Adjustment &adjustment); - - 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_user_click() { return signal_user_click_; } - - sigc::signal >,int>& signal_waypoint_clicked_childrentree() { return signal_waypoint_clicked_childrentree_; } - - etl::handle get_selection_manager() { return children_tree_store_->canvas_interface()->get_selection_manager(); } - -}; // END of ChildrenTree - -}; // END of namespace studio - -/* === E N D =============================================================== */ - -#endif