summaryrefslogtreecommitdiff
path: root/editor/code_editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/code_editor.h')
-rw-r--r--editor/code_editor.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/editor/code_editor.h b/editor/code_editor.h
index f2a55cfb70..fc06407166 100644
--- a/editor/code_editor.h
+++ b/editor/code_editor.h
@@ -5,8 +5,8 @@
/* GODOT ENGINE */
/* https://godotengine.org */
/*************************************************************************/
-/* Copyright (c) 2007-2019 Juan Linietsky, Ariel Manzur. */
-/* Copyright (c) 2014-2019 Godot Engine contributors (cf. AUTHORS.md) */
+/* Copyright (c) 2007-2020 Juan Linietsky, Ariel Manzur. */
+/* Copyright (c) 2014-2020 Godot Engine contributors (cf. AUTHORS.md). */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
@@ -145,6 +145,7 @@ class CodeTextEditor : public VBoxContainer {
FindReplaceBar *find_replace_bar;
HBoxContainer *status_bar;
+ ToolButton *toggle_scripts_button;
ToolButton *warning_button;
Label *warning_count_label;
@@ -185,6 +186,9 @@ class CodeTextEditor : public VBoxContainer {
void _set_show_warnings_panel(bool p_show);
void _error_pressed(const Ref<InputEvent> &p_event);
+ void _delete_line(int p_line);
+ void _toggle_scripts_pressed();
+
protected:
virtual void _load_theme_settings() {}
virtual void _validate_script() {}
@@ -251,6 +255,9 @@ public:
void validate_script();
+ void show_toggle_scripts_button();
+ void update_toggle_scripts_button();
+
CodeTextEditor();
};