Re-expose timecode offset in the session option editor.

git-svn-id: svn://localhost/ardour2/branches/3.0@8146 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-12-01 20:49:22 +00:00
parent 044a2cca8f
commit a5ea47ff0d
12 changed files with 107 additions and 70 deletions

View file

@ -35,6 +35,8 @@ SessionOptionEditor::SessionOptionEditor (Session* s)
: OptionEditor (&(s->config), _("Session Properties"))
, _session_config (&(s->config))
{
set_session (s);
set_name ("SessionProperties");
/* SYNC */
@ -111,6 +113,24 @@ SessionOptionEditor::SessionOptionEditor (Session* s)
add_option (_("Sync"), vpu);
ClockOption* co = new ClockOption (
"timecode-offset",
_("Timecode Offset"),
sigc::mem_fun (*_session_config, &SessionConfiguration::get_timecode_offset),
sigc::mem_fun (*_session_config, &SessionConfiguration::set_timecode_offset)
);
co->set_session (_session);
add_option (_("Sync"), co);
add_option (_("Sync"), new BoolOption (
"timecode-offset-negative",
_("Timecode Offset Negative"),
sigc::mem_fun (*_session_config, &SessionConfiguration::get_timecode_offset_negative),
sigc::mem_fun (*_session_config, &SessionConfiguration::set_timecode_offset_negative)
));
/* FADES */
ComboOption<CrossfadeModel>* cfm = new ComboOption<CrossfadeModel> (