e85e6ec7fc
Add methods to get position from column and line in TextEdit
2021-11-22 15:13:13 +03:00
2a302f7097
Fix TextEdit mouse interactions when the last line is hidden
2021-11-17 18:29:19 +00:00
8fb7e622a6
Rename built-in SGN() macro to SIGN()
...
This matches the name of the GDScript function (except it's uppercase
here).
2021-11-16 20:40:49 +01:00
3c0fdcc8ac
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
b46a42b689
Merge pull request #54204 from Ev1lbl0w/bugfix-textedit_selection_mode_crash
2021-11-10 19:03:33 +01:00
1843662510
Fix crash with indexing array with bad values
2021-11-10 12:44:40 +00:00
21529c90f8
Merge pull request #54166 from ConteZero/unique_selection
2021-10-27 20:50:54 +02:00
fbee4efa5f
Add option to make selection unique
2021-10-27 19:45:52 +02:00
b2ab5cb504
Merge pull request #54045 from ConteZero/primary_clipboard_linux_fix_warning
2021-10-23 19:13:34 +02:00
8c48b4a7e0
Fix primary clipboard warning
2021-10-23 15:50:01 +02:00
abbc8facc6
Use TitleCase for CTL dialog menu options
...
This is more consistent with other actions exposed in the dialog.
2021-10-21 17:47:39 +02:00
8748247d6f
Merge pull request #53702 from ConteZero/primary_clipboard_linux
2021-10-20 16:35:04 +02:00
94cba835eb
Fix: typo in TextParagraph class and docs
2021-10-19 16:38:58 -03:00
838c9d37b4
Added primary clipboard for Linux
2021-10-18 14:01:06 +02:00
88985cbf3a
Fix null crash with TextEdit
2021-10-16 18:24:46 +01:00
5ae569560d
Fix missing argument names in bindings
...
While at it, tweak some boolean setters to use `p_enabled` for the bool.
Also renames `draw_minimap()` to `set_draw_minimap()`.
2021-10-09 00:20:10 +02:00
45e943f4fe
Fix crash when tooltip_request_func object is freed
2021-10-06 15:00:31 +08:00
fcb102a826
Fix caret position and viewport centering after deleting line (Ctrl-X)
2021-10-04 17:11:20 +02:00
bdbb7b3999
Remove EDSCALE dependency from /scene/gui
2021-10-04 15:25:08 +03:00
0c0b5c84b0
Implement TextServer GDExtension interface, remove TextServer GDNative interface.
2021-10-01 15:13:29 +03:00
a662ca66aa
Merge pull request #53112 from EricEzaM/better-breakpoint-gutter
2021-09-30 14:57:23 +02:00
e0f8410d16
Improved breakpoint gutter for CodeEdit.
...
Added preview of breakpoint placement on hover. Added override of icon for the Editor to use an SVG so it is no longer blurry.
2021-09-30 22:15:47 +10:00
7926d75d02
Fix TextOp setting to none when typing
2021-09-29 17:34:44 +01:00
3f0fe0b8a3
Fix LineEdit and TextEdit double-click and triple-click selection
2021-09-26 19:56:48 +02:00
cc51b045da
Construct values only when necessary.
2021-09-23 22:26:07 +05:45
d039f4af14
Merge pull request #52185 from Paulb23/nested-complex-ops
...
Allow nested complex ops in TextEdit
2021-09-14 11:57:42 +02:00
0b60b9f75c
Merge pull request #52443 from Paulb23/code-edit-indext-fixes
...
Fix brace placement with space auto indent
2021-09-13 21:52:38 +02:00
321ee7bda1
Merge pull request #52106 from Paulb23/text-edit-optimisation
...
Optimise TextEdit get line height and width
2021-09-08 14:04:41 +02:00
9785167b39
Fix brace placement with space auto indent
2021-09-06 17:10:39 +01:00
c8949f21e7
Add visual feedback when hovering or dragging the code minimap grabber
...
This makes it more obvious that the minimap grabber can be dragged
to scroll.
2021-09-04 02:25:22 +02:00
c5d7ae7920
Allow nested complex ops in TextEdit
2021-08-28 12:49:55 +01:00
de009cb5ae
Optimise TextEdit get height and width
2021-08-28 11:27:23 +01:00
a913ae8d56
Add support for internal nodes
2021-08-28 02:07:23 +02:00
4c3f7d1290
Makes FontData importable resource.
...
Adds multi-channel SDF font texture generation and rendering support.
Adds per-font oversampling support.
Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading.
Adds BMFont binary format and outline support.
2021-08-27 15:43:18 +03:00
88db541705
Merge pull request #51947 from AnilBK/redundant-assignments
...
[cppcheck] Remove some redundant assignments.
2021-08-23 13:23:45 +00:00
5cecdfa8af
Entirely removes BIND_VMETHOD in favor of GDVIRTUAL
...
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions.
* Everything else converted to GDVIRTUAL
* BIND_VMETHOD is gone, always use the new syntax from now on.
Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
2021-08-23 08:10:13 -03:00
3682978aee
Replace BIND_VMETHOD by new GDVIRTUAL syntax
...
* New syntax is type safe.
* New syntax allows for type safe virtuals in native extensions.
* New syntax permits extremely fast calling.
Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`.
These will require API rework on a separate PR as they work different than the rest of the functions.
Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
2021-08-22 08:23:58 -03:00
c86db8b710
Remove redundant assignments.
...
Use used_in_transfer instead of used_in_compute twice.
2021-08-21 19:20:07 +05:45
16c2d4ef22
Improve Undo/Redo menu items
...
* Make Undo/Redo menu items disabled when clicking it does nothing.
* Context menu of `TextEdit`
* Context menu of `LineEdit`
* Editor's Scene menu
* Script editor's Edit menu and context menu (for Script and Text)
* Make editor undo/redo log messages translatable.
* Mark `UndoRedo`'s `has_{un,re}do()` methods as `const`.
* Expose `TextEdit`'s `has_{un,re}do()` to scripts since `{un,re}do()` are already available.
2021-08-17 21:11:10 +08:00
37ad82a7f7
We can delete all text on TextEdit
...
While all text of TextEdit was selected, deletion with backspace did not occur. It can now be deleted.
2021-08-17 02:30:14 +03:00
eb5b0d013f
Fixed crash executing TextEdit.new().set_draw_control_chars(true)
...
Fixes #51613 .
2021-08-16 12:36:14 +02:00
761eb7e06a
Merge pull request #51585 from Paulb23/theme-update-optimisation
2021-08-13 21:33:36 +02:00
273374957b
Only update TextEdit text cache when dirty
2021-08-13 17:47:53 +01:00
00381db2e7
[TextEdit] Improve block/insert caret drawing.
2021-08-13 19:28:47 +03:00
a736fb8ce9
Fix breakpoint toggle signal not firing when expected
2021-08-12 14:47:10 +01:00
a4606c2806
Cleanup and complete TextEdit inspector and docs
2021-08-12 11:43:35 +01:00
ae4dcb8918
Cleanup and bind remaing methods in TextEdit
2021-08-12 11:43:35 +01:00
0a32a6907b
Cleanup and expose viewport / scrolling methods
2021-08-12 09:29:58 +01:00
7dbb0f3233
Rename readonly to editable
2021-08-12 09:29:58 +01:00
b799e5583a
Rename insert mode to overtype mode
2021-08-12 09:29:58 +01:00