X Tutup
Skip to content

Add EditorDock's own DockSlot enum#114366

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
KoBeWi:uh
Jan 7, 2026
Merged

Add EditorDock's own DockSlot enum#114366
akien-mga merged 1 commit intogodotengine:masterfrom
KoBeWi:uh

Conversation

@KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Dec 27, 2025

When EditorDock was added, it was using DockSlot from EditorPlugin. It was done for legacy reasons and to avoid duplicating that enum. However it doesn't really make sense for EditorDock to use enum from EditorPlugin, the old one should just get deprecated.

This PR introduces DockSlot in EditorDock. The default_slot property was changed to use this enum (it's a new API in 4.6, so only affects plugins that have upgraded to the new system). Hopefully C++20 will allow to make the enums less duplicated (there is some new enum feature that might make it possible).

I'm also thinking about removing DockConstants. They were added to avoid some cross-includes (I think?), but no such thing exists anymore so it's somewhat redundant.

EDIT:
The PR also has some include-related changes. EditorDock no longer needs to include EditorPlugin, and I also removed EditorDockManager includes from some headers.

@KoBeWi KoBeWi added this to the 4.6 milestone Dec 27, 2025
@KoBeWi KoBeWi requested review from a team as code owners December 27, 2025 10:47
@KoBeWi KoBeWi requested review from a team as code owners December 27, 2025 10:47
@KoBeWi KoBeWi requested a review from a team December 27, 2025 10:47
@KoBeWi KoBeWi requested a review from a team as a code owner December 27, 2025 10:47
@KoBeWi KoBeWi requested a review from a team December 27, 2025 10:47
@KoBeWi KoBeWi requested review from a team as code owners December 27, 2025 10:47
@KoBeWi KoBeWi removed request for a team December 27, 2025 10:48
@KoBeWi KoBeWi force-pushed the uh branch 4 times, most recently from e96ddfb to 91955ab Compare January 2, 2026 09:09
@KoBeWi KoBeWi requested a review from a team as a code owner January 2, 2026 12:16
@akien-mga
Copy link
Member

I'm also thinking about removing DockConstants. They were added to avoid some cross-includes (I think?), but no such thing exists anymore so it's somewhat redundant.

Yeah this probably makes sense to remove and have both enums in EditorDock.

@KoBeWi
Copy link
Member Author

KoBeWi commented Jan 6, 2026

Should I make this change in this PR? It's internal only, so it can be done at any time.

@akien-mga
Copy link
Member

Can be done in a follow-up I guess, there will likely be some include churn.

@akien-mga akien-mga merged commit 9009a66 into godotengine:master Jan 7, 2026
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the uh branch January 7, 2026 02:42
@KoBeWi KoBeWi mentioned this pull request Jan 8, 2026
rivie13 pushed a commit to rivie13/Phoenix-Agentic-Engine that referenced this pull request Feb 16, 2026
Add EditorDock's own DockSlot enum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup