Zekallinos
Sponsor
Like any windows program, the software I'm trying to make is going to have the undo/redo feature.
Implementing that feature isn't that bad. But there's many things on my form : TreeViews where you can add/remove nodes, Richtext boxes, and eventually some custom controls. That means there's a wide range of possible actions that can be done in any order (edit text, delete a node, move custom controls, edit text again, edit custom control, etc).
Should I have a global class that memorizes all the actions I've done so I can undo them in the order I did them? Or should I have separate "memories" for the various controls (you can undo text modifications to a specific box without undoing the "delete node" that the user did in between).
As an user, what would you find most convenient?
Implementing that feature isn't that bad. But there's many things on my form : TreeViews where you can add/remove nodes, Richtext boxes, and eventually some custom controls. That means there's a wide range of possible actions that can be done in any order (edit text, delete a node, move custom controls, edit text again, edit custom control, etc).
Should I have a global class that memorizes all the actions I've done so I can undo them in the order I did them? Or should I have separate "memories" for the various controls (you can undo text modifications to a specific box without undoing the "delete node" that the user did in between).
As an user, what would you find most convenient?