diff options
author | Carl Hetherington <carl@carlh.net> | 2010-09-20 00:58:25 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-09-20 00:58:25 +0000 |
commit | a2885a430bbb69a72f901d227cacce979f121020 (patch) | |
tree | 191ae276dbbd2e456a0d8edabccd19fee486572c /gtk2_ardour/strip_silence_dialog.cc | |
parent | a212e7eec999e696dde6d4747b783fb6098bdb47 (diff) |
Add progress bar to strip silence dialogue. Fixes #3103.
git-svn-id: svn://localhost/ardour2/branches/3.0@7809 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/strip_silence_dialog.cc')
-rw-r--r-- | gtk2_ardour/strip_silence_dialog.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/strip_silence_dialog.cc b/gtk2_ardour/strip_silence_dialog.cc index 936c071290..d0f806e71a 100644 --- a/gtk2_ardour/strip_silence_dialog.cc +++ b/gtk2_ardour/strip_silence_dialog.cc @@ -53,6 +53,7 @@ StripSilenceDialog* StripSilenceDialog::current = 0; /** Construct Strip silence dialog box */ StripSilenceDialog::StripSilenceDialog (Session* s, list<boost::shared_ptr<ARDOUR::AudioRegion> > const & regions) : ArdourDialog (_("Strip Silence")) + , ProgressReporter () , _minimum_length (X_("silence duration"), true, "SilenceDurationClock", true, false, true, false) , _fade_length (X_("silence duration"), true, "SilenceDurationClock", true, false, true, false) , _wave_width (640) @@ -143,6 +144,8 @@ StripSilenceDialog::StripSilenceDialog (Session* s, list<boost::shared_ptr<ARDOU get_vbox()->pack_start (*_canvas, true, true); + get_vbox()->pack_start (_progress_bar, true, true); + show_all (); _threshold.get_adjustment()->signal_value_changed().connect (sigc::mem_fun (*this, &StripSilenceDialog::threshold_changed)); @@ -560,3 +563,9 @@ StripSilenceDialog::Wave::~Wave () delete *i; } } + +void +StripSilenceDialog::update_progress_gui (float p) +{ + _progress_bar.set_fraction (p); +} |