add back-pointer to TempoMap from points, and push dirty=true into map
[ardour.git] / gtk2_ardour / session_archive_dialog.cc
index 24ecba6b71444cf3f75d848a20507532c99f57ca..9e2df17ebade974cec15c3ee7d83a3d4fa6d868c 100644 (file)
@@ -31,8 +31,9 @@ using namespace Gtk;
 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();
 
@@ -71,6 +72,12 @@ SessionArchiveDialog::SessionArchiveDialog ()
        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 ();
@@ -132,6 +139,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
 {