diff options
Diffstat (limited to 'kttsd/plugins/freetts')
| -rw-r--r-- | kttsd/plugins/freetts/CMakeLists.txt | 38 | ||||
| -rw-r--r-- | kttsd/plugins/freetts/README | 2 | ||||
| -rw-r--r-- | kttsd/plugins/freetts/freettsconf.cpp | 14 | ||||
| -rw-r--r-- | kttsd/plugins/freetts/freettsconf.h | 2 | ||||
| -rw-r--r-- | kttsd/plugins/freetts/freettsconfigwidget.ui | 8 | ||||
| -rw-r--r-- | kttsd/plugins/freetts/freettsproc.cpp | 20 | ||||
| -rw-r--r-- | kttsd/plugins/freetts/freettsproc.h | 2 | ||||
| -rw-r--r-- | kttsd/plugins/freetts/kttsd_freettsplugin.desktop | 46 |
8 files changed, 62 insertions, 70 deletions
diff --git a/kttsd/plugins/freetts/CMakeLists.txt b/kttsd/plugins/freetts/CMakeLists.txt new file mode 100644 index 0000000..eb17887 --- /dev/null +++ b/kttsd/plugins/freetts/CMakeLists.txt @@ -0,0 +1,38 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kttsd/libkttsd + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### libkttsd_freettsplugin (kpart) + +tde_add_kpart( libkttsd_freettsplugin AUTOMOC + + SOURCES + freettsconfigwidget.ui + freettsconf.cpp + freettsproc.cpp + freettsplugin.cpp + LINK + kttsd-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +tde_create_translated_desktop( + SOURCE kttsd_freettsplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR kttsd-desktops +) diff --git a/kttsd/plugins/freetts/README b/kttsd/plugins/freetts/README index d4706b9..ee2e804 100644 --- a/kttsd/plugins/freetts/README +++ b/kttsd/plugins/freetts/README @@ -2,5 +2,5 @@ This is the directory containing the FreeTTS plug in. If you intend to edit the GUI (freettsconfig.ui) you will have to first copy kttsd/libkttsd/pluginconf.h to a standard include directory like $TDEDIR/include/ since the interface has been tweaked to derive -from PlugInConf instead of QWidget and Qt Designer refuses to open it +from PlugInConf instead of TQWidget and Qt Designer refuses to open it if the header is not properly place. diff --git a/kttsd/plugins/freetts/freettsconf.cpp b/kttsd/plugins/freetts/freettsconf.cpp index 5be75f0..b17eaed 100644 --- a/kttsd/plugins/freetts/freettsconf.cpp +++ b/kttsd/plugins/freetts/freettsconf.cpp @@ -26,7 +26,7 @@ // KDE includes. #include <kdialog.h> #include <tdetempfile.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h> #include <tdemessagebox.h> #include <tdelocale.h> #include <kprogress.h> @@ -55,9 +55,9 @@ FreeTTSConf::FreeTTSConf( TQWidget* parent, const char* name, const TQStringList defaults(); - connect(m_widget->freettsPath, TQT_SIGNAL(textChanged(const TQString&)), - this, TQT_SLOT(configChanged())); - connect(m_widget->freettsTest, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFreeTTSTest_clicked())); + connect(m_widget->freettsPath, TQ_SIGNAL(textChanged(const TQString&)), + this, TQ_SLOT(configChanged())); + connect(m_widget->freettsTest, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFreeTTSTest_clicked())); } /** Destructor */ @@ -163,7 +163,7 @@ void FreeTTSConf::slotFreeTTSTest_clicked() else { m_freettsProc = new FreeTTSProc(); - connect (m_freettsProc, TQT_SIGNAL(stopped()), this, TQT_SLOT(slotSynthStopped())); + connect (m_freettsProc, TQ_SIGNAL(stopped()), this, TQ_SLOT(slotSynthStopped())); } // Create a temp file name for the wave file. KTempFile tempFile (locateLocal("tmp", "freettsplugin-"), ".wav"); @@ -183,7 +183,7 @@ void FreeTTSConf::slotFreeTTSTest_clicked() // I think FreeTTS only officialy supports English, but if anyone knows of someone // whos built up a different language lexicon and has it working with FreeTTS gimme an email at ceruleanblaze@gmail.com - connect (m_freettsProc, TQT_SIGNAL(synthFinished()), this, TQT_SLOT(slotSynthFinished())); + connect (m_freettsProc, TQ_SIGNAL(synthFinished()), this, TQ_SLOT(slotSynthFinished())); m_freettsProc->synth( testMsg, tmpWaveFile, @@ -192,7 +192,7 @@ void FreeTTSConf::slotFreeTTSTest_clicked() // Display progress dialog modally. Processing continues when plugin signals synthFinished, // or if user clicks Cancel button. m_progressDlg->exec(); - disconnect (m_freettsProc, TQT_SIGNAL(synthFinished()), this, TQT_SLOT(slotSynthFinished())); + disconnect (m_freettsProc, TQ_SIGNAL(synthFinished()), this, TQ_SLOT(slotSynthFinished())); if (m_progressDlg->wasCancelled()) m_freettsProc->stopText(); delete m_progressDlg; m_progressDlg = 0; diff --git a/kttsd/plugins/freetts/freettsconf.h b/kttsd/plugins/freetts/freettsconf.h index 37bbe2c..8337bf6 100644 --- a/kttsd/plugins/freetts/freettsconf.h +++ b/kttsd/plugins/freetts/freettsconf.h @@ -32,7 +32,7 @@ class TQStringList; class KProgressDialog; class FreeTTSConf : public PlugInConf { - Q_OBJECT + TQ_OBJECT public: diff --git a/kttsd/plugins/freetts/freettsconfigwidget.ui b/kttsd/plugins/freetts/freettsconfigwidget.ui index e93f3ba..91d9988 100644 --- a/kttsd/plugins/freetts/freettsconfigwidget.ui +++ b/kttsd/plugins/freetts/freettsconfigwidget.ui @@ -189,12 +189,8 @@ </customwidgets> <includes> <include location="global" impldecl="in declaration">kurlrequester.h</include> - <include location="global" impldecl="in implementation">kurlrequester.h</include> + <include location="global" impldecl="in implementation">klineedit.h</include> + <include location="global" impldecl="in implementation">kpushbutton.h</include> </includes> <layoutdefaults spacing="6" margin="11"/> -<includehints> - <includehint>kurlrequester.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> -</includehints> </UI> diff --git a/kttsd/plugins/freetts/freettsproc.cpp b/kttsd/plugins/freetts/freettsproc.cpp index 95bcd8a..6295dc6 100644 --- a/kttsd/plugins/freetts/freettsproc.cpp +++ b/kttsd/plugins/freetts/freettsproc.cpp @@ -21,8 +21,8 @@ #include <kdebug.h> #include <tdeconfig.h> -#include <kstandarddirs.h> -#include <kprocess.h> +#include <tdestandarddirs.h> +#include <tdeprocess.h> #include "freettsproc.h" @@ -103,14 +103,14 @@ void FreeTTSProc::synth( } 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* ))); + connect(m_freettsProc, TQ_SIGNAL(processExited(TDEProcess*)), + this, TQ_SLOT(slotProcessExited(TDEProcess*))); + connect(m_freettsProc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQ_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(m_freettsProc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQ_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); + connect(m_freettsProc, TQ_SIGNAL(wroteStdin(TDEProcess*)), + this, TQ_SLOT(slotWroteStdin(TDEProcess* ))); if (synthFilename.isNull()) m_state = psSaying; else diff --git a/kttsd/plugins/freetts/freettsproc.h b/kttsd/plugins/freetts/freettsproc.h index 4a11836..1ea3813 100644 --- a/kttsd/plugins/freetts/freettsproc.h +++ b/kttsd/plugins/freetts/freettsproc.h @@ -27,7 +27,7 @@ class TDEProcess; class FreeTTSProc : public PlugInProc{ - Q_OBJECT + TQ_OBJECT public: diff --git a/kttsd/plugins/freetts/kttsd_freettsplugin.desktop b/kttsd/plugins/freetts/kttsd_freettsplugin.desktop index 423baae..f65fb70 100644 --- a/kttsd/plugins/freetts/kttsd_freettsplugin.desktop +++ b/kttsd/plugins/freetts/kttsd_freettsplugin.desktop @@ -1,50 +1,8 @@ [Desktop Entry] Name=FreeTTS -Name[tr]=Freetts -Name[vi]=Văn bản sang Tiếng nói Tự do + Comment=FreeTTS speech synthesizer -Comment[bg]=Синтезатор на глас FreeTTS -Comment[ca]=Sintetitzador de veu FreeTTS -Comment[cs]=Hlasový syntetizér FreeTTS -Comment[da]=FreeTTS tale-synthesizer -Comment[de]=FreeTTS Sprachsynthesizer -Comment[el]=Συνθέτης ομιλίας FreeTTS -Comment[es]=Sintetizador de texto a voz FreeTTS -Comment[et]=Kõnesüntesaator FreeTTS -Comment[eu]=FreeTTS hizketa-sintetizadorea -Comment[fa]=ترکیبدهندۀ گفتار FreeTTS -Comment[fi]=FreeTTS puhesyntetisaattori -Comment[fr]=Synthèse vocale FreeTTS -Comment[ga]=Sintéiseoir cainte FreeTTS -Comment[gl]=Sintetizador de voces FreeTTS -Comment[hu]=FreeTTS beszédszintetizátor -Comment[is]=FreeTTS talgerfill -Comment[it]=Sintetizzatore vocale FreeTTS -Comment[ja]=FreeTTS スピーチシンセサイザ -Comment[ka]=FreeTTS ხმის სინთეზატორი -Comment[km]=កម្មវិធីសង្គ្រោះការនិយាយ FreeTTS -Comment[mk]=FreeTTS синтетизатор на говор -Comment[ms]=Pensintesis tutur FreeTTS -Comment[nb]=FreeTTS talesyntetisering -Comment[nds]=Blicksnuut FreeTTS -Comment[ne]=FreeTTS संवाद सिन्थेसाइजर -Comment[nl]=FreeTTS spraaksynthesizer -Comment[pa]=FreeTTS ਬੋਲੀ ਸੰਸਲੇਸ਼ਕ -Comment[pl]=Syntezator mowy FreeTTS -Comment[pt]=O sintetizador de fala FreeTTS -Comment[pt_BR]=Sintetizador de fala FreeTTS -Comment[ru]=Синтезатор речи FreeTTS -Comment[sk]=Syntetizátor reči FreeTTS -Comment[sl]=Sintetizator govora FreeTTS -Comment[sr]=Синтетизатор говора FreeTTS -Comment[sr@Latn]=Sintetizator govora FreeTTS -Comment[sv]=FreeTTS talsyntes -Comment[ta]=FreeTTS பேச்சு கூட்டிணைப்பான் -Comment[tg]=Таҳлилгари овози FreeTTS -Comment[tr]=FreeTTS konuşma bireştirici -Comment[uk]=Синтезатор мовлення FreeTTS -Comment[vi]=Trình tổng hợp tiếng nói Tự do -Comment[zh_TW]=FreeTTS 語音合成器 + Type=Service X-TDE-ServiceTypes=KTTSD/SynthPlugin X-TDE-Library=libkttsd_freettsplugin |
