Can you detect the presence of ok, cancel, close, buttons in the dock area?HakanSeven12 wrote: ↑Thu Apr 30, 2020 7:52 pm Its good idea but I don't know how to catch this event.
Modern UI
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Modern UI
Re: Modern UI
In icon mode. Make a popup title.
- Attachments
-
- ezgif.com-apng-to-gif.gif (226.35 KiB) Viewed 1324 times
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Modern UI
I find a waybleber wrote: ↑Fri May 01, 2020 9:01 amCan you detect the presence of ok, cancel, close, buttons in the dock area?HakanSeven12 wrote: ↑Thu Apr 30, 2020 7:52 pm Its good idea but I don't know how to catch this event.
- Attachments
-
- ComboTab.gif (417.67 KiB) Viewed 1315 times
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Modern UI
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: Modern UI
perfect!HakanSeven12 wrote: ↑Fri May 01, 2020 9:44 amI find a waybleber wrote: ↑Fri May 01, 2020 9:01 amCan you detect the presence of ok, cancel, close, buttons in the dock area?HakanSeven12 wrote: ↑Thu Apr 30, 2020 7:52 pm Its good idea but I don't know how to catch this event.
You also can check with
Code: Select all
Gui::Control().activeDialog()
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Modern UI
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)
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: Modern UI
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)
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)
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Modern UI
If you want to resize the dock you need to pin dock.
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: Modern UI
Ok, I pin the dock but it only moves 1 pixel or something like these.
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Modern UI
I will take a look tomorrow.
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum