Glass

A forum for research and development of the user interface of FreeCAD

Moderator: agryson

triplus
Posts: 9464
Joined: Mon Dec 12, 2011 4:45 pm

Re: Glass

Post by triplus » Mon Apr 20, 2020 5:27 pm

adrianinsaval wrote:
Mon Apr 20, 2020 12:14 am
Nice! I don't see why not to the background functionality but I think it should use the color of the user defined stylesheet not a specif one.
I guess people see the setup @OficineRobotica has and want that, after installing Glass module. As it involves only setting up a few parameters i guess best to just do that for now and to provide the opt-out option. And listen to the feedback.
Btw: have you seen realthunders's overlay mode? It's inspired by this module: https://forum.freecadweb.org/viewtopic.php?f=34&t=45349
Yes i have seen it. I guess Glass module in C++. Direct collaboration hence likely doesn't make much sense but the concepts can for sure be reused in between projects. I will likely implement all the things that were discussed in this thread and that will be that. In addition i noticed new people came and started developing Python and C++ UX/UI functionality for FreeCAD. That in the end is good enough for me and i will leave the spotlight to them. I still plan to mature the modules i have started in the past and most of my FreeCAD related efforts will from now go into achieving that goal.

P.S. One question. When a spreadsheet window is opened it was mentioned the overlay gets in the way. Any ideas on what should happen? Hide it? But then tree isn't available anymore for possible selection?

adrianinsaval
Posts: 343
Joined: Thu Apr 05, 2018 5:15 pm

Re: Glass

Post by adrianinsaval » Mon Apr 20, 2020 7:57 pm

I vote for just setting the glass mode off or perhaps make it configurable since some might prefer to just access the tree from the Combo View in that situation.

triplus
Posts: 9464
Joined: Mon Dec 12, 2011 4:45 pm

Re: Glass

Post by triplus » Sun Apr 26, 2020 7:48 pm

When updating to the latest changes, Glass module should now set some defaults, as seen in @OficineRobotica video, on the first run. Tree view is now the default dock widget, enabled on the first (Glass module) run. Note that the second restart of FreeCAD might be needed, for Tree view to get enabled. I enabled grouped dragging. When opening a Spreadsheet, Tree view should now be hidden automatically.

User avatar
OficineRobotica
Posts: 195
Joined: Thu Feb 21, 2019 8:17 am

Re: Glass

Post by OficineRobotica » Sun May 03, 2020 9:52 am

Thank you @Triplus for the update. Unfortunately due to the pandemic situation and work I'vd been away from Freecad and pretty much from the pc lately and allot of side projects have been postponed.

I just need some quick clarifications because I haven't had the time to dig in to it.

1-Does this update make my last tutorial redundant? That is: the user is asked of what preferences they want on first install or tree view and color are set as default instead of the old behavior?

2-Is it now possible to plug a styleshhet specifically for glass?(even tough transparency value , blur and text shadow still can't be set there because of how QT works)

3-The fact that the independent treeview is disabled in the default appimage is still a problem or the addon takes care of that?
I will try and look into it, time permitting and do a better presentation/tutorial of the module in the following days.
Thank you so much for your hard work.
Cheers

triplus
Posts: 9464
Joined: Mon Dec 12, 2011 4:45 pm

Re: Glass

Post by triplus » Wed May 20, 2020 6:36 am

Hi @OficineRobotica

Yes, the gist of the tutorial is now applied automatically.

P.S. As for the rest, i am currently not sure on what makes the most sense, due to "Glass++" emerging. Will decide what makes the most sense in the following month.

HoWil
Posts: 1099
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: Glass

Post by HoWil » Mon May 25, 2020 3:13 pm

Please make it work with Text-Documents (Tools->Add text document) and spreadsheets
With glass a Text-Document looks like:
Screenshot from 2020-05-25 12-19-30.png
Screenshot from 2020-05-25 12-19-30.png (108.92 KiB) Viewed 318 times
Screenshot from 2020-05-25 12-19-26.png
Screenshot from 2020-05-25 12-19-26.png (131.93 KiB) Viewed 318 times

adrianinsaval
Posts: 343
Joined: Thu Apr 05, 2018 5:15 pm

Re: Glass

Post by adrianinsaval » Mon May 25, 2020 3:57 pm

Have you updated? Latest version auto hides when editing text and spreadsheets.

HoWil
Posts: 1099
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: Glass

Post by HoWil » Mon May 25, 2020 8:21 pm

adrianinsaval wrote:
Mon May 25, 2020 3:57 pm
Have you updated? Latest version auto hides when editing text and spreadsheets.
Thanks, your are right. After an update everything works as intended.

User avatar
roerich_64
Posts: 1221
Joined: Thu May 21, 2015 7:00 pm
Location: Ostfriesland

Re: Glass

Post by roerich_64 » Tue May 26, 2020 6:34 pm

triplus wrote:
Wed May 20, 2020 6:36 am
...
P.S. As for the rest, i am currently not sure on what makes the most sense, due to "Glass++" emerging. Will decide what makes the most sense in the following month.
Glass++ => Whats that?


If 'Glass' manages to keep the 'TreeView' from hiding selectable parts as much as possible, 'Glass' would be my favorite ...

BR
Walter

Roribez
Posts: 8
Joined: Thu Jun 25, 2020 5:17 pm

Re: Glass

Post by Roribez » Wed Jul 01, 2020 7:19 pm

Hi.
I made some improvements on Glass autohide and resize behaviours, for my own use.

Instead of using a timer, I made autohide and resize functions connected to signals from DockWidgets visibility changes and active subwindow changes. Whenever a FCMacro-editor or a not-3D-view is selected (e.g. spreadsheet), signal is sent to hide treeview. This makes it instantaneously hidden or shown. Also, when any dockwidget gets shown or hidden (e.g. report view), signal is sent to resize treeview, avoiding overlap.

This also adjusted the show/hide behaviour of treeview in a 3d-View subwindow. Before, when it was told to hide (e.g. using shortcut Q,2), it would hide and right away it would show again.

Also, added hability to remember treeview visibility status in 3D-view subwindows. So, when it is autohidden in a spreadsheet for example, on returning to 3D-view it will remember if it was shown or hidden.

Above there was a comment about a Glass++ to come, so maybe all this is already going to be developed another way. Otherwise, if there is any interest in having this modified version, let me know.

POST EDIT: I'm attaching modified version of GlassGui.py here.
POST EDIT 2: Attaching modified version2.
GlassGui-modified_v2.py
(7.54 KiB) Downloaded 2 times
Last edited by Roribez on Fri Jul 03, 2020 1:00 am, edited 2 times in total.

Post Reply