Class FZagalaSpecStepTypeSwitcher#
Defined in File ZagalaSpecStepTypeSwitcher.h
Class Documentation#
-
class FZagalaSpecStepTypeSwitcher#
Replaces a step of a feature or scenario with a new step of another type, keeping its position in the array.
The change is one undoable transaction and the owner’s PostEditChangeProperty runs, so listeners react as for any other edit.
Public Static Functions
-
static UObject *Switch(const FZagalaSpecDocumentRowOwnership &Ownership, UClass *NewClass)#
Replaces the step at the location with a new object of NewClass.
Works on empty elements too. The old step is left untouched, only the array element changes.
- Parameters:
Ownership – Where the step lives (owner, array name and index).
NewClass – The class of the new step; must not be abstract.
- Returns:
The new step; null (and nothing is changed) if the location is not valid, the class is not valid or it cannot be assigned to the array.
-
static UObject *Switch(const FZagalaSpecDocumentRowOwnership &Ownership, UClass *NewClass)#