You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create Command stack.
Make most numeric updates happen via Commands (e.g. when slider has stopped sliding). Add Undo capability to Command class. Command can remember previous value. Need to be able to update UI after undo.
TBD: determine which operations can not be undone and cause the undo stack to be thrown out and started over.
TBD: when input is changed via spin box, how much of it is undo-able? (e.g. On lose focus?)
The text was updated successfully, but these errors were encountered:
Use Case
The codebase needs to be ready to support Undo
Solution
Create Command stack.
Make most numeric updates happen via Commands (e.g. when slider has stopped sliding). Add Undo capability to Command class. Command can remember previous value. Need to be able to update UI after undo.
TBD: determine which operations can not be undone and cause the undo stack to be thrown out and started over.
TBD: when input is changed via spin box, how much of it is undo-able? (e.g. On lose focus?)
The text was updated successfully, but these errors were encountered: