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
Sketcher: task tool settings widget #5389
Conversation
Also add seek third to oblong to select radius point.
Circle, arcs, lines, point, polygone implemented. Polyline need further work. Also ESC keypress doesn't work properly when task window has focus. This needs to be corrected (conflict solved)
Several bugs of tool settings fixed. Includes Oblong, arc and 3points arc. Keypressed still can't be forwarded to sketchhandler...
Support for polyline improved and mode key replaced by shift. Solved bugs on spinbox pre-selection of text. Also update the geometry directly after value entered (no need to move mouse).
@@ -0,0 +1,111 @@ | |||
/*************************************************************************** | |||
* Copyright (c) 2009 Jürgen Riegel <juergen.riegel@web.de> * |
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.
Your name. Jurgen has left the project. He does not need more files in his name.
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.
He does not need more files in his name.
I don't disagree with the point but I think the tone could be perceived as a little irreverent.
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.
That was not the intention. He is just not the author of this file. He probably authored the template this was based on. But the main contributor is Paddle so he should be mentioned. Also the year should probably be updated.
Gui::SelectionSingleton::MessageType Reason); | ||
SketcherToolWidget* widget; | ||
|
||
//public Q_SLOTS: |
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.
No point in having commented out code here.
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. Some minor comments. The question of the shift key for the polyline tool is a bit tricky.
- fixed PR comments
15f964b
to
54841d5
Compare
Thanks. The last question is for polyline mode shortcut. |
It seems the shortcuts are currently being refactored. So it might be better to keep shift for now until the global shortcut refactoring is done. |
any particular reason for closing this one? :( |
It's because I build constrain contextually on top of ToolSettings. And I made further improvement of toolsettings on that ConstrainContextuall branch. |
considering past statements from the maintainers, I think they would prefer to merge it separately as this feature is independent of the other but better to wait for what they have to say. I think abdullah is who usually reviews sketcher stuff but he's not around for now. |
@abdullahtahiriyo has had IRL (work etc...) stuff going on. But he pops in here and there. Hopefully he can weigh-in on some of @PaddleStroke's work soon |
Yes I know but I had to make lot of modification and fixes to toolsettings while developping constrain contextually. And I couldn't checkout of branches everytime I needed to make a small change (because it takes 1 hour to rebuild everytime). So I ended up making the changes to ToolSettings along the development of Constrain contextually. Which in the end was a lot. |
are you mixing stuff within the same commit? if you have separate commits for stuff only related to this widget it would be possible to cherry pick only those. You are developing on windows right? Is there really no equivalent to ccache on windows? That would be a shame, with ccache compilation should require just a few minutes if the difference isn't big. |
I didn't paid attention to the commit's content unfortunately.
With visual studio it builds only what you modified (so 1-2min for sketcher
modif).
But when I checkout of branches it rebuilds the whole thing. Making
checkouts painful.
…On Fri, Feb 4, 2022, 21:01 adrianinsaval ***@***.***> wrote:
are you mixing stuff within the same commit? if you have separate commits
for stuff only related to this widget it would be possible to cherry pick
only those. You are developing on windows right? Is there really no
equivalent to ccache on windows? That would be a shame, with ccache
compilation should require just a few minutes if the difference isn't big.
—
Reply to this email directly, view it on GitHub
<#5389 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYO6MJDBAOPO7KIUZI2XNDUZQWCTANCNFSM5MFIQKFQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ok, I will handle it with the other commit. It gets some time before learning how to use git effectively. |
This feature adds a widget to Task in sketcher.
This enables user to type dimensions of geometries and create constraints accordingly.
The goal is to speed up sketching.
Feature discussed here : https://forum.freecadweb.org/viewtopic.php?f=9&t=65279
Video showing the feature : https://youtu.be/K8oTQNpI8CQ
One thing to discuss : What key to use for polyline mode switch. 'M' can't be used anymore because it's typed in the spinbox. So I changed to shift. But shift may be in use by others?
Please let me know if you have any question/feedback.