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
Afficher le fichier Open project: sillsdev/FieldWorks

Protected Properties

Свойство Type Description
m_preedit string

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

protected CallCommitText ( string text ) : void
text string
Résultat void

CallUpdatePreeditText() protected méthode

protected CallUpdatePreeditText ( string text, int cursor_pos ) : void
text string
cursor_pos int
Résultat void

Commit() protected méthode

protected Commit ( char lastCharacterTyped ) : void
lastCharacterTyped char
Résultat void

CreateInputContext() public méthode

public CreateInputContext ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool fDisposing ) : void
fDisposing bool
Résultat void

FocusIn() public méthode

public FocusIn ( ) : void
Résultat void

FocusOut() public méthode

public FocusOut ( ) : void
Résultat void

KeyboardThatCommitsPreeditOnSpace() public méthode

public KeyboardThatCommitsPreeditOnSpace ( ) : System
Résultat System

NotifySelectionLocationAndHeight() public méthode

public NotifySelectionLocationAndHeight ( int x, int y, int height ) : void
x int
y int
height int
Résultat void

ProcessKeyEvent() public méthode

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

Reset() public méthode

public Reset ( ) : void
Résultat void

ToggleCase() protected méthode

protected ToggleCase ( char input ) : char
input char
Résultat char

Property Details

m_preedit protected_oe property

protected string m_preedit
Résultat string