summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_export_audio.cc
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2008-09-29 17:01:52 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2008-09-29 17:01:52 +0000
commitef9beb3f60b5499d4db48b771627b6facfe872d3 (patch)
treeda164d4da8e7812cbc1865e544d659e4f4ddbd3c /gtk2_ardour/editor_export_audio.cc
parent8807d0f748b424115393707f031d59b760080e8e (diff)
* Fixed const correctness error in Location
* Reworked ExportMainDialog in preparation for the creation of CD and region export dialogs: * Separated ExportPresetSelector and ExportFileNotebook from ExportMainDialog * Made ExportTimespanSelector polymorphic regarding single/multiple timespan mode * renamed ExportMainDialog to ExportDialog and made it easily customizable * created ExportRangeDialog and ExportSelectionDialog, these can be later customized more if necessary git-svn-id: svn://localhost/ardour2/branches/3.0@3834 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_export_audio.cc')
-rw-r--r--gtk2_ardour/editor_export_audio.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_export_audio.cc b/gtk2_ardour/editor_export_audio.cc
index ac68f6d907..b382200d38 100644
--- a/gtk2_ardour/editor_export_audio.cc
+++ b/gtk2_ardour/editor_export_audio.cc
@@ -24,7 +24,7 @@
#include <gtkmm/messagedialog.h>
-#include "export_main_dialog.h"
+#include "export_dialog.h"
#include "editor.h"
#include "public_editor.h"
#include "selection.h"
@@ -54,7 +54,7 @@ using namespace Gtk;
void
Editor::export_audio ()
{
- ExportMainDialog dialog (*this);
+ ExportDialog dialog (*this);
dialog.set_session (session);
dialog.run();
}
@@ -62,9 +62,8 @@ Editor::export_audio ()
void
Editor::export_selection ()
{
- ExportMainDialog dialog (*this);
+ ExportSelectionDialog dialog (*this);
dialog.set_session (session);
- dialog.select_timespan (X_("selection"));
dialog.run();
}
@@ -82,9 +81,8 @@ Editor::export_range ()
bool is_start;
if (((l = find_location_from_marker (marker, is_start)) != 0) && (l->end() > l->start())) {
- ExportMainDialog dialog (*this);
+ ExportRangeDialog dialog (*this, l->id().to_s());
dialog.set_session (session);
- dialog.select_timespan (l->id().to_s());
dialog.run();
}
}