Macro Nascondi Pannelli
File:Macro Toggle Views Visibility Macro Toggle Views Visibility |
Descrizione |
---|
Questa macro commuta la visibilità dai vari punti di vista supportati in FreeCAD, permettendo di visualizzare la finestra principale in tutto lo spazio disponibile sullo schermo. Autore: PiffPoof |
Autore |
PiffPoof |
Download |
None |
Link |
Raccolta di macro Come installare le macro Personalizzare la toolbar |
Versione macro |
1.0 |
Data ultima modifica |
None |
Versioni di FreeCAD |
None |
Scorciatoia |
Nessuna |
Vedere anche |
Nessuno |
Description
When working with FreeCAD there are times when you need many supporting windows open, such as Combo View, Report View, etc. There are other times when you want all the clutter of the supporting windows to disappear so that all the screen space available can be used to view the model being worked with. This macro lets you hide all the supporting windows (or make them visible again) with one click on the toolbar.
Installation
Installation is comprised of copying the two code to the appropriate Macro directory and invoking it from the Macro menu. It is much preferable to add it both to a toolbar so as to be more easily available.
Usage
Click on the associated toolbar button, or invoke from the Macro menu. The supporting windows Python console, Report view, Combo view will either all become visible or all become hidden.
User Interface
There is immediate confirmation of the user action as the supporting windows either appear or disappear.
Scripts
# macro to toggle visibility of Report view, Python console, Combo view
from PySide import QtCore, QtGui
mainWindow = FreeCADGui.getMainWindow()
dockWidgets = mainWindow.findChildren(QtGui.QDockWidget)
for dw in dockWidgets:
if dw.objectName() == "Python console":
pcWidget = dw
if dw.objectName() == "Combo View":
cvWidget = dw
if dw.objectName() == "Report view":
rvWidget = dw
if pcWidget.isVisible():
pcWidget.hide()
cvWidget.hide()
rvWidget.hide()
else:
pcWidget.show()
cvWidget.show()
rvWidget.show()