region list patch #2 from chris g, slightly reworked by me; sv_se po changes, possibl...
[ardour.git] / gtk2_ardour / export_region_dialog.cc
index cb3804c11b224f3694c4d6264cd3a22f3ada6b11..f73b990880fe9d7ecf3d95501ba58b46f8151aa3 100644 (file)
 #include "i18n.h"
 
 
-ExportRegionDialog::ExportRegionDialog (PublicEditor& editor, boost::shared_ptr<ARDOUR::Region> region
+ExportRegionDialog::ExportRegionDialog (PublicEditor& editor, boost::shared_ptr<ARDOUR::Region> reg) 
        : ExportDialog(editor)
+       , region(reg)
 {
-       set_title (_("ardour: export region"));
-       file_frame.set_label (_("Export to File")),
+       assert(region);
 
-       audio_region = boost::dynamic_pointer_cast<ARDOUR::AudioRegion>(region);
-       assert(audio_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();
@@ -43,7 +43,7 @@ ExportRegionDialog::ExportRegionDialog (PublicEditor& editor, boost::shared_ptr<
 
 
 void
-ExportRegionDialog::export_audio_data()
+ExportRegionDialog::export_data()
 {
        pthread_t thr;
        pthread_create_and_store ("region export", &thr, 0, ExportRegionDialog::_export_region_thread, this);
@@ -71,5 +71,6 @@ ExportRegionDialog::_export_region_thread (void *arg)
 void
 ExportRegionDialog::export_region ()
 {
-       audio_region->exportme (getSession(), spec);
+       region->exportme (getSession(), spec);
 }
+