[Merged] PR#7655 : Gui: force-hide toolbars + Split sketcher toolbar

Post here if you have re-based and finalised code to integrate into master, which was discussed, agreed to and tested in other forums. You can also submit your PR directly on github.
Post Reply
User avatar
paddle
Posts: 838
Joined: Mon Feb 03, 2020 4:47 pm

[Merged] PR#7655 : Gui: force-hide toolbars + Split sketcher toolbar

Post by paddle »

https://github.com/FreeCAD/FreeCAD/pull/7655
The offered change is to :
Commit 1 - split the main sketcher toolbar in 2. One for tools that are only in edit mode. One for tools that are only in non-edit-mode.

Commit 2 - This adds the systemwide possibility to hide toolbars at anytime while in a workbench.
Show/hide automatically toolbars depending if we are in edit mode or not.
More specifically it hides : Sketcher-edit-mode, Geometry, constraint, tools, virtualSpace toolbars when in sketcher-not-edit-mode.
And it hides : Sketcher and Structure toolbar when in sketcher-edit-mode
Last edited by paddle on Fri Nov 04, 2022 5:35 pm, edited 2 times in total.
adrianinsaval
Veteran
Posts: 4115
Joined: Thu Apr 05, 2018 5:15 pm

Re: PR#7655 : Gui: force-hide toolbars + Split sketcher toolbar

Post by adrianinsaval »

with the auto hide/show what happens if I manually hide a toolbar, will it be auto shown when I change back and forth from/to edit mode?
User avatar
paddle
Posts: 838
Joined: Mon Feb 03, 2020 4:47 pm

Re: PR#7655 : Gui: force-hide toolbars + Split sketcher toolbar

Post by paddle »

adrianinsaval wrote: Fri Oct 28, 2022 9:00 pm with the auto hide/show what happens if I manually hide a toolbar, will it be auto shown when I change back and forth from/to edit mode?
No. If you hide a toolbar it won't show up next. The force hide do not override the preferences.
It was quite painful to get to work right but now it works as expected.

Here's a video :
phpBB [video]
Post Reply