Use labs() for long instead of abs()
[ardour.git] / gtk2_ardour / strip_silence_dialog.h
index 51bec028f541aad81c302af43c64a3013a791966..39bab433b7a89e8d5da450cb7ab3a31271120579 100644 (file)
@@ -22,6 +22,8 @@
 #include <gtkmm/spinbutton.h>
 #include <glibmm/threads.h>
 
+#include <pbd/xml++.h>
+
 #include "ardour/types.h"
 #include "ardour_dialog.h"
 #include "progress_reporter.h"
@@ -55,6 +57,9 @@ public:
                Gtk::Dialog::on_response (response_id);
        }
 
+       XMLNode& get_state ();
+       void set_state (const XMLNode &);
+
 private:
        void create_waves ();
        void canvas_allocation (Gtk::Allocation &);
@@ -66,6 +71,7 @@ private:
        void threshold_changed ();
        void update_progress_gui (float);
        void restart_thread ();
+       void finished(int);
 
        Gtk::SpinButton _threshold;
        AudioClock*      _minimum_length;
@@ -100,4 +106,8 @@ private:
        bool idle_update_progress(); ///< GUI-thread progress updates of background silence computation
        int analysis_progress_cur;
        int analysis_progress_max;
+
+       int _threshold_value;
+       ARDOUR::samplecnt_t _minimum_length_value;
+       ARDOUR::samplecnt_t _fade_length_value;
 };