mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Move UIConfiguration Singleton into UIConfiguration header
This removes the direct dependence on ardour_ui.h from 39 files
This commit is contained in:
parent
45d487f16e
commit
6b019a4953
84 changed files with 726 additions and 712 deletions
|
|
@ -37,7 +37,6 @@
|
|||
#include "editor.h"
|
||||
#include "keyboard.h"
|
||||
#include "public_editor.h"
|
||||
#include "ardour_ui.h"
|
||||
#include "audio_region_view.h"
|
||||
#include "audio_streamview.h"
|
||||
#include "audio_time_axis.h"
|
||||
|
|
@ -49,6 +48,7 @@
|
|||
#include "editor_drag.h"
|
||||
#include "midi_time_axis.h"
|
||||
#include "editor_regions.h"
|
||||
#include "ui_config.h"
|
||||
#include "verbose_cursor.h"
|
||||
|
||||
#include "i18n.h"
|
||||
|
|
@ -1247,7 +1247,7 @@ Editor::track_canvas_drag_motion (Glib::RefPtr<Gdk::DragContext> const& context,
|
|||
* TODO: check if file is audio/midi, allow drops on same track-type only,
|
||||
* currently: if audio is dropped on a midi-track, it is only added to the region-list
|
||||
*/
|
||||
if (Profile->get_sae() || ARDOUR_UI::config()->get_only_copy_imported_files()) {
|
||||
if (Profile->get_sae() || UIConfiguration::instance().get_only_copy_imported_files()) {
|
||||
context->drag_status(Gdk::ACTION_COPY, time);
|
||||
} else {
|
||||
if ((context->get_actions() & (Gdk::ACTION_COPY | Gdk::ACTION_LINK | Gdk::ACTION_MOVE)) == Gdk::ACTION_COPY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue