class_scripteditorbase.rst 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. Description
  12. -----------
  13. Base editor for editing scripts in the :ref:`ScriptEditor<class_ScriptEditor>`, this does not include documentation items.
  14. Methods
  15. -------
  16. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`add_syntax_highlighter<class_ScriptEditorBase_method_add_syntax_highlighter>` **(** :ref:`EditorSyntaxHighlighter<class_EditorSyntaxHighlighter>` highlighter **)** |
  18. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`Control<class_Control>` | :ref:`get_base_editor<class_ScriptEditorBase_method_get_base_editor>` **(** **)** |const| |
  20. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. Signals
  22. -------
  23. .. _class_ScriptEditorBase_signal_edited_script_changed:
  24. - **edited_script_changed** **(** **)**
  25. Emitted after script validation.
  26. ----
  27. .. _class_ScriptEditorBase_signal_go_to_help:
  28. - **go_to_help** **(** :ref:`String<class_String>` what **)**
  29. Emitted when the user requests a specific documentation page.
  30. ----
  31. .. _class_ScriptEditorBase_signal_go_to_method:
  32. - **go_to_method** **(** :ref:`Object<class_Object>` script, :ref:`String<class_String>` method **)**
  33. 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>`.
  34. ----
  35. .. _class_ScriptEditorBase_signal_name_changed:
  36. - **name_changed** **(** **)**
  37. Emitted after script validation or when the edited resource has changed.
  38. ----
  39. .. _class_ScriptEditorBase_signal_replace_in_files_requested:
  40. - **replace_in_files_requested** **(** :ref:`String<class_String>` text **)**
  41. Emitted when the user request to find and replace text in the file system.
  42. ----
  43. .. _class_ScriptEditorBase_signal_request_help:
  44. - **request_help** **(** :ref:`String<class_String>` topic **)**
  45. Emitted when the user requests contextual help.
  46. ----
  47. .. _class_ScriptEditorBase_signal_request_open_script_at_line:
  48. - **request_open_script_at_line** **(** :ref:`Object<class_Object>` script, :ref:`int<class_int>` line **)**
  49. 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>`.
  50. ----
  51. .. _class_ScriptEditorBase_signal_request_save_history:
  52. - **request_save_history** **(** **)**
  53. Emitted when the user contextual goto and the item is in the same script.
  54. ----
  55. .. _class_ScriptEditorBase_signal_search_in_files_requested:
  56. - **search_in_files_requested** **(** :ref:`String<class_String>` text **)**
  57. Emitted when the user request to search text in the file system.
  58. Method Descriptions
  59. -------------------
  60. .. _class_ScriptEditorBase_method_add_syntax_highlighter:
  61. - void **add_syntax_highlighter** **(** :ref:`EditorSyntaxHighlighter<class_EditorSyntaxHighlighter>` highlighter **)**
  62. Adds a :ref:`EditorSyntaxHighlighter<class_EditorSyntaxHighlighter>` to the open script.
  63. ----
  64. .. _class_ScriptEditorBase_method_get_base_editor:
  65. - :ref:`Control<class_Control>` **get_base_editor** **(** **)** |const|
  66. Returns the underlying :ref:`Control<class_Control>` used for editing scripts. For text scripts, this is a :ref:`CodeEdit<class_CodeEdit>`.
  67. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  68. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  69. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  70. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  71. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  72. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`