class_filesystemdock.rst 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/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>`\ (\ plugin\: :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>`\ ) |
  23. +--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | |void| | :ref:`navigate_to_path<class_FileSystemDock_method_navigate_to_path>`\ (\ path\: :ref:`String<class_String>`\ ) |
  25. +--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | |void| | :ref:`remove_resource_tooltip_plugin<class_FileSystemDock_method_remove_resource_tooltip_plugin>`\ (\ plugin\: :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>`\ ) |
  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**\ (\ ) :ref:`🔗<class_FileSystemDock_signal_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**\ (\ file\: :ref:`String<class_String>`\ ) :ref:`🔗<class_FileSystemDock_signal_file_removed>`
  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**\ (\ old_file\: :ref:`String<class_String>`, new_file\: :ref:`String<class_String>`\ ) :ref:`🔗<class_FileSystemDock_signal_files_moved>`
  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_color_changed:
  52. .. rst-class:: classref-signal
  53. **folder_color_changed**\ (\ ) :ref:`🔗<class_FileSystemDock_signal_folder_color_changed>`
  54. Emitted when folders change color.
  55. .. rst-class:: classref-item-separator
  56. ----
  57. .. _class_FileSystemDock_signal_folder_moved:
  58. .. rst-class:: classref-signal
  59. **folder_moved**\ (\ old_folder\: :ref:`String<class_String>`, new_folder\: :ref:`String<class_String>`\ ) :ref:`🔗<class_FileSystemDock_signal_folder_moved>`
  60. Emitted when a folder is moved from ``old_folder`` path to ``new_folder`` path.
  61. .. rst-class:: classref-item-separator
  62. ----
  63. .. _class_FileSystemDock_signal_folder_removed:
  64. .. rst-class:: classref-signal
  65. **folder_removed**\ (\ folder\: :ref:`String<class_String>`\ ) :ref:`🔗<class_FileSystemDock_signal_folder_removed>`
  66. Emitted when the given ``folder`` was removed.
  67. .. rst-class:: classref-item-separator
  68. ----
  69. .. _class_FileSystemDock_signal_inherit:
  70. .. rst-class:: classref-signal
  71. **inherit**\ (\ file\: :ref:`String<class_String>`\ ) :ref:`🔗<class_FileSystemDock_signal_inherit>`
  72. Emitted when a new scene is created that inherits the scene at ``file`` path.
  73. .. rst-class:: classref-item-separator
  74. ----
  75. .. _class_FileSystemDock_signal_instantiate:
  76. .. rst-class:: classref-signal
  77. **instantiate**\ (\ files\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) :ref:`🔗<class_FileSystemDock_signal_instantiate>`
  78. Emitted when the given scenes are being instantiated in the editor.
  79. .. rst-class:: classref-item-separator
  80. ----
  81. .. _class_FileSystemDock_signal_resource_removed:
  82. .. rst-class:: classref-signal
  83. **resource_removed**\ (\ resource\: :ref:`Resource<class_Resource>`\ ) :ref:`🔗<class_FileSystemDock_signal_resource_removed>`
  84. Emitted when an external ``resource`` had its file removed.
  85. .. rst-class:: classref-section-separator
  86. ----
  87. .. rst-class:: classref-descriptions-group
  88. Method Descriptions
  89. -------------------
  90. .. _class_FileSystemDock_method_add_resource_tooltip_plugin:
  91. .. rst-class:: classref-method
  92. |void| **add_resource_tooltip_plugin**\ (\ plugin\: :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>`\ ) :ref:`🔗<class_FileSystemDock_method_add_resource_tooltip_plugin>`
  93. Registers a new :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>`.
  94. .. rst-class:: classref-item-separator
  95. ----
  96. .. _class_FileSystemDock_method_navigate_to_path:
  97. .. rst-class:: classref-method
  98. |void| **navigate_to_path**\ (\ path\: :ref:`String<class_String>`\ ) :ref:`🔗<class_FileSystemDock_method_navigate_to_path>`
  99. Sets the given ``path`` as currently selected, ensuring that the selected file/directory is visible.
  100. .. rst-class:: classref-item-separator
  101. ----
  102. .. _class_FileSystemDock_method_remove_resource_tooltip_plugin:
  103. .. rst-class:: classref-method
  104. |void| **remove_resource_tooltip_plugin**\ (\ plugin\: :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>`\ ) :ref:`🔗<class_FileSystemDock_method_remove_resource_tooltip_plugin>`
  105. Removes an :ref:`EditorResourceTooltipPlugin<class_EditorResourceTooltipPlugin>`. Fails if the plugin wasn't previously added.
  106. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  107. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  108. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  109. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  110. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  111. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  112. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  113. .. |void| replace:: :abbr:`void (No return value.)`