summaryrefslogtreecommitdiff
path: root/gtk2_ardour/strip_silence_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-09-20 00:58:25 +0000
committerCarl Hetherington <carl@carlh.net>2010-09-20 00:58:25 +0000
commita2885a430bbb69a72f901d227cacce979f121020 (patch)
tree191ae276dbbd2e456a0d8edabccd19fee486572c /gtk2_ardour/strip_silence_dialog.h
parenta212e7eec999e696dde6d4747b783fb6098bdb47 (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.h')
-rw-r--r--gtk2_ardour/strip_silence_dialog.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/strip_silence_dialog.h b/gtk2_ardour/strip_silence_dialog.h
index 1e8b140358..3b800eb115 100644
--- a/gtk2_ardour/strip_silence_dialog.h
+++ b/gtk2_ardour/strip_silence_dialog.h
@@ -23,6 +23,7 @@
#include "ardour/types.h"
#include "ardour_dialog.h"
#include "canvas.h"
+#include "progress_reporter.h"
namespace ARDOUR {
class AudioRegion;
@@ -30,7 +31,7 @@ namespace ARDOUR {
}
/// Dialog box to set options for the `strip silence' filter
-class StripSilenceDialog : public ArdourDialog
+class StripSilenceDialog : public ArdourDialog, public ProgressReporter
{
public:
StripSilenceDialog (ARDOUR::Session*, std::list<boost::shared_ptr<ARDOUR::AudioRegion> > const &);
@@ -52,6 +53,7 @@ private:
void resize_silence_rects ();
void update_threshold_line ();
void threshold_changed ();
+ void update_progress_gui (float);
Gtk::SpinButton _threshold;
AudioClock _minimum_length;
@@ -59,6 +61,7 @@ private:
Gtk::Label _segment_count_label;
Gtk::Label _shortest_silence_label;
Gtk::Label _shortest_audible_label;
+ Gtk::ProgressBar _progress_bar;
typedef std::list<std::pair<ARDOUR::frameoffset_t,ARDOUR::framecnt_t> > SilenceResult;
struct Wave {