summaryrefslogtreecommitdiffstats
path: root/kttsd/plugins/hadifix
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-11 10:29:46 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 20:23:41 +0900
commit79f019f19e44c3daa3b60d1c983690045cf4db11 (patch)
tree1f8afd6f3f3e99dc9cae0c06a826474fda0af793 /kttsd/plugins/hadifix
parentcb50533891243fbaa8ec7dfd3bd39a0a3a985ff7 (diff)
downloadtdeaccessibility-79f019f19e44c3daa3b60d1c983690045cf4db11.tar.gz
tdeaccessibility-79f019f19e44c3daa3b60d1c983690045cf4db11.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit c04ba2b3810f5a0187b3ca3b89661d0befca9e08)
Diffstat (limited to 'kttsd/plugins/hadifix')
-rw-r--r--kttsd/plugins/hadifix/hadifixconf.cpp18
-rw-r--r--kttsd/plugins/hadifix/hadifixproc.cpp16
2 files changed, 17 insertions, 17 deletions
diff --git a/kttsd/plugins/hadifix/hadifixconf.cpp b/kttsd/plugins/hadifix/hadifixconf.cpp
index 9b86384..7f0b51f 100644
--- a/kttsd/plugins/hadifix/hadifixconf.cpp
+++ b/kttsd/plugins/hadifix/hadifixconf.cpp
@@ -215,12 +215,12 @@ HadifixConf::HadifixConf( TQWidget* parent, const char* name, const TQStringList
TQString file = locate("data", "LICENSES/LGPL_V2");
i18n("This plugin is distributed under the terms of the GPL v2 or later.");
- connect(d->configWidget->voiceButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(voiceButton_clicked()));
- connect(d->configWidget->testButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(testButton_clicked()));
- connect(d->configWidget, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(configChanged (bool)));
- connect(d->configWidget->characterCodingBox, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(configChanged()));
- connect(d->configWidget->voiceCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(voiceCombo_activated(int)));
+ connect(d->configWidget->voiceButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(voiceButton_clicked()));
+ connect(d->configWidget->testButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(testButton_clicked()));
+ connect(d->configWidget, TQ_SIGNAL(changed(bool)), this, TQ_SLOT(configChanged (bool)));
+ connect(d->configWidget->characterCodingBox, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(configChanged()));
+ connect(d->configWidget->voiceCombo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(voiceCombo_activated(int)));
d->initializeCharacterCodes();
d->initializeVoices();
d->setDefaults();
@@ -330,7 +330,7 @@ void HadifixConf::testButton_clicked () {
else
{
d->hadifixProc = new HadifixProc();
- connect (d->hadifixProc, TQT_SIGNAL(stopped()), this, TQT_SLOT(slotSynthStopped()));
+ connect (d->hadifixProc, TQ_SIGNAL(stopped()), this, TQ_SLOT(slotSynthStopped()));
}
// Create a temp file name for the wave file.
KTempFile tempFile (locateLocal("tmp", "hadifixplugin-"), ".wav");
@@ -354,7 +354,7 @@ void HadifixConf::testButton_clicked () {
// TQString testMsg = "K D E ist eine moderne grafische Arbeitsumgebung für UNIX-Computer.";
TQString testMsg = testMessage(d->languageCode);
- connect (d->hadifixProc, TQT_SIGNAL(synthFinished()), this, TQT_SLOT(slotSynthFinished()));
+ connect (d->hadifixProc, TQ_SIGNAL(synthFinished()), this, TQ_SLOT(slotSynthFinished()));
d->hadifixProc->synth (testMsg,
realFilePath(d->configWidget->hadifixURL->url()),
d->configWidget->isMaleVoice(),
@@ -369,7 +369,7 @@ void HadifixConf::testButton_clicked () {
// Display progress dialog modally. Processing continues when plugin signals synthFinished,
// or if user clicks Cancel button.
d->progressDlg->exec();
- disconnect (d->hadifixProc, TQT_SIGNAL(synthFinished()), this, TQT_SLOT(slotSynthFinished()));
+ disconnect (d->hadifixProc, TQ_SIGNAL(synthFinished()), this, TQ_SLOT(slotSynthFinished()));
if (d->progressDlg->wasCancelled()) d->hadifixProc->stopText();
delete d->progressDlg;
d->progressDlg = 0;
diff --git a/kttsd/plugins/hadifix/hadifixproc.cpp b/kttsd/plugins/hadifix/hadifixproc.cpp
index 3f2899f..51b1d24 100644
--- a/kttsd/plugins/hadifix/hadifixproc.cpp
+++ b/kttsd/plugins/hadifix/hadifixproc.cpp
@@ -197,10 +197,10 @@ void HadifixProc::synth(TQString text,
*(d->hadifixProc) << command;
// Connect signals from process.
- connect(d->hadifixProc, TQT_SIGNAL(processExited(TDEProcess *)),
- this, TQT_SLOT(slotProcessExited(TDEProcess *)));
- connect(d->hadifixProc, TQT_SIGNAL(wroteStdin(TDEProcess *)),
- this, TQT_SLOT(slotWroteStdin(TDEProcess *)));
+ connect(d->hadifixProc, TQ_SIGNAL(processExited(TDEProcess *)),
+ this, TQ_SLOT(slotProcessExited(TDEProcess *)));
+ connect(d->hadifixProc, TQ_SIGNAL(wroteStdin(TDEProcess *)),
+ this, TQ_SLOT(slotWroteStdin(TDEProcess *)));
// Store off name of wave file to be generated.
d->synthFilename = waveFilename;
@@ -359,10 +359,10 @@ HadifixProc::VoiceGender HadifixProc::determineGender(TQString mbrola, TQString
HadifixProc speech;
KShellProcess proc;
proc << command;
- 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)));
+ connect(&proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ &speech, TQ_SLOT(receivedStdout(TDEProcess *, char *, int)));
+ connect(&proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ &speech, TQ_SLOT(receivedStderr(TDEProcess *, char *, int)));
speech.stdOut = TQString();
speech.stdErr = TQString();