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

Inheritance: System.Windows.Forms.Form, IScannerPanel, ISupportsStatusBar, IScannerPreview
Afficher le fichier Open project: brlima94/acat-localization

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosing ( FormClosingEventArgs e ) : void

Form is closing. Release resources

Private Methods

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

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
Résultat bool

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

GetAll() public méthode

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
Résultat IEnumerable

Initialize() public méthode

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

OnFocusChanged() public méthode

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
Résultat void

OnFormClosing() protected méthode

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

OnPause() public méthode

Pauses animations
public OnPause ( ) : void
Résultat void

OnQueryPanelChange() public méthode

Not used
public OnQueryPanelChange ( ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs eventArg ) : bool
eventArg ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs
Résultat bool

OnResume() public méthode

Resumes animation
public OnResume ( ) : void
Résultat void

OnWidgetActuated() public méthode

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?
Résultat void

RestoreDefaults() public méthode

Restores default zoom and position settings
public RestoreDefaults ( ) : void
Résultat void

SaveScaleSetting() public méthode

Save the current scale setting
public SaveScaleSetting ( ) : void
Résultat void

SaveSettings() public méthode

Saves the current zoom settings
public SaveSettings ( ) : void
Résultat void

ScaleDefault() public méthode

Sets the default scale factor
public ScaleDefault ( ) : void
Résultat void

ScaleDown() public méthode

Zooms out the scanner
public ScaleDown ( ) : void
Résultat void

ScaleUp() public méthode

Zooms in the scanner
public ScaleUp ( ) : void
Résultat void

SetTargetControl() public méthode

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

TalkApplicationScannerQwerty55Keys() public méthode

Initializes a new instance of the class.
public TalkApplicationScannerQwerty55Keys ( ) : System
Résultat System