Macro Toggle Panels Visibility/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "==Script==") |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
{{Macro |
{{Macro|Icon=Macro_Toggle_Views_Visibility|Name=Macro Toggle Views Visibility|Description=This macro toggles the visibility of various supporting views in FreeCAD, allowing the main window to be viewed with all available screen space.|Author=Piffpoof}} |
||
== |
==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. |
|||
Quando si lavora con FreeCAD, in certi momenti servono molte finestre di supporto aperte, come Combo View, Report, ecc., in altri momenti si desidera nascondere tutte le finestre di supporto in modo che tutto lo spazio disponibile sullo schermo possa essere utilizzato per visualizzare il modello in lavorazione. Questa macro consente di nascondere tutte le finestre di supporto, o di renderle nuovamente visibili, con un solo clic sulla barra degli strumenti. |
|||
== |
==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. |
|||
L'installazione si realizza copiando i due codici nella appropriata directory delle Mac. Dopo sono invocabili dal menu Macro. È molto utile aggiungerle entrambe in una barra in modo da renderle disponibili più facilmente. |
|||
* see [[Macro_Install_HowTo]] for information on how to install this macro code |
|||
* see [[Customize_ToolsBar]] for information how to install as a button on a toolbar |
|||
==Uso== |
==Uso== |
Revision as of 08:10, 25 January 2015
File:Macro Toggle Views Visibility Macro Toggle Views Visibility |
Description |
---|
This macro toggles the visibility of various supporting views in FreeCAD, allowing the main window to be viewed with all available screen space. Author: Piffpoof |
Author |
Piffpoof |
Download |
None |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
1.0 |
Date last modified |
None |
FreeCAD Version(s) |
None |
Default shortcut |
None |
See also |
None |
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.
- see Macro_Install_HowTo for information on how to install this macro code
- see Customize_ToolsBar for information how to install as a button on a toolbar
Uso
Fare clic sul pulsante della barra degli strumenti associato, o richiamarle dal menu Macro. Tutte le finestre di supporto quali Console Python, Rapporto e Vista Combinata diventeranno tutte visibili o tutte nascoste.
Interfaccia utente
L'azione dell'utente è immediatamente confermata dal fatto che le finestre di supporto appaiono o spariscono.
Script
# 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()