summaryrefslogtreecommitdiff
path: root/doc/classes/ScriptEditorBase.xml
blob: 68834839f3eb9dcb85194fb35989c99f074b24b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8" ?>
<class name="ScriptEditorBase" inherits="VBoxContainer" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
	<brief_description>
		Base editor for editing scripts in the [ScriptEditor].
	</brief_description>
	<description>
		Base editor for editing scripts in the [ScriptEditor], this does not include documentation items.
	</description>
	<tutorials>
	</tutorials>
	<methods>
		<method name="add_syntax_highlighter">
			<return type="void" />
			<param index="0" name="highlighter" type="EditorSyntaxHighlighter" />
			<description>
				Adds a [EditorSyntaxHighlighter] to the open script.
			</description>
		</method>
		<method name="get_base_editor" qualifiers="const">
			<return type="Control" />
			<description>
				Returns the underlying [Control] used for editing scripts. For text scripts, this is a [CodeEdit].
			</description>
		</method>
	</methods>
	<signals>
		<signal name="edited_script_changed">
			<description>
				Emitted after script validation.
			</description>
		</signal>
		<signal name="go_to_help">
			<param index="0" name="what" type="String" />
			<description>
				Emitted when the user requests a specific documentation page.
			</description>
		</signal>
		<signal name="name_changed">
			<description>
				Emitted after script validation or when the edited resource has changed.
			</description>
		</signal>
		<signal name="replace_in_files_requested">
			<param index="0" name="text" type="String" />
			<description>
				Emitted when the user request to find and replace text in the file system.
			</description>
		</signal>
		<signal name="request_help">
			<param index="0" name="topic" type="String" />
			<description>
				Emitted when the user requests contextual help.
			</description>
		</signal>
		<signal name="request_open_script_at_line">
			<param index="0" name="script" type="Object" />
			<param index="1" name="line" type="int" />
			<description>
				Emitted when the user requests a script.
			</description>
		</signal>
		<signal name="request_save_history">
			<description>
				Emitted when the user contextual goto and the item is in the same script.
			</description>
		</signal>
		<signal name="search_in_files_requested">
			<param index="0" name="text" type="String" />
			<description>
				Emitted when the user request to search text in the file system.
			</description>
		</signal>
	</signals>
</class>