class_scripteditorbase.rst 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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/ScriptEditorBase.xml.
  6. .. _class_ScriptEditorBase:
  7. ScriptEditorBase
  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. Base editor for editing scripts in the :ref:`ScriptEditor<class_ScriptEditor>`.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Base editor for editing scripts in the :ref:`ScriptEditor<class_ScriptEditor>`. This does not include documentation items.
  15. .. rst-class:: classref-reftable-group
  16. Methods
  17. -------
  18. .. table::
  19. :widths: auto
  20. +-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | |void| | :ref:`add_syntax_highlighter<class_ScriptEditorBase_method_add_syntax_highlighter>`\ (\ highlighter\: :ref:`EditorSyntaxHighlighter<class_EditorSyntaxHighlighter>`\ ) |
  22. +-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Control<class_Control>` | :ref:`get_base_editor<class_ScriptEditorBase_method_get_base_editor>`\ (\ ) |const| |
  24. +-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. .. rst-class:: classref-section-separator
  26. ----
  27. .. rst-class:: classref-descriptions-group
  28. Signals
  29. -------
  30. .. _class_ScriptEditorBase_signal_edited_script_changed:
  31. .. rst-class:: classref-signal
  32. **edited_script_changed**\ (\ ) :ref:`🔗<class_ScriptEditorBase_signal_edited_script_changed>`
  33. Emitted after script validation.
  34. .. rst-class:: classref-item-separator
  35. ----
  36. .. _class_ScriptEditorBase_signal_go_to_help:
  37. .. rst-class:: classref-signal
  38. **go_to_help**\ (\ what\: :ref:`String<class_String>`\ ) :ref:`🔗<class_ScriptEditorBase_signal_go_to_help>`
  39. Emitted when the user requests a specific documentation page.
  40. .. rst-class:: classref-item-separator
  41. ----
  42. .. _class_ScriptEditorBase_signal_go_to_method:
  43. .. rst-class:: classref-signal
  44. **go_to_method**\ (\ script\: :ref:`Object<class_Object>`, method\: :ref:`String<class_String>`\ ) :ref:`🔗<class_ScriptEditorBase_signal_go_to_method>`
  45. Emitted when the user requests to view a specific method of a script, similar to :ref:`request_open_script_at_line<class_ScriptEditorBase_signal_request_open_script_at_line>`.
  46. .. rst-class:: classref-item-separator
  47. ----
  48. .. _class_ScriptEditorBase_signal_name_changed:
  49. .. rst-class:: classref-signal
  50. **name_changed**\ (\ ) :ref:`🔗<class_ScriptEditorBase_signal_name_changed>`
  51. Emitted after script validation or when the edited resource has changed.
  52. .. rst-class:: classref-item-separator
  53. ----
  54. .. _class_ScriptEditorBase_signal_replace_in_files_requested:
  55. .. rst-class:: classref-signal
  56. **replace_in_files_requested**\ (\ text\: :ref:`String<class_String>`\ ) :ref:`🔗<class_ScriptEditorBase_signal_replace_in_files_requested>`
  57. Emitted when the user request to find and replace text in the file system.
  58. .. rst-class:: classref-item-separator
  59. ----
  60. .. _class_ScriptEditorBase_signal_request_help:
  61. .. rst-class:: classref-signal
  62. **request_help**\ (\ topic\: :ref:`String<class_String>`\ ) :ref:`🔗<class_ScriptEditorBase_signal_request_help>`
  63. Emitted when the user requests contextual help.
  64. .. rst-class:: classref-item-separator
  65. ----
  66. .. _class_ScriptEditorBase_signal_request_open_script_at_line:
  67. .. rst-class:: classref-signal
  68. **request_open_script_at_line**\ (\ script\: :ref:`Object<class_Object>`, line\: :ref:`int<class_int>`\ ) :ref:`🔗<class_ScriptEditorBase_signal_request_open_script_at_line>`
  69. Emitted when the user requests to view a specific line of a script, similar to :ref:`go_to_method<class_ScriptEditorBase_signal_go_to_method>`.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_ScriptEditorBase_signal_request_save_history:
  73. .. rst-class:: classref-signal
  74. **request_save_history**\ (\ ) :ref:`🔗<class_ScriptEditorBase_signal_request_save_history>`
  75. Emitted when the user contextual goto and the item is in the same script.
  76. .. rst-class:: classref-item-separator
  77. ----
  78. .. _class_ScriptEditorBase_signal_request_save_previous_state:
  79. .. rst-class:: classref-signal
  80. **request_save_previous_state**\ (\ state\: :ref:`Dictionary<class_Dictionary>`\ ) :ref:`🔗<class_ScriptEditorBase_signal_request_save_previous_state>`
  81. Emitted when the user changes current script or moves caret by 10 or more columns within the same script.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_ScriptEditorBase_signal_search_in_files_requested:
  85. .. rst-class:: classref-signal
  86. **search_in_files_requested**\ (\ text\: :ref:`String<class_String>`\ ) :ref:`🔗<class_ScriptEditorBase_signal_search_in_files_requested>`
  87. Emitted when the user request to search text in the file system.
  88. .. rst-class:: classref-section-separator
  89. ----
  90. .. rst-class:: classref-descriptions-group
  91. Method Descriptions
  92. -------------------
  93. .. _class_ScriptEditorBase_method_add_syntax_highlighter:
  94. .. rst-class:: classref-method
  95. |void| **add_syntax_highlighter**\ (\ highlighter\: :ref:`EditorSyntaxHighlighter<class_EditorSyntaxHighlighter>`\ ) :ref:`🔗<class_ScriptEditorBase_method_add_syntax_highlighter>`
  96. Adds a :ref:`EditorSyntaxHighlighter<class_EditorSyntaxHighlighter>` to the open script.
  97. .. rst-class:: classref-item-separator
  98. ----
  99. .. _class_ScriptEditorBase_method_get_base_editor:
  100. .. rst-class:: classref-method
  101. :ref:`Control<class_Control>` **get_base_editor**\ (\ ) |const| :ref:`🔗<class_ScriptEditorBase_method_get_base_editor>`
  102. Returns the underlying :ref:`Control<class_Control>` used for editing scripts. For text scripts, this is a :ref:`CodeEdit<class_CodeEdit>`.
  103. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  104. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  105. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  106. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  107. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  108. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  109. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  110. .. |void| replace:: :abbr:`void (No return value.)`