summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/export_format_dialog.cc21
-rw-r--r--gtk2_ardour/export_format_dialog.h3
2 files changed, 22 insertions, 2 deletions
diff --git a/gtk2_ardour/export_format_dialog.cc b/gtk2_ardour/export_format_dialog.cc
index e0f6d51216..d93eb23a2a 100644
--- a/gtk2_ardour/export_format_dialog.cc
+++ b/gtk2_ardour/export_format_dialog.cc
@@ -36,6 +36,7 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
applying_changes_from_engine (0),
name_label (_("Label: "), Gtk::ALIGN_LEFT),
+ name_generated_part ("", Gtk::ALIGN_LEFT),
normalize_checkbox (_("Normalize to:")),
normalize_adjustment (0.00, -90.00, 0.00, 0.1, 0.2),
@@ -72,16 +73,22 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
/* Pack containers in dialog */
- get_vbox()->pack_start (name_hbox, false, false, 0);
get_vbox()->pack_start (silence_table, false, false, 6);
get_vbox()->pack_start (format_table, false, false, 6);
get_vbox()->pack_start (encoding_options_vbox, false, false, 0);
get_vbox()->pack_start (cue_toc_vbox, false, false, 0);
+ get_vbox()->pack_start (name_hbox, false, false, 6);
/* Name, new and remove */
name_hbox.pack_start (name_label, false, false, 0);
- name_hbox.pack_start (name_entry, true, true, 0);
+ name_hbox.pack_start (name_entry, false, false, 0);
+ name_hbox.pack_start (name_generated_part, true, true, 0);
+ name_entry.set_width_chars(20);
+ update_description();
+ manager.DescriptionChanged.connect(
+ *this, invalidator (*this),
+ boost::bind (&ExportFormatDialog::update_description, this), gui_context());
/* Normalize */
@@ -711,6 +718,16 @@ ExportFormatDialog::update_with_toc ()
}
void
+ExportFormatDialog::update_description()
+{
+ std::string text;
+ if (format->is_complete()) {
+ text = ": " + format->description(false);
+ }
+ name_generated_part.set_text(text);
+}
+
+void
ExportFormatDialog::update_name ()
{
manager.set_name (name_entry.get_text());
diff --git a/gtk2_ardour/export_format_dialog.h b/gtk2_ardour/export_format_dialog.h
index 9e395da01d..8d37ded2cd 100644
--- a/gtk2_ardour/export_format_dialog.h
+++ b/gtk2_ardour/export_format_dialog.h
@@ -110,6 +110,8 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
void change_compatibility (bool compatibility, boost::weak_ptr<T> w_ptr, Glib::RefPtr<Gtk::ListStore> & list, ColsT & cols,
std::string const & c_incompatible = "red", std::string const & c_compatible = "white");
+ void update_description();
+
uint32_t applying_changes_from_engine;
/*** Non-interactive selections ***/
@@ -151,6 +153,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
Gtk::Label name_label;
Gtk::Entry name_entry;
+ Gtk::Label name_generated_part;
/* Normalize */