Drag and drop in the TechDraw workbench

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
martonmiklos
Posts: 6
Joined: Tue Jan 25, 2022 7:52 pm

Drag and drop in the TechDraw workbench

Post by martonmiklos »

Dear FreeCAD developers,

I recently started to use FreeCAD and while working with the TechDraw workbench I felt that drag and drop from the Model treeview could be enabled to the TechDraw work area and triggering the "Insert a view" action would be quite natural. What do you think about this improvement? I have some experience with Qt/C++ so if the idea got some positive feedback I could came up with a PR.
Attachments
Screenshot_20220125_211021.png
Screenshot_20220125_211021.png (81.42 KiB) Viewed 1972 times
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Drag and drop in the TechDraw workbench

Post by chrisb »

Drag and drop was enabled before 0.20, and was removed because it didn't work properly (similar in Path workbench) and could even destroy models completely.
If you can fix it: go for it.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
martonmiklos
Posts: 6
Joined: Tue Jan 25, 2022 7:52 pm

Re: Drag and drop in the TechDraw workbench

Post by martonmiklos »

chrisb wrote: Wed Jan 26, 2022 1:24 am Drag and drop was enabled before 0.20
Hmm I have tried it in both 0.19 stable and 0.20 daily from PPA, and it did not worked in neither version.
But thanks for the tip, I will look into it!
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Drag and drop in the TechDraw workbench

Post by chrisb »

It probably was disabled before 0.19 became stable.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
martonmiklos
Posts: 6
Joined: Tue Jan 25, 2022 7:52 pm

Re: Drag and drop in the TechDraw workbench

Post by martonmiklos »

Well I built the actual git master and found a very frustrating behavior:
If I click (with a single left click) on anything on the model tree it get activated in the main windows immediately (making the drag and drop impossible).
Could it be intentional?
martonmiklos
Posts: 6
Joined: Tue Jan 25, 2022 7:52 pm

Re: Drag and drop in the TechDraw workbench

Post by martonmiklos »

chrisb wrote: Wed Jan 26, 2022 8:47 am It probably was disabled before 0.19 became stable.
Do you accidentally know a git commit just to see what got reverted?
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Drag and drop in the TechDraw workbench

Post by chrisb »

I have no idea. I rather know it from the Path workbench, where we indeed could destroy whole files by drag and drop. I then tried it once with TechDraw, and we saw that the same issue existed there. Now it seems prohibited.
I have no idea where or when or what has been done or if not a new Qt library improved things all by itself.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply