Glass

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

Moderator: agryson

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

Glass

Post by triplus » Sat Nov 24, 2018 1:10 am

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

Code repository:
https://github.com/triplus/Glass

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

Re: Glass

Post by triplus » Sat Nov 24, 2018 1:40 am

ComboOverlay.png
ComboOverlay.png (101.4 KiB) Viewed 2072 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
Posts: 676
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Glass

Post by bitacovir » Sat Nov 24, 2018 2:34 am

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

My Blog
Mini Airflow Tunnel Project

User avatar
Kunda1
Posts: 5135
Joined: Thu Jan 05, 2017 9:03 pm

Re: Glass

Post by Kunda1 » Sat Nov 24, 2018 1:51 pm

This is the first step towards ickby's layout branch :D
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

Jee-Bee
Posts: 1940
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Glass

Post by Jee-Bee » 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??

User avatar
Kunda1
Posts: 5135
Joined: Thu Jan 05, 2017 9:03 pm

Re: Glass

Post by Kunda1 » Sat Nov 24, 2018 3:04 pm

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
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

Jee-Bee
Posts: 1940
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Glass

Post by Jee-Bee » Sat Nov 24, 2018 4:10 pm

Thanks!!

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

Re: Glass

Post by triplus » Sat Nov 24, 2018 8:38 pm

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
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Glass

Post by NormandC » Sat Nov 24, 2018 9:34 pm

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 1893 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 1893 times

Is it something you think you can solve eventually, or is it a limitation of this widget overlaying method?

Jee-Bee
Posts: 1940
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Glass

Post by Jee-Bee » Sat Nov 24, 2018 11:08 pm

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

Post Reply