summaryrefslogtreecommitdiff
path: root/scene/gui/tab_container.cpp
AgeCommit message (Collapse)Author
2020-06-24Handle gone TabContainer popup nicelyPedro J. Estébanez
2020-06-13Fix TabContainer emitting spurious tab_selected signals when a theme is changedLisandro Lorea
- The repaint code was moved outside of set_current_tab() and to a "_repaint()" private function - _on_theme_changed() will now only call _repaint() and update() This means _on_theme_changed() will do only what it needs (repainting the TabContainer to account for the new theme) fixes #39498
2020-05-21Clarifies 'icon_separation' in TabContainer (instead of 'hseparation')Dominik 'dreamsComeTrue' Jasiński
Fixes: #38911
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
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.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
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.
2020-04-16Merge pull request #37047 from YeldhamDev/tabcontainer_doc_control_fixRémi Verschelde
Fix incorrect TabContainer documentation for 'get_tab_control()'
2020-04-02Replace NULL with nullptrlupoDharkael
2020-03-26Popups are now windows also (broken!)Juan Linietsky
2020-03-14Fix incorrect TabContainer documentation for 'get_tab_control()'Michael Alexsander
2020-02-28Signals: Port connect calls to use callable_mpRémi Verschelde
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.)
2020-02-27Signals: tab_changed now is emitted when it's on scene treeMateo Dev .59
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-11Texture refactorJuan Linietsky
-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
2020-01-30Fix tab container too large when tabs are hiddennathanwfranke
2020-01-01Update copyright statements to 2020Rémi Verschelde
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.
2019-09-22Fix various problems with tab-related iconsMichael Alexsander Silva Dias
2019-08-30Merge pull request #25353 from azagaya/masterRémi Verschelde
Use also invisible tabs to calculate minimum size of tab container
2019-08-30Make tab containers in editor, project settings, and export dialog, to use ↵azagaya
hidden tabs for min size computation.
2019-07-29Translate TabContainer titles, when inherited from node nameFlorian Kothmeier
2019-05-06Fix 'TabContainer' not updating its tab titles when locale is changedMichael Alexsander Silva Dias
2019-05-03Make 'TabContainer' update when icon/title is changedMichael Alexsander Silva Dias
Fixes #28655.
2019-04-29Make buttons that trigger popups have the same scaleMichael Alexsander Silva Dias
2019-04-08Add ability to edit editor feature profilesJuan Linietsky
Allows enabling/disabling parts of the editor and storing/loading profiles for that.
2019-01-24Updates containers minimum size when some constants are modifiedgroud
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
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.
2018-07-05Merge pull request #19498 from guilhermefelipecgs/fix_regressionMax Hilbrunner
Fix "find and replace" initializing with wrong size
2018-06-13Fix "find and replace" initializing with wrong sizeGuilherme Felipe
Fix the code editor outside the allowed limits.
2018-06-12Fix TabContainer not showing tabs on left when resizing.Guilherme Felipe
Fix #19510.
2018-04-08Drag to rearrange Tabs and TabContainerianb96
2018-02-20Keep to show current script when closing all docsvolzhs
also fix error when removing multiple tabs from TabContainer at same frame. like closing multiple docs at once. Fix #16403
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
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.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-11Fix Index p_current=0 error at starting editorvolzhs
2017-10-30Fix crash when click an empty tabs containersanikoyes
2017-10-14tab container arrows don't work when a popup was setsantouits
2017-09-29Vertical alignement (TabContainer menu button)toger5
2017-09-22Remove set_area_as_parent_rect and replace it by ↵Gilles Roudiere
set_anchors_and_margins_preset(PRESET_WIDE)
2017-09-17Merge pull request #10900 from toger5/theme_tab_borderRémi Verschelde
Added border for tabs + container.
2017-09-15Added border for tabs + container.toger5
- moved tabConetent position to be more reasonable. - fixed drawing order to allow those kind of styles.
2017-09-13Fix enums bindingsMaxim Sheronov
Add missed bindings for enums Move some enums to class to have correct output of api.json
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
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/
2017-08-18Rename localization method to `tr` againRémi Verschelde
Partial revert of #10380 based on contributor ~~bullying~~ feedback.
2017-08-17Rename `XL_MESSAGE` aka `tr` to `localize`Rémi Verschelde
Also renames `set_message_translation` to `set_message_localization` for consistency.
2017-08-16Synchronize parameter names in definition and declarationTwistedTwigleg
Fixes #10244.
2017-08-13Replace GUI anchor type by a float between 0 and 1Gilles Roudiere
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-06-04renamed all Rect2.pos to Rect2.positionalexholly