#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();
void
-ExportRegionDialog::export_audio_data()
+ExportRegionDialog::export_data()
{
pthread_t thr;
pthread_create_and_store ("region export", &thr, 0, ExportRegionDialog::_export_region_thread, this);
void
ExportRegionDialog::export_region ()
{
- audio_region->exportme (getSession(), spec);
+ region->exportme (getSession(), spec);
}
+