2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-04-02 18:09:23 -04:00
|
|
|
|
|
|
|
|
#include "DeviceProfileEditorPCH.h"
|
2014-05-29 17:11:10 -04:00
|
|
|
#include "DeviceProfiles/DeviceProfile.h"
|
2014-04-02 18:09:23 -04:00
|
|
|
#include "PropertyEditorModule.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "DeviceProfileEditorSingleProfileView"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SDeviceProfileEditorSingleProfileView::Construct(const FArguments& InArgs, TWeakObjectPtr< UDeviceProfile > InDeviceProfileToView)
|
|
|
|
|
{
|
|
|
|
|
EditingProfile = InDeviceProfileToView;
|
|
|
|
|
|
|
|
|
|
// initialize settings view
|
|
|
|
|
FDetailsViewArgs DetailsViewArgs;
|
|
|
|
|
{
|
|
|
|
|
DetailsViewArgs.bAllowSearch = false;
|
|
|
|
|
DetailsViewArgs.bSearchInitialKeyFocus = false;
|
|
|
|
|
DetailsViewArgs.bHideSelectionTip = true;
|
|
|
|
|
DetailsViewArgs.bLockable = false;
|
2015-01-26 17:14:50 -05:00
|
|
|
DetailsViewArgs.NameAreaSettings = FDetailsViewArgs::HideNameArea;
|
2014-04-02 18:09:23 -04:00
|
|
|
DetailsViewArgs.bUpdatesFromSelection = false;
|
|
|
|
|
DetailsViewArgs.bShowOptions = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SettingsView = FModuleManager::GetModuleChecked<FPropertyEditorModule>("PropertyEditor").CreateDetailView(DetailsViewArgs);
|
|
|
|
|
SettingsView->SetObject(EditingProfile.Get());
|
|
|
|
|
|
|
|
|
|
ChildSlot
|
|
|
|
|
[
|
|
|
|
|
SNew(SBorder)
|
|
|
|
|
.BorderImage(FEditorStyle::GetBrush("NoBorder"))
|
|
|
|
|
[
|
|
|
|
|
SettingsView.ToSharedRef()
|
|
|
|
|
]
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2014-09-21 20:35:48 -04:00
|
|
|
#undef LOCTEXT_NAMESPACE
|