Package gui :: Module settingsDialogs :: Class VoiceSettingsDialog
[hide private]
[frames] | no frames]

Class VoiceSettingsDialog

source code

 wx.Dialog --+    
             |    
SettingsDialog --+
                 |
                VoiceSettingsDialog

Nested Classes [hide private]

Inherited from SettingsDialog: MultiInstanceError

Instance Methods [hide private]
wx.BoxSizer
makeSettingControl(self, setting)
Constructs appropriate GUI controls for given SynthSetting such as label and slider.
source code
 
makeStringSettingControl(self, setting)
Same as makeSettingControl but for string settings.
source code
 
makeBooleanSettingControl(self, setting)
Same as makeSettingControl but for boolean settings.
source code
 
makeSettings(self, settingsSizer)
Populate the dialog with settings controls.
source code
 
postInit(self)
Called after the dialog has been created.
source code
 
updateVoiceSettings(self, changedSetting=None)
Creates, hides or updates existing GUI controls for all of supported settings.
source code
 
onCancel(self, evt)
Take action in response to the Cancel button being pressed.
source code
 
onOk(self, evt)
Take action in response to the OK button being pressed.
source code

Inherited from SettingsDialog: __del__, __init__, __new__

Class Methods [hide private]
 
_setSliderStepSizes(cls, slider, setting) source code
Class Variables [hide private]
  title = _("Voice settings")

Inherited from SettingsDialog (private): _hasInstance

Method Details [hide private]

makeSettingControl(self, setting)

source code 

Constructs appropriate GUI controls for given SynthSetting such as label and slider.

Parameters:
  • setting (SynthSetting) - Setting to construct controls for
Returns: wx.BoxSizer
WXSizer containing newly created controls.

makeStringSettingControl(self, setting)

source code 

Same as makeSettingControl but for string settings. Returns sizer with label and combobox.

makeBooleanSettingControl(self, setting)

source code 

Same as makeSettingControl but for boolean settings. Returns checkbox.

makeSettings(self, settingsSizer)

source code 

Populate the dialog with settings controls. Subclasses must override this method.

Parameters:
  • sizer - The sizer to which to add the settings controls.
Overrides: SettingsDialog.makeSettings
(inherited documentation)

postInit(self)

source code 

Called after the dialog has been created. For example, this might be used to set focus to the desired control. Sub-classes may override this method.

Overrides: SettingsDialog.postInit
(inherited documentation)

onCancel(self, evt)

source code 

Take action in response to the Cancel button being pressed. Sub-classes may extend this method. This base method should always be called to clean up the dialog.

Overrides: SettingsDialog.onCancel
(inherited documentation)

onOk(self, evt)

source code 

Take action in response to the OK button being pressed. Sub-classes may extend this method. This base method should always be called to clean up the dialog.

Overrides: SettingsDialog.onOk
(inherited documentation)