2 Copyright (C) 2006 Andre Raue
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __export_range_markers_dialog_h__
21 #define __export_range_markers_dialog_h__
23 #include <ardour/location.h>
25 #include "export_dialog.h"
28 class ExportRangeMarkersDialog : public ExportDialog
31 ExportRangeMarkersDialog (PublicEditor&);
34 virtual bool is_filepath_valid(string &filepath);
36 void export_audio_data();
38 bool wants_dir() { return true; }
41 // keeps the duration of all range_markers before the current
42 vector<nframes_t> range_markers_durations_aggregated;
43 vector<nframes_t> range_markers_durations;
44 // duration of all range markers
45 nframes_t total_duration;
46 // index of range marker, that get's exported right now
47 unsigned int current_range_marker_index;
49 // sets value of progress bar
50 virtual gint progress_timeout ();
52 // initializes range_markers_durations_aggregated, range_markers_durations
54 void init_progress_computing(ARDOUR::Locations::LocationList& locations);
56 // searches for a filename like "<filename><nr>.<postfix>" in path, that
58 string get_target_filepath(string path, string filename, string postfix);
60 void process_range_markers_export(ARDOUR::Locations::LocationList&);
64 #endif // __export_range_markers_dialog_h__