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

Afficher le fichier Open project: brlima94/acat-localization

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnFormClosing ( FormClosingEventArgs e ) : void

Form is closing . Release resources

Private Methods

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

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

OnFormClosing() protected méthode

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

OnPause() public méthode

Pauses the animation
public OnPause ( ) : void
Résultat void

OnResume() public méthode

Resumes paused dialog
public OnResume ( ) : void
Résultat void

OnRunCommand() public méthode

Not used
public OnRunCommand ( string command, bool &handled ) : void
command string
handled bool
Résultat void

TextToSpeechSettingsForm() public méthode

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