21 #include <glib/gstdio.h>
30 #include "canvas/rectangle.h"
45 if (videotl_bar_height == h) {
return; }
46 if (h < 2 || h > 8) {
return; }
47 videotl_bar_height = h;
48 videotl_label.set_size_request (-1, (
int)timebar_height * videotl_bar_height);
50 update_ruler_visibility();
59 if (!ruler_video_action->get_active())
return;
84 vector<std::string> paths;
85 paths.push_back(path);
86 current_interthread_info = &import_status;
87 import_status.current = 1;
88 import_status.total = paths.size ();
89 import_status.all_done =
false;
95 bool ok = (import_sndfiles (paths, Editing::ImportDistinctFiles, Editing::ImportAsTrack,
ARDOUR::SrcBest, n, 1, 1, track,
false) == 0);
97 if (lock_position_to_video) {
101 _session->save_state (
"");
104 import_status.all_done =
true;
105 ::g_unlink(path.c_str());
void toggle_video_timeline_locked()
void update_video_timeline(bool flush=false)
static ARDOUR_UI * instance()
void embed_audio_from_video(std::string, framepos_t n=0, bool lock_position_to_video=true)
boost::shared_ptr< Region > find_next_region(framepos_t frame, RegionPoint point, int dir)
VideoTimeLine * video_timeline
boost::shared_ptr< Playlist > playlist()
void update_video_timeline()
bool is_video_timeline_locked()
void toggle_offset_locked()
void set_video_timeline_locked(const bool)
void set_offset_locked(bool v)
void set_video_timeline_height(const int)