summaryrefslogtreecommitdiff
path: root/gtk2_ardour/sfdb_ui.cc
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2006-09-01 01:59:41 +0000
committerTaybin Rutkin <taybin@taybin.com>2006-09-01 01:59:41 +0000
commit78e13c37f482552881c3b68ce08a80793df15152 (patch)
treef0f042b1efb402924c65e62638562bde84dfea15 /gtk2_ardour/sfdb_ui.cc
parent9bc22f6f86deb4258faf298b45cb117f09af8f96 (diff)
Synced string array in sfdb_ui.cc with ImportMode enum.
Cleaned up CoreAudioSource by using CAAudioFile. git-svn-id: svn://localhost/ardour2/trunk@881 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r--gtk2_ardour/sfdb_ui.cc17
1 files changed, 10 insertions, 7 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc
index 0f167776b0..5cfcf56337 100644
--- a/gtk2_ardour/sfdb_ui.cc
+++ b/gtk2_ardour/sfdb_ui.cc
@@ -36,6 +36,7 @@
#include <ardour/source_factory.h>
#include "ardour_ui.h"
+#include "editing.h"
#include "gui_thread.h"
#include "prompter.h"
#include "sfdb_ui.h"
@@ -305,6 +306,15 @@ SoundFileBox::field_selected ()
}
}
+// this needs to be kept in sync with the ImportMode enum defined in editing.h and editing_syms.h.
+static const char *import_mode_strings[] = {
+ X_("Add to Region list"),
+ X_("Add to selected Track(s)"),
+ X_("Add as new Track(s)"),
+ X_("Add as new Tape Track(s)"),
+ 0
+};
+
SoundFileBrowser::SoundFileBrowser (string title, ARDOUR::Session* s)
: ArdourDialog (title, false),
chooser (Gtk::FILE_CHOOSER_ACTION_OPEN)
@@ -339,13 +349,6 @@ SoundFileChooser::SoundFileChooser (string title, ARDOUR::Session* s)
show_all ();
}
-static const char *import_mode_strings[] = {
- X_("Add to Region list"),
- X_("Add as new Track(s)"),
- X_("Add to selected Track(s)"),
- 0
-};
-
vector<string> SoundFileOmega::mode_strings;
SoundFileOmega::SoundFileOmega (string title, ARDOUR::Session* s)