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 optional undo, redo, crop, scale and modify canvas buttons to dock widgets #263
Conversation
1c9cde0
to
3dc909e
Compare
Ok, now this one lacks functionality when clicking on the buttons and the buttons are always visible. |
3dc909e
to
346bd89
Compare
Thanks for working on this. Will be a great addition! |
346bd89
to
0013473
Compare
Done, tested & working. |
I'll have look into it today, yesterday evening GitHub was done for me. One thing that I've already noticed, not wrong just might be misleading. The name "Transformation" might be used in item operations too, there would it be like rotate, scale and so on, that would also be Transformation. But to be honest, I've got no better name right now for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm missing an option to disable the Transformation Settings Widget explicitly. Or am I missing something?
src/gui/annotator/settings/AnnotationTransformationSelection.cpp
Outdated
Show resolved
Hide resolved
You can enable it with: |
Strange, I see the method in the code but not in the Review on GitHub. Looks like one commit is missing in the review, I also don't see the change in example but do see it in the code. |
4276cd8
to
e5e7f64
Compare
One problem though, currently we setup the widgets and call the |
e5e7f64
to
7e07f0e
Compare
Added, seems to do the trick. All fine now? Except for the naming. |
|
Yeah, undo/redo is not a modification per se. Can't come up with something else atm.. Leave it as is and 'one day' when we come up with something different, change it? Shall I squash commits? |
Yeah, let's go with that. The only drawback is that the You can squash it, I'll have a quick look through and test later today when I find time and merge it then. |
Hm, maybe a) b) |
febce7e
to
f2a5a82
Compare
Yeah, something |
|
f2a5a82
to
4aaa1cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. The unused variable should be remove and the names are up to you, if you want to rename the signals.
Add undo/redo/crop/scale/modify canvas buttons when required. Since those are not always needed. Since, for example, ksnip has those built-in.
71f254c
to
0cbc9ae
Compare
Thanks for providing this PR, merged. |
Run into an issue now that I was implementing support for this in ksnip. This is a setting basically but you can only show it and never hide. Also from the naming, we have |
Oh, sorry for that one. Haven't tested it in ksnip.
|
Not an issue, you were not supposed to test it in ksnip, I just thought it would be nice to make it there available too if someone want to use it. There it's just a checkbox which is unchecked by default. Not I can enable the control but not disable, I have to restart ksnip xD Yes, exactly, those two changes. Now looking at those two options, Thanks again! |
The mother of all solutions in IT :D
I'm on my way to add those :) |
:D if a) -> we only have insertDockWidget() , nothing to hide it. Except QWidget's hide(), to hide the |
info: Rotate button is in a separate MR: #264 |
Definitely
|
Nice! |
Add undo/redo/crop/scale/modify canvas buttons when required. Since those are not always needed.
For example ksnip has those built-in.