Class IZagalaSpecFeatureEditorTabFactory#

Inheritance Relationships#

Derived Types#

Class Documentation#

class IZagalaSpecFeatureEditorTabFactory#

Creates one tab of the feature editor.

Tab factories are registered in a FZagalaSpecFeatureEditorTabRegistry, so a tab can be added, replaced or removed without touching the toolkit or the other tabs.

Subclassed by FZagalaSpecDetailsTabFactory, FZagalaSpecDocumentTabFactory

Public Functions

virtual ~IZagalaSpecFeatureEditorTabFactory() = default#
virtual FName GetTabId() const = 0#

Identifies the tab.

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

Returns:

The tab id (see ZagalaSpecFeatureEditorTabIds for the default ones).

virtual FText GetDisplayName() const = 0#

Name shown in the tab and in the Window menu.

Returns:

The display name.

virtual FText GetTooltipText() const = 0#

Tooltip shown in the Window menu.

Returns:

The tooltip.

virtual TSharedRef<SDockTab> SpawnTab(const TSharedRef<FZagalaSpecFeatureEditorContext> &Context, const FSpawnTabArgs &Args) const = 0#

Creates the tab.

Parameters:
  • Context – The state shared by the tabs of the editor.

  • Args – The spawn arguments from the tab manager.

Returns:

The new tab.