
Undo
Reported by Gabor Horvath | November 9th, 2009 @ 08:33 PM | in medium term
Somebody said today: "Songscribe needs undo".
Any chance?
Comments and changes to this ticket
-
Csaba November 24th, 2009 @ 06:11 AM
- State changed from new to invalid
No, not in the near future.
-
Gabor Horvath January 12th, 2010 @ 06:42 PM
- State changed from invalid to open
Reopening the ticket, and adding a comment from Marc:
"I sometimes found myself looking for an [undo] button of some sort, but there doesn't seem to be any. Maybe it's a rather complicated thing to program into the software, but I think I'd very much like one :)."
My comment: Since the .mssw files are very small, it would be a VERY simple solution to store the last 10 versions of the whole file in the memory. So you do not have to remember that a note has been inserted here or there, you just save the whole file in the memory after every change, and then you can easily step back if necessary. Same as loading and saving from/to the disk, just using the memory.
Would the Undo be possible this way?
-
Csaba January 17th, 2010 @ 10:28 PM
- Milestone set to medium term
Yes, this is not the classic Java approach of undo: the Java expects us define a counter-action for each action we make.
However, this is a good idea, and I will make some investigation.
Unfortunately, the MVC is not well designed, so sometimes it is not so easy to differentiate the view and control. So even if we can take a snapshot of the model after each action, it is not guaranteed that I find all the actions, so if we miss one, the undo will also fail, and I will get the bug reports. :-)
So we leave this ticket open, and when I introduce a jdom representation of model, and use it for xml read/write (for MusicXML also), we can consider this ticket once again.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
SongScribe is a song editor program especially designed to support music composed by Maestro Sri Chinmoy.