Files
UnrealEngineUWP/Engine/Source/Editor/SceneOutliner/Private/SSourceControlWidget.h
aditya ravichandran 7be93c5466 Outliner:
Add a filter and column to show Unsaved Assets.
Add a filter and modify the source control column to show uncontrolled assets
#jira UE-168231
#rb patrick.laflamme
#preflight 6361417a397c7af8966cec38

[CL 22890180 by aditya ravichandran in ue5-main branch]
2022-11-01 16:02:53 -04:00

30 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Widgets/Images/SLayeredImage.h"
#include "SourceControlHelpers.h"
#include "SceneOutlinerTreeItemSCC.h"
class SSourceControlWidget : public SLayeredImage
{
public:
SLATE_BEGIN_ARGS(SSourceControlWidget) {}
SLATE_END_ARGS()
/** Construct this widget */
void Construct(const FArguments& InArgs, TSharedPtr<FSceneOutlinerTreeItemSCC> InItemSourceControl);
private:
virtual FReply OnMouseButtonDoubleClick(const FGeometry& InMyGeometry, const FPointerEvent& InMouseEvent) override;
void UpdateSourceControlState(FSourceControlStatePtr SourceControlState);
void UpdateUncontrolledChangelistState(TSharedPtr<FUncontrolledChangelistState> UncontrolledChangelistState);
void UpdateWidget(FSourceControlStatePtr SourceControlState, const TSharedPtr<FUncontrolledChangelistState>& UncontrolledChangelistState);
/** The object that keeps the source control state for the outliner */
TSharedPtr<FSceneOutlinerTreeItemSCC> ItemSourceControl;
};