add global region fade toggle; fixup (?) reload of MIDI config state (both ported...
[ardour.git] / gtk2_ardour / export_region_dialog.cc
index 1964fabbfe61ce979143ed3455f7dc8d969ccd65..f73b990880fe9d7ecf3d95501ba58b46f8151aa3 100644 (file)
 #include "i18n.h"
 
 
-ExportRegionDialog::ExportRegionDialog (PublicEditor& editor, ARDOUR::Region* region
+ExportRegionDialog::ExportRegionDialog (PublicEditor& editor, boost::shared_ptr<ARDOUR::Region> reg
        : ExportDialog(editor)
+       , region(reg)
 {
-       // FIXME
-       ARDOUR::AudioRegion* audio_region = dynamic_cast<ARDOUR::AudioRegion*>(region);
-       assert(audio_region);
+       assert(region);
+
+       set_title (_("Ardour: Export Region"));
+       file_frame.set_label (_("Export to File")),
 
        do_not_allow_track_and_master_selection();
        do_not_allow_channel_count_selection();
@@ -41,7 +43,7 @@ ExportRegionDialog::ExportRegionDialog (PublicEditor& editor, ARDOUR::Region* re
 
 
 void
-ExportRegionDialog::export_audio_data()
+ExportRegionDialog::export_data()
 {
        pthread_t thr;
        pthread_create_and_store ("region export", &thr, 0, ExportRegionDialog::_export_region_thread, this);
@@ -69,5 +71,6 @@ ExportRegionDialog::_export_region_thread (void *arg)
 void
 ExportRegionDialog::export_region ()
 {
-       audio_region->exportme (getSession(), spec);
+       region->exportme (getSession(), spec);
 }
+