gbaychev / NClass

NClass - the free UML editor, reloaded
GNU General Public License v3.0
172 stars 50 forks source link

Implement undo/redo #23

Closed gbaychev closed 4 years ago

gbaychev commented 5 years ago

Implement undo/redo functionality. In order for this to function, the Command pattern will be implemented.

The MVP will contain the following

Command Implemented
DeleteElementsCommand
  • - [x]
ChangePropertyCommand
  • - [x]
AddConnectionCommand
  • - [x]
AddMemberCommand
  • - [X]
AddShapeCommand
  • - [x]
MoveElementsCommand
  • - [x]
PasteCommand
  • - [x]
DeleteMemberCommand
  • - [x]
AddEnumValueCommand
  • - [x]
RenameEnumValueCommand
  • - [x]
DeleteEnumValueCommand
  • - [x]
AddDelegateParameterCommand
  • - [x]
RenameDelegateParameterCommand
  • - [x]
DeleteDelegateParameterCommand
  • - [x]
gbaychev commented 4 years ago

Something weird happens when undoing the deletion of shape, which is attached to a connection, should fix it before release.