Page 2 of 2

Re: Navigation Styles for TD - Phase 1

Posted: Sun Jun 19, 2022 12:35 pm
by wandererfan
balrobs wrote: Sun Jun 19, 2022 10:05 am
  • Using the Pan function I noticed that sometimes you can't move the page even if there is enough space on the canvas ... this seems to happen especially when the zoomed out page is very small in relation to the canvas.
  • In TD another mouse pointer is used for the Pan operation then outside TD [small flaw].
Thanks for testing!

Unlike the 3d view, the TD graphics scene is limited in size to 3x the page size. If you are zoomed out enough to show the whole scene, you won't be able to pan.

It appears that Qt overrides the cursor with a closed hand when it detects a scrolling (panning) operation. I haven't figured out how to defeat this yet.

I will look into the OpenCascade style.

Re: Navigation Styles for TD - Phase 1

Posted: Sun Jun 19, 2022 8:12 pm
by kaktus
I just came across this topic.
:D
wandererfan wrote: Sun Jun 19, 2022 12:11 am Thanks to Kunda1, we have a Snap version of this branch for testing. See Ubuntu_Snap for general instructions for using a Snap version. To get this branch, follow these instructions:
⭐ Snap package ready for this PR.
snap refresh freecad --channel=latest/edge/TD-NavStyles

To return to your regular Snap (depending on

snap refresh freecad --channel=stable
snap refresh freecad --channel=edge

This is helpful.
Installation is going on right now.

I'll get back to you soon. ;)

Re: Navigation Styles for TD - Phase 1

Posted: Tue Jun 21, 2022 7:25 pm
by kaktus
I agree with everything the previous member balrobs wrote. ;) Two functions operate. Nothing unexpected has happened.

My attention was drawn to the unlimited zoom value.
This can lead to some problems if the image is too small or too big. The user will lose orientation and do strange things. :roll:

Re: Navigation Styles for TD - Phase 1

Posted: Fri Jun 24, 2022 3:21 pm
by wandererfan
Navigation styles for TD merged to master here - git commit 9894964eb69e9014f6f14afbf9188b0477cb7fc8

@Kunda1 has prepared another Snap that includes this commit, so you can test it without building.

This commit is a lot of code, so please report any oddities.

Re: Navigation Styles for TD - Phase 1

Posted: Fri Jun 24, 2022 3:23 pm
by wandererfan
kaktus wrote: Tue Jun 21, 2022 7:25 pm This can lead to some problems if the image is too small or too big. The user will lose orientation and do strange things. :roll:
Not sure what we would use as a limit? 1% of original as too small and 1000% as too big? Will have to research how to measure the total zoom factor.

Re: Navigation Styles for TD - Phase 1

Posted: Fri Jun 24, 2022 5:26 pm
by kaktus
hymmm

You would have to catch some reference. :roll:

Perhaps a good workaround would be to add parameters to the configuration on the TechDraw preferences page.

Re: Navigation Styles for TD - Phase 1

Posted: Thu Jun 30, 2022 1:16 pm
by wandererfan
Standard FC cursors for pan and zoom and handling of context menus added to master by git commit fdcfd4c565.

Re: Navigation Styles for TD - Phase 1

Posted: Thu Jun 30, 2022 1:47 pm
by Kunda1
Can someone make a gif of this feature in action?

Re: Navigation Styles for TD - Phase 1

Posted: Sun Jul 31, 2022 3:04 pm
by balrobs
wandererfan wrote: Thu Jun 30, 2022 1:16 pm Standard FC cursors for pan and zoom and handling of context menus added to master by git commit fdcfd4c565.
Thank you so much for your precious work :D Will give it a try and let you know!