X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fstreamview.h;h=3b1b4cb12b81271c06fe50e5f5db34d21405fcf8;hb=e11b3f90c2d02735a071d526d67cfd0de90cbac3;hp=389000c7ef22b525f51fcae9e4def6e8c34953d1;hpb=9f545076a2d34d89d34532092ce99804bc50049c;p=ardour.git diff --git a/gtk2_ardour/streamview.h b/gtk2_ardour/streamview.h index 389000c7ef..3b1b4cb12b 100644 --- a/gtk2_ardour/streamview.h +++ b/gtk2_ardour/streamview.h @@ -59,7 +59,8 @@ class StreamView : public sigc::trackable public: virtual ~StreamView (); - RouteTimeAxisView& trackview() { return _trackview; } + RouteTimeAxisView& trackview() { return _trackview; } + const RouteTimeAxisView& trackview() const { return _trackview; } void attach (); @@ -73,7 +74,7 @@ public: void set_layer_display (LayerDisplay); - ArdourCanvas::Item* canvas_item() { return canvas_group; } + ArdourCanvas::Group* canvas_item() { return canvas_group; } enum ColorTarget { RegionColor, @@ -92,11 +93,14 @@ public: void add_region_view (boost::shared_ptr); void region_layered (RegionView*); + virtual void update_contents_height (); + + virtual void redisplay_diskstream () = 0; sigc::signal RegionViewAdded; protected: - StreamView (RouteTimeAxisView&); + StreamView (RouteTimeAxisView&, ArdourCanvas::Group* group = NULL); //private: (FIXME?) @@ -108,13 +112,12 @@ protected: void update_rec_box (); //virtual void update_rec_regions () = 0; - virtual RegionView* add_region_view_internal (boost::shared_ptr, bool wait_for_waves) = 0; + virtual RegionView* add_region_view_internal (boost::shared_ptr, bool wait_for_waves, bool recording = false) = 0; virtual void remove_region_view (boost::weak_ptr ); //void remove_rec_region (boost::shared_ptr); (unused) void display_diskstream (boost::shared_ptr); virtual void undisplay_diskstream (); - virtual void redisplay_diskstream () = 0; void diskstream_changed (); virtual void playlist_changed (boost::shared_ptr); @@ -123,9 +126,8 @@ protected: virtual void color_handler () = 0; - virtual void update_contents_y_position_and_height (); - RouteTimeAxisView& _trackview; + bool owns_canvas_group; ArdourCanvas::Group* canvas_group; ArdourCanvas::SimpleRect* canvas_rect; /* frame around the whole thing */