You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename readonly to editable
This commit is contained in:
@@ -523,7 +523,7 @@ Control::CursorShape CodeEdit::get_cursor_shape(const Point2 &p_pos) const {
|
||||
return CURSOR_POINTING_HAND;
|
||||
}
|
||||
|
||||
if ((code_completion_active && code_completion_rect.has_point(p_pos)) || (is_readonly() && (!is_selecting_enabled() || get_line_count() == 0))) {
|
||||
if ((code_completion_active && code_completion_rect.has_point(p_pos)) || (!is_editable() && (!is_selecting_enabled() || get_line_count() == 0))) {
|
||||
return CURSOR_ARROW;
|
||||
}
|
||||
|
||||
@@ -600,7 +600,7 @@ void CodeEdit::_handle_unicode_input(const uint32_t p_unicode) {
|
||||
}
|
||||
|
||||
void CodeEdit::_backspace() {
|
||||
if (is_readonly()) {
|
||||
if (!is_editable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -714,7 +714,7 @@ TypedArray<String> CodeEdit::get_auto_indent_prefixes() const {
|
||||
}
|
||||
|
||||
void CodeEdit::do_indent() {
|
||||
if (is_readonly()) {
|
||||
if (!is_editable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -735,7 +735,7 @@ void CodeEdit::do_indent() {
|
||||
}
|
||||
|
||||
void CodeEdit::indent_lines() {
|
||||
if (is_readonly()) {
|
||||
if (!is_editable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -786,7 +786,7 @@ void CodeEdit::indent_lines() {
|
||||
}
|
||||
|
||||
void CodeEdit::do_unindent() {
|
||||
if (is_readonly()) {
|
||||
if (!is_editable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -824,7 +824,7 @@ void CodeEdit::do_unindent() {
|
||||
}
|
||||
|
||||
void CodeEdit::unindent_lines() {
|
||||
if (is_readonly()) {
|
||||
if (!is_editable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -911,7 +911,7 @@ int CodeEdit::_calculate_spaces_till_next_right_indent(int p_column) const {
|
||||
}
|
||||
|
||||
void CodeEdit::_new_line(bool p_split_current_line, bool p_above) {
|
||||
if (is_readonly()) {
|
||||
if (!is_editable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1839,7 +1839,7 @@ void CodeEdit::set_code_completion_selected_index(int p_index) {
|
||||
}
|
||||
|
||||
void CodeEdit::confirm_code_completion(bool p_replace) {
|
||||
if (is_readonly() || !code_completion_active) {
|
||||
if (!is_editable() || !code_completion_active) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user