You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
53 lines
1.7 KiB
C++
53 lines
1.7 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "IPropertyTableUtilities.h"
|
|
#include "IPropertyTableColumn.h"
|
|
#include "IPropertyTableCustomColumn.h"
|
|
|
|
class IPropertyTableCell;
|
|
class IPropertyTableCellPresenter;
|
|
class UDeviceProfile;
|
|
|
|
/** Delegate triggered when user opts to edit CVars **/
|
|
DECLARE_DELEGATE_OneParam(FOnEditDeviceProfileCVarsRequestDelegate, const TWeakObjectPtr<UDeviceProfile>&);
|
|
|
|
|
|
/**
|
|
* A property table custom column used to bring the user to an editor which
|
|
* will manage the list of Console Variables associated with the device profile
|
|
*/
|
|
class FDeviceProfileConsoleVariableColumn : public IPropertyTableCustomColumn
|
|
{
|
|
public:
|
|
FDeviceProfileConsoleVariableColumn();
|
|
|
|
public:
|
|
|
|
// IPropertyTableCustomColumn interface
|
|
|
|
virtual bool Supports( const TSharedRef< IPropertyTableColumn >& Column, const TSharedRef< IPropertyTableUtilities >& Utilities ) const override;
|
|
virtual TSharedPtr< SWidget > CreateColumnLabel( const TSharedRef< IPropertyTableColumn >& Column, const TSharedRef< IPropertyTableUtilities >& Utilities, const FName& Style ) const override;
|
|
virtual TSharedPtr< IPropertyTableCellPresenter > CreateCellPresenter( const TSharedRef< IPropertyTableCell >& Cell, const TSharedRef< IPropertyTableUtilities >& Utilities, const FName& Style ) const override;
|
|
|
|
public:
|
|
|
|
/**
|
|
* Delegate used to notify listeners that an edit request was triggered from the property table.
|
|
*
|
|
* @return The delegate.
|
|
*/
|
|
FOnEditDeviceProfileCVarsRequestDelegate& OnEditCVarsRequest()
|
|
{
|
|
return OnEditCVarsRequestDelegate;
|
|
}
|
|
|
|
private:
|
|
|
|
/** Delegate triggered when user opts to edit CVars. **/
|
|
FOnEditDeviceProfileCVarsRequestDelegate OnEditCVarsRequestDelegate;
|
|
};
|
|
|