X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fautomation_region_view.h;h=e69845461c3c319f782482183f72a49137bf6372;hb=4b27094a39cbbe43c3ca2bc3ed64c08f26db22e4;hp=fc152f67965d01ea05125dea1bad20f60d9e8a83;hpb=e486a8d86fee39b3bcca59441eb5d1c945cbef19;p=ardour.git diff --git a/gtk2_ardour/automation_region_view.h b/gtk2_ardour/automation_region_view.h index fc152f6796..e69845461c 100644 --- a/gtk2_ardour/automation_region_view.h +++ b/gtk2_ardour/automation_region_view.h @@ -33,7 +33,7 @@ namespace ARDOUR { class AutomationList; }; -class AutomationTimeAxisView; +class TimeAxisView; class AutomationRegionView : public RegionView { @@ -47,16 +47,29 @@ public: ~AutomationRegionView() {} + void init (Gdk::Color& basic_color, bool wfd); + + inline AutomationTimeAxisView* automation_view() const + { return dynamic_cast(&trackview); } + + boost::shared_ptr line() { return _line; } + // We are a ghost. Meta ghosts? Crazy talk. - virtual GhostRegion* add_ghost(AutomationTimeAxisView&) { return NULL; } + virtual GhostRegion* add_ghost(TimeAxisView&) { return NULL; } + + void reset_width_dependent_items(double pixel_width); protected: - void set_y_position_and_height (double y, double h); + 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(); private: - AutomationLine _line; + boost::shared_ptr _line; }; #endif /* __gtk_ardour_automation_region_view_h__ */