if a clock is in delta-edit, it should be set to show a duration. this matters in BBT mode, where "zero" is 0|0|0 in duration mode and 1|1|0 otherwise. there is still a bug with the mouse tracking in delta edit mode, but that is a separate issue
git-svn-id: svn://localhost/ardour2/branches/3.0@7905 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "ardour/configuration.h"
|
||||
#include "ardour/session.h"
|
||||
#include "ardour/audioengine.h"
|
||||
#include "ardour/rc_configuration.h"
|
||||
|
||||
#ifdef HAVE_LIBLO
|
||||
#include "ardour/osc.h"
|
||||
@@ -422,7 +423,12 @@ ARDOUR_UI::parameter_changed (std::string p)
|
||||
|
||||
} else if (p == "show-track-meters") {
|
||||
editor->toggle_meter_updating();
|
||||
}
|
||||
} else if (p == "primary-clock-delta-edit-cursor") {
|
||||
primary_clock.set_is_duration (Config->get_primary_clock_delta_edit_cursor());
|
||||
} else if (p == "secondary-clock-delta-edit-cursor") {
|
||||
secondary_clock.set_is_duration (Config->get_secondary_clock_delta_edit_cursor());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -2126,3 +2126,14 @@ AudioClock::on_style_changed (const Glib::RefPtr<Style>& old_style)
|
||||
|
||||
set_size_requests ();
|
||||
}
|
||||
|
||||
void
|
||||
AudioClock::set_is_duration (bool yn)
|
||||
{
|
||||
if (yn == is_duration) {
|
||||
return;
|
||||
}
|
||||
|
||||
is_duration = yn;
|
||||
set (last_when, true, 0, 's');
|
||||
}
|
||||
|
||||
@@ -55,6 +55,7 @@ class AudioClock : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||
void locate ();
|
||||
void set_mode (Mode);
|
||||
void set_bbt_reference (framepos_t);
|
||||
void set_is_duration (bool);
|
||||
|
||||
void set_widget_name (std::string);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user