2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "LayersModule.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The widget that represents a row in the LayersView's list view control. Generates widgets for each column on demand.
|
|
|
|
|
*/
|
|
|
|
|
class SLayersCommandsMenu : public SCompoundWidget
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
SLATE_BEGIN_ARGS( SLayersCommandsMenu )
|
|
|
|
|
:_CloseWindowAfterMenuSelection( true ) {}
|
|
|
|
|
|
|
|
|
|
SLATE_ARGUMENT( bool, CloseWindowAfterMenuSelection )
|
|
|
|
|
SLATE_END_ARGS()
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Construct this widget. Called by the SNew() Slate macro.
|
|
|
|
|
*
|
|
|
|
|
* @param InArgs Declaration used by the SNew() macro to construct this widget
|
|
|
|
|
* @param InImplementation The UI logic not specific to slate
|
|
|
|
|
*/
|
2014-10-14 22:50:06 -04:00
|
|
|
void Construct( const FArguments& InArgs, const TSharedRef< FLayerCollectionViewModel > InViewModel/*, TSharedPtr< SLayersViewRow > InSingleSelectedRow */);
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/** The UI logic of the LayersView that is not Slate specific */
|
|
|
|
|
TSharedPtr< FLayerCollectionViewModel > ViewModel;
|
|
|
|
|
};
|
|
|
|
|
|