+ tab_label.set_text (string_compose (_("Format %1: %2"), tab_number, get_format_name()));
+}
+
+void
+ExportFileNotebook::FilePage::update_example_filename()
+{
+ if (profile_manager) {
+ if (profile_manager->get_timespans().size() > 1
+ || profile_manager->get_timespans().front()->timespans->size() > 1) {
+ filename_selector.require_timespan (true);
+ } else {
+ filename_selector.require_timespan (false);
+ }
+
+ std::string example;
+ if (format_state->format) {
+ example = profile_manager->get_sample_filename_for_format (
+ filename_state->filename, format_state->format);
+ }
+
+ if (example != "") {
+ filename_selector.set_example_filename(Glib::path_get_basename (example));
+ } else {
+ filename_selector.set_example_filename("");
+ }
+ }
+}
+
+void
+ExportFileNotebook::FilePage::critical_selection_changed ()
+{
+ update_tab_label();
+ update_example_filename();
+ update_analysis_button();
+ update_soundcloud_upload_button();