summaryrefslogtreecommitdiffstats
path: root/scene/gui/spin_box.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+2
|
* Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-7/+7
|
* Release mouse when SpinBox leaves scene treekobewi2021-03-061-6/+11
|
* Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-091-1/+0
|
* Fix unintended SpinBox mouse captureVolka2021-01-261-1/+0
|
* 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 🎆
* Rename Control margin to offsetMarcel Admiraal2020-12-231-3/+3
|
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-4/+17
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Merge pull request #38223 from EricEzaM/spinbox-update-lineedit-after-bad-inputRémi Verschelde2020-08-141-1/+1
|\ | | | | Fixed bug where spinbox would not update to it's actual value after non-numeric input
| * Fixed bug where spinbox would not update to it's actual value after ↵Eric M2020-04-261-1/+1
| | | | | | | | non-numeric input
* | Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-3/+6
| | | | | | | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* | Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-33/+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.
* | Rename InputFilter back to InputRémi Verschelde2020-04-281-4/+4
|/ | | | | | | | | | | | | | | | It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
* Replace NULL with nullptrlupoDharkael2020-04-021-1/+1
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-2/+2
|
* Refactored input, goes all via windows now.Juan Linietsky2020-03-261-4/+5
| | | | Also renamed Input to InputFilter because all it does is filter events.
* Refactored Input, create DisplayServer and DisplayServerX11Juan Linietsky2020-03-261-1/+1
|
* Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-8/+4
| | | | | | | | | 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.)
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-4/+4
| | | | objects and made them default.
* Texture refactorJuan Linietsky2020-02-111-2/+2
| | | | | | | | -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/+5
|
* 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.
* Update minimum size of SpinBox on theme changeTomasz Chabora2019-12-101-0/+4
|
* Fixes spinbox not releasing focus on value changeEmmanuel Barroga2019-10-211-3/+3
| | | | | Trying to release focus of the spinbox's lineedit would not work when done in the "value_changed" callback. The reason is because the "value_change" signal is called first, then the "get_focus" method is called next. This causes the spinbox to get_focus after you try to release focus within the "value_changed" callback. To resolve this, spinbox should get focus first and then emit "value_changed".
* Ignore the prefix and suffix in the SpinBox expressionHugo Locurcio2019-08-301-1/+2
| | | | | This fixes a regression caused by 86a31e9e385c7909a0cdd24a5ee790c3dca03b98.
* Calculate the SpinBox value using the Expression classHugo Locurcio2019-08-291-8/+12
| | | | This closes #31780.
* Fix Right-Click Menu Deselecting Edits ContentEmmanuel Barroga2019-08-121-0/+4
| | | Right-clicking a property to open the context menu deselects the text field. This causes the context menu to be useless because it doesn't have anything to edit.
* Inspector: Make default float step configurableRémi Verschelde2019-07-231-1/+1
| | | | | | | | | | Also allow lifting the decimal step formatting with a hint range step of 0. A new `range_step_decimals()` is added for this to avoid breaking compatibility on the general purpose `step_decimals()` (which still returns 0 for an input step of 0). Supersedes #25470. Partial fix for #18251.
* Use reference to constant in functionsqarmin2019-07-101-1/+1
|
* Pass mouse events to SpinBox from its LineEditTomasz Chabora2019-05-211-0/+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-23/+11
| | | | | | | | | | 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.
* -Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky2018-11-081-1/+1
| | | | -Removed one and zero hints for properties, replaced by default value
* Merge pull request #21395 from mrcdk/spin_box_expose_alignRémi Verschelde2018-10-021-0/+13
|\ | | | | Expose the align property of the SpinBox's LineEdit control
| * Expose the align property of the SpinBox's LineEdit controlMrCdK2018-08-251-0/+13
| |
* | Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+1
|/ | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* SpinBoxes calculate correctly their width before first redraw.Ovnuniarchos2018-02-051-5/+11
|
* 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!
* Remove set_area_as_parent_rect and replace it by ↵Gilles Roudiere2017-09-221-1/+1
| | | | set_anchors_and_margins_preset(PRESET_WIDE)
* Rename pos to position in user facing methods and variablesletheed2017-09-201-1/+1
| | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Fix spinboxes bad lookGilles Roudiere2017-08-211-1/+1
|
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-1/+1
|
* Add object type hint for docsPoommetee Ketson2017-07-231-1/+1
|
* InputEvent: Renamed "pos" property to "position"Andreas Haas2017-06-031-3/+3
| | | | Make the naming consistent with other classes.
* Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-201-13/+18
| | | | this might cause bugs I haven't found yet..
* Merge pull request #8631 from volzhs/editor-theme-customRémi Verschelde2017-05-201-6/+1
|\ | | | | New customizable editor theme
| * Revert "Add new editor and default theme (WIP)"volzhs2017-05-031-6/+1
| | | | | | | | This reverts commit f045efe007cffb87238ee519b7f33d710814ded7.
* | Implemented scrolling factor for smooth trackpad scrollingtoger52017-05-071-2/+4
|/ | | | | Working platforms platform: OSX, Windows. Support for almost all ui elements, including project list.