1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/External/Aga.Controls/Tree/Input/InputState.cs Sun May 27 15:16:19 2012 +0000
1.3 @@ -0,0 +1,37 @@
1.4 +using System;
1.5 +using System.Windows.Forms;
1.6 +namespace Aga.Controls.Tree
1.7 +{
1.8 + internal abstract class InputState
1.9 + {
1.10 + private TreeViewAdv _tree;
1.11 +
1.12 + public TreeViewAdv Tree
1.13 + {
1.14 + get { return _tree; }
1.15 + }
1.16 +
1.17 + public InputState(TreeViewAdv tree)
1.18 + {
1.19 + _tree = tree;
1.20 + }
1.21 +
1.22 + public abstract void KeyDown(System.Windows.Forms.KeyEventArgs args);
1.23 + public abstract void MouseDown(TreeNodeAdvMouseEventArgs args);
1.24 + public abstract void MouseUp(TreeNodeAdvMouseEventArgs args);
1.25 +
1.26 + /// <summary>
1.27 + /// handle OnMouseMove event
1.28 + /// </summary>
1.29 + /// <param name="args"></param>
1.30 + /// <returns>true if event was handled and should be dispatched</returns>
1.31 + public virtual bool MouseMove(MouseEventArgs args)
1.32 + {
1.33 + return false;
1.34 + }
1.35 +
1.36 + public virtual void MouseDoubleClick(TreeNodeAdvMouseEventArgs args)
1.37 + {
1.38 + }
1.39 + }
1.40 +}