Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shared rectangle selection for all timeline tracks to select keyf…
…rames #519
- Loading branch information
Showing
11 changed files
with
493 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. | ||
|
||
using FlaxEngine; | ||
using FlaxEngine.GUI; | ||
|
||
namespace FlaxEditor.GUI | ||
{ | ||
/// <summary> | ||
/// Interface for keyframes/curves editors. | ||
/// </summary> | ||
public interface IKeyframesEditor | ||
{ | ||
/// <summary> | ||
/// Gets or sets the keyframes editor collection used by this editor. | ||
/// </summary> | ||
IKeyframesEditorContext KeyframesEditorContext { get; set; } | ||
|
||
/// <summary> | ||
/// Called when keyframes selection should be cleared for editor. | ||
/// </summary> | ||
/// <param name="editor">The source editor.</param> | ||
void OnKeyframesDeselect(IKeyframesEditor editor); | ||
|
||
/// <summary> | ||
/// Called when keyframes selection rectangle gets updated. | ||
/// </summary> | ||
/// <param name="editor">The source editor.</param> | ||
/// <param name="control">The source selection control.</param> | ||
/// <param name="selection">The source selection rectangle (in source control local space).</param> | ||
void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection); | ||
|
||
/// <summary> | ||
/// Called to calculate the total amount of selected keyframes in the editor. | ||
/// </summary> | ||
/// <returns>The selected keyframes amount.</returns> | ||
int OnKeyframesSelectionCount(); | ||
|
||
/// <summary> | ||
/// Called when keyframes selection should be deleted for all editors. | ||
/// </summary> | ||
/// <param name="editor">The source editor.</param> | ||
void OnKeyframesDelete(IKeyframesEditor editor); | ||
} | ||
} |
Oops, something went wrong.