External/Aga.Controls/Tree/Input/InputState.cs
author StephaneLenclud
Thu, 18 Apr 2013 23:25:10 +0200
branchMiniDisplay
changeset 444 9b09e2ee0968
permissions -rw-r--r--
Front View plug-in does not init if no sensor added.
Fixing some format to make strings shorter.
Now trying to start SoundGraphAccess.exe process from same directory.
Packed mode now can display three sensors along with the current time.
     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 }