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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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