add QMDSP library to ardev file so that its discoverable as we try to load VAMP stuff
[ardour.git] / gtk2_ardour / automation_time_axis.h
index 85ad6ad7d943e842d270fcfeeefccfd082118041..7fc9c2575aaf2879adfa7f05e6a0e87c45148315 100644 (file)
@@ -58,6 +58,7 @@ class AutomationTimeAxisView : public TimeAxisView {
                                boost::shared_ptr<ARDOUR::Route>,
                                boost::shared_ptr<ARDOUR::Automatable>,
                                boost::shared_ptr<ARDOUR::AutomationControl>,
+                               Evoral::Parameter,
                                PublicEditor&,
                                TimeAxisView& parent,
                                bool show_regions,
@@ -72,16 +73,21 @@ class AutomationTimeAxisView : public TimeAxisView {
        bool set_visibility (bool yn);
        std::string name() const { return _name; }
 
-       void add_automation_event (ArdourCanvas::Item *item, GdkEvent *event, nframes_t, double);
+       void add_automation_event (ArdourCanvas::Item *item, GdkEvent *event, framepos_t, double);
 
        void clear_lines ();
+
+       /** @return Our AutomationLine, if this view has one, or 0 if it uses AutomationRegionViews */
        boost::shared_ptr<AutomationLine> line() { return _line; }
 
+       /** @return All AutomationLines associated with this view */
+       std::list<boost::shared_ptr<AutomationLine> > lines () const;
+
        void set_selected_points (PointSelection&);
-       void get_selectables (nframes_t start, nframes_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 *>&);
        void get_inverted_selectables (Selection&, std::list<Selectable*>& results);
 
-       void show_timestretch (nframes_t /*start*/, nframes_t /*end*/) {}
+       void show_timestretch (framepos_t /*start*/, framepos_t /*end*/) {}
        void hide_timestretch () {}
 
        /* editing operations */
@@ -100,6 +106,9 @@ class AutomationTimeAxisView : public TimeAxisView {
 
        boost::shared_ptr<ARDOUR::AutomationControl> control()    { return _control; }
        boost::shared_ptr<AutomationController>      controller() { return _controller; }
+       Evoral::Parameter parameter () const {
+               return _parameter;
+       }
 
        ArdourCanvas::Item* base_item () const {
                return _base_rect;
@@ -107,15 +116,24 @@ class AutomationTimeAxisView : public TimeAxisView {
 
        bool has_automation () const;
 
-  protected:
-       boost::shared_ptr<ARDOUR::Route> _route; ///< Parent route
-       boost::shared_ptr<ARDOUR::AutomationControl> _control; ///< Control
-       boost::shared_ptr<ARDOUR::Automatable> _automatable; ///< Control owner, maybe = _route
+       boost::shared_ptr<ARDOUR::Route> parent_route () {
+               return _route;
+       }
 
+  protected:
+       /** parent route */
+       boost::shared_ptr<ARDOUR::Route> _route;
+       /** control; 0 if we are editing region-based automation */
+       boost::shared_ptr<ARDOUR::AutomationControl> _control;
+       /** control owner; may be _route, or 0 if we are editing region-based automation */
+       boost::shared_ptr<ARDOUR::Automatable> _automatable;
+       /** controller owner; 0 if we are editing region-based automation */
        boost::shared_ptr<AutomationController> _controller;
+       Evoral::Parameter _parameter;
 
        ArdourCanvas::SimpleRect* _base_rect;
        boost::shared_ptr<AutomationLine> _line;
+
        /** AutomationStreamView if we are editing region-based automation (for MIDI), otherwise 0 */
        AutomationStreamView* _view;
 
@@ -171,6 +189,9 @@ class AutomationTimeAxisView : public TimeAxisView {
 
        static Pango::FontDescription* name_font;
        static bool have_name_font;
+
+private:
+       int set_state_2X (const XMLNode &, int);
 };
 
 #endif /* __ardour_gtk_automation_time_axis_h__ */