X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fstreamview.h;h=850bdaea3bab17fdc0664570d7b12bbaa31fc1fb;hb=41bd6d3721f20e5c7a668c4566cef65a06a95c7f;hp=8a56040afb321ad945a70c49b64a1710950b1dc7;hpb=22b07e0233a29d9633ffa825a79503befaf2e16e;p=ardour.git diff --git a/gtk2_ardour/streamview.h b/gtk2_ardour/streamview.h index 8a56040afb..850bdaea3b 100644 --- a/gtk2_ardour/streamview.h +++ b/gtk2_ardour/streamview.h @@ -47,8 +47,8 @@ namespace ArdourCanvas { struct RecBoxInfo { ArdourCanvas::Rectangle* rectangle; - framepos_t start; - ARDOUR::framecnt_t length; + samplepos_t start; + ARDOUR::samplecnt_t length; }; class Selectable; @@ -76,7 +76,8 @@ public: virtual int set_samples_per_pixel (double); gdouble get_samples_per_pixel () const { return _samples_per_pixel; } - void set_layer_display (LayerDisplay); + virtual void set_layer_display (LayerDisplay); + virtual bool can_change_layer_display() const { return true; } LayerDisplay layer_display () const { return _layer_display; } ArdourCanvas::Container* canvas_item() { return _canvas_group; } @@ -97,7 +98,7 @@ public: void foreach_selected_regionview (sigc::slot slot); void set_selected_regionviews (RegionSelection&); - void get_selectables (ARDOUR::framepos_t, ARDOUR::framepos_t, double, double, std::list&, bool within = false); + void get_selectables (ARDOUR::samplepos_t, ARDOUR::samplepos_t, double, double, std::list&, bool within = false); void get_inverted_selectables (Selection&, std::list& results); virtual void update_contents_metrics(boost::shared_ptr) {} @@ -115,7 +116,7 @@ public: return 0; } - void check_record_layers (boost::shared_ptr, ARDOUR::framepos_t); + void check_record_layers (boost::shared_ptr, ARDOUR::samplepos_t); virtual void playlist_layered (boost::weak_ptr); @@ -125,13 +126,13 @@ public: sigc::signal ContentsHeightChanged; protected: - StreamView (RouteTimeAxisView&, ArdourCanvas::Container* canvas_group = 0); + StreamView (RouteTimeAxisView&, ArdourCanvas::Container* canvas_group = 0); void transport_changed(); void transport_looped(); void rec_enable_changed(); void sess_rec_enable_changed(); - void create_rec_box(framepos_t frame_pos, double width); + void create_rec_box(samplepos_t sample_pos, double width); virtual void setup_rec_box () = 0; virtual void update_rec_box (); @@ -150,7 +151,7 @@ protected: RouteTimeAxisView& _trackview; ArdourCanvas::Container* _canvas_group; - ArdourCanvas::Rectangle* canvas_rect; /* frame around the whole thing */ + ArdourCanvas::Rectangle* canvas_rect; /* sample around the whole thing */ typedef std::list RegionViewList; RegionViewList region_views; @@ -175,16 +176,16 @@ protected: double height; PBD::ScopedConnectionList rec_data_ready_connections; - framepos_t last_rec_data_frame; + samplepos_t last_rec_data_sample; /* When recording, the session time at which a new layer must be created for the region - being recorded, or max_framepos if not applicable. + being recorded, or max_samplepos if not applicable. */ - framepos_t _new_rec_layer_time; + samplepos_t _new_rec_layer_time; void setup_new_rec_layer_time (boost::shared_ptr); private: - void update_coverage_frames (); + void update_coverage_samples (); }; #endif /* __ardour_streamview_h__ */