C# 클래스 ACAT.Lib.Extension.AlphabetScannerCommon

This is a helper class exclusively for Alphabet scanners. It does a lot of the heavy lifting required for word predictions for instance. This eases coding for Alphabet scanners. Create an object of this type in the Alphabet scanner class
상속: IDisposable
파일 보기 프로젝트 열기: brlima94/acat-localization 1 사용 예제들

공개 메소드들

메소드 설명
AlphabetScannerCommon ( IScannerPanel scannerPanel ) : System

Constructor. Initialize the various controls and display the UI

CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : bool

Checks if the widget in arg needs to be enabled or not depending on the context. Call this in the CheckWidgetEnabled function in the Alphabet scanner.

Dispose ( ) : void

Call this in the Dispose() function of the Alphabet scanner

Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool

Call this in the Initialize function of the Alphabet scanner

OnClosing ( object sender, FormClosingEventArgs e ) : void

Release resources and stop threads/timers. Call this in the OnClosing() function in the Alphabet scanner.

OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo info ) : void

Invoked when the focus changes either in the active window or when the active window itself changes. Call this from the OnFocusChanged function in the Alphabet scanner

OnFormClosing ( FormClosingEventArgs e ) : void

Scanner is closing. Call this in the OnFormClosing function in the Alphabet scanner.

OnLoad ( object sender, EventArgs e ) : void

The form has loaded. Start the animation sequence. Call this from the OnLoad function in the Alphabet scanner

OnPause ( ) : void

Pause the application. Call this in the OnPause function in the Alphabet scanner.

OnResume ( ) : void

Resumes the application. Call this in the OnResume function in the Alphabet scanner.

OnWidgetActuated ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void

Triggered when a widget is actuated. Call this in the OnWidgetActuated function in the Alphabet scanner.

RestoreDefaults ( ) : void

Restores default size and position. Call this in the RestoreDefaults function in the Alphabet scanner.

SaveScaleSetting ( ) : void

Saves the current scale setting

SaveSettings ( ) : void

Saves current size/position settings. Call this in the SaveSettings function in the Alphabet scanner.

ScaleDefault ( ) : void

Sets the default scale factor

ScaleDown ( ) : void

Zooms out the scanner. Call this in the ScaleDown function in the Alphabet scanner.

ScaleUp ( ) : void

Zooms in the scanner. Call this in the ScaleUp function in the Alphabet scanner.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Disposer. Releases resources and cleanup.

비공개 메소드들

메소드 설명
AppAgent_EvtTextChanged ( object sender, EventArgs e ) : void

Something changed in the output text window. Sest the word in the "CurrentWordWidget" box and do a fresh word prediction

KeyStateTracker_EvtKeyStateChanged ( ) : void

Some modifier key was pressed. Handled it.

WndProc ( Message &m ) : bool
contains ( IEnumerable list, int count, String word ) : bool

Checks if the word is in the list

formatWord ( int index, String word ) : String

Formats the prediction word with the index

refreshWordPredictionsAndSetCurrentWord ( ) : void

Fetch new set of words into the prediction list box

subscribeToEvents ( ) : void

Subscribes to all the events triggered by the widgets and the interpreter

subscribeToTalkManagerEvents ( ) : void

Subscribes to events triggered by the Output manager

tryRefreshWordPredictionsAndSetCurrentWord ( ) : bool

Refreshes the word prediction list and also updates the current word box with the word that is currently being typed.

메소드 상세

AlphabetScannerCommon() 공개 메소드

Constructor. Initialize the various controls and display the UI
public AlphabetScannerCommon ( IScannerPanel scannerPanel ) : System
scannerPanel IScannerPanel
리턴 System

CheckWidgetEnabled() 공개 메소드

Checks if the widget in arg needs to be enabled or not depending on the context. Call this in the CheckWidgetEnabled function in the Alphabet scanner.
public CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : bool
arg ACAT.Lib.Core.AgentManagement.CheckEnabledArgs widget info
리턴 bool

Dispose() 공개 메소드

Call this in the Dispose() function of the Alphabet scanner
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Disposer. Releases resources and cleanup.
protected Dispose ( bool disposing ) : void
disposing bool true to dispose managed resources
리턴 void

Initialize() 공개 메소드

Call this in the Initialize function of the Alphabet scanner
public Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool
startupArg ACAT.Lib.Core.PanelManagement.StartupArg startup arguments
리턴 bool

OnClosing() 공개 메소드

Release resources and stop threads/timers. Call this in the OnClosing() function in the Alphabet scanner.
public OnClosing ( object sender, FormClosingEventArgs e ) : void
sender object
e System.Windows.Forms.FormClosingEventArgs
리턴 void

OnFocusChanged() 공개 메소드

Invoked when the focus changes either in the active window or when the active window itself changes. Call this from the OnFocusChanged function in the Alphabet scanner
public OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo info ) : void
info ACAT.Lib.Core.Utility.WindowActivityMonitorInfo
리턴 void

OnFormClosing() 공개 메소드

Scanner is closing. Call this in the OnFormClosing function in the Alphabet scanner.
public OnFormClosing ( FormClosingEventArgs e ) : void
e System.Windows.Forms.FormClosingEventArgs event args
리턴 void

OnLoad() 공개 메소드

The form has loaded. Start the animation sequence. Call this from the OnLoad function in the Alphabet scanner
public OnLoad ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

OnPause() 공개 메소드

Pause the application. Call this in the OnPause function in the Alphabet scanner.
public OnPause ( ) : void
리턴 void

OnResume() 공개 메소드

Resumes the application. Call this in the OnResume function in the Alphabet scanner.
public OnResume ( ) : void
리턴 void

OnWidgetActuated() 공개 메소드

Triggered when a widget is actuated. Call this in the OnWidgetActuated function in the Alphabet scanner.
public OnWidgetActuated ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void
widget ACAT.Lib.Core.WidgetManagement.Widget widget that was actuated
handled bool set to true if handled
리턴 void

RestoreDefaults() 공개 메소드

Restores default size and position. Call this in the RestoreDefaults function in the Alphabet scanner.
public RestoreDefaults ( ) : void
리턴 void

SaveScaleSetting() 공개 메소드

Saves the current scale setting
public SaveScaleSetting ( ) : void
리턴 void

SaveSettings() 공개 메소드

Saves current size/position settings. Call this in the SaveSettings function in the Alphabet scanner.
public SaveSettings ( ) : void
리턴 void

ScaleDefault() 공개 메소드

Sets the default scale factor
public ScaleDefault ( ) : void
리턴 void

ScaleDown() 공개 메소드

Zooms out the scanner. Call this in the ScaleDown function in the Alphabet scanner.
public ScaleDown ( ) : void
리턴 void

ScaleUp() 공개 메소드

Zooms in the scanner. Call this in the ScaleUp function in the Alphabet scanner.
public ScaleUp ( ) : void
리턴 void