summaryrefslogtreecommitdiffstats
path: root/scene/gui/line_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add `auto_translate` toggle for automatic translationMichael Alexsander2021-07-291-2/+2
|
* Merge pull request #50588 from bruvzg/menu_genRémi Verschelde2021-07-191-77/+64
|\ | | | | Optimize LineEdit and TextEdit menu item generation.
| * Optimize LineEdit and TextEdit menu item generation.bruvzg2021-07-191-77/+64
| |
* | Optimize StringName usagereduz2021-07-181-35/+35
|/ | | | | | | | | | | * 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.
* Create many types of popups on demandreduz2021-07-171-22/+47
| | | | | | | | | * LineEdit popups created on demand. * TextEdit popups created on demand. * SpinSlider popups created on demand. * ResourcePicker popups created on demand. Improves editor responsiveness.
* LineEdit: Respect `max_length` by truncating text to appendRémi Verschelde2021-07-061-14/+18
| | | | | | | | | | | | | | 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>
* Documentation search fixesGregory Basile2021-06-161-4/+4
| | | | | | Updates rich_text_label so that the built-in documentation can be searched Previously, it would only find the first result and would not select other results Renames "_entered" functions to "_submitted"
* Tweak dozens of editor property hints for consistencyHugo Locurcio2021-05-251-1/+1
| | | | | | - Update Viewport MSAA property hints to match the currently exposed values. - Add some performance hints to property hints.
* Merge pull request #48168 from LightningAA/control-to-ctrl-4.0Rémi Verschelde2021-05-171-5/+5
|\
| * Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A2021-05-071-5/+5
| | | | | | | | InputEventWithModifiers properties/methods
* | Display arrow cursor if text is not editablekobewi2021-05-071-1/+1
|/
* Rename `doubleclick` to `double_click`Aaron Franke2021-05-041-8/+8
|
* Fixed issues with LineEdit Delete Word & Backspace Word.EricEzaM2021-04-281-0/+2
| | | | Backspace word was deleting all text before the cursor, and delete word was no updating until another action was performed on the LineEdit (in order to update it)
* Rename LineEdit caret_* properties getters and setters to match propertyMarcel Admiraal2021-04-171-167/+167
|
* Fix LineEdit undo behaves strangelyray905142021-04-081-0/+1
|
* Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+2
|
* Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-3/+3
|
* Fixes small typos and grammar correctionAnshul7sp12021-03-121-2/+2
|
* Add IME support checks in LineEdit/TextEdit.Fabio Alessandrelli2021-03-111-3/+3
| | | | | Avoid spamming "IME is unsupported" when the DisplayServer report it as such.
* Merge pull request #46643 from YeldhamDev/hide_all_the_thingsRémi Verschelde2021-03-071-0/+8
|\ | | | | Hide more options of disabled properties
| * Hide more options of disabled propertiesMichael Alexsander2021-03-031-0/+8
| |
* | LineEdit: Now double click to select a word, and triple click to select all ↵Mateo Kuruk Miccino2021-03-011-5/+24
|/ | | | | | the content using the new TextServer TextEdit: Update the method to search words with the new TextServer
* Removed hardcoded shortcuts from /scene and converted to input actionsEric M2021-02-181-428/+345
| | | | | | 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.
* Fix minimum_character_width in LineEditGilles Roudière2021-02-161-1/+1
|
* [CTL] Add missing font outline drawing routines and theme constants.bruvzg2021-02-141-0/+18
|
* Fix LineEdit minimum widthreduz2021-02-121-3/+3
| | | | | -Changed theme setting name to make more sense of what it does -Reduced amount of minimum characters, so minimum size is smaller.
* Use get_char_size(' ') to calculate space width.bruvzg2021-02-121-1/+1
|
* Removed _change_notifyreduz2021-02-101-2/+1
| | | | | | -For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
* Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-091-3/+0
|
* Merge pull request #44349 from KoBeWi/drop_the_data!Rémi Verschelde2021-01-261-0/+7
|\ | | | | Allow to override drop data in LineEdit
| * Allow to override drop data in LineEditkobewi2020-12-131-0/+7
| |
* | Merge pull request #45369 from naithar/fix/line_edit_clear-4.0Rémi Verschelde2021-01-261-15/+17
|\ \ | | | | | | [4.0] [GUI] Fix LineEdit clearing
| * | [GUI] Enforce virtual keyboard redisplay on clearSergey Minakov2021-01-261-15/+17
| | |
* | | Change themes *_color_* to *_*_colorMarcel Admiraal2021-01-241-4/+4
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed: font_color_accel -> font_accelerator_color font_color_bg -> font_unselected_color font_color_disabled -> font_disabled_color font_color_fg -> font_selected_color font_color_hover -> font_hover_color font_color_hover_pressed -> font_hover_pressed_color font_color_pressed -> font_pressed_color font_color_readonly -> font_readonly_color font_color_selected -> font_selected_color font_color_shadow -> font_shadow_color font_color_uneditable -> font_uneditable_color icon_color_disabled -> icon_disabled_color icon_color_hover -> icon_hover_color icon_color_hover_pressed -> icon_hover_pressed_color icon_color_normal -> icon_normal_color icon_color_pressed -> icon_pressed_color Also includes: font_outline_modulate -> font_outline_color tab_fg -> tab_selected tab_bg -> tab_unselected
* | Revert "solved ctrl + alt + special character Issue #6851"Rémi Verschelde2021-01-051-1/+1
| |
* | Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* | Rename empty() to is_empty()Marcel Admiraal2020-12-281-10/+10
| |
* | Rename Control margin to offsetMarcel Admiraal2020-12-231-24/+24
|/
* Static analyzer fixes:bruvzg2020-12-091-7/+1
| | | | | | Removes unused code in OS. Fixes return types. Fixes few typos.
* [Complex Text Layouts] Performance optimizations.bruvzg2020-12-071-2/+4
|
* [Complex Text Layouts] Align glyph offsets and advances to the pixel grid.bruvzg2020-12-061-1/+1
|
* [Complex Text Layouts] Adds missing Font::SPACING_* to the Label, LineEdit, ↵bruvzg2020-12-061-2/+3
| | | | | | TextEdit, TextLine and TextParagraph. Fixes oversized editor control height (default editor spacing is negative) and control size changing when text is set.
* [Complex Text Layouts] Refactor Label and LineEdit controls.bruvzg2020-11-261-364/+733
|
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-5/+9
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Update clear button when clickedTomasz Chabora2020-11-251-0/+1
|
* Merge pull request #43449 from nekomatata/line_edit_window_posRémi Verschelde2020-11-111-30/+35
|\ | | | | Expose LineEdit scroll offset to scripts
| * Expose LineEdit scroll offset to scriptsPouleyKetchoupp2020-11-111-30/+35
| |
* | Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-3/+3
|/ | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Merge pull request #41870 from nekomatata/fix-line-edit-enter-regressionRémi Verschelde2020-09-081-1/+0
|\ | | | | Fix LineEdit not consuming enter events
| * Fix LineEdit not consuming enter eventsPouleyKetchoupp2020-09-081-1/+0
| | | | | | | | | | | | | | | | LineEdit should not return early when processing KEY_ENTER, so it can consume the event properly. Regression introduced by mistake while fixing enter events for Android (PR #40487 - c0b394572f35498801571ad7176eb357d5de1bf3)