diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-09-25 17:23:36 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-09-25 17:23:36 +0000 |
commit | 53d6ccf0cc8d01f27c960395d08211c64ca91292 (patch) | |
tree | 1bed19d27bf383f3b3348fc6b2911f977932b31f /gtk2_ardour/sfdb_ui.cc | |
parent | 25508466da50b72398bb0a020318a31bbfdfbe81 (diff) |
new controls for copy-only import; new logo item for canvas
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2481 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r-- | gtk2_ardour/sfdb_ui.cc | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index 6cefaa3895..21d56497fb 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -30,6 +30,7 @@ #include <glibmm/fileutils.h> #include <pbd/convert.h> +#include <pbd/fs.h> #include <pbd/tokenizer.h> #include <gtkmm2ext/utils.h> @@ -771,13 +772,18 @@ SoundFileOmega::reset_options () src_combo.set_sensitive (false); } - if (Profile->get_sae()) { + if (Config->get_only_copy_imported_files()) { + if (selection_can_be_embedded_with_links) { copy_files_btn.set_sensitive (true); } else { copy_files_btn.set_sensitive (false); } - } + + } else { + + copy_files_btn.set_sensitive (true); + } return true; } @@ -842,6 +848,7 @@ SoundFileOmega::check_info (const vector<ustring>& paths, bool& same_size, bool& return err; } + bool SoundFileOmega::check_link_status (const Session& s, const vector<ustring>& paths) { @@ -952,6 +959,16 @@ SoundFileOmega::SoundFileOmega (Gtk::Window& parent, string title, ARDOUR::Sessi vbox->pack_start (*hbox, false, false); options.pack_start (*vbox, false, false); + /* dummy entry for action combo so that it doesn't look odd if we + come up with no tracks selected. + */ + + str.clear (); + str.push_back (_("as new tracks")); + set_popdown_strings (action_combo, str); + action_combo.set_active_text (str.front()); + action_combo.set_sensitive (false); + l = manage (new Label); l->set_text (_("Insert:")); |