Glass

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

Moderator: agryson

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

Re: Glass

Postby adrianinsaval » Fri May 17, 2019 3:58 am

adrianinsaval wrote:
Sun May 12, 2019 6:05 pm
Hi, I'm currently using it on windows 10 with the Tree view and it works great! However, I have to manually press q+1 or q+2 every time I startup Freecad, can this be automated? It does not show at all unless you press q+1 or q+2.

On a side note, can this be used simultaneously in more than one panel? Anyway, thanks for such a great addon!

EDIT:
Got it how I wanted with a few twitches. It automatically gets in Glass mode by adding setMode() after line 176 in GlassGui.py (use setVisibility instead if you want it to show but not in Glass mode).

I got it to work on 2 panels by copy/pasting GlassGui.py and importing the copy in InitGui.py. Had to twitch the positioning so they don't overlap and change the key combinations on the copy. Also changed LeftDockWidgetArea for RightDockWidgetArea at line 146 for personal preference.

There probably is a better way to do this since right now the tree view can be out of view if the window is resized. Sadly, I don´t really know any python to fix this. Attached are my modified files for anyone interested, they go into the Mod/Glass folder.

On a different note, anyone knows how to get rid of the tree in the combo view? or how to permanently move the navigation cube a little to the left?
Solved the positioning issue! I might be better to adapt some numbers to the screen, they're at lines 161 to 166. Attached the fixed copy.
Attachments
GlassGui2.py
(4.66 KiB) Downloaded 9 times
User avatar
Kunda1
Posts: 4755
Joined: Thu Jan 05, 2017 9:03 pm

Re: Glass

Postby Kunda1 » Fri May 17, 2019 11:45 am

Have you ever tried to use Github ? FreeCAD repository lives on it. So does Glass. It's easier/ 'more convenient' to review code using it.
Check out the FC wiki github page
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
adrianinsaval
Posts: 14
Joined: Thu Apr 05, 2018 5:15 pm

Re: Glass

Postby adrianinsaval » Fri May 24, 2019 4:03 am

Kunda1 wrote:
Fri May 17, 2019 11:45 am
Have you ever tried to use Github ? FreeCAD repository lives on it. So does Glass. It's easier/ 'more convenient' to review code using it.
Check out the FC wiki github page
I just don't think my little twitches justify a pull request or a fork. It's just my taste and I shared in case someone liked it.
triplus
Posts: 8415
Joined: Mon Dec 12, 2011 4:45 pm

Re: Glass

Postby triplus » Fri May 24, 2019 9:29 am

OficineRobotica wrote:
Sat May 11, 2019 4:48 am
Hello @Triplus. Any news on the glass addon side? i've been waiting for a bump in version and now i'm on kubunrtu 19.04 and freecad-daily from the ppa but it seems that the problem with the black background persists.
Hi @OficineRobotica

I didn't have much free time for Glass module in the past few weeks. Before that i did a bit of research and narrowed the issue down a bit. On KDE, when applying a stylesheet, an issue (black background) emerges. Didn't determine yet if it's a KDE or Qt related issue, or something else is involved, and if a possible workaround exists. Will try to determine that in the following days.

Hi @adrianinsaval

Yes, the change could be made persistent (cross restart) and i did actually implemented a few toggle modes already. But due to not yet resolving KDE issue i didn't have much motivation to push the changes just yet. Will work on that in the following days and in addition i will review your proposals more in depth. Thanks for contributing.
User avatar
Kunda1
Posts: 4755
Joined: Thu Jan 05, 2017 9:03 pm

Re: Glass

Postby Kunda1 » Thu Jun 13, 2019 5:56 pm

X-post New macro, Vision1, check it out thread. This macro uses a different approach to the FreeCAD viewing experience. May well be a useful methodology for the Glass WB.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features