summaryrefslogtreecommitdiff
path: root/scene/gui
AgeCommit message (Collapse)Author
2022-10-27Merge pull request #67644 from alfredbaudisch/add-selection-next-occurrenceClay John
Add Selection and Caret for Next Occurrence of Selection
2022-10-23Merge pull request #67566 from Sauermann/fix-code-simplificationsClay John
Code simplifications
2022-10-21Add Selection and Caret for Next Occurrence of SelectionAlfred Reinold Baudisch
Adds the bind `add_selection_for_next_occurrence` to TextEdit, with CTRL+D as the default shortcut. When the bind is performed, ff a selection is currently active with the last caret in text fields, searches for the next occurrence of the selection, adds a caret and selects the next occurrence. If no selection is currently active with the last caret in text fields, selects the word currently under the caret. The action can be performed sequentially for all occurrences of the selection of the last caret and for all existing carets. The viewport is adjusted to the latest newly added caret. The bind and the behaviour is similar to VS Code's "Add Selection to Next Find Match" and JetBrains' "Add Selection for Next Occurrence". It takes advantage of the multi-caret API. The default shortcut for `select_word_under_caret` has been changed to ALT+G, in order to give priority to CTRL+D for `add_selection_for_next_occurrence` to better align with popular IDEs and editors.
2022-10-19Merge pull request #66279 from aaronfranke/control-min-sizeMax Hilbrunner
Revert `custom_minimum_size` type back to `Vector2` instead of `Vector2i`
2022-10-18Code simplificationsMarkus Sauermann
1. Viewport::get_visible_rect().position is always zero. So Control::get_window_rect is identical to Control::get_global_rect. Remove Control::get_window_rect since it is not used in the source code. 2. sqrt(a * a) = abs(a) for doubles 3. Simplify affine_inverse combination 4. Simplify calculation in shaders
2022-10-16Fix undo redo not adjusting TextEdit viewport to caretPaulb23
2022-10-14Abort LineEdit shaping if no font is set to avoid unnecessary error messages.bruvzg
2022-10-13Merge pull request #67348 from Mickeon/salvage-a-dear-commentRémi Verschelde
Comment not to remove `data` structs in some Nodes
2022-10-13Comment not to remove `data` structs in some NodesMicky
2022-10-13Merge pull request #66337 from EricEzaM/sprite-framesRémi Verschelde
Ensure control built-in shortcuts are matched exactly & add shortcuts for SpriteFrames editor
2022-10-13Merge pull request #66357 from EricEzaM/shortcut-context-on-nodeRémi Verschelde
Move Shortcut Context to control and fix `shortcut_input` with `shortcut_context`
2022-10-13Move Shortcut Context to Control and ensure that `shortcut_input` adheres to ↵Eric M
contexts. Also ensure that controls with no context are only triggered AFTER nodes which do have a context.
2022-10-13fixed holding alt while zooming zooms in by 2 increments.MladoniSzabi
2022-10-13Merge pull request #66953 from Sauermann/fix-top-level-connect-errorRémi Verschelde
Fix Control node not disconnecting from signal
2022-10-12Merge pull request #67232 from bruvzg/popup_editRémi Verschelde
Improve Popup / Window behavior in the edited scene tree.
2022-10-11Fix select word under caret using caret col instead of linePaulb23
2022-10-11Merge pull request #67201 from progsource/richtextlabel-icon-spritesheetRémi Verschelde
Add Spritesheet support to RichTextLabel BBCode
2022-10-11Add Spritesheet support to RichTextLabel BBCodePetra Baranski
BBCode: [img region=0,0,16,16]res://icon.svg[/img]
2022-10-11Prevent `Popup`s it the edited scene tree from closing on focus loss. Hide ↵bruvzg
irrelevant `Popup` flags from the editor inspector.
2022-10-10SCons: Re-enable treating `#warning` as error with `werror`Rémi Verschelde
Replace all TODO uses of `#warning` by proper TODO comments, and will open matching bug reports to keep track of them. We don't have a great track record fixing TODOs, but I'd wager we're even worse for fixing these "TODO #warning" so we should prohibit this usage.
2022-10-10Merge pull request #67117 from Jummit/tree-button-colorRémi Verschelde
Expose TreeItem::set_button_color
2022-10-10Merge pull request #67145 from Paulb23/tab_texteditRémi Verschelde
Fix inserting tabs in TextEdit
2022-10-10Merge pull request #65805 from MewPurPur/improve-breakpoint-hoveringRémi Verschelde
Improve bookmark and breakpoint indicators
2022-10-10Improved breakpoints hover indicatorVolTer
2022-10-10Don't allow removing TextEdit's main caretHaoyu Qiu
2022-10-09Handle tab in TextEditPaulb23
2022-10-09Merge pull request #67083 from RedMser/label-font-warningRémi Verschelde
Add warning for missing characters in label font
2022-10-09Merge pull request #66524 from microaeris/aeris/text-edit-get-scroll-barRémi Verschelde
Getters for TextEdit scroll bars
2022-10-09Expose TreeItem::set_button_colorJummit
2022-10-08Fix Label text length mismatch after localizationHaoyu Qiu
2022-10-08Add warning for missing characters in label fontRedMser
2022-10-07Getters for TextEdit scrollbarsmicroaeris
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-07Merge pull request #62910 from Vitika9/gsoc-colorpicker-uxRémi Verschelde
ColorPicker UX
2022-10-07Add split caret direction markers. Fix block/overtype caret size.bruvzg
2022-10-06Merge pull request #66961 from Rindbee/fix-set_custom_colorRémi Verschelde
Fix wrong condition used in `set_custom_color`
2022-10-06Merge pull request #61902 from Paulb23/multi-caretRémi Verschelde
Add Multi-caret support to TextEdit
2022-10-06Fix wrong condition used in `set_custom_color`Rindbee
2022-10-05Fix Control not disconnecting signalMarkus Sauermann
If a Control has not parent CanvasItem and is set as top_level, then it does not disconnect from the "size_changed" signal when it leaves the Canvas. This patch corrects this.
2022-10-05Add multi caret support to CodeEditPaulb23
2022-10-05Add mutliple Caret support to TextEditPaulb23
2022-10-05Merge pull request #66770 from EricEzaM/search-by-eventRémi Verschelde
Add searching by event in Editor Settings shortcuts and Project Settings input map.
2022-10-04Merge pull request #66559 from zaevi/fix_ScrollContainer_touch_scrollRémi Verschelde
Fix ScrollContainer touch-scrolling not working.
2022-10-03Move selecion into caretPaulb23
2022-10-03Improve MenuButton and OptionButtonEricEzaM
* MenuButton + OptionButton: Add method `show_popup()` which performs required popup setup before showing (prefer use of this over `get_popup()->popup()`, otherwise GH #66308 occurs) * MenuButton: Ensure that the menu can be opened with a shortcut, if one is set for the button. (GH #66403). Ensure that popupmenu item shortcuts are checked first before the MenuButton shortcut.
2022-10-03Add searching by event for Editor Settings shortcuts and Project Settings ↵EricEzaM
input map. * Focus into the LineEdit, then perform input to search the list of events by the events assigned. * New specialised editor-only control for this: EventListenerLineEdit. Line edit is a good candidate for such a control because you can focus it, override it's input handling, and show the event all in one control. Update InputEventConfigurationDialog to use event listener line edit rather than the separate tabs. * Cleaner look - no need for tabs. * Simpler code.
2022-09-28Merge pull request #58995 from Sauermann/fix-mouse-cursor-change-2Rémi Verschelde
Update mouse cursor shape after changes
2022-09-28Merge pull request #66543 from akien-mga/msvc-warning-c4702Rémi Verschelde
Fix MSVC warning C4702: unreachable code
2022-09-29Fix ScrollContainer touch-scrolling not working.Zae
2022-09-28Fix MSVC warning C4702: unreachable codeRémi Verschelde
Part of #66537.