Remove unused header include
[ardour.git] / gtk2_ardour / audio_region_view.h
index 53070c85d3a085a4ca5c2e6210d71d9acfec7c24..ee03fdbc8036d2da19fa507b23af7e80a1f0279e 100644 (file)
@@ -35,7 +35,7 @@
 
 namespace ARDOUR {
        class AudioRegion;
-       class PeakData;
+       struct PeakData;
 };
 
 class AudioTimeAxisView;
@@ -79,14 +79,7 @@ class AudioRegionView : public RegionView
        void temporarily_hide_envelope (); ///< Dangerous!
        void unhide_envelope ();           ///< Dangerous!
 
-       void set_envelope_visible (bool);
-       void set_waveform_visible (bool yn);
-       void set_waveform_shape (ARDOUR::WaveformShape);
-       void set_waveform_scale (ARDOUR::WaveformScale);
-
-       bool waveform_rectified() const { return _flags & WaveformRectified; }
-       bool waveform_logscaled() const { return _flags & WaveformLogScaled; }
-       bool waveform_visible()   const { return _flags & WaveformVisible; }
+       void update_envelope_visibility ();
 
        void add_gain_point_event (ArdourCanvas::Item *item, GdkEvent *event);
        void remove_gain_point_event (ArdourCanvas::Item *item, GdkEvent *event);
@@ -117,6 +110,17 @@ class AudioRegionView : public RegionView
 
        void thaw_after_trim ();
 
+       void drag_start ();
+       void drag_end ();
+
+       void redraw_start_xfade_to (boost::shared_ptr<ARDOUR::AudioRegion>, framecnt_t);
+       void redraw_end_xfade_to (boost::shared_ptr<ARDOUR::AudioRegion>, framecnt_t);
+       void redraw_start_xfade ();
+       void redraw_end_xfade ();
+       
+       void hide_xfades ();
+       void show_xfades ();
+
   protected:
 
        /* this constructor allows derived types
@@ -154,7 +158,6 @@ class AudioRegionView : public RegionView
 
        double _amplitude_above_axis;
 
-       uint32_t _flags;
        uint32_t fade_color;
 
        void reset_fade_shapes ();
@@ -172,8 +175,6 @@ class AudioRegionView : public RegionView
 
        void create_one_wave (uint32_t, bool);
        void peaks_ready_handler (uint32_t);
-       void set_flags (XMLNode *);
-       void store_flags ();
 
        void set_colors ();
        void compute_colors (Gdk::Color const &);
@@ -187,17 +188,23 @@ class AudioRegionView : public RegionView
 
        void transients_changed();
 
-       void redraw_start_xfade ();
-       void redraw_end_xfade ();
+       AutomationLine::VisibleAspects automation_line_visibility () const;
 
 private:
-
        void setup_fade_handle_positions ();
 
+       void parameter_changed (std::string const &);
+       void setup_waveform_visibility ();
+       void setup_waveform_shape ();
+       void setup_waveform_scale ();
+
        /** A ScopedConnection for each PeaksReady callback (one per channel).  Each member
         *  may be 0 if no connection exists.
         */
        std::vector<PBD::ScopedConnection*> _data_ready_connections;
+
+       /** RegionViews that we hid the xfades for at the start of the current drag */
+       std::list<AudioRegionView*> _hidden_xfades;
 };
 
 #endif /* __gtk_ardour_audio_region_view_h__ */