Files
UnrealEngineUWP/Engine/Source/Editor/DeviceProfileEditor/Private/DeviceProfileConsoleVariableColumn.h
Jaroslaw Palczynski ebce413232 UE4 Refactoring. Changed OVERRIDE and FINAL macros to keywords override and final.
[CL 2104397 by Jaroslaw Palczynski in Main branch]
2014-06-13 06:14:46 -04:00

48 lines
1.8 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
DeviceProfileConsoleVariableColumn.h: Declares the FDeviceProfileConsoleVariableColumn class.
=============================================================================*/
#pragma once
#include "IPropertyTableCustomColumn.h"
/** 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();
/** Begin 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;
/** End IPropertyTableCustomColumn interface */
/**
* Delegate used to notify listeners that an edit request was triggered from the property table
*
* @return - Access to the delegate
*/
FOnEditDeviceProfileCVarsRequestDelegate& OnEditCVarsRequest()
{
return OnEditCVarsRequestDelegate;
}
private:
/** Delegate triggered when user opts to edit CVars **/
FOnEditDeviceProfileCVarsRequestDelegate OnEditCVarsRequestDelegate;
};