2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-10-14 22:50:06 -04:00
|
|
|
|
|
|
|
|
#include "DetailCustomizationsPrivatePCH.h"
|
|
|
|
|
|
|
|
|
|
#include "CurveTableCustomization.h"
|
|
|
|
|
#include "SSearchBox.h"
|
|
|
|
|
|
|
|
|
|
TSharedRef<SWidget> FCurveTableCustomizationLayout::GetListContent()
|
|
|
|
|
{
|
|
|
|
|
SAssignNew(RowNameComboListView, SListView<TSharedPtr<FString> >)
|
|
|
|
|
.ListItemsSource(&RowNames)
|
|
|
|
|
.OnSelectionChanged(this, &FCurveTableCustomizationLayout::OnSelectionChanged)
|
|
|
|
|
.OnGenerateRow(this, &FCurveTableCustomizationLayout::HandleRowNameComboBoxGenarateWidget)
|
|
|
|
|
.SelectionMode(ESelectionMode::Single);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (CurrentSelectedItem.IsValid())
|
|
|
|
|
{
|
|
|
|
|
RowNameComboListView->SetSelection(CurrentSelectedItem);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return SNew(SVerticalBox)
|
|
|
|
|
+ SVerticalBox::Slot()
|
|
|
|
|
.AutoHeight()
|
|
|
|
|
[
|
|
|
|
|
SNew(SSearchBox)
|
|
|
|
|
.OnTextChanged(this, &FCurveTableCustomizationLayout::OnFilterTextChanged)
|
|
|
|
|
]
|
|
|
|
|
+ SVerticalBox::Slot()
|
|
|
|
|
.FillHeight(1.f)
|
|
|
|
|
[
|
|
|
|
|
RowNameComboListView.ToSharedRef()
|
|
|
|
|
];
|
|
|
|
|
}
|