diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:40:41 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:40:41 -0600 |
commit | 0b54abbdf80cef08e5cb8ef7b8b7af31c54dd9b4 (patch) | |
tree | 322767e10a0d28887f54f3cefe6399098713dc82 /kttsd | |
parent | 11f5b1c38c194ef53638bafa0df70e821a7a6427 (diff) | |
download | tdeaccessibility-0b54abbdf80cef08e5cb8ef7b8b7af31c54dd9b4.tar.gz tdeaccessibility-0b54abbdf80cef08e5cb8ef7b8b7af31c54dd9b4.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kttsd')
41 files changed, 262 insertions, 262 deletions
@@ -33,10 +33,10 @@ _ Festival Interactive plugin: _ EPOS plugin: _ Command plugin: _ Command plugin encodes text on command line using %t in user's chosen encoding, but - if this differs from user's desktop default encoding, doesn't work. KProcess always + if this differs from user's desktop default encoding, doesn't work. TDEProcess always encodes command line stuff using user's default encoding. There is no point, therefore, in attempting to encode it differently, just mangles the text even more. Short of modifying - KProcess, I see no way around this. But perhaps a warning to user advising to use %f instead? + TDEProcess, I see no way around this. But perhaps a warning to user advising to use %f instead? _ Command plugin crashes when using command 'flite -t "%t"' and flite can't get write access to /dev/dsp*. _ Hadifix plugin: _ BUG:116151 Add options for using the new prepoc capability in Hadifix. diff --git a/kttsd/app-plugins/kate/katekttsd.cpp b/kttsd/app-plugins/kate/katekttsd.cpp index 0de06cc..9ee05e6 100644 --- a/kttsd/app-plugins/kate/katekttsd.cpp +++ b/kttsd/app-plugins/kate/katekttsd.cpp @@ -63,7 +63,7 @@ void KateKttsdPlugin::removeView(KTextEditor::View *view) m_views.remove (nview); delete nview; } - KGlobal::locale()->removeCatalogue("kttsd"); + TDEGlobal::locale()->removeCatalogue("kttsd"); } @@ -73,7 +73,7 @@ KateKttsdPluginView::KateKttsdPluginView( KTextEditor::View *view, const char *n { view->insertChildClient( this ); setInstance( KGenericFactory<KateKttsdPlugin>::instance() ); - KGlobal::locale()->insertCatalogue("kttsd"); + TDEGlobal::locale()->insertCatalogue("kttsd"); (void) new KAction( i18n("Speak Text"), "kttsd", 0, this, TQT_SLOT(slotReadOut()), actionCollection(), "tools_kttsd" ); setXMLFile( "ktexteditor_kttsdui.rc" ); } diff --git a/kttsd/filters/sbd/sbdconf.cpp b/kttsd/filters/sbd/sbdconf.cpp index 69d048c..0a7ddb9 100644 --- a/kttsd/filters/sbd/sbdconf.cpp +++ b/kttsd/filters/sbd/sbdconf.cpp @@ -132,7 +132,7 @@ void SbdConf::load(KConfig* config, const TQString& configGroup){ for ( uint ndx=0; ndx < m_languageCodeList.count(); ++ndx) { if (!language.isEmpty()) language += ","; - language += KGlobal::locale()->twoAlphaToLanguageName(m_languageCodeList[ndx]); + language += TDEGlobal::locale()->twoAlphaToLanguageName(m_languageCodeList[ndx]); } m_widget->languageLineEdit->setText(language); m_widget->appIdLineEdit->setText( @@ -239,7 +239,7 @@ void SbdConf::slotLanguageBrowseButton_clicked() langLView->addColumn(i18n("Language")); langLView->addColumn(i18n("Code")); langLView->setSelectionMode(TQListView::Extended); - TQStringList allLocales = KGlobal::locale()->allLanguagesTwoAlpha(); + TQStringList allLocales = TDEGlobal::locale()->allLanguagesTwoAlpha(); TQString locale; TQString languageCode; TQString countryCode; @@ -252,10 +252,10 @@ void SbdConf::slotLanguageBrowseButton_clicked() for (int ndx=0; ndx < allLocalesCount; ++ndx) { locale = allLocales[ndx]; - KGlobal::locale()->splitLocale(locale, languageCode, countryCode, charSet); - language = KGlobal::locale()->twoAlphaToLanguageName(languageCode); + TDEGlobal::locale()->splitLocale(locale, languageCode, countryCode, charSet); + language = TDEGlobal::locale()->twoAlphaToLanguageName(languageCode); if (!countryCode.isEmpty()) language += - " (" + KGlobal::locale()->twoAlphaToCountryName(countryCode)+")"; + " (" + TDEGlobal::locale()->twoAlphaToCountryName(countryCode)+")"; TQListViewItem* item = new KListViewItem(langLView, language, locale); if (m_languageCodeList.contains(locale)) item->setSelected(true); } @@ -294,7 +294,7 @@ void SbdConf::slotLanguageBrowseButton_clicked() for ( uint ndx=0; ndx < m_languageCodeList.count(); ++ndx) { if (!language.isEmpty()) language += ","; - language += KGlobal::locale()->twoAlphaToLanguageName(m_languageCodeList[ndx]); + language += TDEGlobal::locale()->twoAlphaToLanguageName(m_languageCodeList[ndx]); } m_widget->languageLineEdit->setText(language); configChanged(); @@ -302,8 +302,8 @@ void SbdConf::slotLanguageBrowseButton_clicked() void SbdConf::slotLoadButton_clicked() { - // TQString dataDir = KGlobal::dirs()->resourceDirs("data").last() + "/kttsd/stringreplacer/"; - TQString dataDir = KGlobal::dirs()->findAllResources("data", "kttsd/sbd/").last(); + // TQString dataDir = TDEGlobal::dirs()->resourceDirs("data").last() + "/kttsd/stringreplacer/"; + TQString dataDir = TDEGlobal::dirs()->findAllResources("data", "kttsd/sbd/").last(); TQString filename = KFileDialog::getOpenFileName( dataDir, "*rc|SBD Config (*rc)", @@ -319,7 +319,7 @@ void SbdConf::slotLoadButton_clicked() void SbdConf::slotSaveButton_clicked() { TQString filename = KFileDialog::getSaveFileName( - KGlobal::dirs()->saveLocation( "data" ,"kttsd/sbd/", false ), + TDEGlobal::dirs()->saveLocation( "data" ,"kttsd/sbd/", false ), "*rc|SBD Config (*rc)", m_widget, "sbd_savefile"); diff --git a/kttsd/filters/stringreplacer/stringreplacerconf.cpp b/kttsd/filters/stringreplacer/stringreplacerconf.cpp index 03ab590..21a4c51 100644 --- a/kttsd/filters/stringreplacer/stringreplacerconf.cpp +++ b/kttsd/filters/stringreplacer/stringreplacerconf.cpp @@ -192,7 +192,7 @@ TQString StringReplacerConf::loadFromFile( const TQString& filename, bool clear) for ( uint ndx=0; ndx < m_languageCodeList.count(); ++ndx ) { if (!language.isEmpty()) language += ","; - language += KGlobal::locale()->twoAlphaToLanguageName(m_languageCodeList[ndx]); + language += TDEGlobal::locale()->twoAlphaToLanguageName(m_languageCodeList[ndx]); } m_widget->languageLineEdit->setText(language); @@ -260,7 +260,7 @@ TQString StringReplacerConf::loadFromFile( const TQString& filename, bool clear) void StringReplacerConf::save(KConfig* config, const TQString& configGroup){ // kdDebug() << "StringReplacerConf::save: Running" << endl; TQString wordsFilename = - KGlobal::dirs()->saveLocation( "data" ,"kttsd/stringreplacer/", true ); + TDEGlobal::dirs()->saveLocation( "data" ,"kttsd/stringreplacer/", true ); if ( wordsFilename.isEmpty() ) { kdDebug() << "StringReplacerConf::save: no save location" << endl; @@ -406,7 +406,7 @@ TQString StringReplacerConf::userPlugInName() { TQString language; if (m_languageCodeList.count() == 1) - language = KGlobal::locale()->twoAlphaToLanguageName(m_languageCodeList[0]); + language = TDEGlobal::locale()->twoAlphaToLanguageName(m_languageCodeList[0]); if (m_languageCodeList.count() > 1) language = i18n("Multiple Languages"); if (!language.isEmpty()) @@ -424,7 +424,7 @@ void StringReplacerConf::slotLanguageBrowseButton_clicked() langLView->addColumn(i18n("Language")); langLView->addColumn(i18n("Code")); langLView->setSelectionMode(TQListView::Extended); - TQStringList allLocales = KGlobal::locale()->allLanguagesTwoAlpha(); + TQStringList allLocales = TDEGlobal::locale()->allLanguagesTwoAlpha(); TQString locale; TQString languageCode; TQString countryCode; @@ -437,10 +437,10 @@ void StringReplacerConf::slotLanguageBrowseButton_clicked() for (int ndx=0; ndx < allLocalesCount; ++ndx) { locale = allLocales[ndx]; - KGlobal::locale()->splitLocale(locale, languageCode, countryCode, charSet); - language = KGlobal::locale()->twoAlphaToLanguageName(languageCode); + TDEGlobal::locale()->splitLocale(locale, languageCode, countryCode, charSet); + language = TDEGlobal::locale()->twoAlphaToLanguageName(languageCode); if (!countryCode.isEmpty()) language += - " (" + KGlobal::locale()->twoAlphaToCountryName(countryCode)+")"; + " (" + TDEGlobal::locale()->twoAlphaToCountryName(countryCode)+")"; item = new KListViewItem(langLView, language, locale); if (m_languageCodeList.contains(locale)) item->setSelected(true); } @@ -479,7 +479,7 @@ void StringReplacerConf::slotLanguageBrowseButton_clicked() for ( uint ndx=0; ndx < m_languageCodeList.count(); ++ndx) { if (!language.isEmpty()) language += ","; - language += KGlobal::locale()->twoAlphaToLanguageName(m_languageCodeList[ndx]); + language += TDEGlobal::locale()->twoAlphaToLanguageName(m_languageCodeList[ndx]); } TQString s1 = m_widget->languageLineEdit->text(); m_widget->languageLineEdit->setText(language); @@ -688,8 +688,8 @@ void StringReplacerConf::slotMatchButton_clicked() void StringReplacerConf::slotLoadButton_clicked() { - // TQString dataDir = KGlobal::dirs()->resourceDirs("data").last() + "/kttsd/stringreplacer/"; - TQString dataDir = KGlobal::dirs()->findAllResources("data", "kttsd/stringreplacer/").last(); + // TQString dataDir = TDEGlobal::dirs()->resourceDirs("data").last() + "/kttsd/stringreplacer/"; + TQString dataDir = TDEGlobal::dirs()->findAllResources("data", "kttsd/stringreplacer/").last(); TQString filename = KFileDialog::getOpenFileName( dataDir, "*.xml|String Replacer Word List (*.xml)", @@ -707,7 +707,7 @@ void StringReplacerConf::slotLoadButton_clicked() void StringReplacerConf::slotSaveButton_clicked() { TQString filename = KFileDialog::getSaveFileName( - KGlobal::dirs()->saveLocation( "data" ,"kttsd/stringreplacer/", false ), + TDEGlobal::dirs()->saveLocation( "data" ,"kttsd/stringreplacer/", false ), "*.xml|String Replacer Word List (*.xml)", m_widget, "stringreplacer_savefile"); diff --git a/kttsd/filters/stringreplacer/stringreplacerproc.cpp b/kttsd/filters/stringreplacer/stringreplacerproc.cpp index f3628f1..5d4d818 100644 --- a/kttsd/filters/stringreplacer/stringreplacerproc.cpp +++ b/kttsd/filters/stringreplacer/stringreplacerproc.cpp @@ -71,7 +71,7 @@ StringReplacerProc::StringReplacerProc( TQObject *parent, const char *name, cons bool StringReplacerProc::init(KConfig* config, const TQString& configGroup){ // kdDebug() << "StringReplacerProc::init: Running" << endl; TQString wordsFilename = - KGlobal::dirs()->saveLocation( "data" ,"kttsd/stringreplacer/", false ); + TDEGlobal::dirs()->saveLocation( "data" ,"kttsd/stringreplacer/", false ); if ( wordsFilename.isEmpty() ) return false; wordsFilename += configGroup; config->setGroup( configGroup ); diff --git a/kttsd/filters/talkerchooser/talkerchooserconf.cpp b/kttsd/filters/talkerchooser/talkerchooserconf.cpp index 8fc504a..f62e185 100644 --- a/kttsd/filters/talkerchooser/talkerchooserconf.cpp +++ b/kttsd/filters/talkerchooser/talkerchooserconf.cpp @@ -232,7 +232,7 @@ void TalkerChooserConf::slotTalkerButton_clicked() void TalkerChooserConf::slotLoadButton_clicked() { - TQString dataDir = KGlobal::dirs()->findAllResources("data", "kttsd/talkerchooser/").last(); + TQString dataDir = TDEGlobal::dirs()->findAllResources("data", "kttsd/talkerchooser/").last(); TQString filename = KFileDialog::getOpenFileName( dataDir, "*rc|Talker Chooser Config (*rc)", @@ -248,7 +248,7 @@ void TalkerChooserConf::slotLoadButton_clicked() void TalkerChooserConf::slotSaveButton_clicked() { TQString filename = KFileDialog::getSaveFileName( - KGlobal::dirs()->saveLocation( "data" ,"kttsd/talkerchooser/", false ), + TDEGlobal::dirs()->saveLocation( "data" ,"kttsd/talkerchooser/", false ), "*rc|Talker Chooser Config (*rc)", m_widget, "talkerchooser_savefile"); diff --git a/kttsd/filters/xmltransformer/xmltransformerproc.cpp b/kttsd/filters/xmltransformer/xmltransformerproc.cpp index c1821db..c513c5d 100644 --- a/kttsd/filters/xmltransformer/xmltransformerproc.cpp +++ b/kttsd/filters/xmltransformer/xmltransformerproc.cpp @@ -241,7 +241,7 @@ bool XmlTransformerProc::init(KConfig* config, const TQString& configGroup) // outFile.unlink(); // only activate this if necessary. /// Spawn an xsltproc process to apply our stylesheet to input file. - m_xsltProc = new KProcess; + m_xsltProc = new TDEProcess; *m_xsltProc << m_xsltprocPath; *m_xsltProc << "-o" << m_outFilename << "--novalid" << m_xsltFilePath << m_inFilename; @@ -250,14 +250,14 @@ bool XmlTransformerProc::init(KConfig* config, const TQString& configGroup) // m_xsltProc->args() << endl; m_state = fsFiltering; - connect(m_xsltProc, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotProcessExited(KProcess*))); - connect(m_xsltProc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStdout(KProcess*, char*, int))); - connect(m_xsltProc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStderr(KProcess*, char*, int))); - if (!m_xsltProc->start(KProcess::NotifyOnExit, - static_cast<KProcess::Communication>(KProcess::Stdout | KProcess::Stderr))) + connect(m_xsltProc, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotProcessExited(TDEProcess*))); + connect(m_xsltProc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(m_xsltProc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); + if (!m_xsltProc->start(TDEProcess::NotifyOnExit, + static_cast<TDEProcess::Communication>(TDEProcess::Stdout | TDEProcess::Stderr))) { kdDebug() << "XmlTransformerProc::convert: Error starting xsltproc" << endl; m_state = fsIdle; @@ -365,19 +365,19 @@ void XmlTransformerProc::processOutput() */ /*virtual*/ bool XmlTransformerProc::wasModified() { return m_wasModified; } -void XmlTransformerProc::slotProcessExited(KProcess*) +void XmlTransformerProc::slotProcessExited(TDEProcess*) { // kdDebug() << "XmlTransformerProc::slotProcessExited: xsltproc has exited." << endl; processOutput(); } -void XmlTransformerProc::slotReceivedStdout(KProcess*, char* /*buffer*/, int /*buflen*/) +void XmlTransformerProc::slotReceivedStdout(TDEProcess*, char* /*buffer*/, int /*buflen*/) { // TQString buf = TQString::fromLatin1(buffer, buflen); // kdDebug() << "XmlTransformerProc::slotReceivedStdout: Received from xsltproc: " << buf << endl; } -void XmlTransformerProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) +void XmlTransformerProc::slotReceivedStderr(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); kdDebug() << "XmlTransformerProc::slotReceivedStderr: Received error from xsltproc: " << buf << endl; diff --git a/kttsd/filters/xmltransformer/xmltransformerproc.h b/kttsd/filters/xmltransformer/xmltransformerproc.h index 8d92e69..a7c5ccc 100644 --- a/kttsd/filters/xmltransformer/xmltransformerproc.h +++ b/kttsd/filters/xmltransformer/xmltransformerproc.h @@ -31,7 +31,7 @@ // KTTS includes. #include "filterproc.h" -class KProcess; +class TDEProcess; class XmlTransformerProc : virtual public KttsFilterProc { @@ -132,9 +132,9 @@ public: virtual bool wasModified(); private slots: - void slotProcessExited(KProcess*); - void slotReceivedStdout(KProcess* proc, char* buffer, int buflen); - void slotReceivedStderr(KProcess* proc, char* buffer, int buflen); + void slotProcessExited(TDEProcess*); + void slotReceivedStdout(TDEProcess* proc, char* buffer, int buflen); + void slotReceivedStderr(TDEProcess* proc, char* buffer, int buflen); private: // Process output when xsltproc exits. @@ -151,7 +151,7 @@ private: // Processing state. int m_state; // xsltproc process. - KProcess* m_xsltProc; + TDEProcess* m_xsltProc; // Input and Output filenames. TQString m_inFilename; TQString m_outFilename; diff --git a/kttsd/kcmkttsmgr/addtalker.cpp b/kttsd/kcmkttsmgr/addtalker.cpp index 200d419..d43b5b2 100644 --- a/kttsd/kcmkttsmgr/addtalker.cpp +++ b/kttsd/kcmkttsmgr/addtalker.cpp @@ -44,14 +44,14 @@ AddTalker::AddTalker(SynthToLangMap synthToLangMap, TQWidget* parent, const char applyFilter(); // Default to user's desktop language. - TQString languageCode = KGlobal::locale()->defaultLanguage(); + TQString languageCode = TDEGlobal::locale()->defaultLanguage(); // If there is not a synth that supports the locale, try stripping country code. if (!m_langToSynthMap.contains(languageCode)) { TQString countryCode; TQString charSet; TQString twoAlpha; - KGlobal::locale()->splitLocale(languageCode, twoAlpha, countryCode, charSet); + TDEGlobal::locale()->splitLocale(languageCode, twoAlpha, countryCode, charSet); languageCode = twoAlpha; } // If there is still not a synth that supports the language code, default to "other". @@ -131,11 +131,11 @@ TQString AddTalker::languageCodeToLanguage(const TQString &languageCode) language = i18n("Other"); else { - KGlobal::locale()->splitLocale(languageCode, twoAlpha, countryCode, charSet); - language = KGlobal::locale()->twoAlphaToLanguageName(twoAlpha); + TDEGlobal::locale()->splitLocale(languageCode, twoAlpha, countryCode, charSet); + language = TDEGlobal::locale()->twoAlphaToLanguageName(twoAlpha); } if (!countryCode.isEmpty()) - language += " (" + KGlobal::locale()->twoAlphaToCountryName(countryCode) + ")"; + language += " (" + TDEGlobal::locale()->twoAlphaToCountryName(countryCode) + ")"; return language; } diff --git a/kttsd/kcmkttsmgr/kcmkttsmgr.cpp b/kttsd/kcmkttsmgr/kcmkttsmgr.cpp index 2b8cd93..46a395e 100644 --- a/kttsd/kcmkttsmgr/kcmkttsmgr.cpp +++ b/kttsd/kcmkttsmgr/kcmkttsmgr.cpp @@ -127,23 +127,23 @@ KCMKttsMgr::KCMKttsMgr(TQWidget *parent, const char *name, const TQStringList &) // Give buttons icons. // Talkers tab. m_kttsmgrw->higherTalkerPriorityButton->setIconSet( - KGlobal::iconLoader()->loadIconSet("up", KIcon::Small)); + TDEGlobal::iconLoader()->loadIconSet("up", KIcon::Small)); m_kttsmgrw->lowerTalkerPriorityButton->setIconSet( - KGlobal::iconLoader()->loadIconSet("down", KIcon::Small)); + TDEGlobal::iconLoader()->loadIconSet("down", KIcon::Small)); m_kttsmgrw->removeTalkerButton->setIconSet( - KGlobal::iconLoader()->loadIconSet("edittrash", KIcon::Small)); + TDEGlobal::iconLoader()->loadIconSet("edittrash", KIcon::Small)); m_kttsmgrw->configureTalkerButton->setIconSet( - KGlobal::iconLoader()->loadIconSet("configure", KIcon::Small)); + TDEGlobal::iconLoader()->loadIconSet("configure", KIcon::Small)); // Filters tab. m_kttsmgrw->higherFilterPriorityButton->setIconSet( - KGlobal::iconLoader()->loadIconSet("up", KIcon::Small)); + TDEGlobal::iconLoader()->loadIconSet("up", KIcon::Small)); m_kttsmgrw->lowerFilterPriorityButton->setIconSet( - KGlobal::iconLoader()->loadIconSet("down", KIcon::Small)); + TDEGlobal::iconLoader()->loadIconSet("down", KIcon::Small)); m_kttsmgrw->removeFilterButton->setIconSet( - KGlobal::iconLoader()->loadIconSet("edittrash", KIcon::Small)); + TDEGlobal::iconLoader()->loadIconSet("edittrash", KIcon::Small)); m_kttsmgrw->configureFilterButton->setIconSet( - KGlobal::iconLoader()->loadIconSet("configure", KIcon::Small)); + TDEGlobal::iconLoader()->loadIconSet("configure", KIcon::Small)); // Notify tab. m_kttsmgrw->notifyActionComboBox->clear(); @@ -154,9 +154,9 @@ KCMKttsMgr::KCMKttsMgr(TQWidget *parent, const char *name, const TQStringList &) m_kttsmgrw->notifyPresentComboBox->insertItem( NotifyPresent::presentDisplayName( ndx ) ); m_kttsmgrw->notifyRemoveButton->setIconSet( - KGlobal::iconLoader()->loadIconSet("edittrash", KIcon::Small)); + TDEGlobal::iconLoader()->loadIconSet("edittrash", KIcon::Small)); m_kttsmgrw->notifyTestButton->setIconSet( - KGlobal::iconLoader()->loadIconSet("speak", KIcon::Small)); + TDEGlobal::iconLoader()->loadIconSet("speak", KIcon::Small)); m_kttsmgrw->sinkComboBox->setEditable(false); m_kttsmgrw->pcmComboBox->setEditable(false); @@ -164,9 +164,9 @@ 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, TQT_SLOT(slot_configureSbdFilter()), 0, sbdBtnEdit ); - m_sbdPopmenu->insertItem( KGlobal::iconLoader()->loadIconSet("up", KIcon::Small), + m_sbdPopmenu->insertItem( TDEGlobal::iconLoader()->loadIconSet("up", KIcon::Small), i18n("U&p"), this, TQT_SLOT(slot_higherSbdFilterPriority()), 0, sbdBtnUp ); - m_sbdPopmenu->insertItem( KGlobal::iconLoader()->loadIconSet("down", KIcon::Small), + m_sbdPopmenu->insertItem( TDEGlobal::iconLoader()->loadIconSet("down", KIcon::Small), i18n("Do&wn"), this, TQT_SLOT(slot_lowerSbdFilterPriority()), 0, sbdBtnDown ); m_sbdPopmenu->insertItem( i18n("&Add..."), this, TQT_SLOT(slot_addSbdFilter()), 0, sbdBtnAdd ); m_sbdPopmenu->insertItem( i18n("&Remove"), this, TQT_SLOT(slot_removeSbdFilter()), 0, sbdBtnRemove ); @@ -1242,7 +1242,7 @@ void KCMKttsMgr::slot_addTalker() KListView* langLView = new KListView(hBox, "SelectLanguage_lview"); langLView->addColumn(i18n("Language")); langLView->addColumn(i18n("Code")); - TQStringList allLocales = KGlobal::locale()->allLanguagesTwoAlpha(); + TQStringList allLocales = TDEGlobal::locale()->allLanguagesTwoAlpha(); TQString locale; TQString countryCode; TQString charSet; @@ -2656,8 +2656,8 @@ void KCMKttsMgr::slotNotifyRemoveButton_clicked() void KCMKttsMgr::slotNotifyLoadButton_clicked() { - // TQString dataDir = KGlobal::dirs()->resourceDirs("data").last() + "/kttsd/stringreplacer/"; - TQString dataDir = KGlobal::dirs()->findAllResources("data", "kttsd/notify/").last(); + // TQString dataDir = TDEGlobal::dirs()->resourceDirs("data").last() + "/kttsd/stringreplacer/"; + TQString dataDir = TDEGlobal::dirs()->findAllResources("data", "kttsd/notify/").last(); TQString filename = KFileDialog::getOpenFileName( dataDir, "*.xml|" + i18n("file type", "Notification Event List") + " (*.xml)", @@ -2675,7 +2675,7 @@ void KCMKttsMgr::slotNotifyLoadButton_clicked() void KCMKttsMgr::slotNotifySaveButton_clicked() { TQString filename = KFileDialog::getSaveFileName( - KGlobal::dirs()->saveLocation( "data" ,"kttsd/notify/", false ), + TDEGlobal::dirs()->saveLocation( "data" ,"kttsd/notify/", false ), "*.xml|" + i18n("file type", "Notification Event List") + " (*.xml)", m_kttsmgrw, "event_savefile"); diff --git a/kttsd/kcmkttsmgr/selectevent.cpp b/kttsd/kcmkttsmgr/selectevent.cpp index 0d9fe60..de97a6c 100644 --- a/kttsd/kcmkttsmgr/selectevent.cpp +++ b/kttsd/kcmkttsmgr/selectevent.cpp @@ -41,7 +41,7 @@ SelectEvent::SelectEvent(TQWidget* parent, const char* name, WFlags fl, const TQ { // Load list of event sources (applications). TQStringList fullpaths = - KGlobal::dirs()->findAllResources("data", "*/eventsrc", false, true ); + TDEGlobal::dirs()->findAllResources("data", "*/eventsrc", false, true ); TQStringList::ConstIterator it = fullpaths.begin(); TQStringList relativePaths; for ( ; it != fullpaths.end(); ++it) diff --git a/kttsd/kttsd/kttsd.cpp b/kttsd/kttsd/kttsd.cpp index ce7757e..91c132b 100644 --- a/kttsd/kttsd/kttsd.cpp +++ b/kttsd/kttsd/kttsd.cpp @@ -103,7 +103,7 @@ bool KTTSD::initializeTalkerMgr() // desktop language, but if that fails, fallback to English. if (load < 0) { - TQString languageCode = KGlobal::locale()->language(); + TQString languageCode = TDEGlobal::locale()->language(); if (m_talkerMgr->autoconfigureTalker(languageCode, m_speechData->config)) load = m_talkerMgr->loadPlugIns(m_speechData->config); else diff --git a/kttsd/kttsd/speechdata.cpp b/kttsd/kttsd/speechdata.cpp index acf9d61..c5e658f 100644 --- a/kttsd/kttsd/speechdata.cpp +++ b/kttsd/kttsd/speechdata.cpp @@ -74,7 +74,7 @@ SpeechData::SpeechData(){ bool SpeechData::readConfig(){ // Load configuration delete config; - //config = KGlobal::config(); + //config = TDEGlobal::config(); config = new KConfig("kttsdrc"); // Set the group general for the configuration of KTTSD itself (no plug ins) diff --git a/kttsd/kttsd/ssmlconvert.cpp b/kttsd/kttsd/ssmlconvert.cpp index 2ffe852..2bae1e7 100644 --- a/kttsd/kttsd/ssmlconvert.cpp +++ b/kttsd/kttsd/ssmlconvert.cpp @@ -231,7 +231,7 @@ bool SSMLConvert::transform(const TQString &text, const TQString &xsltFilename) // outFile.unlink(); // only activate this if necessary. /// Spawn an xsltproc process to apply our stylesheet to our SSML file. - m_xsltProc = new KProcess; + m_xsltProc = new TDEProcess; *m_xsltProc << "xsltproc"; *m_xsltProc << "-o" << m_outFilename << "--novalid" << m_xsltFilename << m_inFilename; @@ -239,9 +239,9 @@ bool SSMLConvert::transform(const TQString &text, const TQString &xsltFilename) // kdDebug() << "SSMLConvert::transform: executing command: " << // m_xsltProc->args() << endl; - connect(m_xsltProc, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotProcessExited(KProcess*))); - if (!m_xsltProc->start(KProcess::NotifyOnExit, KProcess::NoCommunication)) + connect(m_xsltProc, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotProcessExited(TDEProcess*))); + if (!m_xsltProc->start(TDEProcess::NotifyOnExit, TDEProcess::NoCommunication)) { kdDebug() << "SSMLConvert::transform: Error starting xsltproc" << endl; return false; @@ -250,7 +250,7 @@ bool SSMLConvert::transform(const TQString &text, const TQString &xsltFilename) return true; } -void SSMLConvert::slotProcessExited(KProcess* /*proc*/) +void SSMLConvert::slotProcessExited(TDEProcess* /*proc*/) { m_xsltProc->deleteLater(); m_xsltProc = 0; diff --git a/kttsd/kttsd/ssmlconvert.h b/kttsd/kttsd/ssmlconvert.h index 3e02d1c..4fffd55 100644 --- a/kttsd/kttsd/ssmlconvert.h +++ b/kttsd/kttsd/ssmlconvert.h @@ -34,7 +34,7 @@ #include <tqobject.h> #include <tqstringlist.h> -class KProcess; +class TDEProcess; class TQString; class SSMLConvert : public TQObject { @@ -110,11 +110,11 @@ signals: void transformFinished(); private slots: - void slotProcessExited(KProcess* proc); + void slotProcessExited(TDEProcess* proc); private: /// The XSLT processor. - KProcess *m_xsltProc; + TDEProcess *m_xsltProc; /// Current talkers. TQStringList m_talkers; // Current state. diff --git a/kttsd/kttsd/talkermgr.cpp b/kttsd/kttsd/talkermgr.cpp index d9583fe..d544ad3 100644 --- a/kttsd/kttsd/talkermgr.cpp +++ b/kttsd/kttsd/talkermgr.cpp @@ -295,7 +295,7 @@ bool TalkerMgr::supportsMarkup(const TQString& talker, const uint /*markupType*/ if (matchingTalker.isEmpty()) matchingTalker = userDefaultTalker(); PlugInProc* plugin = talkerToPlugin(matchingTalker); return ( plugin->getSsmlXsltFilename() != - KGlobal::dirs()->resourceDirs("data").last() + "kttsd/xslt/SSMLtoPlainText.xsl"); + TDEGlobal::dirs()->resourceDirs("data").last() + "kttsd/xslt/SSMLtoPlainText.xsl"); } bool TalkerMgr::autoconfigureTalker(const TQString& langCode, KConfig* config) diff --git a/kttsd/kttsjobmgr/kttsjobmgr.cpp b/kttsd/kttsjobmgr/kttsjobmgr.cpp index abba6a4..19e5a1a 100644 --- a/kttsd/kttsjobmgr/kttsjobmgr.cpp +++ b/kttsd/kttsjobmgr/kttsjobmgr.cpp @@ -98,7 +98,7 @@ KttsJobMgrPart::KttsJobMgrPart(TQWidget *parent, const char *name) : setInstance(KttsJobMgrFactory::instance()); // All the ktts components use the same catalogue. - KGlobal::locale()->insertCatalogue("kttsd"); + TDEGlobal::locale()->insertCatalogue("kttsd"); // Create a TQVBox to host everything. TQVBox* vBox = new TQVBox(parent); @@ -172,7 +172,7 @@ KttsJobMgrPart::KttsJobMgrPart(TQWidget *parent, const char *name) : TQPushButton* btn; TQString wt; - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("stop", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("stop", KIcon::Small, 0, true), i18n("Hold"), hbox1, "job_hold"); wt = i18n( "<p>Changes a job to Paused state. If currently speaking, the job stops speaking. " @@ -181,28 +181,28 @@ KttsJobMgrPart::KttsJobMgrPart(TQWidget *parent, const char *name) : "down in the list.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_job_hold())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("exec", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("exec", KIcon::Small, 0, true), i18n("Resume"), hbox1, "job_resume"); wt = i18n( "<p>Resumes a paused job or changes a Queued job to Waiting. If the job is the " "top speakable job in the list, it begins speaking.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_job_resume())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("redo", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("redo", KIcon::Small, 0, true), i18n("R&estart"), hbox1, "job_restart"); wt = i18n( "<p>Rewinds a job to the beginning and changes its state to Waiting. If the job " "is the top speakable job in the list, it begins speaking.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_job_restart())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("edittrash", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("edittrash", KIcon::Small, 0, true), i18n("Re&move"), hbox1, "job_remove"); wt = i18n( "<p>Deletes the job. If it is currently speaking, it stops speaking. The next " "speakable job in the list begins speaking.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_job_remove())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("down", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("down", KIcon::Small, 0, true), i18n("&Later"), hbox1, "job_later"); wt = i18n( "<p>Moves a job downward in the list so that it will be spoken later. If the job " @@ -210,32 +210,32 @@ KttsJobMgrPart::KttsJobMgrPart(TQWidget *parent, const char *name) : TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_job_move())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("2leftarrow", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("2leftarrow", KIcon::Small, 0, true), i18n("Pre&vious Part"), hbox2, "part_prevpart"); wt = i18n( "<p>Rewinds a multi-part job to the previous part.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_job_prev_par())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("1leftarrow", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("1leftarrow", KIcon::Small, 0, true), i18n("&Previous Sentence"), hbox2, "job_prevsentence"); wt = i18n( "<p>Rewinds a job to the previous sentence.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_job_prev_sen())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("1rightarrow", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("1rightarrow", KIcon::Small, 0, true), i18n("&Next Sentence"), hbox2, "job_nextsentence"); wt = i18n( "<p>Advances a job to the next sentence.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_job_next_sen())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("2rightarrow", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("2rightarrow", KIcon::Small, 0, true), i18n("Ne&xt Part"), hbox2, "part_nextpart"); wt = i18n( "<p>Advances a multi-part job to the next part.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_job_next_par())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("klipper", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("klipper", KIcon::Small, 0, true), i18n("&Speak Clipboard"), hbox3, "speak_clipboard"); wt = i18n( "<p>Queues the current contents of the clipboard for speaking and sets its state " @@ -243,7 +243,7 @@ KttsJobMgrPart::KttsJobMgrPart(TQWidget *parent, const char *name) : "The job will be spoken by the topmost Talker in the <b>Talkers</b> tab.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_speak_clipboard())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("fileopen", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("fileopen", KIcon::Small, 0, true), i18n("Spea&k File"), hbox3, "speak_file"); wt = i18n( "<p>Prompts you for a file name and queues the contents of the file for speaking. " @@ -251,14 +251,14 @@ KttsJobMgrPart::KttsJobMgrPart(TQWidget *parent, const char *name) : "The job will be spoken by the topmost Talker in the <b>Talkers</b> tab.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_speak_file())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("translate", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("translate", KIcon::Small, 0, true), i18n("Change Talker"), hbox3, "job_changetalker"); wt = i18n( "<p>Prompts you with a list of your configured Talkers from the <b>Talkers</b> tab. " "The job will be spoken using the selected Talker.</p>"); TQWhatsThis::add(btn, wt); connect (btn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_job_change_talker())); - btn = new TQPushButton(KGlobal::iconLoader()->loadIconSet("reload_page", KIcon::Small, 0, true), + btn = new TQPushButton(TDEGlobal::iconLoader()->loadIconSet("reload_page", KIcon::Small, 0, true), i18n("&Refresh"), hbox3, "refresh"); wt = i18n( "<p>Refresh the list of jobs.</p>"); diff --git a/kttsd/kttsmgr/kttsmgr.cpp b/kttsd/kttsmgr/kttsmgr.cpp index 8fc8bd1..7a021d8 100644 --- a/kttsd/kttsmgr/kttsmgr.cpp +++ b/kttsd/kttsmgr/kttsmgr.cpp @@ -54,7 +54,7 @@ static const KCmdLineOptions options[] = int main (int argc, char *argv[]) { - KGlobal::locale()->setMainCatalogue("kttsd"); + TDEGlobal::locale()->setMainCatalogue("kttsd"); TDEAboutData aboutdata("kttsmgr", I18N_NOOP("KTTSMgr"), "0.3.5.2", I18N_NOOP("Text-to-Speech Manager"), @@ -81,7 +81,7 @@ int main (int argc, char *argv[]) KUniqueApplication app; #if TDE_VERSION >= TDE_MAKE_VERSION (3,3,90) - TQPixmap icon = KGlobal::iconLoader()->loadIcon("kttsd", KIcon::Panel); + TQPixmap icon = TDEGlobal::iconLoader()->loadIcon("kttsd", KIcon::Panel); aboutdata.setProgramLogo(icon.convertToImage()); #endif @@ -89,7 +89,7 @@ int main (int argc, char *argv[]) KCMultiDialog dlg(KCMultiDialog::Plain, i18n("TDE Text-to-Speech Manager"), 0, "kttsmgrdlg", false); dlg.addModule("kcmkttsd"); - dlg.setIcon(KGlobal::iconLoader()->loadIcon("kttsd", KIcon::Small)); + dlg.setIcon(TDEGlobal::iconLoader()->loadIcon("kttsd", KIcon::Small)); // Get SysTray and ShowMainWindow options. KConfig* config = new KConfig("kttsdrc"); @@ -168,7 +168,7 @@ KttsMgrTray::KttsMgrTray(TQWidget *parent): DCOPObject("kkttsmgr_kspeechsink"), KSystemTray(parent, "kttsmgrsystemtray") { - TQPixmap icon = KGlobal::iconLoader()->loadIcon("kttsd", KIcon::Small); + TQPixmap icon = TDEGlobal::iconLoader()->loadIcon("kttsd", KIcon::Small); setPixmap (icon); // TQToolTip::add(this, i18n("Text-to-speech manager")); @@ -178,16 +178,16 @@ KttsMgrTray::KttsMgrTray(TQWidget *parent): id = contextMenu()->idAt(0); if (id != -1) contextMenu()->changeTitle(id, icon, "KTTSMgr"); - id = contextMenu()->insertItem (KGlobal::iconLoader()->loadIcon("klipper", KIcon::Small), + id = contextMenu()->insertItem (TDEGlobal::iconLoader()->loadIcon("klipper", KIcon::Small), i18n("&Speak Clipboard Contents"), this, TQT_SLOT(speakClipboardSelected())); - id = contextMenu()->insertItem (KGlobal::iconLoader()->loadIcon("stop", KIcon::Small), + id = contextMenu()->insertItem (TDEGlobal::iconLoader()->loadIcon("stop", KIcon::Small), i18n("&Hold"), this, TQT_SLOT(holdSelected())); - id = contextMenu()->insertItem (KGlobal::iconLoader()->loadIcon("exec", KIcon::Small), + id = contextMenu()->insertItem (TDEGlobal::iconLoader()->loadIcon("exec", KIcon::Small), i18n("Resume"), this, TQT_SLOT(resumeSelected())); id = contextMenu()->insertSeparator(); - id = contextMenu()->insertItem (KGlobal::iconLoader()->loadIcon("contents", KIcon::Small), + id = contextMenu()->insertItem (TDEGlobal::iconLoader()->loadIcon("contents", KIcon::Small), i18n("KTTS &Handbook"), this, TQT_SLOT(helpSelected())); - id = contextMenu()->insertItem (KGlobal::iconLoader()->loadIcon("kttsd", KIcon::Small), + id = contextMenu()->insertItem (TDEGlobal::iconLoader()->loadIcon("kttsd", KIcon::Small), i18n("&About KTTSMgr"), this, TQT_SLOT(aboutSelected())); connect(this, TQT_SIGNAL(quitSelected()), this, TQT_SLOT(quitSelected())); diff --git a/kttsd/libkttsd/filterconf.cpp b/kttsd/libkttsd/filterconf.cpp index e98435c..b4f8a1d 100644 --- a/kttsd/libkttsd/filterconf.cpp +++ b/kttsd/libkttsd/filterconf.cpp @@ -46,7 +46,7 @@ KttsFilterConf::KttsFilterConf( TQWidget *parent, const char *name) : TQWidget(p // kdDebug() << "KttsFilterConf::KttsFilterConf: Running" << endl; TQString systemPath(getenv("PATH")); // kdDebug() << "Path is " << systemPath << endl; - KGlobal::locale()->insertCatalogue("kttsd"); + TDEGlobal::locale()->insertCatalogue("kttsd"); m_path = TQStringList::split(":", systemPath); } diff --git a/kttsd/libkttsd/pluginconf.cpp b/kttsd/libkttsd/pluginconf.cpp index ce68916..0674057 100644 --- a/kttsd/libkttsd/pluginconf.cpp +++ b/kttsd/libkttsd/pluginconf.cpp @@ -38,7 +38,7 @@ */ PlugInConf::PlugInConf( TQWidget *parent, const char *name) : TQWidget(parent, name){ kdDebug() << "PlugInConf::PlugInConf: Running" << endl; - KGlobal::locale()->insertCatalogue("kttsd"); + TDEGlobal::locale()->insertCatalogue("kttsd"); TQString systemPath(getenv("PATH")); // kdDebug() << "Path is " << systemPath << endl; m_path = TQStringList::split(":", systemPath); @@ -187,7 +187,7 @@ TQString PlugInConf::splitLanguageCode(const TQString& languageCode, TQString& c TQString locale = languageCode; TQString langCode; TQString charSet; - KGlobal::locale()->splitLocale(locale, langCode, countryCode, charSet); + TDEGlobal::locale()->splitLocale(locale, langCode, countryCode, charSet); return langCode; } diff --git a/kttsd/libkttsd/pluginproc.cpp b/kttsd/libkttsd/pluginproc.cpp index bcd79fd..53ab839 100644 --- a/kttsd/libkttsd/pluginproc.cpp +++ b/kttsd/libkttsd/pluginproc.cpp @@ -135,7 +135,7 @@ bool PlugInProc::supportsSynth() { return false; } */ TQString PlugInProc::getSsmlXsltFilename() { - return KGlobal::dirs()->resourceDirs("data").last() + "kttsd/xslt/SSMLtoPlainText.xsl"; + return TDEGlobal::dirs()->resourceDirs("data").last() + "kttsd/xslt/SSMLtoPlainText.xsl"; } /** diff --git a/kttsd/libkttsd/pluginproc.h b/kttsd/libkttsd/pluginproc.h index 9d70b55..0467302 100644 --- a/kttsd/libkttsd/pluginproc.h +++ b/kttsd/libkttsd/pluginproc.h @@ -112,7 +112,7 @@ * If @ref supportsAsync returns False, KTTSD will run the plugin in a separate * TQThread. As a consequence, the plugin must not make use of the KDE Library, * when @ref sayText or @ref synthText is called, -* with the exception of KProcess and family (KProcIO, KShellProcess). +* with the exception of TDEProcess and family (KProcIO, KShellProcess). * This restriction comes about because the KDE Libraries make use of the * main TQt event loop, which unfortunately, runs only in the main thread. * This restriction will likely be lifted in TQt 4 and later. diff --git a/kttsd/libkttsd/selecttalkerdlg.cpp b/kttsd/libkttsd/selecttalkerdlg.cpp index c06c3ff..4c73290 100644 --- a/kttsd/libkttsd/selecttalkerdlg.cpp +++ b/kttsd/libkttsd/selecttalkerdlg.cpp @@ -166,7 +166,7 @@ void SelectTalkerDlg::slotLanguageBrowseButton_clicked() langLView->addColumn(i18n("Language")); langLView->addColumn(i18n("Code")); langLView->setSelectionMode(TQListView::Single); - TQStringList allLocales = KGlobal::locale()->allLanguagesTwoAlpha(); + TQStringList allLocales = TDEGlobal::locale()->allLanguagesTwoAlpha(); TQString locale; TQString language; // Blank line so user can select no language. diff --git a/kttsd/libkttsd/stretcher.cpp b/kttsd/libkttsd/stretcher.cpp index 91ae8fe..ccb621d 100644 --- a/kttsd/libkttsd/stretcher.cpp +++ b/kttsd/libkttsd/stretcher.cpp @@ -60,12 +60,12 @@ bool Stretcher::stretch(const TQString &inFilename, const TQString &outFilename, { if (m_stretchProc) return false; m_outFilename = outFilename; - m_stretchProc = new KProcess; + m_stretchProc = new TDEProcess; TQString stretchStr = TQString("%1").arg(stretchFactor, 0, 'f', 3); *m_stretchProc << "sox" << inFilename << outFilename << "stretch" << stretchStr; - connect(m_stretchProc, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotProcessExited(KProcess*))); - if (!m_stretchProc->start(KProcess::NotifyOnExit, KProcess::NoCommunication)) + connect(m_stretchProc, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotProcessExited(TDEProcess*))); + if (!m_stretchProc->start(TDEProcess::NotifyOnExit, TDEProcess::NoCommunication)) { kdDebug() << "Stretcher::stretch: Error starting audio stretcher process. Is sox installed?" << endl; return false; @@ -74,7 +74,7 @@ bool Stretcher::stretch(const TQString &inFilename, const TQString &outFilename, return true; } -void Stretcher::slotProcessExited(KProcess*) +void Stretcher::slotProcessExited(TDEProcess*) { m_stretchProc->deleteLater(); m_stretchProc = 0; diff --git a/kttsd/libkttsd/stretcher.h b/kttsd/libkttsd/stretcher.h index c6b4ca9..ca4e1a7 100644 --- a/kttsd/libkttsd/stretcher.h +++ b/kttsd/libkttsd/stretcher.h @@ -29,7 +29,7 @@ #include <kdemacros.h> #include "kdeexportfix.h" -class KProcess; +class TDEProcess; class KDE_EXPORT Stretcher : public TQObject{ Q_OBJECT @@ -82,14 +82,14 @@ class KDE_EXPORT Stretcher : public TQObject{ void stretchFinished(); private slots: - void slotProcessExited(KProcess* proc); + void slotProcessExited(TDEProcess* proc); private: // Stretcher state. int m_state; // Sox process. - KProcess* m_stretchProc; + TDEProcess* m_stretchProc; // Output file name. TQString m_outFilename; diff --git a/kttsd/libkttsd/talkercode.cpp b/kttsd/libkttsd/talkercode.cpp index c0d26ed..25b674e 100644 --- a/kttsd/libkttsd/talkercode.cpp +++ b/kttsd/libkttsd/talkercode.cpp @@ -182,7 +182,7 @@ void TalkerCode::normalize() TQString language = lang; if (language.left(1) == "*") language = language.mid(1); TQString charSet; - KGlobal::locale()->splitLocale(language, languageCode, countryCode, charSet); + TDEGlobal::locale()->splitLocale(language, languageCode, countryCode, charSet); } /** @@ -218,11 +218,11 @@ void TalkerCode::normalize() else { splitFullLanguageCode(languageCode, twoAlpha, countryCode); - language = KGlobal::locale()->twoAlphaToLanguageName(twoAlpha); + language = TDEGlobal::locale()->twoAlphaToLanguageName(twoAlpha); } if (!countryCode.isEmpty()) { - TQString countryName = KGlobal::locale()->twoAlphaToCountryName(countryCode); + TQString countryName = TDEGlobal::locale()->twoAlphaToCountryName(countryCode); // Some abbreviations to save screen space. if (countryName == i18n("full country name", "United States of America")) countryName = i18n("abbreviated country name", "USA"); diff --git a/kttsd/players/gstplayer/gstreamerplayer.cpp b/kttsd/players/gstplayer/gstreamerplayer.cpp index 35dc92d..1624735 100644 --- a/kttsd/players/gstplayer/gstreamerplayer.cpp +++ b/kttsd/players/gstplayer/gstreamerplayer.cpp @@ -206,7 +206,7 @@ void GStreamerPlayer::setSinkName(const TQString &sinkName) { m_sinkName = sinkN void GStreamerPlayer::readConfig() { - KConfigGroup config(KGlobal::config(), "GStreamerPlayer"); + KConfigGroup config(TDEGlobal::config(), "GStreamerPlayer"); m_sinkName = config.readEntry("SinkName", TQString()); } diff --git a/kttsd/plugins/command/commandproc.cpp b/kttsd/plugins/command/commandproc.cpp index 9ea996e..a5042fa 100644 --- a/kttsd/plugins/command/commandproc.cpp +++ b/kttsd/plugins/command/commandproc.cpp @@ -285,19 +285,19 @@ void CommandProc::synth(const TQString& inputText, const TQString& suggestedFile // 3. create a new process kdDebug() << "CommandProc::synth: running command: " << command << endl; - m_commandProc = new KProcess; + m_commandProc = new TDEProcess; m_commandProc->setUseShell(true); m_commandProc->setEnvironment("LANG", language + "." + codec->mimeName()); m_commandProc->setEnvironment("LC_CTYPE", language + "." + codec->mimeName()); *m_commandProc << command; - connect(m_commandProc, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotProcessExited(KProcess*))); - connect(m_commandProc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStdout(KProcess*, char*, int))); - connect(m_commandProc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStderr(KProcess*, char*, int))); - connect(m_commandProc, TQT_SIGNAL(wroteStdin(KProcess*)), - this, TQT_SLOT(slotWroteStdin(KProcess* ))); + connect(m_commandProc, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotProcessExited(TDEProcess*))); + connect(m_commandProc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(m_commandProc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); + connect(m_commandProc, TQT_SIGNAL(wroteStdin(TDEProcess*)), + this, TQT_SLOT(slotWroteStdin(TDEProcess* ))); // 4. start the process @@ -309,14 +309,14 @@ void CommandProc::synth(const TQString& inputText, const TQString& suggestedFile m_state = psSynthing; } if (stdIn) { - m_commandProc->start(KProcess::NotifyOnExit, KProcess::All); + m_commandProc->start(TDEProcess::NotifyOnExit, TDEProcess::All); if (encodedText.length() > 0) m_commandProc->writeStdin(encodedText, encodedText.length()); else m_commandProc->closeStdin(); } else - m_commandProc->start(KProcess::NotifyOnExit, KProcess::AllOutput); + m_commandProc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput); } /** @@ -361,7 +361,7 @@ void CommandProc::stopText(){ kdDebug() << "CommandProc::stopText: Command stopped." << endl; } -void CommandProc::slotProcessExited(KProcess*) +void CommandProc::slotProcessExited(TDEProcess*) { kdDebug() << "CommandProc:slotProcessExited: Command process has exited." << endl; pluginState prevState = m_state; @@ -380,19 +380,19 @@ void CommandProc::slotProcessExited(KProcess*) } } -void CommandProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) +void CommandProc::slotReceivedStdout(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); kdDebug() << "CommandProc::slotReceivedStdout: Received output from Command: " << buf << endl; } -void CommandProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) +void CommandProc::slotReceivedStderr(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); kdDebug() << "CommandProc::slotReceivedStderr: Received error from Command: " << buf << endl; } -void CommandProc::slotWroteStdin(KProcess*) +void CommandProc::slotWroteStdin(TDEProcess*) { kdDebug() << "CommandProc::slotWroteStdin: closing Stdin" << endl; m_commandProc->closeStdin(); diff --git a/kttsd/plugins/command/commandproc.h b/kttsd/plugins/command/commandproc.h index 26f2494..f206f9b 100644 --- a/kttsd/plugins/command/commandproc.h +++ b/kttsd/plugins/command/commandproc.h @@ -24,7 +24,7 @@ // KTTS includes. #include <pluginproc.h> -class KProcess; +class TDEProcess; class TQTextCodec; class CommandProc : public PlugInProc{ @@ -140,10 +140,10 @@ class CommandProc : public PlugInProc{ TQTextCodec *codec, TQString& language); private slots: - void slotProcessExited(KProcess* proc); - void slotReceivedStdout(KProcess* proc, char* buffer, int buflen); - void slotReceivedStderr(KProcess* proc, char* buffer, int buflen); - void slotWroteStdin(KProcess* proc); + void slotProcessExited(TDEProcess* proc); + void slotReceivedStdout(TDEProcess* proc, char* buffer, int buflen); + void slotReceivedStderr(TDEProcess* proc, char* buffer, int buflen); + void slotWroteStdin(TDEProcess* proc); private: @@ -175,7 +175,7 @@ class CommandProc : public PlugInProc{ /** * Flite process */ - KProcess* m_commandProc; + TDEProcess* m_commandProc; /** * Name of temporary file containing text. diff --git a/kttsd/plugins/epos/eposproc.cpp b/kttsd/plugins/epos/eposproc.cpp index 5ccf568..b13f240 100644 --- a/kttsd/plugins/epos/eposproc.cpp +++ b/kttsd/plugins/epos/eposproc.cpp @@ -85,15 +85,15 @@ bool EposProc::init(KConfig* config, const TQString& configGroup) // Start the Epos server if not already started. if (!m_eposServerProc) { - m_eposServerProc = new KProcess; + m_eposServerProc = new TDEProcess; *m_eposServerProc << m_eposServerExePath; if (!m_eposServerOptions.isEmpty()) *m_eposServerProc << m_eposServerOptions; - connect(m_eposServerProc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStdout(KProcess*, char*, int))); - connect(m_eposServerProc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStderr(KProcess*, char*, int))); - m_eposServerProc->start(KProcess::DontCare, KProcess::AllOutput); + connect(m_eposServerProc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(m_eposServerProc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); + m_eposServerProc->start(TDEProcess::DontCare, TDEProcess::AllOutput); } kdDebug() << "EposProc::init: Initialized with codec: " << codecString << endl; @@ -169,15 +169,15 @@ void EposProc::synth( // Start the Epos server if not already started. if (!m_eposServerProc) { - m_eposServerProc = new KProcess; + m_eposServerProc = new TDEProcess; *m_eposServerProc << eposServerExePath; if (!eposServerOptions.isEmpty()) *m_eposServerProc << eposServerOptions; - connect(m_eposServerProc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStdout(KProcess*, char*, int))); - connect(m_eposServerProc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStderr(KProcess*, char*, int))); - m_eposServerProc->start(KProcess::DontCare, KProcess::AllOutput); + connect(m_eposServerProc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(m_eposServerProc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); + m_eposServerProc->start(TDEProcess::DontCare, TDEProcess::AllOutput); kdDebug() << "EposProc:: Epos server process started" << endl; } @@ -195,7 +195,7 @@ void EposProc::synth( m_encText = text.latin1(); // Should not happen, but just in case. // kdDebug()<< "EposProc::synth: Creating Epos object" << endl; - m_eposProc = new KProcess; + m_eposProc = new TDEProcess; m_eposProc->setUseShell(true); TQString languageCode; if (eposLanguage == "czech") @@ -234,14 +234,14 @@ void EposProc::synth( *m_eposProc << "-"; // Read from StdIn. if (!suggestedFilename.isEmpty()) *m_eposProc << " >" + suggestedFilename; - connect(m_eposProc, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotProcessExited(KProcess*))); - connect(m_eposProc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStdout(KProcess*, char*, int))); - connect(m_eposProc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStderr(KProcess*, char*, int))); - connect(m_eposProc, TQT_SIGNAL(wroteStdin(KProcess*)), - this, TQT_SLOT(slotWroteStdin(KProcess* ))); + connect(m_eposProc, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotProcessExited(TDEProcess*))); + connect(m_eposProc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(m_eposProc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); + connect(m_eposProc, TQT_SIGNAL(wroteStdin(TDEProcess*)), + this, TQT_SLOT(slotWroteStdin(TDEProcess* ))); if (suggestedFilename.isEmpty()) m_state = psSaying; else @@ -250,7 +250,7 @@ void EposProc::synth( // Ok, let's rock. m_synthFilename = suggestedFilename; // kdDebug() << "EposProc::synth: Synthing text: '" << text << "' using Epos plug in" << endl; - if (!m_eposProc->start(KProcess::NotifyOnExit, KProcess::All)) + if (!m_eposProc->start(TDEProcess::NotifyOnExit, TDEProcess::All)) { kdDebug() << "EposProc::synth: Error starting Epos process. Is epos in the PATH?" << endl; m_state = psIdle; @@ -305,7 +305,7 @@ void EposProc::stopText(){ kdDebug() << "EposProc::stopText: Epos stopped." << endl; } -void EposProc::slotProcessExited(KProcess*) +void EposProc::slotProcessExited(TDEProcess*) { // kdDebug() << "EposProc:slotProcessExited: Epos process has exited." << endl; pluginState prevState = m_state; @@ -324,19 +324,19 @@ void EposProc::slotProcessExited(KProcess*) } } -void EposProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) +void EposProc::slotReceivedStdout(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); kdDebug() << "EposProc::slotReceivedStdout: Received output from Epos: " << buf << endl; } -void EposProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) +void EposProc::slotReceivedStderr(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); kdDebug() << "EposProc::slotReceivedStderr: Received error from Epos: " << buf << endl; } -void EposProc::slotWroteStdin(KProcess*) +void EposProc::slotWroteStdin(TDEProcess*) { // kdDebug() << "EposProc::slotWroteStdin: closing Stdin" << endl; m_eposProc->closeStdin(); diff --git a/kttsd/plugins/epos/eposproc.h b/kttsd/plugins/epos/eposproc.h index 103481e..b48b932 100644 --- a/kttsd/plugins/epos/eposproc.h +++ b/kttsd/plugins/epos/eposproc.h @@ -32,7 +32,7 @@ // KTTS includes. #include <pluginproc.h> -class KProcess; +class TDEProcess; class TQTextCodec; class EposProc : public PlugInProc{ @@ -167,10 +167,10 @@ class EposProc : public PlugInProc{ int pitch); private slots: - void slotProcessExited(KProcess* proc); - void slotReceivedStdout(KProcess* proc, char* buffer, int buflen); - void slotReceivedStderr(KProcess* proc, char* buffer, int buflen); - void slotWroteStdin(KProcess* proc); + void slotProcessExited(TDEProcess* proc); + void slotReceivedStdout(TDEProcess* proc, char* buffer, int buflen); + void slotReceivedStderr(TDEProcess* proc, char* buffer, int buflen); + void slotWroteStdin(TDEProcess* proc); private: @@ -189,12 +189,12 @@ class EposProc : public PlugInProc{ /** * Epos Server process. */ - KProcess* m_eposServerProc; + TDEProcess* m_eposServerProc; /** * Epos Client process */ - KProcess* m_eposProc; + TDEProcess* m_eposProc; /** * Epos language setting. "czech", "slovak", or Null (use default language). diff --git a/kttsd/plugins/festivalint/festivalintconf.cpp b/kttsd/plugins/festivalint/festivalintconf.cpp index 4e34b1a..c7563a6 100644 --- a/kttsd/plugins/festivalint/festivalintconf.cpp +++ b/kttsd/plugins/festivalint/festivalintconf.cpp @@ -455,15 +455,15 @@ void FestivalIntConf::scanVoices() if (!m_supportedVoiceCodes.isEmpty()) { // User's desktop language setting. - TQString desktopLanguageCode = KGlobal::locale()->language(); + TQString desktopLanguageCode = TDEGlobal::locale()->language(); TQString twoAlpha; TQString countryCode; TQString charSet; - KGlobal::locale()->splitLocale(desktopLanguageCode, twoAlpha, countryCode, charSet); + TDEGlobal::locale()->splitLocale(desktopLanguageCode, twoAlpha, countryCode, charSet); desktopLanguageCode = twoAlpha.lower(); // Festival known voices list. - TQString voicesFilename = KGlobal::dirs()->resourceDirs("data").last() + "/kttsd/festivalint/voices"; + TQString voicesFilename = TDEGlobal::dirs()->resourceDirs("data").last() + "/kttsd/festivalint/voices"; TQDomDocument voicesDoc("Festival Voices"); TQFile voicesFile(voicesFilename); if (voicesFile.open(IO_ReadOnly)) voicesDoc.setContent(&voicesFile); @@ -475,8 +475,8 @@ void FestivalIntConf::scanVoices() // Iterate thru list of voice codes returned by Festival, // find matching entry in voices.xml file, and add to list of supported voices. - TQPixmap maleIcon = KGlobal::iconLoader()->loadIcon("male", KIcon::Small); - TQPixmap femaleIcon = KGlobal::iconLoader()->loadIcon("female", KIcon::Small); + TQPixmap maleIcon = TDEGlobal::iconLoader()->loadIcon("male", KIcon::Small); + TQPixmap femaleIcon = TDEGlobal::iconLoader()->loadIcon("female", KIcon::Small); TQStringList::ConstIterator itEnd = m_supportedVoiceCodes.constEnd(); for(TQStringList::ConstIterator it = m_supportedVoiceCodes.begin(); it != itEnd; ++it ) { diff --git a/kttsd/plugins/festivalint/festivalintproc.cpp b/kttsd/plugins/festivalint/festivalintproc.cpp index e11511b..065504f 100644 --- a/kttsd/plugins/festivalint/festivalintproc.cpp +++ b/kttsd/plugins/festivalint/festivalintproc.cpp @@ -178,20 +178,20 @@ void FestivalIntProc::startEngine(const TQString &festivalExePath, const TQStrin if(!m_festProc) { // kdDebug()<< "FestivalIntProc::startEngine: Creating Festival object" << endl; - m_festProc = new KProcess; + m_festProc = new TDEProcess; *m_festProc << festivalExePath; *m_festProc << "--interactive"; m_festProc->setEnvironment("LANG", languageCode + "." + codec->mimeName()); m_festProc->setEnvironment("LC_CTYPE", languageCode + "." + codec->mimeName()); // kdDebug() << "FestivalIntProc::startEngine: setting LANG = LC_CTYPE = " << languageCode << "." << codec->mimeName() << endl; - connect(m_festProc, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotProcessExited(KProcess*))); - connect(m_festProc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStdout(KProcess*, char*, int))); - connect(m_festProc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStderr(KProcess*, char*, int))); - connect(m_festProc, TQT_SIGNAL(wroteStdin(KProcess*)), - this, TQT_SLOT(slotWroteStdin(KProcess*))); + connect(m_festProc, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotProcessExited(TDEProcess*))); + connect(m_festProc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(m_festProc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); + connect(m_festProc, TQT_SIGNAL(wroteStdin(TDEProcess*)), + this, TQT_SLOT(slotWroteStdin(TDEProcess*))); } if (!m_festProc->isRunning()) { @@ -201,7 +201,7 @@ void FestivalIntProc::startEngine(const TQString &festivalExePath, const TQStrin m_runningPitch = 100; m_ready = false; m_outputQueue.clear(); - if (m_festProc->start(KProcess::NotifyOnExit, KProcess::All)) + if (m_festProc->start(TDEProcess::NotifyOnExit, TDEProcess::All)) { // kdDebug()<< "FestivalIntProc:startEngine: Festival initialized" << endl; m_festivalExePath = festivalExePath; @@ -209,7 +209,7 @@ void FestivalIntProc::startEngine(const TQString &festivalExePath, const TQStrin m_codec = codec; // Load the SABLE to Wave module. sendToFestival("(load \"" + - KGlobal::dirs()->resourceDirs("data").last() + "kttsd/festivalint/sabletowave.scm\")"); + TDEGlobal::dirs()->resourceDirs("data").last() + "kttsd/festivalint/sabletowave.scm\")"); } else { @@ -460,7 +460,7 @@ void FestivalIntProc::stopText(){ } else m_state = psIdle; } -void FestivalIntProc::slotProcessExited(KProcess*) +void FestivalIntProc::slotProcessExited(TDEProcess*) { // kdDebug() << "FestivalIntProc:slotProcessExited: Festival process has exited." << endl; m_ready = true; @@ -498,7 +498,7 @@ void FestivalIntProc::slotProcessExited(KProcess*) m_outputQueue.clear(); } -void FestivalIntProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) +void FestivalIntProc::slotReceivedStdout(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); // kdDebug() << "FestivalIntProc::slotReceivedStdout: Received from Festival: " << buf << endl; @@ -567,13 +567,13 @@ void FestivalIntProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) } } -void FestivalIntProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) +void FestivalIntProc::slotReceivedStderr(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); kdDebug() << "FestivalIntProc::slotReceivedStderr: Received error from Festival: " << buf << endl; } -void FestivalIntProc::slotWroteStdin(KProcess* /*proc*/) +void FestivalIntProc::slotWroteStdin(TDEProcess* /*proc*/) { // kdDebug() << "FestivalIntProc::slotWroteStdin: Running" << endl; m_writingStdin = false; @@ -655,7 +655,7 @@ bool FestivalIntProc::supportsSynth() { return true; } TQString FestivalIntProc::getSsmlXsltFilename() { if (m_supportsSSML == ssYes) - return KGlobal::dirs()->resourceDirs("data").last() + "kttsd/festivalint/xslt/SSMLtoSable.xsl"; + return TDEGlobal::dirs()->resourceDirs("data").last() + "kttsd/festivalint/xslt/SSMLtoSable.xsl"; else return PlugInProc::getSsmlXsltFilename(); } diff --git a/kttsd/plugins/festivalint/festivalintproc.h b/kttsd/plugins/festivalint/festivalintproc.h index 34af896..f086653 100644 --- a/kttsd/plugins/festivalint/festivalintproc.h +++ b/kttsd/plugins/festivalint/festivalintproc.h @@ -212,10 +212,10 @@ class FestivalIntProc : public PlugInProc{ void queryVoicesFinished(const TQStringList &voiceCodes); private slots: - void slotProcessExited(KProcess* proc); - void slotReceivedStdout(KProcess* proc, char* buffer, int buflen); - void slotReceivedStderr(KProcess* proc, char* buffer, int buflen); - void slotWroteStdin(KProcess* proc); + void slotProcessExited(TDEProcess* proc); + void slotReceivedStdout(TDEProcess* proc, char* buffer, int buflen); + void slotReceivedStderr(TDEProcess* proc, char* buffer, int buflen); + void slotWroteStdin(TDEProcess* proc); private: /** @@ -304,7 +304,7 @@ class FestivalIntProc : public PlugInProc{ /** * Festival process */ - KProcess* m_festProc; + TDEProcess* m_festProc; /** * Synthesis filename. diff --git a/kttsd/plugins/flite/fliteproc.cpp b/kttsd/plugins/flite/fliteproc.cpp index 3f0df60..86b6afa 100644 --- a/kttsd/plugins/flite/fliteproc.cpp +++ b/kttsd/plugins/flite/fliteproc.cpp @@ -111,15 +111,15 @@ void FliteProc::synth( m_fliteProc = 0; } // kdDebug()<< "FliteProc::synth: Creating Flite object" << endl; - m_fliteProc = new KProcess; - connect(m_fliteProc, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotProcessExited(KProcess*))); - connect(m_fliteProc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStdout(KProcess*, char*, int))); - connect(m_fliteProc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStderr(KProcess*, char*, int))); - connect(m_fliteProc, TQT_SIGNAL(wroteStdin(KProcess*)), - this, TQT_SLOT(slotWroteStdin(KProcess* ))); + m_fliteProc = new TDEProcess; + connect(m_fliteProc, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotProcessExited(TDEProcess*))); + connect(m_fliteProc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(m_fliteProc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); + connect(m_fliteProc, TQT_SIGNAL(wroteStdin(TDEProcess*)), + this, TQT_SLOT(slotWroteStdin(TDEProcess* ))); if (synthFilename.isNull()) m_state = psSaying; else @@ -145,7 +145,7 @@ void FliteProc::synth( // Ok, let's rock. m_synthFilename = synthFilename; kdDebug() << "FliteProc::synth: Synthing text: '" << saidText << "' using Flite plug in" << endl; - if (!m_fliteProc->start(KProcess::NotifyOnExit, KProcess::All)) + if (!m_fliteProc->start(TDEProcess::NotifyOnExit, TDEProcess::All)) { kdDebug() << "FliteProc::synth: Error starting Flite process. Is flite in the PATH?" << endl; m_state = psIdle; @@ -197,7 +197,7 @@ void FliteProc::stopText(){ kdDebug() << "FliteProc::stopText: Flite stopped." << endl; } -void FliteProc::slotProcessExited(KProcess*) +void FliteProc::slotProcessExited(TDEProcess*) { kdDebug() << "FliteProc:slotProcessExited: Flite process has exited." << endl; pluginState prevState = m_state; @@ -216,19 +216,19 @@ void FliteProc::slotProcessExited(KProcess*) } } -void FliteProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) +void FliteProc::slotReceivedStdout(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); kdDebug() << "FliteProc::slotReceivedStdout: Received output from Flite: " << buf << endl; } -void FliteProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) +void FliteProc::slotReceivedStderr(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); kdDebug() << "FliteProc::slotReceivedStderr: Received error from Flite: " << buf << endl; } -void FliteProc::slotWroteStdin(KProcess*) +void FliteProc::slotWroteStdin(TDEProcess*) { kdDebug() << "FliteProc::slotWroteStdin: closing Stdin" << endl; m_fliteProc->closeStdin(); diff --git a/kttsd/plugins/flite/fliteproc.h b/kttsd/plugins/flite/fliteproc.h index 0a29314..e472067 100644 --- a/kttsd/plugins/flite/fliteproc.h +++ b/kttsd/plugins/flite/fliteproc.h @@ -31,7 +31,7 @@ // KTTS includes. #include <pluginproc.h> -class KProcess; +class TDEProcess; class FliteProc : public PlugInProc{ Q_OBJECT @@ -150,10 +150,10 @@ class FliteProc : public PlugInProc{ const TQString &fliteExePath); private slots: - void slotProcessExited(KProcess* proc); - void slotReceivedStdout(KProcess* proc, char* buffer, int buflen); - void slotReceivedStderr(KProcess* proc, char* buffer, int buflen); - void slotWroteStdin(KProcess* proc); + void slotProcessExited(TDEProcess* proc); + void slotReceivedStdout(TDEProcess* proc, char* buffer, int buflen); + void slotReceivedStderr(TDEProcess* proc, char* buffer, int buflen); + void slotWroteStdin(TDEProcess* proc); private: @@ -165,7 +165,7 @@ class FliteProc : public PlugInProc{ /** * Flite process */ - KProcess* m_fliteProc; + TDEProcess* m_fliteProc; /** * Synthesis filename. diff --git a/kttsd/plugins/freetts/freettsproc.cpp b/kttsd/plugins/freetts/freettsproc.cpp index c7b2200..4d6c177 100644 --- a/kttsd/plugins/freetts/freettsproc.cpp +++ b/kttsd/plugins/freetts/freettsproc.cpp @@ -102,15 +102,15 @@ void FreeTTSProc::synth( } - m_freettsProc = new KProcess; - connect(m_freettsProc, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotProcessExited(KProcess*))); - connect(m_freettsProc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStdout(KProcess*, char*, int))); - connect(m_freettsProc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStderr(KProcess*, char*, int))); - connect(m_freettsProc, TQT_SIGNAL(wroteStdin(KProcess*)), - this, TQT_SLOT(slotWroteStdin(KProcess* ))); + m_freettsProc = new TDEProcess; + connect(m_freettsProc, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotProcessExited(TDEProcess*))); + connect(m_freettsProc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(m_freettsProc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); + connect(m_freettsProc, TQT_SIGNAL(wroteStdin(TDEProcess*)), + this, TQT_SLOT(slotWroteStdin(TDEProcess* ))); if (synthFilename.isNull()) m_state = psSaying; else @@ -122,7 +122,7 @@ void FreeTTSProc::synth( /// As freetts.jar doesn't seem to like being called from an absolute path, /// we need to strip off the path to freetts.jar and pass it to - /// KProcess::setWorkingDirectory() + /// TDEProcess::setWorkingDirectory() /// We could just strip off 11 characters from the end of the path to freetts.jar, but thats /// not exactly very portable... TQString filename = TQFileInfo(freettsJarPath).baseName().append(TQString(".").append(TQFileInfo(freettsJarPath).extension())); @@ -140,10 +140,10 @@ void FreeTTSProc::synth( m_synthFilename = synthFilename; kdDebug() << "FreeTTSProc::synth: Synthing text: '" << saidText << "' using FreeTTS plug in" << endl; - if (!m_freettsProc->start(KProcess::NotifyOnExit, KProcess::All)) { + if (!m_freettsProc->start(TDEProcess::NotifyOnExit, TDEProcess::All)) { kdDebug() << "FreeTTSProc::synth: Error starting FreeTTS process. Is freetts.jar in the PATH?" << endl; m_state = psIdle; - kdDebug() << "KProcess args: " << argsToTQStringList(m_freettsProc->args()) << endl; + kdDebug() << "TDEProcess args: " << argsToTQStringList(m_freettsProc->args()) << endl; return; } kdDebug()<< "FreeTTSProc:synth: FreeTTS initialized" << endl; @@ -188,7 +188,7 @@ void FreeTTSProc::stopText() { kdDebug() << "FreeTTSProc::stopText: FreeTTS stopped." << endl; } -void FreeTTSProc::slotProcessExited(KProcess*) { +void FreeTTSProc::slotProcessExited(TDEProcess*) { kdDebug() << "FreeTTSProc:slotProcessExited: FreeTTS process has exited." << endl; pluginState prevState = m_state; if (m_waitingStop) { @@ -205,17 +205,17 @@ void FreeTTSProc::slotProcessExited(KProcess*) { } } -void FreeTTSProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) { +void FreeTTSProc::slotReceivedStdout(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); kdDebug() << "FreeTTSProc::slotReceivedStdout: Received output from FreeTTS: " << buf << endl; } -void FreeTTSProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) { +void FreeTTSProc::slotReceivedStderr(TDEProcess*, char* buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); kdDebug() << "FreeTTSProc::slotReceivedStderr: Received error from FreeTTS: " << buf << endl; } -void FreeTTSProc::slotWroteStdin(KProcess*) { +void FreeTTSProc::slotWroteStdin(TDEProcess*) { kdDebug() << "FreeTTSProc::slotWroteStdin: closing Stdin" << endl; m_freettsProc->closeStdin(); } diff --git a/kttsd/plugins/freetts/freettsproc.h b/kttsd/plugins/freetts/freettsproc.h index 54a2f0c..8e1e06f 100644 --- a/kttsd/plugins/freetts/freettsproc.h +++ b/kttsd/plugins/freetts/freettsproc.h @@ -24,7 +24,7 @@ #include <pluginproc.h> -class KProcess; +class TDEProcess; class FreeTTSProc : public PlugInProc{ Q_OBJECT @@ -143,10 +143,10 @@ public: const TQString &freettsJarPath); private slots: - void slotProcessExited(KProcess* proc); - void slotReceivedStdout(KProcess* proc, char* buffer, int buflen); - void slotReceivedStderr(KProcess* proc, char* buffer, int buflen); - void slotWroteStdin(KProcess* proc); + void slotProcessExited(TDEProcess* proc); + void slotReceivedStdout(TDEProcess* proc, char* buffer, int buflen); + void slotReceivedStderr(TDEProcess* proc, char* buffer, int buflen); + void slotWroteStdin(TDEProcess* proc); private: @@ -158,7 +158,7 @@ private: /** * FreeTTS process */ - KProcess* m_freettsProc; + TDEProcess* m_freettsProc; /** * Synthesis filename. diff --git a/kttsd/plugins/hadifix/hadifixconfigui.ui.h b/kttsd/plugins/hadifix/hadifixconfigui.ui.h index ff9d381..fbfa16c 100644 --- a/kttsd/plugins/hadifix/hadifixconfigui.ui.h +++ b/kttsd/plugins/hadifix/hadifixconfigui.ui.h @@ -47,8 +47,8 @@ void HadifixConfigUI::frequencySlider_valueChanged (int sliderValue) { } void HadifixConfigUI::init () { - male = KGlobal::iconLoader()->loadIcon("male", KIcon::Small); - female = KGlobal::iconLoader()->loadIcon("female", KIcon::Small); + male = TDEGlobal::iconLoader()->loadIcon("male", KIcon::Small); + female = TDEGlobal::iconLoader()->loadIcon("female", KIcon::Small); } void HadifixConfigUI::addVoice (const TQString &filename, bool isMale) { diff --git a/kttsd/plugins/hadifix/hadifixproc.cpp b/kttsd/plugins/hadifix/hadifixproc.cpp index d7a7514..a217e1e 100644 --- a/kttsd/plugins/hadifix/hadifixproc.cpp +++ b/kttsd/plugins/hadifix/hadifixproc.cpp @@ -197,16 +197,16 @@ void HadifixProc::synth(TQString text, *(d->hadifixProc) << command; // Connect signals from process. - connect(d->hadifixProc, TQT_SIGNAL(processExited(KProcess *)), - this, TQT_SLOT(slotProcessExited(KProcess *))); - connect(d->hadifixProc, TQT_SIGNAL(wroteStdin(KProcess *)), - this, TQT_SLOT(slotWroteStdin(KProcess *))); + connect(d->hadifixProc, TQT_SIGNAL(processExited(TDEProcess *)), + this, TQT_SLOT(slotProcessExited(TDEProcess *))); + connect(d->hadifixProc, TQT_SIGNAL(wroteStdin(TDEProcess *)), + this, TQT_SLOT(slotWroteStdin(TDEProcess *))); // Store off name of wave file to be generated. d->synthFilename = waveFilename; // Set state, busy synthing. d->state = psSynthing; - if (!d->hadifixProc->start(KProcess::NotifyOnExit, KProcess::Stdin)) + if (!d->hadifixProc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdin)) { kdDebug() << "HadifixProc::synth: start process failed." << endl; d->state = psIdle; @@ -316,7 +316,7 @@ bool HadifixProc::supportsAsync() { return true; } bool HadifixProc::supportsSynth() { return true; } -void HadifixProc::slotProcessExited(KProcess*) +void HadifixProc::slotProcessExited(TDEProcess*) { // kdDebug() << "HadifixProc:hadifixProcExited: Hadifix process has exited." << endl; pluginState prevState = d->state; @@ -332,7 +332,7 @@ void HadifixProc::slotProcessExited(KProcess*) } } -void HadifixProc::slotWroteStdin(KProcess*) +void HadifixProc::slotWroteStdin(TDEProcess*) { // kdDebug() << "HadifixProc::slotWroteStdin: closing Stdin" << endl; d->hadifixProc->closeStdin(); @@ -359,14 +359,14 @@ HadifixProc::VoiceGender HadifixProc::determineGender(TQString mbrola, TQString HadifixProc speech; KShellProcess proc; proc << command; - connect(&proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), - &speech, TQT_SLOT(receivedStdout(KProcess *, char *, int))); - connect(&proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), - &speech, TQT_SLOT(receivedStderr(KProcess *, char *, int))); + connect(&proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), + &speech, TQT_SLOT(receivedStdout(TDEProcess *, char *, int))); + connect(&proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), + &speech, TQT_SLOT(receivedStderr(TDEProcess *, char *, int))); speech.stdOut = TQString(); speech.stdErr = TQString(); - proc.start (KProcess::Block, KProcess::AllOutput); + proc.start (TDEProcess::Block, TDEProcess::AllOutput); VoiceGender result; if (!speech.stdErr.isNull() && !speech.stdErr.isEmpty()) { @@ -388,11 +388,11 @@ HadifixProc::VoiceGender HadifixProc::determineGender(TQString mbrola, TQString return result; } -void HadifixProc::receivedStdout (KProcess *, char *buffer, int buflen) { +void HadifixProc::receivedStdout (TDEProcess *, char *buffer, int buflen) { stdOut += TQString::fromLatin1(buffer, buflen); } -void HadifixProc::receivedStderr (KProcess *, char *buffer, int buflen) { +void HadifixProc::receivedStderr (TDEProcess *, char *buffer, int buflen) { stdErr += TQString::fromLatin1(buffer, buflen); } @@ -407,5 +407,5 @@ void HadifixProc::receivedStderr (KProcess *, char *buffer, int buflen) { */ TQString HadifixProc::getSsmlXsltFilename() { - return KGlobal::dirs()->resourceDirs("data").last() + "kttsd/hadifix/xslt/SSMLtoTxt2pho.xsl"; + return TDEGlobal::dirs()->resourceDirs("data").last() + "kttsd/hadifix/xslt/SSMLtoTxt2pho.xsl"; } diff --git a/kttsd/plugins/hadifix/hadifixproc.h b/kttsd/plugins/hadifix/hadifixproc.h index fb27824..98bdf42 100644 --- a/kttsd/plugins/hadifix/hadifixproc.h +++ b/kttsd/plugins/hadifix/hadifixproc.h @@ -22,7 +22,7 @@ #include <pluginproc.h> -class KProcess; +class TDEProcess; class HadifixProcPrivate; class HadifixProc : public PlugInProc{ @@ -188,11 +188,11 @@ class HadifixProc : public PlugInProc{ virtual TQString getSsmlXsltFilename(); private slots: - void slotProcessExited(KProcess*); - void slotWroteStdin(KProcess*); + void slotProcessExited(TDEProcess*); + void slotWroteStdin(TDEProcess*); - void receivedStdout (KProcess *, char *buffer, int buflen); - void receivedStderr (KProcess *, char *buffer, int buflen); + void receivedStdout (TDEProcess *, char *buffer, int buflen); + void receivedStderr (TDEProcess *, char *buffer, int buflen); private: HadifixProcPrivate *d; |