Preferences/Placement Edit box mouse interface

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
catman
Posts: 412
Joined: Fri Jan 11, 2019 10:42 pm

Preferences/Placement Edit box mouse interface

Post by catman »

Position_MouseInterface.png
Position_MouseInterface.png (21.18 KiB) Viewed 828 times
The when I change the Placement/position/X parameter for any object I have two mouse wheel functions
  • wheel = change value in mm
  • CTRL-wheel= change value in 10x mm
What I am missing is a way to do 0.1x mm, e.g.
  • SHIFT-wheel = change value in 0.1x mm
I guess its a core function. If that is added thoughout the whole interface I would think this is even better.



Maybe worth discussion is the assignment. Possibly more intuitive could be to change the current assignment
  • SHFT-wheel -> value change is larger
  • CTRL-wheel -> value change is smaller
Other packages also use the ALT-mouse for very fine movements. This may be a problem in Linux, i.e. I find that my xfce installation by default uses the "wheel-ALT" to zoom the desktop. If FreeCAD can not override that it would be very confusing to people to find that this combination does not work out of the box.

What do you think? Has this been discussed before?
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Preferences/Placement Edit box mouse interface

Post by Shalmeneser »

This problem is general for all box values.
I think it's a Qt caracteristic.
catman
Posts: 412
Joined: Fri Jan 11, 2019 10:42 pm

Re: Preferences/Placement Edit box mouse interface

Post by catman »

Oh, its the default behaviour of a QT widget?
Than the change could not affect the whole GUI. An overload would still work for the property editor, or does each element define its property page in QT by itself?
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Preferences/Placement Edit box mouse interface

Post by Syres »

@catman here is the code I believe for the Ctrl key to be 10x larger https://github.com/FreeCAD/FreeCAD/blob ... d.cpp#L707 so I can't believe it's going to take a lot of effort for Shift key to be 10x smaller. The big question is whether this causes regressions that haven't be thought about or if there's issues on platforms, I can only test on Linux.
User avatar
mfro
Posts: 663
Joined: Sat Sep 23, 2017 8:15 am

Re: Preferences/Placement Edit box mouse interface

Post by mfro »

for me, it appears that said code doesn't get called at all - at least I can't break into the debugger here.
Cheers,
Markus
catman
Posts: 412
Joined: Fri Jan 11, 2019 10:42 pm

Re: Preferences/Placement Edit box mouse interface

Post by catman »

Syres wrote: Sat Aug 13, 2022 8:21 am @catman here is the code I believe for the Ctrl key to be 10x larger https://github.com/FreeCAD/FreeCAD/blob ... d.cpp#L707
Seem this is not a question of know-how but rather know-where :D
mfro wrote: Sat Aug 13, 2022 11:04 am for me, it appears that said code doesn't get called at all - at least I can't break into the debugger here.
I changed the code and tried it but I can confirm it does not have an effect.
Post Reply