summaryrefslogtreecommitdiffstats
path: root/scene/gui/dialogs.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-2/+2
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Renamed toplevel to be top_levelDuroxxigar2020-10-011-2/+2
|
* Fix cancel/OK button order on macOSDaniel Ting2020-07-101-4/+4
| | | | | The macOS platform convention regarding button order is cancel on left, OK on right.
* Add ability to clamp embedded subwindows to parent, fixes #37792Juan Linietsky2020-07-011-0/+1
|
* Make dialogs exclusive by default, fixes #37732Juan Linietsky2020-06-301-1/+4
| | | | Also fix on set_visible, not creating exclusive children as it should.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-7/+14
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-24/+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.
* Fixes leaks when running editorqarmin2020-04-061-1/+0
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-5/+13
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-357/+76
|
* Added a Window node, and made it the scene root.Juan Linietsky2020-03-261-1/+1
| | | | Still a lot of work to do.
* Signals: Port more uses of connect_compatRémi Verschelde2020-02-281-8/+10
| | | | | | | | | Those were problematic as they call a method of their parent class, but callable_mp does not allow that unless it's public. To solve it, we declare a local class that calls the parent class' method, which now needs to be protected to be accessible in the derived class.
* Signals: Manually port most of remaining connect_compat usesRémi Verschelde2020-02-281-0/+5
| | | | | | | | It's tedious work... Some can't be ported as they depend on private or protected methods of different classes, which is not supported by callable_mp (even if it's a class inherited by the current one).
* 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.)
* Clicking backgrd. dimming of editor popup stops input event propagationGil Arasa Verge2020-02-281-1/+3
| | | | | | | | | A click on the dimmed background of a popup in the editor should stop the input event from propagating to the background. This solution reuses the system introduced in commit efc3ffb8, taking advantage of the hide() notifications from the modal where we will set the flag "pass_on_modal_close_click(false)" to stop event handling at the viewport input event handling. The viewport first hides the modal and after marks the input as handled if the flag mentioned above is set. Fixes #36341
* Added StringName as a variant type.Juan Linietsky2020-02-211-1/+1
| | | | Also changed all relevant properties defined manually to StringName.
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-5/+5
| | | | objects and made them default.
* 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.
* Merge pull request #34633 from qarmin/lineedit_signalRémi Verschelde2019-12-311-1/+3
|\ | | | | Don't try to connect "text_entered" signal to nodes other than LineEdit
| * Don't try to connect "text_entered" signal to nodes other than LineEditRafał Mikrut2019-12-271-1/+3
| |
* | Cleans up headers included in editor_node.hHaoyu Qiu2019-12-241-0/+1
|/
* Fix WindowDialog moving when resized from the left/top edgeJames Buck2019-11-241-1/+1
| | | | | | | | get_combined_minimum_size() must be used in order to consider the min size specified by the user when determining how far the left/top edge is allowed to move. Otherwise the dialog may think it can shrink further than it should, causing the right/bottom edge to move when the rect size is fixed in set_size().
* Make the editor dimming even more smarterMichael Alexsander2019-11-021-2/+2
|
* Make the editor dimming smarterMichael Alexsander2019-10-311-3/+9
|
* Add "panel" style to PopupDialogMichael Alexsander2019-10-271-1/+1
|
* FIX: WindowDialog title translationternvein2019-09-301-8/+10
|
* Fix editor dimming being disabled when a dialog is closed even when others ↵Michael Alexsander Silva Dias2019-09-191-2/+3
| | | | are open
* Update WindowDialog title when translation changesMichael Alexsander Silva Dias2019-08-051-14/+25
|
* Add option to enable autowrapping for label inside 'AcceptDialog'Michael Alexsander Silva Dias2019-04-041-2/+12
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* -Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky2018-11-081-1/+1
| | | | -Removed one and zero hints for properties, replaced by default value
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-2/+2
| | | | | | 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.
* 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!
* Fixes close button overlapping window titleBernhard Liebl2017-12-151-3/+10
|
* Improved theme generation, and other fixesDaniel J. Ramirez2017-09-121-1/+1
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Convert Object::cast_to() to the static versionHein-Pieter van Braam2017-08-241-4/+4
| | | | | | | | | | | | Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
* Merge pull request #10319 from neikeq/pr-engine-editor-hintJuan Linietsky2017-08-201-2/+2
|\ | | | | Adds Engine::is_editor_hint() method
| * Removes editor_hint from SceneTreeIgnacio Etcheverry2017-08-191-2/+2
| |
* | Rename localization method to `tr` againRémi Verschelde2017-08-181-1/+1
| | | | | | | | Partial revert of #10380 based on contributor ~~bullying~~ feedback.
* | Merge pull request #10380 from akien-mga/XL_MESSAGERémi Verschelde2017-08-171-1/+1
|\ \ | | | | | | Rename `XL_MESSAGE`/`tr` to `localize`
| * | Rename `XL_MESSAGE` aka `tr` to `localize`Rémi Verschelde2017-08-171-1/+1
| | | | | | | | | | | | | | | Also renames `set_message_translation` to `set_message_localization` for consistency.
* | | Merge pull request #8899 from toger5/BetterFlatStyleboxRémi Verschelde2017-08-161-4/+4
|\ \ \ | |/ / |/| | Better flat stylebox with rounded corners
| * | Adapted godot to the new StyleBoxFlattoger52017-08-151-4/+4
| |/
* / Replace GUI anchor type by a float between 0 and 1Gilles Roudiere2017-08-131-2/+2
|/
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-5/+5
|
* Icons can now be added inside line edits (Search icon).Daniel J. Ramirez2017-07-191-1/+3
| | | | | | Fixed window title bar margins. fixed compilation error
* Added separators using StyleBoxLine, some theme style fixes, added variant iconDaniel J. Ramirez2017-07-181-0/+1
|