C# Class ACAT.Extensions.Default.UI.Dialogs.TextToSpeechSettingsForm

Show file Open project: brlima94/acat-localization

Public Methods

Method Description
OnButtonActuated ( Widget widget ) : void

Triggered when a widget is actuated

OnPause ( ) : void

Pauses the animation

OnResume ( ) : void

Resumes paused dialog

OnRunCommand ( string command, bool &handled ) : void

Not used

TextToSpeechSettingsForm ( ) : 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
HasValidPreferenceValues ( ) : Boolean

Ensures that all the settings are valid, within the range

TextToSpeechSettingsForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Form is closing. Release resources

TextToSpeechSettingsForm_Load ( object sender, EventArgs e ) : void

Form has been loaded. Initlialize the controls on the form

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

Restores default settings

populateUI ( ) : void

Populate the controls with settings from the TTS engine

quit ( ) : void

Confirms with the user and quits the dialog

restoreInitialValues ( ) : void

Restores initial values

saveInitalValues ( ) : void

Gets the starting values of all the settings

saveSettingsAndQuit ( ) : void

Saves settings and quits the dialog. Confirms with the user first if necessary

showError ( String error ) : void

Displays error in a message box

subscribeToEvents ( ) : void

Subscribes to all the events triggered by the widgets and the interpreter

tbPitch_TextChanged ( object sender, EventArgs e ) : void

The 'pitch' changed in the dialog box

tbRate_TextChanged ( object sender, EventArgs e ) : void

The 'rate' changed in the dialog box

tbVolume_TextChanged ( object sender, EventArgs e ) : void

The 'volume' changed in the dialog box

testSettings ( ) : void

Test the current settings by sending a string to the speech engine

updateActiveEngineSettingsFromUI ( ) : void

Update settings in the TTS engine with values from the dialog box

widget_EvtValueChanged ( object sender, WidgetEventArgs e ) : void

Something changed in the dialog box. Set the dirty flag to indicate this.

Method Details

OnButtonActuated() public method

Triggered when a widget is actuated
public OnButtonActuated ( Widget widget ) : void
widget Widget Which one triggered?
return void

OnFormClosing() protected method

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

OnPause() public method

Pauses the animation
public OnPause ( ) : void
return void

OnResume() public method

Resumes paused dialog
public OnResume ( ) : void
return void

OnRunCommand() public method

Not used
public OnRunCommand ( string command, bool &handled ) : void
command string
handled bool
return void

TextToSpeechSettingsForm() public method

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