summaryrefslogtreecommitdiffstats
path: root/kttsd/plugins/epos
diff options
context:
space:
mode:
Diffstat (limited to 'kttsd/plugins/epos')
-rw-r--r--kttsd/plugins/epos/CMakeLists.txt39
-rw-r--r--kttsd/plugins/epos/eposconf.cpp56
-rw-r--r--kttsd/plugins/epos/eposconf.h4
-rw-r--r--kttsd/plugins/epos/eposconfwidget.ui16
-rw-r--r--kttsd/plugins/epos/eposplugin.cpp2
-rw-r--r--kttsd/plugins/epos/eposproc.cpp34
-rw-r--r--kttsd/plugins/epos/eposproc.h4
-rw-r--r--kttsd/plugins/epos/kttsd_eposplugin.desktop82
8 files changed, 95 insertions, 142 deletions
diff --git a/kttsd/plugins/epos/CMakeLists.txt b/kttsd/plugins/epos/CMakeLists.txt
new file mode 100644
index 0000000..6e79bca
--- /dev/null
+++ b/kttsd/plugins/epos/CMakeLists.txt
@@ -0,0 +1,39 @@
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/kttsd/libkttsd
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### libkttsd_eposplugin (kpart)
+
+tde_add_kpart( libkttsd_eposplugin AUTOMOC
+
+ SOURCES
+ eposconfwidget.ui
+ eposconf.cpp
+ eposproc.cpp
+ eposplugin.cpp
+ LINK
+ kttsd-shared
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+tde_create_translated_desktop(
+ SOURCE kttsd_eposplugin.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR kttsd-desktops
+)
diff --git a/kttsd/plugins/epos/eposconf.cpp b/kttsd/plugins/epos/eposconf.cpp
index 40f9d1a..9340fa5 100644
--- a/kttsd/plugins/epos/eposconf.cpp
+++ b/kttsd/plugins/epos/eposconf.cpp
@@ -1,4 +1,4 @@
-/***************************************************** vim:set ts=4 sw=4 sts=4:
+/*
Configuration widget and functions for Epos plug in
-------------------
Copyright:
@@ -68,30 +68,30 @@ EposConf::EposConf( TQWidget* parent, const char* name, const TQStringList& /*ar
defaults();
- connect(m_widget->eposServerPath, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(configChanged()));
- connect(m_widget->eposClientPath, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(configChanged()));
- connect(m_widget->timeBox, TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(timeBox_valueChanged(int)));
- connect(m_widget->frequencyBox, TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(frequencyBox_valueChanged(int)));
- connect(m_widget->timeSlider, TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(timeSlider_valueChanged(int)));
- connect(m_widget->frequencySlider, TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(frequencySlider_valueChanged(int)));
- connect(m_widget->timeBox, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged()));
- connect(m_widget->timeSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged()));
- connect(m_widget->frequencyBox, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged()));
- connect(m_widget->frequencySlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged()));
- connect(m_widget->characterCodingBox, TQT_SIGNAL(activated(const TQString&)),
- this, TQT_SLOT(configChanged()));
- connect(m_widget->eposServerOptions, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(configChanged()));
- connect(m_widget->eposClientOptions, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(configChanged()));
- connect(m_widget->eposTest, TQT_SIGNAL(clicked()),
- this, TQT_SLOT(slotEposTest_clicked()));
+ connect(m_widget->eposServerPath, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(configChanged()));
+ connect(m_widget->eposClientPath, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(configChanged()));
+ connect(m_widget->timeBox, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(timeBox_valueChanged(int)));
+ connect(m_widget->frequencyBox, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(frequencyBox_valueChanged(int)));
+ connect(m_widget->timeSlider, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(timeSlider_valueChanged(int)));
+ connect(m_widget->frequencySlider, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(frequencySlider_valueChanged(int)));
+ connect(m_widget->timeBox, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(configChanged()));
+ connect(m_widget->timeSlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(configChanged()));
+ connect(m_widget->frequencyBox, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(configChanged()));
+ connect(m_widget->frequencySlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(configChanged()));
+ connect(m_widget->characterCodingBox, TQ_SIGNAL(activated(const TQString&)),
+ this, TQ_SLOT(configChanged()));
+ connect(m_widget->eposServerOptions, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(configChanged()));
+ connect(m_widget->eposClientOptions, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(configChanged()));
+ connect(m_widget->eposTest, TQ_SIGNAL(clicked()),
+ this, TQ_SLOT(slotEposTest_clicked()));
}
/** Destructor */
@@ -214,7 +214,7 @@ void EposConf::slotEposTest_clicked()
else
{
m_eposProc = new EposProc();
- connect (m_eposProc, TQT_SIGNAL(stopped()), this, TQT_SLOT(slotSynthStopped()));
+ connect (m_eposProc, TQ_SIGNAL(stopped()), this, TQ_SLOT(slotSynthStopped()));
}
// Create a temp file name for the wave file.
KTempFile tempFile (locateLocal("tmp", "eposplugin-"), ".wav");
@@ -234,7 +234,7 @@ void EposConf::slotEposTest_clicked()
// TODO: Whenever server options change, the server must be restarted.
// TODO: Do codec names contain non-ASCII characters?
- connect (m_eposProc, TQT_SIGNAL(synthFinished()), this, TQT_SLOT(slotSynthFinished()));
+ connect (m_eposProc, TQ_SIGNAL(synthFinished()), this, TQ_SLOT(slotSynthFinished()));
m_eposProc->synth(
testMsg,
tmpWaveFile,
@@ -251,7 +251,7 @@ void EposConf::slotEposTest_clicked()
// Display progress dialog modally. Processing continues when plugin signals synthFinished,
// or if user clicks Cancel button.
m_progressDlg->exec();
- disconnect (m_eposProc, TQT_SIGNAL(synthFinished()), this, TQT_SLOT(slotSynthFinished()));
+ disconnect (m_eposProc, TQ_SIGNAL(synthFinished()), this, TQ_SLOT(slotSynthFinished()));
if (m_progressDlg->wasCancelled()) m_eposProc->stopText();
delete m_progressDlg;
m_progressDlg = 0;
diff --git a/kttsd/plugins/epos/eposconf.h b/kttsd/plugins/epos/eposconf.h
index 0e19a8a..9f5e6e8 100644
--- a/kttsd/plugins/epos/eposconf.h
+++ b/kttsd/plugins/epos/eposconf.h
@@ -1,4 +1,4 @@
-/***************************************************** vim:set ts=4 sw=4 sts=4:
+/*
Configuration widget and functions for Epos plug in
-------------------
Copyright:
@@ -42,7 +42,7 @@ class EposProc;
class KProgressDialog;
class EposConf : public PlugInConf {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kttsd/plugins/epos/eposconfwidget.ui b/kttsd/plugins/epos/eposconfwidget.ui
index c66a081..f93ed72 100644
--- a/kttsd/plugins/epos/eposconfwidget.ui
+++ b/kttsd/plugins/epos/eposconfwidget.ui
@@ -593,18 +593,10 @@
</tabstops>
<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">kcombobox.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
+ <include location="global" impldecl="in implementation">knuminput.h</include>
</includes>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kcombobox.h</includehint>
- <includehint>knuminput.h</includehint>
- <includehint>knuminput.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
</UI>
diff --git a/kttsd/plugins/epos/eposplugin.cpp b/kttsd/plugins/epos/eposplugin.cpp
index 9bc0bee..02bccef 100644
--- a/kttsd/plugins/epos/eposplugin.cpp
+++ b/kttsd/plugins/epos/eposplugin.cpp
@@ -1,4 +1,4 @@
-/***************************************************** vim:set ts=4 sw=4 sts=4:
+/*
Generating the factories so Epos can be used as plug in.
-------------------
Copyright:
diff --git a/kttsd/plugins/epos/eposproc.cpp b/kttsd/plugins/epos/eposproc.cpp
index 137314d..27d96f0 100644
--- a/kttsd/plugins/epos/eposproc.cpp
+++ b/kttsd/plugins/epos/eposproc.cpp
@@ -1,4 +1,4 @@
-/***************************************************** vim:set ts=4 sw=4 sts=4:
+/*
eposproc.cpp
Main speaking functions for the Epos Plug in
-------------------
@@ -89,10 +89,10 @@ bool EposProc::init(TDEConfig* config, const TQString& configGroup)
*m_eposServerProc << m_eposServerExePath;
if (!m_eposServerOptions.isEmpty())
*m_eposServerProc << m_eposServerOptions;
- 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)));
+ connect(m_eposServerProc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this, TQ_SLOT(slotReceivedStdout(TDEProcess*, char*, int)));
+ connect(m_eposServerProc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
+ this, TQ_SLOT(slotReceivedStderr(TDEProcess*, char*, int)));
m_eposServerProc->start(TDEProcess::DontCare, TDEProcess::AllOutput);
}
@@ -173,10 +173,10 @@ void EposProc::synth(
*m_eposServerProc << eposServerExePath;
if (!eposServerOptions.isEmpty())
*m_eposServerProc << eposServerOptions;
- 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)));
+ connect(m_eposServerProc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this, TQ_SLOT(slotReceivedStdout(TDEProcess*, char*, int)));
+ connect(m_eposServerProc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
+ this, TQ_SLOT(slotReceivedStderr(TDEProcess*, char*, int)));
m_eposServerProc->start(TDEProcess::DontCare, TDEProcess::AllOutput);
kdDebug() << "EposProc:: Epos server process started" << endl;
}
@@ -234,14 +234,14 @@ void EposProc::synth(
*m_eposProc << "-"; // Read from StdIn.
if (!suggestedFilename.isEmpty())
*m_eposProc << " >" + suggestedFilename;
- 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* )));
+ connect(m_eposProc, TQ_SIGNAL(processExited(TDEProcess*)),
+ this, TQ_SLOT(slotProcessExited(TDEProcess*)));
+ connect(m_eposProc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this, TQ_SLOT(slotReceivedStdout(TDEProcess*, char*, int)));
+ connect(m_eposProc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
+ this, TQ_SLOT(slotReceivedStderr(TDEProcess*, char*, int)));
+ connect(m_eposProc, TQ_SIGNAL(wroteStdin(TDEProcess*)),
+ this, TQ_SLOT(slotWroteStdin(TDEProcess* )));
if (suggestedFilename.isEmpty())
m_state = psSaying;
else
diff --git a/kttsd/plugins/epos/eposproc.h b/kttsd/plugins/epos/eposproc.h
index 4c13d83..6111413 100644
--- a/kttsd/plugins/epos/eposproc.h
+++ b/kttsd/plugins/epos/eposproc.h
@@ -1,4 +1,4 @@
-/***************************************************** vim:set ts=4 sw=4 sts=4:
+/*
eposproc.h
Main speaking functions for the Epos Plug in
-------------------
@@ -36,7 +36,7 @@ class TDEProcess;
class TQTextCodec;
class EposProc : public PlugInProc{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kttsd/plugins/epos/kttsd_eposplugin.desktop b/kttsd/plugins/epos/kttsd_eposplugin.desktop
index ad604d7..483f2f2 100644
--- a/kttsd/plugins/epos/kttsd_eposplugin.desktop
+++ b/kttsd/plugins/epos/kttsd_eposplugin.desktop
@@ -1,86 +1,8 @@
[Desktop Entry]
Name=Epos TTS Synthesis System
-Name[ca]=Sistema de síntesi Epos TTS
-Name[cs]=Epos TTS
-Name[da]=Epos TTS Synthesis-system
-Name[de]=Epos TTS-Synthese-System
-Name[el]=Σύστημα σύνθεσης Epos TTS
-Name[es]=Sistema de síntesis Epos TTS
-Name[et]=Kõnesünteesisüsteem Epos TTS
-Name[eu]=Epos TTS sintesi-sistema
-Name[fa]=سیستم ترکیب‌دهی Epos TTS
-Name[fi]=Epos TTS -syntetisoijasysteemi
-Name[fr]=Système de synthèse Epos TTS
-Name[ga]=Córas Sintéise TTS Epos
-Name[gl]=Sistema de Síntese de TTS Epos
-Name[hu]=Epos szövegfelolvasó motor
-Name[it]=Sistema di sintesi TTS Epos
-Name[ja]=Epos TTS シンセサイズシステム
-Name[ka]=Epos TTS სინთეზის სისტემა
-Name[km]=ប្រព័ន្ធ​សង្គ្រោះ Epos TTS
-Name[mk]=Epos TTS систем за синтеза
-Name[ms]=Sistem Sintesis Epos TTS
-Name[nb]=Epos TTT syntesesystem
-Name[nds]=Epos Blicksnuut
-Name[ne]=Epos TTS सिन्थेसिस प्रणाली
-Name[nl]=Epos TTS Synthesis-systeem
-Name[pa]=Epos TTS ਸੰਸਲੇਸ਼ਣ ਸਿਸਟਮ
-Name[pl]=System syntezy mowy Epos
-Name[pt]=Sistema de Síntese Epos TTS
-Name[pt_BR]=Sistema de Sintetizador de Fala Epos
-Name[sk]=Systém Epos TTS Synthesis
-Name[sl]=Sistem sinteze besedila v govor Epos
-Name[sr]=Систем за синтезу Epos TTS
-Name[sr@Latn]=Sistem za sintezu Epos TTS
-Name[sv]=Epos TTS syntessystem
-Name[ta]=Epos TTS கூட்டிணைப்பு அமைப்பு
-Name[tg]=Системаи Синтезиси Epos TTS
-Name[tr]=Epos TTS Sentezleme Sistemi
-Name[vi]=Hệ thống Tổng hợp Văn bản sang Tiếng nói Epos
-Name[zh_TW]=Epos TTS 合成系統
+
Comment=Epos TTS speech synthesizer
-Comment[bg]=Синтезатор на глас Epos TTS
-Comment[ca]=Sintetitzador de veu Epos TTS
-Comment[cs]=Hlasový syntetizér Epos TTS
-Comment[da]=Epos TTS tale-synthesizer
-Comment[de]=Epos TTS-Sprachsynthesizer
-Comment[el]=Συνθέτης ομιλίας Epos TTS
-Comment[es]=Sintetizador de texto a voz Epos TTS
-Comment[et]=Kõnesüntesaator Epos TTS
-Comment[eu]=Epos TTS hizketa-sintetizadorea
-Comment[fa]=ترکیب‌دهندۀ گفتار Epos TTS
-Comment[fi]=Epos TTS -puhesyntetisaattori
-Comment[fr]=Synthèse vocale Epos TTS
-Comment[ga]=Sintéiseoir cainte TTS Epos
-Comment[gl]=Sintetizador de fala TTS Epos
-Comment[hu]=Epos TTS beszédszintetizátor
-Comment[is]=Epos TTS talgerfill
-Comment[it]=Sintetizzatore vocale TTS Epos
-Comment[ja]=Epos TTS スピーチシンセサイザ
-Comment[ka]=Epos TTS სიტყვის სინთეზატორი
-Comment[km]=កម្មវិធី​សង្គ្រោះ​ការនិយាយ Epos TTS
-Comment[mk]=Epos TTS синтетизатор на говор
-Comment[ms]=Pensintesis tutur Epos TTS
-Comment[nb]=Epos TTT talesyntetisering
-Comment[nds]=Blicksnuut vun Epos
-Comment[ne]=Epos TTS संवाद सिन्थेसाइजर
-Comment[nl]=Epos TTS spraaksynthesizer
-Comment[pa]=Epos TTS ਬੋਲੀ ਸੰਸਲੇਸ਼ਣ
-Comment[pl]=Syntezator mowy Epos
-Comment[pt]=O sintetizador de fala Epos TTS
-Comment[pt_BR]=Sistema de Sintetizador de Fala Epos
-Comment[ru]=Синтезатор речи Epos TTS
-Comment[sk]=Syntetizátor reči Epos TTS
-Comment[sl]=Sintetizator besedila v govor Epos
-Comment[sr]=Синтетизатор говора Epos TTS
-Comment[sr@Latn]=Sintetizator govora Epos TTS
-Comment[sv]=Epos TTS talsyntes
-Comment[ta]=Epos TTS பேச்சு கூட்டிணைப்பான்
-Comment[tg]=Таҳлилгари овози Epos TTS
-Comment[tr]=Epos TTS konuşma sentezleyicisi
-Comment[uk]=Синтезатор мовлення Epos TTS
-Comment[vi]=Trình tổng hợp Văn bản sang Tiếng nói Epos
-Comment[zh_TW]=Epos TTS 語音合成器
+
Type=Service
X-TDE-ServiceTypes=KTTSD/SynthPlugin
X-TDE-Library=libkttsd_eposplugin