diff options
author | Carl Hetherington <carl@carlh.net> | 2010-04-30 14:50:25 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-04-30 14:50:25 +0000 |
commit | ea21e628e003d5c4efe2b83efdb0f6f6086c403d (patch) | |
tree | bcbc17812fb3b2e631155d86355c2be0c29979bd /gtk2_ardour/strip_silence_dialog.h | |
parent | 7df62788656fdfbb1ea4a8012ce7205227489e7e (diff) |
Use rectified log waveform in strip silence dialogue. Add threshold graphical indication. Update dialogue on open (fixes #3102). Various other small cleanups.
git-svn-id: svn://localhost/ardour2/branches/3.0@7030 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/strip_silence_dialog.h')
-rw-r--r-- | gtk2_ardour/strip_silence_dialog.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk2_ardour/strip_silence_dialog.h b/gtk2_ardour/strip_silence_dialog.h index 108bbb4b7b..1e8b140358 100644 --- a/gtk2_ardour/strip_silence_dialog.h +++ b/gtk2_ardour/strip_silence_dialog.h @@ -49,26 +49,32 @@ private: void peaks_ready (); void canvas_allocation (Gtk::Allocation &); void update_silence_rects (); - void redraw_silence_rects (); + void resize_silence_rects (); + void update_threshold_line (); + void threshold_changed (); Gtk::SpinButton _threshold; AudioClock _minimum_length; AudioClock _fade_length; Gtk::Label _segment_count_label; + Gtk::Label _shortest_silence_label; + Gtk::Label _shortest_audible_label; typedef std::list<std::pair<ARDOUR::frameoffset_t,ARDOUR::framecnt_t> > SilenceResult; struct Wave { boost::shared_ptr<ARDOUR::AudioRegion> region; ArdourCanvas::WaveView* view; std::list<ArdourCanvas::SimpleRect*> silence_rects; + ArdourCanvas::SimpleLine* threshold_line; double samples_per_unit; SilenceResult silence; - Wave() : view (0), samples_per_unit (1) { } + Wave (ArdourCanvas::Group *, boost::shared_ptr<ARDOUR::AudioRegion>); + ~Wave (); }; ArdourCanvas::Canvas* _canvas; - std::list<Wave> _waves; + std::list<Wave*> _waves; int _wave_width; int _wave_height; bool restart_queued; |