Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add undo support #94

Open
gavanderhoorn opened this issue Apr 28, 2016 · 1 comment
Open

Add undo support #94

gavanderhoorn opened this issue Apr 28, 2016 · 1 comment

Comments

@gavanderhoorn
Copy link
Member

As per subject. The application should allow the user to undo any (possibly destructive) action he/she has performed.

Some considerations:

  • unlimited undo or only since last save?
  • should only edit actions be undoable (ie: changing values of properties) or also link/joint addition & removal?
@gavanderhoorn
Copy link
Member Author

gavanderhoorn commented Apr 28, 2016

This will probably require (quite) some refactoring of the application: at the very least all user-initiated actions would probably need to be reworked into some variant of the Command pattern.

There appears to be (some) support for this in Qt already. See Overview of Qt's Undo Framework and Undo Framework Example (5+ specific though). Whether this particular framework is usable given the constraints of this application needs to be determined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant