diff options
| author | Rémi Verschelde | 2017-04-26 08:11:41 +0200 |
|---|---|---|
| committer | GitHub | 2017-04-26 08:11:41 +0200 |
| commit | 95683f051ccdd073358abd9c95a3fb6d8a12ce6c (patch) | |
| tree | cf12d7f1b8cfc3bf9aa988b9d2b48c742a2bfe33 /editor/plugins/script_text_editor.h | |
| parent | 692b99fa0ce9d0017d7b1ba0c066ba3e2629bd1a (diff) | |
| parent | 4b8152d5990e9bf52a0054cb7089cad17627f154 (diff) | |
| download | godot-95683f051ccdd073358abd9c95a3fb6d8a12ce6c.tar.gz godot-95683f051ccdd073358abd9c95a3fb6d8a12ce6c.tar.zst godot-95683f051ccdd073358abd9c95a3fb6d8a12ce6c.zip | |
Merge pull request #8519 from Paulb23/change_case_issue_8079
Ability to Convert Case, issue 8079
Diffstat (limited to 'editor/plugins/script_text_editor.h')
| -rw-r--r-- | editor/plugins/script_text_editor.h | 10 |
1 files changed, 10 insertions, 0 deletions
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); |
