summaryrefslogtreecommitdiff
path: root/scene/gui/tab_container.cpp
AgeCommit message (Collapse)Author
2023-01-14Remove set_drag_forwarding_compat()kobewi
2023-01-10Change set_drag_forwarding() to use callables.Juan Linietsky
* This solution is much cleaner than the one in 3.x thanks to the use of callables. * Works without issues in any language (no need to worry about camel or snake case). * Editor code uses a compatibility function (too much work to redo). Fixes #59899
2023-01-09Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky
* Remove unused `EditorPropertyMember` and related hints, previouly used by VisualScript. Such logic should be implemented in the VS module itself. * As the above broke compatibility with the VS module, clean up the other hacks that were still in core in support of VisualScript. * `PROPERTY_USAGE_INTERNATIONALIZED` was only used in Object's `get_translatable_strings()`, which is a legacy function not used anywhere. So both are removed. * Reordered some usage flags after the above removal to minimize the diff. * General clean up. Fixes #30203. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-01-05One Copyright Update to rule them allRémi Verschelde
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".
2022-10-27Fix problems with `tab_changed` signal when removing multiple tabs at onceMichael Alexsander
2022-09-18Make the inner TabBar in a TabContainer behave as if it were in a ContainerRindbee
2022-09-18Fix minimum size calculation for TabContainerRindbee
2022-09-01Add a lifecycle method for manual theme item caching to ControlYuri Sizov
2022-08-30Merge pull request #65042 from YuriSizov/editor-docks-tabbar-bgRémi Verschelde
2022-08-29Add background to TabContainer's tabbar and editor docksYuri Sizov
2022-08-29Rename `CanvasItem.update()` to `queue_redraw()`Micky
Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
2022-08-23Add some codes, returnes directly if the value is not changed.风青山
Avoid executing the following value-changed logics if the value does not really change.
2022-07-18Rename Control PRESET_WIDE to PRESET_FULL_RECTFireForge
2022-07-18Fix getting outdated tab controlsRindbee
2022-06-23repaint tab container when changing tab visibilityNathan Franke
2022-05-06Cleanup metadata usagekobewi
2022-04-25Fix font_size not working in TabContainerRindbee
2022-04-23Rename theme properties to include underscoresFireForge
- check_vadjust -> check_v_adjust - close_h_ofs -> close_h_offset - close_v_ofs -> close_v_offset - commentfocus -> comment_focus - hseparation -> h_separation - ofs -> offset - selectedframe -> selected_frame - state_machine_selectedframe -> state_machine_selected_frame - table_hseparation -> table_h_separation - table_vseparation -> table_v_separation - vseparation -> v_separation
2022-04-04Add action map editor for OpenXRBastiaan Olij
2022-03-31Small fixes for `TabContainer`Michael Alexsander
2022-03-21Add visual marker when dragging and dropping tabsMichael Alexsander
2022-03-08Merge pull request #58850 from YeldhamDev/more_tab_regressionsRémi Verschelde
2022-03-08Fix crash with all_tabs_in_frontPaweł Fertyk
Fixes #58790.
2022-03-06Fix regressions with nameless and icon-only tabsMichael Alexsander
2022-03-05Change tabs_rearrange_group to propertykobewi
2022-03-04Fix renaming `TabContainer` children not updating tab names when outside the ↵Michael Alexsander
tree
2022-03-03Make `TabContainer` use `TabBar` internallyMichael Alexsander
2022-02-15Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde
2022-02-10Reorganize inspector layout workflow for Control nodesYuri Sizov
2022-02-06Add missing SNAME macro optimization in some function callsjmb462
2022-01-05Merge pull request #56206 from ↵Rémi Verschelde
KoBeWi/random_call_deferred_to_the_rescue_once_again
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-12-23Fix TabContainer not setting layout immediatelykobewi
2021-12-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-12-09align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke
2021-12-06Rename minimum_size_changed() methodkobewi
2021-11-12Use "enum class" for input enumsAaron Franke
2021-09-25Merge pull request #53049 from AnilBK/dont-construct-2Rémi Verschelde
2021-09-25Construct values only when necessary.Anilforextra
2021-09-24Expose `TabContainer`'s tab hidding for scriptsMichael Alexsander
2021-09-09Removed unused Ref<Font> font variablesMatthew Newall
2021-09-07Merge pull request #52050 from nobuyukinyuu/bind-get-tab-idx-at-point-40Gilles Roudière
Bind TabContainer::get_tab_idx_at_point() to ClassDB
2021-09-01TabContainer Fix drawing current tab when it's disabledkleonc
2021-08-29Bind TabContainer::get_tab_idx_at_point() to ClassDBnobuyuki_nyuu
2021-08-28Add support for internal nodeskobewi
2021-08-23Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz
* `_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.
2021-08-04TabContainer: Fix error on removing top-level Control child, Remove _get_tab ↵kleonc
method
2021-08-02TabContainer Fix moving dropped tab at incorrect child indexkleonc
2021-07-29Add `auto_translate` toggle for automatic translationMichael Alexsander
2021-07-18Optimize StringName usagereduz
* Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.