C# Class ACAT.Extensions.Default.UI.Scanners.TalkApplicationScannerQwerty55Keys

Inheritance: System.Windows.Forms.Form, IScannerPanel, ISupportsStatusBar, IScannerPreview
Show file Open project: brlima94/acat-localization

Public Methods

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

Invoked to check if a scanner button should be enabled. Uses context to determine the 'enabled' state.

GetAll ( Control control, Type type ) : IEnumerable

Returns all the controls in the form (recusrively finds them)

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

Intitialize the class

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

Invoked when the focus changes either in the active window or when the active window itself changes.

OnPause ( ) : void

Pauses animations

OnQueryPanelChange ( ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs eventArg ) : bool

Not used

OnResume ( ) : void

Resumes animation

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

Triggered when the user actuates a widget

RestoreDefaults ( ) : void

Restores default zoom and position settings

SaveScaleSetting ( ) : void

Save the current scale setting

SaveSettings ( ) : void

Saves the current zoom settings

ScaleDefault ( ) : void

Sets the default scale factor

ScaleDown ( ) : void

Zooms out the scanner

ScaleUp ( ) : void

Zooms in the scanner

SetTargetControl ( Form parent, ACAT.Lib.Core.WidgetManagement.Widget widget ) : void

Not used

TalkApplicationScannerQwerty55Keys ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosing ( FormClosingEventArgs e ) : void

Form is closing. Release resources

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

TalkApplicationScannerQwerty_Shown ( object sender, EventArgs e ) : void

Event handler for when form is shown

TalkApplicationScanner_FormClosing ( object sender, FormClosingEventArgs e ) : void

Release resources and stop threads/timers

TalkApplicationScanner_Load ( object sender, EventArgs e ) : void

The form has loaded. Start the animation sequence

TextBoxTalkWindowOnKeyPress ( object sender, KeyPressEventArgs keyPressEventArgs ) : void

Key press event for the text box. If user hit enter, convert text to speech

WndProc ( Message &m ) : void
_homeScreenCommon_EvtFormatPreditionWord ( int index, string word ) : string

Handler to format the word prediction words. Add an index number prefix.

button_GotFocus ( object sender, EventArgs e ) : void

Event handler for when a button gets focus. Set focus back to the text box

createAndShowScanner ( String panelClass, Form form ) : bool

Creates and shows the specified scanner

disableAllButtons ( ) : void

Disables all buttons on the scanner

enableAllButtons ( ) : void

Enables all buttons on scanner

enableWatchdogs ( ) : void

Makes sure the scanner stays focused

getPreviousPara ( ) : String

Returns the previous para of text from where the cursor is

handlePhraseSpeak ( ) : void

Launches the agent to speak phrases

removeWatchdogs ( ) : void

Removes all the watchdogs

subscribeToEvents ( ) : void

Subscribes to the various events

textToSpeech ( String text ) : void

Converts the specified text to speech

ttsAndLearn ( String text ) : void

Converts the current para to speech and notify app about this

Method Details

CheckWidgetEnabled() public method

Invoked to check if a scanner button should be enabled. Uses context to determine the 'enabled' state.
public CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : bool
arg ACAT.Lib.Core.AgentManagement.CheckEnabledArgs info about the scanner button
return bool

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

GetAll() public method

Returns all the controls in the form (recusrively finds them)
public GetAll ( Control control, Type type ) : IEnumerable
control System.Windows.Forms.Control parent control
type System.Type type of control to look for
return IEnumerable

Initialize() public method

Intitialize the class
public Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool
startupArg ACAT.Lib.Core.PanelManagement.StartupArg startup params
return bool

OnFocusChanged() public method

Invoked when the focus changes either in the active window or when the active window itself changes.
public OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo Info about focused element
return void

OnFormClosing() protected method

Form is closing. Release resources
protected OnFormClosing ( FormClosingEventArgs e ) : void
e System.Windows.Forms.FormClosingEventArgs closing param
return void

OnPause() public method

Pauses animations
public OnPause ( ) : void
return void

OnQueryPanelChange() public method

Not used
public OnQueryPanelChange ( ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs eventArg ) : bool
eventArg ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs
return bool

OnResume() public method

Resumes animation
public OnResume ( ) : void
return void

OnWidgetActuated() public method

Triggered when the user actuates a widget
public OnWidgetActuated ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void
widget ACAT.Lib.Core.WidgetManagement.Widget widget actuated
handled bool was this handled?
return void

RestoreDefaults() public method

Restores default zoom and position settings
public RestoreDefaults ( ) : void
return void

SaveScaleSetting() public method

Save the current scale setting
public SaveScaleSetting ( ) : void
return void

SaveSettings() public method

Saves the current zoom settings
public SaveSettings ( ) : void
return void

ScaleDefault() public method

Sets the default scale factor
public ScaleDefault ( ) : void
return void

ScaleDown() public method

Zooms out the scanner
public ScaleDown ( ) : void
return void

ScaleUp() public method

Zooms in the scanner
public ScaleUp ( ) : void
return void

SetTargetControl() public method

Not used
public SetTargetControl ( Form parent, ACAT.Lib.Core.WidgetManagement.Widget widget ) : void
parent System.Windows.Forms.Form
widget ACAT.Lib.Core.WidgetManagement.Widget
return void

TalkApplicationScannerQwerty55Keys() public method

Initializes a new instance of the class.
public TalkApplicationScannerQwerty55Keys ( ) : System
return System