C# Class SIL.FieldWorks.Common.RootSites.SimpleRootSiteTests.KeyboardThatCommitsPreeditOnSpace

Mock IBusCommunicatior implementation. Typing is performed in a preedit. Upon pressing Space, the preedit is committed all at once (and in upper case). (cf PreeditDummyIBusCommunicator which commits each keystroke separately.)
Inheritance: ITestableIbusCommunicator
Show file Open project: sillsdev/FieldWorks

Protected Properties

Property Type Description
m_preedit string

Public Methods

Method Description
CreateInputContext ( ) : void
Dispose ( ) : void
FocusIn ( ) : void
FocusOut ( ) : void
KeyboardThatCommitsPreeditOnSpace ( ) : System
NotifySelectionLocationAndHeight ( int x, int y, int height ) : void
ProcessKeyEvent ( int keySym, int scanCode, Keys state ) : bool

Commit on space. Otherwise append to preedit.

Reset ( ) : void

Protected Methods

Method Description
CallCommitText ( string text ) : void
CallUpdatePreeditText ( string text, int cursor_pos ) : void
Commit ( char lastCharacterTyped ) : void
Dispose ( bool fDisposing ) : void
ToggleCase ( char input ) : char

Method Details

CallCommitText() protected method

protected CallCommitText ( string text ) : void
text string
return void

CallUpdatePreeditText() protected method

protected CallUpdatePreeditText ( string text, int cursor_pos ) : void
text string
cursor_pos int
return void

Commit() protected method

protected Commit ( char lastCharacterTyped ) : void
lastCharacterTyped char
return void

CreateInputContext() public method

public CreateInputContext ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool fDisposing ) : void
fDisposing bool
return void

FocusIn() public method

public FocusIn ( ) : void
return void

FocusOut() public method

public FocusOut ( ) : void
return void

KeyboardThatCommitsPreeditOnSpace() public method

public KeyboardThatCommitsPreeditOnSpace ( ) : System
return System

NotifySelectionLocationAndHeight() public method

public NotifySelectionLocationAndHeight ( int x, int y, int height ) : void
x int
y int
height int
return void

ProcessKeyEvent() public method

Commit on space. Otherwise append to preedit.
public ProcessKeyEvent ( int keySym, int scanCode, Keys state ) : bool
keySym int
scanCode int
state Keys
return bool

Reset() public method

public Reset ( ) : void
return void

ToggleCase() protected method

protected ToggleCase ( char input ) : char
input char
return char

Property Details

m_preedit protected property

protected string m_preedit
return string