Class SZagalaSpecFeatureDocumentView#

Nested Relationships#

Nested Types#

Inheritance Relationships#

Base Type#

  • public SCompoundWidget

Class Documentation#

class SZagalaSpecFeatureDocumentView : public SCompoundWidget#

Called when the user selects a row of the document.

Shows the rows of a feature document as a list that looks like the text of an .zagalaspec file. Every row is its own widget (created by the renderer registered for its row type), so a row can show more than text. Selecting a row raises OnRowSelected; rows with the same section key as the selected row are highlighted too. Spacer rows cannot be selected. The view is read-only: edits happen in the details panel.

Public Functions

void Construct(const FArguments &InArgs)#

Builds the widget.

Parameters:

InArgs – The slate arguments.

void SetRows(const TArray<FZagalaSpecDocumentRowPtr> &InRows)#

Replaces the rows of the document.

The selection is cleared (without raising OnRowSelected); call SetSelectedRow afterwards.

Parameters:

InRows – The new rows.

const TArray<FZagalaSpecDocumentRowPtr> &GetRows() const#

Returns the rows that are shown.

Returns:

The rows of the document.

void SetSelectedRow(const FZagalaSpecDocumentRowPtr &Row)#

Selects a row without raising OnRowSelected.

Spacer rows and rows that are not in the document are ignored.

Parameters:

Row – The row to select.

FZagalaSpecDocumentRowPtr GetSelectedRow() const#

Returns the selected row.

Returns:

The selected row; invalid if nothing is selected.

Public Static Attributes

static float IndentWidth = 16.f#

Width of one indentation level.