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

PR: Add an undo feature when making changes to the water level data #270

Merged
merged 29 commits into from
Feb 13, 2019

Conversation

jnsebgosselin
Copy link
Owner

@jnsebgosselin jnsebgosselin commented Feb 13, 2019

  • Added an undo feature that allows to undo the last changes made to the water level data
  • Added an clear feature that allows to undo all changes made to the water level data since the last commit.
  • Created a WLDataFrameBase and WLDataFrame classes that holds all the code for the undo feature.

undo_cancel_changes

Store the old water level values at the specified indexes in a stack
before changing or deleting them. This allow to undo or cancel any
changes made to the water level data before commiting them.
Clear all changes that were made to the wldset.
It was not working well
This makes the operation on the data slow. It's less secure though.
Otherwise, the commit feature is broken
@jnsebgosselin jnsebgosselin added this to the gwhat-0.4.0 milestone Feb 13, 2019
@jnsebgosselin jnsebgosselin self-assigned this Feb 13, 2019
@jnsebgosselin jnsebgosselin merged commit 718bb8c into master Feb 13, 2019
@jnsebgosselin jnsebgosselin deleted the add_undo_capa branch February 13, 2019 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant