Treeview overlay icon

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Treeview overlay icon

Post by TheMarkster »

From a developer standpoint it can be useful to hide document objects from the user when it makes no sense for the user to be manipulating those objects and displaying them would only cause confusion and clutter up the tree view. This does not suggest some nefarious purpose. It could also be more efficient to hide them if there are many of them because then the tree widget is not managing all of those objects, but I haven't tested this.

I make use of this with PDWrapper in the edit placement adjustments dialog. Here the tip tool and tip base are shown as transparent object, which I have called ghosts.
Snip macro screenshot-86db71.png
Snip macro screenshot-86db71.png (78.46 KiB) Viewed 247 times
In the model view they are not shown because the user needs to be editing the Placement Adjustment properties of the PDWrapper object, not directly moving the ghost objects by editing their placement properties.

Snip macro screenshot-7f763c.png
Snip macro screenshot-7f763c.png (75.92 KiB) Viewed 247 times
But they exist as simple document objects that are removed when the dialog closes or when the user deletes the wrapper object:

Snip macro screenshot-70b53c.png
Snip macro screenshot-70b53c.png (87.2 KiB) Viewed 247 times
Post Reply