aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/script_editor_plugin.h
diff options
context:
space:
mode:
authorMarc Gilleron2018-02-12 02:36:15 +0100
committerMarc Gilleron2018-02-19 22:38:58 +0100
commitf637ad84e3af9cecddcd0ff3c89609087ab9701e (patch)
treecacb870707448757acde0c50324460e0134533a2 /editor/plugins/script_editor_plugin.h
parentc8b2122b33c294b9da39f4126f0797ebc98aaced (diff)
downloadgodot-f637ad84e3af9cecddcd0ff3c89609087ab9701e.tar.gz
godot-f637ad84e3af9cecddcd0ff3c89609087ab9701e.tar.zst
godot-f637ad84e3af9cecddcd0ff3c89609087ab9701e.zip
Diffstat (limited to 'editor/plugins/script_editor_plugin.h')
-rw-r--r--editor/plugins/script_editor_plugin.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.h b/editor/plugins/script_editor_plugin.h
index e60e4cf8c..bb0271fa4 100644
--- a/editor/plugins/script_editor_plugin.h
+++ b/editor/plugins/script_editor_plugin.h
@@ -115,6 +115,8 @@ public:
typedef ScriptEditorBase *(*CreateScriptEditorFunc)(const Ref<Script> &p_script);
class EditorScriptCodeCompletionCache;
+class FindInFilesDialog;
+class FindInFilesPanel;
class ScriptEditor : public PanelContainer {
@@ -211,6 +213,10 @@ class ScriptEditor : public PanelContainer {
ToolButton *script_back;
ToolButton *script_forward;
+ FindInFilesDialog *find_in_files_dialog;
+ FindInFilesPanel *find_in_files;
+ Button *find_in_files_button;
+
enum {
SCRIPT_EDITOR_FUNC_MAX = 32
};
@@ -294,6 +300,8 @@ class ScriptEditor : public PanelContainer {
void _update_window_menu();
void _script_created(Ref<Script> p_script);
+ ScriptEditorBase *_get_current_editor() const;
+
void _save_layout();
void _editor_settings_changed();
void _autosave_scripts();
@@ -349,6 +357,11 @@ class ScriptEditor : public PanelContainer {
Ref<Script> _get_current_script();
Array _get_open_scripts() const;
+ void _on_find_in_files_requested(String text);
+ void _on_find_in_files_result_selected(String fpath, int line_number, int begin, int end);
+ void _start_find_in_files(bool with_replace);
+ void _on_find_in_files_modified_files(PoolStringArray paths);
+
static void _open_script_request(const String &p_path);
static ScriptEditor *script_editor;