mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
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()
This commit is contained in:
parent
dab29eb8ad
commit
d5988b232c
3 changed files with 39 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue