Clarify that there are no archive file format options
This commit is contained in:
parent
6d29a0e99b
commit
02220783e1
@ -34,15 +34,13 @@ using namespace ARDOUR;
|
|||||||
SessionArchiveDialog::SessionArchiveDialog ()
|
SessionArchiveDialog::SessionArchiveDialog ()
|
||||||
: ArdourDialog (_("Zip/Archive Current Session"))
|
: ArdourDialog (_("Zip/Archive Current Session"))
|
||||||
, ProgressReporter ()
|
, ProgressReporter ()
|
||||||
|
, format_Label (ARDOUR::session_archive_suffix)
|
||||||
, only_used_checkbox (_("Exclude unused audio sources"))
|
, only_used_checkbox (_("Exclude unused audio sources"))
|
||||||
{
|
{
|
||||||
VBox* vbox = get_vbox();
|
VBox* vbox = get_vbox();
|
||||||
|
|
||||||
vbox->set_spacing (6);
|
vbox->set_spacing (6);
|
||||||
|
|
||||||
format_selector.append (ARDOUR::session_archive_suffix);
|
|
||||||
format_selector.set_active_text (ARDOUR::session_archive_suffix);
|
|
||||||
|
|
||||||
encode_selector.append (_("None"));
|
encode_selector.append (_("None"));
|
||||||
encode_selector.append (_("FLAC 16bit"));
|
encode_selector.append (_("FLAC 16bit"));
|
||||||
encode_selector.append (_("FLAC 24bit"));
|
encode_selector.append (_("FLAC 24bit"));
|
||||||
@ -66,7 +64,7 @@ SessionArchiveDialog::SessionArchiveDialog ()
|
|||||||
HBox* hbox = manage (new HBox);
|
HBox* hbox = manage (new HBox);
|
||||||
hbox->set_spacing (6);
|
hbox->set_spacing (6);
|
||||||
hbox->pack_start (name_entry, true, true);
|
hbox->pack_start (name_entry, true, true);
|
||||||
hbox->pack_start (format_selector, false, false);
|
hbox->pack_start (format_Label, false, false);
|
||||||
table->attach (*hbox, 1, 2, row, row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::SHRINK);
|
table->attach (*hbox, 1, 2, row, row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::SHRINK);
|
||||||
|
|
||||||
++row;
|
++row;
|
||||||
@ -124,7 +122,7 @@ SessionArchiveDialog::name_entry_changed ()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string dir = Glib::build_filename (target_folder(), name_entry.get_text() + format_selector.get_active_text ());
|
std::string dir = Glib::build_filename (target_folder(), name_entry.get_text() + ARDOUR::session_archive_suffix);
|
||||||
|
|
||||||
if (Glib::file_test (dir, Glib::FILE_TEST_EXISTS)) {
|
if (Glib::file_test (dir, Glib::FILE_TEST_EXISTS)) {
|
||||||
set_response_sensitive (RESPONSE_OK, false);
|
set_response_sensitive (RESPONSE_OK, false);
|
||||||
|
@ -54,7 +54,7 @@ protected:
|
|||||||
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::Label format_Label;
|
||||||
Gtk::ComboBoxText encode_selector;
|
Gtk::ComboBoxText encode_selector;
|
||||||
Gtk::ComboBoxText compression_selector;
|
Gtk::ComboBoxText compression_selector;
|
||||||
Gtk::CheckButton only_used_checkbox;
|
Gtk::CheckButton only_used_checkbox;
|
||||||
|
Loading…
Reference in New Issue
Block a user