Move UIConfiguration Singleton into UIConfiguration header

This removes the direct dependence on ardour_ui.h from 39 files
This commit is contained in:
Tim Mayberry 2015-01-02 21:44:54 +07:00 committed by Paul Davis
parent 45d487f16e
commit 6b019a4953
84 changed files with 726 additions and 712 deletions

View file

@ -34,6 +34,7 @@
#include "prompter.h"
#include "utils.h"
#include "public_editor.h"
#include "ui_config.h"
#include "i18n.h"
@ -1017,7 +1018,7 @@ LocationUI::add_new_location()
framepos_t where = _session->audible_frame();
_session->locations()->next_available_name(markername,"mark");
Location *location = new Location (*_session, where, where, markername, Location::IsMark);
if (ARDOUR_UI::config()->get_name_new_markers()) {
if (UIConfiguration::instance().get_name_new_markers()) {
newest_location = location;
}
PublicEditor::instance().begin_reversible_command (_("add marker"));