X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Froute_time_axis.h;h=57b2bbb96000979c7fb306b7b107c47d6274d6f8;hb=6129b3492d3e47f7c027278f795ebb5cbea53cca;hp=45b8afd82dc4930313fc5f78f48bb71fcf777dfe;hpb=31acd96384b930de928aa8c7969336ba3401bbed;p=ardour.git diff --git a/gtk2_ardour/route_time_axis.h b/gtk2_ardour/route_time_axis.h index 45b8afd82d..57b2bbb960 100644 --- a/gtk2_ardour/route_time_axis.h +++ b/gtk2_ardour/route_time_axis.h @@ -70,6 +70,7 @@ class AutomationLine; class ProcessorAutomationLine; class TimeSelection; class RouteGroupMenu; +class ItemCounts; class RouteTimeAxisView : public RouteUI, public TimeAxisView { @@ -83,13 +84,13 @@ public: void set_button_names (); void set_samples_per_pixel (double); - void set_height (uint32_t h); + void set_height (uint32_t h, TrackHeightMode m = OnlySelf); void show_timestretch (framepos_t start, framepos_t end, int layers, int layer); void hide_timestretch (); void selection_click (GdkEventButton*); void set_selected_points (PointSelection&); void set_selected_regionviews (RegionSelection&); - void get_selectables (ARDOUR::framepos_t start, ARDOUR::framepos_t end, double top, double bot, std::list&); + void get_selectables (ARDOUR::framepos_t start, ARDOUR::framepos_t end, double top, double bot, std::list&, bool within = false); void get_inverted_selectables (Selection&, std::list&); void set_layer_display (LayerDisplay d, bool apply_to_selection = false); LayerDisplay layer_display () const; @@ -99,7 +100,7 @@ public: /* Editing operations */ void cut_copy_clear (Selection&, Editing::CutCopyOp); - bool paste (ARDOUR::framepos_t, unsigned paste_count, float times, Selection&, size_t nth); + bool paste (ARDOUR::framepos_t, const Selection&, PasteContext& ctx); RegionView* combine_regions (); void uncombine_regions (); void uncombine_region (RegionView*); @@ -125,7 +126,7 @@ public: virtual void create_automation_child (const Evoral::Parameter& param, bool show) = 0; typedef std::map > AutomationTracks; - AutomationTracks automation_tracks() { return _automation_tracks; } + const AutomationTracks& automation_tracks() const { return _automation_tracks; } boost::shared_ptr automation_child(Evoral::Parameter param); virtual Gtk::CheckMenuItem* automation_child_menu_item (Evoral::Parameter); @@ -238,12 +239,14 @@ protected: void color_handler (); void region_view_added (RegionView*); void create_gain_automation_child (const Evoral::Parameter &, bool); + void create_trim_automation_child (const Evoral::Parameter &, bool); void create_mute_automation_child (const Evoral::Parameter &, bool); void setup_processor_menu_and_curves (); void route_color_changed (); bool can_edit_name() const; boost::shared_ptr gain_track; + boost::shared_ptr trim_track; boost::shared_ptr mute_track; StreamView* _view; @@ -303,6 +306,24 @@ protected: bool _ignore_set_layer_display; +protected: + void update_gain_track_visibility (); + void update_trim_track_visibility (); + void update_mute_track_visibility (); + void update_pan_track_visibility (); + + /** Ensure that we have the appropriate automation lanes for panners. + * + * @param show true to show any new views that we create, otherwise false. + */ + void ensure_pan_views (bool show = true); + + Gtk::CheckMenuItem* gain_automation_item; + Gtk::CheckMenuItem* trim_automation_item; + Gtk::CheckMenuItem* mute_automation_item; + std::list > pan_tracks; + Gtk::CheckMenuItem* pan_automation_item; + private: void remove_child (boost::shared_ptr);