summaryrefslogtreecommitdiffstats
path: root/scene/gui/tab_bar.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix TabBar initialization issue and add testskit2024-09-201-3/+12
|
* Set auto translate mode for drag previewsHaoyu Qiu2024-09-191-0/+1
| | | | | | | | | | | | | - Controls - `LineEdit`, `TextEdit`: Always disabled since it's dragging user input. - `TabBar`: Use the same auto translate mode as the node. - `RichTextLabel`: Always disable since auto translation is done differently from other controls (selection text you get programmatically is always after auto translation). - Editor - Disable drag preview auto translation if the text is user input, filename, or class name. - Also disabled unexpected auto translation for audio bus effect names.
* Clear TabBar tab close button's rect after it's hiddenkleonc2024-08-041-0/+2
|
* Fix a bunch of orphan StringName errors at ProjectSettings/Editor exitYuri Rubinsky2024-07-091-0/+1
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-1/+1
|
* Fix PropertyListHelper::_get_property returning a valid value even if an ↵Gilles Roudière2024-05-101-0/+1
| | | | | | index is outside the array valid indices Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
* Add tab tooltip textMansur Isaev2024-04-231-1/+28
|
* Add PropertyListHelper in all simple caseskobewi2024-04-111-52/+9
|
* Fix error spam when adding tabs to `TabBar` without deselectA Thousand Ships2024-02-201-4/+5
| | | | | `current` was allowed to be `-1` when deselection was disabled, causing errors in other methods when updating the size.
* Tweak property order in the inspector for TabBarjsjtxietian2024-02-181-3/+13
|
* Fix `TabBar` size when theme changesMounir Tohami2024-02-131-0/+1
|
* Allow tab deselectionkit2024-01-291-31/+79
|
* Update deferred calls to use Callableskobewi2024-01-091-1/+0
|
* TabContainer bottom positionkit2024-01-061-0/+10
|
* Add const references detected by clang-tidyWilson E. Alvarez2023-12-161-2/+2
|
* Remove unnecessary assignmentsWilson E. Alvarez2023-12-131-2/+2
| | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* Merge pull request #83963 from YeldhamDev/try_active_tabs_firstRémi Verschelde2023-10-281-2/+19
|\ | | | | | | Fix disabled tabs being selected when removing the current one
| * Fix disabled tabs being selected when removing the current oneMichael Alexsander2023-10-251-2/+19
| |
* | TabBar save current tabkit2023-10-261-3/+10
|/
* Fix tab dragging issueskit2023-10-221-44/+60
|
* Fix phantom tab right button.Wierdox2023-10-131-0/+2
|
* Merge pull request #81648 from 4d49/fix-tab-metadataRémi Verschelde2023-10-021-5/+0
|\ | | | | | | Remove the equality check for `TabBar.set_tab_metadata`
| * Removes the equality check for `set_tab_metadata`Mansur Isaev2023-09-141-5/+0
| | | | | | | | | | | | Makes the code equivalent to the `Tree.set_metadata` code. Fix: https://github.com/godotengine/godot/issues/81647
* | Make hovered tabs be drawn with the unselected's width at minimumMichael Alexsander2023-09-261-5/+10
| |
* | Allow to focus individual tabs in TabBar/TabContainerArkadiusz Marcin Kołek2023-09-171-3/+88
|/
* Register theme properties with ThemeDBYuri Sizov2023-09-111-33/+30
|
* Fix delay on tab resizing when (un)hovering tabsMichael Alexsander2023-06-271-0/+3
|
* Merge pull request #74632 from davthedev/tabs-hoverRémi Verschelde2023-04-241-1/+11
|\ | | | | | | Add theming support for hovered tabs
| * Add theming support for hovered tabsDavid Giardi2023-04-191-1/+11
| | | | | | | | Tabs can now be styled differently when hovered by the mouse pointer.
* | Make tab's close button responsive to touch tapsFredia Huya-Kouadio2023-04-221-0/+2
| |
* | Add Tab MetadataShadyChibinko2023-04-111-0/+17
|/
* Make icons of scripted and custom classes fit the editor UIYuri Sizov2023-03-311-10/+64
| | | | | | | | | | | Also: - Add an option to limit the icon size in PopupMenu. This is similar to how this works in Tree and TreeItem. - Add the same option to TabBar. - Add a theme constant for Tree, PopupMenu, Button, and TabBar to apply this limit on the control level. Co-authored-by: Daylily-Zeleen <daylily-zeleen@foxmail.com>
* Fix `TabBar` not redrawing on locale changeDanil Alexeev2023-02-151-0/+2
|
* Expose TabBar::clear_tabs to GDScriptStanislav Labzyuk2023-01-081-0/+1
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | 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".
* Fix errors when `TabBar` is emptyMichael Alexsander2022-12-271-9/+22
|
* Code simplifications found by cppcheckMarkus Sauermann2022-11-211-3/+0
| | | | | | | They are based on: - Boolean arithmetic simplifications - setting variables that are not accessed - constant variables
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-2/+2
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Add a lifecycle method for manual theme item caching to ControlYuri Sizov2022-09-011-112/+92
|
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-43/+43
| | | | | | | | | | 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`.
* Add some codes, returnes directly if the value is not changed.风青山2022-08-231-0/+40
| | | | Avoid executing the following value-changed logics if the value does not really change.
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-46/+1
|
* Add suffixes to all nodes and resourcesFireForge2022-06-111-1/+1
|
* Reset buttons_visible to false while tabs is empty in TabBar::_update_cacheRindbee2022-05-281-0/+1
|
* Rename theme properties to include underscoresFireForge2022-04-231-3/+3
| | | | | | | | | | | | | | - 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
* Merge pull request #59336 from YeldhamDev/where_we_dropping_boysRémi Verschelde2022-03-261-11/+89
|\
| * Add visual marker when dragging and dropping tabsMichael Alexsander2022-03-211-11/+89
| |
* | Fix `tabs_rearrange_group` property being exposed as a `bool` instead of a `int`Michael Alexsander2022-03-191-1/+1
|/
* Replace `TabBar`'s `min_width` with `max_tab_width` and expose itMichael Alexsander2022-03-091-46/+35
|
* Fix regressions with nameless and icon-only tabsMichael Alexsander2022-03-061-3/+3
|