C# Class SIL.FieldWorks.SharpViews.SharpView

Exibir arquivo Open project: sillsdev/FieldWorks

Private Properties

Property Type Description
DoLayout void
LayoutArg LayoutInfo
OnTimer void
PaintArg PaintTransform
ScrollBy void
ScrollToShowSelection void
SetScrollRange void
m_root_SizeChanged void

Public Methods

Method Description
InvalidateInRoot ( Rectangle rect ) : void

Do an invalidate, relative to the top left of the root box. Todo Zoom: allow for differing dpi.

OnApplyStyle ( string style ) : bool
OnDelete ( ) : void
OnDisplayEditCopy ( object commandObject, UIItemDisplayProperties &display ) : bool
OnDisplayEditCut ( object commandObject, UIItemDisplayProperties &display ) : bool
OnDisplayEditPaste ( object commandObject, UIItemDisplayProperties &display ) : bool
OnEditCopy ( object args ) : bool
OnEditCut ( object args ) : bool
OnEditPaste ( object args ) : bool
PerformAfterNotifications ( Action task ) : void

The current simple implementation is suitable for clients not using UOW. Enhance JohnT: When we support UOW, we need to save the actions if one is in progress, and do them all when it is complete.

SharpView ( ) : System

Protected Methods

Method Description
DestroyHandle ( ) : void
Dispose ( bool disposing ) : void

Clean up any resources being used.

IsInputKey ( Keys keyData ) : bool
OnDoubleClick ( EventArgs e ) : void
OnDragDrop ( DragEventArgs drgevent ) : void
OnDragEnter ( DragEventArgs drgevent ) : void
OnDragLeave ( EventArgs e ) : void
OnDragOver ( DragEventArgs drgevent ) : void

We treat a drag over just like a drag enter.

OnGotFocus ( EventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnKeyPress ( KeyPressEventArgs e ) : void
OnLayout ( LayoutEventArgs e ) : void
OnLostFocus ( EventArgs e ) : void
OnMouseClick ( MouseEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnQueryContinueDrag ( QueryContinueDragEventArgs qcdevent ) : void

Private Methods

Method Description
DoLayout ( ) : void
LayoutArg ( GraphicsManager gm ) : LayoutInfo
OnTimer ( object sender, EventArgs e ) : void

Flash the insertion point if appropriate.

PaintArg ( IVwGraphics vg ) : PaintTransform
ScrollBy ( int dx, int dy ) : void
ScrollToShowSelection ( ) : void
SetScrollRange ( int sizeX, int sizeY ) : void

Given that the root box is sizeX layout units wide and sizeY layout units high, set the AutoScrollMinSize to allow scrolling an appropriate distance, and if necessary adjust the AutoScrollPosition.

m_root_SizeChanged ( object sender, RootBox e ) : void

Method Details

DestroyHandle() protected method

protected DestroyHandle ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

InvalidateInRoot() public method

Do an invalidate, relative to the top left of the root box. Todo Zoom: allow for differing dpi.
public InvalidateInRoot ( Rectangle rect ) : void
rect Rectangle
return void

IsInputKey() protected method

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

OnApplyStyle() public method

public OnApplyStyle ( string style ) : bool
style string
return bool

OnDelete() public method

public OnDelete ( ) : void
return void

OnDisplayEditCopy() public method

public OnDisplayEditCopy ( object commandObject, UIItemDisplayProperties &display ) : bool
commandObject object
display UIItemDisplayProperties
return bool

OnDisplayEditCut() public method

public OnDisplayEditCut ( object commandObject, UIItemDisplayProperties &display ) : bool
commandObject object
display UIItemDisplayProperties
return bool

OnDisplayEditPaste() public method

public OnDisplayEditPaste ( object commandObject, UIItemDisplayProperties &display ) : bool
commandObject object
display UIItemDisplayProperties
return bool

OnDoubleClick() protected method

protected OnDoubleClick ( EventArgs e ) : void
e EventArgs
return void

OnDragDrop() protected method

protected OnDragDrop ( DragEventArgs drgevent ) : void
drgevent DragEventArgs
return void

OnDragEnter() protected method

protected OnDragEnter ( DragEventArgs drgevent ) : void
drgevent DragEventArgs
return void

OnDragLeave() protected method

protected OnDragLeave ( EventArgs e ) : void
e EventArgs
return void

OnDragOver() protected method

We treat a drag over just like a drag enter.
protected OnDragOver ( DragEventArgs drgevent ) : void
drgevent DragEventArgs
return void

OnEditCopy() public method

public OnEditCopy ( object args ) : bool
args object
return bool

OnEditCut() public method

public OnEditCut ( object args ) : bool
args object
return bool

OnEditPaste() public method

public OnEditPaste ( object args ) : bool
args object
return bool

OnGotFocus() protected method

protected OnGotFocus ( EventArgs e ) : void
e EventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnKeyPress() protected method

protected OnKeyPress ( KeyPressEventArgs e ) : void
e KeyPressEventArgs
return void

OnLayout() protected method

protected OnLayout ( LayoutEventArgs e ) : void
e LayoutEventArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( EventArgs e ) : void
e EventArgs
return void

OnMouseClick() protected method

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnQueryContinueDrag() protected method

protected OnQueryContinueDrag ( QueryContinueDragEventArgs qcdevent ) : void
qcdevent QueryContinueDragEventArgs
return void

PerformAfterNotifications() public method

The current simple implementation is suitable for clients not using UOW. Enhance JohnT: When we support UOW, we need to save the actions if one is in progress, and do them all when it is complete.
public PerformAfterNotifications ( Action task ) : void
task Action
return void

SharpView() public method

public SharpView ( ) : System
return System