X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_keyframe_list.h;h=1e41770bfb271d1353e8024923ce725a53860e2b;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=8796beb07eaea9d4f2172e4ed88c9bea9bfb1a2c;hpb=dd3f7a1496c6ac179f17ca1d940cc4310333891e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.h b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.h index 8796beb..1e41770 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.h +++ b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.h @@ -30,8 +30,10 @@ #include #include +#include #include #include +#include /* === M A C R O S ========================================================= */ @@ -44,6 +46,13 @@ 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; @@ -55,6 +64,9 @@ class Widget_Keyframe_List : public Gtk::DrawingArea //! 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_; @@ -66,6 +78,8 @@ class Widget_Keyframe_List : public Gtk::DrawingArea //!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; @@ -110,8 +124,13 @@ public: //! 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 - bool perform_move_kf(); + //! @return true: if success otherwise false + //! |delta=false: permorm normal move. true: perform delta movement + bool perform_move_kf(bool delta); @@ -125,6 +144,7 @@ public: }; // END of namespace studio + /* === E N D =============================================================== */ #endif