Class FZagalaSpecFeatureEditorSelection#

Class Documentation#

class FZagalaSpecFeatureEditorSelection#

Called when the selected row changes.

The row is invalid if the selection was cleared. The row that is selected in the feature editor. It is the only link between the document tab and the details tab: the document writes the selection, the details tab listens to it.

When the document is rebuilt (after an edit, an undo or a step type switch) the rows are new objects, so RestoreSelection looks for the row that stands for the same thing in the new rows.

Public Functions

void SetSelectedRow(const FZagalaSpecDocumentRowPtr &Row)#

Selects a row.

Does nothing (and does not broadcast) if the row is already selected.

Parameters:

Row – The row to select; invalid to clear the selection.

FZagalaSpecDocumentRowPtr GetSelectedRow() const#

Returns the selected row.

Returns:

The selected row; invalid if nothing is selected.

void RestoreSelection(const TArray<FZagalaSpecDocumentRowPtr> &NewRows)#

Selects, in a rebuilt list of rows, the row that stands for the previously selected one:

  1. a row of the same type that details the same object;

  2. otherwise a row of the same type at the same location of the same array (e.g. a step that was replaced);

  3. otherwise the first row. If the matching row stands for exactly the same thing as the selected one (same type, object and array location), it silently replaces the old row and OnSelectedRowChanged is not broadcast.

Parameters:

NewRows – The rows of the rebuilt document.

Public Members

FZagalaSpecOnSelectedRowChanged OnSelectedRowChanged#

Broadcast when the selected row changes.