C# Class Be.Windows.Forms.HexBox.KeyInterpreter

Handles user input such as mouse and keyboard input during hex view edit
Inheritance: IKeyInterpreter
显示文件 Open project: ME3Explorer/ME3Explorer

Protected Properties

Property Type Description
_hexBox HexBox
_shiftDown bool

Private Properties

Property Type Description
BeginMouseSelection void
EndMouseSelection void
UpdateMouseSelection void

Public Methods

Method Description
Activate ( ) : void
Deactivate ( ) : void
GetCaretPointF ( long byteIndex ) : PointF
KeyInterpreter ( HexBox hexBox ) : System
PreProcessWmChar ( Message &m ) : bool
PreProcessWmKeyDown ( Message &m ) : bool
PreProcessWmKeyUp ( Message &m ) : bool

Protected Methods

Method Description
GetBytePositionInfo ( Point p ) : BytePositionInfo
PerformPosMoveLeft ( ) : bool
PerformPosMoveLeftByte ( ) : bool
PerformPosMoveRight ( ) : bool
PerformPosMoveRightByte ( ) : bool
PreProcessWmKeyDown_Back ( Message &m ) : bool
PreProcessWmKeyDown_ControlC ( Message &m ) : bool
PreProcessWmKeyDown_ControlV ( Message &m ) : bool
PreProcessWmKeyDown_ControlX ( Message &m ) : bool
PreProcessWmKeyDown_Default ( Message &m ) : bool
PreProcessWmKeyDown_Delete ( Message &m ) : bool
PreProcessWmKeyDown_Down ( Message &m ) : bool
PreProcessWmKeyDown_End ( Message &m ) : bool
PreProcessWmKeyDown_Home ( Message &m ) : bool
PreProcessWmKeyDown_Left ( Message &m ) : bool
PreProcessWmKeyDown_PageDown ( Message &m ) : bool
PreProcessWmKeyDown_PageUp ( Message &m ) : bool
PreProcessWmKeyDown_Right ( Message &m ) : bool
PreProcessWmKeyDown_ShiftDown ( Message &m ) : bool
PreProcessWmKeyDown_ShiftLeft ( Message &m ) : bool
PreProcessWmKeyDown_ShiftRight ( Message &m ) : bool
PreProcessWmKeyDown_ShiftShiftKey ( Message &m ) : bool
PreProcessWmKeyDown_ShiftTab ( Message &m ) : bool
PreProcessWmKeyDown_ShiftUp ( Message &m ) : bool
PreProcessWmKeyDown_Tab ( Message &m ) : bool
PreProcessWmKeyDown_Up ( Message &m ) : bool
PreProcessWmKeyUp_Insert ( Message &m ) : bool
RaiseKeyDown ( Keys keyData ) : bool
RaiseKeyPress ( char keyChar ) : bool
RaiseKeyUp ( Keys keyData ) : bool

Private Methods

Method Description
BeginMouseSelection ( object sender, MouseEventArgs e ) : void
EndMouseSelection ( object sender, MouseEventArgs e ) : void
UpdateMouseSelection ( object sender, MouseEventArgs e ) : void

Method Details

Activate() public method

public Activate ( ) : void
return void

Deactivate() public method

public Deactivate ( ) : void
return void

GetBytePositionInfo() protected method

protected GetBytePositionInfo ( Point p ) : BytePositionInfo
p Point
return BytePositionInfo

GetCaretPointF() public method

public GetCaretPointF ( long byteIndex ) : PointF
byteIndex long
return System.Drawing.PointF

KeyInterpreter() public method

public KeyInterpreter ( HexBox hexBox ) : System
hexBox HexBox
return System

PerformPosMoveLeft() protected method

protected PerformPosMoveLeft ( ) : bool
return bool

PerformPosMoveLeftByte() protected method

protected PerformPosMoveLeftByte ( ) : bool
return bool

PerformPosMoveRight() protected method

protected PerformPosMoveRight ( ) : bool
return bool

PerformPosMoveRightByte() protected method

protected PerformPosMoveRightByte ( ) : bool
return bool

PreProcessWmChar() public method

public PreProcessWmChar ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown() public method

public PreProcessWmKeyDown ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_Back() protected method

protected PreProcessWmKeyDown_Back ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_ControlC() protected method

protected PreProcessWmKeyDown_ControlC ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_ControlV() protected method

protected PreProcessWmKeyDown_ControlV ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_ControlX() protected method

protected PreProcessWmKeyDown_ControlX ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_Default() protected method

protected PreProcessWmKeyDown_Default ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_Delete() protected method

protected PreProcessWmKeyDown_Delete ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_Down() protected method

protected PreProcessWmKeyDown_Down ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_End() protected method

protected PreProcessWmKeyDown_End ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_Home() protected method

protected PreProcessWmKeyDown_Home ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_Left() protected method

protected PreProcessWmKeyDown_Left ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_PageDown() protected method

protected PreProcessWmKeyDown_PageDown ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_PageUp() protected method

protected PreProcessWmKeyDown_PageUp ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_Right() protected method

protected PreProcessWmKeyDown_Right ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_ShiftDown() protected method

protected PreProcessWmKeyDown_ShiftDown ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_ShiftLeft() protected method

protected PreProcessWmKeyDown_ShiftLeft ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_ShiftRight() protected method

protected PreProcessWmKeyDown_ShiftRight ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_ShiftShiftKey() protected method

protected PreProcessWmKeyDown_ShiftShiftKey ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_ShiftTab() protected method

protected PreProcessWmKeyDown_ShiftTab ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_ShiftUp() protected method

protected PreProcessWmKeyDown_ShiftUp ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_Tab() protected method

protected PreProcessWmKeyDown_Tab ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyDown_Up() protected method

protected PreProcessWmKeyDown_Up ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyUp() public method

public PreProcessWmKeyUp ( Message &m ) : bool
m Message
return bool

PreProcessWmKeyUp_Insert() protected method

protected PreProcessWmKeyUp_Insert ( Message &m ) : bool
m Message
return bool

RaiseKeyDown() protected method

protected RaiseKeyDown ( Keys keyData ) : bool
keyData Keys
return bool

RaiseKeyPress() protected method

protected RaiseKeyPress ( char keyChar ) : bool
keyChar char
return bool

RaiseKeyUp() protected method

protected RaiseKeyUp ( Keys keyData ) : bool
keyData Keys
return bool

Property Details

_hexBox protected_oe property

Contains the parent HexBox control
protected HexBox _hexBox
return HexBox

_shiftDown protected_oe property

Contains True, if shift key is down
protected bool _shiftDown
return bool