X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fexport_range_markers_dialog.h;h=b0a29b5dc291e737acde9a06fd1756e756ed7ec5;hb=fddb3778120e25b3b8e8134084e260dac07c1365;hp=a69e2b749b8a89cdb35a10876b1817d7579ba451;hpb=9d72c26b7353ce3bc8ee38f06de59ae68588ee20;p=ardour.git diff --git a/gtk2_ardour/export_range_markers_dialog.h b/gtk2_ardour/export_range_markers_dialog.h index a69e2b749b..b0a29b5dc2 100644 --- a/gtk2_ardour/export_range_markers_dialog.h +++ b/gtk2_ardour/export_range_markers_dialog.h @@ -20,38 +20,42 @@ #ifndef __export_range_markers_dialog_h__ #define __export_range_markers_dialog_h__ -#include +#include "ardour/location.h" #include "export_dialog.h" -class ExportRangeMarkersDialog : public ExportDialog +class ExportRangeMarkersDialog : public ExportDialog { public: ExportRangeMarkersDialog (PublicEditor&); - + + Gtk::FileChooserAction browse_action() const; + protected: virtual bool is_filepath_valid(string &filepath); - void export_audio_data(); - + void export_data(); + + bool wants_dir() { return true; } + private: // keeps the duration of all range_markers before the current - vector range_markers_durations_aggregated; - vector range_markers_durations; + vector range_markers_durations_aggregated; + vector range_markers_durations; // duration of all range markers - jack_nframes_t total_duration; + 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 "." in path, that + // searches for a filename like "." in path, that // does not exist string get_target_filepath(string path, string filename, string postfix);