Central registry for editor content and services. More...
Namespaces | |
| namespace | Context |
| Global context for accessing shared resources. | |
| namespace | Editors |
| Registry for Editors (full workspace tabs). | |
| namespace | Panels |
| Registry for editor panels. | |
| namespace | Settings |
| Registry for User Settings. Allows components to declare their settings statically. | |
| namespace | Shortcuts |
| Registry for Keyboard Shortcuts. Allows components to declare their shortcuts statically. | |
Central registry for editor content and services.
ContentRegistry provides a static, namespace-based API for accessing shared resources across the editor. This pattern is inspired by ImHex's ContentRegistry and provides a cleaner alternative to passing dependencies through constructors.
Usage: // Set context (usually in EditorManager::Initialize) ContentRegistry::Context::SetRom(rom_);
// Access from anywhere auto* rom = ContentRegistry::Context::rom();
Thread Safety: All operations are protected by mutex for thread-safe access.