Class FZagalaSpecStepDetailsProvider#

Inheritance Relationships#

Base Type#

Class Documentation#

class FZagalaSpecStepDetailsProvider : public FZagalaSpecObjectDetailsProvider#

Details of the step rows (shared context extensions, context extensions and expectations).

The header shows the type of the step and lets the user switch it to another type (see FZagalaSpecStepTypeSwitcher); below it the details view shows every property of the step, so a text step shows its own properties and a native step shows its own. Rows without a step (the “(empty)” placeholder) only show the header, so a step can be created.

IZagalaSpecRowDetailsProvider interface

virtual FName GetId() const override#

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 override#

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

Parameters:

Row – The selected row.

Returns:

True if the provider handles the row.

FZagalaSpecObjectDetailsProvider interface

virtual TSharedRef<SWidget> CreateHeaderWidget(const FZagalaSpecDocumentRow &Row, const FZagalaSpecDetailsProviderContext &Context) const override#

Creates the widget shown above the details view.

The default is an empty widget. Called even when the row has no object, so the header can offer to create one.

Parameters:
  • Row – The selected row.

  • Context – The feature and callbacks of the editor.

Returns:

The header widget.