summaryrefslogtreecommitdiff
path: root/gtk2_ardour/session_option_editor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-10-11 03:10:18 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-10-11 03:10:18 +0000
commit9707a0e8271a54dd21e49d6ca9ae98378ac4f8a5 (patch)
tree3db9d9cab869d2bfab9f68b1afca56b1da5811fe /gtk2_ardour/session_option_editor.cc
parent1a530550196050dfe4a67732965ae3ddc3e1b077 (diff)
move the external sync source selection tobe a global config parameter, not per-session, since this is likely a reflection of studio setup, h/w etc.; starting using real tooltips in the RC option editor
git-svn-id: svn://localhost/ardour2/branches/3.0@13237 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/session_option_editor.cc')
-rw-r--r--gtk2_ardour/session_option_editor.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/gtk2_ardour/session_option_editor.cc b/gtk2_ardour/session_option_editor.cc
index 6834a9ddea..c0c8bc07cd 100644
--- a/gtk2_ardour/session_option_editor.cc
+++ b/gtk2_ardour/session_option_editor.cc
@@ -37,18 +37,6 @@ SessionOptionEditor::SessionOptionEditor (Session* s)
/* TIMECODE*/
- _sync_source = new ComboOption<SyncSource> (
- "sync-source",
- _("External timecode source"),
- sigc::mem_fun (*_session_config, &SessionConfiguration::get_sync_source),
- sigc::mem_fun (*_session_config, &SessionConfiguration::set_sync_source)
- );
-
- populate_sync_options ();
- parameter_changed (string ("external-sync"));
-
- add_option (_("Timecode"), _sync_source);
-
add_option (_("Timecode"), new OptionEditorHeading (_("Timecode Settings")));
ComboOption<TimecodeFormat>* smf = new ComboOption<TimecodeFormat> (
@@ -300,25 +288,9 @@ SessionOptionEditor::SessionOptionEditor (Session* s)
}
void
-SessionOptionEditor::populate_sync_options ()
-{
- vector<SyncSource> sync_opts = _session->get_available_sync_options ();
-
- _sync_source->clear ();
-
- for (vector<SyncSource>::iterator i = sync_opts.begin(); i != sync_opts.end(); ++i) {
- _sync_source->add (*i, sync_source_to_string (*i));
- }
-}
-
-void
SessionOptionEditor::parameter_changed (std::string const & p)
{
OptionEditor::parameter_changed (p);
-
- if (p == "external-sync") {
- _sync_source->set_sensitive (!_session->config.get_external_sync ());
- }
}
/* the presence of absence of a monitor section is not really a regular session