// 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 InWeakOutlinerExtension, TWeakPtr InWeakEditor, const TSharedRef& InTableRow); FSlateColor GetTrackColorTint() const; /** Called when the user clicks the track color */ FReply OnSetTrackColor(); void OnColorPickerPicked(FLinearColor NewFolderColor); void OnColorPickerClosed(const TSharedRef& Window); void OnColorPickerCancelled(FLinearColor NewFolderColor); /** Gets the track out of the underlying Node structure. Can return null. */ UMovieSceneTrack* GetTrackFromNode() const; }; } // namespace Sequencer } // namespace UE