Native class

SGBANewDataTableWindowContent#

  • Declared in "Editor/Slate/SGBANewDataTableWindowContent.h"
class SGBANewDataTableWindowContent : public SCompoundWidget

Widget to provide an UI to choose a content browser path to generate a new DataTable (FAttributeMetaData) based on the properties of a given Attribute Set Blueprint.

Internal enums#

Methods#

  • public
    • Construct&
    void
    Construct(​
    const FArguments& InArgs,
    const TWeakObjectPtr<UBlueprint>& InBlueprint
    )

    Constructs this widget with InArgs

    • GenerateCSVFromBlueprintAttributes&
    static FString
    GenerateCSVFromBlueprintAttributes(​
    const TWeakObjectPtr<UBlueprint>& InBlueprint
    )
    • SLATE_BEGIN_ARGS&
  • private
    • BuildDataColumnsAndRows&
    void
    BuildDataColumnsAndRows(​
    const UDataTable* InDataTable
    )

    Fills up AvailableColumns / AvailableRows and builds up ColumnNamesHeaderRow columns, computing widths in the process

    • CalculateColumnWidth&
    float
    CalculateColumnWidth(​
    const float InInitialValue,
    const ECalculateColumnType InColumnType
    )
    • CloseDialog&
    void

    Closes this dialog

    • GetAssetNameText&
    FText
    GetAssetNameText(​) const

    Gets the name to display in the asset name box

    • GetNameErrorLabelText&
    FText

    Gets the text to display in the name error label

    • GetNameErrorLabelVisibility&
    EVisibility

    Gets the visibility of the name error label

    • GetNameWarningLabelText&
    FText

    Gets the text to display in the name warning label

    • GetNameWarningLabelVisibility&
    EVisibility

    Gets the visibility of the name warning label

    • GetObjectPathForSave&
    FString
    GetObjectPathForSave(​
    const bool bInIsLongPath = true
    ) const
    • GetPathNameText&
    FText
    GetPathNameText(​) const

    Gets the name to display in the path text block

    • HandleAssetNameTextCommitted&
    void
    HandleAssetNameTextCommitted(​
    const FText& InText,
    ETextCommit::Type InCommitType
    ) const

    Fired when the asset name box text is committed

    • HandleBlueprintChanged&
    void
    HandleBlueprintChanged(​
    UBlueprint* InBlueprint
    )
    • HandleModelPropertyChanged&
    void
    HandleModelPropertyChanged(​
    const FString& InPropertyChanged
    )
    • HandlePathSelected&
    void
    HandlePathSelected(​
    const FString& InPath
    ) const

    Updates view model whenever a new path is selected

    • IsConfirmButtonEnabled&
    bool

    Determines if the confirm button (e.g. Open/Save) is enabled.

    • MakeRowWidget&
    TSharedRef<ITableRow>
    MakeRowWidget(​
    FDataTableEditorRowListViewDataPtr InRowDataPtr,
    const TSharedRef<STableViewBase>& OwnerTable
    )

    Make the widget for a row entry in the data table row list view

    • OnCancelClicked&
    FReply

    Handler for when the cancel button is clicked

    • OnConfirmClicked&
    FReply

    Handler for when the confirm button (e.g. Open/Save) is clicked

    • RefreshRowNameColumnWidth&
    • RefreshRowNumberColumnWidth&
    • SetError&
    void
    SetError(​
    const FText& InErrorText
    )
    • SetWarning&
    void
    SetWarning(​
    const FText& InWarningText
    )
    • UpdateInputValidity&
  • public
    • ~SGBANewDataTableWindowContent&

Fields#

  • public
    • RowNameColumnId&
    static const FName RowNameColumnId

    The column id for the row name list view column

    • RowNumberColumnId&
    static const FName RowNumberColumnId

    The column id for the row number list view column

  • private
    • AvailableColumns&
    TArray<FDataTableEditorColumnHeaderDataPtr> AvailableColumns

    Array of the columns that are available for editing

    • AvailableRows&
    TArray<FDataTableEditorRowListViewDataPtr> AvailableRows

    Array of the rows that are available for editing

    • bLastInputValidityCheckSuccessful&
    bool bLastInputValidityCheckSuccessful = true

    True if the last validity check returned that the class name/path is valid for creation

    • bLastInputValidityWarningSuccessful&
    bool bLastInputValidityWarningSuccessful = true
    • Blueprint&
    TWeakObjectPtr<UBlueprint> Blueprint

    Weak pointer to the UBlueprint we're basing the model / widget on

    • CellsListView&
    TSharedPtr<SListView<FDataTableEditorRowListViewDataPtr>> CellsListView

    List view responsible for showing the rows in VisibleRows for each entry in AvailableColumns

    • ColumnNamesHeaderRow&
    TSharedPtr<SHeaderRow> ColumnNamesHeaderRow

    Header row containing entries for each column in AvailableColumns

    • ErrorBox&
    TSharedPtr<SWarningOrErrorBox> ErrorBox

    Error box widget

    • LastInputValidityErrorText&
    FText LastInputValidityErrorText

    The error text from the last validity check

    • NameEditableText&
    TSharedPtr<SEditableTextBox> NameEditableText

    The name box. Only used in save dialogs.

    • PathPicker&
    TSharedPtr<SPathPicker> PathPicker

    Path Picker used by the dialog

    • PathText&
    TSharedPtr<STextBlock> PathText

    The path box.

    • RowNameColumnWidth&
    float RowNameColumnWidth = 0.f

    Width of the row name column

    • RowNumberColumnWidth&
    float RowNumberColumnWidth = 0.f

    Width of the row number column

    • ViewModel&
    TSharedPtr<FNewDataTableWindowViewModel> ViewModel

    View model for this widget

    • WarningBox&
    TSharedPtr<SWarningOrErrorBox> WarningBox

    Error box widget

    • WarningOrErrorSwitcher&
    TSharedPtr<SWidgetSwitcher> WarningOrErrorSwitcher

    Widget switcher to display either warn or error box