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

Show file Open project: brlima94/acat-localization

Public Methods

Method Description
CheckWidgetEnabled ( 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 ( StartupArg startupArg ) : bool

Intitialize the class

OnFocusChanged ( 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 ( PanelRequestEventArgs eventArg ) : bool

Not used

OnResume ( ) : void

Resumes animation

OnWidgetActuated ( 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, Widget widget ) : void

Not used

TalkApplicationScannerAlphabetical ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
OnFormClosing ( FormClosingEventArgs e ) : void

Form is closing. Release resources

Private Methods

Method Description
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

Make 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

loadPhrases ( ) : void

Loads phrases from the abbreviations list. These are abbreviations that are marked "Speak" as the mode.

removeWatchdogs ( ) : void

Remove all the watchdogs

setFormStyles ( CreateParams createParams ) : CreateParams
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 ( CheckEnabledArgs arg ) : bool
arg CheckEnabledArgs info about the scanner button
return bool

GetAll() public method

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

Initialize() public method

Intitialize the class
public Initialize ( StartupArg startupArg ) : bool
startupArg 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 ( WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo WindowActivityMonitorInfo Info about focused element
return void

OnFormClosing() protected method

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

OnPause() public method

Pauses animations
public OnPause ( ) : void
return void

OnQueryPanelChange() public method

Not used
public OnQueryPanelChange ( PanelRequestEventArgs eventArg ) : bool
eventArg 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 ( Widget widget, bool &handled ) : void
widget 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, Widget widget ) : void
parent Form
widget Widget
return void

TalkApplicationScannerAlphabetical() public method

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