summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
AgeCommit message (Collapse)Author
2021-12-12Merge pull request #55729 from ↵Rémi Verschelde
cdemirer/fix-script-editor-unexpected-scroll-upon-resize
2021-12-11Fix unexpected scroll on resize + consistent return valuecdemirer
2021-12-10Merge pull request #55739 from Paulb23/text-edit-base-performanceRémi Verschelde
2021-12-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-12-08Optimise TextEdit base operationsPaulb23
2021-12-06Fix bad popups offset in editor with single window offjmb462
Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com> Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2021-12-03Fixed TextEdit underline draw posPaulb23
2021-12-02Add drag and drop to TextEditConteZero
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-22Merge pull request #55151 from Chaosus/control_reset_sizeRémi Verschelde
2021-11-22Added `reset_size` method to `Control` and `Window` classesYuri Roubinsky
2021-11-22Add methods to get position from column and line in TextEditYuri Sizov
2021-11-17Fix TextEdit mouse interactions when the last line is hiddenPaulb23
2021-11-16Rename built-in `SGN()` macro to `SIGN()`Hugo Locurcio
This matches the name of the GDScript function (except it's uppercase here).
2021-11-12Use "enum class" for input enumsAaron Franke
2021-11-10Merge pull request #54204 from Ev1lbl0w/bugfix-textedit_selection_mode_crashRémi Verschelde
2021-11-10Fix crash with indexing array with bad valuesEv1lbl0w
2021-10-27Merge pull request #54166 from ConteZero/unique_selectionRémi Verschelde
2021-10-27Add option to make selection uniqueConteZero
2021-10-23Merge pull request #54045 from ConteZero/primary_clipboard_linux_fix_warningRémi Verschelde
2021-10-23Fix primary clipboard warningConteZero
2021-10-21Use TitleCase for CTL dialog menu optionsHugo Locurcio
This is more consistent with other actions exposed in the dialog.
2021-10-20Merge pull request #53702 from ConteZero/primary_clipboard_linuxRémi Verschelde
2021-10-19Fix: typo in TextParagraph class and docsMurilo Gonçalves
2021-10-18Added primary clipboard for LinuxConteZero
2021-10-16Fix null crash with TextEditRicardo Subtil
2021-10-09Fix missing argument names in bindingsRémi Verschelde
While at it, tweak some boolean setters to use `p_enabled` for the bool. Also renames `draw_minimap()` to `set_draw_minimap()`.
2021-10-06Fix crash when tooltip_request_func object is freedHaoyu Qiu
2021-10-04Fix caret position and viewport centering after deleting line (Ctrl-X)jmb462
2021-10-04Remove EDSCALE dependency from /scene/guiYuri Sizov
2021-10-01Implement TextServer GDExtension interface, remove TextServer GDNative ↵bruvzg
interface.
2021-09-30Merge pull request #53112 from EricEzaM/better-breakpoint-gutterRémi Verschelde
2021-09-30Improved breakpoint gutter for CodeEdit.Eric M
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-29Fix TextOp setting to none when typingPaulb23
2021-09-26Fix LineEdit and TextEdit double-click and triple-click selectionjmb462
2021-09-23Construct values only when necessary.Anilforextra
2021-09-14Merge pull request #52185 from Paulb23/nested-complex-opsRémi Verschelde
Allow nested complex ops in TextEdit
2021-09-13Merge pull request #52443 from Paulb23/code-edit-indext-fixesRémi Verschelde
Fix brace placement with space auto indent
2021-09-08Merge pull request #52106 from Paulb23/text-edit-optimisationGilles Roudière
Optimise TextEdit get line height and width
2021-09-06Fix brace placement with space auto indentPaulb23
2021-09-04Add visual feedback when hovering or dragging the code minimap grabberHugo Locurcio
This makes it more obvious that the minimap grabber can be dragged to scroll.
2021-08-28Allow nested complex ops in TextEditPaulb23
2021-08-28Optimise TextEdit get height and widthPaulb23
2021-08-28Add support for internal nodeskobewi
2021-08-27Makes FontData importable resource.bruvzg
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-23Merge pull request #51947 from AnilBK/redundant-assignmentsMichael Alexsander
[cppcheck] Remove some redundant assignments.
2021-08-23Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz
* `_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-22Replace BIND_VMETHOD by new GDVIRTUAL syntaxreduz
* 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-21Remove redundant assignments.Anilforextra
Use used_in_transfer instead of used_in_compute twice.
2021-08-17Improve Undo/Redo menu itemsHaoyu Qiu
* 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.