Add project files.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Nodify.Interactivity;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Nodify.Shapes.Canvas
|
||||
{
|
||||
public class DrawingGesturesMappings : EditorGestures
|
||||
{
|
||||
public static readonly DrawingGesturesMappings Instance = new DrawingGesturesMappings();
|
||||
|
||||
public InputGestureRef Draw { get; }
|
||||
|
||||
public DrawingGesturesMappings()
|
||||
{
|
||||
Apply(UnboundGestureMappings.Instance);
|
||||
|
||||
Draw = new Interactivity.MouseGesture(MouseAction.LeftClick);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Nodify.Interactivity;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Nodify.Shapes.Canvas
|
||||
{
|
||||
public class LockedGestureMappings : EditorGestures
|
||||
{
|
||||
public static readonly LockedGestureMappings Instance = new LockedGestureMappings();
|
||||
|
||||
public LockedGestureMappings()
|
||||
{
|
||||
Apply(UnboundGestureMappings.Instance);
|
||||
|
||||
Editor.Pan.Value = new AnyGesture(new Interactivity.MouseGesture(MouseAction.LeftClick), new Interactivity.MouseGesture(MouseAction.RightClick), new Interactivity.MouseGesture(MouseAction.MiddleClick));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using Nodify.Interactivity;
|
||||
|
||||
namespace Nodify.Shapes.Canvas
|
||||
{
|
||||
public class UnboundGestureMappings : EditorGestures
|
||||
{
|
||||
public static readonly UnboundGestureMappings Instance = new UnboundGestureMappings();
|
||||
|
||||
public UnboundGestureMappings()
|
||||
{
|
||||
Editor.Selection.Unbind();
|
||||
Editor.SelectAll.Unbind();
|
||||
ItemContainer.Selection.Unbind();
|
||||
Connection.Disconnect.Unbind();
|
||||
Connector.Connect.Unbind();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user