Navigation
API > API/Editor > API/Editor/Sequencer
Drag/drop operation for reordering track rows/mixer layers within a track.
| Name | FTrackRowReorderDragDropOp |
| Type | class |
| Header File | /Engine/Source/Editor/Sequencer/Public/MVVM/ViewModels/TrackRowReorderDragDropOp.h |
| Include Path | #include "MVVM/ViewModels/TrackRowReorderDragDropOp.h" |
Syntax
class FTrackRowReorderDragDropOp : public FOutlinerViewModelDragDropOp
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FDragDropOperation → FGraphEditorDragDropAction → FOutlinerViewModelDragDropOp → FTrackRowReorderDragDropOp
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTrackRowReorderDragDropOp() |
Protected construction - use New() factory function | MVVM/ViewModels/TrackRowReorderDragDropOp.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCommonParentTrackCached | bool | MVVM/ViewModels/TrackRowReorderDragDropOp.h | ||
| CachedCommonParentTrack | TWeakViewModelPtr< FTrackModel > | Cached common parent track (validated to be same for all dragged rows) | MVVM/ViewModels/TrackRowReorderDragDropOp.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ExecuteReorder
(
int32 TargetRowIndex |
Execute the reorder operation, delegating to track row models | MVVM/ViewModels/TrackRowReorderDragDropOp.h | |
TSharedPtr< FTrackModel > GetCommonParentTrack() |
Check if all dragged track rows belong to the same parent track | MVVM/ViewModels/TrackRowReorderDragDropOp.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetTargetAndDropModel
(
const FViewModelPtr& CurrentViewModel, |
We override this to ensure the drop model is always the track and the target is always a track row even if we're dragging below a nested channel. | MVVM/ViewModels/TrackRowReorderDragDropOp.h | |
virtual bool IsOfTypeImpl
(
const FString& Type |
MVVM/ViewModels/TrackRowReorderDragDropOp.h |
Protected
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FString & GetTypeId() |
MVVM/ViewModels/TrackRowReorderDragDropOp.h | ||
static TSharedRef< FTrackRowReorderDragDropOp > New
(
TArray< TWeakViewModelPtr< IOutlinerExtension > >&& InDraggedViewModels, |
Construct a new drag/drop operation for reordering track rows | MVVM/ViewModels/TrackRowReorderDragDropOp.h |