Brought back visual indication of delete dragging.
[ardour.git] / gtk2_ardour / export_session_dialog.cc
1 /*
2     Copyright (C) 2006 Paul Davis
3     Author: Andre Raue
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 */
20
21 #include "ardour_ui.h"
22 #include "export_session_dialog.h"
23
24 #include "i18n.h"
25
26 ExportSessionDialog::ExportSessionDialog (PublicEditor& editor) 
27         : ExportDialog(editor)
28 {
29         file_frame.set_label (_("Export to File"));
30 }
31         
32 void 
33 ExportSessionDialog::export_audio_data ()
34 {
35         if (getSession().start_audio_export (spec)) {
36                 return;
37         }
38
39         gtk_main_iteration ();
40         while (spec.running) {
41                 if (gtk_events_pending()) {
42                         gtk_main_iteration ();
43                 } else {
44                         usleep (10000);
45                 }
46         }
47 }
48
49
50 void
51 ExportSessionDialog::set_range (nframes_t start, nframes_t end)
52 {       
53         ExportDialog::set_range (start, end);
54         
55         // XXX: this is a hack until we figure out what is really wrong
56         getSession().request_locate (spec.start_frame, false);
57 }