introduce GUIObjectState; massive, pervasive changes in visibility and height managem...
[ardour.git] / gtk2_ardour / route_time_axis.h
index c68dc573ead4a052b57fea4445a51ce73d869384..5952ddfb316587bd25b9b82abb426111d33f920d 100644 (file)
@@ -70,9 +70,11 @@ class RouteGroupMenu;
 class RouteTimeAxisView : public RouteUI, public TimeAxisView
 {
 public:
-       RouteTimeAxisView (PublicEditor&, ARDOUR::Session*, boost::shared_ptr<ARDOUR::Route>, ArdourCanvas::Canvas& canvas);
+       RouteTimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas);
        virtual ~RouteTimeAxisView ();
 
+       void set_route (boost::shared_ptr<ARDOUR::Route>);
+
        void show_selection (TimeSelection&);
        void set_button_names ();
 
@@ -94,7 +96,9 @@ public:
        /* Editing operations */
        void cut_copy_clear (Selection&, Editing::CutCopyOp);
        bool paste (ARDOUR::framepos_t, float times, Selection&, size_t nth);
-
+       RegionView* combine_regions ();
+       void uncombine_regions ();
+       void uncombine_region (RegionView*);
        void toggle_automation_track (const Evoral::Parameter& param);
 
        /* The editor calls these when mapping an operation across multiple tracks */
@@ -110,21 +114,17 @@ public:
        void add_underlay (StreamView*, bool update_xml = true);
        void remove_underlay (StreamView*);
        void build_underlay_menu(Gtk::Menu*);
-       
-       int set_state (const XMLNode&, int version);
-       
-       virtual void create_automation_child (const Evoral::Parameter& param, bool show) = 0;
 
-       /* make sure we get the right version of this */
+       int set_state (const XMLNode&, int version);
 
-       XMLNode* get_automation_child_xml_node (Evoral::Parameter param) { return RouteUI::get_automation_child_xml_node (param); }
+       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; }
 
        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;
@@ -139,6 +139,8 @@ public:
        void meter_changed ();
        void effective_gain_display () { gm.effective_gain_display(); }
 
+       std::string state_id() const;
+
        static void setup_slider_pix ();
 
 protected:
@@ -185,7 +187,7 @@ protected:
                                               boost::shared_ptr<ARDOUR::Processor>);
 
        void automation_track_hidden (Evoral::Parameter param);
-       
+
        ProcessorAutomationNode*
        find_processor_automation_node (boost::shared_ptr<ARDOUR::Processor> i, Evoral::Parameter);
 
@@ -242,8 +244,10 @@ protected:
 
        void create_gain_automation_child (const Evoral::Parameter &, bool);
 
+       void setup_processor_menu_and_curves ();
+
        boost::shared_ptr<AutomationTimeAxisView> gain_track;
-       
+
        StreamView*           _view;
        ArdourCanvas::Canvas& parent_canvas;
        bool                  no_redraw;
@@ -272,6 +276,9 @@ protected:
 
        void set_track_mode (ARDOUR::TrackMode, bool apply_to_selection = false);
 
+       /** Information about all automatable processor parameters that apply to
+        *  this route.  The Amp processor is not included in this list.
+        */
        std::list<ProcessorAutomationInfo*> processor_automation;
 
        typedef std::vector<boost::shared_ptr<AutomationLine> > ProcessorAutomationCurves;