vtl: mark session dirty if video position-lock or timeline height changes

This commit is contained in:
Robin Gareus 2013-04-08 21:17:48 +02:00
parent c7daf40358
commit f7abf2de82
2 changed files with 21 additions and 2 deletions

View File

@ -228,6 +228,22 @@ VideoTimeLine::set_session (ARDOUR::Session *s)
_session->config.ParameterChanged.connect (*this, invalidator (*this), ui_bind (&VideoTimeLine::parameter_changed, this, _1), gui_context());
}
void
VideoTimeLine::set_offset_locked (bool v) {
if (_session && v != video_offset_lock) {
_session->set_dirty ();
}
video_offset_lock = v;
}
void
VideoTimeLine::toggle_offset_locked () {
video_offset_lock = !video_offset_lock;
if (_session) {
_session->set_dirty ();
}
}
void
VideoTimeLine::save_undo ()
{
@ -614,6 +630,9 @@ VideoTimeLine::gui_update(std::string const & t) {
void
VideoTimeLine::set_height (int height) {
if (_session && bar_height != height) {
_session->set_dirty ();
}
bar_height = height;
flush_local_cache();
}

View File

@ -72,8 +72,8 @@ class VideoTimeLine : public sigc::trackable, public ARDOUR::SessionHandlePtr, p
double get_video_file_fps () { return video_file_fps; }
void set_update_session_fps (bool v=true) { auto_set_session_fps = v; }
void set_offset_locked (bool v) { video_offset_lock = v; }
void toggle_offset_locked () { video_offset_lock = !video_offset_lock; }
void set_offset_locked (bool v);
void toggle_offset_locked ();
bool is_offset_locked () { return video_offset_lock; }
void open_video_monitor ();