You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
62 lines
1.7 KiB
C++
62 lines
1.7 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/WeakObjectPtr.h"
|
|
#include "Widgets/DeclarativeSyntaxSupport.h"
|
|
#include "Widgets/SCompoundWidget.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "ConfigEditor"
|
|
|
|
class FConfigCacheIni;
|
|
class IDetailsView;
|
|
class STargetPlatformSelector;
|
|
class UConfigHierarchyPropertyView;
|
|
|
|
/*-----------------------------------------------------------------------------
|
|
SConfigEditor
|
|
-----------------------------------------------------------------------------*/
|
|
class SConfigEditor : public SCompoundWidget
|
|
{
|
|
public:
|
|
SLATE_USER_ARGS(SConfigEditor) {}
|
|
SLATE_END_ARGS()
|
|
|
|
//~ Begin SCompoundWidget|SWidget Interface
|
|
virtual void Construct(const FArguments& InArgs, TWeakObjectPtr<UProperty> InEditProperty);
|
|
//~ End SCompoundWidget|SWidget Interface
|
|
|
|
private:
|
|
/**
|
|
* Handle a change of target platform in the Config Editor UI
|
|
*/
|
|
void HandleTargetPlatformChanged();
|
|
|
|
// Panel used to select an available target platform.
|
|
TSharedPtr<class STargetPlatformSelector> TargetPlatformSelection;
|
|
|
|
/**
|
|
* Create the displayable area object for the selected platform
|
|
*/
|
|
void CreateDisplayObjectForSelectedTargetPlatform();
|
|
|
|
private:
|
|
// This is an object we use to create a config hierarchy display for a property
|
|
TWeakObjectPtr<UConfigHierarchyPropertyView> PropHelper;
|
|
|
|
// The display area for the config hierarchy editor.
|
|
TSharedPtr<SWidget> PropertyValueEditor;
|
|
|
|
// We keep a cache of config files for the provided platforms.
|
|
TSharedPtr<FConfigCacheIni> LocalConfigCache;
|
|
|
|
// The bulk of the display of this hierarchy.
|
|
TSharedPtr<IDetailsView> DetailsView;
|
|
|
|
// Keep track of the property we are viewing.
|
|
TWeakObjectPtr<UProperty> EditProperty;
|
|
};
|
|
|
|
#undef LOCTEXT_NAMESPACE
|