mackie: substantial reworking of flip mode with large chunks of code no longer used.
[ardour.git] / gtk2_ardour / export_video_dialog.cc
index a21a9037e2d99be6d4aaf51fc6d51e484b8f4ced..10ec8ac882d57d7edda00f61656ce51a3c0d02d4 100644 (file)
@@ -112,7 +112,7 @@ ExportVideoDialog::ExportVideoDialog ()
        /* check if ffmpeg can be found */
        _transcoder = new TranscodeFfmpeg(X_(""));
        if (!_transcoder->ffexec_ok()) {
-               l = manage (new Label (_("No ffprobe or ffmpeg executables could be found on this system. Video Export is not possible until you install those tools. See the Log window for more information."), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
+               l = manage (new Label (_("ffmpeg installation was not found. Video Export is not possible. See the Log window for more information."), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
                l->set_line_wrap();
                vbox->pack_start (*l, false, false, 8);
                get_vbox()->pack_start (*vbox, false, false);
@@ -150,7 +150,6 @@ ExportVideoDialog::ExportVideoDialog ()
        path_hbox->pack_start (*l, false, false, 2);
        vbox->pack_start (*path_hbox, false, false, 2);
 
-       insnd_combo.set_name ("PaddedButton");
        insnd_combo.append_text (string_compose (_("from the %1 session's start to the session's end"), PROGRAM_NAME));
        outfn_path_entry.set_width_chars(38);
 
@@ -202,7 +201,6 @@ ExportVideoDialog::ExportVideoDialog ()
        t->attach (debug_checkbox, 0, 4, ty, ty+1); ty++;
 #endif
 
-       preset_combo.set_name ("PaddedButton");
        preset_combo.append_text("none");
        preset_combo.append_text("dvd-mp2");
        preset_combo.append_text("dvd-NTSC");
@@ -214,7 +212,6 @@ ExportVideoDialog::ExportVideoDialog ()
        preset_combo.append_text("webm");
        preset_combo.append_text("you-tube");
 
-       audio_codec_combo.set_name ("PaddedButton");
        audio_codec_combo.append_text(_("(default for format)"));
        audio_codec_combo.append_text("ac3");
        audio_codec_combo.append_text("aac");
@@ -223,7 +220,6 @@ ExportVideoDialog::ExportVideoDialog ()
        audio_codec_combo.append_text("mp2");
        audio_codec_combo.append_text("pcm_s16le");
 
-       video_codec_combo.set_name ("PaddedButton");
        video_codec_combo.append_text(_("(default for format)"));
        video_codec_combo.append_text("flv");
        video_codec_combo.append_text("libtheora");
@@ -234,7 +230,6 @@ ExportVideoDialog::ExportVideoDialog ()
        video_codec_combo.append_text("vpx (webm)");
        video_codec_combo.append_text("copy");
 
-       audio_bitrate_combo.set_name ("PaddedButton");
        audio_bitrate_combo.append_text(_("(default)"));
        audio_bitrate_combo.append_text("64k");
        audio_bitrate_combo.append_text("128k");
@@ -242,12 +237,10 @@ ExportVideoDialog::ExportVideoDialog ()
        audio_bitrate_combo.append_text("256k");
        audio_bitrate_combo.append_text("320k");
 
-       audio_samplerate_combo.set_name ("PaddedButton");
        audio_samplerate_combo.append_text("22050");
        audio_samplerate_combo.append_text("44100");
        audio_samplerate_combo.append_text("48000");
 
-       video_bitrate_combo.set_name ("PaddedButton");
        video_bitrate_combo.append_text(_("(default)"));
        video_bitrate_combo.append_text(_("(retain)"));
        video_bitrate_combo.append_text("200k");
@@ -256,7 +249,6 @@ ExportVideoDialog::ExportVideoDialog ()
        video_bitrate_combo.append_text("5000k");
        video_bitrate_combo.append_text("8000k");
 
-       fps_combo.set_name ("PaddedButton");
        fps_combo.append_text("23.976");
        fps_combo.append_text("24");
        fps_combo.append_text("24.976");
@@ -266,7 +258,6 @@ ExportVideoDialog::ExportVideoDialog ()
        fps_combo.append_text("59.94");
        fps_combo.append_text("60");
 
-       aspect_combo.set_name ("PaddedButton");
        aspect_combo.append_text("4:3");
        aspect_combo.append_text("16:9");
 
@@ -619,7 +610,7 @@ ExportVideoDialog::launch_export ()
        _session->add_extra_xml (get_state());
 
        std::string outfn = outfn_path_entry.get_text();
-       if (!confirm_video_outfn(outfn)) { return; }
+       if (!confirm_video_outfn(*this, outfn)) { return; }
 
        vbox->hide();
        cancel_button->hide();