Modern UI

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
bleber
Posts: 259
Joined: Thu Jun 30, 2016 5:12 pm

Re: Modern UI

Post by bleber »

HakanSeven12 wrote: Thu Apr 30, 2020 7:52 pm Its good idea but I don't know how to catch this event.
Can you detect the presence of ok, cancel, close, buttons in the dock area?
Flymoth
Posts: 3
Joined: Tue Mar 10, 2020 9:11 pm

Re: Modern UI

Post by Flymoth »

In icon mode. Make a popup title.
Attachments
ezgif.com-apng-to-gif.gif
ezgif.com-apng-to-gif.gif (226.35 KiB) Viewed 1324 times
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

bleber wrote: Fri May 01, 2020 9:01 am
HakanSeven12 wrote: Thu Apr 30, 2020 7:52 pm Its good idea but I don't know how to catch this event.
Can you detect the presence of ok, cancel, close, buttons in the dock area?
I find a way
Attachments
ComboTab.gif
ComboTab.gif (417.67 KiB) Viewed 1315 times
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

Flymoth wrote: Fri May 01, 2020 9:31 am In icon mode. Make a popup title.
I will :)
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: Modern UI

Post by apeltauer »

HakanSeven12 wrote: Fri May 01, 2020 9:44 am
bleber wrote: Fri May 01, 2020 9:01 am
HakanSeven12 wrote: Thu Apr 30, 2020 7:52 pm Its good idea but I don't know how to catch this event.
Can you detect the presence of ok, cancel, close, buttons in the dock area?
I find a way
perfect!
You also can check with

Code: Select all

Gui::Control().activeDialog()
if a task is started....
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

I directly connect it to tab change. I think thats better than check always there is a dialog or not.

Code: Select all

        if dock.windowTitle().replace('&', '') == "Combo View":
            tab = dock.findChildren(QtWidgets.QTabWidget,"combiTab")[0]
            tab.currentChanged.connect(self.pin)
bleber
Posts: 259
Joined: Thu Jun 30, 2016 5:12 pm

Re: Modern UI

Post by bleber »

Last addition of auto pin dock works ok ad the workflow is improved! Thanks!.

Some issues I can report:
I cannot resize the dock area.
The sketcher geometry buttons not change color to blue when select Toggle Construction Geometry button
the sketcher constraint button not change color to blue when select Toggle reference Driving / Constraint button
It's difficult to remember if the toggle is activated or not when manage geometries and constraints.

Modern UI updated today.

OS: Linux Mint 19.3 (X-Cinnamon/cinnamon2d)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20802 (Git) AppImage
Build type: Release
Branch: master
Hash: f4279f1bea8377a7ef63f7f4c69b67159d498965
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Catalan/Spain (ca_ES)
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

bleber wrote: Fri May 01, 2020 5:15 pm I cannot resize the dock area.
If you want to resize the dock you need to pin dock.
bleber
Posts: 259
Joined: Thu Jun 30, 2016 5:12 pm

Re: Modern UI

Post by bleber »

Ok, I pin the dock but it only moves 1 pixel or something like these.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

I will take a look tomorrow.
Post Reply