using namespace ARDOUR;
SessionArchiveDialog::SessionArchiveDialog ()
- : ArdourDialog (_("Zip/Archive Session"))
+ : ArdourDialog (_("Zip/Archive Current Session"))
, ProgressReporter ()
+ , only_used_checkbox (_("Exclude unused audio sources"))
{
VBox* vbox = get_vbox();
hbox->pack_start (encode_selector, true, true);
vbox->pack_start (*hbox, false, false);
+ vbox->pack_start (only_used_checkbox, false, false);
+
+ label = manage (new Label (_("Note: This archives only the current session state, snapshots are not included."), ALIGN_START));
+ label->set_line_wrap (true);
+ vbox->pack_start (*label, false, false);
+
vbox->pack_start (progress_bar, true, true, 12);
vbox->show_all ();
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
{