You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
48 lines
1.6 KiB
C++
48 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "IDetailCustomization.h"
|
|
#include "Types/SlateEnums.h"
|
|
#include "Layout/Visibility.h"
|
|
|
|
class IDetailLayoutBuilder;
|
|
class IPropertyHandle;
|
|
class SEditableTextBox;
|
|
class UAssetViewerSettings;
|
|
class SSettingsEditorCheckoutNotice;
|
|
|
|
class FAssetViewerSettingsCustomization : public IDetailCustomization
|
|
{
|
|
public:
|
|
/** Makes a new instance of this detail layout class for a specific detail view requesting it */
|
|
static TSharedRef<IDetailCustomization> MakeInstance();
|
|
|
|
// IDetailCustomization interface
|
|
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;
|
|
// End of IDetailCustomization interface
|
|
protected:
|
|
// Callbacks for customized SEditableTextBox
|
|
FText OnGetProfileName() const;
|
|
void OnProfileNameChanged(const FText& InNewText);
|
|
void OnProfileNameCommitted(const FText& InNewText, ETextCommit::Type InTextCommit);
|
|
|
|
// Check whether or not the given profile name is valid by cross-referencing it with existing names
|
|
const bool IsProfileNameValid(const FString& NewName);
|
|
bool CanSetSharedProfile() const;
|
|
EVisibility ShowFileWatcherWidget() const;
|
|
FString SharedProfileConfigFilePath() const;
|
|
private:
|
|
// Customized name edit text box used for the profile name
|
|
TSharedPtr<SEditableTextBox> NameEditTextBox;
|
|
// Cached data
|
|
TSharedPtr<IPropertyHandle> NameProperty;
|
|
/** Watcher widget for the default config file (checks file status / SCC state). */
|
|
TSharedPtr<SSettingsEditorCheckoutNotice> FileWatcherWidget;
|
|
|
|
int32 ProfileIndex;
|
|
UAssetViewerSettings* ViewerSettings;
|
|
bool bValidProfileName;
|
|
};
|