summaryrefslogtreecommitdiffstats
path: root/scene/gui/line_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* | [Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg2020-09-031-8/+8
|/
* Revert "Updated LineEdit to address #41278"Rémi Verschelde2020-09-011-6/+1
| | | | This reverts commit 71febfd6e2f6187fcc106ce715124cf173bfa0b8.
* Updated LineEdit to address #41278Tony-Goat2020-08-261-1/+6
| | | | Updated set_max_length() function to actually pull a substring of the current text so it's not all thrown away when the new max length is shorter than the current length.
* Merge pull request #37769 from HellonLegs/masterRémi Verschelde2020-08-141-1/+1
|\ | | | | solved ctrl + alt + special character Issue #6851
| * solved control + alt issueHellonLegs2020-04-101-1/+1
| |
* | Fix Return key events in LineEdit & TextEdit on AndroidPouleyKetchoupp2020-07-261-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the device implementation, editor actions could be received with different action ids or not at all for multi-line. Added a parameter to virtual keyboards to properly handle single-line and multi-line cases in all situations. Single-line: Input type set to text without multiline to make sure actions are sent. IME options are set to DONE action to force action id consistency. Multi-line: Input type set to text and multiline to make sure enter triggers new lines. Actions are disabled by the multiline flag, so '\n' characters are handled in text changed callbacks.
* | Merge pull request #39737 from Cevantime/add_force_caret_displayed_to_line_editRémi Verschelde2020-07-231-9/+29
|\ \ | | | | | | add force caret display to line edit
| * | add force caret display to line editCevantime2020-07-151-9/+29
| | |
* | | Add option to disable virtual keyboard for LineEditPouleyKetchoupp2020-07-221-4/+15
| | | | | | | | | | | | Co-authored-by: Alexander Holland <alexander.holland@live.de>
* | | Fix some popups menu missing screen transform.Juan Linietsky2020-07-011-1/+1
| | | | | | | | | | | | Closes #38591
* | | Add a separate application focus/in notification out from Window focus ↵Juan Linietsky2020-06-301-2/+2
|/ / | | | | | | notification.
* | [macOS] Command-backspace in line editAndy Maloney2020-06-181-0/+16
| | | | | | | | | | | | | | | | | | | | Make command-backspace in line edit work like other macOS applications. If there is a selection, command-backspace deletes the selection. If there isn't a selection, command-backspace deletes from the cursor to the beginning of the line edit. This addresses part of godotengine/godot#23548
* | Make text deletion methods public for LineEditThibault Truffert2020-06-101-0/+4
| |
* | Fix Android LineEdit editing bugsSkyJJ2020-05-161-2/+10
| |
* | Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-62/+121
| | | | | | | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* | Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* | Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-101/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* | Using the common behaviour when use command+shift on text line for osxEduardo Nunes Pereira2020-05-111-0/+4
| | | | | | | | | | * On press left+command+shift or right+command+shift it should behave like shift+home or shift+end and select the text * Using home and end events as reference
* | Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-5/+10
|/ | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Replace NULL with nullptrlupoDharkael2020-04-021-12/+12
|
* Renaming of servers for coherency.Juan Linietsky2020-03-271-9/+9
| | | | | | | | | | VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
* Add macOS DisplayServer implementation.bruvzg2020-03-261-8/+13
| | | | Change global menu to use Callable, add support for check items and submenus.
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-35/+35
|
* Refactored input, goes all via windows now.Juan Linietsky2020-03-261-2/+2
| | | | Also renamed Input to InputFilter because all it does is filter events.
* Added a Window node, and made it the scene root.Juan Linietsky2020-03-261-1/+1
| | | | Still a lot of work to do.
* Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky2020-03-261-21/+21
|
* Merge pull request #37281 from ↵Rémi Verschelde2020-03-251-1/+0
|\ | | | | | | | | ThakeeNathees/fix-project-manager-don't-consume-Enter Fix: project manager don't consume Enter key #17620
| * fix project manager don't consume Enter key #17620Thakee Nathees2020-03-251-1/+0
| |
* | Use LineEdit secret character width everywhereDarren Kaste2020-03-191-10/+10
|/
* Merge pull request #37094 from dkaste/line-edit-secret-selectRémi Verschelde2020-03-181-1/+5
|\ | | | | Calculate LineEdit selection with secret character
| * Calculate LineEdit selection with secret characterDarren Kaste2020-03-161-1/+5
| |
* | Remove update condition from LineEdit::update_placeholder_widthsimpuid2020-03-181-7/+5
|/ | | | | Placeholder with length greater than `max_length` are allowed, so there is no reason for those update condition. It fixes the odd alignment of placeholder when it's length is greater than `max_length`
* Merge pull request #18020 from bruvzg/input_fix_non_latin_and_add_hw_scancodesRémi Verschelde2020-03-011-4/+4
|\ | | | | Fix non-latin layout scancodes on Linux, adds access to physical scancodes.
| * Rename `scancode` to `keycode`.bruvzg2020-02-251-4/+4
| | | | | | | | | | Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
* | Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-7/+4
| | | | | | | | | | | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* | Merge pull request #36050 from eswartz/line-edit-move-cursor-on-unselectRémi Verschelde2020-02-271-3/+24
|\ \ | | | | | | Use left/right arrow to move cursor when unselecting in LineEdit
| * | Use left/right arrow to move cursor when unselecting in LineEditEd Swartz2020-02-151-3/+24
| | | | | | | | | | | | | | | | | | -- useful for rename dialog (the filename portion is selected by default, and usually, want to change the end of the name, not the beginning)
* | | Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky2020-02-251-2/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
* | Replace FALLTHROUGH macro by C++17 [[fallthrough]]Rémi Verschelde2020-02-231-4/+4
| | | | | | | | | | | | | | | | | | | | This attribute is now part of the standard we target so we no longer need compiler-specific hacks. Also enables -Wimplicit-fallthrough for Clang now that we can properly support it. It's already on by default for GCC's -Wextra. Fixes new warnings raised by Clang's -Wimplicit-fallthrough.
* | Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-4/+4
| | | | | | | | objects and made them default.
* | Texture refactorJuan Linietsky2020-02-111-5/+5
|/ | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Merge pull request #35814 from timothyqiu/line-edit-shortcutRémi Verschelde2020-02-091-0/+6
|\ | | | | Adds CTRL-A CTRL-E support to LineEdit on macOS
| * Adds CTRL-A CTRL-E support to LineEdit on macOSHaoyu Qiu2020-02-011-0/+6
| |
* | Update cached_width of the line_edit element when setting it to be secretsumit01902020-02-081-18/+15
|/