fix incorrect use of MidiBuffer::reserve() and MidiBuffer::write() if channel mask...
[ardour.git] / gtk2_ardour / export_dialog.cc
index 77e75ab0a5eeb0c865102eaafe674e463050459d..50796f2fccd4bc092ebbcd00a806e7d8f8b7f88d 100644 (file)
@@ -131,6 +131,7 @@ ExportDialog::init ()
        //rt_export_button = add_button (_("Realtime Export"), RESPONSE_RT);
        //fast_export_button = add_button (_("Fast Export"), RESPONSE_FAST);
        fast_export_button = add_button (_("Export"), RESPONSE_FAST);
+       set_default_response (RESPONSE_FAST);
 
        list_files_button.set_name ("PaddedButton");
 
@@ -318,7 +319,7 @@ ExportDialog::show_progress ()
                        usleep (10000);
                }
        }
-       
+
        if (!status->aborted()) {
                status->finish ();
        }
@@ -327,26 +328,15 @@ ExportDialog::show_progress ()
 gint
 ExportDialog::progress_timeout ()
 {
-       switch (status->stage) {
-         case export_None:
-               progress_label.set_text ("");
-               break;
-         case export_ReadTimespan:
-               progress_label.set_text (string_compose (_("Reading timespan %1 of %2"), status->timespan, status->total_timespans));
-               break;
-         case export_PostProcess:
-               progress_label.set_text (string_compose (_("Processing file %2 of %3 (%1) from timespan %4 of %5"),
-                                                        file_notebook->get_nth_format_name (status->format),
-                                                        status->format, status->total_formats,
-                                                        status->timespan, status->total_timespans));
-               break;
-         case export_Write:
-               progress_label.set_text (string_compose (_("Encoding file %2 of %3 (%1) from timespan %4 of %5"),
-                                                        file_notebook->get_nth_format_name (status->format),
-                                                        status->format, status->total_formats,
-                                                        status->timespan, status->total_timespans));
-               break;
+       std::string status_text;
+       if (status->normalizing) {
+                status_text = string_compose (_("Normalizing timespan %1 of %2"),
+                                              status->timespan, status->total_timespans);
+       } else {
+               status_text = string_compose (_("Exporting timespan %1 of %2"),
+                                             status->timespan, status->total_timespans);
        }
+       progress_label.set_text (status_text);
 
        progress_bar.set_fraction (status->progress);
        return TRUE;
@@ -436,7 +426,7 @@ ExportRegionDialog::init_components ()
 StemExportDialog::StemExportDialog (PublicEditor & editor)
   : ExportDialog(editor, _("Stem Export"), X_("StemExportProfile"))
 {
-       
+
 }
 
 void