_line.show_all_control_points();
group->raise_to_top ();
+
+ group->signal_event().connect (mem_fun (this, &AutomationRegionView::canvas_event), false);
+}
+
+
+bool
+AutomationRegionView::canvas_event(GdkEvent* ev)
+{
+ cerr << "AUTOMATION EVENT" << endl;
+
+ return false;
}
_line.set_y_position_and_height ((uint32_t)y, (uint32_t) rint (h - NAME_HIGHLIGHT_SIZE));
}
+void
+AutomationRegionView::region_resized (ARDOUR::Change what_changed)
+{
+ // Do nothing, parent will move us
+}
+
void
AutomationRegionView::entered()
virtual GhostRegion* add_ghost(AutomationTimeAxisView&) { return NULL; }
protected:
- void set_y_position_and_height (double y, double h);
+ void set_y_position_and_height(double y, double h);
+ void region_resized(ARDOUR::Change what_changed);
+ bool canvas_event(GdkEvent* ev);
void entered();
void exited();
for (vector<GhostRegion*>::iterator i = ghosts.begin(); i != ghosts.end(); ++i) {
(*i)->group->move (delta, 0.0);
}
+
+ for (AutomationChildren::iterator i = _automation_children.begin();
+ i != _automation_children.end(); ++i) {
+ i->second->get_canvas_group()->move(delta, 0.0);
+ }
}
return ret;
for (vector<GhostRegion*>::iterator i = ghosts.begin(); i != ghosts.end(); ++i) {
(*i)->group->move (x_delta, 0.0);
}
+
+ for (AutomationChildren::iterator i = _automation_children.begin();
+ i != _automation_children.end(); ++i) {
+ i->second->get_canvas_group()->move(x_delta, 0.0);
+ }
}
void