add tooltip to mini-timeline

This commit is contained in:
Robin Gareus 2016-12-20 03:58:49 +01:00
parent da4d29401a
commit 1fbc9aaa69

View File

@ -31,6 +31,7 @@
#include "main_clock.h"
#include "mini_timeline.h"
#include "timers.h"
#include "tooltips.h"
#include "ui_config.h"
#include "pbd/i18n.h"
@ -69,6 +70,11 @@ MiniTimeline::MiniTimeline ()
Location::start_changed.connect (marker_connection, invalidator (*this), boost::bind (&MiniTimeline::update_minitimeline, this), gui_context ());
Location::flags_changed.connect (marker_connection, invalidator (*this), boost::bind (&MiniTimeline::update_minitimeline, this), gui_context ());
ARDOUR_UI_UTILS::set_tooltip (*this,
string_compose (_("<b>Navigation Timeline</b>. Use left-click to locate to time position or marker; scroll-wheel to jump, hold %1 for fine gained and %2 + %3 for extra-fine grained control. Right-click to set display range. The display unit is defined by the primary clock."),
Gtkmm2ext::Keyboard::Keyboard::primary_modifier_name(),
Gtkmm2ext::Keyboard::Keyboard::primary_modifier_name (),
Gtkmm2ext::Keyboard::secondary_modifier_name ()));
}
MiniTimeline::~MiniTimeline ()