summaryrefslogtreecommitdiffstats
path: root/scene/gui/spin_box.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@cb411fa960f0b7fdbd97dcdb4c90f9346360ee0eSpartan3222024-11-121-0/+2
|\
| * Fix Spinbox display does not round properly when using decimal custom arrow ↵shahriarlabib0002024-11-091-0/+2
| | | | | | | | steps
* | 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-2/+1
|
* Deprecate set_min_buttons_width_from_iconskobewi2024-09-051-2/+3
|
* Improve SpinBox interaction, split arrows, add theme attributesDavid Giardi2024-08-231-3/+64
|
* Fix spinBox will reset text when redrawingjsjtxietian2023-10-081-1/+2
|
* Register theme properties with ThemeDBYuri Sizov2023-09-111-2/+0
|
* Merge pull request #70834 from pattlebass/spinbox-doesnt-spinRémi Verschelde2023-04-121-1/+1
|\ | | | | | | Fix `Range`-derived nodes not redrawing after `set_value_no_signal`
| * Fix Range-derived nodes not redrawingpattlebass2023-04-121-1/+1
| | | | | | | | | | | | When using set_value_no_signal(), Range-derived nodes wouldn't redraw. Also added a dedicated method to SpinBox to update its text.
* | 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".
* Allow selecting SpinBox & LineEdit text when focus entersHaoyu Qiu2022-10-291-0/+3
|
* Add a lifecycle method for manual theme item caching to ControlYuri Sizov2022-09-011-0/+5
|
* Hide prefix/suffix on SpinBox focuskobewi2022-08-171-0/+1
|
* Independent spinbox arrow step precisionJóhannes Gunnar Þorsteinsson2022-08-041-0/+3
| | | | | | Rebased by EIREXE This work has been kindly sponsored by IMVU & EIRTeam.
* Consistently use double in Slider and SpinBoxAaron Franke2022-07-151-2/+2
|
* Zero initialize all pointer class and struct membersRémi Verschelde2022-04-041-2/+2
| | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* Discern between virtual and abstract class bindingsreduz2022-03-101-1/+1
| | | | | | | | | | | | | | * 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.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-2/+2
|
* Fix missing argument names in bindingsRémi Verschelde2021-10-091-2/+2
| | | | | | While at it, tweak some boolean setters to use `p_enabled` for the bool. Also renames `draw_minimap()` to `set_draw_minimap()`.
* Added option for spinbox to update it's value on line edit 'text_changed' ↵Eric M2021-09-211-0/+6
| | | | rather than 'text_entered'
* Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-1/+1
| | | | | | | | * `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
* Documentation search fixesGregory Basile2021-06-161-1/+1
| | | | | | Updates rich_text_label so that the built-in documentation can be searched Previously, it would only find the first result and would not select other results Renames "_entered" functions to "_submitted"
* Release mouse when SpinBox leaves scene treekobewi2021-03-061-0/+1
|
* Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-091-3/+3
|
* Fix unintended SpinBox mouse captureVolka2021-01-261-4/+4
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Add override keywords.Marcel Admiraal2020-07-101-2/+2
|
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-1/+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.
* Texture refactorJuan Linietsky2020-02-111-1/+1
| | | | | | | | -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
* Add apply method to SpinBoxJóhannes Gunnar Þorsteinsson2020-01-111-0/+2
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | 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.
* Use reference to constant in functionsqarmin2019-07-101-1/+1
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fixed issue #11893 (SpinBox Capturing mouse)Rodolphe Suescun2018-12-101-2/+2
| | | | | | | | | | To prevent the SpinBox from capturing mouse, added a "drag.allowed" variable that is set to true only when clicking inside the control. Entering the control with the left mouse button pressed will not trigger drag anymore. Also modified the value update code when dragging so it does not modify the base_val.
* Expose the align property of the SpinBox's LineEdit controlMrCdK2018-08-251-0/+3
|
* SpinBoxes calculate correctly their width before first redraw.Ovnuniarchos2018-02-051-0/+2
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-201-2/+2
| | | | this might cause bugs I haven't found yet..
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* renamed _input_event for GUI events to _gui_input, so it's more ↵Juan Linietsky2017-01-081-1/+1
| | | | differentiated than generalized _input
* ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-1/+1
| | | | | | | | Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
* Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
| | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* Spinbox: increase/decrease with mouse heldneikeq2015-12-101-0/+4
|