Files
UnrealEngineUWP/Engine/Source/Developer/Merge/Private/SMergeTreeView.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

43 lines
1.1 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
#include "BlueprintMergeData.h"
#include "DiffUtils.h"
class FSCSDiff;
class SMergeTreeView : public SCompoundWidget
{
public:
virtual ~SMergeTreeView() {}
SLATE_BEGIN_ARGS(SMergeTreeView)
{}
SLATE_END_ARGS()
void Construct( const FArguments InArgs
, const FBlueprintMergeData& InData
, FOnMergeNodeSelected SelectionCallback
, TArray< TSharedPtr<FBlueprintDifferenceTreeEntry> >& OutTreeEntries
, TArray< TSharedPtr<FBlueprintDifferenceTreeEntry> >& OutRealDifferences
, TArray< TSharedPtr<FBlueprintDifferenceTreeEntry> >& OutConflicts);
private:
void HighlightDifference( FSCSIdentifier VarName, FPropertySoftPath Property );
TSharedRef<FSCSDiff>& GetRemoteView();
TSharedRef<FSCSDiff>& GetBaseView();
TSharedRef<FSCSDiff>& GetLocalView();
FBlueprintMergeData Data;
TArray< TSharedRef<FSCSDiff> > SCSViews;
FSCSDiffRoot MergeConflicts;
int CurrentMergeConflict;
FSCSDiffRoot DifferingProperties;
int CurrentDifference;
};