318
319
param_list.add("waypoint",waypoint);
319
320
// param_list.add("time",canvas_interface()->get_time());
321
etl::handle<studio::Instance>::cast_static(param_tree_store_->canvas_interface()->get_instance())->process_action("waypoint_set_smart", param_list);
322
etl::handle<studio::Instance>::cast_static(param_tree_store_->canvas_interface()->get_instance())->process_action("WaypointSetSmart", param_list);
324
325
void mimic(Gtk::TreeView *param_tree_view)
407
408
widget_timeslider_= new Widget_Timeslider();
409
widget_kf_list_= new Widget_Keyframe_List();
409
411
int header_height = 0;
410
412
if(getenv("SYNFIG_TIMETRACK_HEADER_HEIGHT"))
411
413
header_height = atoi(getenv("SYNFIG_TIMETRACK_HEADER_HEIGHT"));
412
414
if (header_height < 3)
415
widget_timeslider_->set_size_request(-1,header_height);
417
widget_timeslider_->set_size_request(-1,header_height-header_height/3+1);
418
widget_kf_list_->set_size_request(-1,header_height/3+1);
416
420
hscrollbar_=new Gtk::HScrollbar();
417
421
vscrollbar_=new Gtk::VScrollbar();
494
499
assert(tree_view);
496
502
widget_timeslider_->set_time_adjustment(&canvas_view->time_adjustment());
497
503
widget_timeslider_->set_bounds_adjustment(&canvas_view->time_window_adjustment());
498
504
widget_timeslider_->set_global_fps(canvas_view->get_canvas()->rend_desc().get_frame_rate());
506
widget_kf_list_->set_time_adjustment(&canvas_view->time_adjustment());
507
widget_kf_list_->set_canvas_interface(canvas_view->canvas_interface());
500
509
vscrollbar_->set_adjustment(*tree_view->get_vadjustment());
501
510
hscrollbar_->set_adjustment(canvas_view->time_window_adjustment());
502
table_=new Gtk::Table(2,2);
503
table_->attach(*widget_timeslider_, 0, 1, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::SHRINK);
504
table_->attach(*tree_view, 0, 1, 1, 2, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
505
table_->attach(*hscrollbar_, 0, 1, 2, 3, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::SHRINK);
506
table_->attach(*vscrollbar_, 1, 2, 0, 2, Gtk::FILL|Gtk::SHRINK, Gtk::FILL|Gtk::EXPAND);
511
table_=new Gtk::Table(2,3);
512
table_->attach(*widget_timeslider_, 0, 1, 1, 2, Gtk::FILL|Gtk::SHRINK, Gtk::FILL|Gtk::SHRINK);
513
table_->attach(*widget_kf_list_, 0, 1, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::SHRINK);
514
table_->attach(*tree_view, 0, 1, 2, 3, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
515
table_->attach(*hscrollbar_, 0, 1, 3, 4, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::SHRINK);
516
table_->attach(*vscrollbar_, 1, 2, 0, 3, Gtk::FILL|Gtk::SHRINK, Gtk::FILL|Gtk::EXPAND);
509
519
//add(*last_widget_curves_);