summaryrefslogtreecommitdiffstats
path: root/scene/gui/spin_box.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Prevent `LineEdit` from losing focus when text is submitted or rejected.Mounir Tohami2024-09-101-30/+21
|
* Deprecate set_min_buttons_width_from_iconskobewi2024-09-051-1/+8
|
* Improve SpinBox interaction, split arrows, add theme attributesDavid Giardi2024-08-231-19/+205
|
* [Scene] Add `SceneStringNames::text/value_changed`A Thousand Ships2024-06-191-2/+2
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-3/+3
|
* If spinbox text can't be parsed use last updated textRobert Yevdokimov2024-02-271-0/+1
|
* Update deferred calls to use Callableskobewi2024-01-091-2/+2
|
* Fix spinBox will reset text when redrawingjsjtxietian2023-10-081-2/+7
|
* Merge pull request #77804 from ↵Rémi Verschelde2023-09-291-0/+3
|\ | | | | | | | | | | ajreckof/prevent-disapearance-of-mouse-when-SpinBox-is-hidden-while-doing-a-drag-modification Prevent disappearance of mouse when SpinBox is hidden while dragging
| * Prevent disapearance of mouse when SpinBox is hidden while doing a drag ↵ajreckof2023-06-031-0/+3
| | | | | | | | modification.
* | Use comma as a decimal separator for SpinBoxaXu-AP2023-09-211-4/+16
| | | | | | | | | | 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.
* | Merge pull request #81312 from YuriSizov/theme-static-bindsRémi Verschelde2023-09-111-6/+3
|\ \ | | | | | | | | | Register theme properties with ThemeDB
| * | Register theme properties with ThemeDBYuri Sizov2023-09-111-6/+3
| | |
* | | Merge pull request #81094 from OXTyler/81071Rémi Verschelde2023-09-111-0/+1
|\ \ \ | |/ / |/| | | | | Fix SpinBox not clearing text on improper input
| * | fixes issue 81071Tyler2023-08-281-0/+1
| | |
* | | Unfocus LineEdit when pressing Escapekobewi2023-08-291-0/+5
|/ /
* | Preserve selection when focusing SpinBoxkobewi2023-06-101-1/+1
| |
* | Make `Viewport::gui_get_focus_owner` constAaron Franke2023-06-021-1/+1
| |
* | Fix crash when removing SpinBox during text submitAaron Franke2023-06-021-1/+2
|/
* Merge pull request #74623 from MewPurPur/edit-text-with-styleYuri Sizov2023-04-171-1/+1
|\ | | | | Code style improvements to text_edit and related
| * Code style improvements to text_edit and relatedVolTer2023-04-081-1/+1
| |
* | Merge pull request #70834 from pattlebass/spinbox-doesnt-spinRémi Verschelde2023-04-121-8/+11
|\ \ | |/ |/| | | Fix `Range`-derived nodes not redrawing after `set_value_no_signal`
| * Fix Range-derived nodes not redrawingpattlebass2023-04-121-8/+11
| | | | | | | | | | | | When using set_value_no_signal(), Range-derived nodes wouldn't redraw. Also added a dedicated method to SpinBox to update its text.
* | Add a property hint for SpinBox's `custom_arrow_step` propertyHugo Locurcio2023-01-141-1/+1
| | | | | | | | Only positive or zero values make sense for this property.
* | Use BitField<> in core type masksJuan Linietsky2023-01-081-1/+1
| | | | | | | | | | | | | | | | * 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.
* | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
|/ | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Add `Control::localize_numeral_system` property to toggle automatic numeral ↵bruvzg2022-11-171-1/+4
| | | | system conversion.
* Allow selecting SpinBox & LineEdit text when focus entersHaoyu Qiu2022-10-291-0/+17
|
* Add a lifecycle method for manual theme item caching to ControlYuri Sizov2022-09-011-6/+10
|
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-2/+2
| | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* Merge pull request #64574 from Begah/fix_transient_window_wrap_mouseRémi Verschelde2022-08-261-1/+2
|\
| * Fix warp_mouse for transient windows, smoother mouse positioning when ↵MathieuRoux2022-08-251-1/+2
| | | | | | | | releasing mouse for spinbox
* | Merge pull request #64529 from KoBeWi/suffix_begoneRémi Verschelde2022-08-261-6/+17
|\ \ | |/ |/|
| * Hide prefix/suffix on SpinBox focuskobewi2022-08-171-6/+17
| |
* | Add some codes, returnes directly if the value is not changed.风青山2022-08-231-0/+8
|/ | | | Avoid executing the following value-changed logics if the value does not really change.
* Independent spinbox arrow step precisionJóhannes Gunnar Þorsteinsson2022-08-041-5/+19
| | | | | | Rebased by EIREXE This work has been kindly sponsored by IMVU & EIRTeam.
* Remove Signal connect bindsJuan Linietsky2022-07-291-3/+3
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Rename Control PRESET_WIDE to PRESET_FULL_RECTFireForge2022-07-181-1/+1
|
* Consistently use double in Slider and SpinBoxAaron Franke2022-07-151-1/+1
|
* Add a const call mode to Object, Variant and Script.K. S. Ernest (iFire) Lee2022-06-271-1/+1
| | | | | | | For this to work safely (user not call queue_free or something in the expression), a const call mode was added to Object and Variant (and optionally Script). This mode ensures only const functions can be called, making it safe to use from the editor. Co-Authored-By: reduz <reduzio@gmail.com>
* Discern between virtual and abstract class bindingsreduz2022-03-101-1/+2
| | | | | | | | | | | | | | * Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
* Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde2022-02-151-28/+38
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-2/+2
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-8/+8
|
* Rename minimum_size_changed() methodkobewi2021-12-061-2/+2
|
* Rename built-in `SGN()` macro to `SIGN()`Hugo Locurcio2021-11-161-1/+1
| | | | | This matches the name of the GDScript function (except it's uppercase here).
* Use "enum class" for input enumsAaron Franke2021-11-121-7/+7
|