Std CloseActiveWindow/ro: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav
|[[Std_Open|Std Open]]
|[[Std_CloseAll|Std CloseAllWindows]]
|[[Std_File_Menu|Std File Menu]]
|IconL=Std_Open.svg
|IconR=
|IconC=Freecad.svg
}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand|Name=Std Close|MenuLocation=[[Std File Menu|File]] → Close||Workbenches=All|Shortcut=Ctrl+W|SeeAlso=[[Std CloseAll|CloseAll]]}}
{{GuiCommand|Name=Std Close|MenuLocation=[[Std File Menu|File]] → Close||Workbenches=All|Shortcut=Ctrl+W|SeeAlso=[[Std CloseAll|CloseAll]]}}
</div>
</div>



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 36: Line 43:
[[ComandiPerCategorie/it|Comandi per categorie]]
[[ComandiPerCategorie/it|Comandi per categorie]]
</div>
</div>

The '''Std CloseActiveWindow''' command closes the active document.


==Usage==
==Usage==
# Invoke the Std Close command several ways:
#* Using the {{KEY|Ctrl}}+{{KEY|W}} keyboard shortcut
#* Using the {{MenuCommand|{{StdMenu|[[Std File Menu|File]]}} → Close}}


# There are several ways to invoke the command:
{{clear}}
#* Select the {{MenuCommand|File → Close}} option from the menu.
#* Use the keyboard shortcut: {{KEY|Ctrl}}+{{KEY|F4}}.
# If the active document has not been saved a dialog box will prompt you to save it:
#* Press the {{Button|Save}} button to save the document. If required enter a filename first.
#* Press the {{Button|Discard}} button to discard the document and lose all changes.


==Options==
{{Std Base navi{{#translation:}}}}


* If the active document has not been saved: press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.

==Notes==

* A document can also be closed by right clicking it in the [[Tree_view|Tree view]] and selecting {{MenuCommand|Close document}} from the context menu.

==Preferences==

* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.

==Scripting==

{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

To close a document use the {{incode|closeDocument}} method of the FreeCAD application. For a scripting example see [[Std_New|Std New]].

{{Docnav
|[[Std_Open|Std Open]]
|[[Std_CloseAll|Std CloseAllWindows]]
|[[Std_File_Menu|Std File Menu]]
|IconL=Std_Open.svg
|IconR=
|IconC=Freecad.svg
}}

{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 21:14, 23 March 2020

Std Close

Menu location
File → Close
Workbenches
All
Default shortcut
Ctrl+W
Introduced in version
-
See also
CloseAll

Închide documentul curent

Chiudi

Posizione nel menu
File → Chiudi
Ambiente
Tutti
Avvio veloce
Crtl+W
Introdotto nella versione
-
Vedere anche
Chiudi tutto, Salva con nome... e Salva

Descriere

Comanda închide numai documentul activ și vă permite să continuați să lucrați la alte documente ale proiectului.

Dacă documentul nu a fost salvat sau a fost modificat, afișează un mesaj și întreabă dacă doriți să îl salvați:


În cazul unui răspuns afirmativ,

  • dacă documentul a fost deja salvat, utilizați numele și setul de adrese,
  • dacă documentul nu a fost salvat niciodată, deschideți fereastra pentru a defini calea și a atribui un nume documentului:


Comanda Template:KEY/it închide toate documentele proiectului .

Cu această comandaă nu se iese din FreeCAD.


Link

Comandi per categorie

The Std CloseActiveWindow command closes the active document.

Usage

  1. There are several ways to invoke the command:
    • Select the File → Close option from the menu.
    • Use the keyboard shortcut: Ctrl+F4.
  2. If the active document has not been saved a dialog box will prompt you to save it:
    • Press the Save button to save the document. If required enter a filename first.
    • Press the Discard button to discard the document and lose all changes.

Options

  • If the active document has not been saved: press Esc or the Cancel button to abort the command.

Notes

  • A document can also be closed by right clicking it in the Tree view and selecting Close document from the context menu.

Preferences

  • The last used file location is stored: Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath.

Scripting

See also: FreeCAD Scripting Basics.

To close a document use the closeDocument method of the FreeCAD application. For a scripting example see Std New.