Use ARDOUR_UI_UTILS::set_tooltip rather than via ARDOUR_UI::set_tip

This removes the direct dependence on ARDOUR_UI/Gtk_UI for setting
tooltips. Removes inclusion of ardour_ui.h from 16 files.
This commit is contained in:
Tim Mayberry 2015-01-05 12:32:14 +07:00 committed by Paul Davis
parent 2031007a3a
commit 1d42ed077e
25 changed files with 166 additions and 154 deletions

View file

@ -34,6 +34,7 @@
#include "prompter.h"
#include "utils.h"
#include "public_editor.h"
#include "tooltips.h"
#include "ui_config.h"
#include "i18n.h"
@ -315,20 +316,20 @@ LocationEditRow::set_location (Location *loc)
show_cd_track_details ();
}
ARDOUR_UI::instance()->set_tip (remove_button, _("Remove this range"));
ARDOUR_UI::instance()->set_tip (start_clock, _("Start time - middle click to locate here"));
ARDOUR_UI::instance()->set_tip (end_clock, _("End time - middle click to locate here"));
ARDOUR_UI::instance()->set_tip (length_clock, _("Length"));
set_tooltip (remove_button, _("Remove this range"));
set_tooltip (start_clock, _("Start time - middle click to locate here"));
set_tooltip (end_clock, _("End time - middle click to locate here"));
set_tooltip (length_clock, _("Length"));
ARDOUR_UI::instance()->set_tip (start_to_playhead_button, _("Set range start from playhead location"));
ARDOUR_UI::instance()->set_tip (end_to_playhead_button, _("Set range end from playhead location"));
set_tooltip (start_to_playhead_button, _("Set range start from playhead location"));
set_tooltip (end_to_playhead_button, _("Set range end from playhead location"));
} else {
ARDOUR_UI::instance()->set_tip (remove_button, _("Remove this marker"));
ARDOUR_UI::instance()->set_tip (start_clock, _("Position - middle click to locate here"));
set_tooltip (remove_button, _("Remove this marker"));
set_tooltip (start_clock, _("Position - middle click to locate here"));
ARDOUR_UI::instance()->set_tip (start_to_playhead_button, _("Set marker time from playhead location"));
set_tooltip (start_to_playhead_button, _("Set marker time from playhead location"));
end_clock.hide();
length_clock.hide();