feat(ui): make toolbar hideable
Description
The toolbars can not be hidden.
This wasn't an issue up to now, as the toolbars were strongly integrated into the view, and could be hidden with it. However, the sight evolution made it possible to provide an independent wid to a config to put a toolbar in a "higher" element. Hiding the config container will not hide the associated toolbar.
To handle this toolbar needs to have a setVisible slot/method which updates is visibility.
Functional specifications
The toolbars should be able to be hidden and showed through an action
Technical specifications
- Enhance the IToolBarLayoutManager with a setVisible(bool isVisible) method
- Get the toggleViewAction QAction from the toolbar in the ToolBarLayoutManager and store it
- Set the toggleViewAction check state and trigger it when isVisible is called
- Add slots in the IToolBar to hide/show/setVisibility
Test plan
add an Action to hide/show a toolbar and test it.