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

Re: Glass

Post by triplus »

NormandC wrote: Sat Nov 24, 2018 9:34 pm Is it something you think you can solve eventually, or is it a limitation of this widget overlaying method?
Glass module likely won't try to address this. Due to no straightforward way to achieve that. From pure tree view experience point of view. Yes this i guess is an issue. But then again if you actually do want to use the overlay approach, and eliminate the (side) dock widget approach, at minimum you need to use the tree view, properties view and tasks panel. Using just tree view won't work. As without all mentioned functionality, it is basically not possible to use FreeCAD ATM. Using any solution relying on this 3 widgets, and not resulting to hiding them in some way, will therefore likely result in some level of not being able to select geometry underneath it. There are and will be some mitigation solutions available in Glass module. For example pressing on Q+2 should already hide the overlay. There could i guess be the Q+3 option. Enabling the click through the overlay option. Being able to resize the overlay widget, will likely improve things in this area too.
Jee-Bee wrote: Sat Nov 24, 2018 11:08 pm Or an option to change the font colour of the model tree
I guess for start, finding a color that works good with defaults, makes the most sense.
Last edited by triplus on Mon Nov 26, 2018 2:08 pm, edited 1 time in total.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Glass

Post by Kunda1 »

I wonder what feedback @ickby would give here now that @triplus has created the first steps to what may be the layout that ickby envisioned.
ickby wrote:
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
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Glass

Post by microelly2 »

Interesting.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Glass

Post by Jee-Bee »

I check at my mac and i see there is some space for improvement...
Screen Shot 2018-11-26 at 20.25.56.png
Screen Shot 2018-11-26 at 20.25.56.png (17.58 KiB) Viewed 3451 times
few things. The view/ data tab show the different (default?) lines which is not what i like to see.
The fps counter (even if this is not important 99% of the time) is now stuck behind the tabs. So it would be better to move the fps counter to some place around.

If you have some ideas to similar result with the report view/ python console... The would be great.

Code: Select all

OS: OS X El Capitan (10.11)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14976 (Git)
Build type: Release
Branch: (HEAD detached at e79a19828)
Hash: e79a19828e2e92269ff96110dfeadaa245ad17c2
Python version: 2.7.15
Qt version: 5.11.2
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/Netherlands (en_NL)
Syres
Veteran
Posts: 2891
Joined: Thu Aug 09, 2018 11:14 am

Re: Glass

Post by Syres »

Thanks for the efforts @triplus, I'm happily using a simple Cyan background with the Glass WB and will be using multiple workbenches over the next couple of days to see if I can use this setup permanently.

GlassColours.jpg
GlassColours.jpg (72.62 KiB) Viewed 3414 times
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15215 (Git)
Build type: Release
Branch: master
Hash: 54799368944d408a09fcdde41f89f20d282a9b8a
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Glass

Post by triplus »

Jee-Bee wrote: Mon Nov 26, 2018 7:37 pm The view/ data tab show the different (default?) lines which is not what i like to see.
Some default styling (stylesheet) will get applied in the future. This is not that much of an coding as it is a design related task.
The fps counter (even if this is not important 99% of the time) is now stuck behind the tabs. So it would be better to move the fps counter to some place around.
Support for being able to resize the overlaying widget should be added in the future.
If you have some ideas to similar result with the report view/ python console... The would be great.
I haven't decided yet on how the "hiding" aspect will work. As if you overlay everything over the viewport, things quickly become counterproductive. But yes, overlaying arbitrary dock widget in the same way as Combo View. That should be supported in the future.
Syres wrote: Tue Nov 27, 2018 9:14 am Thanks for the efforts @triplus, I'm happily using a simple Cyan background with the Glass WB and will be using multiple workbenches over the next couple of days to see if I can use this setup permanently.
You're welcome. Note that pressing on Q+1 key combination can toggle the overlay widget mode back to the dock widget mode. If in some use case and situation that makes more sense.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Glass

Post by Jee-Bee »

Maybe more a core project... I would say time to think about a more space friendly environment...

Like it is now it let not much space... specially on a small screen.
The status bar for example is quite big ... Could this merged together with the tabs?
Also the widget bar(the bar what names the report view or the python console) is quit big Could this be hidden oid when not floating or moving around?

Something for later on separate topic i guess...
Attachments
Screen Shot 2018-11-28 at 19.15.01.png
Screen Shot 2018-11-28 at 19.15.01.png (247.11 KiB) Viewed 3353 times
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Glass

Post by triplus »

Jee-Bee wrote: Wed Nov 28, 2018 6:26 pm Also the widget bar(the bar what names the report view or the python console) is quit big Could this be hidden oid when not floating or moving around?
Yes. In the future you should be able to use Glass module, and being able to show/hide arbitrary dock widget title bar.

P.S. If desired, without the need to overlay the dock widget.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Glass

Post by Jee-Bee »

thanks would be great!!
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: Glass

Post by dcapeletti »

Hi, I'd like to try these views. I installed the Glass module from the addons, restart freecad and it doesn't appear in the list of workbenches. Why? I installed the qt5-defaults package. I enclose information to help me.

Also, I have python3 and I don't know how freecad uses 2.7. Can I make it use version 3?

Updated:

Code: Select all

>>> from PySide import QtCore
>>> QtCore.qVersion()
'4.8.6'
I have qtcore version 4.8, how do I upgrade to 5?

Thanks


OS: Debian GNU/Linux 9.8 (stretch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15860 (Git) AppImage
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Spanish/Argentina (es_AR)

Code: Select all

ii  fcitx-frontend-qt5:amd64                          1.0.5-1+b1                                  amd64        Free Chinese Input Toy of X - Qt5 IM Module frontend
ii  libfcitx-qt5-1:amd64                              1.0.5-1+b1                                  amd64        Free Chinese Input Toy of X - D-Bus client libraries for Qt5
ii  libqt5concurrent5:amd64                           5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 concurrent module
ii  libqt5core5a:amd64                                5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 core module
ii  libqt5dbus5:amd64                                 5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 D-Bus module
ii  libqt5gui5:amd64                                  5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 GUI module
ii  libqt5network5:amd64                              5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 network module
ii  libqt5opengl5:amd64                               5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 OpenGL module
ii  libqt5opengl5-dev:amd64                           5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 OpenGL library development files
ii  libqt5printsupport5:amd64                         5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 print support module
ii  libqt5scintilla2-12v5                             2.9.3+dfsg-4                                amd64        Qt5 port of the Scintilla source code editing widget
ii  libqt5scintilla2-l10n                             2.9.3+dfsg-4                                all          Scintilla source code editing widget for Qt5, translation files
ii  libqt5sql5:amd64                                  5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 SQL module
ii  libqt5sql5-sqlite:amd64                           5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 SQLite 3 database driver
ii  libqt5svg5:amd64                                  5.7.1~20161021-2+b2                         amd64        Qt 5 SVG module
ii  libqt5test5:amd64                                 5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 test module
ii  libqt5widgets5:amd64                              5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 widgets module
ii  libqt5x11extras5:amd64                            5.7.1~20161021-2                            amd64        Qt 5 X11 extras
ii  libqt5xml5:amd64                                  5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 XML module
ii  qt5-default                                       5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 development defaults package
ii  qt5-gtk-platformtheme:amd64                       5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 GTK+ 3 platform theme
ii  qt5-qmake:amd64                                   5.7.1+dfsg-3+deb9u1                         amd64        Qt 5 qmake Makefile generator tool
ii  uim-qt5                                           1:1.8.6+gh20161003.0.d63dadd-2              amd64        Universal Input Method - Qt 5.x front end
Post Reply