Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabContainer should use Tabs instead of reimplementing them #4512

Closed
akien-mga opened this issue May 1, 2016 · 6 comments · Fixed by #58687
Closed

TabContainer should use Tabs instead of reimplementing them #4512

akien-mga opened this issue May 1, 2016 · 6 comments · Fixed by #58687

Comments

@akien-mga
Copy link
Member

As discussed today on IRC [0], TabContainer scene/gui/tab_container.cpp should be modified to rely on Tabs scene/gui/tabs.cpp instead of reimplementing tabs itself.

The Tabs class has grown to be feature-rich (though it could still use some cleanup even after #4506), so it should stay as the sole implementation.

[0] http://godot.eska.me/irc-logs/devel/2016-05-01.log

@StraToN
Copy link
Member

StraToN commented May 2, 2016

Tabs is the class describing only the tab buttons on top of the TabContainer. There is no Container in the Tabs class, simply each tab sends a signal when an action happens on it: tab_changed(int tab_clicked), tab_close(int tab_clicked) and right_button_pressed(int tab_clicked).

Thus, since Tabs buttons should only be used as such (ie. as "simple Button"s), Tabs class may itself have the container. I can take that one.

@akien-mga
Copy link
Member Author

Well I think the idea would be to keep TabContainer, but replace its own tab "buttons" by an instance of Tabs.

@StraToN
Copy link
Member

StraToN commented May 2, 2016

Alright. I'm in ;)

@Anutrix
Copy link
Contributor

Anutrix commented Jul 21, 2019

Any updates?

@YuriSizov
Copy link
Contributor

From the recent discussions it's not clear if we want to keep both, delete one, or make them work together. There is a proposal for removal: godotengine/godot-proposals#2129 There are also several proposals for features in TabContainer that could be solved by a more unified solution.

At any rate, there needs to be a proper proposal now for any change like that. So, closing.

@akien-mga
Copy link
Member Author

akien-mga commented Mar 4, 2022

In the end, this was implemented for 4.0 by #58687.

For the record, this old issue was superseded by the proposal godotengine/godot-proposals#2514 which the above PR implemented.

@akien-mga akien-mga removed the archived label Mar 4, 2022
@akien-mga akien-mga added this to the 4.0 milestone Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants