GUI option to Exclude unused sources
This commit is contained in:
parent
8018bed0de
commit
8e8a0a9ef4
@ -2719,7 +2719,7 @@ ARDOUR_UI::archive_session ()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_session->archive_session (sad.target_folder(), sad.name(), sad.encode_option (), &sad)) {
|
if (_session->archive_session (sad.target_folder(), sad.name(), sad.encode_option (), sad.only_used_sources (), &sad)) {
|
||||||
MessageDialog msg (_("Session Archiving failed."));
|
MessageDialog msg (_("Session Archiving failed."));
|
||||||
msg.run ();
|
msg.run ();
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,7 @@ using namespace ARDOUR;
|
|||||||
SessionArchiveDialog::SessionArchiveDialog ()
|
SessionArchiveDialog::SessionArchiveDialog ()
|
||||||
: ArdourDialog (_("Zip/Archive Session"))
|
: ArdourDialog (_("Zip/Archive Session"))
|
||||||
, ProgressReporter ()
|
, ProgressReporter ()
|
||||||
|
, only_used_checkbox (_("Exclude unused audio sources"))
|
||||||
{
|
{
|
||||||
VBox* vbox = get_vbox();
|
VBox* vbox = get_vbox();
|
||||||
|
|
||||||
@ -71,6 +72,8 @@ SessionArchiveDialog::SessionArchiveDialog ()
|
|||||||
hbox->pack_start (encode_selector, true, true);
|
hbox->pack_start (encode_selector, true, true);
|
||||||
vbox->pack_start (*hbox, false, false);
|
vbox->pack_start (*hbox, false, false);
|
||||||
|
|
||||||
|
vbox->pack_start (only_used_checkbox, false, false);
|
||||||
|
|
||||||
vbox->pack_start (progress_bar, true, true, 12);
|
vbox->pack_start (progress_bar, true, true, 12);
|
||||||
|
|
||||||
vbox->show_all ();
|
vbox->show_all ();
|
||||||
@ -132,6 +135,18 @@ SessionArchiveDialog::set_name (const std::string& name)
|
|||||||
name_entry_changed ();
|
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
|
ARDOUR::Session::ArchiveEncode
|
||||||
SessionArchiveDialog::encode_option () const
|
SessionArchiveDialog::encode_option () const
|
||||||
{
|
{
|
||||||
|
@ -38,16 +38,19 @@ public:
|
|||||||
std::string target_folder () const;
|
std::string target_folder () const;
|
||||||
std::string name () const;
|
std::string name () const;
|
||||||
ARDOUR::Session::ArchiveEncode encode_option () const;
|
ARDOUR::Session::ArchiveEncode encode_option () const;
|
||||||
|
bool only_used_sources () const;
|
||||||
|
|
||||||
void set_name (const std::string&);
|
void set_name (const std::string&);
|
||||||
void set_target_folder (const std::string&);
|
void set_target_folder (const std::string&);
|
||||||
void set_encode_option (ARDOUR::Session::ArchiveEncode);
|
void set_encode_option (ARDOUR::Session::ArchiveEncode);
|
||||||
|
void set_only_used_sources (bool);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::FileChooserButton target_folder_selector;
|
Gtk::FileChooserButton target_folder_selector;
|
||||||
Gtk::Entry name_entry;
|
Gtk::Entry name_entry;
|
||||||
Gtk::ComboBoxText format_selector;
|
Gtk::ComboBoxText format_selector;
|
||||||
Gtk::ComboBoxText encode_selector;
|
Gtk::ComboBoxText encode_selector;
|
||||||
|
Gtk::CheckButton only_used_checkbox;
|
||||||
|
|
||||||
Gtk::ProgressBar progress_bar;
|
Gtk::ProgressBar progress_bar;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user