fix display of negative minsec values; fix handling scroll events on audioclocks
[ardour.git] / gtk2_ardour / strip_silence_dialog.h
index 62e58e7db5174699c70cf125429aedf89d061856..18313941c15496835ff148e240826e9ed0d85f15 100644 (file)
@@ -29,6 +29,7 @@ namespace ARDOUR {
         class Session;
 }
 
+class AudioClock;
 class RegionView;
 
 /// Dialog box to set options for the `strip silence' filter
@@ -42,6 +43,10 @@ public:
                return _threshold.get_value ();
        }
 
+        void drop_rects ();
+
+        void silences (ARDOUR::AudioIntervalMap&);
+
        ARDOUR::framecnt_t minimum_length () const;
         ARDOUR::framecnt_t fade_length () const;
 
@@ -59,11 +64,8 @@ private:
        void restart_thread ();
 
        Gtk::SpinButton _threshold;
-       AudioClock      _minimum_length;
-        AudioClock      _fade_length;
-        Gtk::Label      _segment_count_label;
-       Gtk::Label      _shortest_silence_label;
-       Gtk::Label      _shortest_audible_label;
+       AudioClock*      _minimum_length;
+        AudioClock*      _fade_length;
        Gtk::ProgressBar _progress_bar;
 
         struct ViewInterval {
@@ -75,11 +77,6 @@ private:
 
         std::list<ViewInterval> views;
 
-        ARDOUR::framecnt_t max_audible;
-        ARDOUR::framecnt_t min_audible;
-        ARDOUR::framecnt_t max_silence;
-        ARDOUR::framecnt_t min_silence;
-
        PBD::ScopedConnection* _peaks_ready_connection;
 
        bool _destroying;