summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_range_markers_dialog.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-03-05 19:45:12 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-03-05 19:45:12 +0000
commit9d72c26b7353ce3bc8ee38f06de59ae68588ee20 (patch)
treed9ee054c8c5d944211df67cbc444067ef159c2a3 /gtk2_ardour/export_range_markers_dialog.h
parent5a39bf595c737dbb36666a9e718ac267e9131380 (diff)
add new files for export dialogs
git-svn-id: svn://localhost/trunk/ardour2@350 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/export_range_markers_dialog.h')
-rw-r--r--gtk2_ardour/export_range_markers_dialog.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/gtk2_ardour/export_range_markers_dialog.h b/gtk2_ardour/export_range_markers_dialog.h
new file mode 100644
index 0000000000..a69e2b749b
--- /dev/null
+++ b/gtk2_ardour/export_range_markers_dialog.h
@@ -0,0 +1,62 @@
+/*
+ Copyright (C) 2006 Andre Raue
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#ifndef __export_range_markers_dialog_h__
+#define __export_range_markers_dialog_h__
+
+#include <ardour/location.h>
+
+#include "export_dialog.h"
+
+
+class ExportRangeMarkersDialog : public ExportDialog
+{
+ public:
+ ExportRangeMarkersDialog (PublicEditor&);
+
+ protected:
+ virtual bool is_filepath_valid(string &filepath);
+
+ void export_audio_data();
+
+ private:
+ // keeps the duration of all range_markers before the current
+ vector<jack_nframes_t> range_markers_durations_aggregated;
+ vector<jack_nframes_t> range_markers_durations;
+ // duration of all range markers
+ jack_nframes_t total_duration;
+ // index of range marker, that get's exported right now
+ unsigned int current_range_marker_index;
+
+ // sets value of progress bar
+ virtual gint progress_timeout ();
+
+ // initializes range_markers_durations_aggregated, range_markers_durations
+ // and total_duration
+ void init_progress_computing(ARDOUR::Locations::LocationList& locations);
+
+ // searches for a filename like "<filename><nr>.<postfix>" in path, that
+ // does not exist
+ string get_target_filepath(string path, string filename, string postfix);
+
+ void process_range_markers_export(ARDOUR::Locations::LocationList&);
+};
+
+
+#endif // __export_range_markers_dialog_h__