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

Reorganize project manager code #87266

Merged

Conversation

YuriSizov
Copy link
Contributor

@YuriSizov YuriSizov commented Jan 16, 2024

Highlights

  • Extract individual components to their own files.
  • Improve order of declarations and definitions within those files.
  • Some insignificant naming cleanup.

Note that ProjectDialog is only extracted without any further touchup, as there is an upcoming PR touching on it, #56420. I wanted to wait for @nathanfranke to finish his first, but it's been a few weeks, so I settled for making the changes as simple to adapt to as possible.

There are going to be some more exciting PRs based on this one in the near future.

@YuriSizov YuriSizov added this to the 4.3 milestone Jan 16, 2024
@YuriSizov YuriSizov requested a review from a team as a code owner January 16, 2024 18:55
- Extract individual components to their own files.
- Improve order of declarations and definitions within those files.
- ProjectDialog is only extracted as there are upcoming
PRs touching on it.
@YuriSizov YuriSizov force-pushed the pm-gets-a-chris-hemsworth-treatment branch from 1306d8b to 691450b Compare January 16, 2024 18:57
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

In a follow-up, we could consider moving project_manager.cpp to the subfolder, even though the repeated name is a bit awkward.

On the other hand, we have this pattern in other platforms of having a subfolder with a similar name as a top-level class, e.g. servers/rendering_server.h/servers/rendering/*, so maybe it's fine as is.

@YuriSizov
Copy link
Contributor Author

In a follow-up, we could consider moving project_manager.cpp to the subfolder, even though the repeated name is a bit awkward.

I did consider it, but since it's the entry point, same as editor_node.h/cpp, I felt it made more sense at the editor/ level. Though this can change if/when I do the entrypoint reorganization that we've discussed. So maybe then!

@akien-mga akien-mga merged commit f3fd668 into godotengine:master Jan 18, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov deleted the pm-gets-a-chris-hemsworth-treatment branch January 18, 2024 15:37
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