GUI option to Exclude unused sources

This commit is contained in:
Robin Gareus 2016-09-23 20:43:26 +02:00
parent 8018bed0de
commit 8e8a0a9ef4
3 changed files with 22 additions and 4 deletions

View file

@ -33,6 +33,7 @@ using namespace ARDOUR;
SessionArchiveDialog::SessionArchiveDialog ()
: ArdourDialog (_("Zip/Archive Session"))
, ProgressReporter ()
, only_used_checkbox (_("Exclude unused audio sources"))
{
VBox* vbox = get_vbox();
@ -71,6 +72,8 @@ SessionArchiveDialog::SessionArchiveDialog ()
hbox->pack_start (encode_selector, true, true);
vbox->pack_start (*hbox, false, false);
vbox->pack_start (only_used_checkbox, false, false);
vbox->pack_start (progress_bar, true, true, 12);
vbox->show_all ();
@ -132,6 +135,18 @@ SessionArchiveDialog::set_name (const std::string& name)
name_entry_changed ();
}
bool
SessionArchiveDialog::only_used_sources () const
{
return only_used_checkbox.get_active ();
}
void
SessionArchiveDialog::set_only_used_sources (bool en)
{
only_used_checkbox.set_active (en);
}
ARDOUR::Session::ArchiveEncode
SessionArchiveDialog::encode_option () const
{