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.
moel@345
     1
using System;
moel@345
     2
using System.Windows.Forms;
moel@345
     3
namespace Aga.Controls.Tree
moel@345
     4
{
moel@345
     5
	internal abstract class InputState
moel@345
     6
	{
moel@345
     7
		private TreeViewAdv _tree;
moel@345
     8
moel@345
     9
		public TreeViewAdv Tree
moel@345
    10
		{
moel@345
    11
			get { return _tree; }
moel@345
    12
		}
moel@345
    13
moel@345
    14
		public InputState(TreeViewAdv tree)
moel@345
    15
		{
moel@345
    16
			_tree = tree;
moel@345
    17
		}
moel@345
    18
moel@345
    19
		public abstract void KeyDown(System.Windows.Forms.KeyEventArgs args);
moel@345
    20
		public abstract void MouseDown(TreeNodeAdvMouseEventArgs args);
moel@345
    21
		public abstract void MouseUp(TreeNodeAdvMouseEventArgs args);
moel@345
    22
moel@345
    23
		/// <summary>
moel@345
    24
		/// handle OnMouseMove event
moel@345
    25
		/// </summary>
moel@345
    26
		/// <param name="args"></param>
moel@345
    27
		/// <returns>true if event was handled and should be dispatched</returns>
moel@345
    28
		public virtual bool MouseMove(MouseEventArgs args)
moel@345
    29
		{
moel@345
    30
			return false;
moel@345
    31
		}
moel@345
    32
moel@345
    33
		public virtual void MouseDoubleClick(TreeNodeAdvMouseEventArgs args)
moel@345
    34
		{
moel@345
    35
		}
moel@345
    36
	}
moel@345
    37
}