Files
UnrealEngine/Engine/Source/Editor/Sequencer/Public/MVVM/Views/SOutlinerTrackView.h
2025-05-18 13:04:45 +08:00

47 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SequencerCoreFwd.h"
#include "MVVM/Views/SOutlinerItemViewBase.h"
class UMovieSceneTrack;
namespace UE
{
namespace Sequencer
{
class FViewModel;
class FSequencerEditorViewModel;
/**
* A widget for displaying a track in the sequencer outliner
*/
class SOutlinerTrackView
: public SOutlinerItemViewBase
{
public:
void Construct(
const FArguments& InArgs,
TWeakViewModelPtr<IOutlinerExtension> InWeakOutlinerExtension,
TWeakPtr<FSequencerEditorViewModel> InWeakEditor,
const TSharedRef<ISequencerTreeViewRow>& InTableRow);
FSlateColor GetTrackColorTint() const;
/** Called when the user clicks the track color */
FReply OnSetTrackColor();
void OnColorPickerPicked(FLinearColor NewFolderColor);
void OnColorPickerClosed(const TSharedRef<SWindow>& Window);
void OnColorPickerCancelled(FLinearColor NewFolderColor);
/** Gets the track out of the underlying Node structure. Can return null. */
UMovieSceneTrack* GetTrackFromNode() const;
};
} // namespace Sequencer
} // namespace UE