summaryrefslogtreecommitdiff
path: root/src/wx/timeline.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-24 12:40:43 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-24 12:40:43 +0100
commitebd495da2fe5be8c07cf7fb52e8283bb7f4113c1 (patch)
tree93c0f449f19258d5f3c2d7b6b205b54966c4c7a7 /src/wx/timeline.h
parent64a2f1bb6a7b972607fa363631ef7a47444e8217 (diff)
Allow drag of content; fix up some problems with timings.
Diffstat (limited to 'src/wx/timeline.h')
-rw-r--r--src/wx/timeline.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wx/timeline.h b/src/wx/timeline.h
index 5d7960be5..79ceceaa0 100644
--- a/src/wx/timeline.h
+++ b/src/wx/timeline.h
@@ -26,6 +26,7 @@
class Film;
class View;
+class ContentView;
class Timeline : public wxPanel
{
@@ -61,6 +62,8 @@ public:
private:
void paint (wxPaintEvent &);
void left_down (wxMouseEvent &);
+ void mouse_moved (wxMouseEvent &);
+ void left_up (wxMouseEvent &);
void playlist_changed ();
void setup_pixels_per_time_unit ();
void resized (wxSizeEvent &);
@@ -68,4 +71,9 @@ private:
boost::weak_ptr<const Film> _film;
std::list<boost::shared_ptr<View> > _views;
double _pixels_per_time_unit;
+ bool _left_down;
+ wxPoint _down_point;
+ boost::shared_ptr<ContentView> _down_view;
+ Time _down_view_start;
+ bool _first_move;
};