diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-10 15:00:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-10 15:00:41 +0100 |
| commit | b3d598f551a874b34ff4fb51a0a65631fc3ad070 (patch) | |
| tree | 60fb477fb709e852914b185b7b9ff7f49555a3eb /src/wx/timeline.h | |
| parent | 895751dcac8caeb03e8af8ba286b4297f8f85e0b (diff) | |
Basic snapping in the timeline.
Diffstat (limited to 'src/wx/timeline.h')
| -rw-r--r-- | src/wx/timeline.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wx/timeline.h b/src/wx/timeline.h index 0217373b9..ef1d10797 100644 --- a/src/wx/timeline.h +++ b/src/wx/timeline.h @@ -64,6 +64,14 @@ public: void setup_pixels_per_time_unit (); + void set_snap (bool s) { + _snap = s; + } + + bool snap () const { + return _snap; + } + private: void paint (); void left_down (wxMouseEvent &); @@ -95,6 +103,7 @@ private: Time _down_view_position; bool _first_move; ContentMenu _menu; + bool _snap; boost::signals2::scoped_connection _playlist_connection; }; |
