From d5988b232c63ed35d20101ee8917c4e2a0596603 Mon Sep 17 00:00:00 2001 From: Nikolaus Gullotta Date: Fri, 30 Aug 2019 12:40:28 -0500 Subject: Add settings retention to StripSilenceDialog StripSilenceDialog will now retain its threshold, minimum length, and fade length values from run to run. This is done via Session::add_extra_xml() and recalled during the construction of StripSilenceDialog via Session::extra_xml() --- gtk2_ardour/strip_silence_dialog.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gtk2_ardour/strip_silence_dialog.h') diff --git a/gtk2_ardour/strip_silence_dialog.h b/gtk2_ardour/strip_silence_dialog.h index 51bec028f5..bc90ce321e 100644 --- a/gtk2_ardour/strip_silence_dialog.h +++ b/gtk2_ardour/strip_silence_dialog.h @@ -22,6 +22,8 @@ #include #include +#include + #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 &); @@ -100,4 +105,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; }; -- cgit v1.2.3