mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Reduce #includes - avoid ardour_ui.h
This commit is contained in:
parent
d42c0f2d60
commit
2e5daf2eeb
7 changed files with 49 additions and 12 deletions
|
|
@ -32,8 +32,8 @@
|
|||
#include "widgets/ardour_button.h"
|
||||
#include "widgets/ardour_knob.h"
|
||||
|
||||
#include "ardour_ui.h"
|
||||
#include "automation_controller.h"
|
||||
#include "context_menu_helper.h"
|
||||
#include "gui_thread.h"
|
||||
#include "note_select_dialog.h"
|
||||
#include "timers.h"
|
||||
|
|
@ -303,14 +303,14 @@ AutomationController::on_button_release(GdkEventButton* ev)
|
|||
|
||||
const ARDOUR::ParameterDescriptor& desc = _controllable->desc();
|
||||
if (desc.unit == ARDOUR::ParameterDescriptor::MIDI_NOTE) {
|
||||
Gtk::Menu* menu = ARDOUR_UI::instance()->shared_popup_menu ();
|
||||
Gtk::Menu* menu = ARDOUR_UI_UTILS::shared_popup_menu ();
|
||||
MenuList& items = menu->items();
|
||||
items.push_back(MenuElem(_("Select Note..."),
|
||||
sigc::mem_fun(*this, &AutomationController::run_note_select_dialog)));
|
||||
menu->popup(1, ev->time);
|
||||
return true;
|
||||
} else if (desc.unit == ARDOUR::ParameterDescriptor::HZ) {
|
||||
Gtk::Menu* menu = ARDOUR_UI::instance()->shared_popup_menu ();
|
||||
Gtk::Menu* menu = ARDOUR_UI_UTILS::shared_popup_menu ();
|
||||
MenuList& items = menu->items();
|
||||
items.push_back(MenuElem(_("Halve"),
|
||||
sigc::bind(sigc::mem_fun(*this, &AutomationController::set_ratio),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue