Native class
SGBANewDataTableWindowContent#
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#
-
private
Methods#
-
publicvoidConstruct(const FArguments& InArgs,
const TWeakObjectPtr<UBlueprint>& InBlueprintConstructs this widget with InArgs
-
static FStringGenerateCSVFromBlueprintAttributes(const TWeakObjectPtr<UBlueprint>& InBlueprint
-
inline
-
privatevoidBuildDataColumnsAndRows(const UDataTable* InDataTable
Fills up AvailableColumns / AvailableRows and builds up ColumnNamesHeaderRow columns, computing widths in the process
-
floatCalculateColumnWidth(const float InInitialValue,
const ECalculateColumnType InColumnType -
voidCloseDialog()
Closes this dialog
-
FTextGetAssetNameText() const
Gets the name to display in the asset name box
-
FTextGetNameErrorLabelText() const
Gets the text to display in the name error label
-
EVisibilityGetNameErrorLabelVisibility() const
Gets the visibility of the name error label
-
FTextGetNameWarningLabelText() const
Gets the text to display in the name warning label
-
EVisibilityGetNameWarningLabelVisibility() const
Gets the visibility of the name warning label
-
FStringGetObjectPathForSave(const bool bInIsLongPath = true
-
FTextGetPathNameText() const
Gets the name to display in the path text block
-
voidHandleAssetNameTextCommitted(const FText& InText,
ETextCommit::Type InCommitTypeFired when the asset name box text is committed
-
voidHandleBlueprintChanged(UBlueprint* InBlueprint
-
voidHandleModelPropertyChanged(const FString& InPropertyChanged
-
voidHandlePathSelected(const FString& InPath
Updates view model whenever a new path is selected
-
boolIsConfirmButtonEnabled() const
Determines if the confirm button (e.g. Open/Save) is enabled.
-
TSharedRef<ITableRow>MakeRowWidget(FDataTableEditorRowListViewDataPtr InRowDataPtr,
const TSharedRef<STableViewBase>& OwnerTableMake the widget for a row entry in the data table row list view
-
FReply
Handler for when the cancel button is clicked
-
FReply
Handler for when the confirm button (e.g. Open/Save) is clicked
-
void
-
void
-
voidSetError(const FText& InErrorText
-
voidSetWarning(const FText& InWarningText
-
void
-
publicvirtual
Fields#
-
publicstatic const FName RowNameColumnId
The column id for the row name list view column
-
static const FName RowNumberColumnId
The column id for the row number list view column
-
privateTArray<FDataTableEditorColumnHeaderDataPtr> AvailableColumns
Array of the columns that are available for editing
-
TArray<FDataTableEditorRowListViewDataPtr> AvailableRows
Array of the rows that are available for editing
-
bool bLastInputValidityCheckSuccessful = true
True if the last validity check returned that the class name/path is valid for creation
-
bool bLastInputValidityWarningSuccessful = true
-
TWeakObjectPtr<UBlueprint> Blueprint
Weak pointer to the UBlueprint we're basing the model / widget on
-
TSharedPtr<SListView<FDataTableEditorRowListViewDataPtr>> CellsListView
List view responsible for showing the rows in VisibleRows for each entry in AvailableColumns
-
TSharedPtr<SHeaderRow> ColumnNamesHeaderRow
Header row containing entries for each column in AvailableColumns
-
TSharedPtr<SWarningOrErrorBox> ErrorBox
Error box widget
-
FText LastInputValidityErrorText
The error text from the last validity check
-
TSharedPtr<SEditableTextBox> NameEditableText
The name box. Only used in save dialogs.
-
TSharedPtr<SPathPicker> PathPicker
Path Picker used by the dialog
-
TSharedPtr<STextBlock> PathText
The path box.
-
float RowNameColumnWidth = 0.f
Width of the row name column
-
float RowNumberColumnWidth = 0.f
Width of the row number column
-
TSharedPtr<FNewDataTableWindowViewModel> ViewModel
View model for this widget
-
TSharedPtr<SWarningOrErrorBox> WarningBox
Error box widget
-
TSharedPtr<SWidgetSwitcher> WarningOrErrorSwitcher
Widget switcher to display either warn or error box