Left pane, and toolbar, prominence: Features, or not yet refined functional issues?

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
a3bksll47
Posts: 197
Joined: Sat Mar 17, 2018 3:42 am

Re: Left pane, and toolbar, prominence: Features, or not yet refined functional issues?

Post by a3bksll47 »

triplus wrote: Sun Apr 15, 2018 10:39 pm At this point this is the best i can offer (to get some results). Didn't test it but creating a macro command with assigned shortcut likely should be achievable using the code snippet as a basis:

Code: Select all

from PySide import QtGui
mw = Gui.getMainWindow()
mw.findChild(QtGui.QDockWidget, "Combo View").toggleViewAction().trigger()
P.S. In the future who knows what will happen. Projects like this or some other approach might end up making viewport a bigger by default:

https://forum.freecadweb.org/viewtopic.php?f=8&t=23053
Oh cool! Thanks for this snip.
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: Left pane, and toolbar, prominence: Features, or not yet refined functional issues?

Post by mario52 »

hi

also Macro_Toggle_Panels_Visibility Image
This macro toggles the visibility of various supporting panels in FreeCAD, allowing the main window to be viewed with all available screen space.

same triplus snippet and include the Python console and report view

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
a3bksll47
Posts: 197
Joined: Sat Mar 17, 2018 3:42 am

Re: Left pane, and toolbar, prominence: Features, or not yet refined functional issues?

Post by a3bksll47 »

mario52 wrote: Mon Apr 16, 2018 9:44 am hi

also Macro_Toggle_Panels_Visibility Image
This macro toggles the visibility of various supporting panels in FreeCAD, allowing the main window to be viewed with all available screen space.

same triplus snippet and include the Python console and report view

mario
Thanks, will look at this.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Left pane, and toolbar, prominence: Features, or not yet refined functional issues?

Post by triplus »

a3bksll47 wrote: Mon Apr 16, 2018 1:28 am Oh cool! Thanks for this snip.
You're welcome.
mario52 wrote: Mon Apr 16, 2018 9:44 am hi

also Macro_Toggle_Panels_Visibility Image
This macro toggles the visibility of various supporting panels in FreeCAD, allowing the main window to be viewed with all available screen space.

same triplus snippet and include the Python console and report view

mario
I tend to forget to first check the macro list. If similar solution is already available. ;)
Post Reply