1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

TextEdit code folding

This commit is contained in:
Ian
2017-11-12 18:12:17 -05:00
parent 63283eca55
commit d350f506a0
6 changed files with 489 additions and 63 deletions

View File

@@ -91,6 +91,9 @@ class ScriptTextEditor : public ScriptEditorBase {
EDIT_TO_UPPERCASE,
EDIT_TO_LOWERCASE,
EDIT_CAPITALIZE,
EDIT_FOLD_LINE,
EDIT_UNFOLD_LINE,
EDIT_UNFOLD_ALL_LINES,
SEARCH_FIND,
SEARCH_FIND_NEXT,
SEARCH_FIND_PREV,
@@ -118,7 +121,7 @@ protected:
static void _bind_methods();
void _edit_option(int p_op);
void _make_context_menu(bool p_selection, bool p_color);
void _make_context_menu(bool p_selection, bool p_color, int p_fold_state);
void _text_edit_gui_input(const Ref<InputEvent> &ev);
void _color_changed(const Color &p_color);