Commit Graph

1128 Commits

Author SHA1 Message Date
Rémi Verschelde 2dd1f4ef60 Decouple node.h from scene_tree.h, minimize its other includes 2026-03-05 13:54:46 +01:00
Thaddeus Crews db25be3646 Merge pull request #116585 from jinyangcruise/fix_symbol_jump
Fix symbol jump history navigation issue.
2026-03-04 11:20:33 -06:00
Rémi Verschelde eabb9a63d4 Rename callable_method_pointer.h to callable_mp.h and include it explicitly
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.

Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01:00
Rémi Verschelde 765362b033 Explicitly include core/config/engine.h where used 2026-03-04 10:17:10 +01:00
Rémi Verschelde 8c0f175c94 Decouple RenderingServer from as much of the codebase as possible
Notably decouples it from:
- AccessibilityServer
- DisplayServer
- Viewport
- Window
2026-03-03 12:48:07 +01:00
Rémi Verschelde a447ac95ec Move DisplayServer enums and typedefs to DisplayServerEnums
This will allow decoupling `display_server.h` from a number of headers in the
codebase which only require those enums and not all the DisplayServer API.
2026-03-03 12:44:02 +01:00
Pāvels Nadtočajevs 1306221592 Move accessibility methods/enums from DisplayServer to the AccessibilityServer dedicated singleton. 2026-03-02 13:48:29 +02:00
jinyangcruise e4e31abeaa fix symbol jump history navigation issue. 2026-02-28 09:45:06 +08:00
Thaddeus Crews e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
Thaddeus Crews edb345db45 Merge pull request #116678 from Giganzo/text-edit-focus-showing
Fix TextEdit showing focus on some mouse events
2026-02-26 08:15:18 -06:00
Rémi Verschelde f5a290ac46 Move RenderingServer enums to a dedicated RenderingServerEnums (RSE) namespace
A number of headers in the codebase included `rendering_server.h` just for
some enum definitions. This means that any change to `rendering_server.h` or
one of its dependencies would trigger a massive incremental rebuild.

With this change, we decouple a number of classes from `rendering_server.h`,
greatly speeding up incremental rebuilds for that area.

On my machine, this reduces incremental compilation time after an edit of
`rendering_server.h` by 60s (from 2m57s).
2026-02-25 19:43:03 +01:00
Giganzo fbc9af0693 Fix TextEdit showing focus on some mouse events 2026-02-23 19:06:52 +01:00
Thaddeus Crews 781ae8deb2 Merge pull request #115876 from kitbdev/fix-te-search-backwards
Fix TextEdit backwards search skipping matches
2026-02-20 11:36:08 -06:00
Thaddeus Crews 79eb6694a1 Merge pull request #112381 from Ivorforce/no-right-align
Don't right-align escaped newlines (e.g. for `#define`)
2026-02-05 09:18:36 -06:00
kit 0806343998 Fix TextEdit backwards search skipping matches 2026-02-04 14:30:58 -05:00
Lukas Tenbrink c5df0cb82b Don't right-align escaped newlines, e.g. for #define. This has previously led to long diffs in the commit history. 2026-02-04 19:31:28 +01:00
Thaddeus Crews 77f596abc5 Merge pull request #115729 from Manik2607/fix-current-line-highlight-gutter
Fix current line highlight not extending into gutter
2026-02-02 12:57:29 -06:00
Manik Sharma 4dfbd909ac Fix current line highlight not extending into gutter
Fixes regression where current line highlight no longer extends
into the gutter area. The highlight now starts from 0 instead of
xmargin_beg, making it extend all the way to the left edge.

This restores the 4.5.1 behavior where the current line highlight
spans the entire line including the gutter area and left margin.
2026-02-02 16:33:56 +05:30
kobewi f7b9703cbd Use actual class names in resource type hints 2026-01-29 21:07:56 +01:00
Thaddeus Crews ae7d2defe2 Merge pull request #115006 from kitbdev/fix-te-editable-draw-caret
Fix TextEdit not drawing caret on setting editable
2026-01-27 09:04:04 -06:00
Thaddeus Crews 86b40d4439 Merge pull request #111859 from kitbdev/fix_te_ime_wrap_index_error
Fix TextEdit IME error on mouse over
2026-01-26 13:14:35 -06:00
kit f2e370cfd3 Fix TextEdit not drawing caret on setting editable 2026-01-15 14:04:02 -05:00
kit 9813c834fa Fix TextEdit Shift+Click selection start position 2026-01-09 10:46:45 -05:00
Rémi Verschelde 3349d14f84 Merge pull request #114404 from kitbdev/fix-te-move-caret-word-hidden
Fix TextEdit moving caret word left/right can hide the caret
2026-01-01 16:47:30 +01:00
Adam Scott 263589497b Add non-public {Line,Text}Edit::_set_text()
- [Web] Fix "Enter" not triggering LineEdit submits.

