Glass

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
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Glass

Post by triplus »

Glass.png
Glass.png (9.73 KiB) Viewed 16760 times

Code repository:
https://github.com/triplus/Glass
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Glass

Post by triplus »

ComboOverlay.png
ComboOverlay.png (101.4 KiB) Viewed 16756 times
Glass module purpose is to overlay existing dock widgets over the viewport (MDI Area). Once installed pressing the Q+1 keyboard key combination will toggle the mode for Combo View dock widget. This will only work on Qt 5 (and up) enabled builds. Glass module is not related to QML. Ever since Werner ported viewport to use QOpenGLWidget such approach is possible. I have been using it occasionally, and decided it's time to share. If anybody else would like to experience some Tree view overlaying.

P.S. Area occupied by the Combo View is not click-through able. Some default style(sheet) improvements, widget width and other control will likely be made available in the future. I didn't do any testing on other platforms (beyond testing and using it on Ubuntu).
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Glass

Post by bitacovir »

Nice. This is like CATIA.
Thx for sharing.
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Glass

Post by Kunda1 »

This is the first step towards ickby's layout branch :D
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Glass

Post by Jee-Bee »

Is it posible to execute this from a precompiled FC? Could you make a (grow) add-on from this??
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Glass

Post by Kunda1 »

Jee-Bee wrote: Sat Nov 24, 2018 2:57 pm Is it posible to execute this from a precompiled FC? Could you make a (grow) add-on from this??
You can install it via the Addon Manager now
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Glass

Post by Jee-Bee »

Thanks!!
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Glass

Post by triplus »

bitacovir wrote: Sat Nov 24, 2018 2:34 am Nice. This is like CATIA.
Thx for sharing.
You're welcome.
Kunda1 wrote: Sat Nov 24, 2018 1:51 pm This is the first step towards ickby's layout branch :D
Small step. ;)
Jee-Bee wrote: Sat Nov 24, 2018 2:57 pm Is it posible to execute this from a precompiled FC? Could you make a (grow) add-on from this??
Yes. Installing the Glass module and pressing Q+1 keyboard key combination is needed ATM. To toggle Combo View overlay active, and to start using it. The Glass module won't start unless Qt 5 (or up) is detected.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Glass

Post by NormandC »

Okay, this is cool. I had to download a conda image to test this.

I think with such a feature, it would make sense to resume the debate on changing the default background color.

Labels are more legible on white or light background.

It looks nice on white. (Ugh, what doesn't is the ugly window theme but this is another issue)

FC018_Glass_Qt5_01.png
FC018_Glass_Qt5_01.png (60.16 KiB) Viewed 16577 times
triplus wrote: Sat Nov 24, 2018 1:40 am P.S. Area occupied by the Combo View is not click-through able.
This info makes more sense with this screenshot. ;)

FC018_Glass_Qt5_02.png
FC018_Glass_Qt5_02.png (42.41 KiB) Viewed 16577 times

Is it something you think you can solve eventually, or is it a limitation of this widget overlaying method?
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Glass

Post by Jee-Bee »

Or an option to change the font colour of the model tree
Post Reply