Class IZagalaSpecRowDetailsProvider#

Inheritance Relationships#

Derived Types#

Class Documentation#

class IZagalaSpecRowDetailsProvider#

Creates the widget that the details panel shows for a selected document row.

Providers are registered in a FZagalaSpecRowDetailsProviderRegistry; the registry picks the provider for each row, so what the panel shows for a kind of row can be replaced or extended without touching the other kinds.

Subclassed by FZagalaSpecEmptyDetailsProvider, FZagalaSpecObjectDetailsProvider

Public Functions

virtual ~IZagalaSpecRowDetailsProvider() = default#
virtual FName GetId() const = 0#

Identifies the provider inside a registry.

Registering a provider with an id that is already used replaces the old one.

Returns:

The provider id.

virtual bool CanProvide(const FZagalaSpecDocumentRow &Row) const = 0#

Checks whether this provider can create the details of a row.

Parameters:

Row – The selected row.

Returns:

True if the provider handles the row.

virtual TSharedRef<SWidget> CreateDetailsWidget(const FZagalaSpecDocumentRow &Row, const FZagalaSpecDetailsProviderContext &Context) const = 0#

Creates the details widget of a row.

Only called for rows where CanProvide returned true.

Parameters:
  • Row – The selected row.

  • Context – The feature and callbacks of the editor.

Returns:

The widget to show in the details panel.