diff options
| author | Paulb23 | 2017-04-24 19:59:55 +0100 |
|---|---|---|
| committer | Paulb23 | 2017-04-25 10:18:57 +0100 |
| commit | 4b8152d5990e9bf52a0054cb7089cad17627f154 (patch) | |
| tree | 5d2f999820989209f56b23a6c1965d3c33e61fd7 /editor/plugins/script_text_editor.h | |
| parent | b6e0eaf3ca74d9777c6869d8519db6264866d1e6 (diff) | |
| download | godot-4b8152d5990e9bf52a0054cb7089cad17627f154.tar.gz godot-4b8152d5990e9bf52a0054cb7089cad17627f154.tar.zst godot-4b8152d5990e9bf52a0054cb7089cad17627f154.zip | |
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); |
