You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira #preflight 6306736ac85b7fef22be7751 [CL 21558583 by bryan sefcik in ue5-main branch]
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "HAL/Platform.h"
|
|
#include "IDetailCustomization.h"
|
|
#include "Input/Reply.h"
|
|
#include "Templates/SharedPointer.h"
|
|
#include "UObject/WeakObjectPtrTemplates.h"
|
|
|
|
class IDetailLayoutBuilder;
|
|
|
|
enum class ECheckBoxState : uint8;
|
|
|
|
class UBoundsCopyComponent;
|
|
|
|
/** UI customization for UBoundsCopyComponent */
|
|
class FBoundsCopyComponentDetailsCustomization : public IDetailCustomization
|
|
{
|
|
public:
|
|
static TSharedRef<IDetailCustomization> MakeInstance();
|
|
|
|
protected:
|
|
FBoundsCopyComponentDetailsCustomization();
|
|
|
|
/** Callback for Copy Rotation button */
|
|
FReply SetRotation();
|
|
/** Callback for Copy Bounds button */
|
|
FReply SetTransformToBounds();
|
|
|
|
//~ Begin IDetailCustomization Interface.
|
|
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;
|
|
//~ End IDetailCustomization Interface.
|
|
|
|
private:
|
|
void OnBoundsComponentsXChanged(ECheckBoxState NewState);
|
|
void OnBoundsComponentsYChanged(ECheckBoxState NewState);
|
|
void OnBoundsComponentsZChanged(ECheckBoxState NewState);
|
|
ECheckBoxState IsBoundsComponentsXChecked() const;
|
|
ECheckBoxState IsBoundsComponentsYChecked() const;
|
|
ECheckBoxState IsBoundsComponentsZChecked() const;
|
|
bool IsCopyEnabled() const;
|
|
|
|
private:
|
|
TWeakObjectPtr<UBoundsCopyComponent> BoundsCopyComponent;
|
|
};
|