Techdraw - Lead Line - Edit Points

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
kemes
Posts: 63
Joined: Wed Mar 02, 2022 8:05 am

Techdraw - Lead Line - Edit Points

Post by kemes »

Is there already a way how to change the way the handles look? Quite often there is a need to place a lead line arrow precisely:
1.png
1.png (7.25 KiB) Viewed 951 times
When editing the points the "handles" are presented by these squares which in their current form block the view:
2.png
2.png (5.24 KiB) Viewed 951 times
To be able to see where you are placing the line end an improvement would be:
1) to make the handels some what transparent
3.png
3.png (7.03 KiB) Viewed 951 times
OR

2) just outline the handles:
4.png
4.png (6.66 KiB) Viewed 951 times
User avatar
kemes
Posts: 63
Joined: Wed Mar 02, 2022 8:05 am

Re: Techdraw - Lead Line - Edit Points

Post by kemes »

Where would one need to look in the code to find the appearance definition of the "control squares" ?
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Techdraw - Lead Line - Edit Points

Post by wandererfan »

kemes wrote: Fri Sep 16, 2022 9:32 am Where would one need to look in the code to find the appearance definition of the "control squares" ?
Gui/QGEPath.cpp (QGraphics Editable Path) in showMarkers. Adding "v->setFillStyle(Qt::NoBrush);" should do it.

To do the whole job, we should also add a preference for marker shape and fill.
User avatar
kemes
Posts: 63
Joined: Wed Mar 02, 2022 8:05 am

Re: Techdraw - Lead Line - Edit Points

Post by kemes »

Thanks!

btw. The Clip group clips also the Lead Lines:
clip.png
clip.png (22.89 KiB) Viewed 707 times
As a Lead Line belongs to a view I guess this is a feature. The workaround is to increase the Clip area.
Post Reply