Co-authored-by: Marwen Azouzi <marwen.azouzi@datadoghq.com>
2026-01-01 12:00:52 +01:00
kit cbc3a989fb Fix TextEdit moving caret word left/right can hide 2025-12-28 16:42:29 -05:00
Rémi Verschelde e7d8609c73 Merge pull request #113390 from X1Vi/text-edit-does-not-auto-scroll-113290
Fix `TextEdit` does not auto scroll properly on certain vertical sizes
2025-12-12 17:13:00 +01:00
X1Vi 442c117fb7 fix: scrollbar range fix and new tests for the same
fix: now the scrollbar also should work within the range it is provided

adjusted the tests according to the new scrollbar functinality

attempted to fix testcases for scrollbar
2025-12-12 18:31:19 +05:30
Nolan Darilek 6304e9f876 Accessibility: Fix text field character count and line navigation
Two fixes for text field accessibility:

1. Fix character count being off by one due to trailing newline always
   being appended to the last line. Add `is_last_line` parameter to
   `accessibility_create_sub_text_edit_elements()` to control this.

2. Link adjacent TextRuns via `previous_on_line`/`next_on_line` so
   screen readers can properly navigate lines. Without these links,
   AccessKit treats each TextRun as a separate line, causing incorrect
   announcements when arrowing through multi-line text.
2025-12-03 07:19:05 -05:00
kobewi e14263f917 Remove empty constructors and destructors from core/ 2025-11-17 20:09:05 +01:00
kit e2cbfb53f1 Deprecate TextEdit background_color 2025-11-13 22:48:04 -05:00
Thaddeus Crews 82e6303634 Merge pull request #111535 from kitbdev/fix-textedit-dont-select
Fix TextEdit selecting when closing popup
2025-11-10 08:20:08 -06:00
Thaddeus Crews 6d32d3df75 Merge pull request #111766 from kitbdev/speed_up_spinbox_creation
Improve performance of SpinBox creation
2025-10-27 10:01:35 -05:00
Thaddeus Crews e870cd911b Merge pull request #110895 from Giganzo/input-focus
Add setting for when to show the focus state for mouse input
2025-10-21 19:09:25 -05:00
kit 290180c899 Fix TextEdit IME error on mouse over 2025-10-21 16:44:34 -04:00
Thaddeus Crews ee6fb9e5e1 Merge pull request #111865 from kitbdev/fix-multiple-ime
Fix IME input in multiple Windows at once
2025-10-21 10:27:13 -05:00
Thaddeus Crews 16503a10d4 Merge pull request #111744 from bruvzg/te_roff
[TextEdit] Make `wrap_right_offset` adjustable theme constant.
2025-10-21 10:26:53 -05:00
kit 8abdedd477 Fix IME input in multiple Windows at once 2025-10-20 20:25:59 -04:00
Thaddeus Crews 4e03f41779 Merge pull request #111156 from WhalesState/insp-groups
Group `virtual keyboard` and `word separators` properties in the inspector.
2025-10-20 18:09:39 -05:00
Pāvels Nadtočajevs e31830db52 [TextEdit] Make wrap_right_offset adjustable theme constant. 2025-10-18 21:35:02 +03:00
kit e232484a37 Improve performance of SpinBox creation 2025-10-17 13:11:21 -04:00
Thaddeus Crews 9e96c7d9b8 Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
2025-10-16 12:48:05 -05:00
kit 49cf8654fa Fix TextEdit selecting when closing popup 2025-10-11 19:20:02 -04:00
Giganzo e384085ca1 Add setting for when to show the focus state for mouse input 2025-10-07 14:26:14 +02:00
Mounir Tohami 2421dfaab3 Group virtual keyboard properties in the inspector 2025-10-02 14:15:10 +03:00
Thaddeus Crews caefb0f1c1 Merge pull request #110527 from WhalesState/text-edit-styles
Fix TextEdit `read_only` drawing.
2025-10-01 13:12:47 -05:00
Aaron Franke 9fbf5808a0 Rename server "free" functions to "free_rid" to match exposed API 2025-09-30 16:52:25 -07:00
Aaron Franke 1a7be001d2 Use const Array ref in set_structured_text_bidi_override_options 2025-09-26 14:31:38 -07:00
Mounir Tohami c07966583f Fix editor theme margins and TextEdit normal/read_only styles draw. 2025-09-24 20:42:22 +03:00
Thaddeus Crews 5db618a2db Merge pull request #109078 from WhalesState/text-edit-clipping
Fix TextEdit clips children and focus style.
2025-09-24 09:59:12 -05:00