X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fsrc%2Fgtkmm%2Fwidget_keyframe_list.h;fp=synfig-studio%2Fsrc%2Fgtkmm%2Fwidget_keyframe_list.h;h=0000000000000000000000000000000000000000;hb=254e11cc9af58ba7978466da54cbebf69096eb91;hp=1e41770bfb271d1353e8024923ce725a53860e2b;hpb=c11c4966980ed301f40b3dcc24e4fbec525f93e3;p=synfig.git diff --git a/synfig-studio/src/gtkmm/widget_keyframe_list.h b/synfig-studio/src/gtkmm/widget_keyframe_list.h deleted file mode 100644 index 1e41770..0000000 --- a/synfig-studio/src/gtkmm/widget_keyframe_list.h +++ /dev/null @@ -1,150 +0,0 @@ -/* === S Y N F I G ========================================================= */ -/*! \file widget_keyframe_list.h -** \brief A custom widget to manage keyframes in the timeline. -** -** $Id$ -** -** \legal -** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2009 Carlos López -** -** 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_WIDGET_KEYFRAME_LIST_H -#define __SYNFIG_STUDIO_WIDGET_KEYFRAME_LIST_H - -/* === H E A D E R S ======================================================= */ - -#include -#include -#include -#include -#include -#include - - -/* === 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 Widget_Keyframe_List : public Gtk::DrawingArea -{ - //! Tooltips class. It is deprecated since gtkmm 2.12 - //! replace with Tooltip class or use the own tooltip widget's members - Gtk::Tooltips tooltips; - - //! The canvas interface being watched - etl::loose_handle canvas_interface_; - - //! Time adjustment window - Gtk::Adjustment adj_default; - Gtk::Adjustment *adj_timescale; - - //!The list of keyframes to be drawn on the widget and moved with mouse - synfig::KeyframeList default_kf_list_; - mutable synfig::KeyframeList* kf_list_; - - //! The frames per second of the canvas - float fps; - - //! Time radius to click a keyframe - synfig::Time time_ratio; - - //!True if it is editable. Keyframes can be moved. - bool editable_; - - //!True if a keyframe is being dragged. - bool dragging_; - - //!True if a keyframe has been moved - bool changed_; - - //!Holds the selected keyframe of the keyframe list - synfig::Keyframe selected_kf; - synfig::Keyframe selected_none; - bool selected_; - - //!The time of the selected keyframe - synfig::Time selected_kf_time; - - //!The time of the selected keyframe during draging - synfig::Time dragging_kf_time; - - //!Connectors for handling the signals of the time adjustment - sigc::connection time_value_change; - sigc::connection time_other_change; - -public: - - //!Default constructor - Widget_Keyframe_List(); - - //!Destructror - ~Widget_Keyframe_List(); - - //!Loads a new keyframe list on the widget. - void set_kf_list(synfig::KeyframeList* x); - - //!Member for private data. - synfig::KeyframeList* get_kf_list()const { return kf_list_; } - - //!Member for private data - void set_editable(bool x=true) { editable_=x; } - - //!Member for private data - bool get_editable()const { return editable_; } - - - //!Store the selected keyframe value - void set_selected_keyframe(const synfig::Keyframe &x); - - //!Returns the selected keyframe - const synfig::Keyframe& get_selected_keyframe() { return selected_kf; } - - //! Set the time adjustment and proper connects its change signals - void set_time_adjustment(Gtk::Adjustment *x); - - //! Set the fps - void set_fps(float x); - - //! Set the canvas interface - void set_canvas_interface(etl::loose_handle h); - - //! Performs the keyframe movement. Returns true if it was sucessful - //! @return true: if success otherwise false - //! |delta=false: permorm normal move. true: perform delta movement - bool perform_move_kf(bool delta); - - - -/* ======================= EVENTS HANDLERS ===========================*/ - //!Redraw event. Should draw all the keyframes + the selected + the dragged - bool redraw(GdkEventExpose*bleh=NULL); - - //!Mouse event handler. - bool on_event(GdkEvent *event); -}; // END of class Keyframe_List - -}; // END of namespace studio - - -/* === E N D =============================================================== */ - -#endif