@ -163,13 +163,13 @@ KCMKttsMgr::KCMKttsMgr(TQWidget *parent, const char *name, const TQStringList &)
// Construct a popup menu for the Sentence Boundary Detector buttons on Filter tab.
m_sbdPopmenu = new TQPopupMenu ( m_kttsmgrw , " SbdPopupMenu " ) ;
m_sbdPopmenu - > insertItem ( i18n ( " &Edit... " ) , this , TQ T _SLOT( slot_configureSbdFilter ( ) ) , 0 , sbdBtnEdit ) ;
m_sbdPopmenu - > insertItem ( i18n ( " &Edit... " ) , this , TQ _SLOT( slot_configureSbdFilter ( ) ) , 0 , sbdBtnEdit ) ;
m_sbdPopmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " go-up " , TDEIcon : : Small ) ,
i18n ( " U&p " ) , this , TQ T _SLOT( slot_higherSbdFilterPriority ( ) ) , 0 , sbdBtnUp ) ;
i18n ( " U&p " ) , this , TQ _SLOT( slot_higherSbdFilterPriority ( ) ) , 0 , sbdBtnUp ) ;
m_sbdPopmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " go-down " , TDEIcon : : Small ) ,
i18n ( " Do&wn " ) , this , TQ T _SLOT( slot_lowerSbdFilterPriority ( ) ) , 0 , sbdBtnDown ) ;
m_sbdPopmenu - > insertItem ( i18n ( " &Add... " ) , this , TQ T _SLOT( slot_addSbdFilter ( ) ) , 0 , sbdBtnAdd ) ;
m_sbdPopmenu - > insertItem ( i18n ( " &Remove " ) , this , TQ T _SLOT( slot_removeSbdFilter ( ) ) , 0 , sbdBtnRemove ) ;
i18n ( " Do&wn " ) , this , TQ _SLOT( slot_lowerSbdFilterPriority ( ) ) , 0 , sbdBtnDown ) ;
m_sbdPopmenu - > insertItem ( i18n ( " &Add... " ) , this , TQ _SLOT( slot_addSbdFilter ( ) ) , 0 , sbdBtnAdd ) ;
m_sbdPopmenu - > insertItem ( i18n ( " &Remove " ) , this , TQ _SLOT( slot_removeSbdFilter ( ) ) , 0 , sbdBtnRemove ) ;
m_kttsmgrw - > sbdButton - > setPopup ( m_sbdPopmenu ) ;
// If aRts is available, enable its radio button.
@ -248,94 +248,94 @@ KCMKttsMgr::KCMKttsMgr(TQWidget *parent, const char *name, const TQStringList &)
// Connect the signals from the KCMKtssMgrWidget to this class.
// Talker tab.
connect ( m_kttsmgrw - > addTalkerButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slot_addTalker ( ) ) ) ;
connect ( m_kttsmgrw - > higherTalkerPriorityButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slot_higherTalkerPriority ( ) ) ) ;
connect ( m_kttsmgrw - > lowerTalkerPriorityButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slot_lowerTalkerPriority ( ) ) ) ;
connect ( m_kttsmgrw - > removeTalkerButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slot_removeTalker ( ) ) ) ;
connect ( m_kttsmgrw - > configureTalkerButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slot_configureTalker ( ) ) ) ;
connect ( m_kttsmgrw - > talkersList , TQ T _SIGNAL( selectionChanged ( ) ) ,
this , TQ T _SLOT( updateTalkerButtons ( ) ) ) ;
connect ( m_kttsmgrw - > addTalkerButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slot_addTalker ( ) ) ) ;
connect ( m_kttsmgrw - > higherTalkerPriorityButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slot_higherTalkerPriority ( ) ) ) ;
connect ( m_kttsmgrw - > lowerTalkerPriorityButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slot_lowerTalkerPriority ( ) ) ) ;
connect ( m_kttsmgrw - > removeTalkerButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slot_removeTalker ( ) ) ) ;
connect ( m_kttsmgrw - > configureTalkerButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slot_configureTalker ( ) ) ) ;
connect ( m_kttsmgrw - > talkersList , TQ _SIGNAL( selectionChanged ( ) ) ,
this , TQ _SLOT( updateTalkerButtons ( ) ) ) ;
// Filter tab.
connect ( m_kttsmgrw - > addFilterButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slot_addNormalFilter ( ) ) ) ;
connect ( m_kttsmgrw - > higherFilterPriorityButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slot_higherNormalFilterPriority ( ) ) ) ;
connect ( m_kttsmgrw - > lowerFilterPriorityButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slot_lowerNormalFilterPriority ( ) ) ) ;
connect ( m_kttsmgrw - > removeFilterButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slot_removeNormalFilter ( ) ) ) ;
connect ( m_kttsmgrw - > configureFilterButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slot_configureNormalFilter ( ) ) ) ;
connect ( m_kttsmgrw - > filtersList , TQ T _SIGNAL( selectionChanged ( ) ) ,
this , TQ T _SLOT( updateFilterButtons ( ) ) ) ;
//connect(m_kttsmgrw->filtersList, TQ T _SIGNAL(stateChanged()),
// this, TQ T _SLOT(configChanged()));
connect ( m_kttsmgrw - > sbdsList , TQ T _SIGNAL( selectionChanged ( ) ) ,
this , TQ T _SLOT( updateSbdButtons ( ) ) ) ;
connect ( m_kttsmgrw - > addFilterButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slot_addNormalFilter ( ) ) ) ;
connect ( m_kttsmgrw - > higherFilterPriorityButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slot_higherNormalFilterPriority ( ) ) ) ;
connect ( m_kttsmgrw - > lowerFilterPriorityButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slot_lowerNormalFilterPriority ( ) ) ) ;
connect ( m_kttsmgrw - > removeFilterButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slot_removeNormalFilter ( ) ) ) ;
connect ( m_kttsmgrw - > configureFilterButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slot_configureNormalFilter ( ) ) ) ;
connect ( m_kttsmgrw - > filtersList , TQ _SIGNAL( selectionChanged ( ) ) ,
this , TQ _SLOT( updateFilterButtons ( ) ) ) ;
//connect(m_kttsmgrw->filtersList, TQ _SIGNAL(stateChanged()),
// this, TQ _SLOT(configChanged()));
connect ( m_kttsmgrw - > sbdsList , TQ _SIGNAL( selectionChanged ( ) ) ,
this , TQ _SLOT( updateSbdButtons ( ) ) ) ;
// Audio tab.
connect ( m_kttsmgrw - > gstreamerRadioButton , TQ T _SIGNAL( toggled ( bool ) ) ,
this , TQ T _SLOT( slotGstreamerRadioButton_toggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > alsaRadioButton , TQ T _SIGNAL( toggled ( bool ) ) ,
this , TQ T _SLOT( slotAlsaRadioButton_toggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > pcmComboBox , TQ T _SIGNAL( activated ( int ) ) ,
this , TQ T _SLOT( slotPcmComboBox_activated ( ) ) ) ;
connect ( m_kttsmgrw - > akodeRadioButton , TQ T _SIGNAL( toggled ( bool ) ) ,
this , TQ T _SLOT( slotAkodeRadioButton_toggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > timeBox , TQ T _SIGNAL( valueChanged ( int ) ) ,
this , TQ T _SLOT( timeBox_valueChanged ( int ) ) ) ;
connect ( m_kttsmgrw - > timeSlider , TQ T _SIGNAL( valueChanged ( int ) ) ,
this , TQ T _SLOT( timeSlider_valueChanged ( int ) ) ) ;
connect ( m_kttsmgrw - > timeBox , TQ T _SIGNAL( valueChanged ( int ) ) , this , TQ T _SLOT( configChanged ( ) ) ) ;
connect ( m_kttsmgrw - > timeSlider , TQ T _SIGNAL( valueChanged ( int ) ) , this , TQ T _SLOT( configChanged ( ) ) ) ;
connect ( m_kttsmgrw - > keepAudioCheckBox , TQ T _SIGNAL( toggled ( bool ) ) ,
this , TQ T _SLOT( keepAudioCheckBox_toggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > keepAudioPath , TQ T _SIGNAL( textChanged ( const TQString & ) ) ,
this , TQ T _SLOT( configChanged ( ) ) ) ;
connect ( m_kttsmgrw - > gstreamerRadioButton , TQ _SIGNAL( toggled ( bool ) ) ,
this , TQ _SLOT( slotGstreamerRadioButton_toggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > alsaRadioButton , TQ _SIGNAL( toggled ( bool ) ) ,
this , TQ _SLOT( slotAlsaRadioButton_toggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > pcmComboBox , TQ _SIGNAL( activated ( int ) ) ,
this , TQ _SLOT( slotPcmComboBox_activated ( ) ) ) ;
connect ( m_kttsmgrw - > akodeRadioButton , TQ _SIGNAL( toggled ( bool ) ) ,
this , TQ _SLOT( slotAkodeRadioButton_toggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > timeBox , TQ _SIGNAL( valueChanged ( int ) ) ,
this , TQ _SLOT( timeBox_valueChanged ( int ) ) ) ;
connect ( m_kttsmgrw - > timeSlider , TQ _SIGNAL( valueChanged ( int ) ) ,
this , TQ _SLOT( timeSlider_valueChanged ( int ) ) ) ;
connect ( m_kttsmgrw - > timeBox , TQ _SIGNAL( valueChanged ( int ) ) , this , TQ _SLOT( configChanged ( ) ) ) ;
connect ( m_kttsmgrw - > timeSlider , TQ _SIGNAL( valueChanged ( int ) ) , this , TQ _SLOT( configChanged ( ) ) ) ;
connect ( m_kttsmgrw - > keepAudioCheckBox , TQ _SIGNAL( toggled ( bool ) ) ,
this , TQ _SLOT( keepAudioCheckBox_toggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > keepAudioPath , TQ _SIGNAL( textChanged ( const TQString & ) ) ,
this , TQ _SLOT( configChanged ( ) ) ) ;
// General tab.
connect ( m_kttsmgrw - > enableKttsdCheckBox , TQ T _SIGNAL( toggled ( bool ) ) ,
TQ T _SLOT( enableKttsdToggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > enableKttsdCheckBox , TQ _SIGNAL( toggled ( bool ) ) ,
TQ _SLOT( enableKttsdToggled ( bool ) ) ) ;
// Notify tab.
connect ( m_kttsmgrw - > notifyEnableCheckBox , TQ T _SIGNAL( toggled ( bool ) ) ,
this , TQ T _SLOT( slotNotifyEnableCheckBox_toggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > notifyExcludeEventsWithSoundCheckBox , TQ T _SIGNAL( toggled ( bool ) ) ,
this , TQ T _SLOT( configChanged ( ) ) ) ;
connect ( m_kttsmgrw - > notifyAddButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slotNotifyAddButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyRemoveButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slotNotifyRemoveButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyClearButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slotNotifyClearButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyLoadButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slotNotifyLoadButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifySaveButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slotNotifySaveButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyListView , TQ T _SIGNAL( selectionChanged ( ) ) ,
this , TQ T _SLOT( slotNotifyListView_selectionChanged ( ) ) ) ;
connect ( m_kttsmgrw - > notifyPresentComboBox , TQ T _SIGNAL( activated ( int ) ) ,
this , TQ T _SLOT( slotNotifyPresentComboBox_activated ( int ) ) ) ;
connect ( m_kttsmgrw - > notifyActionComboBox , TQ T _SIGNAL( activated ( int ) ) ,
this , TQ T _SLOT( slotNotifyActionComboBox_activated ( int ) ) ) ;
connect ( m_kttsmgrw - > notifyTestButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slotNotifyTestButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyMsgLineEdit , TQ T _SIGNAL( textChanged ( const TQString & ) ) ,
this , TQ T _SLOT( slotNotifyMsgLineEdit_textChanged ( const TQString & ) ) ) ;
connect ( m_kttsmgrw - > notifyTalkerButton , TQ T _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slotNotifyTalkerButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyEnableCheckBox , TQ _SIGNAL( toggled ( bool ) ) ,
this , TQ _SLOT( slotNotifyEnableCheckBox_toggled ( bool ) ) ) ;
connect ( m_kttsmgrw - > notifyExcludeEventsWithSoundCheckBox , TQ _SIGNAL( toggled ( bool ) ) ,
this , TQ _SLOT( configChanged ( ) ) ) ;
connect ( m_kttsmgrw - > notifyAddButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slotNotifyAddButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyRemoveButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slotNotifyRemoveButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyClearButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slotNotifyClearButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyLoadButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slotNotifyLoadButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifySaveButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slotNotifySaveButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyListView , TQ _SIGNAL( selectionChanged ( ) ) ,
this , TQ _SLOT( slotNotifyListView_selectionChanged ( ) ) ) ;
connect ( m_kttsmgrw - > notifyPresentComboBox , TQ _SIGNAL( activated ( int ) ) ,
this , TQ _SLOT( slotNotifyPresentComboBox_activated ( int ) ) ) ;
connect ( m_kttsmgrw - > notifyActionComboBox , TQ _SIGNAL( activated ( int ) ) ,
this , TQ _SLOT( slotNotifyActionComboBox_activated ( int ) ) ) ;
connect ( m_kttsmgrw - > notifyTestButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slotNotifyTestButton_clicked ( ) ) ) ;
connect ( m_kttsmgrw - > notifyMsgLineEdit , TQ _SIGNAL( textChanged ( const TQString & ) ) ,
this , TQ _SLOT( slotNotifyMsgLineEdit_textChanged ( const TQString & ) ) ) ;
connect ( m_kttsmgrw - > notifyTalkerButton , TQ _SIGNAL( clicked ( ) ) ,
this , TQ _SLOT( slotNotifyTalkerButton_clicked ( ) ) ) ;
// Others.
connect ( m_kttsmgrw , TQ T _SIGNAL( configChanged ( ) ) ,
this , TQ T _SLOT( configChanged ( ) ) ) ;
connect ( m_kttsmgrw - > mainTab , TQ T _SIGNAL( currentChanged ( TQWidget * ) ) ,
this , TQ T _SLOT( slotTabChanged ( ) ) ) ;
connect ( m_kttsmgrw , TQ _SIGNAL( configChanged ( ) ) ,
this , TQ _SLOT( configChanged ( ) ) ) ;
connect ( m_kttsmgrw - > mainTab , TQ _SIGNAL( currentChanged ( TQWidget * ) ) ,
this , TQ _SLOT( slotTabChanged ( ) ) ) ;
// Connect KTTSD DCOP signals to our slots.
if ( ! connectDCOPSignal ( " kttsd " , " KSpeech " ,
@ -2040,9 +2040,9 @@ void KCMKttsMgr::configureTalker()
m_configDlg - > setMainWidget ( m_loadedTalkerPlugIn ) ;
m_configDlg - > setHelp ( " configure-plugin " , " kttsd " ) ;
m_configDlg - > enableButtonOK ( false ) ;
connect ( m_loadedTalkerPlugIn , TQ T _SIGNAL( changed ( bool ) ) , this , TQ T _SLOT( slotConfigTalkerDlg_ConfigChanged ( ) ) ) ;
connect ( m_configDlg , TQ T _SIGNAL( defaultClicked ( ) ) , this , TQ T _SLOT( slotConfigTalkerDlg_DefaultClicked ( ) ) ) ;
connect ( m_configDlg , TQ T _SIGNAL( cancelClicked ( ) ) , this , TQ T _SLOT ( slotConfigTalkerDlg_CancelClicked ( ) ) ) ;
connect ( m_loadedTalkerPlugIn , TQ _SIGNAL( changed ( bool ) ) , this , TQ _SLOT( slotConfigTalkerDlg_ConfigChanged ( ) ) ) ;
connect ( m_configDlg , TQ _SIGNAL( defaultClicked ( ) ) , this , TQ _SLOT( slotConfigTalkerDlg_DefaultClicked ( ) ) ) ;
connect ( m_configDlg , TQ _SIGNAL( cancelClicked ( ) ) , this , TQ _SLOT ( slotConfigTalkerDlg_CancelClicked ( ) ) ) ;
// Create a Player object for the plugin to use for testing.
int playerOption = 0 ;
TQString sinkName ;
@ -2098,9 +2098,9 @@ void KCMKttsMgr::configureFilter()
m_configDlg - > setMainWidget ( m_loadedFilterPlugIn ) ;
m_configDlg - > setHelp ( " configure-filter " , " kttsd " ) ;
m_configDlg - > enableButtonOK ( false ) ;
connect ( m_loadedFilterPlugIn , TQ T _SIGNAL( changed ( bool ) ) , this , TQ T _SLOT( slotConfigFilterDlg_ConfigChanged ( ) ) ) ;
connect ( m_configDlg , TQ T _SIGNAL( defaultClicked ( ) ) , this , TQ T _SLOT( slotConfigFilterDlg_DefaultClicked ( ) ) ) ;
connect ( m_configDlg , TQ T _SIGNAL( cancelClicked ( ) ) , this , TQ T _SLOT ( slotConfigFilterDlg_CancelClicked ( ) ) ) ;
connect ( m_loadedFilterPlugIn , TQ _SIGNAL( changed ( bool ) ) , this , TQ _SLOT( slotConfigFilterDlg_ConfigChanged ( ) ) ) ;
connect ( m_configDlg , TQ _SIGNAL( defaultClicked ( ) ) , this , TQ _SLOT( slotConfigFilterDlg_DefaultClicked ( ) ) ) ;
connect ( m_configDlg , TQ _SIGNAL( cancelClicked ( ) ) , this , TQ _SLOT ( slotConfigFilterDlg_CancelClicked ( ) ) ) ;
// Display the dialog.
m_configDlg - > exec ( ) ;
}