summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
AgeCommit message (Collapse)Author
2021-07-19Merge pull request #50588 from bruvzg/menu_genRémi Verschelde
Optimize LineEdit and TextEdit menu item generation.
2021-07-19Merge pull request #50606 from Chaosus/textedit_fix_guttertypeRémi Verschelde
Fixed typos in `TextEdit::GutterType` enum
2021-07-19Fixed typos in `TextEdit::GutterType` enumYuri Roubinsky
2021-07-19Optimize LineEdit and TextEdit menu item generation.bruvzg
2021-07-18Optimize StringName usagereduz
* Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
2021-07-17Create many types of popups on demandreduz
* LineEdit popups created on demand. * TextEdit popups created on demand. * SpinSlider popups created on demand. * ResourcePicker popups created on demand. Improves editor responsiveness.
2021-07-06LineEdit: Respect `max_length` by truncating text to appendRémi Verschelde
When appending text (either via `set_text()` or by pasting from clipboard), if the input would make the `LineEdit` exceed its configured `max_length`, the input text is truncated to fit. The discard part is passed as a parameter in the `text_change_rejected` signal. Fixes #33321. Fixes #41278. Also cleaned up unimplemented `max_chars` property in `TextEdit`. Co-authored-by: Tony-Goat <70238376+Tony-Goat@users.noreply.github.com>
2021-06-20Move indent management to CodeEditPaulb23
2021-06-19Rename `instance()`->`instantiate()` when it's a verbLightning_A
2021-06-19Remove redundant keywords from TextEditPaulb23
2021-06-01Move code folding into CodeEdit and hide line hiding APIPaulb23
2021-06-01Merge pull request #45393 from Paulb23/code_edit_autocompleteRémi Verschelde
2021-06-01Move and expose Code Hint in CodeEditPaulb23
2021-06-01Move and expose AutoComplete in CodeEditPaulb23
2021-06-01Fix TextEdit selection drawing behing minimapPaulb23
2021-05-25Merge pull request #48955 from Calinou/editor-tweak-property-hintsRémi Verschelde
Tweak dozens of editor property hints for consistency
2021-05-25Tweak dozens of editor property hints for consistencyHugo Locurcio
- Update Viewport MSAA property hints to match the currently exposed values. - Add some performance hints to property hints.
2021-05-22Add a keyboard shortcut to select the word under cursor in TextEditHugo Locurcio
This also acts as a general-purpose "deselect" shortcut since pressing it a second time will deselect text. This is available both in the script editor and in TextEdit fields in use, both in the editor and projects. The Duplicate Line script editor shortcut was moved to Ctrl + Shift + D since it conflicts with the new shortcut (Ctrl + D). The rationale for doing so is that Duplicate Line is a less commonly used action, and its behavior can be replicated by copying and pasting the current line anyway. (With no selection active, the whole line will be copied.)
2021-05-22Add custom background line colour to TextEdit and remove marked linesPaulb23
2021-05-18Merge pull request #48528 from sent44/texteditRémi Verschelde
Expose get_total_visible_rows method to GDScript
2021-05-17Fix build after mismatch between #48168 and #48599Rémi Verschelde
2021-05-17Merge pull request #48599 from Calinou/textedit-alt-scroll-fasterRémi Verschelde
Scroll faster when holding Alt in TextEdit (and script editor)
2021-05-17Merge pull request #48168 from LightningAA/control-to-ctrl-4.0Rémi Verschelde
2021-05-10Scroll faster when holding Alt in TextEdit (and script editor)Hugo Locurcio
This feature is inspired by a similar feature found in Visual Studio Code.
2021-05-07Display arrow cursor if text is not editablekobewi
2021-05-07Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A
InputEventWithModifiers properties/methods
2021-05-07Expose get_total_visible_rows as get_visible_line_countsent44
2021-05-04Rename `doubleclick` to `double_click`Aaron Franke
2021-04-25Fix indent left line selectionKoala
2021-04-15Fixed ui_accept (spacebar + return) accepting auto-completion options.Eric M
2021-04-06Fix TextEdit cursor update when adding or deleting textPouleyKetchoupp
Updating the viewport while setting the line index before the column is set could wrongly cause the text to be scrolled down.
2021-04-05Fix crashes in *_input functionsRafał Mikrut
2021-03-23Rename ButtonList enum and members to MouseButtonAaron Franke
2021-03-21Merge pull request #46280 from floppyhammer/AdjustCompletionPanelPositionRémi Verschelde
Improve Completion Panel Position in Shader Editor
2021-03-12Fixes small typos and grammar correctionAnshul7sp1
2021-03-11Add IME support checks in LineEdit/TextEdit.Fabio Alessandrelli
Avoid spamming "IME is unsupported" when the DisplayServer report it as such.
2021-03-07Merge pull request #46572 from ↵Rémi Verschelde
jmb462/fix-selection-error-after-commenting-or-indenting Fix selection error after commenting or indenting text (Fix #46477 issue)
2021-03-07Merge pull request #46627 from ↵Rémi Verschelde
jmb462/fix-incorrect-autoindentation-in-multiline-brackets Fix incorrect auto-indentation in multiline brackets (fix #46384)
2021-03-03fix incorrect iauto-indentation in mutliline bracket (fix #46384)jmb462
2021-03-01fix selection error after commenting or indenting textjmb462
2021-03-01LineEdit: Now double click to select a word, and triple click to select all ↵Mateo Kuruk Miccino
the content using the new TextServer TextEdit: Update the method to search words with the new TextServer
2021-02-22ImproveCompletionPanelPositionInShaderEditorfloppyhammer
2021-02-18Removed hardcoded shortcuts from /scene and converted to input actionsEric M
This removes hardcoded actions from things like LineEdit and TextEdit. Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
2021-02-14[CTL] Add missing font outline drawing routines and theme constants.bruvzg
2021-02-13Merge pull request #45858 from nekomatata/text-edit-style-content-marginsRémi Verschelde
TextEdit respects content margin from StyleBox
2021-02-13Merge pull request #45881 from nekomatata/textedit-wrap-autoscrollRémi Verschelde
Fix TextEdit autoscroll with wrapped lines
2021-02-12Fix TextEdit autoscroll with wrapped linesPouleyKetchoupp
Index to find the last line wrap index was off by one, which prevented the first wrapped line to trigger autoscroll.
2021-02-12TextEdit respects content margin from StyleBoxPouleyKetchoupp
Now TextEdit adjusts x & y offset according to the corresponding StyleBox when in normal or read-only mode. In order to handle bottom content margin, wrapped lines that are entirely outside the stylebox content area are not drawn.
2021-02-12Fix LineEdit minimum widthreduz
-Changed theme setting name to make more sense of what it does -Reduced amount of minimum characters, so minimum size is smaller.
2021-02-12Use get_char_size(' ') to calculate space width.bruvzg