mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
a variety of changes to make timeline-region editing-in-pianoroll to start to work
This also removes the useless "new pianoroll window" menu option and action
This commit is contained in:
parent
f052c3ae15
commit
ab39c26f68
16 changed files with 112 additions and 48 deletions
|
|
@ -888,30 +888,6 @@ ARDOUR_UI::toggle_meterbridge ()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::new_pianoroll_window ()
|
||||
{
|
||||
RefPtr<Action> act = ActionManager::get_action (X_("Common"), X_("new-pianoroll"));
|
||||
if (!act) {
|
||||
return;
|
||||
}
|
||||
|
||||
std::list<PianorollWindow*>::iterator i = _pianoroll_windows.begin ();
|
||||
while (i != _pianoroll_windows.end() && (*i)->get_visible() == true) {
|
||||
++i;
|
||||
}
|
||||
|
||||
if (i == _pianoroll_windows.end()) {
|
||||
/* all our MIDITracer windows are visible; make a new one */
|
||||
PianorollWindow* pr = new PianorollWindow (string_compose (_("Pianoroll %1"), _pianoroll_windows.size() + 1));
|
||||
pr->show_all ();
|
||||
_pianoroll_windows.push_back (pr);
|
||||
} else {
|
||||
/* re-use the hidden one */
|
||||
(*i)->show_all ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::new_midi_tracer_window ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue