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)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

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


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


<span id="Description"></span>
<div class="mw-translate-fuzzy">
==Descriere==
Închide documentul curent
{{GuiCommand/it|Name=Std_Close|Name/it=Chiudi|MenuLocation=[[Std_File_Menu/it|File]] → Chiudi|Workbenches=Tutti|Shortcut=Crtl+W|SeeAlso=[[Std_CloseAll/it|Chiudi tutto]], [[Std_SaveAs/it|Salva con nome...]] e [[Std_Save/it|Salva]]}}


The '''Std CloseActiveWindow''' command closes the active window. To close a document all its windows must be closed.
=== 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:


[[Image:UnsavedDocument.png]]

Î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:
[[Image:FileSaveAs.png|left]]
{{clear}}



Comanda {{KEY/it|Chiudi tutto}} închide toate documentele proiectului .

Cu această comandaă nu se iese din FreeCAD.


=== Link ===
[[ComandiPerCategorie/it|Comandi per categorie]]
</div>

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


==Usage==
==Usage==


# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Select the {{MenuCommand|File → Close}} option from the menu.
#* Select the {{MenuCommand|File → [[Image:Std_CloseActiveWindow.svg|16px]] Close}} option from the menu.
#* Use the keyboard shortcut: {{KEY|Ctrl}}+{{KEY|F4}}.
#* 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:
# To close a document: repeat this for all windows belonging to it.
# When closing the last window of a document that 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|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.
#* Press the {{Button|Discard}} button to discard the document and lose all changes.
Line 57: Line 35:
==Options==
==Options==


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


==Notes==
==Notes==


* The command can only close [[Std_ViewDockUndockFullscreen|docked]] windows.
* 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.
* 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==
==Scripting==
Line 72: Line 47:


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



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


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

Latest revision as of 11:46, 21 April 2024

Std CloseActiveWindow

Menu location
File → Close
Workbenches
All
Default shortcut
Ctrl+F4
Introduced in version
-
See also
Std CloseAllWindows

Descriere

The Std CloseActiveWindow command closes the active window. To close a document all its windows must be closed.

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. To close a document: repeat this for all windows belonging to it.
  3. When closing the last window of a document that 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

  • When the dialog box is displayed: press Esc or the Cancel button to abort the command.

Notes

  • The command can only close docked windows.
  • A document can also be closed by right-clicking it in the Tree view and selecting Close document from the context menu.

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.