Added code to fix the shown of the keyfrmae list widget. It is not fully working...
[synfig.git] / synfig-studio / trunk / src / gtkmm / widget_keyframe_list.h
index 3b83722..8796beb 100644 (file)
@@ -49,10 +49,12 @@ class Widget_Keyframe_List : public Gtk::DrawingArea
        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;
+
        //!True if it is editable. Keyframes can be moved.
        bool editable_;
 
@@ -84,10 +86,10 @@ public:
        ~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; }
@@ -105,6 +107,9 @@ public:
        //! 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();