summaryrefslogtreecommitdiff
path: root/scene/gui/line_edit.cpp
AgeCommit message (Collapse)Author
2020-07-01Fix some popups menu missing screen transform.Juan Linietsky
Closes #38591
2020-06-30Add a separate application focus/in notification out from Window focus ↵Juan Linietsky
notification.
2020-06-18[macOS] Command-backspace in line editAndy Maloney
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
2020-06-10Make text deletion methods public for LineEditThibault Truffert
2020-05-16Fix Android LineEdit editing bugsSkyJJ
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
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.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
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.
2020-05-11Using the common behaviour when use command+shift on text line for osxEduardo Nunes Pereira
* 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
2020-05-10Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde
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.
2020-04-02Replace NULL with nullptrlupoDharkael
2020-03-27Renaming of servers for coherency.Juan Linietsky
VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
2020-03-26Add macOS DisplayServer implementation.bruvzg
Change global menu to use Callable, add support for check items and submenus.
2020-03-26Popups are now windows also (broken!)Juan Linietsky
2020-03-26Refactored input, goes all via windows now.Juan Linietsky
Also renamed Input to InputFilter because all it does is filter events.
2020-03-26Added a Window node, and made it the scene root.Juan Linietsky
Still a lot of work to do.
2020-03-26Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky
2020-03-25Merge pull request #37281 from ↵Rémi Verschelde
ThakeeNathees/fix-project-manager-don't-consume-Enter Fix: project manager don't consume Enter key #17620
2020-03-25fix project manager don't consume Enter key #17620Thakee Nathees
2020-03-19Use LineEdit secret character width everywhereDarren Kaste
2020-03-18Merge pull request #37094 from dkaste/line-edit-secret-selectRémi Verschelde
Calculate LineEdit selection with secret character
2020-03-18Remove update condition from LineEdit::update_placeholder_widthsimpuid
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`
2020-03-16Calculate LineEdit selection with secret characterDarren Kaste
2020-03-01Merge pull request #18020 from bruvzg/input_fix_non_latin_and_add_hw_scancodesRémi Verschelde
Fix non-latin layout scancodes on Linux, adds access to physical scancodes.
2020-02-28Signals: Port connect calls to use callable_mpRémi Verschelde
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.)
2020-02-27Merge pull request #36050 from eswartz/line-edit-move-cursor-on-unselectRémi Verschelde
Use left/right arrow to move cursor when unselecting in LineEdit
2020-02-25Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky
- 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.
2020-02-25Rename `scancode` to `keycode`.bruvzg
Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
2020-02-23Replace FALLTHROUGH macro by C++17 [[fallthrough]]Rémi Verschelde
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.
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-15Use left/right arrow to move cursor when unselecting in LineEditEd Swartz
-- useful for rename dialog (the filename portion is selected by default, and usually, want to change the end of the name, not the beginning)
2020-02-11Texture refactorJuan Linietsky
-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
2020-02-09Merge pull request #35814 from timothyqiu/line-edit-shortcutRémi Verschelde
Adds CTRL-A CTRL-E support to LineEdit on macOS
2020-02-08Update cached_width of the line_edit element when setting it to be secretsumit0190
2020-02-01Adds CTRL-A CTRL-E support to LineEdit on macOSHaoyu Qiu
2020-01-23Android virtual keyboard respecting LineEdit max length.Bruno Lourenço
2020-01-15Updates LineEdit's min size when necessaryHaoyu Qiu
These properties will affect the minimum size of LineEdit: * The right icon (`set_right_icon`) * The clear button (`set_editable` and `set_clear_button_enabled`) * The text, when "expand to text length" is enabled (`set_text`)
2020-01-11Fix empty LineEdit crash on ctrl+backspacePaulb23
2020-01-10Add signal for LineEdit overflow eventTomasz Chabora
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-08Hide LineEdit placeholder if IME composition string is not empty.bruvzg
2019-12-01Fixed caret alignment with placeholder textPaulb23
2019-12-01Fixed LineEdit alignment when removing text or undo / redoPaulb23
2019-09-25Make LineEdit's minimal size adapt to its iconsMichael Alexsander Silva Dias
2019-09-24Merge pull request #31925 from bojidar-bg/31855-overriden-properties-docsRémi Verschelde
Add overriden properties to the documentation
2019-09-23Merge pull request #32048 from YeldhamDev/lineedit_right_icon_fixRémi Verschelde
Expose LineEdit's 'right_icon' and fix icon size
2019-09-22Merge pull request #29895 from ptrojahn/menukeyRémi Verschelde
Support menu key in TextEdit and LineEdit controls
2019-09-22Support menu key in TextEdit and LineEdit controlsPaul Trojahn
Related to #15542
2019-09-21Expose LineEdit's 'right_icon' and fix icon sizeMichael Alexsander Silva Dias
2019-09-19Merge pull request #31188 from codecustard/LineEdit_disable_shortcutsRémi Verschelde
Add Ability to Enable/Disable Shortcuts and Selection for LineEdit/TextEdit