|
|
@ -4469,12 +4469,20 @@ void Basket::noteUngroup()
|
|
|
|
|
|
|
|
|
|
|
|
void Basket::unplugSelection(NoteSelection *selection)
|
|
|
|
void Basket::unplugSelection(NoteSelection *selection)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!selection)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
for (NoteSelection *toUnplug = selection->firstStacked(); toUnplug; toUnplug = toUnplug->nextStacked())
|
|
|
|
for (NoteSelection *toUnplug = selection->firstStacked(); toUnplug; toUnplug = toUnplug->nextStacked())
|
|
|
|
unplugNote(toUnplug->note);
|
|
|
|
unplugNote(toUnplug->note);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Basket::insertSelection(NoteSelection *selection, Note *after)
|
|
|
|
void Basket::insertSelection(NoteSelection *selection, Note *after)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!selection)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
for (NoteSelection *toUnplug = selection->firstStacked(); toUnplug; toUnplug = toUnplug->nextStacked()) {
|
|
|
|
for (NoteSelection *toUnplug = selection->firstStacked(); toUnplug; toUnplug = toUnplug->nextStacked()) {
|
|
|
|
if (toUnplug->note->isGroup()) {
|
|
|
|
if (toUnplug->note->isGroup()) {
|
|
|
|
Note *group = new Note(this);
|
|
|
|
Note *group = new Note(this);
|
|
|
@ -4496,6 +4504,10 @@ void Basket::insertSelection(NoteSelection *selection, Note *after)
|
|
|
|
|
|
|
|
|
|
|
|
void Basket::selectSelection(NoteSelection *selection)
|
|
|
|
void Basket::selectSelection(NoteSelection *selection)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!selection)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
for (NoteSelection *toUnplug = selection->firstStacked(); toUnplug; toUnplug = toUnplug->nextStacked()) {
|
|
|
|
for (NoteSelection *toUnplug = selection->firstStacked(); toUnplug; toUnplug = toUnplug->nextStacked()) {
|
|
|
|
if (toUnplug->note->isGroup())
|
|
|
|
if (toUnplug->note->isGroup())
|
|
|
|
selectSelection(toUnplug);
|
|
|
|
selectSelection(toUnplug);
|
|
|
|