External/Aga.Controls/Tree/Input/InputState.cs
author moel.mich
Sun, 23 Sep 2012 18:37:43 +0000
changeset 380 573f1fff48b2
permissions -rw-r--r--
Fixed Issue 387. The new implementation does not try to start a ring 0 driver that already exists, but could not be opened. It tries to delete the driver and install it new. The driver is now stored temporarily in the application folder. The driver is not correctly removed on system shutdown.
     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 }