From 4b8152d5990e9bf52a0054cb7089cad17627f154 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Mon, 24 Apr 2017 19:59:55 +0100 Subject: Ability to Convert Case, issue 8079 --- editor/plugins/script_text_editor.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'editor/plugins/script_text_editor.h') diff --git a/editor/plugins/script_text_editor.h b/editor/plugins/script_text_editor.h index 8e089e1eb..77bce59f2 100644 --- a/editor/plugins/script_text_editor.h +++ b/editor/plugins/script_text_editor.h @@ -76,6 +76,9 @@ class ScriptTextEditor : public ScriptEditorBase { EDIT_INDENT_LEFT, EDIT_CLONE_DOWN, EDIT_PICK_COLOR, + EDIT_TO_UPPERCASE, + EDIT_TO_LOWERCASE, + EDIT_CAPITALIZE, SEARCH_FIND, SEARCH_FIND_NEXT, SEARCH_FIND_PREV, @@ -109,6 +112,13 @@ protected: void _goto_line(int p_line) { goto_line(p_line); } void _lookup_symbol(const String &p_symbol, int p_row, int p_column); + enum CaseStyle { + UPPER, + LOWER, + CAPITALIZE, + }; + void _convert_case(CaseStyle p_case); + Variant get_drag_data_fw(const Point2 &p_point, Control *p_from); bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const; void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from); -- cgit v1.3.1