canvas = new VWindowCanvas(mwindow, this);
canvas->create_objects(mwindow->edl);
- canvas->use_vwindow();
char vsplash_path[BCTEXTLEN];
int vsplash_len = sizeof(vsplash_path)-1;
snprintf(vsplash_path, vsplash_len, "%s/vsplash.png", File::get_cindat_path());
0, // use_cut
0, // use_commerical
0, // use_goto
- 1) // use_clk2play
+ 1, // use_clk2play
+ 1) // use_scope
{
this->mwindow = mwindow;
this->vwindow = vwindow;
this->gui = gui;
}
+void VWindowCanvas::create_objects(EDL *edl)
+{
+ Canvas::create_objects(edl);
+ canvas_menu->add_item(new CanvasPopupRemoveSource(this));
+}
+
void VWindowCanvas::zoom_resize_window(float percentage)
{
EDL *edl = gui->vwindow->get_edl();
gui->vwindow->delete_source(1, 1);
}
+int VWindowCanvas::scope_on()
+{
+ return !gui->edit_panel->scope_dialog ? 0 :
+ gui->edit_panel->scope_dialog->running();
+}
+
+void VWindowCanvas::draw_scope(VFrame *output)
+{
+ if( gui->edit_panel->scope_dialog && output )
+ gui->edit_panel->scope_dialog->process(output);
+}
void VWindowCanvas::draw_refresh(int flush)
{