diff options
author | David Robillard <d@drobilla.net> | 2007-09-06 02:30:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-06 02:30:39 +0000 |
commit | c190aca4a0debe1220558d14afb8f1ab4adb959f (patch) | |
tree | 1c2749473afe96f41cd99d1036533342db98a1ba /gtk2_ardour/automation_region_view.h | |
parent | 7423ad46a742fbfd03ee4e54e78167c9006a2e8d (diff) |
Deep "automation regions" support.
Fix zoom/height/etc changing for automation region views.
Broke smooth automation region dragging (make omelette, break eggs, etc).
git-svn-id: svn://localhost/ardour2/trunk@2424 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_region_view.h')
-rw-r--r-- | gtk2_ardour/automation_region_view.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_region_view.h b/gtk2_ardour/automation_region_view.h index ba75b2fecb..79ba84b2ef 100644 --- a/gtk2_ardour/automation_region_view.h +++ b/gtk2_ardour/automation_region_view.h @@ -47,13 +47,24 @@ public: ~AutomationRegionView() {} + void init (Gdk::Color& basic_color, bool wfd); + + inline AutomationTimeAxisView* automation_view() const + { return dynamic_cast<AutomationTimeAxisView*>(&trackview); } + + AutomationLine& line() { return _line; } + // We are a ghost. Meta ghosts? Crazy talk. virtual GhostRegion* add_ghost(AutomationTimeAxisView&) { return NULL; } + + void reset_width_dependent_items(double pixel_width); protected: + bool set_position(nframes_t pos, void* src, double* ignored); void set_y_position_and_height(double y, double h); void region_resized(ARDOUR::Change what_changed); bool canvas_event(GdkEvent* ev); + void add_automation_event (GdkEvent* event, nframes_t when, double y); void entered(); void exited(); |