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