diff options
author | Taybin Rutkin <taybin@taybin.com> | 2005-12-09 14:16:02 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2005-12-09 14:16:02 +0000 |
commit | 991a00f80a5012d36dfedc5227474b2b4612fbe4 (patch) | |
tree | bde03ec4a83bec38a31bac307c261d603538ebf7 /gtk2_ardour | |
parent | cdd680f0b72a2081e05ad981d0467526310150c8 (diff) |
Uploaded start of CoreAudioSource. More sfdb work.
git-svn-id: svn://localhost/trunk/ardour2@184 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 12 | ||||
-rw-r--r-- | gtk2_ardour/option_editor.h | 12 |
2 files changed, 23 insertions, 1 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 99dcbd0535..0a137f3c42 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -76,7 +76,10 @@ OptionEditor::OptionEditor (ARDOUR_UI& uip, PublicEditor& ed, Mixer_UI& mixui) editor (ed), mixer (mixui), - path_table (9, 2), + /* Paths */ + path_table (11, 2), + sfdb_paths(ListStore::create(sfdb_path_columns)), + sfdb_path_view(sfdb_paths), /* Fades */ @@ -422,6 +425,13 @@ OptionEditor::setup_path_options() path_table.attach (*label, 0, 1, 1, 2, FILL|EXPAND, FILL); path_table.attach (native_format_combo, 1, 3, 1, 2, Gtk::FILL|Gtk::EXPAND, FILL); + label = manage(new Label(_("Soundfile Search Paths"))); + label->set_name("OptionsLabel"); + path_table.attach(*label, 0, 1, 2, 3, FILL|EXPAND, FILL); + path_table.attach(sfdb_path_view, 1, 3, 2, 3, Gtk::FILL|Gtk::EXPAND, FILL); + + sfdb_path_view.append_column(_("Paths"), sfdb_path_columns.paths); + vector<string> nfstrings = internationalize (native_format_strings); set_popdown_strings (native_format_combo, nfstrings); diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index 3cce36611d..77e55dce7a 100644 --- a/gtk2_ardour/option_editor.h +++ b/gtk2_ardour/option_editor.h @@ -80,6 +80,18 @@ class OptionEditor : public Gtk::Dialog Gtk::ComboBoxText native_format_combo; + Glib::RefPtr<Gtk::ListStore> sfdb_paths; + Gtk::TreeView sfdb_path_view; + + struct SoundFilePathColumns : public Gtk::TreeModel::ColumnRecord + { + public: + Gtk::TreeModelColumn<std::string> paths; + + SoundFilePathColumns() { add (paths); } + }; + SoundFilePathColumns sfdb_path_columns; + void setup_path_options(); void add_session_paths (); void remove_session_paths (); |