Chord exposes members add(Element*) and remove(Element*) to the plugin 
framework.
The problem is, both functions are not undo-safe.

Since there has to be done something about it, I can think of two possible 
solutions:

1) Don't expose them
The Cursor already has add(Element*) and I could add a remove(Element*) 
function.
However, there's a major drawback: The Cursor cannot currently be positioned to 
a grace note. So it would be impossible to add/move grace notes which implies a 
limitation to the explode/implode plugins for example.

2) Create undo-safe versions
Drawback here: We'd have almost the same code twice in Cursor.add and Chord.add.

What to do?

heuchi


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to