diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-17 11:48:51 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-17 11:48:51 +0000 |
commit | 0c714fe3de350d2aed77f445d718e95ba9065b57 (patch) | |
tree | 18fcc54013d3ee00f53bccf073f0403ba29b2f84 /gtk2_ardour/audio_region_view.h | |
parent | 00f51c6abfeb4aa35b4df5a280e6b07a4004957e (diff) |
Simplify management of waveform visibility / shape / scale;
fixes #4727, I think.
git-svn-id: svn://localhost/ardour2/branches/3.0@12743 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_region_view.h')
-rw-r--r-- | gtk2_ardour/audio_region_view.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gtk2_ardour/audio_region_view.h b/gtk2_ardour/audio_region_view.h index ad5107c953..ee03fdbc80 100644 --- a/gtk2_ardour/audio_region_view.h +++ b/gtk2_ardour/audio_region_view.h @@ -80,13 +80,6 @@ class AudioRegionView : public RegionView void unhide_envelope (); ///< Dangerous! void update_envelope_visibility (); - 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 add_gain_point_event (ArdourCanvas::Item *item, GdkEvent *event); void remove_gain_point_event (ArdourCanvas::Item *item, GdkEvent *event); @@ -165,7 +158,6 @@ class AudioRegionView : public RegionView double _amplitude_above_axis; - uint32_t _flags; uint32_t fade_color; void reset_fade_shapes (); @@ -183,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 &); @@ -203,6 +193,11 @@ class AudioRegionView : public RegionView 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. */ |