External/Aga.Controls/Tree/Input/InputState.cs
author Stephane Lenclud
Sat, 30 Jan 2016 23:01:51 +0100
branchMiniDisplay
changeset 454 f84878f52cd9
permissions -rw-r--r--
Disabling Nuvoton NCT6791D because of fan full speed bug on Asus Z97 WS.
     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 }