Navigation Styles for TD - Phase 1

Discussions about the development of the TechDraw workbench
User avatar
wandererfan
Veteran
Posts: 4786
Joined: Tue Nov 06, 2012 5:42 pm

Re: Navigation Styles for TD - Phase 1

Post 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.
User avatar
kaktus
Posts: 719
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Navigation Styles for TD - Phase 1

Post 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. ;)
wierny padawan mistrza arturromarr
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
User avatar
kaktus
Posts: 719
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Navigation Styles for TD - Phase 1

Post 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:
wierny padawan mistrza arturromarr
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
User avatar
wandererfan
Veteran
Posts: 4786
Joined: Tue Nov 06, 2012 5:42 pm

Re: Navigation Styles for TD - Phase 1

Post 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.
User avatar
wandererfan
Veteran
Posts: 4786
Joined: Tue Nov 06, 2012 5:42 pm

Re: Navigation Styles for TD - Phase 1

Post 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.
User avatar
kaktus
Posts: 719
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Navigation Styles for TD - Phase 1

Post 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.
wierny padawan mistrza arturromarr
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
User avatar
wandererfan
Veteran
Posts: 4786
Joined: Tue Nov 06, 2012 5:42 pm

Re: Navigation Styles for TD - Phase 1

Post by wandererfan »

Standard FC cursors for pan and zoom and handling of context menus added to master by git commit fdcfd4c565.
User avatar
Kunda1
Veteran
Posts: 12710
Joined: Thu Jan 05, 2017 9:03 pm

Re: Navigation Styles for TD - Phase 1

Post by Kunda1 »

Can someone make a gif of this feature in action?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
balrobs
Posts: 382
Joined: Fri Apr 24, 2020 8:58 pm

Re: Navigation Styles for TD - Phase 1

Post 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!
Post Reply