summaryrefslogtreecommitdiff
path: root/gtk2_ardour/strip_silence_dialog.h
diff options
context:
space:
mode:
authorNikolaus Gullotta <nik@harrisonconsoles.com>2019-08-30 12:40:28 -0500
committerNikolaus Gullotta <nik@harrisonconsoles.com>2019-08-30 12:40:28 -0500
commitd5988b232c63ed35d20101ee8917c4e2a0596603 (patch)
treec58a5cdad03b560e742f9bf2870d3fa006b8957b /gtk2_ardour/strip_silence_dialog.h
parentdab29eb8ade18259cf501d155cec012b85f22c9b (diff)
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()
Diffstat (limited to 'gtk2_ardour/strip_silence_dialog.h')
-rw-r--r--gtk2_ardour/strip_silence_dialog.h9
1 files changed, 9 insertions, 0 deletions
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 <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 &);
@@ -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;
};