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 OCM step #220

Merged
merged 5 commits into from
Jan 25, 2024
Merged

Add OCM step #220

merged 5 commits into from
Jan 25, 2024

Conversation

wlcsm
Copy link
Contributor

@wlcsm wlcsm commented Dec 17, 2023

Add a button on the toolbar to save the current graph as a separate OCM proof step. Builds upon a previous PR #213

The button is always enabled however, even when no changes have been made to the graph. This would be a nice quality of life improvement, but with the way the ProofModel class is set up, it would involve littering button enables/disables throughout which is quite error prone. So I have not included it in this PR.

Screenshot 2023-12-17 at 1 31 43 pm

@RazinShaikh
Copy link
Collaborator

I haven't tested the PR but could you move the ocm button to the rules panel under the basic rules.

@wlcsm
Copy link
Contributor Author

wlcsm commented Dec 17, 2023

I haven't tested the PR but could you move the ocm button to the rules panel under the basic rules.

Done

Screenshot 2023-12-17 at 4 34 10 pm

Will Cashman added 3 commits January 25, 2024 20:54
Previously we stored the proof as both a series of graphs and as an
initial graph together with a series of diffs. Now we have removed the
diffs to avoid possible synchronisation issues.

Additionally, the diffs did not record repositioned vertices, which made
adding an OCM step difficult (Issue: zxcalc#150)
Add a button on the toolbar to save the current graph as a separate OCM
proof step.

The button is always enabled, even when no changes have been made to the
graph.
@RazinShaikh RazinShaikh merged commit eb1f41e into zxcalc:master Jan 25, 2024
2 checks passed
@RazinShaikh RazinShaikh linked an issue Jan 25, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make a 'only connectivity matters' proof step
2 participants