2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								<?xml version="1.0" encoding="UTF-8" ?>
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-27 13:40:43 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								<class name="EditorFileDialog" inherits="ConfirmationDialog" category="Core" version="3.1">
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<brief_description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</brief_description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<tutorials>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</tutorials>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<demos>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</demos>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<methods>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<method name="add_filter">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<return type="void">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</return>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<argument index="0" name="filter" type="String">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</argument>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
												Adds a comma-delimited file extension filter option to the [code]EditorFileDialog[/code] with an optional semi-colon-delimited label.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
												Example: "*.tscn, *.scn; Scenes", results in filter text "Scenes (*.tscn, *.scn)".
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</method>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<method name="clear_filters">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<return type="void">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</return>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
												Removes all filters except for "All Files (*)".
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</method>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<method name="get_vbox">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<return type="VBoxContainer">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</return>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
												Returns the [code]VBoxContainer[/code] used to display the file system.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</method>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<method name="invalidate">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<return type="void">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</return>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
												Notify the [code]EditorFileDialog[/code] that its view of the data is no longer accurate. Updates the view contents on next view update.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</method>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</methods>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									<members>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-07 08:23:08 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<member name="access" type="int" setter="set_access" getter="get_access" enum="EditorFileDialog.Access">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The location from which the user may select a file, including [code]res://[/code], [code]user://[/code], and the local file system.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</member>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<member name="current_dir" type="String" setter="set_current_dir" getter="get_current_dir">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											The currently occupied directory.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</member>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<member name="current_file" type="String" setter="set_current_file" getter="get_current_file">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											The currently selected file.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</member>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<member name="current_path" type="String" setter="set_current_path" getter="get_current_path">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											The file system path in the address bar.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</member>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<member name="disable_overwrite_warning" type="bool" setter="set_disable_overwrite_warning" getter="is_overwrite_warning_disabled">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											If [code]true[/code] the [code]EditorFileDialog[/code] will not warn the user before overwriting files.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</member>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-07 08:23:08 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<member name="display_mode" type="int" setter="set_display_mode" getter="get_display_mode" enum="EditorFileDialog.DisplayMode">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											The view format in which the [code]EditorFileDialog[/code] displays resources to the user.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</member>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<member name="mode" type="int" setter="set_mode" getter="get_mode" enum="EditorFileDialog.Mode">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											The purpose of the [code]EditorFileDialog[/code]. Changes allowed behaviors.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</member>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<member name="show_hidden_files" type="bool" setter="set_show_hidden_files" getter="is_showing_hidden_files">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											If [code]true[/code] hidden files and directories will be visible in the [code]EditorFileDialog[/code].
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</member>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									</members>
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<signals>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<signal name="dir_selected">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<argument index="0" name="dir" type="String">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</argument>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
												Emitted when a directory is selected.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</signal>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<signal name="file_selected">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<argument index="0" name="path" type="String">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</argument>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
												Emitted when a file is selected.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</signal>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<signal name="files_selected">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<argument index="0" name="paths" type="PoolStringArray">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</argument>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
												Emitted when multiple files are selected.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</signal>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</signals>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<constants>
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="MODE_OPEN_FILE" value="0" enum="Mode">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The [code]EditorFileDialog[/code] can select only one file. Accepting the window will open the file.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="MODE_OPEN_FILES" value="1" enum="Mode">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The [code]EditorFileDialog[/code] can select multiple files. Accepting the window will open all files.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="MODE_OPEN_DIR" value="2" enum="Mode">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The [code]EditorFileDialog[/code] can select only one directory. Accepting the window will open the directory.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="MODE_OPEN_ANY" value="3" enum="Mode">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The [code]EditorFileDialog[/code] can select a file or directory. Accepting the window will open it.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="MODE_SAVE_FILE" value="4" enum="Mode">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The [code]EditorFileDialog[/code] can select only one file. Accepting the window will save the file.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="ACCESS_RESOURCES" value="0" enum="Access">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The [code]EditorFileDialog[/code] can only view [code]res://[/code] directory contents.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="ACCESS_USERDATA" value="1" enum="Access">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The [code]EditorFileDialog[/code] can only view [code]user://[/code] directory contents.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="ACCESS_FILESYSTEM" value="2" enum="Access">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The [code]EditorFileDialog[/code] can view the entire local file system.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="DISPLAY_THUMBNAILS" value="0" enum="DisplayMode">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The [code]EditorFileDialog[/code] displays resources as thumbnails.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="DISPLAY_LIST" value="1" enum="DisplayMode">
							 | 
						
					
						
							
								
									
										
										
										
											2017-12-04 16:11:31 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The [code]EditorFileDialog[/code] displays resources as a list of filenames.
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</constants>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								</class>
							 |