Exemple #1
0
 /// <inheritdoc />
 public void OnKeyframesPaste(IKeyframesEditor editor, float?timeOffset, string[] datas, ref int index)
 {
     if (Proxy != null && Proxy.Visible)
     {
         Proxy.OnKeyframesPaste(editor, timeOffset, datas, ref index);
     }
 }
 /// <inheritdoc />
 public new void OnKeyframesPaste(IKeyframesEditor editor, float?timeOffset, string[] datas, ref int index)
 {
     if (Curve != null && Curve.Visible)
     {
         Curve.OnKeyframesPaste(editor, timeOffset, datas, ref index);
     }
 }
Exemple #3
0
 /// <inheritdoc />
 public new void OnKeyframesCopy(IKeyframesEditor editor, float?timeOffset, StringBuilder data)
 {
     if (Events != null && Events.Visible)
     {
         Events.OnKeyframesCopy(editor, timeOffset, data);
     }
 }
Exemple #4
0
 /// <inheritdoc />
 public new void OnKeyframesPaste(IKeyframesEditor editor, float?timeOffset, string[] datas, ref int index)
 {
     if (Events != null && Events.Visible)
     {
         Events.OnKeyframesPaste(editor, timeOffset, datas, ref index);
     }
 }
Exemple #5
0
 /// <inheritdoc />
 public new void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Vector2 location, bool start, bool end)
 {
     if (Keyframes != null && Keyframes.Visible)
     {
         Keyframes.OnKeyframesMove(editor, control, location, start, end);
     }
 }
Exemple #6
0
 /// <inheritdoc />
 public new void OnKeyframesDelete(IKeyframesEditor editor)
 {
     if (Events != null && Events.Visible)
     {
         Events.OnKeyframesDelete(editor);
     }
 }
Exemple #7
0
 /// <inheritdoc />
 public void OnKeyframesCopy(IKeyframesEditor editor, float?timeOffset, StringBuilder data)
 {
     if (Proxy != null && Proxy.Visible)
     {
         Proxy.OnKeyframesCopy(editor, timeOffset, data);
     }
 }
Exemple #8
0
        public static void Paste(IKeyframesEditor editor, float?timeOffset = null)
        {
            var data = Clipboard.Text;

            if (string.IsNullOrEmpty(data))
            {
                return;
            }
            var datas = data.Split(new[] { CopyPrefix }, StringSplitOptions.RemoveEmptyEntries);

            if (datas.Length == 0)
            {
                return;
            }
            if (editor.KeyframesEditorContext != null)
            {
                editor.KeyframesEditorContext.OnKeyframesDeselect(editor);
            }
            else
            {
                editor.OnKeyframesDeselect(editor);
            }
            int index = -1;

            if (editor.KeyframesEditorContext != null)
            {
                editor.KeyframesEditorContext.OnKeyframesPaste(editor, timeOffset, datas, ref index);
            }
            else
            {
                editor.OnKeyframesPaste(editor, timeOffset, datas, ref index);
            }
        }
Exemple #9
0
 /// <inheritdoc />
 public void OnKeyframesDelete(IKeyframesEditor editor)
 {
     if (Proxy != null && Proxy.Visible)
     {
         Proxy.OnKeyframesDelete(editor);
     }
 }
Exemple #10
0
 /// <inheritdoc />
 public void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Vector2 location, bool start, bool end)
 {
     if (Proxy != null && Proxy.Visible)
     {
         Proxy.OnKeyframesMove(editor, control, location, start, end);
     }
 }
 /// <inheritdoc />
 public new void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection)
 {
     if (Curve != null && Curve.Visible)
     {
         Curve.OnKeyframesSelection(editor, control, selection);
     }
 }
Exemple #12
0
 /// <inheritdoc />
 public void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection)
 {
     if (Proxy != null && Proxy.Visible)
     {
         Proxy.OnKeyframesSelection(editor, control, selection);
     }
 }
 /// <inheritdoc />
 public new void OnKeyframesDelete(IKeyframesEditor editor)
 {
     if (Curve != null && Curve.Visible)
     {
         Curve.OnKeyframesDelete(editor);
     }
 }
 /// <inheritdoc />
 public new void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Float2 location, bool start, bool end)
 {
     if (Curve != null && Curve.Visible)
     {
         Curve.OnKeyframesMove(editor, control, location, start, end);
     }
 }
 /// <inheritdoc />
 public new void OnKeyframesCopy(IKeyframesEditor editor, float?timeOffset, StringBuilder data)
 {
     if (Curve != null && Curve.Visible)
     {
         Curve.OnKeyframesCopy(editor, timeOffset, data);
     }
 }
Exemple #16
0
 /// <inheritdoc />
 public new void OnKeyframesDelete(IKeyframesEditor editor)
 {
     if (Keyframes != null && Keyframes.Visible)
     {
         Keyframes.OnKeyframesDelete(editor);
     }
 }
Exemple #17
0
 /// <inheritdoc />
 public new void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection)
 {
     if (Events != null && Events.Visible)
     {
         Events.OnKeyframesSelection(editor, control, selection);
     }
 }
Exemple #18
0
        public static void Copy(IKeyframesEditor editor, float?timeOffset = null)
        {
            var data = new StringBuilder();

            if (editor.KeyframesEditorContext != null)
            {
                editor.KeyframesEditorContext.OnKeyframesCopy(editor, timeOffset, data);
            }
            else
            {
                editor.OnKeyframesCopy(editor, timeOffset, data);
            }
            Clipboard.Text = data.ToString();
        }
 /// <inheritdoc />
 public abstract void OnKeyframesDeselect(IKeyframesEditor editor);
 /// <inheritdoc />
 public abstract void OnKeyframesDelete(IKeyframesEditor editor);
 /// <inheritdoc />
 public abstract void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Vector2 location, bool start, bool end);
 /// <inheritdoc />
 public abstract void OnKeyframesCopy(IKeyframesEditor editor, float?timeOffset, System.Text.StringBuilder data);
 /// <inheritdoc />
 public abstract void OnKeyframesPaste(IKeyframesEditor editor, float?timeOffset, string[] datas, ref int index);
 /// <inheritdoc />
 public abstract void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection);