Commit Graph

156 Commits (cb1569345a6f17da08241e645ab03cb2e1b78d2f)

Author SHA1 Message Date
Luo Zhihao 7668360c68
SpinBox: Add a property to set whether `custom_arrow_step` rounds value 2025-11-18 12:12:33 +07:00
Haoyu Qiu 72d437c030 Move localized number formatting methods to TranslationServer
Co-Authored-By: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>
2025-11-10 15:01:22 +07:00
Thaddeus Crews 9e96c7d9b8
Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
2025-10-16 12:48:05 +07:00
Thaddeus Crews 42263551b5
Merge pull request #110212 from Giganzo/spin-box-held-down
Fix SpinBox value change when held down on separation between buttons
2025-10-01 13:12:31 +07:00
Giganzo e90a337fa3 Fix SpinBox stepper grabbing focus state on mouse input 2025-09-24 16:51:59 +07:00
Haoyu Qiu 172c80df67 Make text-related nodes translation domain aware
- Makes `is_layout_rtl()` translation domain aware
- Makes various text-drawing controls translation domain aware
- Makes translation preview use the project's fallback locale when disabled
2025-09-22 09:39:14 +07:00
Giganzo c6be28af7a Fix SpinBox value change when held down on separation between buttons 2025-09-02 23:15:56 +07:00
kobewi 917f8b1ba8 Deprecate updown icon 2025-07-19 23:23:55 +07:00
LuoZhihao 453f4f13e4 SpinBox: Fix `custom_arrow_step` by snapping it to `step` 2025-07-06 18:12:37 +07:00
LuoZhihao 81406ff1f4 Spinbox: Fix incorrect step and decimal text when using custom arrow step 2025-06-09 19:00:11 +07:00
Michael Alexsander 454e4f817c
Make build profile project detection also set build options 2025-06-03 11:11:33 +07:00
A Thousand Ships 889410dcda
Add `String::replace_char(s)` methods for performance and convenience 2025-04-10 13:08:45 +07:00
Pāvels Nadtočajevs b106dfd4f9
Base accessibility API. 2025-04-08 20:14:28 +07:00
kobewi 10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +07:00
Thaddeus Crews 3a472ef072
Merge pull request #100684 from ryevdokimov/fix-spinbox-decimal-issues
Fix spinbox decimal issues when `update_on_text_changed` = true
2025-03-05 12:07:54 +07:00
Robert Yevdokimov d8318deb0a Fix spinbox decimal issues when `update_on_text_changed` = true 2025-02-01 21:31:28 +07:00
Robert Yevdokimov 54bdc5fc82 Fix spinbox input events propagating during dragging, breaking focus 2025-01-20 14:56:23 +07:00
Rémi Verschelde 2850b7113c Merge pull request #100860 from larspet/spin-box-focus-exited
Allow overriding SpinBox value on `focus_exited`
2025-01-14 00:22:03 +07:00
Pāvels Nadtočajevs b252867145 [macOS/Windows] Add `Emoji & Symbols` context menu item to LineEdit/TextEdit to show system character picker. 2025-01-10 09:25:34 +07:00
Lars Pettersson 3c1ac98f37
Allow overriding SpinBox value on `focus_exited` 2024-12-27 22:12:57 +07:00
Rémi Verschelde 1c94d13e21
Merge pull request #99721 from ryevdokimov/fix-spin-box
Fix removing last digit in spinbox while `update_on_text_changed` is true
2024-12-17 16:18:58 +07:00
A Thousand Ships af56d6e8e8
Use `SceneStringName` in more places 2024-12-02 14:39:16 +07:00
Robert Yevdokimov 7375fe2173 Fix removing last digit in spinbox while update_on_text_changed is true 2024-11-26 15:41:16 +07:00
shahriarlabib000 177bba12b0 hide unused exp_edit from SpinBox inspector 2024-11-15 22:57:43 +07:00
shahriarlabib000 afeecad92e Fix Spinbox display does not round properly when using decimal custom arrow steps 2024-11-09 08:36:42 +07:00
Mounir Tohami c36f466a4c Prevent `LineEdit` from losing focus when text is submitted or rejected. 2024-09-10 13:43:31 +07:00
kobewi bde64c4633 Deprecate set_min_buttons_width_from_icons 2024-09-05 15:43:54 +07:00
David Giardi e371587147 Improve SpinBox interaction, split arrows, add theme attributes 2024-08-23 18:21:20 +07:00
A Thousand Ships fbb879debd
[Scene] Add `SceneStringNames::text/value_changed` 2024-06-19 09:44:38 +07:00
kobewi 413c11357d Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +07:00
Robert Yevdokimov 76a6650fd9 If spinbox text can't be parsed use last updated text 2024-02-27 16:20:51 +07:00
kobewi 0e8f90f4c8 Update deferred calls to use Callables 2024-01-09 16:11:47 +07:00
jsjtxietian 61be3eafc0 Fix spinBox will reset text when redrawing 2023-10-08 20:03:08 +07:00
Rémi Verschelde 7469b43392
Merge pull request #77804 from ajreckof/prevent-disapearance-of-mouse-when-SpinBox-is-hidden-while-doing-a-drag-modification
Prevent disappearance of mouse when SpinBox is hidden while dragging
2023-09-29 19:45:03 +07:00
aXu-AP 4d3dc0e944 Use comma as a decimal separator for SpinBox
Add support for comma ',' as a decimal separator for SpinBox. This implementation allows for expressions like `pow(2, 3)` to be used as well. If you use comma to separate decimals, use semicolon `;` to separate function parameters.
Change EditorSpinSlider behavior to match.
2023-09-21 15:45:37 +07:00
Rémi Verschelde d08401236c
Merge pull request #81312 from YuriSizov/theme-static-binds
Register theme properties with ThemeDB
2023-09-11 15:38:06 +07:00
Rémi Verschelde ca2d5b25fd
Merge pull request #81094 from OXTyler/81071
Fix SpinBox not clearing text on improper input
2023-09-11 15:37:18 +07:00
Yuri Sizov 2924bfd4d3 Register theme properties with ThemeDB 2023-09-11 13:45:23 +07:00
kobewi e21c30ec11 Unfocus LineEdit when pressing Escape 2023-08-29 14:53:49 +07:00
Tyler 468e57dfe5 fixes issue 81071 2023-08-28 17:09:48 +07:00
kobewi 968c5f6247 Preserve selection when focusing SpinBox 2023-06-10 21:29:24 +07:00
ajreckof 0c4d37e682 Prevent disapearance of mouse when SpinBox is hidden while doing a drag modification. 2023-06-03 14:50:03 +07:00
Aaron Franke 8b42297d7c
Make `Viewport::gui_get_focus_owner` const 2023-06-02 12:36:10 +07:00
Aaron Franke d3e4db4a7b
Fix crash when removing SpinBox during text submit 2023-06-02 10:29:22 +07:00
Yuri Sizov de416c5cbd
Merge pull request #74623 from MewPurPur/edit-text-with-style
Code style improvements to text_edit and related
2023-04-17 19:08:08 +07:00
Rémi Verschelde 486988f717
Merge pull request #70834 from pattlebass/spinbox-doesnt-spin
Fix `Range`-derived nodes not redrawing after `set_value_no_signal`
2023-04-12 17:01:11 +07:00
pattlebass 9500f8e69a Fix Range-derived nodes not redrawing
When using set_value_no_signal(), Range-derived nodes wouldn't redraw.

Also added a dedicated method to SpinBox to update its text.
2023-04-12 14:53:12 +07:00
VolTer f587a21899 Code style improvements to text_edit and related 2023-04-08 19:33:56 +07:00
Hugo Locurcio 65560315a4
Add a property hint for SpinBox's `custom_arrow_step` property
Only positive or zero values make sense for this property.
2023-01-14 20:18:01 +07:00
Juan Linietsky 2b815df3c1 Use BitField<> in core type masks
* All core types masks are now correctly marked as bitfields.
* The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks.
* Most bitmask operations replaced by functions in BitField<>
* Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is.
* Documentation and API dump updated to reflect bitfields in core types.
2023-01-08 22:17:40 +07:00