Moved ScriptEditorPlugin and ScriptEditor out from the editor folder.

This commit is contained in:
Relintai 2023-02-18 15:08:56 +01:00
parent de757b8b02
commit 65c91c6899
26 changed files with 32 additions and 32 deletions

View File

@ -75,7 +75,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
static Node *_find_first_script(Node *p_root, Node *p_node) { static Node *_find_first_script(Node *p_root, Node *p_node) {

View File

@ -46,7 +46,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
class Resource; class Resource;

View File

@ -55,7 +55,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor_plugin.h" #include "modules/code_editor/script_editor_plugin.h"
#endif #endif
class ConfigFile; class ConfigFile;

View File

@ -60,7 +60,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
static int _get_pad(int p_alignment, int p_n) { static int _get_pad(int p_alignment, int p_n) {

View File

@ -66,7 +66,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
#define CONTRIBUTE_URL vformat("%s/community/contributing/updating_the_class_reference.html", VERSION_DOCS_URL) #define CONTRIBUTE_URL vformat("%s/community/contributing/updating_the_class_reference.html", VERSION_DOCS_URL)

View File

@ -193,7 +193,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#include "modules/code_editor/script_text_editor.h" #include "modules/code_editor/script_text_editor.h"
#include "modules/code_editor/text_editor.h" #include "modules/code_editor/text_editor.h"
#endif #endif

View File

@ -77,7 +77,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
class ConfigFile; class ConfigFile;

View File

@ -72,7 +72,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#include "modules/code_editor/script_editor_base.h" #include "modules/code_editor/script_editor_base.h"
#endif #endif

View File

@ -45,7 +45,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
EditorRun::Status EditorRun::get_status() const { EditorRun::Status EditorRun::get_status() const {

View File

@ -103,7 +103,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
// Min and Max are power of two in order to play nicely with successive increment. // Min and Max are power of two in order to play nicely with successive increment.

View File

@ -102,7 +102,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
#define DISTANCE_DEFAULT 4 #define DISTANCE_DEFAULT 4

View File

@ -99,7 +99,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
void SceneTreeDock::_nodes_drag_begin() { void SceneTreeDock::_nodes_drag_begin() {

View File

@ -67,7 +67,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#include "modules/code_editor/script_editor_base.h" #include "modules/code_editor/script_editor_base.h"
#endif #endif

View File

@ -70,7 +70,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
void EditorSettingsDialog::ok_pressed() { void EditorSettingsDialog::ok_pressed() {

View File

@ -86,7 +86,7 @@
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
/* Static members */ /* Static members */

View File

@ -16,8 +16,8 @@ sources = [
"find_replace_bar.cpp", "find_replace_bar.cpp",
"script_editor_quick_open.cpp", "script_editor_quick_open.cpp",
"editor/script_editor_plugin.cpp", "script_editor_plugin.cpp",
"editor/script_editor.cpp", "script_editor.cpp",
] ]
env_mlp.add_source_files(env.modules_sources, sources) env_mlp.add_source_files(env.modules_sources, sources)

View File

@ -67,7 +67,7 @@
#include "find_replace_bar.h" #include "find_replace_bar.h"
#include "goto_line_dialog.h" #include "goto_line_dialog.h"
#include "editor/script_editor.h" #include "script_editor.h"
// This function should be used to handle shortcuts that could otherwise // This function should be used to handle shortcuts that could otherwise
// be handled too late if they weren't handled here. // be handled too late if they weren't handled here.

View File

@ -1,8 +1,8 @@
#include "register_types.h" #include "register_types.h"
#include "editor/script_editor.h" #include "script_editor.h"
#include "editor/script_editor_plugin.h" #include "script_editor_plugin.h"
#include "script_editor_base.h" #include "script_editor_base.h"
//#include "script_text_editor.h" //#include "script_text_editor.h"

View File

@ -91,9 +91,9 @@
#include "scene/resources/texture.h" #include "scene/resources/texture.h"
#include "scene/scene_string_names.h" #include "scene/scene_string_names.h"
#include "../script_editor_quick_open.h" #include "script_editor_quick_open.h"
#include "../script_text_editor.h" #include "script_text_editor.h"
#include "../text_editor.h" #include "text_editor.h"
#include "modules/modules_enabled.gen.h" #include "modules/modules_enabled.gen.h"

View File

@ -52,7 +52,7 @@
#include "core/variant/variant.h" #include "core/variant/variant.h"
#include "core/containers/vector.h" #include "core/containers/vector.h"
#include "../script_editor_base.h" #include "script_editor_base.h"
class Button; class Button;
class ConfigFile; class ConfigFile;

View File

@ -90,9 +90,9 @@
#include "scene/resources/texture.h" #include "scene/resources/texture.h"
#include "scene/scene_string_names.h" #include "scene/scene_string_names.h"
#include "../script_editor_quick_open.h" #include "script_editor_quick_open.h"
#include "../script_text_editor.h" #include "script_text_editor.h"
#include "../text_editor.h" #include "text_editor.h"
#include "script_editor.h" #include "script_editor.h"

View File

@ -71,7 +71,7 @@
#include "script_editor_quick_open.h" #include "script_editor_quick_open.h"
#include "connection_info_dialog.h" #include "connection_info_dialog.h"
#include "editor/script_editor.h" #include "script_editor.h"
#include "goto_line_dialog.h" #include "goto_line_dialog.h"
#include "find_replace_bar.h" #include "find_replace_bar.h"

View File

@ -50,7 +50,7 @@
#include "scene/resources/text_file.h" #include "scene/resources/text_file.h"
#include "scene/resources/texture.h" #include "scene/resources/texture.h"
#include "editor/script_editor.h" #include "script_editor.h"
#include "goto_line_dialog.h" #include "goto_line_dialog.h"
#include "find_replace_bar.h" #include "find_replace_bar.h"

View File

@ -51,7 +51,7 @@ Ref<ResourceFormatSaverCScript> resource_saver_cscript;
#include "editor/editor_settings.h" #include "editor/editor_settings.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
class EditorExportCScript : public EditorExportPlugin { class EditorExportCScript : public EditorExportPlugin {

View File

@ -51,7 +51,7 @@ Ref<ResourceFormatSaverGDScript> resource_saver_gd;
#include "editor/gdscript_highlighter.h" #include "editor/gdscript_highlighter.h"
#ifdef MODULE_CODE_EDITOR_ENABLED #ifdef MODULE_CODE_EDITOR_ENABLED
#include "modules/code_editor/editor/script_editor.h" #include "modules/code_editor/script_editor.h"
#endif #endif
class EditorExportGDScript : public EditorExportPlugin { class EditorExportGDScript : public EditorExportPlugin {