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

[Feature Request] Add cancel button in the Transform task UI #7517

Closed
2 tasks done
rahmanshaber opened this issue Sep 22, 2022 · 10 comments · Fixed by #10529
Closed
2 tasks done

[Feature Request] Add cancel button in the Transform task UI #7517

rahmanshaber opened this issue Sep 22, 2022 · 10 comments · Fixed by #10529
Labels
Feature FR for improvements or new features Good first issue Suitable issues for potential first-time contributors Help wanted UI/UX

Comments

@rahmanshaber
Copy link

Is there an existing request for this?

  • I have searched the existing requests

Forums discussion

https://forum.freecadweb.org/viewtopic.php?f=34&t=71598

Subproject(s) affected?

No response

Idea description

Sometime we just move a part to compare with another, but to go back to previous position we need to click OK and then undo the changes.
But if the part is filled with details then it takes time to undo the changes. So with a "Cancel" button this can be prevented.
Also if you move the part in 6 step than you have to press ctrl+z 6 times to go to previous position.

With the cancel button that will be reduced and the UI consistency will also be maintained.

image

Requested UI
image

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@luzpaz luzpaz added UI/UX Feature FR for improvements or new features labels Sep 23, 2022
@luzpaz
Copy link
Contributor

luzpaz commented Nov 8, 2022

@adrianinsaval do you want to tackle this? 😜

@adrianinsaval
Copy link
Member

I agree with the request but don't really know how to do it so it's gonna be a pass from me for the time being, perhaps at a later time I'll learn some about all the transaction and undo mumbo jumbo.

@luzpaz
Copy link
Contributor

luzpaz commented Mar 15, 2023

@PaddleStroke since you've been diving deep in to Sketcher code, would you have a moment to make a PR for this ?

@luzpaz luzpaz added Good first issue Suitable issues for potential first-time contributors Help wanted labels Mar 15, 2023
@Nimausfi Nimausfi mentioned this issue May 24, 2023
1 task
@luzpaz
Copy link
Contributor

luzpaz commented Jun 11, 2023

Per wwmayer in #9647 (comment)

Just by adding a Cancel button the issue is not solved because when clicking the button after a transformation the geometry doesn't jump back.

What's still needed is:

* the transaction handling must be moved from ViewProviderDragger (dragStartCallback/dragFinishCallback) to TaskCSysDragger  
* TaskCSysDragger::accept() must commit the pending transaction
* implement TaskCSysDragger::reject() that just aborts a pending transaction

@Aryan01b
Copy link

@luzpaz, Can i work on this issue.
if so, then Which file should be modified to add the feature?

@luzpaz
Copy link
Contributor

luzpaz commented Aug 21, 2023

@Aryan01b perhaps @PaddleStroke can give some insight ?

@PaddleStroke
Copy link
Contributor

PaddleStroke commented Aug 21, 2023 via email

@luzpaz
Copy link
Contributor

luzpaz commented Aug 21, 2023

Thanks for responding @PaddleStroke, just for clarification, I was quoting wwmayer from a closed PR (not a direct message). It's not clear what file(s) he was referring to specifically.

@didendron
Copy link
Contributor

@luzpaz, Could I pick this as my first issue?

@luzpaz
Copy link
Contributor

luzpaz commented Sep 1, 2023

@didendron go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature FR for improvements or new features Good first issue Suitable issues for potential first-time contributors Help wanted UI/UX
Projects
None yet
6 participants