author | moel.mich |
Sun, 27 May 2012 15:16:19 +0000 | |
changeset 345 | 0c551e8818e0 |
permissions | -rw-r--r-- |
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 |
} |