summaryrefslogtreecommitdiff
path: root/scene/gui/tab_container.cpp
AgeCommit message (Collapse)Author
2021-05-07Fixed bug in tab_container with hidden tabsbesh81
Fix a bug that occour when there are hidden tabs in tab_container. The visualization isn't correct due to missing values in tab_widths array.
2021-04-05Fix crashes in *_input functionsRafał Mikrut
2021-03-23Rename ButtonList enum and members to MouseButtonAaron Franke
2021-03-17Merge pull request #46674 from cmd410/fix-tab-containerRémi Verschelde
Fix TabContainer _get_tab_width for localized node names
2021-03-14Fix stale tab names in TabContainerYuri Sizov
2021-03-04Fix TabContainer _get_tab_widthCrystal Melting Dot
Now it translates node name before calculating tab width
2021-02-14[CTL] Add missing font outline drawing routines and theme constants.bruvzg
2021-02-10Removed _change_notifyreduz
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-02-09Initialize class variables with default values in scene/ [2/2]Rafał Mikrut
2021-01-24Change themes *_color_* to *_*_colorMarcel Admiraal
Changed: font_color_accel -> font_accelerator_color font_color_bg -> font_unselected_color font_color_disabled -> font_disabled_color font_color_fg -> font_selected_color font_color_hover -> font_hover_color font_color_hover_pressed -> font_hover_pressed_color font_color_pressed -> font_pressed_color font_color_readonly -> font_readonly_color font_color_selected -> font_selected_color font_color_shadow -> font_shadow_color font_color_uneditable -> font_uneditable_color icon_color_disabled -> icon_disabled_color icon_color_hover -> icon_hover_color icon_color_hover_pressed -> icon_hover_pressed_color icon_color_normal -> icon_normal_color icon_color_pressed -> icon_pressed_color Also includes: font_outline_modulate -> font_outline_color tab_fg -> tab_selected tab_bg -> tab_unselected
2021-01-12Fix errors when removing non Control node from TabContainerRafał Mikrut
2021-01-01Update copyright statements to 2021Rémi Verschelde
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 🎆
2020-12-23Rename Control margin to offsetMarcel Admiraal
2020-12-13Refresh TextLine buffer when moving tabgongpha
2020-12-10Add option to draw all tabs in frontvolzhs
2020-11-30Fix TabContainer crashesvolzhs
2020-11-26[Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg
use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
2020-11-07Reorganized core/ directory, it was too fatty alreadyreduz
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
2020-10-29Fix crash in TabContainer in case of no content at allvolzhs
2020-10-13Put unselected tabs back in TabContainer controlvolzhs
2020-10-02Updated getters and setters names for toplevelDuroxxigar
2020-10-01Renamed toplevel to be top_levelDuroxxigar
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