fix cURL/SSL
[ardour.git] / gtk2_ardour / route_time_axis.h
index 2d854c451adb714ac6c4083e64bfdbb40a2227f5..0634890e515b6f33b84d3d0063d272eb867c966b 100644 (file)
@@ -70,12 +70,20 @@ class AutomationLine;
 class ProcessorAutomationLine;
 class TimeSelection;
 class RouteGroupMenu;
+class ItemCounts;
 
 class RouteTimeAxisView : public RouteUI, public TimeAxisView
 {
 public:
-       RouteTimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas);
-       virtual ~RouteTimeAxisView ();
+       RouteTimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas);
+       virtual ~RouteTimeAxisView ();
+
+       std::string name()  const;
+       Gdk::Color color () const;
+       bool marked_for_display () const;
+       bool set_marked_for_display (bool);
+
+       boost::shared_ptr<ARDOUR::Stripable> stripable() const { return RouteUI::stripable(); }
 
        void set_route (boost::shared_ptr<ARDOUR::Route>);
 
@@ -83,13 +91,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<Selectable *>&);
+       void get_selectables (ARDOUR::framepos_t start, ARDOUR::framepos_t end, double top, double bot, std::list<Selectable *>&, bool within = false);
        void get_inverted_selectables (Selection&, std::list<Selectable*>&);
        void set_layer_display (LayerDisplay d, bool apply_to_selection = false);
        LayerDisplay layer_display () const;
@@ -99,11 +107,12 @@ public:
 
        /* Editing operations */
        void cut_copy_clear (Selection&, Editing::CutCopyOp);
-       bool paste (ARDOUR::framepos_t, float times, Selection&, size_t nth);
+       bool paste (ARDOUR::framepos_t, const Selection&, PasteContext& ctx, const int32_t sub_num);
        RegionView* combine_regions ();
        void uncombine_regions ();
        void uncombine_region (RegionView*);
        void toggle_automation_track (const Evoral::Parameter& param);
+       void fade_range (TimeSelection&);
 
        /* The editor calls these when mapping an operation across multiple tracks */
        void use_new_playlist (bool prompt, std::vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
@@ -124,12 +133,11 @@ public:
        virtual void create_automation_child (const Evoral::Parameter& param, bool show) = 0;
 
        typedef std::map<Evoral::Parameter, boost::shared_ptr<AutomationTimeAxisView> > AutomationTracks;
-       AutomationTracks automation_tracks() { return _automation_tracks; }
+       const AutomationTracks& automation_tracks() const { return _automation_tracks; }
 
        boost::shared_ptr<AutomationTimeAxisView> automation_child(Evoral::Parameter param);
        virtual Gtk::CheckMenuItem* automation_child_menu_item (Evoral::Parameter);
 
-       std::string         name() const;
        StreamView*         view() const { return _view; }
        ARDOUR::RouteGroup* route_group() const;
        boost::shared_ptr<ARDOUR::Playlist> playlist() const;
@@ -205,9 +213,9 @@ protected:
 
        void take_name_changed (void *src);
        void route_property_changed (const PBD::PropertyChange&);
-       void name_entry_changed ();
+       bool name_entry_changed (std::string const&);
 
-       void update_rec_display ();
+       void blink_rec_display (bool onoff);
 
        virtual void label_view ();
 
@@ -237,11 +245,15 @@ 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<AutomationTimeAxisView> gain_track;
+       boost::shared_ptr<AutomationTimeAxisView> trim_track;
+       boost::shared_ptr<AutomationTimeAxisView> mute_track;
 
        StreamView*           _view;
        ArdourCanvas::Canvas& parent_canvas;
@@ -252,6 +264,7 @@ protected:
        ArdourButton route_group_button;
        ArdourButton playlist_button;
        ArdourButton automation_button;
+       ArdourButton number_label;
 
        Gtk::Menu           subplugin_menu;
        Gtk::Menu*          automation_action_menu;
@@ -299,11 +312,30 @@ 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<boost::shared_ptr<AutomationTimeAxisView> > pan_tracks;
+       Gtk::CheckMenuItem* pan_automation_item;
+
 private:
 
        void remove_child (boost::shared_ptr<TimeAxisView>);
        void update_playlist_tip ();
+       void parameter_changed (std::string const & p);
+       void update_track_number_visibility();
 };
 
 #endif /* __ardour_route_time_axis_h__ */
-