Gtk::Adjustment *adj_timescale;
//!The list of keyframes to be drawn on the widget and moved with mouse
- synfig::KeyframeList kf_list_;
+ synfig::KeyframeList default_kf_list_;
+ mutable synfig::KeyframeList* kf_list_;
//! The frames per second of the canvas
- synfig::Time fps;
+ float fps;
+
+ //! Time radius to click a keyframe
+ synfig::Time time_ratio;
+
//!True if it is editable. Keyframes can be moved.
bool editable_;
//!Holds the selected keyframe of the keyframe list
synfig::Keyframe selected_kf;
+ synfig::Keyframe selected_none;
//!The time of the selected keyframe
synfig::Time selected_kf_time;
~Widget_Keyframe_List();
//!Loads a new keyframe list on the widget.
- void set_kf_list(const synfig::KeyframeList& x);
+ void set_kf_list(synfig::KeyframeList* x);
//!Member for private data.
- const synfig::KeyframeList& get_kf_list()const { return kf_list_; }
+ synfig::KeyframeList* get_kf_list()const { return kf_list_; }
//!Member for private data
void set_editable(bool x=true) { editable_=x; }
//! 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);
+
//! Performs the keyframe movement. Returns true if it was sucessful
bool perform_move_kf();