Moved the editor_code_editor module to the editor_modules folder.

This commit is contained in:
Relintai 2023-02-18 15:45:50 +01:00
parent a14821587f
commit 6e88ad5bae
45 changed files with 33 additions and 27 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -193,9 +193,9 @@
#include "modules/modules_enabled.gen.h"
#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED
#include "modules/editor_code_editor/script_editor.h"
#include "modules/editor_code_editor/script_text_editor.h"
#include "modules/editor_code_editor/text_editor.h"
#include "editor_code_editor/script_editor.h"
#include "editor_code_editor/script_text_editor.h"
#include "editor_code_editor/text_editor.h"
#endif
class Camera;

View File

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

View File

@ -72,8 +72,8 @@
#include "modules/modules_enabled.gen.h"
#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED
#include "modules/editor_code_editor/script_editor.h"
#include "modules/editor_code_editor/script_editor_base.h"
#include "editor_code_editor/script_editor.h"
#include "editor_code_editor/script_editor_base.h"
#endif
HashMap<StringName, List<StringName>> EditorResourcePicker::allowed_types_cache;

View File

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

View File

@ -103,7 +103,7 @@
#include "modules/modules_enabled.gen.h"
#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED
#include "modules/editor_code_editor/script_editor.h"
#include "editor_code_editor/script_editor.h"
#endif
// 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"
#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED
#include "modules/editor_code_editor/script_editor.h"
#include "editor_code_editor/script_editor.h"
#endif
#define DISTANCE_DEFAULT 4

View File

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

View File

@ -67,8 +67,8 @@
#include "modules/modules_enabled.gen.h"
#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED
#include "modules/editor_code_editor/script_editor.h"
#include "modules/editor_code_editor/script_editor_base.h"
#include "editor_code_editor/script_editor.h"
#include "editor_code_editor/script_editor_base.h"
#endif
Node *SceneTreeEditor::get_scene_node() {

View File

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

View File

@ -1,7 +1,12 @@
def can_build(env, platform):
return env["tools"]
if not env["tools"]:
return False
env.module_add_dependencies("editor_code_editor", ["freetype"], True)
return True
def configure(env):
pass

View File

@ -4,6 +4,7 @@ def can_build(env, platform):
if not env["tools"]:
return False
env.module_add_dependencies("text_editor", ["freetype"], True)
env.module_add_dependencies("shader_editor", ["editor_code_editor"], False)
return True

View File

@ -65,8 +65,8 @@
#include "servers/rendering/shader_types.h"
#include "servers/rendering_server.h"
#include "modules/editor_code_editor/goto_line_dialog.h"
#include "modules/editor_code_editor/find_replace_bar.h"
#include "editor_code_editor/goto_line_dialog.h"
#include "editor_code_editor/find_replace_bar.h"
struct ScriptCodeCompletionOption;

View File

@ -30,7 +30,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "modules/editor_code_editor/code_text_editor.h"
#include "editor_code_editor/code_text_editor.h"
#include "editor/editor_plugin.h"
#include "scene/gui/margin_container.h"

View File

@ -14,8 +14,8 @@
#include "scene/gui/text_edit.h"
#include "scene/gui/texture_rect.h"
#include "modules/editor_code_editor/code_text_editor.h"
#include "modules/editor_code_editor/find_replace_bar.h"
#include "editor_code_editor/code_text_editor.h"
#include "editor_code_editor/find_replace_bar.h"
#include "scene/resources/dynamic_font.h"

View File

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

View File

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

View File

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