External/Aga.Controls/Tree/Input/InputState.cs
author StephaneLenclud
Sun, 03 Feb 2013 18:01:50 +0100
branchMiniDisplay
changeset 433 090259cfd699
permissions -rw-r--r--
Adding SoundGraphDisplay and SensorFrontView classes.
They were respectively based on SystemTray and SensorNotifyIcon.
SoundGraphDisplay is now able to load iMONDisplay.dll providing it lives on your PATH.
Adding option to sensor context menu for adding it into FrontView.
     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 }