Add progress bar to strip silence dialogue. Fixes #3103.
[ardour.git] / gtk2_ardour / strip_silence_dialog.cc
index 936c0712902ae55b14de710c21b90ad51b4c9ffa..d0f806e71a32b0b6fab13fa3d40d08e0185916cb 100644 (file)
@@ -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);
+}