Class FZagalaSpecRowDetailsProviderRegistry#
Defined in File ZagalaSpecRowDetailsProviderRegistry.h
Nested Relationships#
Nested Types#
Class Documentation#
-
class FZagalaSpecRowDetailsProviderRegistry#
The list of details providers of the editor.
For every selected row the registry returns the provider with the highest priority that can provide the row; when priorities are equal the provider registered last wins.
The default registry (CreateDefaultRegistry) has one provider per kind of row. Other modules can add or replace providers through FZagalaSpecEditorModule::GetDetailsProviderRegistry().
Public Functions
Adds a provider.
If a provider with the same id is already registered it is replaced.
- Parameters:
Provider – The provider to add.
Priority – Providers with a higher priority are asked first. The default providers use 0 (and the catch-all uses -100).
-
bool Unregister(const FName ProviderId)#
Removes a provider.
- Parameters:
ProviderId – The id of the provider to remove.
- Returns:
True if the provider was registered.
-
TSharedPtr<IZagalaSpecRowDetailsProvider> FindProvider(const FZagalaSpecDocumentRow &Row) const#
Finds the provider for a row.
- Parameters:
Row – The selected row.
- Returns:
The provider with the highest priority that can provide the row; invalid if none can.
-
TArray<FName> GetProviderIds() const#
Returns the ids of the registered providers, in registration order.
- Returns:
The provider ids.
Public Static Functions
-
static TSharedRef<FZagalaSpecRowDetailsProviderRegistry> CreateDefaultRegistry()#
Creates the registry with the default providers: feature rows, scenario rows, step rows and a catch-all that shows nothing.
- Returns:
The default registry.