External/Aga.Controls/Tree/Input/InputState.cs
author sl
Thu, 01 Jan 2015 23:35:49 +0100
changeset 405 5715aefd2bcc
permissions -rw-r--r--
SharpDisplay: Migrating to new robust client scheme.
     1 using System;
     2 using System.Windows.Forms;
     3 namespace Aga.Controls.Tree
     4 {
     5 	internal abstract class InputState
     6 	{
     7 		private TreeViewAdv _tree;
     8 
     9 		public TreeViewAdv Tree
    10 		{
    11 			get { return _tree; }
    12 		}
    13 
    14 		public InputState(TreeViewAdv tree)
    15 		{
    16 			_tree = tree;
    17 		}
    18 
    19 		public abstract void KeyDown(System.Windows.Forms.KeyEventArgs args);
    20 		public abstract void MouseDown(TreeNodeAdvMouseEventArgs args);
    21 		public abstract void MouseUp(TreeNodeAdvMouseEventArgs args);
    22 
    23 		/// <summary>
    24 		/// handle OnMouseMove event
    25 		/// </summary>
    26 		/// <param name="args"></param>
    27 		/// <returns>true if event was handled and should be dispatched</returns>
    28 		public virtual bool MouseMove(MouseEventArgs args)
    29 		{
    30 			return false;
    31 		}
    32 
    33 		public virtual void MouseDoubleClick(TreeNodeAdvMouseEventArgs args)
    34 		{
    35 		}
    36 	}
    37 }