C# Class ACAT.Extensions.Default.FunctionalAgents.VolumeSettings.VolumeSettingsScanner

Datei anzeigen Open project: brlima94/acat-localization Class Usage Examples

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.

Initialize ( StartupArg startupArg ) : bool

Initializes the form

OnFocusChanged ( WindowActivityMonitorInfo monitorInfo ) : void

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

OnPause ( ) : void

Pauses animation and hides the form

OnQueryPanelChange ( PanelRequestEventArgs eventArg ) : bool

Not used

OnResume ( ) : void

Resumes animation and shows the form

OnWidgetActuated ( Widget widget, bool &handled ) : void

User actuated a widget. Act on it i.e, set the volume based on the level selected

SetTargetControl ( Form parent, Widget widget ) : void

Not used

VolumeSettingsScanner ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
OnFormClosing ( FormClosingEventArgs e ) : void

Release resources

Private Methods

Method Description
BTest_Click ( object sender, EventArgs e ) : void
VolumeSettingsScanner_FormClosing ( object sender, FormClosingEventArgs e ) : void

Release resources

VolumeSettingsScanner_Load ( object sender, EventArgs e ) : void

Form is loaded. Initialize it.

WndProc ( Message &m ) : void
doVolumeTest ( ) : void

Does a volume test by converting a test string to speech

setTitle ( int setting = -1 ) : void

Set the title of the form with the volume level

setVolumeAndUpdateTitle ( int volume ) : void

Sets the volume in the TTS engine and updates the level setting in the title bar

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

Initialize() public method

Initializes the form
public Initialize ( StartupArg startupArg ) : bool
startupArg StartupArg Startup arg
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

Release resources
protected OnFormClosing ( FormClosingEventArgs e ) : void
e FormClosingEventArgs event args
return void

OnPause() public method

Pauses animation and hides the form
public OnPause ( ) : void
return void

OnQueryPanelChange() public method

Not used
public OnQueryPanelChange ( PanelRequestEventArgs eventArg ) : bool
eventArg PanelRequestEventArgs
return bool

OnResume() public method

Resumes animation and shows the form
public OnResume ( ) : void
return void

OnWidgetActuated() public method

User actuated a widget. Act on it i.e, set the volume based on the level selected
public OnWidgetActuated ( Widget widget, bool &handled ) : void
widget Widget widget activated
handled bool was this handled
return void

SetTargetControl() public method

Not used
public SetTargetControl ( Form parent, Widget widget ) : void
parent Form
widget Widget
return void

VolumeSettingsScanner() public method

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