class_filesystemdock.rst 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/FileSystemDock.xml.
  6. .. _class_FileSystemDock:
  7. FileSystemDock
  8. ==============
  9. **Inherits:** :ref:`VBoxContainer<class_VBoxContainer>` **<** :ref:`BoxContainer<class_BoxContainer>` **<** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Godot editor's dock for managing files in the project.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This class is available only in :ref:`EditorPlugin<class_EditorPlugin>`\ s and can't be instantiated. You can access it using :ref:`EditorInterface.get_file_system_dock<class_EditorInterface_method_get_file_system_dock>`.
  15. While **FileSystemDock** doesn't expose any methods for file manipulation, it can listen for various file-related signals.
  16. .. rst-class:: classref-reftable-group
  17. Methods
  18. -------
  19. .. table::
  20. :widths: auto
  21. +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`add_resource_tooltip_plugin<class_FileSystemDock_method_add_resource_tooltip_plugin>` **(** :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>` plugin **)** |
  23. +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`navigate_to_path<class_FileSystemDock_method_navigate_to_path>` **(** :ref:`String<class_String>` path **)** |
  25. +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`remove_resource_tooltip_plugin<class_FileSystemDock_method_remove_resource_tooltip_plugin>` **(** :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>` plugin **)** |
  27. +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. .. rst-class:: classref-section-separator
  29. ----
  30. .. rst-class:: classref-descriptions-group
  31. Signals
  32. -------
  33. .. _class_FileSystemDock_signal_display_mode_changed:
  34. .. rst-class:: classref-signal
  35. **display_mode_changed** **(** **)**
  36. Emitted when the user switches file display mode or split mode.
  37. .. rst-class:: classref-item-separator
  38. ----
  39. .. _class_FileSystemDock_signal_file_removed:
  40. .. rst-class:: classref-signal
  41. **file_removed** **(** :ref:`String<class_String>` file **)**
  42. Emitted when the given ``file`` was removed.
  43. .. rst-class:: classref-item-separator
  44. ----
  45. .. _class_FileSystemDock_signal_files_moved:
  46. .. rst-class:: classref-signal
  47. **files_moved** **(** :ref:`String<class_String>` old_file, :ref:`String<class_String>` new_file **)**
  48. Emitted when a file is moved from ``old_file`` path to ``new_file`` path.
  49. .. rst-class:: classref-item-separator
  50. ----
  51. .. _class_FileSystemDock_signal_folder_moved:
  52. .. rst-class:: classref-signal
  53. **folder_moved** **(** :ref:`String<class_String>` old_folder, :ref:`String<class_String>` new_folder **)**
  54. Emitted when a folder is moved from ``old_folder`` path to ``new_folder`` path.
  55. .. rst-class:: classref-item-separator
  56. ----
  57. .. _class_FileSystemDock_signal_folder_removed:
  58. .. rst-class:: classref-signal
  59. **folder_removed** **(** :ref:`String<class_String>` folder **)**
  60. Emitted when the given ``folder`` was removed.
  61. .. rst-class:: classref-item-separator
  62. ----
  63. .. _class_FileSystemDock_signal_inherit:
  64. .. rst-class:: classref-signal
  65. **inherit** **(** :ref:`String<class_String>` file **)**
  66. Emitted when a new scene is created that inherits the scene at ``file`` path.
  67. .. rst-class:: classref-item-separator
  68. ----
  69. .. _class_FileSystemDock_signal_instantiate:
  70. .. rst-class:: classref-signal
  71. **instantiate** **(** :ref:`PackedStringArray<class_PackedStringArray>` files **)**
  72. Emitted when the given scenes are being instantiated in the editor.
  73. .. rst-class:: classref-item-separator
  74. ----
  75. .. _class_FileSystemDock_signal_resource_removed:
  76. .. rst-class:: classref-signal
  77. **resource_removed** **(** :ref:`Resource<class_Resource>` resource **)**
  78. Emitted when an external ``resource`` had its file removed.
  79. .. rst-class:: classref-section-separator
  80. ----
  81. .. rst-class:: classref-descriptions-group
  82. Method Descriptions
  83. -------------------
  84. .. _class_FileSystemDock_method_add_resource_tooltip_plugin:
  85. .. rst-class:: classref-method
  86. void **add_resource_tooltip_plugin** **(** :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>` plugin **)**
  87. Registers a new :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>`.
  88. .. rst-class:: classref-item-separator
  89. ----
  90. .. _class_FileSystemDock_method_navigate_to_path:
  91. .. rst-class:: classref-method
  92. void **navigate_to_path** **(** :ref:`String<class_String>` path **)**
  93. Sets the given ``path`` as currently selected, ensuring that the selected file/directory is visible.
  94. .. rst-class:: classref-item-separator
  95. ----
  96. .. _class_FileSystemDock_method_remove_resource_tooltip_plugin:
  97. .. rst-class:: classref-method
  98. void **remove_resource_tooltip_plugin** **(** :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>` plugin **)**
  99. Removes an :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>`. Fails if the plugin wasn't previously added.
  100. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  101. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  102. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  103. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  104. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  105. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  106. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`